Searched refs:sarWidth (Results 1 – 7 of 7) sorted by relevance
/frameworks/av/media/libstagefright/ |
D | MetaDataUtils.cpp | 39 int32_t sarWidth; in MakeAVCCodecSpecificData() local 42 sp<ABuffer> csd = MakeAVCCodecSpecificData(accessUnit, &width, &height, &sarWidth, &sarHeight); in MakeAVCCodecSpecificData() 51 if (sarWidth > 0 && sarHeight > 0) { in MakeAVCCodecSpecificData() 52 meta.setInt32(kKeySARWidth, sarWidth); in MakeAVCCodecSpecificData() 65 int32_t sarWidth; in MakeAVCCodecSpecificData() local 68 sp<ABuffer> csd = MakeAVCCodecSpecificData(accessUnit, &width, &height, &sarWidth, &sarHeight); in MakeAVCCodecSpecificData() 77 if (sarWidth > 0 && sarHeight > 0) { in MakeAVCCodecSpecificData() 78 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_SAR_WIDTH, sarWidth); in MakeAVCCodecSpecificData()
|
D | FrameDecoder.cpp | 65 int32_t sarWidth, sarHeight; in allocVideoFrame() local 67 if (trackMeta->findInt32(kKeySARWidth, &sarWidth) in allocVideoFrame() 71 if (width < 0 || sarWidth < 0 || in allocVideoFrame() 72 __builtin_mul_overflow(width, sarWidth, &multVal)) { in allocVideoFrame() 73 ALOGE("displayWidth overflow %dx%d", width, sarWidth); in allocVideoFrame() 76 displayWidth = (width * sarWidth) / sarHeight; in allocVideoFrame()
|
D | Utils.cpp | 1002 int32_t sarWidth, sarHeight; in convertMetaDataToMessage() local 1003 if (meta->findInt32(kKeySARWidth, &sarWidth) in convertMetaDataToMessage() 1005 msg->setInt32("sar-width", sarWidth); in convertMetaDataToMessage() 1770 int32_t sarWidth, sarHeight; in convertMessageToMetaData() local 1771 if (msg->findInt32("sar-width", &sarWidth) in convertMessageToMetaData() 1773 meta->setInt32(kKeySARWidth, sarWidth); in convertMessageToMetaData()
|
/frameworks/av/media/libstagefright/foundation/ |
D | avc_utils.cpp | 103 int32_t *sarWidth, int32_t *sarHeight) { in FindAVCDimensions() argument 234 if (sarWidth != NULL) { in FindAVCDimensions() 235 *sarWidth = 0; in FindAVCDimensions() 281 if (sarWidth != NULL) { in FindAVCDimensions() 282 *sarWidth = sar_width; in FindAVCDimensions() 401 int32_t *sarWidth, int32_t *sarHeight) { in MakeAVCCodecSpecificData() argument 411 seqParamSet, width, height, sarWidth, sarHeight); in MakeAVCCodecSpecificData() 451 if (sarWidth != nullptr && sarHeight != nullptr) { in MakeAVCCodecSpecificData() 452 if ((*sarWidth > 0 && *sarHeight > 0) && (*sarWidth != 1 || *sarHeight != 1)) { in MakeAVCCodecSpecificData() 460 *sarWidth, in MakeAVCCodecSpecificData() [all …]
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | avc_utils.h | 48 int32_t *sarWidth = NULL, int32_t *sarHeight = NULL); 85 int32_t *sarWidth = nullptr, int32_t *sarHeight = nullptr);
|
/frameworks/av/media/libmediatranscoding/transcoder/ |
D | VideoTrackTranscoder.cpp | 551 int32_t sarWidth, sarHeight; in updateTrackFormat() local 552 if (AMediaFormat_getInt32(mSourceFormat.get(), AMEDIAFORMAT_KEY_SAR_WIDTH, &sarWidth) && in updateTrackFormat() 553 (sarWidth > 0) && in updateTrackFormat() 556 AMediaFormat_setInt32(formatCopy, AMEDIAFORMAT_KEY_SAR_WIDTH, sarWidth); in updateTrackFormat()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayer.cpp | 2091 int32_t sarWidth, sarHeight; in updateVideoSize() local 2092 if (inputFormat->findInt32("sar-width", &sarWidth) in updateVideoSize() 2094 && sarWidth > 0 && sarHeight > 0) { in updateVideoSize() 2095 ALOGV("Sample aspect ratio %d : %d", sarWidth, sarHeight); in updateVideoSize() 2097 displayWidth = (displayWidth * sarWidth) / sarHeight; in updateVideoSize()
|