Home
last modified time | relevance | path

Searched refs:BufferUsage (Results 1 – 25 of 119) sorted by relevance

12345

/hardware/google/gchips/gralloc4/src/
Dmali_gralloc_usages.h91 #define GRALLOC_USAGE_SW_WRITE_RARELY static_cast<uint64_t>(hidl_common::BufferUsage::CPU_WRITE_RAR…
92 #define GRALLOC_USAGE_SW_WRITE_OFTEN static_cast<uint64_t>(hidl_common::BufferUsage::CPU_WRITE_OFTE…
93 #define GRALLOC_USAGE_SW_READ_RARELY static_cast<uint64_t>(hidl_common::BufferUsage::CPU_READ_RAREL…
94 #define GRALLOC_USAGE_SW_READ_OFTEN static_cast<uint64_t>(hidl_common::BufferUsage::CPU_READ_OFTEN)
95 #define GRALLOC_USAGE_RENDERSCRIPT static_cast<uint64_t>(hidl_common::BufferUsage::RENDERSCRIPT)
96 #define GRALLOC_USAGE_HW_FB static_cast<uint64_t>(hidl_common::BufferUsage::COMPOSER_CLIENT_TARGET)
101 #define GRALLOC_USAGE_SW_WRITE_MASK static_cast<uint64_t>(hidl_common::BufferUsage::CPU_WRITE_MASK)
102 #define GRALLOC_USAGE_SW_READ_MASK static_cast<uint64_t>(hidl_common::BufferUsage::CPU_READ_MASK)
103 #define GRALLOC_USAGE_PROTECTED static_cast<uint64_t>(hidl_common::BufferUsage::PROTECTED)
104 #define GRALLOC_USAGE_CURSOR static_cast<uint64_t>(hidl_common::BufferUsage::COMPOSER_CURSOR)
[all …]
/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/
DGralloc1Hal.h31 using android::hardware::graphics::common::V1_1::BufferUsage;
109 uint64_t producerUsage = usage & ~static_cast<uint64_t>(BufferUsage::CPU_READ_MASK | in toProducerUsage()
110 BufferUsage::CPU_WRITE_MASK | in toProducerUsage()
111 BufferUsage::GPU_DATA_BUFFER); in toProducerUsage()
113 switch (usage & BufferUsage::CPU_WRITE_MASK) { in toProducerUsage()
114 case static_cast<uint64_t>(BufferUsage::CPU_WRITE_RARELY): in toProducerUsage()
117 case static_cast<uint64_t>(BufferUsage::CPU_WRITE_OFTEN): in toProducerUsage()
124 switch (usage & BufferUsage::CPU_READ_MASK) { in toProducerUsage()
125 case static_cast<uint64_t>(BufferUsage::CPU_READ_RARELY): in toProducerUsage()
128 case static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN): in toProducerUsage()
[all …]
/hardware/google/gchips/gralloc4/src/core/
Dmali_gralloc_bufferdescriptor.cpp24 using android::hardware::graphics::common::V1_2::BufferUsage;
26 #define BUFFERUSAGE(n) { static_cast<uint64_t>(BufferUsage::n), #n }
66 switch (static_cast<BufferUsage>(usage & BufferUsage::CPU_READ_MASK)) { in describe_usage()
67 case BufferUsage::CPU_READ_NEVER: in describe_usage()
70 case BufferUsage::CPU_READ_RARELY: in describe_usage()
73 case BufferUsage::CPU_READ_OFTEN: in describe_usage()
81 switch (static_cast<BufferUsage>(usage & BufferUsage::CPU_WRITE_MASK)) { in describe_usage()
82 case BufferUsage::CPU_WRITE_NEVER: in describe_usage()
85 case BufferUsage::CPU_WRITE_RARELY: in describe_usage()
88 case BufferUsage::CPU_WRITE_OFTEN: in describe_usage()
/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/
DGralloc0Hal.h39 using common::V1_0::BufferUsage;
179 return BufferUsage::CPU_READ_MASK | BufferUsage::CPU_WRITE_MASK | BufferUsage::GPU_TEXTURE | in getValidBufferUsageMask()
180 BufferUsage::GPU_RENDER_TARGET | BufferUsage::COMPOSER_OVERLAY | in getValidBufferUsageMask()
181 BufferUsage::COMPOSER_CLIENT_TARGET | BufferUsage::PROTECTED | in getValidBufferUsageMask()
182 BufferUsage::COMPOSER_CURSOR | BufferUsage::VIDEO_ENCODER | in getValidBufferUsageMask()
183 BufferUsage::CAMERA_OUTPUT | BufferUsage::CAMERA_INPUT | BufferUsage::RENDERSCRIPT | in getValidBufferUsageMask()
184 BufferUsage::VIDEO_DECODER | BufferUsage::SENSOR_DIRECT_DATA | in getValidBufferUsageMask()
185 BufferUsage::GPU_DATA_BUFFER | BufferUsage::VENDOR_MASK; in getValidBufferUsageMask()
DGralloc1Hal.h40 using common::V1_0::BufferUsage;
128 cpuUsage & ~static_cast<uint64_t>(BufferUsage::CPU_WRITE_MASK); in lock()
153 cpuUsage & ~static_cast<uint64_t>(BufferUsage::CPU_WRITE_MASK); in lockYCbCr()
223 return BufferUsage::CPU_READ_MASK | BufferUsage::CPU_WRITE_MASK | BufferUsage::GPU_TEXTURE | in getValidBufferUsageMask()
224 BufferUsage::GPU_RENDER_TARGET | BufferUsage::COMPOSER_OVERLAY | in getValidBufferUsageMask()
225 BufferUsage::COMPOSER_CLIENT_TARGET | BufferUsage::PROTECTED | in getValidBufferUsageMask()
226 BufferUsage::COMPOSER_CURSOR | BufferUsage::VIDEO_ENCODER | in getValidBufferUsageMask()
227 BufferUsage::CAMERA_OUTPUT | BufferUsage::CAMERA_INPUT | BufferUsage::RENDERSCRIPT | in getValidBufferUsageMask()
228 BufferUsage::VIDEO_DECODER | BufferUsage::SENSOR_DIRECT_DATA | in getValidBufferUsageMask()
229 BufferUsage::GPU_DATA_BUFFER | BufferUsage::VENDOR_MASK | in getValidBufferUsageMask()
[all …]
/hardware/google/gchips/gralloc4/src/hidl_common/
DBufferDescriptor.h36 static_cast<uint64_t>(BufferUsage::GPU_CUBE_MAP) |
37 static_cast<uint64_t>(BufferUsage::GPU_MIPMAP_COMPLETE) |
38 …static_cast<uint64_t>(BufferUsage::CPU_READ_MASK) | static_cast<uint64_t>(BufferUsage::CPU_WRITE_M…
39 …static_cast<uint64_t>(BufferUsage::GPU_TEXTURE) | static_cast<uint64_t>(BufferUsage::GPU_RENDER_TA…
40 …static_cast<uint64_t>(BufferUsage::COMPOSER_OVERLAY) | static_cast<uint64_t>(BufferUsage::COMPOSER…
41 …static_cast<uint64_t>(BufferUsage::CAMERA_INPUT) | static_cast<uint64_t>(BufferUsage::CAMERA_OUTPU…
42 static_cast<uint64_t>(BufferUsage::PROTECTED) |
43 static_cast<uint64_t>(BufferUsage::COMPOSER_CURSOR) |
44 static_cast<uint64_t>(BufferUsage::VIDEO_ENCODER) |
45 static_cast<uint64_t>(BufferUsage::RENDERSCRIPT) |
[all …]
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
DGralloc1Hal.h39 using common::V1_0::BufferUsage;
219 uint64_t producerUsage = usage & ~static_cast<uint64_t>(BufferUsage::CPU_READ_MASK | in toProducerUsage()
220 BufferUsage::CPU_WRITE_MASK | in toProducerUsage()
221 BufferUsage::GPU_DATA_BUFFER); in toProducerUsage()
223 switch (usage & BufferUsage::CPU_WRITE_MASK) { in toProducerUsage()
224 case static_cast<uint64_t>(BufferUsage::CPU_WRITE_RARELY): in toProducerUsage()
227 case static_cast<uint64_t>(BufferUsage::CPU_WRITE_OFTEN): in toProducerUsage()
234 switch (usage & BufferUsage::CPU_READ_MASK) { in toProducerUsage()
235 case static_cast<uint64_t>(BufferUsage::CPU_READ_RARELY): in toProducerUsage()
238 case static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN): in toProducerUsage()
[all …]
/hardware/interfaces/graphics/allocator/aidl/vts/
DVtsHalGraphicsAllocatorAidl_TargetTest.cpp59 inline BufferUsage operator|(BufferUsage lhs, BufferUsage rhs) { in operator |()
60 using T = std::underlying_type_t<BufferUsage>; in operator |()
61 return static_cast<BufferUsage>(static_cast<T>(lhs) | static_cast<T>(rhs)); in operator |()
64 inline BufferUsage& operator|=(BufferUsage& lhs, BufferUsage rhs) { in operator |=()
308 .usage = BufferUsage::CPU_WRITE_OFTEN | BufferUsage::CPU_READ_OFTEN, in TEST_P()
321 constexpr auto FirstInvalidV2Usage = static_cast<BufferUsage>(1LL << 33); in TEST_P()
323 BufferUsage invalidUsage; in TEST_P()
336 .usage = BufferUsage::CPU_READ_OFTEN | BufferUsage::CPU_WRITE_OFTEN, in TEST_P()
362 .usage = BufferUsage::CPU_READ_OFTEN | BufferUsage::CPU_WRITE_OFTEN, in TEST_P()
378 .usage = BufferUsage::GPU_RENDER_TARGET | BufferUsage::CPU_READ_OFTEN | in TEST_P()
[all …]
/hardware/interfaces/graphics/common/aidl/android/hardware/graphics/common/
DHardwareBufferDescription.aidl19 import android.hardware.graphics.common.BufferUsage;
34 BufferUsage usage = BufferUsage.CPU_READ_NEVER;
/hardware/interfaces/graphics/allocator/aidl/android/hardware/graphics/allocator/
DBufferDescriptorInfo.aidl19 import android.hardware.graphics.common.BufferUsage;
69 BufferUsage usage = BufferUsage.CPU_READ_NEVER;
/hardware/google/graphics/common/libhwc2.1/libvirtualdisplay/
DExynosVirtualDisplay.cpp26 using vendor::graphics::BufferUsage;
54 mSinkUsage = BufferUsage::COMPOSER_OVERLAY | BufferUsage::VIDEO_ENCODER; in ExynosVirtualDisplay()
383 mSinkUsage = BufferUsage::COMPOSER_OVERLAY | BufferUsage::VIDEO_ENCODER; in setSinkBufferUsage()
385 mSinkUsage |= BufferUsage::CPU_READ_NEVER | in setSinkBufferUsage()
386 BufferUsage::CPU_WRITE_NEVER | in setSinkBufferUsage()
387 BufferUsage::PROTECTED; in setSinkBufferUsage()
428 mSinkUsage = BufferUsage::COMPOSER_OVERLAY | BufferUsage::VIDEO_ENCODER; in initPerFrameData()
494 mSinkUsage = BufferUsage::COMPOSER_OVERLAY | BufferUsage::VIDEO_ENCODER; in handleSkipFrame()
/hardware/qcom/sm7250/display/gralloc/
Dgr_utils.cpp264 if (usage & BufferUsage::CPU_READ_MASK) { in CpuCanRead()
272 if (usage & BufferUsage::CPU_WRITE_MASK) { in CpuCanWrite()
286 if (usage & BufferUsage::PROTECTED) { in GetDataAlignment()
287 if ((usage & BufferUsage::CAMERA_OUTPUT) || (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY)) { in GetDataAlignment()
300 if ((usage & BufferUsage::GPU_MIPMAP_COMPLETE)) { in IsGPUFlagSupported()
305 if ((usage & BufferUsage::GPU_CUBE_MAP)) { in IsGPUFlagSupported()
797 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcPISupported()
821 (usage & BufferUsage::COMPOSER_CLIENT_TARGET)) in IsUBwcEnabled()
825 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcEnabled()
1161 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in GetAlignedWidthAndHeight()
[all …]
/hardware/qcom/sm8150/display/gralloc/
Dgr_utils.cpp197 if (usage & BufferUsage::CPU_READ_MASK) { in CpuCanRead()
205 if (usage & BufferUsage::CPU_WRITE_MASK) { in CpuCanWrite()
219 if (usage & BufferUsage::PROTECTED) { in GetDataAlignment()
232 if ((usage & BufferUsage::GPU_MIPMAP_COMPLETE)) { in IsGPUFlagSupported()
237 if ((usage & BufferUsage::GPU_CUBE_MAP)) { in IsGPUFlagSupported()
710 if (usage & BufferUsage::COMPOSER_OVERLAY || !(usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC_PI)) { in IsUBwcPISupported()
718 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcPISupported()
742 (usage & BufferUsage::COMPOSER_CLIENT_TARGET)) in IsUBwcEnabled()
746 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcEnabled()
1042 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in GetAlignedWidthAndHeight()
[all …]
/hardware/interfaces/graphics/mapper/stable-c/vts/
DVtsHalGraphicsMapperStableC_TargetTest.cpp54 inline constexpr BufferUsage operator|(BufferUsage lhs, BufferUsage rhs) { in operator |()
55 using T = std::underlying_type_t<BufferUsage>; in operator |()
56 return static_cast<BufferUsage>(static_cast<T>(lhs) | static_cast<T>(rhs)); in operator |()
59 inline BufferUsage& operator|=(BufferUsage& lhs, BufferUsage rhs) { in operator |=()
208 .usage = BufferUsage::CPU_WRITE_OFTEN | BufferUsage::CPU_READ_OFTEN, in allocateGeneric()
620 .usage = BufferUsage::CPU_WRITE_OFTEN | BufferUsage::CPU_READ_OFTEN, in TEST_P()
634 .usage = BufferUsage::CPU_WRITE_OFTEN | BufferUsage::CPU_READ_OFTEN, in TEST_P()
659 .usage = BufferUsage::CPU_WRITE_OFTEN | BufferUsage::CPU_READ_OFTEN, in TEST_P()
711 constexpr auto usage = BufferUsage::CPU_WRITE_OFTEN | BufferUsage::CPU_READ_OFTEN; in TEST_P()
762 .usage = BufferUsage::CPU_WRITE_OFTEN | BufferUsage::CPU_READ_OFTEN, in TEST_P()
[all …]
/hardware/interfaces/graphics/common/aidl/aidl_api/android.hardware.graphics.common/4/android/hardware/graphics/common/
DHardwareBufferDescription.aidl42 …android.hardware.graphics.common.BufferUsage usage = android.hardware.graphics.common.BufferUsage.…
/hardware/interfaces/graphics/common/aidl/aidl_api/android.hardware.graphics.common/3/android/hardware/graphics/common/
DHardwareBufferDescription.aidl42 …android.hardware.graphics.common.BufferUsage usage = android.hardware.graphics.common.BufferUsage.…
/hardware/interfaces/graphics/common/aidl/aidl_api/android.hardware.graphics.common/5/android/hardware/graphics/common/
DHardwareBufferDescription.aidl42 …android.hardware.graphics.common.BufferUsage usage = android.hardware.graphics.common.BufferUsage.…
/hardware/interfaces/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/
DHardwareBufferDescription.aidl42 …android.hardware.graphics.common.BufferUsage usage = android.hardware.graphics.common.BufferUsage.…
/hardware/interfaces/graphics/common/aidl/aidl_api/android.hardware.graphics.common/2/android/hardware/graphics/common/
DHardwareBufferDescription.aidl41 …android.hardware.graphics.common.BufferUsage usage = android.hardware.graphics.common.BufferUsage.…
/hardware/interfaces/camera/device/aidl/aidl_api/android.hardware.camera.device/1/android/hardware/camera/device/
DHalStream.aidl39 android.hardware.graphics.common.BufferUsage producerUsage;
40 android.hardware.graphics.common.BufferUsage consumerUsage;
/hardware/interfaces/camera/device/aidl/aidl_api/android.hardware.camera.device/2/android/hardware/camera/device/
DHalStream.aidl39 android.hardware.graphics.common.BufferUsage producerUsage;
40 android.hardware.graphics.common.BufferUsage consumerUsage;
/hardware/interfaces/camera/device/aidl/aidl_api/android.hardware.camera.device/3/android/hardware/camera/device/
DHalStream.aidl39 android.hardware.graphics.common.BufferUsage producerUsage;
40 android.hardware.graphics.common.BufferUsage consumerUsage;
/hardware/interfaces/camera/device/aidl/android/hardware/camera/device/
DHalStream.aidl69 android.hardware.graphics.common.BufferUsage producerUsage;
71 android.hardware.graphics.common.BufferUsage consumerUsage;
/hardware/interfaces/camera/device/aidl/aidl_api/android.hardware.camera.device/current/android/hardware/camera/device/
DHalStream.aidl39 android.hardware.graphics.common.BufferUsage producerUsage;
40 android.hardware.graphics.common.BufferUsage consumerUsage;
/hardware/interfaces/automotive/evs/aidl/android/hardware/automotive/evs/
DStream.aidl21 import android.hardware.graphics.common.BufferUsage;
68 BufferUsage usage;

12345