Home
last modified time | relevance | path

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

12

/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp280 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) { in setMediaCodec() argument
282 if (codec != NULL) { in setMediaCodec()
283 codec->incStrong(thiz); in setMediaCodec()
288 env->SetIntField(thiz, gFields.context, (int)codec.get()); in setMediaCodec()
356 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_configure() local
358 if (codec == NULL) { in android_media_MediaCodec_native_configure()
390 err = codec->configure(format, surfaceTexture, crypto, flags); in android_media_MediaCodec_native_configure()
398 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_start() local
400 if (codec == NULL) { in android_media_MediaCodec_start()
405 status_t err = codec->start(); in android_media_MediaCodec_start()
[all …]
Dandroid_media_MediaProfiles.cpp333 JNIEnv *env, jobject thiz, jint codec) in android_media_MediaProfiles_native_get_videoeditor_export_profile() argument
337 profile = sProfiles->getVideoEditorExportParamByName("videoeditor.export.profile", codec); in android_media_MediaProfiles_native_get_videoeditor_export_profile()
349 JNIEnv *env, jobject thiz, jint codec) in android_media_MediaProfiles_native_get_videoeditor_export_level() argument
353 level = sProfiles->getVideoEditorExportParamByName("videoeditor.export.level", codec); in android_media_MediaProfiles_native_get_videoeditor_export_level()
/frameworks/av/include/media/
DMediaProfiles.h137 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
163 int getVideoEditorExportParamByName(const char *name, int codec) const;
182 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
217 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec()
218 : mCodec(codec), in VideoCodec()
242 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) in AudioCodec()
243 : mCodec(codec), in AudioCodec()
296 VideoEncoderCap(video_encoder codec, in VideoEncoderCap()
301 : mCodec(codec), in VideoEncoderCap()
318 AudioEncoderCap(audio_encoder codec, in AudioEncoderCap()
[all …]
/frameworks/base/voip/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.java148 AudioCodec codec = stream.getCodec(); in add() local
149 String codecSpec = String.format("%d %s %s", codec.type, in add()
150 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/av/media/libmedia/
DMediaProfiles.cpp85 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec) in logVideoCodec() argument
88 ALOGV("codec = %d", codec.mCodec); in logVideoCodec()
89 ALOGV("bit rate: %d", codec.mBitRate); in logVideoCodec()
90 ALOGV("frame width: %d", codec.mFrameWidth); in logVideoCodec()
91 ALOGV("frame height: %d", codec.mFrameHeight); in logVideoCodec()
92 ALOGV("frame rate: %d", codec.mFrameRate); in logVideoCodec()
96 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec) in logAudioCodec() argument
99 ALOGV("codec = %d", codec.mCodec); in logAudioCodec()
100 ALOGV("bit rate: %d", codec.mBitRate); in logAudioCodec()
101 ALOGV("sample rate: %d", codec.mSampleRate); in logAudioCodec()
[all …]
/frameworks/base/voip/java/android/net/sip/
DSipAudioCall.java739 for (AudioCodec codec : AudioCodec.getCodecs()) {
740 media.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp);
752 AudioCodec codec = null;
754 if ((codec == null) && (media.getPort() > 0)
759 codec = AudioCodec.getCodec(type, media.getRtpmap(type),
761 if (codec != null) {
765 if (codec != null) {
768 reply.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp);
773 if ((type != codec.type) && (rtpmap != null)
800 if (codec == null) {
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaProfileReader.java97 public static int getMinFrameRateForCodec(int codec) { in getMinFrameRateForCodec() argument
98 return getMinOrMaxFrameRateForCodec(codec, false); in getMinFrameRateForCodec()
101 public static int getMaxFrameRateForCodec(int codec) { in getMaxFrameRateForCodec() argument
102 return getMinOrMaxFrameRateForCodec(codec, true); in getMaxFrameRateForCodec()
105 private static int getMinOrMaxFrameRateForCodec(int codec, boolean max) { in getMinOrMaxFrameRateForCodec() argument
107 if (cap.mCodec == codec) { in getMinOrMaxFrameRateForCodec()
113 throw new IllegalArgumentException("Unsupported video codec " + codec); in getMinOrMaxFrameRateForCodec()
/frameworks/av/media/libstagefright/omx/
DSoftOMXPlugin.cpp105 sp<SoftOMXComponent> codec = in makeComponentInstance() local
108 if (codec == NULL) { in makeComponentInstance()
115 OMX_ERRORTYPE err = codec->initCheck(); in makeComponentInstance()
123 codec->incStrong(this); in makeComponentInstance()
124 codec->setLibHandle(libHandle); in makeComponentInstance()
/frameworks/base/voip/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()
937 AudioCodec *codec = NULL; in add() local
968 codec = newAudioCodec(codecName); in add()
969 int sampleCount = (codec ? codec->set(sampleRate, codecSpec) : -1); in add()
979 if (!stream->set(mode, socket, &remote, codec, sampleRate, sampleCount, in add()
986 codec = NULL; in add()
[all …]
/frameworks/base/media/java/android/media/
DEncoderCapabilities.java53 private VideoEncoderCap(int codec, in VideoEncoderCap() argument
58 mCodec = codec; in VideoEncoderCap()
89 private AudioEncoderCap(int codec, in AudioEncoderCap() argument
93 mCodec = codec; in AudioEncoderCap()
/frameworks/av/cmds/stagefright/
Drecordvideo.cpp164 int codec = 0; in main() local
231 codec = atoi(optarg); in main()
232 if (codec < 0 || codec > 2) { in main()
261 switch (codec) { in main()
Dcodec.cpp140 sp<MediaCodec> codec = state->mCodec; in decode() local
142 CHECK_EQ((status_t)OK, codec->start()); in decode()
144 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers)); in decode()
145 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers)); in decode()
DAndroid.mk149 codec.cpp \
164 LOCAL_MODULE:= codec
/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/av/media/libstagefright/
DACodec.cpp126 BaseState(ACodec *codec, const sp<AState> &parentState = NULL);
169 UninitializedState(ACodec *codec);
185 LoadedState(ACodec *codec);
204 LoadedToIdleState(ACodec *codec);
220 IdleToExecutingState(ACodec *codec);
234 ExecutingState(ACodec *codec);
261 OutputPortSettingsChangedState(ACodec *codec);
277 ExecutingToIdleState(ACodec *codec);
299 IdleToLoadedState(ACodec *codec);
314 FlushingState(ACodec *codec);
[all …]
DMediaCodec.cpp42 sp<MediaCodec> codec = new MediaCodec(looper); in CreateByType() local
43 if (codec->init(mime, true /* nameIsType */, encoder) != OK) { in CreateByType()
47 return codec; in CreateByType()
53 sp<MediaCodec> codec = new MediaCodec(looper); in CreateByComponentName() local
54 if (codec->init(name, false /* nameIsType */, false /* encoder */) != OK) { in CreateByComponentName()
58 return codec; in CreateByComponentName()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp161 SkImageDecoder* codec = SkImageDecoder::Factory(&stream); in initTexture() local
162 codec->setDitherImage(false); in initTexture()
163 if (codec) { in initTexture()
164 codec->decode(&stream, &bitmap, in initTexture()
167 delete codec; in initTexture()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.cpp594 sp<MediaSource> codec = OMXCodec::Create( in testSeek() local
598 CHECK(codec != NULL); in testSeek()
600 CHECK_EQ(codec->start(), (status_t)OK); in testSeek()
664 err = codec->read(&buffer, &options); in testSeek()
723 CHECK_EQ(codec->stop(), (status_t)OK); in testSeek()
733 CHECK_EQ(codec->stop(), (status_t)OK); in testSeek()
/frameworks/base/media/java/android/media/videoeditor/
DVideoEditorProfile.java119 private static native final int native_get_videoeditor_export_profile(int codec); in native_get_videoeditor_export_profile() argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java260 int codec = MediaRecorder.VideoEncoder.H263; in testPortraitH263() local
261 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec); in testPortraitH263()
262 recordVideo(frameRate, 352, 288, codec, in testPortraitH263()
/frameworks/base/docs/html/guide/appendix/
Dmedia-formats.jd29 <p>This document describes the media codec, container, and network protocol support provided by the…
31 <p>As an application developer, you are free to make use of any media codec that is available on an…
58 <p class="table-caption" id="formats-table"><strong>Table 1.</strong> Core media format and codec s…
289 <th>Video codec</th>
313 <th>Audio codec</th>
/frameworks/av/libvideoeditor/vss/common/inc/
DM4DECODER_Common.h236 M4_StreamType codec; member

12