Home
last modified time | relevance | path

Searched refs:colorFormat (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/av/media/libmedia/
Dmediametadataretriever.cpp141 int64_t timeUs, int option, int colorFormat, bool metaOnly) in getFrameAtTime() argument
144 timeUs, option, colorFormat, metaOnly); in getFrameAtTime()
150 return mRetriever->getFrameAtTime(timeUs, option, colorFormat, metaOnly); in getFrameAtTime()
154 int index, int colorFormat, bool metaOnly, bool thumbnail) { in getImageAtIndex() argument
156 index, colorFormat, metaOnly, thumbnail); in getImageAtIndex()
162 return mRetriever->getImageAtIndex(index, colorFormat, metaOnly, thumbnail); in getImageAtIndex()
166 int index, int colorFormat, int left, int top, int right, int bottom) { in getImageRectAtIndex() argument
168 index, colorFormat, left, top, right, bottom); in getImageRectAtIndex()
175 index, colorFormat, left, top, right, bottom); in getImageRectAtIndex()
179 int index, int colorFormat, bool metaOnly) { in getFrameAtIndex() argument
[all …]
DIMediaMetadataRetriever.cpp116 sp<IMemory> getFrameAtTime(int64_t timeUs, int option, int colorFormat, bool metaOnly) in getFrameAtTime() argument
119 timeUs, option, colorFormat, metaOnly); in getFrameAtTime()
124 data.writeInt32(colorFormat); in getFrameAtTime()
134 sp<IMemory> getImageAtIndex(int index, int colorFormat, bool metaOnly, bool thumbnail) in getImageAtIndex() argument
137 index, colorFormat, metaOnly, thumbnail); in getImageAtIndex()
141 data.writeInt32(colorFormat); in getImageAtIndex()
153 int index, int colorFormat, int left, int top, int right, int bottom) in getImageRectAtIndex() argument
156 index, colorFormat, left, top, right, bottom); in getImageRectAtIndex()
160 data.writeInt32(colorFormat); in getImageRectAtIndex()
174 int index, int colorFormat, bool metaOnly) in getFrameAtIndex() argument
[all …]
/frameworks/av/media/libmediaplayerservice/
DStagefrightMetadataRetriever.h45 int64_t timeUs, int option, int colorFormat, bool metaOnly);
47 int index, int colorFormat, bool metaOnly, bool thumbnail);
49 int index, int colorFormat, int left, int top, int right, int bottom);
51 int index, int colorFormat, bool metaOnly);
72 int64_t timeUs, int option, int colorFormat, bool metaOnly);
75 int index, int colorFormat, bool metaOnly, bool thumbnail, FrameRect* rect);
DMetadataRetrieverClient.cpp197 int64_t timeUs, int option, int colorFormat, bool metaOnly) in getFrameAtTime() argument
200 (long long)timeUs, option, colorFormat, metaOnly); in getFrameAtTime()
207 sp<IMemory> frame = mRetriever->getFrameAtTime(timeUs, option, colorFormat, metaOnly); in getFrameAtTime()
216 int index, int colorFormat, bool metaOnly, bool thumbnail) { in getImageAtIndex() argument
218 index, colorFormat, metaOnly, thumbnail); in getImageAtIndex()
225 sp<IMemory> frame = mRetriever->getImageAtIndex(index, colorFormat, metaOnly, thumbnail); in getImageAtIndex()
234 int index, int colorFormat, int left, int top, int right, int bottom) { in getImageRectAtIndex() argument
236 index, colorFormat, left, top, right, bottom); in getImageRectAtIndex()
244 index, colorFormat, left, top, right, bottom); in getImageRectAtIndex()
252 int index, int colorFormat, bool metaOnly) { in getFrameAtIndex() argument
[all …]
DMetadataRetrieverClient.h54 int64_t timeUs, int option, int colorFormat, bool metaOnly);
56 int index, int colorFormat, bool metaOnly, bool thumbnail);
58 int index, int colorFormat, int left, int top, int right, int bottom);
60 int index, int colorFormat, bool metaOnly);
DStagefrightMetadataRetriever.cpp134 int index, int colorFormat, bool metaOnly, bool thumbnail) { in getImageAtIndex() argument
136 index, colorFormat, metaOnly, thumbnail); in getImageAtIndex()
138 return getImageInternal(index, colorFormat, metaOnly, thumbnail, NULL); in getImageAtIndex()
142 int index, int colorFormat, int left, int top, int right, int bottom) { in getImageRectAtIndex() argument
144 index, colorFormat, left, top, right, bottom); in getImageRectAtIndex()
153 index, colorFormat, false /*metaOnly*/, false /*thumbnail*/, &rect); in getImageRectAtIndex()
157 int index, int colorFormat, bool metaOnly, bool thumbnail, FrameRect* rect) { in getImageInternal() argument
244 return FrameDecoder::getMetadataOnly(trackMeta, colorFormat, thumbnail, bitDepth); in getImageInternal()
289 if (decoder->init(frameTimeUs, 0 /*option*/, colorFormat) == OK) { in getImageInternal()
309 int64_t timeUs, int option, int colorFormat, bool metaOnly) { in getFrameAtTime() argument
[all …]
/frameworks/av/media/libmedia/include/media/
DMediaMetadataRetrieverInterface.h47 int64_t timeUs, int option, int colorFormat, bool metaOnly) = 0;
49 int index, int colorFormat, bool metaOnly, bool thumbnail) = 0;
51 int index, int colorFormat, int left, int top, int right, int bottom) = 0;
53 int frameIndex, int colorFormat, bool metaOnly) = 0;
DIMediaMetadataRetriever.h46 int64_t timeUs, int option, int colorFormat, bool metaOnly) = 0;
48 int index, int colorFormat, bool metaOnly, bool thumbnail) = 0;
50 int index, int colorFormat, int left, int top, int right, int bottom) = 0;
52 int index, int colorFormat, bool metaOnly) = 0;
Dmediametadataretriever.h99 int colorFormat, bool metaOnly = false);
101 int colorFormat, bool metaOnly = false, bool thumbnail = false);
103 int index, int colorFormat, int left, int top, int right, int bottom);
105 int index, int colorFormat, bool metaOnly = false);
/frameworks/base/media/jni/
Dandroid_media_MediaMetadataRetriever.cpp361 static void setOutConfig(JNIEnv *env, jobject options, AndroidBitmapFormat colorFormat) { in setOutConfig() argument
363 ScopedLocalRef<jobject> config(env, ABitmapConfig_getConfigFromFormat(env, colorFormat)); in setOutConfig()
384 AndroidBitmapFormat colorFormat = getColorFormat(env, params, defaultColorFormat); in android_media_MediaMetadataRetriever_getFrameAtTime() local
388 sp<IMemory> frameMemory = retriever->getFrameAtTime(timeUs, option, colorFormat); in android_media_MediaMetadataRetriever_getFrameAtTime()
401 setOutConfig(env, params, colorFormat); in android_media_MediaMetadataRetriever_getFrameAtTime()
402 return getBitmapFromVideoFrame(env, videoFrame, dst_width, dst_height, colorFormat); in android_media_MediaMetadataRetriever_getFrameAtTime()
415 AndroidBitmapFormat colorFormat = getColorFormat(env, params); in android_media_MediaMetadataRetriever_getImageAtIndex() local
419 sp<IMemory> frameMemory = retriever->getImageAtIndex(index, colorFormat); in android_media_MediaMetadataRetriever_getImageAtIndex()
432 setOutConfig(env, params, colorFormat); in android_media_MediaMetadataRetriever_getImageAtIndex()
433 return getBitmapFromVideoFrame(env, videoFrame, -1, -1, colorFormat); in android_media_MediaMetadataRetriever_getImageAtIndex()
[all …]
/frameworks/av/cmds/stagefright/
Drecord.cpp48 DummySource(int width, int height, int colorFormat)
51 mColorFormat(colorFormat),
57 CHECK(colorFormat == OMX_COLOR_FormatYUV420SemiPlanar ||
58 colorFormat == OMX_COLOR_FormatYUV420Planar);
184 int colorFormat = translateColorToOmxEnumValue(atoi(argv[2]));
185 if (colorFormat == -1) {
210 sp<MediaSource> decoder = new DummySource(width, height, colorFormat);
224 enc_meta->setInt32("color-format", colorFormat);
Drecordvideo.cpp60 DummySource(int width, int height, int nFrames, int fps, int colorFormat) in DummySource() argument
65 mColorFormat(colorFormat), in DummySource()
170 int colorFormat = OMX_COLOR_FormatYUV420Planar; in main() local
190 colorFormat = translateColorToOmxEnumValue(atoi(optarg)); in main()
191 if (colorFormat == -1) { in main()
271 new DummySource(width, height, nFrames, frameRateFps, colorFormat); in main()
292 enc_meta->setInt32("color-format", colorFormat); in main()
/frameworks/av/media/libstagefright/colorconversion/fuzzer/
Dcolor_conversion_fuzzer.cpp48 int32_t getFrameSize(OMX_COLOR_FORMATTYPE colorFormat, int32_t stride, int32_t height);
52 int32_t ColorConversionFuzzer::getFrameSize(OMX_COLOR_FORMATTYPE colorFormat, int32_t stride, in getFrameSize() argument
55 switch ((int32_t)colorFormat) { in getFrameSize()
/frameworks/av/media/libstagefright/
DCameraSource.cpp50 static int32_t getColorFormat(const char* colorFormat) { in getColorFormat() argument
51 if (!colorFormat) { in getColorFormat()
56 if (!strcmp(colorFormat, CameraParameters::PIXEL_FORMAT_YUV420P)) { in getColorFormat()
60 if (!strcmp(colorFormat, CameraParameters::PIXEL_FORMAT_YUV422SP)) { in getColorFormat()
64 if (!strcmp(colorFormat, CameraParameters::PIXEL_FORMAT_YUV420SP)) { in getColorFormat()
68 if (!strcmp(colorFormat, CameraParameters::PIXEL_FORMAT_YUV422I)) { in getColorFormat()
72 if (!strcmp(colorFormat, CameraParameters::PIXEL_FORMAT_RGB565)) { in getColorFormat()
76 if (!strcmp(colorFormat, "OMX_TI_COLOR_FormatYUV420PackedSemiPlanar")) { in getColorFormat()
80 if (!strcmp(colorFormat, CameraParameters::PIXEL_FORMAT_ANDROID_OPAQUE)) { in getColorFormat()
85 "CameraSource::getColorFormat", colorFormat); in getColorFormat()
DFrameDecoder.cpp193 android_pixel_format_t colorFormat, in getDstColorFormat() argument
197 switch (colorFormat) { in getDstColorFormat()
228 ALOGE("Unsupported color format: %d", colorFormat); in getDstColorFormat()
237 const sp<MetaData> &trackMeta, int colorFormat, bool thumbnail, uint32_t bitDepth) { in getMetadataOnly() argument
241 if (!getDstColorFormat((android_pixel_format_t)colorFormat, in getMetadataOnly()
313 int64_t frameTimeUs, int option, int colorFormat) { in init() argument
314 if (!getDstColorFormat((android_pixel_format_t)colorFormat, in init()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DCpuVideoTrackDecoder.java237 ByteBuffer input, ByteBuffer output, int colorFormat, int width, int height) { in convertImage() argument
238 switch (colorFormat) { in convertImage()
246 throw new RuntimeException("Unsupported color format: " + colorFormat + "!"); in convertImage()
/frameworks/av/media/codec2/sfplugin/
DCodec2InfoBuilder.cpp289 auto addDefaultColorFormat = [caps, &supportedColorFormats](int32_t colorFormat) { in addSupportedColorFormats() argument
290 caps->addColorFormat(colorFormat); in addSupportedColorFormats()
292 supportedColorFormats.begin(), supportedColorFormats.end(), colorFormat); in addSupportedColorFormats()
320 for (int32_t colorFormat : supportedColorFormats) { in addSupportedColorFormats() local
321 caps->addColorFormat(colorFormat); in addSupportedColorFormats()
759 std::optional<int32_t> colorFormat = findFrameworkColorFormat(desc); in buildMediaCodecList() local
760 if (colorFormat) { in buildMediaCodecList()
761 pixelFormatMap[desc.pixelFormat] = *colorFormat; in buildMediaCodecList()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DNative.java31 String codecName, String mime, int bitRate, int colorFormat, int frameInterval, in Encode() argument
/frameworks/av/media/libstagefright/include/
DFrameDecoder.h48 status_t init(int64_t frameTimeUs, int option, int colorFormat);
53 const sp<MetaData> &trackMeta, int colorFormat,
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DOMXUtils.h47 const sp<IOMXNode> &omxNode, uint32_t colorFormat,
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.h45 int32_t colorFormat = COLOR_FormatYUV420Flexible; member
/frameworks/av/media/libmedia/tests/codeclist/
DCodecListTest.cpp143 for (auto colorFormat : colorFormats) { in TEST() local
144 ALOGV("supported color formats: %d", colorFormat); in TEST()
/frameworks/av/services/mediametrics/
Dstatsd_codec.cpp424 int32_t colorFormat = -1; in statsd_codec() local
425 if (item->getInt32("android.media.mediacodec.color-format", &colorFormat)) { in statsd_codec()
426 metrics_proto.set_color_format(colorFormat); in statsd_codec()
428 AStatsEvent_writeInt32(event, colorFormat); in statsd_codec()
851 << " color_format:" << colorFormat in statsd_codec()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeEncoder.cpp69 encParams.colorFormat = jColorFormat; in Java_com_android_media_benchmark_library_Native_Encode()
/frameworks/native/opengl/tests/hwc/
DhwcTestLib.h127 uint32_t colorFormat,

12