Lines Matching refs:codec
183 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec UNUSED) in logVideoCodec()
186 ALOGV("codec = %d (%s)", codec.mCodec, in logVideoCodec()
187 findNameForTag(sVideoEncoderNameMap, NELEM(sVideoEncoderNameMap), codec.mCodec)); in logVideoCodec()
188 ALOGV("bit rate: %d", codec.mBitRate); in logVideoCodec()
189 ALOGV("frame width: %d", codec.mFrameWidth); in logVideoCodec()
190 ALOGV("frame height: %d", codec.mFrameHeight); in logVideoCodec()
191 ALOGV("frame rate: %d", codec.mFrameRate); in logVideoCodec()
192 ALOGV("profile: %d", codec.mProfile); in logVideoCodec()
194 codec.mChromaSubsampling)); in logVideoCodec()
195 ALOGV("bit depth: %d", codec.mBitDepth); in logVideoCodec()
197 codec.mHdrFormat)); in logVideoCodec()
201 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec UNUSED) in logAudioCodec()
204 ALOGV("codec = %d", codec.mCodec); in logAudioCodec()
205 ALOGV("bit rate: %d", codec.mBitRate); in logAudioCodec()
206 ALOGV("sample rate: %d", codec.mSampleRate); in logAudioCodec()
207 ALOGV("number of channels: %d", codec.mChannels); in logAudioCodec()
208 ALOGV("profile: %d", codec.mProfile); in logAudioCodec()
274 video_encoder codec, int profile, in detectAdvancedVideoProfile() argument
282 switch (codec) { in detectAdvancedVideoProfile()
420 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); in createVideoCodec() local
421 if (codec == -1) { in createVideoCodec()
430 if (codec == VIDEO_ENCODER_DOLBY_VISION) { in createVideoCodec()
438 (video_encoder)codec, profile, &chroma, &bitDepth, &hdr)) { in createVideoCodec()
474 static_cast<video_encoder>(codec), in createVideoCodec()
493 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); in createAudioCodec() local
494 if (codec == -1) { in createAudioCodec()
505 static_cast<audio_encoder>(codec), in createAudioCodec()
522 const int codec = findTagForName(sAudioDecoderNameMap, nMappings, atts[1]); in createAudioDecoderCap() local
523 if (codec == -1) { in createAudioDecoderCap()
529 new MediaProfiles::AudioDecoderCap(static_cast<audio_decoder>(codec)); in createAudioDecoderCap()
542 const int codec = findTagForName(sVideoDecoderNameMap, nMappings, atts[1]); in createVideoDecoderCap() local
543 if (codec == -1) { in createVideoDecoderCap()
549 new MediaProfiles::VideoDecoderCap(static_cast<video_decoder>(codec)); in createVideoDecoderCap()
570 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); in createVideoEncoderCap() local
571 if (codec == -1) { in createVideoEncoderCap()
577 new MediaProfiles::VideoEncoderCap(static_cast<video_encoder>(codec), in createVideoEncoderCap()
598 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); in createAudioEncoderCap() local
599 if (codec == -1) { in createAudioEncoderCap()
605 new MediaProfiles::AudioEncoderCap(static_cast<audio_encoder>(codec), atoi(atts[5]), in createAudioEncoderCap()
1280 int MediaProfiles::getVideoEncoderParamByName(const char *name, video_encoder codec) const in getVideoEncoderParamByName()
1282 ALOGV("getVideoEncoderParamByName: %s for codec %d", name, codec); in getVideoEncoderParamByName()
1285 if (mVideoEncoders[i]->mCodec == codec) { in getVideoEncoderParamByName()
1291 ALOGE("The given video encoder %d is not found", codec); in getVideoEncoderParamByName()
1317 int MediaProfiles::getAudioEncoderParamByName(const char *name, audio_encoder codec) const in getAudioEncoderParamByName()
1319 ALOGV("getAudioEncoderParamByName: %s for codec %d", name, codec); in getAudioEncoderParamByName()
1322 if (mAudioEncoders[i]->mCodec == codec) { in getAudioEncoderParamByName()
1328 ALOGE("The given audio encoder %d is not found", codec); in getAudioEncoderParamByName()