Home
last modified time | relevance | path

Searched refs:pixelFormat (Results 1 – 25 of 62) sorted by relevance

123

/aosp12/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DSurfaceCompositionMeasuringActivity.java127 configureSurfacesAndWait(0, pixelFormat, false); in measureCompositionScore()
158 configureSurfacesAndWait(0, pixelFormat, false); in measureAllocationScore()
222 updateSystemInfo(pixelFormat); in doTest()
411 measureFPS(medianSurfaceCnt, pixelFormat)); in measureCompositionScore()
445 updateSystemInfo(pixelFormat); in waitForSurfacesConfigured()
461 view.setMode(pixelFormat, invalidate); in configureSurfaces()
477 waitForSurfacesConfigured(pixelFormat); in configureSurfacesAndWait()
512 private void updateSystemInfo(int pixelFormat) { in updateSystemInfo() argument
549 public static String getPixelFormatInfo(int pixelFormat) { in getPixelFormatInfo() argument
550 switch (pixelFormat) { in getPixelFormatInfo()
[all …]
H A DSurfaceCompositionTest.java75 int pixelFormat = TEST_PIXEL_FORMATS[i]; in testSurfaceCompositionPerformance() local
76 String formatName = SurfaceCompositionMeasuringActivity.getPixelFormatInfo(pixelFormat); in testSurfaceCompositionPerformance()
77 CompositorScore score = getActivity().measureCompositionScore(pixelFormat); in testSurfaceCompositionPerformance()
84 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceCompositionPerformance()
98 int pixelFormat = TEST_PIXEL_FORMATS[i]; in testSurfaceAllocationPerformance() local
99 String formatName = SurfaceCompositionMeasuringActivity.getPixelFormatInfo(pixelFormat); in testSurfaceAllocationPerformance()
100 AllocationScore score = getActivity().measureAllocationScore(pixelFormat); in testSurfaceAllocationPerformance()
108 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceAllocationPerformance()
H A DCustomSurfaceView.java96 public void setMode(int pixelFormat, boolean drawNameOnReady) { in setMode() argument
98 getHolder().setFormat(pixelFormat); in setMode()
/aosp12/frameworks/base/libs/hwui/
H A DDeviceInfo.cpp61 AHardwareBuffer_Format pixelFormat; in updateDisplayInfo() local
62 ADisplay_getPreferredWideColorFormat(displays[i], &dataspace, &pixelFormat); in updateDisplayInfo()
64 if (pixelFormat == AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM) { in updateDisplayInfo()
66 } else if (pixelFormat == AHARDWAREBUFFER_FORMAT_R16G16B16A16_FLOAT) { in updateDisplayInfo()
69 LOG_ALWAYS_FATAL("Unreachable: unsupported pixel format: %d", pixelFormat); in updateDisplayInfo()
/aosp12/hardware/interfaces/graphics/composer/2.2/utils/vts/
H A DReadbackVts.cpp98 int32_t ReadbackHelper::GetBytesPerPixel(PixelFormat pixelFormat) { in GetBytesPerPixel() argument
99 switch (pixelFormat) { in GetBytesPerPixel()
110 PixelFormat pixelFormat, in fillBuffer() argument
112 ASSERT_TRUE(pixelFormat == PixelFormat::RGB_888 || pixelFormat == PixelFormat::RGBA_8888); in fillBuffer()
113 int32_t bytesPerPixel = GetBytesPerPixel(pixelFormat); in fillBuffer()
154 bool ReadbackHelper::readbackSupported(const PixelFormat& pixelFormat, const Dataspace& dataspace, in readbackSupported() argument
160 if (pixelFormat != PixelFormat::RGB_888 && pixelFormat != PixelFormat::RGBA_8888) { in readbackSupported()
172 const PixelFormat pixelFormat) { in compareColorBuffers() argument
173 const int32_t bytesPerPixel = ReadbackHelper::GetBytesPerPixel(pixelFormat); in compareColorBuffers()
190 uint32_t height, PixelFormat pixelFormat, Dataspace dataspace) { in ReadbackBuffer() argument
[all …]
/aosp12/frameworks/native/libs/renderengine/include/renderengine/
H A DRenderEngine.h238 int pixelFormat; member
256 : pixelFormat(_pixelFormat), in RenderEngineCreationArgs()
270 Builder& setPixelFormat(int pixelFormat) { in setPixelFormat()
271 this->pixelFormat = pixelFormat; in setPixelFormat()
303 return RenderEngineCreationArgs(pixelFormat, imageCacheSize, useColorManagement, in build()
310 int pixelFormat = 1;
/aosp12/frameworks/native/services/surfaceflinger/tests/
H A DLayerState_test.cpp31 args.pixelFormat = ui::PixelFormat::RGB_565; in TEST()
49 ASSERT_EQ(args.pixelFormat, args2.pixelFormat); in TEST()
63 args.pixelFormat = ui::PixelFormat::RGB_565; in TEST()
80 ASSERT_EQ(args.pixelFormat, args2.pixelFormat); in TEST()
/aosp12/frameworks/av/media/libstagefright/renderfright/include/renderengine/
H A DRenderEngine.h201 int pixelFormat; member
221 : pixelFormat(_pixelFormat), in RenderEngineCreationArgs()
236 Builder& setPixelFormat(int pixelFormat) { in setPixelFormat()
237 this->pixelFormat = pixelFormat; in setPixelFormat()
273 return RenderEngineCreationArgs(pixelFormat, imageCacheSize, useColorManagement, in build()
281 int pixelFormat = 1;
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskSnapshotController.java304 if (pixelFormat == PixelFormat.UNKNOWN) {
305 pixelFormat = mPersister.use16BitFormat() && activity.fillsParent()
311 final boolean isTranslucent = PixelFormat.formatHasAlpha(pixelFormat)
315 builder.setPixelFormat(pixelFormat);
386 int pixelFormat) {
399 bounds, 1.0f, pixelFormat, null);
415 final int pixelFormat = mPersister.use16BitFormat()
418 return createImeSnapshot(task, pixelFormat);
460 pixelFormat, excludeLayers);
479 TaskSnapshot snapshotTask(Task task, int pixelFormat) {
[all …]
/aosp12/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/
H A DReadbackVts.h157 static int32_t GetBytesPerPixel(PixelFormat pixelFormat);
160 PixelFormat pixelFormat,
169 static bool readbackSupported(const PixelFormat& pixelFormat, const Dataspace& dataspace,
177 const uint32_t height, const PixelFormat pixelFormat);
184 PixelFormat pixelFormat, Dataspace dataspace);
/aosp12/packages/services/Car/cpp/computepipe/runner/
H A DPixelFormatUtils.cpp38 AHardwareBuffer_Format PixelFormatToHardwareBufferFormat(PixelFormat pixelFormat) { in PixelFormatToHardwareBufferFormat() argument
39 switch (pixelFormat) { in PixelFormatToHardwareBufferFormat()
/aosp12/frameworks/av/media/libstagefright/omx/
H A DOmxGraphicBufferSource.cpp55 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged() argument
56 mOmxNode->dispatchDataSpaceChanged(dataSpace, aspects, pixelFormat); in dispatchDataSpaceChanged()
/aosp12/packages/services/Car/cpp/computepipe/tests/fuzz/
H A DPixelMemHandleFuzzer.cpp39 PixelFormat pixelFormat = static_cast<PixelFormat>(frame.format()); in convertToInputFrame() local
41 return InputFrame(height, width, pixelFormat, stride, data); in convertToInputFrame()
/aosp12/frameworks/av/media/libstagefright/omx/1.0/
H A DWGraphicBufferSource.cpp67 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
74 tMsg.data.eventData.data3 = pixelFormat; in dispatchDataSpaceChanged()
81 static_cast<long>(pixelFormat)); in dispatchDataSpaceChanged()
/aosp12/frameworks/base/core/jni/
H A Dandroid_hardware_HardwareBuffer.cpp76 int pixelFormat = android_hardware_HardwareBuffer_convertToPixelFormat(format); in android_hardware_HardwareBuffer_create() local
77 if (pixelFormat == 0) { in android_hardware_HardwareBuffer_create()
85 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, in android_hardware_HardwareBuffer_create()
/aosp12/frameworks/av/media/codec2/sfplugin/
H A DOmx2IGraphicBufferSource.cpp73 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
80 msg.u.event_data.data3 = pixelFormat; in dispatchDataSpaceChanged()
H A DCCodecBuffers.cpp39 uint32_t pixelFormat, in AllocateGraphicBuffer() argument
50 width, height, pixelFormat, usage, &block); in AllocateGraphicBuffer()
1015 uint32_t pixelFormat = PIXEL_FORMAT_UNKNOWN; in extractPixelFormat() local
1016 if (C2Mapper::mapPixelFormatFrameworkToCodec(frameworkColorFormat, &pixelFormat)) { in extractPixelFormat()
1017 return pixelFormat; in extractPixelFormat()
1027 uint32_t pixelFormat = extractPixelFormat(mFormat); in toArrayMode() local
1031 [pool = mPool, format = mFormat, lbp = mLocalBufferPool, pixelFormat]() in toArrayMode()
1035 pool, format, pixelFormat, usage, lbp); in toArrayMode()
/aosp12/packages/services/Car/cpp/computepipe/runner/include/
H A DPixelFormatUtils.h30 AHardwareBuffer_Format PixelFormatToHardwareBufferFormat(PixelFormat pixelFormat);
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotControllerTest.java143 final int pixelFormat = PixelFormat.RGBA_8888; in testSnapshotBuilder() local
164 builder.setPixelFormat(pixelFormat); in testSnapshotBuilder()
168 assertEquals(pixelFormat, builder.getPixelFormat()); in testSnapshotBuilder()
/aosp12/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
H A DIOmxNodeWrapper.h34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
/aosp12/frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/
H A DComponentWrapper.h34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
/aosp12/hardware/interfaces/automotive/evs/1.1/default/
H A DConfigManagerUtil.h39 int32_t &pixelFormat);
/aosp12/packages/services/Car/cpp/evs/sampleDriver/
H A DConfigManagerUtil.h39 int32_t &pixelFormat);
/aosp12/frameworks/base/libs/hwui/jni/
H A DImageDecoder.cpp401 jint pixelFormat = postProcessAndRelease(env, jdecoder, std::move(canvas)); in ImageDecoder_nDecodeBitmap() local
407 switch (pixelFormat) { in ImageDecoder_nDecodeBitmap()
418 msg.printf("invalid return from postProcess: %i", pixelFormat); in ImageDecoder_nDecodeBitmap()
426 msg.printf("incompatible return from postProcess: %i", pixelFormat); in ImageDecoder_nDecodeBitmap()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/
H A DRenderSurface.cpp109 void RenderSurface::setBufferPixelFormat(ui::PixelFormat pixelFormat) { in setBufferPixelFormat() argument
110 native_window_set_buffers_format(mNativeWindow.get(), static_cast<int32_t>(pixelFormat)); in setBufferPixelFormat()

123