Searched refs:format (Results 151 - 175 of 1700) sorted by path

1234567891011>>

/frameworks/av/media/libstagefright/
H A DMediaCodecListOverrides.cpp92 sp<AMessage> format = new AMessage(); local
93 format->setString("mime", mime);
98 format->setInt32("bitrate", bitrate);
99 format->setInt32("encoder", 1);
108 format->setInt32("width", width);
109 format->setInt32("height", height);
116 format->setInt32("color-format", colorFormats[0]);
118 format->setFloat("frame-rate", 10.0);
119 format
130 sp<AMessage> format = getMeasureFormat(isEncoder, mime, caps); local
[all...]
H A DMediaCodecSource.cpp349 const sp<AMessage> &format,
354 looper, format, source, persistentSurface, flags);
519 ALOGV("output format is '%s'", mOutputFormat->debugString(0).c_str());
578 ALOGV("setting dataspace %#x, format %#x", mEncoderDataSpace, mEncoderFormat);
347 Create( const sp<ALooper> &looper, const sp<AMessage> &format, const sp<MediaSource> &source, const sp<PersistentSurface> &persistentSurface, uint32_t flags) argument
H A DMediaMuxer.cpp41 MediaMuxer::MediaMuxer(int fd, OutputFormat format) argument
42 : mFormat(format),
44 if (format == OUTPUT_FORMAT_MPEG_4 || format == OUTPUT_FORMAT_THREE_GPP) {
46 } else if (format == OUTPUT_FORMAT_WEBM) {
65 ssize_t MediaMuxer::addTrack(const sp<AMessage> &format) { argument
68 if (format.get() == NULL) {
69 ALOGE("addTrack() get a null format");
79 convertMessageToMetaData(format, trackMeta);
H A DNuCachedSource2.cpp228 mName = String8::format("NuCachedSource2(%s)", mSource->toString().string());
H A DNuMediaExtractor.cpp238 size_t index, sp<AMessage> *format, uint32_t flags) const {
241 *format = NULL;
258 return convertMetaDataToMessage(meta, format);
261 status_t NuMediaExtractor::getFileFormat(sp<AMessage> *format) const {
264 *format = NULL;
274 *format = new AMessage();
275 (*format)->setString("mime", mime);
283 (*format)->setBuffer("pssh", buf);
237 getTrackFormat( size_t index, sp<AMessage> *format, uint32_t flags) const argument
H A DSimpleDecodingSource.cpp52 sp<AMessage> format = new AMessage; local
53 if (convertMetaDataToMessage(source->getFormat(), &format) != OK) {
79 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */);
81 err = codec->getOutputFormat(&format);
87 format);
103 bool usingSurface, bool isVorbis, const sp<AMessage> &format)
109 mProtectedState(format) {
175 SimpleDecodingSource::ProtectedState::ProtectedState(const sp<AMessage> &format) argument
177 mFormat(format),
101 SimpleDecodingSource( const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper, bool usingSurface, bool isVorbis, const sp<AMessage> &format) argument
H A DStagefrightMetadataRetriever.cpp205 ALOGE("Unsupported color format: %d", colorFormat);
220 sp<MetaData> format = source->getFormat(); local
316 videoFormat->setInt32("color-format", OMX_COLOR_FormatYUV420Planar);
385 bool success = format->findCString(kKeyMIMEType, &mime);
487 ALOGV("Received format change");
529 CHECK(outputFormat->findInt32("color-format", &srcFormat));
559 ALOGE("Unable to convert from format 0x%08x to 0x%08x",
850 // If multiple text tracks present, the format will look
H A DSurfaceUtils.cpp29 int width, int height, int format, int rotation, int usage, bool reconnect) {
53 err = native_window_set_buffers_format(nativeWindow, format);
127 nativeWindow, width, height, format, rotation, finalUsage);
27 setNativeWindowSizeFormatAndUsage( ANativeWindow *nativeWindow , int width, int height, int format, int rotation, int usage, bool reconnect) argument
H A DUtils.cpp145 static bool isHdr(const sp<AMessage> &format) { argument
148 // in the format.
150 if (format->findInt32("android._is-hdr", &isHdr)) {
155 if (format->contains("hdr-static-info") && !format->contains("color-transfer")) {
160 if (format->findInt32("color-transfer", &transfer)) {
167 static void parseAacProfileFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { argument
194 format->setInt32("profile", profile);
198 static void parseAvcProfileLevelFromAvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) { argument
245 format
256 parseH263ProfileLevelFromD263(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument
298 parseHevcProfileLevelFromHvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument
365 parseMpeg2ProfileLevelFromHeader( const uint8_t *data, size_t size, sp<AMessage> &format) argument
418 parseMpeg2ProfileLevelFromEsds(ESDS &esds, sp<AMessage> &format) argument
438 parseMpeg4ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) argument
529 parseVp9ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) argument
600 convertMetaDataToMessage( const sp<MetaData> &meta, sp<AMessage> *format) argument
1558 audio_format_t format; member in struct:android::mime_conv_t
1574 mapMimeToAudioFormat( audio_format_t& format, const char* mime ) argument
1590 audio_format_t format; member in struct:android::aac_format_conv_t
1607 mapAACProfileToAudioFormat( audio_format_t& format, uint64_t eAacProfile) argument
[all...]
/frameworks/av/media/libstagefright/codec2/include/
H A DC2Buffer.h1499 * Allocates a 2D allocation of given |width|, |height|, |format| and |usage|. If successful,
1506 * \param format the pixel format of requested allocation. This could be a vendor
1507 * specific format.
1520 * \retval C2_BAD_VALUE width, height, format or usage are not supported (invalid) (caller error)
1525 uint32_t width __unused, uint32_t height __unused, uint32_t format __unused,
1629 * Allocates a 2D graphic block of given |width|, |height|, |format| and |usage|. If successful,
1636 * \param format the pixel format of requested allocation. This could be a vendor
1637 * specific format
[all...]
/frameworks/av/media/libstagefright/codecs/aacdec/
H A DSoftAAC2.cpp106 def.format.audio.cMIMEType = const_cast<char *>("audio/aac");
107 def.format.audio.pNativeRender = NULL;
108 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
109 def.format.audio.eEncoding = OMX_AUDIO_CodingAAC;
124 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
125 def.format.audio.pNativeRender = NULL;
126 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
127 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
/frameworks/av/media/libstagefright/codecs/aacenc/
H A DSoftAACEncoder.cpp94 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
95 def.format.audio.pNativeRender = NULL;
96 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
97 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
112 def.format.audio.cMIMEType = const_cast<char *>("audio/aac");
113 def.format.audio.pNativeRender = NULL;
114 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
115 def.format.audio.eEncoding = OMX_AUDIO_CodingAAC;
H A DSoftAACEncoder2.cpp95 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
96 def.format.audio.pNativeRender = NULL;
97 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
98 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
113 def.format.audio.cMIMEType = const_cast<char *>("audio/aac");
114 def.format.audio.pNativeRender = NULL;
115 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
116 def.format.audio.eEncoding = OMX_AUDIO_CodingAAC;
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
H A DSoftAMR.cpp92 def.format.audio.cMIMEType =
97 def.format.audio.pNativeRender = NULL;
98 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
99 def.format.audio.eEncoding = OMX_AUDIO_CodingAMR;
118 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
119 def.format.audio.pNativeRender = NULL;
120 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
121 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
/frameworks/av/media/libstagefright/codecs/amrnb/dec/test/
H A Damrnbdec_test.cpp77 sfInfo.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16;
/frameworks/av/media/libstagefright/codecs/amrnb/enc/
H A DSoftAMRNBEncoder.cpp81 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
82 def.format.audio.pNativeRender = NULL;
83 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
84 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
99 def.format.audio.cMIMEType = const_cast<char *>("audio/3gpp");
100 def.format.audio.pNativeRender = NULL;
101 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
102 def.format.audio.eEncoding = OMX_AUDIO_CodingAMR;
390 // Convert header byte from WMF to IETF format.
/frameworks/av/media/libstagefright/codecs/amrwb/test/
H A Damrwbdec_test.cpp80 sfInfo.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16;
120 // AMR-WB file format cannot have mode 10, 11, 12 and 13.
/frameworks/av/media/libstagefright/codecs/amrwbenc/
H A DSoftAMRWBEncoder.cpp88 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
89 def.format.audio.pNativeRender = NULL;
90 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
91 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
106 def.format.audio.cMIMEType = const_cast<char *>("audio/amr-wb");
107 def.format.audio.pNativeRender = NULL;
108 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
109 def.format.audio.eEncoding = OMX_AUDIO_CodingAMR;
/frameworks/av/media/libstagefright/codecs/avcenc/
H A DSoftAVCEnc.h233 const OMX_VIDEO_PARAM_PORTFORMATTYPE *format);
/frameworks/av/media/libstagefright/codecs/flac/dec/
H A DSoftFlacDecoder.cpp78 def.format.audio.cMIMEType = const_cast<char *>("audio/flac");
79 def.format.audio.pNativeRender = NULL;
80 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
81 def.format.audio.eEncoding = OMX_AUDIO_CodingFLAC;
96 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
97 def.format.audio.pNativeRender = NULL;
98 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
99 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.cpp125 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
126 def.format.audio.pNativeRender = NULL;
127 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
128 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
144 def.format.audio.cMIMEType = const_cast<char *>(MEDIA_MIMETYPE_AUDIO_FLAC);
145 def.format.audio.pNativeRender = NULL;
146 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
147 def.format.audio.eEncoding = OMX_AUDIO_CodingFLAC;
/frameworks/av/media/libstagefright/codecs/g711/dec/
H A DSoftG711.cpp74 def.format.audio.cMIMEType =
80 def.format.audio.pNativeRender = NULL;
81 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
82 def.format.audio.eEncoding = OMX_AUDIO_CodingG711;
97 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
98 def.format.audio.pNativeRender = NULL;
99 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
100 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
/frameworks/av/media/libstagefright/codecs/gsm/dec/
H A DSoftGSM.cpp77 def.format.audio.cMIMEType =
80 def.format.audio.pNativeRender = NULL;
81 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
82 def.format.audio.eEncoding = OMX_AUDIO_CodingGSMFR;
97 def.format.audio.cMIMEType = const_cast<char *>("audio/raw");
98 def.format.audio.pNativeRender = NULL;
99 def.format.audio.bFlagErrorConcealment = OMX_FALSE;
100 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
H A DSoftMPEG4.cpp402 def->format.video.nStride = align(def->format.video.nStride, 16);
403 def->format.video.nSliceHeight = align(def->format.video.nSliceHeight, 16);
404 def->nBufferSize = (def->format.video.nStride * def->format.video.nSliceHeight * 3) / 2;
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dmp4dec_lib.h68 void m4vdec_dprintf(char *format, ...);

Completed in 3849 milliseconds

1234567891011>>