Home
last modified time | relevance | path

Searched refs:meta (Results 1 – 25 of 102) sorted by relevance

12345

/frameworks/base/media/libstagefright/
DShoutcastSource.cpp81 sp<MetaData> meta = new MetaData; in getFormat() local
82 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_MPEG); in getFormat()
83 meta->setInt32(kKeySampleRate, 44100); in getFormat()
84 meta->setInt32(kKeyChannelCount, 2); // XXX in getFormat()
86 return meta; in getFormat()
129 char meta[255 * 16]; in read() local
133 n = mHttp->receive(&meta[meta_length], meta_size - meta_length); in read()
141 while (meta_length > 0 && meta[meta_length - 1] == '\0') { in read()
148 buffer->meta_data()->setData('shou', 'shou', meta, meta_length); in read()
DMP3Extractor.cpp465 const sp<MetaData> &meta, const sp<DataSource> &source,
498 const sp<DataSource> &source, const sp<AMessage> &meta) in MP3Extractor() argument
510 if (meta != NULL in MP3Extractor()
511 && meta->findInt64("offset", &meta_offset) in MP3Extractor()
512 && meta->findInt32("header", (int32_t *)&meta_header)) { in MP3Extractor()
588 const sp<MetaData> &meta, const sp<DataSource> &source, in MP3Source() argument
591 : mMeta(meta), in MP3Source()
753 sp<MetaData> meta = new MetaData; in getMetaData() local
756 return meta; in getMetaData()
759 meta->setCString(kKeyMIMEType, "audio/mpeg"); in getMetaData()
[all …]
DJPEGSource.cpp101 sp<MetaData> meta = new MetaData; in getFormat() local
102 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_IMAGE_JPEG); in getFormat()
103 meta->setInt32(kKeyWidth, mWidth); in getFormat()
104 meta->setInt32(kKeyHeight, mHeight); in getFormat()
105 meta->setInt32(kKeyMaxInputSize, mSize); in getFormat()
107 return meta; in getFormat()
DStagefrightMetadataRetriever.cpp202 sp<MetaData> meta = decoder->getFormat(); in extractVideoFrameWithCodecFlags() local
205 CHECK(meta->findInt32(kKeyWidth, &width)); in extractVideoFrameWithCodecFlags()
206 CHECK(meta->findInt32(kKeyHeight, &height)); in extractVideoFrameWithCodecFlags()
223 CHECK(meta->findInt32(kKeyColorFormat, &srcFormat)); in extractVideoFrameWithCodecFlags()
256 sp<MetaData> meta = mExtractor->getTrackMetaData(i); in getFrameAtTime() local
259 CHECK(meta->findCString(kKeyMIMEType, &mime)); in getFrameAtTime()
338 sp<MetaData> meta = mExtractor->getMetaData(); in parseMetaData() local
364 if (meta->findCString(kMap[i].from, &value)) { in parseMetaData()
372 if (meta->findData(kKeyAlbumArt, &type, &data, &dataSize)) { in parseMetaData()
405 CHECK(meta->findCString(kKeyMIMEType, &fileMIME)); in parseMetaData()
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java108 public int get(int keyCode, int meta) in get() argument
110 if ((meta & MetaKeyKeyListener.META_CAP_LOCKED) != 0) { in get()
111 meta |= KeyEvent.META_SHIFT_ON; in get()
113 if ((meta & MetaKeyKeyListener.META_ALT_LOCKED) != 0) { in get()
114 meta |= KeyEvent.META_ALT_ON; in get()
118 if ((meta & MetaKeyKeyListener.META_CAP_LOCKED) != 0) { in get()
121 meta &= ~KeyEvent.META_SHIFT_ON; in get()
125 int ret = get_native(mPointer, keyCode, meta); in get()
213 public char[] meta = new char[META_LENGTH]; field in KeyCharacterMap.KeyData
227 if (results.meta.length >= KeyData.META_LENGTH) { in getKeyData()
[all …]
/frameworks/base/media/libstagefright/httplive/
DM3UParser.cpp54 sp<AMessage> M3UParser::meta() { in meta() function in android::M3UParser
62 bool M3UParser::itemAt(size_t index, AString *uri, sp<AMessage> *meta) { in itemAt() argument
64 if (meta) { *meta = NULL; } in itemAt()
72 if (meta) { in itemAt()
73 *meta = mItems.itemAt(index).mMeta; in itemAt()
217 const AString &line, sp<AMessage> *meta, const char *key) { in parseMetaData() argument
231 if (meta->get() == NULL) { in parseMetaData()
232 *meta = new AMessage; in parseMetaData()
234 (*meta)->setInt32(key, x); in parseMetaData()
241 const AString &line, sp<AMessage> *meta) { in parseStreamInf() argument
[all …]
/frameworks/base/core/java/android/text/method/
DDialerKeyListener.java52 int meta = getMetaState(content); in lookup() local
59 if ((meta & (KeyEvent.META_ALT_ON | KeyEvent.META_SHIFT_ON)) == 0) { in lookup()
77 if (meta != 0) { in lookup()
82 for (int i = 1; i < kd.meta.length; i++) { in lookup()
83 if (ok(accepted, kd.meta[i])) { in lookup()
84 return kd.meta[i]; in lookup()
DMetaKeyKeyListener.java112 public static final int getMetaState(CharSequence text, int meta) { in getMetaState() argument
113 switch (meta) { in getMetaState()
131 private static int getActive(CharSequence text, Object meta, in getActive() argument
138 int flag = sp.getSpanFlags(meta); in getActive()
348 public static final int getMetaState(long state, int meta) { in getMetaState() argument
349 switch (meta) { in getMetaState()
351 return getActive(state, meta, 1, 2); in getMetaState()
354 return getActive(state, meta, 1, 2); in getMetaState()
357 return getActive(state, meta, 1, 2); in getMetaState()
364 private static int getActive(long state, int meta, int on, int lock) { in getActive() argument
[all …]
/frameworks/base/cmds/stagefright/
Daudioloop.cpp38 sp<MetaData> meta = new MetaData; in main() local
40 meta->setCString( in main()
45 meta->setInt32(kKeyChannelCount, kNumChannels); in main()
46 meta->setInt32(kKeySampleRate, kSampleRate); in main()
50 meta->setInt32(kKeyMaxInputSize, maxInputSize); in main()
55 meta, true /* createEncoder */, in main()
67 meta, false /* createEncoder */, in main()
Drecord.cpp59 sp<MetaData> meta = new MetaData; in getFormat() local
60 meta->setInt32(kKeyWidth, mWidth); in getFormat()
61 meta->setInt32(kKeyHeight, mHeight); in getFormat()
62 meta->setInt32(kKeyColorFormat, mColorFormat); in getFormat()
63 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW); in getFormat()
65 return meta; in getFormat()
128 sp<MetaData> meta; in createSource() local
130 meta = extractor->getTrackMetaData(i); in createSource()
131 CHECK(meta.get() != NULL); in createSource()
134 if (!meta->findCString(kKeyMIMEType, &mime)) { in createSource()
[all …]
DSineSource.cpp51 sp<MetaData> meta = new MetaData; in getFormat() local
52 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); in getFormat()
53 meta->setInt32(kKeyChannelCount, mNumChannels); in getFormat()
54 meta->setInt32(kKeySampleRate, mSampleRate); in getFormat()
55 meta->setInt32(kKeyMaxInputSize, kBufferSize); in getFormat()
57 return meta; in getFormat()
/frameworks/base/media/libstagefright/mpeg2ts/
DAnotherPacketSource.cpp31 AnotherPacketSource::AnotherPacketSource(const sp<MetaData> &meta) in AnotherPacketSource() argument
32 : mFormat(meta), in AnotherPacketSource()
65 if (buffer->meta()->findInt32("discontinuity", &discontinuity) in read()
70 CHECK(buffer->meta()->findInt64( in read()
89 if (buffer->meta()->findInt32("damaged", &damaged) && damaged) { in queueAccessUnit()
95 CHECK(buffer->meta()->findInt64("time", &timeUs)); in queueAccessUnit()
105 buffer->meta()->setInt32("discontinuity", true); in queueDiscontinuity()
DMPEG2TSExtractor.cpp82 sp<MetaData> meta = mImpl->getFormat(); in getFormat() local
87 meta->setInt64(kKeyDuration, durationUs); in getFormat()
90 return meta; in getFormat()
140 sp<MetaData> meta = mSourceImpls.editItemAt(index)->getFormat(); in getTrack() local
142 CHECK(meta->findCString(kKeyMIMEType, &mime)); in getTrack()
159 sp<MetaData> meta = new MetaData; in getMetaData() local
160 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_CONTAINER_MPEG2TS); in getMetaData()
162 return meta; in getMetaData()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaMetadataTest.java55 public static METADATA_EXPECTEDRESULT meta; field in MediaMetadataTest
216 assertEquals(TAG, meta_data_file[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData()
220 assertEquals(TAG, meta_data_file[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData()
224 assertEquals(TAG, meta_data_file[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData()
228 assertEquals(TAG, meta_data_file[fileIndex][meta.AUTHOR.ordinal()], value); in validateMetatData()
232 assertEquals(TAG, meta_data_file[fileIndex][meta.COMPOSER.ordinal()], value); in validateMetatData()
236 assertEquals(TAG, meta_data_file[fileIndex][meta.DATE.ordinal()], value); in validateMetatData()
240 assertEquals(TAG, meta_data_file[fileIndex][meta.GENRE.ordinal()], value); in validateMetatData()
244 assertEquals(TAG, meta_data_file[fileIndex][meta.TITLE.ordinal()], value); in validateMetatData()
248 assertEquals(TAG, meta_data_file[fileIndex][meta.YEAR.ordinal()], value); in validateMetatData()
[all …]
/frameworks/base/media/libstagefright/rtsp/
DVideoSource.h40 sp<MetaData> meta = new MetaData; in getFormat() local
41 meta->setInt32(kKeyWidth, mWidth); in getFormat()
42 meta->setInt32(kKeyHeight, mHeight); in getFormat()
43 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW); in getFormat()
45 return meta; in getFormat()
DARTPAssembler.cpp69 CHECK(from->meta()->findInt64("ntp-time", (int64_t *)&ntpTime)); in CopyTimes()
72 CHECK(from->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in CopyTimes()
74 to->meta()->setInt64("ntp-time", ntpTime); in CopyTimes()
75 to->meta()->setInt32("rtp-time", rtpTime); in CopyTimes()
DARTPSource.cpp107 sp<AMessage> meta = (*it)->meta(); in timeUpdate() local
110 CHECK(meta->findInt32("rtp-time", (int32_t *)&rtpTime)); in timeUpdate()
112 meta->setInt64("ntp-time", RTP2NTP(rtpTime)); in timeUpdate()
121 sp<AMessage> meta = buffer->meta(); in queuePacket() local
124 CHECK(meta->findInt32("rtp-time", (int32_t *)&rtpTime)); in queuePacket()
126 meta->setInt64("ntp-time", RTP2NTP(rtpTime)); in queuePacket()
/frameworks/base/media/libstagefright/matroska/
DMatroskaExtractor.cpp156 sp<MetaData> meta = mExtractor->mTracks.itemAt(index).mMeta; in MatroskaSource() local
159 CHECK(meta->findCString(kKeyMIMEType, &mime)); in MatroskaSource()
167 CHECK(meta->findData( in MatroskaSource()
647 const sp<MetaData> &meta, const void *asi, size_t asiSize) { in addESDSFromAudioSpecificInfo() argument
671 meta->setData(kKeyESDS, 0, esds, esdsSize); in addESDSFromAudioSpecificInfo()
678 const sp<MetaData> &meta, in addVorbisCodecInfo() argument
694 meta->setData(kKeyVorbisInfo, 0, &codecPrivate[3], len1); in addVorbisCodecInfo()
699 meta->setData( in addVorbisCodecInfo()
720 sp<MetaData> meta = new MetaData; in addTracks() local
729 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in addTracks()
[all …]
/frameworks/base/media/libstagefright/codecs/amrnb/dec/
DAMRNBDecoder.cpp98 sp<MetaData> meta = new MetaData; in getFormat() local
99 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); in getFormat()
100 meta->setInt32(kKeyChannelCount, numChannels); in getFormat()
101 meta->setInt32(kKeySampleRate, sampleRate); in getFormat()
105 meta->setInt64(kKeyDuration, durationUs); in getFormat()
108 meta->setCString(kKeyDecoderComponent, "AMRNBDecoder"); in getFormat()
110 return meta; in getFormat()
/frameworks/base/media/libstagefright/codecs/vorbis/dec/
DVorbisDecoder.cpp83 sp<MetaData> meta = mSource->getFormat(); in start() local
93 CHECK(meta->findData(kKeyVorbisInfo, &type, &data, &size)); in start()
103 CHECK(meta->findData(kKeyVorbisBooks, &type, &data, &size)); in start()
150 sp<MetaData> meta = new MetaData; in getFormat() local
151 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); in getFormat()
152 meta->setInt32(kKeyChannelCount, mNumChannels); in getFormat()
153 meta->setInt32(kKeySampleRate, mSampleRate); in getFormat()
157 meta->setInt64(kKeyDuration, durationUs); in getFormat()
160 meta->setCString(kKeyDecoderComponent, "VorbisDecoder"); in getFormat()
162 return meta; in getFormat()
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/
DM4vH263Encoder.cpp67 const sp<MetaData>& meta) in M4vH263Encoder() argument
69 mMeta(meta), in M4vH263Encoder()
83 mInitCheck = initCheck(meta); in M4vH263Encoder()
96 status_t M4vH263Encoder::initCheck(const sp<MetaData>& meta) { in initCheck() argument
98 CHECK(meta->findInt32(kKeyWidth, &mVideoWidth)); in initCheck()
99 CHECK(meta->findInt32(kKeyHeight, &mVideoHeight)); in initCheck()
100 CHECK(meta->findInt32(kKeySampleRate, &mVideoFrameRate)); in initCheck()
101 CHECK(meta->findInt32(kKeyBitRate, &mVideoBitRate)); in initCheck()
104 CHECK(meta->findInt32(kKeyColorFormat, &mVideoColorFormat)); in initCheck()
135 CHECK(meta->findCString(kKeyMIMEType, &mime)); in initCheck()
[all …]
/frameworks/base/media/libstagefright/include/
DM3UParser.h37 sp<AMessage> meta();
40 bool itemAt(size_t index, AString *uri, sp<AMessage> *meta = NULL);
64 const AString &line, sp<AMessage> *meta, const char *key);
67 const AString &line, sp<AMessage> *meta);
/frameworks/base/media/libstagefright/codecs/g711/dec/
DG711Decoder.cpp91 sp<MetaData> meta = new MetaData; in getFormat() local
92 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); in getFormat()
93 meta->setInt32(kKeyChannelCount, numChannels); in getFormat()
94 meta->setInt32(kKeySampleRate, sampleRate); in getFormat()
98 meta->setInt64(kKeyDuration, durationUs); in getFormat()
101 meta->setCString(kKeyDecoderComponent, "G711Decoder"); in getFormat()
103 return meta; in getFormat()
/frameworks/base/media/libstagefright/codecs/amrwb/
DAMRWBDecoder.cpp103 sp<MetaData> meta = new MetaData; in getFormat() local
104 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); in getFormat()
105 meta->setInt32(kKeyChannelCount, numChannels); in getFormat()
106 meta->setInt32(kKeySampleRate, sampleRate); in getFormat()
110 meta->setInt64(kKeyDuration, durationUs); in getFormat()
113 meta->setCString(kKeyDecoderComponent, "AMRWBDecoder"); in getFormat()
115 return meta; in getFormat()
/frameworks/base/include/media/stagefright/
DOMXCodec.h44 const sp<MetaData> &meta, bool createEncoder,
190 const char *mime, const sp<MetaData>& meta);
194 status_t setupH263EncoderParameters(const sp<MetaData>& meta);
195 status_t setupMPEG4EncoderParameters(const sp<MetaData>& meta);
196 status_t setupAVCEncoderParameters(const sp<MetaData>& meta);
198 const sp<MetaData>& meta, OMX_COLOR_FORMATTYPE *colorFormat);
205 status_t getVideoProfileLevel(const sp<MetaData>& meta,
262 status_t configureCodec(const sp<MetaData> &meta, uint32_t flags);

12345