Searched refs:codec (Results 1 - 25 of 57) sorted by relevance

123

/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioCodec.cpp44 AudioCodec *codec = type->create(); local
45 codec->name = type->name;
46 return codec;
/frameworks/opt/net/voip/src/java/android/net/rtp/
H A DAudioCodec.java30 * following snippet to create a mode-1-only AMR codec.</p>
32 * AudioCodec codec = AudioCodec.getCodec(100, "AMR/8000", "mode-set=1");
54 * G.711 u-law audio codec.
59 * G.711 a-law audio codec.
64 * GSM Full-Rate audio codec, also known as GSM-FR, GSM 06.10, GSM, or
70 * GSM Enhanced Full-Rate audio codec, also known as GSM-EFR, GSM 06.60, or
76 * Adaptive Multi-Rate narrowband audio codec, also known as AMR or AMR-NB.
115 for (AudioCodec codec : sCodecs) {
116 if (clue.startsWith(codec.rtpmap)) {
117 String channels = clue.substring(codec
[all...]
H A DAudioStream.java115 * @param codec The AudioCodec to be used.
119 public void setCodec(AudioCodec codec) { argument
123 if (codec.type == mDtmfType) {
126 mCodec = codec;
149 * @throws IllegalArgumentException if the type is invalid or used by codec.
162 throw new IllegalArgumentException("The type is used by codec");
H A DAudioGroup.java150 AudioCodec codec = stream.getCodec();
151 String codecSpec = String.format(Locale.US, "%d %s %s", codec.type,
152 codec.rtpmap, codec.fmtp);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DMediaProfileReader.java98 public static int getMinFrameRateForCodec(int codec) { argument
99 return getMinOrMaxFrameRateForCodec(codec, false);
102 public static int getMaxFrameRateForCodec(int codec) { argument
103 return getMinOrMaxFrameRateForCodec(codec, true);
106 private static int getMinOrMaxFrameRateForCodec(int codec, boolean max) { argument
108 if (cap.mCodec == codec) {
114 throw new IllegalArgumentException("Unsupported video codec " + codec);
/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A DDataStreamFileCodec.java42 public DataStreamFileCodec(File file, DataStreamCodec<T> codec) { argument
44 mCodec = codec;
/frameworks/av/include/media/
H A DMediaProfiles.h113 * vid.codec - video encoder. see mediarecorder.h for details.
114 * aud.codec - audio encoder. see mediarecorder.h for details.
156 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
175 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
210 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument
211 : mCodec(codec),
235 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument
236 : mCodec(codec),
289 VideoEncoderCap(video_encoder codec, argument
294 : mCodec(codec),
311 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument
329 VideoDecoderCap(video_decoder codec) argument
336 AudioDecoderCap(audio_decoder codec) argument
[all...]
/frameworks/av/media/libmedia/include/media/
H A DMediaProfiles.h113 * vid.codec - video encoder. see mediarecorder.h for details.
114 * aud.codec - audio encoder. see mediarecorder.h for details.
156 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
175 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
210 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument
211 : mCodec(codec),
235 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument
236 : mCodec(codec),
289 VideoEncoderCap(video_encoder codec, argument
294 : mCodec(codec),
311 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument
329 VideoDecoderCap(video_decoder codec) argument
336 AudioDecoderCap(audio_decoder codec) argument
[all...]
/frameworks/base/media/java/android/media/
H A DEncoderCapabilities.java52 private VideoEncoderCap(int codec, argument
57 mCodec = codec;
88 private AudioEncoderCap(int codec, argument
92 mCodec = codec;
H A DMediaCodecList.java28 * find a codec supporting a given format and query the capabilities
29 * of a given codec.
50 * Return the {@link MediaCodecInfo} object for the codec at
94 Log.e(TAG, "Could not get codec capabilities", e);
128 /* package private */ static native final int findCodecByName(String codec); argument
131 public static MediaCodecInfo getInfoFor(String codec) { argument
133 return sAllCodecInfos[findCodecByName(codec)];
211 * requests, or {@code null} if no such codec has been found.
235 * requests, or {@code null} if no such codec has been found.
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DDisplaySourceService.java195 MediaCodec codec;
197 codec = MediaCodec.createEncoderByType("video/avc");
202 codec.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
203 Surface surface = codec.createInputSurface();
204 codec.start();
212 stream(codec);
219 codec.signalEndOfInputStream();
220 codec.stop();
227 private void stream(MediaCodec codec) { argument
231 int index = codec
[all...]
/frameworks/av/media/libstagefright/omx/
H A DSoftOMXPlugin.cpp99 // -- the codec process (where this happens) will have a slightly larger
132 sp<SoftOMXComponent> codec = local
135 if (codec == NULL) {
142 OMX_ERRORTYPE err = codec->initCheck();
150 codec->incStrong(this);
151 codec->setLibHandle(libHandle);
/frameworks/opt/net/voip/src/java/android/net/sip/
H A DSipAudioCall.java741 for (AudioCodec codec : AudioCodec.getCodecs()) {
742 media.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp);
755 AudioCodec codec = null;
757 if ((codec == null) && (media.getPort() > 0)
760 // Find the first audio codec we supported.
762 codec = AudioCodec.getCodec(type, media.getRtpmap(type),
764 if (codec != null) {
768 if (codec !
[all...]
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp103 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec UNUSED)
105 ALOGV("video codec:");
106 ALOGV("codec = %d", codec.mCodec);
107 ALOGV("bit rate: %d", codec.mBitRate);
108 ALOGV("frame width: %d", codec.mFrameWidth);
109 ALOGV("frame height: %d", codec.mFrameHeight);
110 ALOGV("frame rate: %d", codec.mFrameRate);
114 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec UNUSED)
116 ALOGV("audio codec
182 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
204 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local
224 const int codec = findTagForName(sAudioDecoderNameMap, nMappings, atts[1]); local
240 const int codec = findTagForName(sVideoDecoderNameMap, nMappings, atts[1]); local
264 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
288 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp933 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) {
935 if (codec != NULL) {
936 codec->incStrong(thiz);
947 env->SetLongField(thiz, gFields.context, (jlong)codec.get());
1052 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1054 if (codec == NULL) {
1059 status_t err = codec->enableOnFrameRenderedListener(enabled);
1068 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1070 if (codec == NULL) {
1075 status_t err = codec
932 setMediaCodec( JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) argument
1088 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1136 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1260 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1284 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1306 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1321 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1336 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1358 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1380 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1406 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1565 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1586 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1609 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1625 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1640 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1663 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1686 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1712 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1738 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1764 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1787 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1811 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1839 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1858 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
2056 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder); local
[all...]
/frameworks/av/media/libstagefright/
H A DSimpleDecodingSource.cpp69 sp<MediaCodec> codec; local
70 auto configure = [=](const sp<MediaCodec> &codec, const AString &componentName)
72 if (codec != NULL) {
73 ALOGI("Successfully allocated codec '%s'", componentName.c_str());
75 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */);
78 err = codec->getOutputFormat(&outFormat);
81 return new SimpleDecodingSource(codec, source, looper,
87 ALOGD("Failed to configure codec '%s'", componentName.c_str());
88 codec->release();
94 codec
120 SimpleDecodingSource( const sp<MediaCodec> &codec, const sp<MediaSource> &source, const sp<ALooper> &looper, bool usingSurface, bool isVorbis, const sp<AMessage> &format) argument
[all...]
H A DMediaCodecListOverrides.cpp45 // a limit to avoid allocating unreasonable number of codec instances in the measurement.
143 ALOGV("doProfileCodecs for codec #%zu", codecs.size());
148 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); local
150 ALOGV("Failed to create codec: %s", name.c_str());
157 err = codec->configure(format, nativeWindow, crypto, flags);
159 ALOGV("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str());
160 codec->release();
164 err = codec->start();
166 ALOGV("Failed to start codec: %s with mime: %s", name.c_str(), mime.c_str());
167 codec
290 AString codec = local
[all...]
/frameworks/av/media/ndk/include/media/
H A DNdkMediaCodec.h71 AMediaCodec *codec,
80 AMediaCodec *codec,
89 AMediaCodec *codec,
97 * and AMediaCodecActionCode_isTransient() return false, then the codec error is fatal
98 * and the codec must be deleted.
102 AMediaCodec *codec,
118 * Create codec by name. Use this if you know the exact codec you want to use.
119 * When configuring, you will need to specify whether to use the codec as an
125 * Create codec b
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioTrackDecoder.java77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) {
96 codec.releaseOutputBuffer(bufferIndex, false);
76 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
H A DSchemaIdentityKey.kt19 import org.apache.commons.codec.digest.DigestUtils
/frameworks/base/core/jni/android/graphics/
H A DImageDecoder.cpp87 auto codec = SkCodec::MakeFromStream(std::move(stream), &result, decoder->mPeeker.get()); local
91 if (!codec) {
105 const bool animated = codec->getFrameCount() > 1;
110 decoder->mCodec = SkAndroidCodec::MakeFromCodec(std::move(codec),
207 SkAndroidCodec* codec = decoder->mCodec.get(); local
210 const int sampleSize = codec->computeSampleSize(&decodeSize);
212 SkImageInfo decodeInfo = codec->getInfo().makeWH(decodeSize.width(), decodeSize.height());
257 colorType = codec->computeOutputColorType(colorType);
260 colorSpace = codec->computeOutputColorSpace(colorType, colorSpace);
292 auto result = codec
499 auto* codec = reinterpret_cast<ImageDecoder*>(nativePtr)->mCodec.get(); local
[all...]
H A DBitmapFactory.cpp238 // Create the codec.
240 std::unique_ptr<SkAndroidCodec> codec; local
252 codec = SkAndroidCodec::MakeFromCodec(std::move(c));
253 if (!codec) {
268 SkISize size = codec->getSampledDimensions(sampleSize);
275 if (needsFineScale(codec->getInfo().dimensions(), size, sampleSize)) {
277 scaledWidth = codec->getInfo().width() / sampleSize;
278 scaledHeight = codec->getInfo().height() / sampleSize;
282 SkColorType decodeColorType = codec->computeOutputColorType(prefColorType);
283 sk_sp<SkColorSpace> decodeColorSpace = codec
[all...]
/frameworks/av/cmds/stagefright/
H A Drecordvideo.cpp53 fprintf(stderr, " -v video codec: [0] AVC [1] M4V [2] H263 (default: 0)\n");
54 fprintf(stderr, " -s(oftware) prefer software codec\n");
176 int codec = 0; local
243 codec = atoi(optarg);
244 if (codec < 0 || codec > 2) {
276 switch (codec) {
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java483 int codec = MediaRecorder.VideoEncoder.H263;
484 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
485 recordVideo(frameRate, 352, 288, codec,
507 //test cases for the new codec
559 int codec = MediaRecorder.VideoEncoder.H264;
560 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
565 success = recordVideoFromSurface(frameRate, 0, 352, 288, codec,
586 int codec = MediaRecorder.VideoEncoder.H264;
587 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec);
593 success = recordVideoFromSurface(frameRate, 0, 352, 288, codec,
[all...]
/frameworks/av/services/mediacodec/
H A DAndroid.mk58 $(foreach codec,$(_software_codecs),\
60 $(codec)$(_vendor_suffix)\

Completed in 3069 milliseconds

123