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

12

/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioCodec.cpp44 AudioCodec *codec = type->create(); local
45 codec->name = type->name;
46 return codec;
H A DAudioGroup.cpp102 AudioCodec *codec, int sampleRate, int sampleCount,
168 AudioCodec *codec, int sampleRate, int sampleCount,
204 if (codec) {
206 mCodec = codec;
224 (codec ? codec->name : "RAW"), mSampleRate, mInterval, mMode);
947 AudioCodec *codec = NULL; local
975 // Create audio codec.
980 codec = newAudioCodec(codecName);
981 int sampleCount = (codec
167 set(int mode, int socket, sockaddr_storage *remote, AudioCodec *codec, int sampleRate, int sampleCount, int codecType, int dtmfType) argument
[all...]
/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/av/include/media/
H A DMediaProfiles.h112 * vid.codec - video encoder. see mediarecorder.h for details.
113 * aud.codec - audio encoder. see mediarecorder.h for details.
155 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
174 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
209 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument
210 : mCodec(codec),
234 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument
235 : mCodec(codec),
288 VideoEncoderCap(video_encoder codec, argument
293 : mCodec(codec),
310 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument
328 VideoDecoderCap(video_decoder codec) argument
335 AudioDecoderCap(audio_decoder codec) argument
[all...]
/frameworks/av/media/libmedia/include/media/
H A DMediaProfiles.h112 * vid.codec - video encoder. see mediarecorder.h for details.
113 * aud.codec - audio encoder. see mediarecorder.h for details.
155 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
174 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
209 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument
210 : mCodec(codec),
234 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument
235 : mCodec(codec),
288 VideoEncoderCap(video_encoder codec, argument
293 : mCodec(codec),
310 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument
328 VideoDecoderCap(video_decoder codec) argument
335 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/base/media/jni/
H A Dandroid_media_MediaCodec.cpp822 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) {
824 if (codec != NULL) {
825 codec->incStrong(thiz);
836 env->SetLongField(thiz, gFields.context, (jlong)codec.get());
941 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
943 if (codec == NULL) {
948 status_t err = codec->enableOnFrameRenderedListener(enabled);
957 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
959 if (codec == NULL) {
964 status_t err = codec
821 setMediaCodec( JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) argument
977 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1026 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1150 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1169 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1191 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1206 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1221 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1243 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1265 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1291 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1450 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1471 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1494 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1510 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1525 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1548 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1571 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1597 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1623 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1649 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1673 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1701 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1720 sp<JMediaCodec> codec = getMediaCodec(env, thiz); local
1896 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder); local
[all...]
/frameworks/av/media/libstagefright/omx/
H A DSoftOMXPlugin.cpp112 sp<SoftOMXComponent> codec = local
115 if (codec == NULL) {
122 OMX_ERRORTYPE err = codec->initCheck();
130 codec->incStrong(this);
131 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/av/services/minijail/
H A DAndroid.mk3 # Small library for media.extractor and media.codec sandboxing.
/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/av/media/libstagefright/
H A DSimpleDecodingSource.cpp59 sp<MediaCodec> codec; local
67 ALOGV("Attempting to allocate codec '%s'", componentName.c_str());
69 codec = MediaCodec::CreateByComponentName(looper, componentName);
70 if (codec != NULL) {
71 ALOGI("Successfully allocated codec '%s'", componentName.c_str());
73 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */);
75 err = codec->getOutputFormat(&format);
78 return new SimpleDecodingSource(codec, source, looper,
84 ALOGD("Failed to configure codec '%s'", componentName.c_str());
85 codec
95 SimpleDecodingSource( const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper, bool usingSurface, bool isVorbis, const sp<AMessage> &format) argument
[all...]
H A DMediaCodecListOverrides.cpp47 // a limit to avoid allocating unreasonable number of codec instances in the measurement.
145 ALOGV("doProfileCodecs for codec #%zu", codecs.size());
150 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); local
152 ALOGV("Failed to create codec: %s", name.c_str());
159 err = codec->configure(format, nativeWindow, crypto, flags);
161 ALOGV("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str());
162 codec->release();
166 err = codec->start();
168 ALOGV("Failed to start codec: %s with mime: %s", name.c_str(), mime.c_str());
169 codec
292 AString codec = local
[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/wilhelm/tests/examples/
H A DxaVideoDecoderCapabilities.cpp52 sprintf(unknown, "Video codec %d unknown to OpenMAX AL", decoderId);
95 // Map a video codec and profile to string
97 const char *videoProfileToString(XAuint32 codec, XAuint32 profile) { argument
155 return id_pair_to_string(codec, profile, table, sizeof(table) / sizeof(table[0]));
158 // Map a video codec and level to string
160 const char* videoLevelToString(XAuint32 codec, XAuint32 level) { argument
219 return id_pair_to_string(codec, level, table, sizeof(table) / sizeof(table[0]));
/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp543 AMediaCodec *codec = AMediaCodec_createDecoderByType(mime); local
544 if (codec == NULL
545 || AMediaCodec_configure(codec, format,
547 || AMediaCodec_start(codec) != AMEDIA_OK
550 AMediaCodec_delete(codec);
562 format = AMediaCodec_getOutputFormat(codec);
566 ssize_t bufidx = AMediaCodec_dequeueInputBuffer(codec, 5000);
570 uint8_t *buf = AMediaCodec_getInputBuffer(codec, bufidx, &bufsize);
584 media_status_t mstatus = AMediaCodec_queueInputBuffer(codec, bufidx,
598 int status = AMediaCodec_dequeueOutputBuffer(codec,
[all...]
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp148 * from the codec.
171 ALOGV("Creating codec");
172 sp<MediaCodec> codec = MediaCodec::CreateByType(looper, kMimeTypeAvc, true); local
173 if (codec == NULL) {
174 fprintf(stderr, "ERROR: unable to create %s codec instance\n",
179 err = codec->configure(format, NULL, NULL,
182 fprintf(stderr, "ERROR: unable to configure %s codec at %dx%d (err=%d)\n",
184 codec->release();
190 err = codec->createInputSurface(&bufferProducer);
194 codec
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp76 explicit CodecHandler(AMediaCodec *codec);
80 typedef void (*OnCodecEvent)(AMediaCodec *codec, void *userdata);
93 CodecHandler::CodecHandler(AMediaCodec *codec) { argument
94 mCodec = codec;
152 static void requestActivityNotification(AMediaCodec *codec) { argument
153 (new AMessage(kWhatRequestActivityNotifications, codec->mHandler))->post();
176 if (mData->mCodec == NULL) { // failed to create codec
502 AMediaCodec* codec,
520 status_t err = codec->mCodec->queueSecureInputBuffer(idx,
501 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument

Completed in 8239 milliseconds

12