Home
last modified time | relevance | path

Searched refs:codec (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/opt/net/voip/src/java/android/net/rtp/
DAudioCodec.java115 for (AudioCodec codec : sCodecs) { in getCodec()
116 if (clue.startsWith(codec.rtpmap)) { in getCodec()
117 String channels = clue.substring(codec.rtpmap.length()); in getCodec()
119 hint = codec; in getCodec()
125 for (AudioCodec codec : sCodecs) { in getCodec()
126 if (type == codec.type) { in getCodec()
127 hint = codec; in getCodec()
128 rtpmap = codec.rtpmap; in getCodec()
DAudioGroup.java149 AudioCodec codec = stream.getCodec(); in add() local
150 String codecSpec = String.format(Locale.US, "%d %s %s", codec.type, in add()
151 codec.rtpmap, codec.fmtp); in add()
DAudioStream.java119 public void setCodec(AudioCodec codec) { in setCodec() argument
123 if (codec.type == mDtmfType) { in setCodec()
126 mCodec = codec; in setCodec()
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp706 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) { in setMediaCodec() argument
708 if (codec != NULL) { in setMediaCodec()
709 codec->incStrong(thiz); in setMediaCodec()
720 env->SetLongField(thiz, gFields.context, (jlong)codec.get()); in setMediaCodec()
807 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_setCallback() local
809 if (codec == NULL) { in android_media_MediaCodec_native_setCallback()
814 status_t err = codec->setCallback(cb); in android_media_MediaCodec_native_setCallback()
826 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_configure() local
828 if (codec == NULL) { in android_media_MediaCodec_native_configure()
860 err = codec->configure(format, bufferProducer, crypto, flags); in android_media_MediaCodec_native_configure()
[all …]
/frameworks/av/include/media/
DMediaProfiles.h148 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
174 int getVideoEditorExportParamByName(const char *name, int codec) const;
193 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
228 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec()
229 : mCodec(codec), in VideoCodec()
253 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) in AudioCodec()
254 : mCodec(codec), in AudioCodec()
307 VideoEncoderCap(video_encoder codec, in VideoEncoderCap()
312 : mCodec(codec), in VideoEncoderCap()
329 AudioEncoderCap(audio_encoder codec, in AudioEncoderCap()
[all …]
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DDisplaySourceService.java195 MediaCodec codec; in run() local
197 codec = MediaCodec.createEncoderByType("video/avc"); in run()
202 codec.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in run()
203 Surface surface = codec.createInputSurface(); in run()
204 codec.start(); in run()
212 stream(codec); in run()
219 codec.signalEndOfInputStream(); in run()
220 codec.stop(); in run()
227 private void stream(MediaCodec codec) { in stream() argument
231 int index = codec.dequeueOutputBuffer(info, TIMEOUT_USEC); in stream()
[all …]
/frameworks/av/media/libmedia/
DMediaProfiles.cpp100 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec UNUSED) in logVideoCodec()
103 ALOGV("codec = %d", codec.mCodec); in logVideoCodec()
104 ALOGV("bit rate: %d", codec.mBitRate); in logVideoCodec()
105 ALOGV("frame width: %d", codec.mFrameWidth); in logVideoCodec()
106 ALOGV("frame height: %d", codec.mFrameHeight); in logVideoCodec()
107 ALOGV("frame rate: %d", codec.mFrameRate); in logVideoCodec()
111 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec UNUSED) in logAudioCodec()
114 ALOGV("codec = %d", codec.mCodec); in logAudioCodec()
115 ALOGV("bit rate: %d", codec.mBitRate); in logAudioCodec()
116 ALOGV("sample rate: %d", codec.mSampleRate); in logAudioCodec()
[all …]
/frameworks/opt/net/voip/src/java/android/net/sip/
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)
762 codec = AudioCodec.getCodec(type, media.getRtpmap(type),
764 if (codec != null) {
768 if (codec != null) {
771 reply.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp);
776 if ((type != codec.type) && (rtpmap != null)
803 if (codec == null) {
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaProfileReader.java98 public static int getMinFrameRateForCodec(int codec) { in getMinFrameRateForCodec() argument
99 return getMinOrMaxFrameRateForCodec(codec, false); in getMinFrameRateForCodec()
102 public static int getMaxFrameRateForCodec(int codec) { in getMaxFrameRateForCodec() argument
103 return getMinOrMaxFrameRateForCodec(codec, true); in getMaxFrameRateForCodec()
106 private static int getMinOrMaxFrameRateForCodec(int codec, boolean max) { in getMinOrMaxFrameRateForCodec() argument
108 if (cap.mCodec == codec) { in getMinOrMaxFrameRateForCodec()
114 throw new IllegalArgumentException("Unsupported video codec " + codec); in getMinOrMaxFrameRateForCodec()
/frameworks/av/media/libstagefright/omx/
DSoftOMXPlugin.cpp110 sp<SoftOMXComponent> codec = in makeComponentInstance() local
113 if (codec == NULL) { in makeComponentInstance()
120 OMX_ERRORTYPE err = codec->initCheck(); in makeComponentInstance()
128 codec->incStrong(this); in makeComponentInstance()
129 codec->setLibHandle(libHandle); in makeComponentInstance()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioCodec.cpp44 AudioCodec *codec = type->create(); in newAudioCodec() local
45 codec->name = type->name; in newAudioCodec()
46 return codec; in newAudioCodec()
DAudioGroup.cpp100 AudioCodec *codec, int sampleRate, int sampleCount,
166 AudioCodec *codec, int sampleRate, int sampleCount, in set() argument
202 if (codec) { in set()
204 mCodec = codec; in set()
222 (codec ? codec->name : "RAW"), mSampleRate, mInterval, mMode); in set()
943 AudioCodec *codec = NULL; in add() local
974 codec = newAudioCodec(codecName); in add()
975 int sampleCount = (codec ? codec->set(sampleRate, codecSpec) : -1); in add()
985 if (!stream->set(mode, socket, &remote, codec, sampleRate, sampleCount, in add()
992 codec = NULL; in add()
[all …]
/frameworks/base/media/java/android/media/
DEncoderCapabilities.java52 private VideoEncoderCap(int codec, in VideoEncoderCap() argument
57 mCodec = codec; in VideoEncoderCap()
88 private AudioEncoderCap(int codec, in AudioEncoderCap() argument
92 mCodec = codec; in AudioEncoderCap()
DMediaCodecList.java117 /* package private */ static native final int findCodecByName(String codec); in findCodecByName() argument
120 public static MediaCodecInfo getInfoFor(String codec) { in getInfoFor() argument
122 return sAllCodecInfos[findCodecByName(codec)]; in getInfoFor()
/frameworks/av/cmds/stagefright/
Drecordvideo.cpp169 int codec = 0; in main() local
236 codec = atoi(optarg); in main()
237 if (codec < 0 || codec > 2) { in main()
272 switch (codec) { in main()
Dcodec.cpp143 sp<MediaCodec> codec = state->mCodec; in decode() local
145 CHECK_EQ((status_t)OK, codec->start()); in decode()
147 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers)); in decode()
148 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers)); in decode()
DAndroid.mk149 codec.cpp \
164 LOCAL_MODULE:= codec
/frameworks/av/media/ndk/
DNdkMediaCodec.cpp62 CodecHandler(AMediaCodec *codec);
66 typedef void (*OnCodecEvent)(AMediaCodec *codec, void *userdata);
79 CodecHandler::CodecHandler(AMediaCodec *codec) { in CodecHandler() argument
80 mCodec = codec; in CodecHandler()
138 static void requestActivityNotification(AMediaCodec *codec) { in requestActivityNotification() argument
139 (new AMessage(kWhatRequestActivityNotifications, codec->mHandler->id()))->post(); in requestActivityNotification()
372 AMediaCodec* codec, in AMediaCodec_queueSecureInputBuffer() argument
386 status_t err = codec->mCodec->queueSecureInputBuffer(idx, in AMediaCodec_queueSecureInputBuffer()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp167 sp<MediaCodec> codec = MediaCodec::CreateByType(looper, kMimeTypeAvc, true); in prepareEncoder() local
168 if (codec == NULL) { in prepareEncoder()
174 err = codec->configure(format, NULL, NULL, in prepareEncoder()
179 codec->release(); in prepareEncoder()
185 err = codec->createInputSurface(&bufferProducer); in prepareEncoder()
189 codec->release(); in prepareEncoder()
194 err = codec->start(); in prepareEncoder()
197 codec->release(); in prepareEncoder()
202 *pCodec = codec; in prepareEncoder()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java445 int codec = MediaRecorder.VideoEncoder.H263; in testPortraitH263() local
446 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec); in testPortraitH263()
447 recordVideo(frameRate, 352, 288, codec, in testPortraitH263()
521 int codec = MediaRecorder.VideoEncoder.H264; in testSurfaceRecording() local
522 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec); in testSurfaceRecording()
527 success = recordVideoFromSurface(frameRate, 0, 352, 288, codec, in testSurfaceRecording()
548 int codec = MediaRecorder.VideoEncoder.H264; in testSurfaceRecordingTimeLapse() local
549 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec); in testSurfaceRecordingTimeLapse()
560 352, 288, codec, in testSurfaceRecordingTimeLapse()
/frameworks/wilhelm/tests/examples/
DxaVideoDecoderCapabilities.cpp97 const char *videoProfileToString(XAuint32 codec, XAuint32 profile) { in videoProfileToString() argument
155 return id_pair_to_string(codec, profile, table, sizeof(table) / sizeof(table[0])); in videoProfileToString()
160 const char* videoLevelToString(XAuint32 codec, XAuint32 level) { in videoLevelToString() argument
219 return id_pair_to_string(codec, level, table, sizeof(table) / sizeof(table[0])); in videoLevelToString()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DAudioTrackDecoder.java77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument
96 codec.releaseOutputBuffer(bufferIndex, false); in onDataAvailable()
DCpuVideoTrackDecoder.java81 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument
87 mColorFormat = codec.getOutputFormat().getInteger(MediaFormat.KEY_COLOR_FORMAT); in onDataAvailable()
96 codec.releaseOutputBuffer(bufferIndex, false); in onDataAvailable()
DGpuVideoTrackDecoder.java107 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument
113 codec.releaseOutputBuffer(bufferIndex, textureAvailable); in onDataAvailable()
/frameworks/base/docs/html/guide/appendix/
Dmedia-formats.jd30 <p>This document describes the media codec, container, and network protocol support provided by the…
32 <p>As an application developer, you are free to make use of any media codec that is available on an…
59 <p class="table-caption" id="formats-table"><strong>Table 1.</strong> Core media format and codec s…
284 media framework supports for playback in the H.264 Baseline Profile codec. While
285 table 3 lists examples that the framework supports for playback in the VP8 media codec.</p>
293 Examples of supported video encoding parameters for the H.264 Baseline Profile codec.</p>
324 <th>Audio codec</th>
347 Examples of supported video encoding parameters for the VP8 codec.</p>

12