/frameworks/av/cmds/stagefright/ |
H A D | SineSource.cpp | 51 sp<MetaData> meta = new MetaData; local 52 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); 53 meta->setInt32(kKeyChannelCount, mNumChannels); 54 meta->setInt32(kKeySampleRate, mSampleRate); 55 meta->setInt32(kKeyMaxInputSize, kBufferSize); 57 return meta;
|
H A D | audioloop.cpp | 38 sp<MetaData> meta = new MetaData; local 40 meta->setCString( 45 meta->setInt32(kKeyChannelCount, kNumChannels); 46 meta->setInt32(kKeySampleRate, kSampleRate); 50 meta->setInt32(kKeyMaxInputSize, maxInputSize); 55 meta, true /* createEncoder */, 67 meta, false /* createEncoder */,
|
H A D | recordvideo.cpp | 66 sp<MetaData> meta = new MetaData; local 67 meta->setInt32(kKeyWidth, mWidth); 68 meta->setInt32(kKeyHeight, mHeight); 69 meta->setInt32(kKeyColorFormat, mColorFormat); 70 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW); 72 return meta;
|
H A D | sf2.cpp | 84 sp<MetaData> meta = extractor->getTrackMetaData(i); local 87 CHECK(meta->findCString(kKeyMIMEType, &mime)); 265 sp<AMessage> makeFormat(const sp<MetaData> &meta) { argument 269 CHECK(meta->findCString(kKeyMIMEType, &mime)); 276 CHECK(meta->findInt32(kKeyWidth, &width)); 277 CHECK(meta->findInt32(kKeyHeight, &height)); 285 CHECK(meta->findInt32(kKeyChannelCount, &numChannels)); 286 CHECK(meta->findInt32(kKeySampleRate, &sampleRate)); 292 if (meta->findInt32(kKeyIsADTS, &isADTS) && isADTS != 0) { 300 if (meta [all...] |
H A D | stagefright.cpp | 118 static void displayAVCProfileLevelIfPossible(const sp<MetaData>& meta) { argument 122 if (meta->findData(kKeyAVCC, &type, &data, &size)) { 166 sp<MetaData> meta = source->getFormat(); local 169 CHECK(meta->findCString(kKeyMIMEType, &mime)); 184 client->interface(), meta, false /* createEncoder */, source, 193 displayAVCProfileLevelIfPossible(meta); 223 CHECK(meta->findInt64(kKeyDuration, &durationUs)); 1027 sp<MetaData> meta = extractor->getMetaData(); local 1029 if (meta != NULL) { 1031 CHECK(meta 1069 sp<MetaData> meta; local [all...] |
H A D | stream.cpp | 171 const sp<MetaData> &meta = extractor->getTrackMetaData(i); local 174 CHECK(meta->findCString(kKeyMIMEType, &mime));
|
/frameworks/av/libvideoeditor/lvpp/ |
H A D | DummyAudioSource.cpp | 108 sp<MetaData> meta = new MetaData; local 109 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); 110 meta->setInt32(kKeyChannelCount, mChannelCount); 111 meta->setInt32(kKeySampleRate, mSamplingRate); 112 meta->setInt64(kKeyDuration, mFrameDurationUs); 113 meta->setCString(kKeyDecoderComponent, "DummyAudioSource"); 115 return meta;
|
H A D | DummyVideoSource.cpp | 108 sp<MetaData> meta = new MetaData; local 109 meta->setInt32(kKeyColorFormat, OMX_COLOR_FormatYUV420Planar); 110 meta->setInt32(kKeyWidth, mFrameWidth); 111 meta->setInt32(kKeyHeight, mFrameHeight); 112 meta->setInt64(kKeyDuration, mImageClipDuration); 113 meta->setCString(kKeyDecoderComponent, "DummyVideoSource"); 115 return meta;
|
H A D | NativeWindowRenderer.cpp | 583 void RenderInput::updateVideoSize(sp<MetaData> meta) { argument 584 CHECK(meta->findInt32(kKeyWidth, &mWidth)); 585 CHECK(meta->findInt32(kKeyHeight, &mHeight)); 588 if (meta->findRect(kKeyCropRect, &left, &top, &right, &bottom)) { 596 if (!meta->findInt32(kKeyRotation, &rotationDegrees)) {
|
H A D | PreviewPlayer.cpp | 188 sp<MetaData> meta = extractor->getTrackMetaData(i); local 191 CHECK(meta->findCString(kKeyMIMEType, &mime)); 407 sp<MetaData> meta; local 409 meta = mVideoSource->getFormat(); 411 if (meta->findCString(kKeyDecoderComponent, &pVidSrcType)) { 421 meta = anAudioSource->getFormat(); 423 if (meta->findCString(kKeyDecoderComponent, &pSrcType1)) { 425 meta = mAudioSource->getFormat(); 426 if (meta->findCString(kKeyDecoderComponent, &pSrcType2)) { 702 sp<MetaData> meta local 1551 updateSizeToRender(sp<MetaData> meta) argument 1669 sp<MetaData> meta = mVideoSource->getFormat(); local [all...] |
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
H A D | VideoEditor3gpReader.cpp | 505 sp<MetaData> meta = pC->mExtractor->getMetaData(); local 506 meta->findInt32(kKeyIsDRM, &isDRMProtected); 1417 sp<MetaData> meta = NULL; local 1446 meta = pC->mExtractor->getTrackMetaData(temp); 1447 CHECK(meta->findCString(kKeyMIMEType, &mime)); 1480 meta->findInt32(kKeyWidth, 1482 meta->findInt32(kKeyHeight, 1486 meta->findInt64(kKeyDuration, (int64_t*)&(Duration)); 1505 meta->findInt32(kKeyMaxInputSize, (int32_t*)&(maxAUSize)); 1519 meta [all...] |
H A D | VideoEditorAudioDecoder.cpp | 135 status_t VideoEditorAudioDecoderSource::start(MetaData *meta) { argument 461 // Create the meta data for the decoder 739 sp<MetaData> meta = pDecoderContext->mDecoder->getFormat(); local 742 CHECK(meta->findInt32(kKeySampleRate, &sampleRate)); 743 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
|
H A D | VideoEditorAudioEncoder.cpp | 111 status_t VideoEditorAudioEncoderSource::start(MetaData *meta) { argument 386 // Create the meta data for the encoder
|
H A D | VideoEditorMp3Reader.cpp | 188 sp<MetaData> meta = pReaderContext->mExtractor->getMetaData(); local 189 meta->findInt32(kKeyIsDRM, &isDRMProtected); 439 sp<MetaData> meta = NULL; local 460 meta = pReaderContext->mExtractor->getTrackMetaData(temp); 462 CHECK(meta->findCString(kKeyMIMEType, &mime)); 485 streamDesc.duration = meta->findInt64(kKeyDuration, &Duration); 488 meta->findInt32(kKeyBitRate, (int32_t*)&streamDesc.averageBitrate); 489 meta->findInt32(kKeySampleRate, (int32_t*)&streamDesc.timeScale); 519 if (meta == NULL) { 520 ALOGV("VideoEditorMp3Reader_getNextStream meta i [all...] |
H A D | VideoEditorUtils.cpp | 49 void displayMetaData(const sp<MetaData> meta) { argument 59 if (meta->findCString(kKeyMIMEType, &charData)) { 62 if (meta->findInt32(kKeyWidth, &int32Data)) { 65 if (meta->findInt32(kKeyHeight, &int32Data)) { 68 if (meta->findInt32(kKeyIFramesInterval, &int32Data)) { 71 if (meta->findInt32(kKeyStride, &int32Data)) { 74 if (meta->findInt32(kKeySliceHeight, &int32Data)) { 77 if (meta->findInt32(kKeyChannelCount, &int32Data)) { 80 if (meta->findInt32(kKeySampleRate, &int32Data)) { 83 if (meta [all...] |
H A D | VideoEditorVideoDecoder.cpp | 195 mBuffer->meta_data()->clear(); // clear all the meta data 788 MetaData* meta) { 799 VIDEOEDITOR_CHECK(M4OSA_NULL != meta, M4ERR_PARAMETER); 805 success = meta->findInt32(kKeyWidth, &vWidth); 807 success = meta->findInt32(kKeyHeight, &vHeight); 815 if (!meta->findRect( 787 VideoEditorVideoDecoder_configureFromMetadata(M4OSA_Context pContext, MetaData* meta) argument
|
H A D | VideoEditorVideoEncoder.cpp | 133 status_t VideoEditorVideoEncoderSource::start(MetaData *meta) { argument 616 // Create the meta data for the encoder
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 1383 sp<MetaData> meta = cameraSource->getFormat(); local 1386 CHECK(meta->findInt32(kKeyWidth, &width)); 1387 CHECK(meta->findInt32(kKeyHeight, &height)); 1388 CHECK(meta->findInt32(kKeyStride, &stride)); 1389 CHECK(meta->findInt32(kKeySliceHeight, &sliceHeight)); 1390 CHECK(meta->findInt32(kKeyColorFormat, &colorFormat)); 1534 sp<MetaData> *meta) { 1535 (*meta)->setInt64(kKeyTime, startTimeUs); 1536 (*meta)->setInt32(kKeyFileType, mOutputFormat); 1537 (*meta) 1533 setupMPEG4MetaData(int64_t startTimeUs, int32_t totalBitRate, sp<MetaData> *meta) argument 1560 sp<MetaData> meta = new MetaData; local [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 68 sp<MetaData> meta = extractor->getTrackMetaData(i); local 71 CHECK(meta->findCString(kKeyMIMEType, &mime)); 93 if (meta->findInt64(kKeyDuration, &durationUs)) { 233 buffer->meta()->setInt64("timeUs", timeUs);
|
H A D | NuPlayer.cpp | 753 CHECK(accessUnit->meta()->findInt32("discontinuity", &type)); 774 if (accessUnit->meta()->findMessage("extra", &extra) 836 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); 877 CHECK(buffer->meta()->findInt64("timeUs", &mediaTimeUs)); 950 sp<MetaData> meta = getFormatMeta(audio); local 952 if (meta == NULL) { 958 if(convertMetaDataToMessage(meta, &msg) == OK) {
|
/frameworks/av/media/libstagefright/ |
H A D | AACExtractor.cpp | 40 const sp<MetaData> &meta, 140 sp<AMessage> meta = _meta; local 142 if (meta == NULL) { 147 if (!SniffAAC(mDataSource, &mimeType, &confidence, &meta)) { 153 CHECK(meta->findInt64("offset", &offset)); 199 sp<MetaData> meta = new MetaData; local 202 return meta; 205 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_AAC_ADTS); 207 return meta; 236 const sp<DataSource> &source, const sp<MetaData> &meta, 235 AACSource( const sp<DataSource> &source, const sp<MetaData> &meta, const Vector<uint64_t> &offset_vector, int64_t frame_duration_us) argument 334 SniffAAC( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *meta) argument [all...] |
H A D | AACWriter.cpp | 95 sp<MetaData> meta = source->getFormat(); local 98 CHECK(meta->findCString(kKeyMIMEType, &mime)); 101 CHECK(meta->findInt32(kKeyChannelCount, &mChannelCount)); 102 CHECK(meta->findInt32(kKeySampleRate, &mSampleRate)); 106 if (meta->findInt32(kKeyAACProfile, &mAACProfile)) {
|
H A D | AMRExtractor.cpp | 37 const sp<MetaData> &meta, 168 sp<MetaData> meta = new MetaData; local 171 return meta; 174 meta->setCString(kKeyMIMEType, mIsWide ? "audio/amr-wb" : "audio/amr"); 176 return meta; 203 const sp<DataSource> &source, const sp<MetaData> &meta, 206 mMeta(meta), 202 AMRSource( const sp<DataSource> &source, const sp<MetaData> &meta, bool isWide, const off64_t *offset_table, size_t offset_table_length) argument
|
H A D | AMRWriter.cpp | 78 sp<MetaData> meta = source->getFormat(); local 81 CHECK(meta->findCString(kKeyMIMEType, &mime)); 92 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); 94 CHECK(meta->findInt32(kKeySampleRate, &sampleRate));
|
H A D | AVIExtractor.cpp | 394 sp<MetaData> meta = new MetaData; local 397 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_CONTAINER_AVI); 400 return meta; 611 sp<MetaData> meta = new MetaData; local 649 meta->setCString(kKeyMIMEType, mime); 654 track->mMeta = meta; 1081 sp<MetaData> meta = MakeAVCCodecSpecificData(buffer); local 1083 if (meta == NULL) { 1089 CHECK(meta->findInt32(kKeyWidth, &width)); 1090 CHECK(meta [all...] |