/frameworks/av/media/libstagefright/filters/ |
D | SimpleFilter.cpp | 25 CHECK(msg->findInt32("width", &mWidth)); in configure() 26 CHECK(msg->findInt32("height", &mHeight)); in configure() 27 if (!msg->findInt32("stride", &mStride)) { in configure() 30 if (!msg->findInt32("slice-height", &mSliceHeight)) { in configure() 33 CHECK(msg->findInt32("color-format", &mColorFormatIn)); in configure()
|
/frameworks/av/media/libstagefright/ |
D | Utils.cpp | 83 if (meta->findInt32(key, &value)) { 95 meta->findInt32(kKeyColorRange, &range); in convertMetaDataToMessageColorAspects() 96 meta->findInt32(kKeyColorPrimaries, &primaries); in convertMetaDataToMessageColorAspects() 97 meta->findInt32(kKeyTransferFunction, &transferFunction); in convertMetaDataToMessageColorAspects() 98 meta->findInt32(kKeyColorMatrix, &colorMatrix); in convertMetaDataToMessageColorAspects() 129 if (format->findInt32("android._is-hdr", &isHdr)) { in isHdr() 140 if (format->findInt32("color-transfer", &transfer)) { in isHdr() 824 if (msg->findInt32(elem.first, &value)) { in convertMessageToMetaDataFromMappings() 870 if (meta->findInt32(elem.second, &value)) { in convertMetaDataToMessageFromMappings() 947 if (meta->findInt32(kKeyCASystemID, &systemId)) { in convertMetaDataToMessage() [all …]
|
D | FrameDecoder.cpp | 54 if (!trackMeta->findInt32(kKeyRotation, &rotationAngle)) { in allocVideoFrame() 67 if (trackMeta->findInt32(kKeySARWidth, &sarWidth) in allocVideoFrame() 68 && trackMeta->findInt32(kKeySARHeight, &sarHeight) in allocVideoFrame() 78 } else if (trackMeta->findInt32(kKeyDisplayWidth, &displayWidth) in allocVideoFrame() 79 && trackMeta->findInt32(kKeyDisplayHeight, &displayHeight) in allocVideoFrame() 154 return trackMeta->findInt32(kKeyThumbnailWidth, width) in findThumbnailInfo() 155 && trackMeta->findInt32(kKeyThumbnailHeight, height) in findThumbnailInfo() 162 return trackMeta->findInt32(kKeyTileWidth, tileWidth) && (*tileWidth > 0) in findGridInfo() 163 && trackMeta->findInt32(kKeyTileHeight, tileHeight) && (*tileHeight > 0) in findGridInfo() 164 && trackMeta->findInt32(kKeyGridRows, gridRows) && (*gridRows > 0) in findGridInfo() [all …]
|
D | MediaTrack.cpp | 145 if (format->mFormat->findInt32("is-sync-frame", &val32)) { in read() 148 if (format->mFormat->findInt32("temporal-layer-id", &val32)) { in read() 151 if (format->mFormat->findInt32("temporal-layer-count", &val32)) { in read() 154 if (format->mFormat->findInt32("crypto-default-iv-size", &val32)) { in read() 157 if (format->mFormat->findInt32("crypto-mode", &val32)) { in read() 160 if (format->mFormat->findInt32("crypto-encrypted-byte-block", &val32)) { in read() 163 if (format->mFormat->findInt32("crypto-skip-byte-block", &val32)) { in read() 166 if (format->mFormat->findInt32("valid-samples", &val32)) { in read()
|
D | ACodec.cpp | 137 if (msg->findInt32("bitrate-mode", &tmp)) { in getVideoBitrateMode() 157 return (!isCQ && msg->findInt32("bitrate", bitrate)) in findVideoBitrateControlInfo() 158 || (isCQ && msg->findInt32("quality", quality)); in findVideoBitrateControlInfo() 665 (void)response->findInt32("err", &err); in setSurface() 1730 if (!msg->findInt32("encoder", &encoder)) { in configureCodec() 1761 && !msg->findInt32("bitrate", &bitrate)) { in configureCodec() 1767 if (encoder && msg->findInt32("bitrate", &bitrate)) { in configureCodec() 1777 if (msg->findInt32("android._input-metadata-buffer-type", &storeMeta) in configureCodec() 1805 if (msg->findInt32("low-latency", &lowLatency)) { in configureCodec() 1814 && msg->findInt32("prepend-sps-pps-to-idr-frames", &prependSPSPPS) in configureCodec() [all …]
|
D | MediaCodec.cpp | 958 if (msg->findInt32("low-latency", &lowLatency)) { in updateLowLatency() 993 if (!msg->findInt32("tunnel-peek", &tunnelPeek)){ in updateTunnelPeek() 1033 msg->findInt32("what", &what); in updatePlaybackDuration() 1189 (void) buffer->meta()->findInt32("flags", &flags); in statsBufferReceived() 1292 if (!(*response)->findInt32("err", &err)) { in PostAndAwaitResponse() 1516 if (format->findInt32("profile", &profile)) { in configure() 1520 if (format->findInt32("level", &level)) { in configure() 1530 format->findInt32("width", &mVideoWidth); in configure() 1531 format->findInt32("height", &mVideoHeight); in configure() 1532 if (!format->findInt32("rotation-degrees", &mRotationDegrees)) { in configure() [all …]
|
D | AACWriter.cpp | 86 CHECK(meta->findInt32(kKeyChannelCount, &mChannelCount)); in addSource() 87 CHECK(meta->findInt32(kKeySampleRate, &mSampleRate)); in addSource() 91 if (meta->findInt32(kKeyAACProfile, &mAACProfile)) { in addSource() 319 if (buffer->meta_data().findInt32(kKeyIsCodecConfig, &isCodecSpecific) && isCodecSpecific) { in threadFunc()
|
/frameworks/av/media/libstagefright/foundation/tests/ |
D | AMessage_test.cpp | 38 EXPECT_TRUE(m1->findInt32("value", &i32)); in TEST() 41 EXPECT_TRUE(m1->findInt32("bar", &i32)); in TEST() 76 EXPECT_TRUE(m1->findInt32("bar", &i32)); in TEST() 79 EXPECT_FALSE(m1->findInt32("nonesuch", &i32)); in TEST() 82 EXPECT_FALSE(m1->findInt32("big", &i32)); in TEST() 83 EXPECT_FALSE(m1->findInt32("precise", &i32)); in TEST() 119 EXPECT_FALSE(m1->findInt32("shortlived", &i32)); in TEST() 120 EXPECT_TRUE(m1->findInt32("alittlelonger", &i32)); in TEST()
|
D | MetaDataBaseUnitTest.cpp | 102 status = metaData->findInt32(kKeyWidth, &width); in TEST_F() 106 status = metaData->findInt32(kKeyHeight, &height); in TEST_F() 110 status = metaData->findInt32(kKeyVideoProfile, &profile); in TEST_F() 114 status = metaData->findInt32(kKeyVideoLevel, &level); in TEST_F() 143 status = metaData->findInt32(kKeyRotation, &angle); in TEST_F() 182 status = metaData->findInt32(kKeyWidth, &width); in TEST_F() 186 status = metaData->findInt32(kKeyHeight, &height); in TEST_F() 226 status = metaData->findInt32(kKeyWidth, &width); in TEST_F()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayer.cpp | 353 CHECK(response->findInt32("err", &err)); in getBufferingSettings() 367 CHECK(response->findInt32("err", &err)); in setBufferingSettings() 427 CHECK(response->findInt32("err", &err)); in setPlaybackSettings() 437 CHECK(response->findInt32("err", &err)); in getPlaybackSettings() 451 CHECK(response->findInt32("err", &err)); in setSyncSettings() 462 CHECK(response->findInt32("err", &err)); in getSyncSettings() 517 if (!format->findInt32("type", &trackType)) { in writeTrackInfo() 551 CHECK(format->findInt32("auto", &isAuto)); in writeTrackInfo() 552 CHECK(format->findInt32("default", &isDefault)); in writeTrackInfo() 553 CHECK(format->findInt32("forced", &isForced)); in writeTrackInfo() [all …]
|
D | NuPlayerDecoder.cpp | 134 CHECK(response->findInt32("err", &err)); in setVideoSurface() 146 CHECK(msg->findInt32("callbackID", &cbID)); in onMessageReceived() 159 CHECK(msg->findInt32("index", &index)); in onMessageReceived() 173 CHECK(msg->findInt32("index", &index)); in onMessageReceived() 177 CHECK(msg->findInt32("flags", &flags)); in onMessageReceived() 195 CHECK(msg->findInt32("err", &err)); in onMessageReceived() 225 if (msg->findInt32("err", &err) && err != OK) { in onMessageReceived() 307 if (format->findInt32("secure", &secure) && secure != 0) { in onConfigure() 374 if (mOutputFormat->findInt32("width", &width) in onConfigure() 375 && mOutputFormat->findInt32("height", &height)) { in onConfigure() [all …]
|
D | NuPlayerRenderer.cpp | 210 CHECK(response->findInt32("err", &err)); in setPlaybackSettings() 244 CHECK(response->findInt32("err", &err)); in getPlaybackSettings() 278 CHECK(response->findInt32("err", &err)); in setSyncSettings() 296 CHECK(response->findInt32("err", &err)); in getSyncSettings() 460 if (postStatus != OK || response.get() == nullptr || !response->findInt32("err", &err)) { in openAudioSink() 464 CHECK(response->findInt32("offload", &offload)); in openAudioSink() 506 CHECK(msg->findInt32("offload-only", &offloadOnly)); in onMessageReceived() 509 CHECK(msg->findInt32("has-video", &hasVideo)); in onMessageReceived() 512 CHECK(msg->findInt32("flags", (int32_t *)&flags)); in onMessageReceived() 515 CHECK(msg->findInt32("isStreaming", (int32_t *)&isStreaming)); in onMessageReceived() [all …]
|
D | HTTPLiveSource.cpp | 254 CHECK(msg->findInt32("generation", &generation)); in pollForRawData() 332 CHECK(msg->findInt32("what", &what)); in onSessionNotify() 342 format->findInt32("width", &width) && format->findInt32("height", &height)) { in onSessionNotify() 369 CHECK(msg->findInt32("err", &err)); in onSessionNotify() 378 CHECK(msg->findInt32( in onSessionNotify() 417 CHECK(msg->findInt32("percentage", &percentage)); in onSessionNotify()
|
D | RTSPSource.cpp | 314 CHECK(response->findInt32("err", &err)); in seekTo() 458 CHECK(msg->findInt32("generation", &generation)); in onSignalEOS() 495 CHECK(msg->findInt32("generation", &generation)); in onMessageReceived() 507 CHECK(msg->findInt32("mode", &mode)); in onMessageReceived() 523 CHECK(msg->findInt32("what", &what)); in onMessageReceived() 576 msg->findInt32("err", &err); in onMessageReceived() 603 if (accessUnit->meta()->findInt32("damaged", &damaged) in onMessageReceived() 639 CHECK(accessUnit->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived() 665 CHECK(msg->findInt32("finalResult", &finalResult)); in onMessageReceived() 710 CHECK(msg->findInt32("rtpTime", (int32_t *)&rtpTime)); in onMessageReceived() [all …]
|
D | NuPlayerDecoderPassThrough.cpp | 72 format->findInt32("has-video", &hasVideo); in onConfigure() 98 CHECK(msg->findInt32("generation", &generation)); in isStaleReply() 231 CHECK(accessUnit->meta()->findInt32("discontinuity", &type)); in fetchInputData() 292 CHECK(msg->findInt32("err", &streamErr) || !hasBuffer); in onInputBufferFetched() 423 CHECK(msg->findInt32("size", &size)); in onMessageReceived()
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecConfig_test.cpp | 330 ASSERT_FALSE(mConfig.mInputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 332 ASSERT_FALSE(mConfig.mOutputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 370 ASSERT_TRUE(mConfig.mInputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 373 ASSERT_FALSE(mConfig.mOutputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 420 ASSERT_TRUE(mConfig.mInputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 423 ASSERT_FALSE(mConfig.mOutputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 472 ASSERT_TRUE(mConfig.mOutputFormat->findInt32(KEY_PIXEL_ASPECT_RATIO_WIDTH, &parWidth)) in TEST_F() 475 ASSERT_FALSE(mConfig.mInputFormat->findInt32(KEY_PIXEL_ASPECT_RATIO_WIDTH, &parWidth)) in TEST_F() 479 ASSERT_TRUE(mConfig.mOutputFormat->findInt32(KEY_PIXEL_ASPECT_RATIO_HEIGHT, &parHeight)) in TEST_F() 482 ASSERT_FALSE(mConfig.mInputFormat->findInt32(KEY_PIXEL_ASPECT_RATIO_HEIGHT, &parHeight)) in TEST_F() [all …]
|
D | MediaCodec_sanity_test.cpp | 124 ASSERT_TRUE(ifmt->findInt32("max-input-size", &maxInputSize)); in TEST_P() 153 ASSERT_TRUE(ifmt->findInt32("max-input-size", &maxInputSize)); in TEST_P() 183 ASSERT_TRUE(ifmt->findInt32("max-input-size", &maxInputSize)); in TEST_P() 186 if (ifmt->findInt32("max-input-size", &maxInputSize)) { in TEST_P() 302 EXPECT_TRUE(ofmt->findInt32("color-format", &ocolor)); in TEST_P() 339 ASSERT_TRUE(ofmt->findInt32("color-format", &ocolor)); in TEST_P() 358 ofmt->findInt32("stride", &stride) || ofmt->findInt32("width", &stride); in TEST_P() 359 ofmt->findInt32("slice-height", &vstride) || ofmt->findInt32("height", &vstride); in TEST_P()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | AnotherPacketSource.cpp | 104 if (!buffer->meta()->findInt32("discontinuity", &discontinuity)) { in getFormat() 130 if ((*buffer)->meta()->findInt32("discontinuity", &discontinuity)) { in dequeueAccessUnit() 182 if (buffer->meta()->findInt32("discontinuity", &discontinuity)) { in read() 213 if (buffer->meta()->findInt32("isSync", &isSync)) { in read() 235 if (buffer->meta()->findInt32("cryptoMode", &cryptoMode)) { in read() 240 CHECK(buffer->meta()->findInt32("cryptoKey", &cryptoKey)); in read() 245 CHECK(buffer->meta()->findInt32("pesOffset", &pesOffset) in read() 291 if (buffer->meta()->findInt32("damaged", &damaged) && damaged) { in queueAccessUnit() 301 if (buffer->meta()->findInt32("discontinuity", &discontinuity)){ in queueAccessUnit() 373 if (!oldBuffer->meta()->findInt32( in queueDiscontinuity() [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightMetadataRetriever.cpp | 179 if ((index < 0 && meta->findInt32( in getImageInternal() 426 if (format->findInt32("color-standard", &standard) in parseColorAspects() 427 && format->findInt32("color-transfer", &transfer) in parseColorAspects() 428 && format->findInt32("color-range", &range)) { in parseColorAspects() 575 if (!trackMeta->findInt32(kKeyBitRate, &audioBitrate)) { in parseMetaData() 581 trackMeta->findInt32(kKeyBitsPerSample, &bitsPerSample); in parseMetaData() 582 trackMeta->findInt32(kKeySampleRate, &sampleRate); in parseMetaData() 592 if (!trackMeta->findInt32(kKeyRotation, &rotationAngle)) { in parseMetaData() 595 if (!trackMeta->findInt32(kKeyFrameCount, &videoFrameCount)) { in parseMetaData() 598 if (trackMeta->findInt32(kKeyWidth, &videoWidth) in parseMetaData() [all …]
|
/frameworks/wilhelm/src/android/ |
D | android_GenericPlayer.cpp | 423 if (msg->findInt32(PLAYEREVENT_PREFETCHSTATUSCHANGE, &val1)) { in onNotify() 427 } else if (msg->findInt32(PLAYEREVENT_PREFETCHFILLLEVELUPDATE, &val1)) { in onNotify() 430 } else if (msg->findInt32(PLAYEREVENT_ENDOFSTREAM, &val1)) { in onNotify() 433 } else if (msg->findInt32(PLAYEREVENT_PREPARED, &val1)) { in onNotify() 436 } else if (msg->findInt32(PLAYEREVENT_CHANNEL_COUNT, &val1)) { in onNotify() 442 } else if (msg->findInt32(PLAYEREVENT_PLAY, &val1)) { in onNotify() 445 } else if (msg->findInt32(PLAYEREVENT_ERRORAFTERPREPARE, &val1)) { in onNotify() 507 if (msg->findInt32(WHATPARAM_BUFFERING_UPDATETHRESHOLD_PERCENT, &thresholdPercent)) { in onSetBufferingUpdateThreshold() 527 if (msg->findInt32(WHATPARAM_SETPLAYEVENTS_FLAGS, &eventFlags) && in onSetPlayEvents() 528 msg->findInt32(WHATPARAM_SETPLAYEVENTS_MARKER, &markerPositionMs) && in onSetPlayEvents() [all …]
|
D | android_AudioSfDecoder.cpp | 279 bool hasChannelCount = meta->findInt32(kKeyChannelCount, &channelCount); in onPrepare() 281 bool hasSampleRate = meta->findInt32(kKeySampleRate, &sr); in onPrepare() 334 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in onPrepare() 338 CHECK(meta->findInt32(kKeySampleRate, &sr)); in onPrepare() 408 CHECK(msg->findInt32(WHATPARAM_LOOP_LOOPING, &loop)); in onLoop() 634 if (msg->findInt32(PLAYEREVENT_PREFETCHSTATUSCHANGE, &val)) { in onNotify() 638 else if (msg->findInt32(PLAYEREVENT_PREFETCHFILLLEVELUPDATE, &val)) { in onNotify() 642 else if (msg->findInt32(PLAYEREVENT_ENDOFSTREAM, &val)) { in onNotify() 769 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in hasNewDecodeParams() 771 CHECK(meta->findInt32(kKeySampleRate, &sr)); in hasNewDecodeParams()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | MyHandler.h | 475 CHECK(msg->findInt32("result", &result)); in onMessageReceived() 501 if (msg->findInt32("reconnect", &reconnect) && reconnect) { in onMessageReceived() 513 CHECK(msg->findInt32("result", &result)); in onMessageReceived() 629 CHECK(msg->findInt32("result", &result)); in onMessageReceived() 683 CHECK(msg->findInt32("result", &result)); in onMessageReceived() 815 CHECK(msg->findInt32("result", &result)); in onMessageReceived() 845 CHECK(msg->findInt32("generation", &generation)); in onMessageReceived() 870 CHECK(msg->findInt32("result", &result)); in onMessageReceived() 876 CHECK(msg->findInt32("generation", &generation)); in onMessageReceived() 927 if (msg->findInt32("reconnect", &reconnect) && reconnect) { in onMessageReceived() [all …]
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodec.cpp | 828 if (!msg->findInt32("encoder", &encoder)) { in configure() 833 if (!msg->findInt32("flags", &flags)) { in configure() 844 && msg->findInt32("android._input-metadata-buffer-type", &storeMeta) in configure() 865 if (msg->findInt32("feature-tunneled-playback", &tunneled) && tunneled != 0) { in configure() 891 if (!msg->findInt32(KEY_SAMPLE_RATE, &i32)) { in configure() 895 if (!msg->findInt32(KEY_CHANNEL_COUNT, &i32)) { in configure() 901 && !msg->findInt32(KEY_BIT_RATE, &i32) in configure() 910 if (!msg->findInt32(KEY_WIDTH, &width)) { in configure() 914 if (!msg->findInt32(KEY_HEIGHT, &height)) { in configure() 920 if (msg->findInt32(KEY_BITRATE_MODE, &mode) && mode == BITRATE_MODE_CQ) { in configure() [all …]
|
/frameworks/av/cmds/stagefright/ |
D | mediafilter.cpp | 198 CHECK(srcFormat->findInt32("stride", &srcStride) in tryCopyDecodedBuffer() 199 && srcFormat->findInt32("slice-height", &srcSliceHeight) in tryCopyDecodedBuffer() 200 && srcFormat->findInt32("width", &srcWidth) in tryCopyDecodedBuffer() 201 && srcFormat->findInt32("height", & srcHeight) in tryCopyDecodedBuffer() 202 && srcFormat->findInt32("color-format", &srcColorFormat)); in tryCopyDecodedBuffer() 203 CHECK(destFormat->findInt32("stride", &destStride) in tryCopyDecodedBuffer() 204 && destFormat->findInt32("slice-height", &destSliceHeight) in tryCopyDecodedBuffer() 205 && destFormat->findInt32("width", &destWidth) in tryCopyDecodedBuffer() 206 && destFormat->findInt32("height", & destHeight) in tryCopyDecodedBuffer() 207 && destFormat->findInt32("color-format", &destColorFormat)); in tryCopyDecodedBuffer()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmWriter.cpp | 89 if (!md->findInt32(kKeyWidth, &width) in videoTrack() 90 || !md->findInt32(kKeyHeight, &height) in videoTrack() 119 if (!md->findInt32(kKeyChannelCount, &nChannels) in audioTrack() 120 || !md->findInt32(kKeySampleRate, &samplerate) in audioTrack() 128 if (!md->findInt32(kKeyBitsPerSample, &bitsPerSample)) { in audioTrack() 499 params->findInt32(kKeyRealTimeRecording, &isRealTimeRecording); in start() 514 if (params->findInt32(kKeyTimeScale, &tcsl)) { in start() 553 params->findInt32(kKeyBitRate, &bitRate); in start()
|