Home
last modified time | relevance | path

Searched refs:AMediaFormat (Results 1 – 25 of 116) sorted by relevance

12345

/frameworks/av/media/module/libmediatranscoding/transcoder/include/media/
DNdkCommon.h71 bool (*copy)(const char* key, AMediaFormat* from, AMediaFormat* to);
72 bool (*copy2)(const char* key, AMediaFormat* from, AMediaFormat* to);
83 bool CopyFormatEntryString(const char* key, AMediaFormat* from, AMediaFormat* to);
84 bool CopyFormatEntryInt64(const char* key, AMediaFormat* from, AMediaFormat* to);
85 bool CopyFormatEntryInt32(const char* key, AMediaFormat* from, AMediaFormat* to);
86 bool CopyFormatEntryFloat(const char* key, AMediaFormat* from, AMediaFormat* to);
88 void CopyFormatEntries(AMediaFormat* from, AMediaFormat* to,
91 bool SetDefaultFormatValueFloat(const char* key, AMediaFormat* format, float value);
92 bool SetDefaultFormatValueInt32(const char* key, AMediaFormat* format, int32_t value);
94 bool VideoIsHdr(AMediaFormat* format);
DVideoTrackTranscoder.h74 const std::shared_ptr<AMediaFormat>& destinationFormat) override;
75 std::shared_ptr<AMediaFormat> getOutputFormat() const override;
88 void updateTrackFormat(AMediaFormat* outputFormat, bool fromDecoder);
99 std::shared_ptr<AMediaFormat> mDestinationFormat;
100 std::shared_ptr<AMediaFormat> mActualOutputFormat;
DMediaTrackTranscoder.h62 const std::shared_ptr<AMediaFormat>& destinationFormat);
95 virtual std::shared_ptr<AMediaFormat> getOutputFormat() const = 0;
114 const std::shared_ptr<AMediaFormat>& destinationFormat) = 0;
126 std::shared_ptr<AMediaFormat> mSourceFormat;
/frameworks/av/media/ndk/include/media/
DNdkMediaFormat.h51 struct AMediaFormat;
52 typedef struct AMediaFormat AMediaFormat; typedef
57 AMediaFormat *AMediaFormat_new() __INTRODUCED_IN(21);
62 media_status_t AMediaFormat_delete(AMediaFormat*) __INTRODUCED_IN(21);
70 const char* AMediaFormat_toString(AMediaFormat*) __INTRODUCED_IN(21);
75 bool AMediaFormat_getInt32(AMediaFormat*, const char *name, int32_t *out) __INTRODUCED_IN(21);
79 bool AMediaFormat_getInt64(AMediaFormat*, const char *name, int64_t *out) __INTRODUCED_IN(21);
83 bool AMediaFormat_getFloat(AMediaFormat*, const char *name, float *out) __INTRODUCED_IN(21);
87 bool AMediaFormat_getSize(AMediaFormat*, const char *name, size_t *out) __INTRODUCED_IN(21);
94 bool AMediaFormat_getBuffer(AMediaFormat*, const char *name, void** data, size_t *size) __INTRODUCE…
[all …]
/frameworks/av/media/module/libmediaformatshaper/
DVQops.h36 int VQApply(CodecProperties *codec, vqOps_t *info, AMediaFormat* inFormat, int flags);
39 void qpSpreadPerFrameType(AMediaFormat *format, int delta, int qplow, int qphigh, bool override);
40 void qpSpreadMaxPerFrameType(AMediaFormat *format, int delta, int qphigh, bool override);
41 void qpSpreadMinPerFrameType(AMediaFormat *format, int qplow, bool override);
42 void qpVerifyMinMaxOrdering(AMediaFormat *format);
45 bool hasQpMax(AMediaFormat *format);
46 bool hasQpMaxGlobal(AMediaFormat *format);
47 bool hasQpMaxPerFrameType(AMediaFormat *format);
/frameworks/av/media/module/metadatautils/include/media/stagefright/
DMetaDataUtils.h23 struct AMediaFormat;
29 bool MakeAVCCodecSpecificData(AMediaFormat *meta, const uint8_t *data, size_t size);
35 bool MakeAACCodecSpecificData(AMediaFormat *meta, unsigned profile, unsigned sampling_freq_index,
39 AMediaFormat *fileMeta, const char *comment, size_t commentLength);
41 bool MakeVP9CodecSpecificData(AMediaFormat* meta, const uint8_t* data, size_t size);
/frameworks/av/media/ndk/
DNdkMediaFormat.cpp38 AMediaFormat *AMediaFormat_new() { in AMediaFormat_new()
45 media_status_t AMediaFormat_delete(AMediaFormat *mData) { in AMediaFormat_delete()
52 void AMediaFormat_clear(AMediaFormat *format) { in AMediaFormat_clear()
57 media_status_t AMediaFormat_copy(AMediaFormat *to, AMediaFormat *from) { in AMediaFormat_copy()
68 const char* AMediaFormat_toString(AMediaFormat *mData) { in AMediaFormat_toString()
149 bool AMediaFormat_getInt32(AMediaFormat* format, const char *name, int32_t *out) { in AMediaFormat_getInt32()
160 bool AMediaFormat_getInt64(AMediaFormat* format, const char *name, int64_t *out) { in AMediaFormat_getInt64()
171 bool AMediaFormat_getFloat(AMediaFormat* format, const char *name, float *out) { in AMediaFormat_getFloat()
182 bool AMediaFormat_getDouble(AMediaFormat* format, const char *name, double *out) { in AMediaFormat_getDouble()
193 bool AMediaFormat_getSize(AMediaFormat* format, const char *name, size_t *out) { in AMediaFormat_getSize()
[all …]
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DMediaTranscoderTests.cpp35 static bool equal##_typeName(const char* key, AMediaFormat* src, AMediaFormat* dst) { \
47 std::function<bool(const char*, AMediaFormat*, AMediaFormat*)> equal;
101 using FormatConfigurationCallback = std::function<AMediaFormat*(AMediaFormat*)>;
112 std::vector<std::shared_ptr<AMediaFormat>> trackFormats = transcoder->getTrackFormats(); in transcodeHelper()
116 AMediaFormat* format = formatCallback(trackFormats[i].get()); in transcodeHelper()
180 [dstMime, bitrate](AMediaFormat* sourceFormat) { in testTranscodeVideo()
181 AMediaFormat* format = nullptr; in testTranscodeVideo()
207 [dstMime](const char* key, AMediaFormat* src __unused, AMediaFormat* dst) { in testTranscodeVideo()
230 std::shared_ptr<AMediaFormat> videoFormat; in verifyOutputFormat()
233 AMediaFormat* trackFormat = sampleReader->getTrackFormat(static_cast<int>(trackIndex)); in verifyOutputFormat()
[all …]
/frameworks/av/media/ndk/tests/
DNdkMediaFormat_test.cpp33 AMediaFormat *fmt1 = AMediaFormat_new(); in TEST()
34 AMediaFormat *fmt2 = AMediaFormat_new(); in TEST()
45 AMediaFormat *fmt1 = AMediaFormat_new(); in TEST()
65 AMediaFormat *fmt1 = AMediaFormat_new(); in TEST()
88 AMediaFormat *fmt1 = AMediaFormat_new(); in TEST()
108 AMediaFormat *fmt1 = AMediaFormat_new(); in TEST()
126 AMediaFormat *fmt1 = AMediaFormat_new(); in TEST()
144 AMediaFormat *fmt1 = AMediaFormat_new(); in TEST()
166 AMediaFormat *fmt1 = AMediaFormat_new(); in TEST()
184 AMediaFormat *fmt1 = AMediaFormat_new(); in TEST()
[all …]
/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/
DMediaTranscoderBenchmark.cpp89 static AMediaFormat* CreateDefaultVideoFormat() { in CreateDefaultVideoFormat()
93 AMediaFormat* videoFormat = AMediaFormat_new(); in CreateDefaultVideoFormat()
106 using TrackSelectionCallback = std::function<bool(const char* mime, AMediaFormat** dstFormat)>;
159 std::vector<std::shared_ptr<AMediaFormat>> trackFormats = transcoder->getTrackFormats(); in TranscodeMediaFile()
161 AMediaFormat* srcFormat = trackFormats[i].get(); in TranscodeMediaFile()
162 AMediaFormat* dstFormat = nullptr; in TranscodeMediaFile()
248 using TrackFormatEditCallback = std::function<void(AMediaFormat* dstFormat)>;
255 [=](const char* mime, AMediaFormat** dstFormatOut) -> bool { in TranscodeMediaFile()
269 static void SetMaxOperatingRate(AMediaFormat* format) { in SetMaxOperatingRate()
363 static void SetMimeBitrate(AMediaFormat* format, std::string mime, int32_t bitrate) { in SetMimeBitrate()
[all …]
DMediaTrackTranscoderBenchmark.cpp112 AMediaFormat* getFileFormat() override { return AMediaExtractor_getFileFormat(mExtractor); } in getFileFormat()
116 AMediaFormat* getTrackFormat(int trackIndex) override { in getTrackFormat()
128 AMediaFormat* format = getTrackFormat(trackIndex); in selectTrack()
231 static std::shared_ptr<AMediaFormat> GetDefaultTrackFormat(MediaType mediaType, in GetDefaultTrackFormat()
232 AMediaFormat* sourceFormat) { in GetDefaultTrackFormat()
237 AMediaFormat* format = nullptr; in GetDefaultTrackFormat()
248 return std::shared_ptr<AMediaFormat>(format, &AMediaFormat_delete); in GetDefaultTrackFormat()
293 using TrackFormatEditCallback = std::function<void(AMediaFormat* dstFormat)>;
304 std::shared_ptr<AMediaFormat> srcTrackFormat = nullptr; in ConfigureSampleReader()
307 AMediaFormat* trackFormat = sampleReader->getTrackFormat(trackIndex); in ConfigureSampleReader()
[all …]
/frameworks/av/media/module/extractors/midi/include/
DMidiExtractor.h34 AMediaFormat *fileMetadata,
35 AMediaFormat *trackMetadata);
60 virtual media_status_t getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t flags);
62 virtual media_status_t getMetaData(AMediaFormat *meta);
71 AMediaFormat *mFileMetadata;
74 AMediaFormat *mTrackMetadata;
/frameworks/av/media/libmedia/
DNdkMediaFormatPriv.cpp32 AMediaFormat* AMediaFormat_fromMsg(sp<AMessage> *data) { in AMediaFormat_fromMsg()
34 AMediaFormat* mData = new AMediaFormat(); in AMediaFormat_fromMsg()
43 void AMediaFormat_getFormat(const AMediaFormat* mData, sp<AMessage> *dest) { in AMediaFormat_getFormat()
/frameworks/av/media/module/libmediatranscoding/transcoder/
DNdkCommon.cpp50 bool CopyFormatEntry##_typeName(const char* key, AMediaFormat* from, AMediaFormat* to) { \
64 void CopyFormatEntries(AMediaFormat* from, AMediaFormat* to, in CopyFormatEntries()
82 bool SetDefaultFormatValue##_typeName(const char* key, AMediaFormat* format, _type value) { \
96 bool VideoIsHdr(AMediaFormat* format) { in VideoIsHdr()
DMediaTranscoder.cpp33 static std::shared_ptr<AMediaFormat> createVideoTrackFormat(AMediaFormat* srcFormat, in createVideoTrackFormat()
34 AMediaFormat* options) { in createVideoTrackFormat()
81 auto trackFormat = std::shared_ptr<AMediaFormat>(AMediaFormat_new(), &AMediaFormat_delete); in createVideoTrackFormat()
272 AMediaFormat* trackFormat = mSampleReader->getTrackFormat(static_cast<int>(trackIndex)); in configureSource()
284 std::vector<std::shared_ptr<AMediaFormat>> MediaTranscoder::getTrackFormats() const { in getTrackFormats()
286 std::vector<std::shared_ptr<AMediaFormat>> trackFormats; in getTrackFormats()
287 for (const std::shared_ptr<AMediaFormat>& sourceFormat : mSourceTrackFormats) { in getTrackFormats()
288 AMediaFormat* copy = AMediaFormat_new(); in getTrackFormats()
296 AMediaFormat* destinationOptions) { in configureTrackFormat()
307 std::shared_ptr<AMediaFormat> trackFormat; in configureTrackFormat()
[all …]
/frameworks/av/media/module/extractors/flac/include/
DFLACExtractor.h36 virtual media_status_t getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t flags);
38 virtual media_status_t getMetaData(AMediaFormat *meta);
48 AMediaFormat *mFileMetadata;
51 AMediaFormat *mTrackMetadata;
/frameworks/av/media/module/extractors/mkv/include/
DMatroskaExtractor.h45 virtual media_status_t getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t flags);
47 virtual media_status_t getMetaData(AMediaFormat *meta);
69 AMediaFormat *mMeta;
101 AMediaFormat *meta,
107 AMediaFormat *meta);
/frameworks/av/media/module/extractors/midi/
DMidiExtractor.cpp41 AMediaFormat *trackMetadata);
45 virtual media_status_t getFormat(AMediaFormat *);
55 AMediaFormat *mTrackMetadata;
72 AMediaFormat *trackMetadata) in MidiSource()
111 media_status_t MidiSource::getFormat(AMediaFormat *meta) in getFormat()
148 AMediaFormat *fileMetadata, in MidiEngine()
149 AMediaFormat *trackMetadata) : in MidiEngine()
252 AMediaFormat *meta = buffer->meta_data(); in readBuffer()
311 AMediaFormat *meta, in getTrackMetaData()
320 media_status_t MidiExtractor::getMetaData(AMediaFormat *meta) in getMetaData()
/frameworks/av/media/module/libmediatranscoding/tests/
DTranscodingLogger_tests.cpp97 static AMediaFormat* CreateSrcFormat() { in CreateSrcFormat()
98 AMediaFormat* fmt = AMediaFormat_new(); in CreateSrcFormat()
111 static AMediaFormat* CreateDstFormat() { in CreateDstFormat()
112 AMediaFormat* fmt = AMediaFormat_new(); in CreateDstFormat()
146 AMediaFormat* srcFormat, AMediaFormat* dstFormat) { in logSession()
153 mSrcFormat = std::shared_ptr<AMediaFormat>(CreateSrcFormat(), &AMediaFormat_delete); in logSession()
156 mDstFormat = std::shared_ptr<AMediaFormat>(CreateDstFormat(), &AMediaFormat_delete); in logSession()
208 std::shared_ptr<AMediaFormat> mSrcFormat;
209 std::shared_ptr<AMediaFormat> mDstFormat;
253 auto srcFormat = std::shared_ptr<AMediaFormat>(CreateSrcFormat(), &AMediaFormat_delete); in TEST_F()
[all …]
/frameworks/av/media/ndk/fuzzer/
DNdkMediaCodecFuzzerBase.h48 AMediaFormat* getCodecFormat() { return mFormat; }; in getCodecFormat()
59 AMediaFormat* getSampleAudioFormat();
60 AMediaFormat* getSampleVideoFormat();
62 AMediaFormat* mFormat = nullptr;
/frameworks/av/include/media/
DNdkMediaFormatPriv.h39 struct AMediaFormat { struct
51 AMediaFormat* AMediaFormat_fromMsg(sp<AMessage> *); argument
52 void AMediaFormat_getFormat(const AMediaFormat* mData, sp<AMessage> *dest);
DMediaExtractorPluginApi.h22 struct AMediaFormat;
62 AMediaFormat* (*meta_data)(void *handle);
80 media_status_t (*getFormat)(void *data, AMediaFormat *format);
93 AMediaFormat *meta,
96 media_status_t (*getMetaData)(void *data, AMediaFormat *meta);
/frameworks/av/media/module/libmediatranscoding/include/media/
DTranscodingLogger.h70 std::chrono::microseconds duration, AMediaFormat* srcFormat,
71 AMediaFormat* dstFormat);
89 std::chrono::microseconds duration, AMediaFormat* srcFormat,
90 AMediaFormat* dstFormat);
/frameworks/av/media/module/extractors/amr/include/
DAMRExtractor.h38 virtual media_status_t getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t flags);
40 virtual media_status_t getMetaData(AMediaFormat *meta);
48 AMediaFormat *mMeta;
/frameworks/av/media/module/extractors/aac/include/
DAACExtractor.h38 virtual media_status_t getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t flags);
40 virtual media_status_t getMetaData(AMediaFormat *meta);
48 AMediaFormat *mMeta;

12345