Home
last modified time | relevance | path

Searched refs:dstFormat (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/media/libmediatranscoding/transcoder/benchmark/
DMediaTranscoderBenchmark.cpp104 using TrackSelectionCallback = std::function<bool(const char* mime, AMediaFormat** dstFormat)>;
162 AMediaFormat* dstFormat = nullptr; in TranscodeMediaFile() local
188 if (trackSelectionCallback(mime, &dstFormat)) { in TranscodeMediaFile()
189 status = transcoder->configureTrackFormat(i, dstFormat); in TranscodeMediaFile()
190 if (strncmp(mime, "video/", 6) == 0 && dstFormat != nullptr) { in TranscodeMediaFile()
192 if (AMediaFormat_getString(dstFormat, AMEDIAFORMAT_KEY_MIME, &mime)) { in TranscodeMediaFile()
195 AMediaFormat_getInt32(dstFormat, AMEDIAFORMAT_KEY_BIT_RATE, &targetBitrate); in TranscodeMediaFile()
202 if (dstFormat != nullptr) { in TranscodeMediaFile()
203 AMediaFormat_delete(dstFormat); in TranscodeMediaFile()
248 using TrackFormatEditCallback = std::function<void(AMediaFormat* dstFormat)>;
[all …]
DMediaTrackTranscoderBenchmark.cpp294 using TrackFormatEditCallback = std::function<void(AMediaFormat* dstFormat)>;
/frameworks/av/media/libmediatranscoding/transcoder/tools/
DTranscode.cpp104 AMediaFormat* dstFormat = nullptr; in transcode() local
110 dstFormat = AMediaFormat_new(); in transcode()
111 AMediaFormat_setString(dstFormat, AMEDIAFORMAT_KEY_MIME, config.dstCodec.c_str()); in transcode()
114 AMediaFormat_setInt32(dstFormat, AMEDIAFORMAT_KEY_BIT_RATE, config.bitrate); in transcode()
118 status = transcoder->configureTrackFormat(i, dstFormat); in transcode()
120 if (dstFormat != nullptr) { in transcode()
121 AMediaFormat_delete(dstFormat); in transcode()
/frameworks/av/media/libmediatranscoding/
DTranscodingLogger.cpp103 AMediaFormat* srcFormat, AMediaFormat* dstFormat) { in logSessionEnded() argument
105 srcFormat, dstFormat); in logSessionEnded()
111 AMediaFormat* srcFormat, AMediaFormat* dstFormat) { in logSessionEnded() argument
132 int32_t dstWidth = getInt32(dstFormat, AMEDIAFORMAT_KEY_WIDTH, srcWidth); in logSessionEnded()
133 int32_t dstHeight = getInt32(dstFormat, AMEDIAFORMAT_KEY_HEIGHT, srcHeight); in logSessionEnded()
134 const char* dstMime = dstFormat == nullptr in logSessionEnded()
136 : getString(dstFormat, AMEDIAFORMAT_KEY_MIME, srcMime); in logSessionEnded()
/frameworks/av/media/libaudioprocessing/
DRecordBufferConverter.cpp43 audio_channel_mask_t dstChannelMask, audio_format_t dstFormat, in RecordBufferConverter() argument
62 dstChannelMask, dstFormat, dstSampleRate); in RecordBufferConverter()
131 audio_channel_mask_t dstChannelMask, audio_format_t dstFormat, in updateParameters() argument
138 && mDstFormat == dstFormat in updateParameters()
146 srcChannelMask, dstChannelMask, srcFormat, dstFormat, srcSampleRate, dstSampleRate); in updateParameters()
151 && audio_is_valid_format(dstFormat) && audio_is_linear_pcm(dstFormat) in updateParameters()
161 mDstFormat = dstFormat; in updateParameters()
/frameworks/base/libs/hwui/apex/include/android/graphics/
Dbitmap.h50 ANDROID_API ABitmap* ABitmap_copy(ABitmap* srcBitmap, AndroidBitmapFormat dstFormat);
114 Bitmap copy(AndroidBitmapFormat dstFormat) const { in copy() argument
115 return Bitmap(ABitmap_copy(mBitmap, dstFormat)); in copy()
/frameworks/av/media/libaudioprocessing/tests/fuzzer/
Dlibaudioprocessing_record_buffer_converter_fuzzer.cpp124 const audio_format_t dstFormat = in LLVMFuzzerTestOneInput() local
145 dstChannelMask, dstFormat, dstSampleRate); in LLVMFuzzerTestOneInput()
157 const uint32_t dstFrameSize = dstChannelCount * audio_bytes_per_sample(dstFormat); in LLVMFuzzerTestOneInput()
/frameworks/av/media/libaudioprocessing/include/media/
DRecordBufferConverter.h48 audio_channel_mask_t dstChannelMask, audio_format_t dstFormat,
75 audio_channel_mask_t dstChannelMask, audio_format_t dstFormat,
/frameworks/av/media/libmediatranscoding/include/media/
DTranscodingLogger.h71 AMediaFormat* dstFormat);
90 AMediaFormat* dstFormat);
/frameworks/av/media/libstagefright/
DFrameDecoder.cpp174 OMX_COLOR_FORMATTYPE *dstFormat, in getDstColorFormat() argument
180 *dstFormat = OMX_COLOR_Format16bitRGB565; in getDstColorFormat()
187 *dstFormat = OMX_COLOR_Format32BitRGBA8888; in getDstColorFormat()
194 *dstFormat = OMX_COLOR_Format32bitBGRA8888; in getDstColorFormat()
201 *dstFormat = (OMX_COLOR_FORMATTYPE)COLOR_Format32bitABGR2101010; in getDstColorFormat()
218 OMX_COLOR_FORMATTYPE dstFormat; in getMetadataOnly() local
222 &dstFormat, &captureFormat, &dstBpp)) { in getMetadataOnly()
538 if (dstFormat() == COLOR_Format32bitABGR2101010) { in onGetFormatAndSeekOptions()
685 ColorConverter converter((OMX_COLOR_FORMATTYPE)srcFormat, dstFormat()); in onOutputReceived()
713 srcFormat, dstFormat()); in onOutputReceived()
[all …]
/frameworks/av/media/libmediatranscoding/tests/
DTranscodingLogger_tests.cpp146 AMediaFormat* srcFormat, AMediaFormat* dstFormat) { in logSession() argument
148 kDefaultTranscodeDuration, srcFormat, dstFormat); in logSession()
254 auto dstFormat = std::shared_ptr<AMediaFormat>(CreateDstFormat(), &AMediaFormat_delete); in TEST_F() local
258 logSession(now, Reason::FINISHED, AMEDIA_OK, nullptr /*srcFormat*/, dstFormat.get()); in TEST_F()
/frameworks/base/libs/hwui/apex/
Dandroid_bitmap.cpp108 ABitmap* ABitmap_copy(ABitmap* srcBitmapHandle, AndroidBitmapFormat dstFormat) { in ABitmap_copy() argument
109 SkColorType dstColorType = getColorType(dstFormat); in ABitmap_copy()
/frameworks/av/media/libstagefright/include/
DFrameDecoder.h80 OMX_COLOR_FORMATTYPE dstFormat() const { return mDstFormat; } in dstFormat() function
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp691 getWriteToDst(OMX_COLOR_FORMATTYPE dstFormat, void *kAdjustedClip) { in getWriteToDst() argument
692 switch ((int)dstFormat) { in getWriteToDst()