Home
last modified time | relevance | path

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

12345678910>>...13

/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/native/libs/ui/include/ui/
DGralloc.h55 uint32_t height, android::PixelFormat format,
84 android::PixelFormat /*format*/, uint32_t /*layerCount*/, in isSupported() argument
107 ui::PixelFormat* /*outPixelFormatRequested*/) const { in getPixelFormatRequested() argument
183 PixelFormat /*format*/, uint32_t /*layerCount*/, in getDefaultPixelFormatFourCC()
189 PixelFormat /*format*/, uint32_t /*layerCount*/, in getDefaultPixelFormatModifier()
195 PixelFormat /*format*/, uint32_t /*layerCount*/, in getDefaultAllocationSize() argument
201 PixelFormat /*format*/, uint32_t /*layerCount*/, in getDefaultProtectedContent() argument
207 uint32_t /*width*/, uint32_t /*height*/, PixelFormat /*format*/, in getDefaultCompression() argument
213 PixelFormat /*format*/, uint32_t /*layerCount*/, in getDefaultCompression() argument
219 uint32_t /*width*/, uint32_t /*height*/, PixelFormat /*format*/, in getDefaultInterlaced() argument
[all …]
DGraphicBufferMapper.h59 PixelFormat format, uint64_t usage, uint32_t stride,
89 status_t isSupported(uint32_t width, uint32_t height, android::PixelFormat format,
103 ui::PixelFormat* outPixelFormatRequested);
135 status_t getDefaultPixelFormatFourCC(uint32_t width, uint32_t height, PixelFormat format,
138 status_t getDefaultPixelFormatModifier(uint32_t width, uint32_t height, PixelFormat format,
141 status_t getDefaultAllocationSize(uint32_t width, uint32_t height, PixelFormat format,
144 status_t getDefaultProtectedContent(uint32_t width, uint32_t height, PixelFormat format,
148 uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount,
151 status_t getDefaultCompression(uint32_t width, uint32_t height, PixelFormat format,
155 uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount,
[all …]
DGralloc4.h52 PixelFormat format, uint32_t layerCount, uint64_t usage,
67 status_t isSupported(uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount,
76 ui::PixelFormat* outPixelFormatRequested) const override;
112 status_t getDefaultPixelFormatFourCC(uint32_t width, uint32_t height, PixelFormat format,
115 status_t getDefaultPixelFormatModifier(uint32_t width, uint32_t height, PixelFormat format,
118 status_t getDefaultAllocationSize(uint32_t width, uint32_t height, PixelFormat format,
121 status_t getDefaultProtectedContent(uint32_t width, uint32_t height, PixelFormat format,
124 status_t getDefaultCompression(uint32_t width, uint32_t height, PixelFormat format,
128 status_t getDefaultCompression(uint32_t width, uint32_t height, PixelFormat format,
131 status_t getDefaultInterlaced(uint32_t width, uint32_t height, PixelFormat format,
[all …]
DGraphicBuffer.h93 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
131 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage,
136 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint32_t inUsage, in GraphicBuffer()
140 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
143 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
153 PixelFormat getPixelFormat() const { return format; } in getPixelFormat()
167 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage);
170 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage);
198 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
245 PixelFormat inFormat, uint32_t inLayerCount,
[all …]
DGraphicBufferAllocator.h50 status_t allocate(uint32_t w, uint32_t h, PixelFormat format, uint32_t layerCount,
61 status_t allocateRawHandle(uint32_t w, uint32_t h, PixelFormat format, uint32_t layerCount,
68 status_t allocate(uint32_t w, uint32_t h, PixelFormat format,
85 PixelFormat format;
92 status_t allocateHelper(uint32_t w, uint32_t h, PixelFormat format, uint32_t layerCount,
DPixelFormat.h67 typedef int32_t PixelFormat; typedef
69 uint32_t bytesPerPixel(PixelFormat format);
70 uint32_t bitsPerPixel(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,
85 PixelFormat format, uint32_t layerCount, uint64_t usage, uint32_t bufferCount,
/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/
DGraphicBufferMapper.h59 PixelFormat format, uint64_t usage, uint32_t stride,
89 status_t isSupported(uint32_t width, uint32_t height, android::PixelFormat format,
103 ui::PixelFormat* outPixelFormatRequested);
135 status_t getDefaultPixelFormatFourCC(uint32_t width, uint32_t height, PixelFormat format,
138 status_t getDefaultPixelFormatModifier(uint32_t width, uint32_t height, PixelFormat format,
141 status_t getDefaultAllocationSize(uint32_t width, uint32_t height, PixelFormat format,
144 status_t getDefaultProtectedContent(uint32_t width, uint32_t height, PixelFormat format,
148 uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount,
151 status_t getDefaultCompression(uint32_t width, uint32_t height, PixelFormat format,
155 uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount,
[all …]
DGraphicBuffer.h93 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
131 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage,
136 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint32_t inUsage, in GraphicBuffer()
140 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
143 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
153 PixelFormat getPixelFormat() const { return format; } in getPixelFormat()
167 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage);
170 PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage);
198 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
245 PixelFormat inFormat, uint32_t inLayerCount,
[all …]
DGraphicBufferAllocator.h50 status_t allocate(uint32_t w, uint32_t h, PixelFormat format, uint32_t layerCount,
61 status_t allocateRawHandle(uint32_t w, uint32_t h, PixelFormat format, uint32_t layerCount,
68 status_t allocate(uint32_t w, uint32_t h, PixelFormat format,
85 PixelFormat format;
92 status_t allocateHelper(uint32_t w, uint32_t h, PixelFormat format, uint32_t layerCount,
DPixelFormat.h67 typedef int32_t PixelFormat; typedef
69 uint32_t bytesPerPixel(PixelFormat format);
70 uint32_t bitsPerPixel(PixelFormat format);
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionMeasuringActivity.java28 import android.graphics.PixelFormat;
78 PixelFormat.TRANSLUCENT,
79 PixelFormat.TRANSPARENT,
80 PixelFormat.OPAQUE,
81 PixelFormat.RGBA_8888,
82 PixelFormat.RGBX_8888,
83 PixelFormat.RGB_888,
84 PixelFormat.RGB_565,
375 updateSystemInfo(PixelFormat.UNKNOWN); in onResume()
551 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/native/include/ui/
DPixelFormat.h67 typedef int32_t PixelFormat; typedef
69 uint32_t bytesPerPixel(PixelFormat format);
70 uint32_t bitsPerPixel(PixelFormat format);
/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp87 PixelFormat format, uint64_t usage, uint32_t stride, in importBuffer()
187 android::PixelFormat format, uint32_t layerCount, in isSupported()
213 ui::PixelFormat* outPixelFormatRequested) { in getPixelFormatRequested()
305 PixelFormat format, uint32_t layerCount, in getDefaultPixelFormatFourCC()
313 PixelFormat format, uint32_t layerCount, in getDefaultPixelFormatModifier()
321 PixelFormat format, uint32_t layerCount, in getDefaultAllocationSize()
329 PixelFormat format, uint32_t layerCount, in getDefaultProtectedContent()
337 uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, uint64_t usage, in getDefaultCompression()
343 PixelFormat format, uint32_t layerCount, in getDefaultCompression()
350 uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, uint64_t usage, in getDefaultInterlaced()
[all …]
DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel()
42 uint32_t bitsPerPixel(PixelFormat format) { in bitsPerPixel()
DGralloc4.cpp72 PixelFormat format, uint32_t layerCount, uint64_t usage, in sBufferDescriptorInfo()
78 outDescriptorInfo->format = static_cast<hardware::graphics::common::V1_2::PixelFormat>(format); in sBufferDescriptorInfo()
164 uint32_t height, PixelFormat format, in validateBufferSize()
405 status_t Gralloc4Mapper::isSupported(uint32_t width, uint32_t height, PixelFormat format, in isSupported()
487 ui::PixelFormat* outPixelFormatRequested) const { in getPixelFormatRequested()
637 status_t Gralloc4Mapper::getDefault(uint32_t width, uint32_t height, PixelFormat format, in getDefault()
671 PixelFormat format, uint32_t layerCount, in getDefaultPixelFormatFourCC()
680 PixelFormat format, uint32_t layerCount, in getDefaultPixelFormatModifier()
689 PixelFormat format, uint32_t layerCount, in getDefaultAllocationSize()
698 PixelFormat format, uint32_t layerCount, in getDefaultProtectedContent()
[all …]
/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 …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplayCreationArgs.h51 ui::PixelFormat pixelFormat = static_cast<ui::PixelFormat>(PIXEL_FORMAT_UNKNOWN);
88 DisplayCreationArgsBuilder& setPixelFormat(ui::PixelFormat pixelFormat) { in setPixelFormat()
/frameworks/native/libs/gui/include/gui/
DISurfaceComposer.h271 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
302 ui::PixelFormat::RGBA_8888, sourceCrop, reqWidth, reqHeight,
323 ui::Dataspace reqDataspace, ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
335 ui::PixelFormat::RGBA_8888, sourceCrop, {}, frameScale, childrenOnly);
377 ui::PixelFormat* defaultPixelFormat,
379 ui::PixelFormat* wideColorGamutPixelFormat) const = 0;
384 ui::PixelFormat* outFormat,
DSurfaceComposerClient.h174 ui::PixelFormat* defaultPixelFormat,
176 ui::PixelFormat* wideColorGamutPixelFormat);
259 PixelFormat format, // pixel-format desired
268 PixelFormat format, // pixel-format desired
279 PixelFormat format, // pixel-format desired
570 ui::PixelFormat* outFormat,
598 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
603 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
609 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
613 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
/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/tests/testables/src/android/testing/
DViewUtils.java18 import android.graphics.PixelFormat;
40 0, PixelFormat.TRANSLUCENT); in attachView()

12345678910>>...13