Home
last modified time | relevance | path

Searched refs:PixelFormat (Results 1 – 25 of 275) sorted by relevance

1234567891011

/frameworks/base/graphics/java/android/graphics/
DPixelFormat.java24 public class PixelFormat { class
106 public static void getPixelFormatInfo(@Format int format, PixelFormat info) { in getPixelFormatInfo()
152 case PixelFormat.A_8: in formatHasAlpha()
153 case PixelFormat.LA_88: in formatHasAlpha()
154 case PixelFormat.RGBA_4444: in formatHasAlpha()
155 case PixelFormat.RGBA_5551: in formatHasAlpha()
156 case PixelFormat.RGBA_8888: in formatHasAlpha()
157 case PixelFormat.RGBA_F16: in formatHasAlpha()
158 case PixelFormat.RGBA_1010102: in formatHasAlpha()
159 case PixelFormat.TRANSLUCENT: in formatHasAlpha()
[all …]
/frameworks/base/media/java/android/media/
DImageUtils.java20 import android.graphics.PixelFormat;
51 case PixelFormat.RGB_565: in getNumPlanesForFormat()
52 case PixelFormat.RGBA_8888: in getNumPlanesForFormat()
53 case PixelFormat.RGBX_8888: in getNumPlanesForFormat()
54 case PixelFormat.RGB_888: in getNumPlanesForFormat()
215 case PixelFormat.RGB_565: in getEstimatedNativeAllocBytes()
224 case PixelFormat.RGB_888: in getEstimatedNativeAllocBytes()
227 case PixelFormat.RGBA_8888: in getEstimatedNativeAllocBytes()
228 case PixelFormat.RGBX_8888: in getEstimatedNativeAllocBytes()
255 case PixelFormat.RGB_565: in getEffectivePlaneSizeForImage()
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBuffer.h97 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
135 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage,
140 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint32_t inUsage, in GraphicBuffer()
144 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
147 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
162 PixelFormat getPixelFormat() const { return format; } in getPixelFormat()
177 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage);
180 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage);
208 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
260 PixelFormat inFormat, uint32_t inLayerCount,
[all …]
DPixelFormat.h67 typedef int32_t PixelFormat; typedef
69 uint32_t bytesPerPixel(PixelFormat format);
70 uint32_t bitsPerPixel(PixelFormat format);
DGralloc2.h49 android::PixelFormat format, uint32_t layerCount, uint64_t usage,
64 status_t isSupported(uint32_t width, uint32_t height, android::PixelFormat format,
86 status_t allocate(uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount,
/frameworks/native/libs/ui/include/ui/
DGraphicBuffer.h97 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
135 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage,
140 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint32_t inUsage, in GraphicBuffer()
144 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
147 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
162 PixelFormat getPixelFormat() const { return format; } in getPixelFormat()
177 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage);
180 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage);
208 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
260 PixelFormat inFormat, uint32_t inLayerCount,
[all …]
DPixelFormat.h67 typedef int32_t PixelFormat; typedef
69 uint32_t bytesPerPixel(PixelFormat format);
70 uint32_t bitsPerPixel(PixelFormat format);
DGralloc.h49 uint32_t height, android::PixelFormat format,
77 virtual status_t isSupported(uint32_t width, uint32_t height, android::PixelFormat format,
95 virtual status_t allocate(uint32_t width, uint32_t height, PixelFormat format,
DGralloc3.h48 android::PixelFormat format, uint32_t layerCount, uint64_t usage,
63 status_t isSupported(uint32_t width, uint32_t height, android::PixelFormat format,
84 status_t allocate(uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount,
DGralloc2.h49 android::PixelFormat format, uint32_t layerCount, uint64_t usage,
64 status_t isSupported(uint32_t width, uint32_t height, android::PixelFormat format,
86 status_t allocate(uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount,
DGraphicBufferAllocator.h45 status_t allocate(uint32_t w, uint32_t h, PixelFormat format,
62 PixelFormat format;
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionMeasuringActivity.java29 import android.graphics.PixelFormat;
79 PixelFormat.TRANSLUCENT,
80 PixelFormat.TRANSPARENT,
81 PixelFormat.OPAQUE,
82 PixelFormat.RGBA_8888,
83 PixelFormat.RGBX_8888,
84 PixelFormat.RGB_888,
85 PixelFormat.RGB_565,
376 updateSystemInfo(PixelFormat.UNKNOWN); in onResume()
553 case PixelFormat.TRANSLUCENT: in getPixelFormatInfo()
[all …]
DSurfaceCompositionTest.java19 import android.graphics.PixelFormat;
44 PixelFormat.TRANSLUCENT,
45 PixelFormat.OPAQUE,
84 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceCompositionPerformance()
108 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceAllocationPerformance()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java42 import android.graphics.PixelFormat;
1005 @Deprecated public abstract @PixelFormat.Opacity int getOpacity(); in getOpacity()
1022 public static @PixelFormat.Opacity int resolveOpacity(@PixelFormat.Opacity int op1, in resolveOpacity()
1023 @PixelFormat.Opacity int op2) { in resolveOpacity()
1027 if (op1 == PixelFormat.UNKNOWN || op2 == PixelFormat.UNKNOWN) { in resolveOpacity()
1028 return PixelFormat.UNKNOWN; in resolveOpacity()
1030 if (op1 == PixelFormat.TRANSLUCENT || op2 == PixelFormat.TRANSLUCENT) { in resolveOpacity()
1031 return PixelFormat.TRANSLUCENT; in resolveOpacity()
1033 if (op1 == PixelFormat.TRANSPARENT || op2 == PixelFormat.TRANSPARENT) { in resolveOpacity()
1034 return PixelFormat.TRANSPARENT; in resolveOpacity()
[all …]
DClipDrawable.java26 import android.graphics.PixelFormat;
164 if (opacity == PixelFormat.TRANSPARENT || dr.getLevel() == 0) { in getOpacity()
165 return PixelFormat.TRANSPARENT; in getOpacity()
174 return PixelFormat.TRANSLUCENT; in getOpacity()
DColorDrawable.java35 import android.graphics.PixelFormat;
269 return PixelFormat.TRANSLUCENT; in getOpacity()
274 return PixelFormat.OPAQUE; in getOpacity()
276 return PixelFormat.TRANSPARENT; in getOpacity()
278 return PixelFormat.TRANSLUCENT; in getOpacity()
/frameworks/native/libs/gui/include/gui/
DISurfaceComposer.h219 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
249 ui::PixelFormat::RGBA_8888, sourceCrop, reqWidth, reqHeight,
270 const ui::Dataspace reqDataspace, const ui::PixelFormat reqPixelFormat,
283 ui::PixelFormat::RGBA_8888, sourceCrop, {}, frameScale, childrenOnly);
325 ui::PixelFormat* defaultPixelFormat,
327 ui::PixelFormat* wideColorGamutPixelFormat) const = 0;
332 ui::PixelFormat* outFormat,
DSurfaceComposerClient.h152 ui::PixelFormat* defaultPixelFormat,
154 ui::PixelFormat* wideColorGamutPixelFormat);
223 PixelFormat format, // pixel-format desired
232 PixelFormat format, // pixel-format desired
243 PixelFormat format, // pixel-format desired
491 ui::PixelFormat* outFormat,
519 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
524 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
530 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
534 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
/frameworks/native/libs/ui/
DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel()
42 uint32_t bitsPerPixel(PixelFormat format) { in bitsPerPixel()
DGraphicBuffer.cpp84 PixelFormat inFormat, uint32_t inUsage, std::string requestorName) in GraphicBuffer()
89 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer()
98 PixelFormat inFormat, uint32_t inLayerCount, uint32_t inUsage, in GraphicBuffer()
107 uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer()
123 static_cast<PixelFormat>(buffer->desc().format), in GraphicBuffer()
168 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage) in reallocate()
190 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage) in needsReallocation()
202 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage, in initWithSize()
225 uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in initWithHandle()
370 status_t GraphicBuffer::isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in isSupported()
[all …]
DGralloc2.cpp32 using android::hardware::graphics::common::V1_1::PixelFormat;
146 static_cast<hardware::graphics::common::V1_0::PixelFormat>(descriptorInfo->format), in createDescriptor()
182 uint32_t height, android::PixelFormat format, in validateBufferSize()
193 descriptorInfo.format = static_cast<hardware::graphics::common::V1_1::PixelFormat>(format); in validateBufferSize()
355 android::PixelFormat /*format*/, uint32_t /*layerCount*/, in isSupported() argument
382 status_t Gralloc2Allocator::allocate(uint32_t width, uint32_t height, PixelFormat format, in allocate()
389 descriptorInfo.format = static_cast<hardware::graphics::common::V1_1::PixelFormat>(format); in allocate()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContainer.java25 import android.graphics.PixelFormat;
410 && mSplitBackground.getOpacity() == PixelFormat.OPAQUE) { in getOpacity()
411 return PixelFormat.OPAQUE; in getOpacity()
415 || mStackedBackground.getOpacity() != PixelFormat.OPAQUE)) { in getOpacity()
416 return PixelFormat.UNKNOWN; in getOpacity()
419 && mBackground.getOpacity() == PixelFormat.OPAQUE) { in getOpacity()
420 return PixelFormat.OPAQUE; in getOpacity()
424 return PixelFormat.UNKNOWN; in getOpacity()
/frameworks/base/libs/hwui/
DDeviceInfo.cpp96 ui::PixelFormat defaultPixelFormat, wcgPixelFormat; in queryWideColorGamutPreference()
116 case ui::PixelFormat::RGBA_8888: in queryWideColorGamutPreference()
119 case ui::PixelFormat::RGBA_FP16: in queryWideColorGamutPreference()
/frameworks/base/tests/testables/src/android/testing/
DViewUtils.java18 import android.graphics.PixelFormat;
40 0, PixelFormat.TRANSLUCENT); in attachView()
/frameworks/native/libs/ui/tests/
DGraphicBufferAllocator_test.cpp70 android::PixelFormat format = PIXEL_FORMAT_RGBA_8888; in TEST_F()
80 android::PixelFormat format = PIXEL_FORMAT_RGBA_8888; in TEST_F()
96 android::PixelFormat format = PIXEL_FORMAT_RGBA_8888; in TEST_F()

1234567891011