/frameworks/av/media/libstagefright/ |
H A D | SurfaceMediaSource.cpp | 233 sp<MetaData> meta = new MetaData; local 235 meta->setInt32(kKeyWidth, mWidth); 236 meta->setInt32(kKeyHeight, mHeight); 240 meta->setInt32(kKeyColorFormat, OMX_COLOR_FormatAndroidOpaque); 241 meta->setInt32(kKeyStride, mWidth); 242 meta->setInt32(kKeySliceHeight, mHeight); 243 meta->setInt32(kKeyFrameRate, mFrameRate); 244 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW); 245 return meta;
|
H A D | Utils.cpp | 67 const sp<MetaData> &meta, sp<AMessage> *format) { 71 CHECK(meta->findCString(kKeyMIMEType, &mime)); 77 if (meta->findInt64(kKeyDuration, &durationUs)) { 83 CHECK(meta->findInt32(kKeyWidth, &width)); 84 CHECK(meta->findInt32(kKeyHeight, &height)); 90 CHECK(meta->findInt32(kKeyChannelCount, &numChannels)); 91 CHECK(meta->findInt32(kKeySampleRate, &sampleRate)); 97 if (meta->findInt32(kKeyChannelMask, &channelMask)) { 102 if (meta->findInt32(kKeyEncoderDelay, &delay)) { 106 if (meta 66 convertMetaDataToMessage( const sp<MetaData> &meta, sp<AMessage> *format) argument 353 convertMessageToMetaData(const sp<AMessage> &msg, sp<MetaData> &meta) argument [all...] |
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 | FragmentedMP4Extractor.cpp | 165 sp<MetaData> meta = new MetaData(); local 166 convertMessageToMetaData(msg, meta); 167 return meta; 278 sp<AMessage> meta = parseBuffer->meta(); local 280 CHECK(meta->findInt64("timeUs", &timeUs)); 325 sp<AMessage> *meta) { 436 *meta = new AMessage; 437 (*meta)->setInt64("meta 323 Sniff( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *meta) argument 447 SniffFragmentedMP4( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *meta) argument [all...] |
H A D | StagefrightMetadataRetriever.cpp | 246 sp<MetaData> meta = decoder->getFormat(); local 249 CHECK(meta->findInt32(kKeyWidth, &width)); 250 CHECK(meta->findInt32(kKeyHeight, &height)); 253 if (!meta->findRect( 276 if (meta->findInt32(kKeyDisplayWidth, &displayWidth)) { 279 if (meta->findInt32(kKeyDisplayHeight, &displayHeight)) { 284 CHECK(meta->findInt32(kKeyColorFormat, &srcFormat)); 347 sp<MetaData> meta = mExtractor->getTrackMetaData(i); local 350 CHECK(meta->findCString(kKeyMIMEType, &mime)); 440 sp<MetaData> meta local [all...] |
H A D | WAVExtractor.cpp | 58 const sp<MetaData> &meta, 103 sp<MetaData> meta = new MetaData; local 106 return meta; 109 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_CONTAINER_WAV); 111 return meta; 319 const sp<MetaData> &meta, 324 mMeta(meta), 317 WAVSource( const sp<DataSource> &dataSource, const sp<MetaData> &meta, uint16_t waveFormat, int32_t bitsPerSample, off64_t offset, size_t size) argument
|
H A D | CameraSource.cpp | 461 * @param storeMetaDataInVideoBuffers request to store meta 463 * store meta data in video buffers may not be honored 600 status_t CameraSource::start(MetaData *meta) { argument 616 if (meta) { 618 if (meta->findInt64(kKeyTime, &startTimeUs)) { 623 if (meta->findInt32(kKeyNumBuffers, &nBuffers)) {
|
H A D | MP3Extractor.cpp | 215 const sp<MetaData> &meta, const sp<DataSource> &source, 250 const sp<DataSource> &source, const sp<AMessage> &meta) 263 if (meta != NULL 264 && meta->findInt64("offset", &meta_offset) 265 && meta->findInt32("header", (int32_t *)&meta_header) 266 && meta->findInt64("post-id3-offset", &meta_post_id3_offset)) { 417 const sp<MetaData> &meta, const sp<DataSource> &source, 420 : mMeta(meta), 582 sp<MetaData> meta = new MetaData; local 585 return meta; 249 MP3Extractor( const sp<DataSource> &source, const sp<AMessage> &meta) argument 416 MP3Source( const sp<MetaData> &meta, const sp<DataSource> &source, off64_t first_frame_pos, uint32_t fixed_header, const sp<MP3Seeker> &seeker) argument 647 SniffMP3( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *meta) argument [all...] |
H A D | MPEG2TSWriter.cpp | 104 sp<MetaData> meta = mSource->getFormat(); local 106 CHECK(meta->findCString(kKeyMIMEType, &mime)); 149 sp<MetaData> meta = mSource->getFormat(); local 152 CHECK(meta->findCString(kKeyMIMEType, &mime)); 158 if (!meta->findData(kKeyESDS, &type, &data, &size)) { 188 if (!meta->findData(kKeyAVCC, &type, &data, &size)) { 244 out->meta()->setInt64("timeUs", 0ll); 266 copy->meta()->setInt64("timeUs", timeUs); 271 copy->meta()->setInt32("isSync", true); 298 mAACBuffer->meta() 542 sp<MetaData> meta = source->getFormat(); local [all...] |
H A D | MediaCodec.cpp | 421 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); 426 CHECK(buffer->meta()->findInt32("omxFlags", &omxFlags)); 638 sp<MetaData> meta = new MetaData; local 639 meta->setInt32(kKeyWidth, width); 640 meta->setInt32(kKeyHeight, height); 641 meta->setInt32(kKeyColorFormat, colorFormat); 644 new SoftwareRenderer(mNativeWindow, meta); 718 buffer->meta()->setInt32("omxFlags", omxFlags); 1372 info->mData->meta()->setInt64("timeUs", timeUs); 1375 info->mData->meta() [all...] |
H A D | avc_utils.cpp | 297 sp<MetaData> meta = new MetaData; local 298 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); 300 meta->setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); 301 meta->setInt32(kKeyWidth, width); 302 meta->setInt32(kKeyHeight, height); 307 return meta; 357 sp<MetaData> meta = new MetaData; local 358 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_AAC); 365 meta->setInt32(kKeySampleRate, kSamplingFreq[sampling_freq_index]); 366 meta [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/ |
H A D | AACEncoder.cpp | 33 AACEncoder::AACEncoder(const sp<MediaSource> &source, const sp<MetaData> &meta) argument 35 mMeta(meta),
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | M3UParser.cpp | 58 sp<AMessage> M3UParser::meta() { function in class:android::M3UParser 66 bool M3UParser::itemAt(size_t index, AString *uri, sp<AMessage> *meta) { argument 71 if (meta) { 72 *meta = NULL; 83 if (meta) { 84 *meta = mItems.itemAt(index).mMeta; 275 const AString &line, sp<AMessage> *meta, const char *key) { 289 if (meta->get() == NULL) { 290 *meta = new AMessage; 292 (*meta) 274 parseMetaData( const AString &line, sp<AMessage> *meta, const char *key) argument 298 parseMetaDataDuration( const AString &line, sp<AMessage> *meta, const char *key) argument 322 parseStreamInf( const AString &line, sp<AMessage> *meta) argument 400 parseCipherInfo( const AString &line, sp<AMessage> *meta, const AString &baseURI) argument [all...] |
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | MPEG2TSExtractor.cpp | 82 sp<MetaData> meta = mImpl->getFormat(); local 87 meta->setInt64(kKeyDuration, durationUs); 90 return meta; 140 sp<MetaData> meta = mSourceImpls.editItemAt(index)->getFormat(); local 142 CHECK(meta->findCString(kKeyMIMEType, &mime)); 159 sp<MetaData> meta = new MetaData; local 160 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_CONTAINER_MPEG2TS); 162 return meta;
|
/frameworks/wilhelm/src/android/util/ |
H A D | AacAdtsExtractor.cpp | 169 sp<MetaData> meta = new MetaData; local 172 return meta; 175 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_AAC_ADTS); 177 return meta; 210 const sp<DataSource> &source, const sp<MetaData> &meta, 213 mMeta(meta), 209 AacAdtsSource( const sp<DataSource> &source, const sp<MetaData> &meta, int64_t frame_duration_us) argument
|
/frameworks/base/media/tests/omxjpegdecoder/ |
H A D | omx_jpeg_decoder.cpp | 102 sp<MetaData> meta = source->getFormat(); local 105 meta->findInt32(kKeyWidth, &width); 106 meta->findInt32(kKeyHeight, &height); 132 sp<MetaData> meta = source->getFormat(); local 134 client->interface(), meta, false /* createEncoder */, source);
|
/frameworks/av/cmds/stagefright/ |
H A D | stream.cpp | 171 const sp<MetaData> &meta = extractor->getTrackMetaData(i); local 174 CHECK(meta->findCString(kKeyMIMEType, &mime));
|
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...] |
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
H A D | VideoEditorAudioEncoder.cpp | 111 status_t VideoEditorAudioEncoderSource::start(MetaData *meta) { argument 386 // Create the meta data for the encoder
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPConnection.cpp | 484 sp<AMessage> meta = buffer->meta(); local 485 meta->setInt32("ssrc", srcId); 486 meta->setInt32("rtp-time", rtpTime); 487 meta->setInt32("PT", data[1] & 0x7f); 488 meta->setInt32("M", data[1] >> 7);
|
H A D | ARTPWriter.cpp | 456 sp<MetaData> meta = mSource->getFormat(); local 492 CHECK(meta->findInt32(kKeyWidth, &width)); 493 CHECK(meta->findInt32(kKeyHeight, &height));
|
/frameworks/base/core/java/android/text/method/ |
H A D | MetaKeyKeyListener.java | 29 * meta keys such as SHIFT, ALT and SYM as well as the pseudo-meta state of selecting text. 31 * Key listeners that care about meta state should inherit from this class; 34 * This class provides two mechanisms for tracking meta state that can be used 39 * {@link #getMetaState(long)} operate on a meta key state bit mask.</li> 41 * {@link #getMetaState(CharSequence, int)} operate on meta key state flags stored 43 * meta key state of the text editor; they do not carry any positional information.</li> 53 * meta state integer managed by the client. These latched or locked modifiers 56 * In other words, the {@link MetaKeyKeyListener} augments the meta state 58 * to ensure that meta key 171 getMetaState(CharSequence text, int meta) argument 190 getActive(CharSequence text, Object meta, int on, int lock) argument 430 getMetaState(long state, int meta) argument [all...] |
/frameworks/wilhelm/src/android/ |
H A D | android_AudioSfDecoder.cpp | 237 sp<MetaData> meta = extractor->getTrackMetaData(i); local 240 CHECK(meta->findCString(kKeyMIMEType, &mime)); 261 sp<MetaData> meta = source->getFormat(); local 266 bool hasChannelCount = meta->findInt32(kKeyChannelCount, &channelCount); 268 bool hasSampleRate = meta->findInt32(kKeySampleRate, &sr); 275 && meta->findInt64(kKeyDuration, &durationUs)) { 301 client.interface(), meta, false /* createEncoder */, 310 meta = source->getFormat(); 327 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); 331 CHECK(meta 759 sp<MetaData> meta = mAudioSource->getFormat(); local [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
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)) {
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
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) {
|