/hardware/intel/img/hwcomposer/common/buffers/ |
H A D | GraphicBuffer.cpp | 34 bool GraphicBuffer::isProtectedUsage(uint32_t usage) argument 36 if (usage == USAGE_INVALID) { 40 return (usage & GRALLOC_USAGE_PROTECTED) != 0; 52 bool GraphicBuffer::isCompressionUsage(uint32_t usage) argument 54 if (usage == USAGE_INVALID) {
|
/hardware/qcom/display/msm8084/libgralloc/ |
H A D | gpu.cpp | 54 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument 72 if ((usage & GRALLOC_USAGE_PROTECTED) && 73 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) { 81 err = mAllocCtrl->allocate(data, usage); 97 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 104 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 114 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { 115 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { 127 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { 131 if (usage 188 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument 248 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument 258 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument 346 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 356 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | gpu.h | 38 int gralloc_alloc_buffer(size_t size, int usage, 45 int alloc_impl(int w, int h, int format, int usage, 50 int format, int usage, 53 int gralloc_alloc_framebuffer_locked(int usage, 56 int gralloc_alloc_framebuffer(int usage, 63 int usage, buffer_handle_t* pHandle,
|
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
H A D | alloc_controller.cpp | 57 static bool canFallback(int usage, bool triedSystem) argument 71 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 73 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 79 static bool useUncached(int usage) argument 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 83 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) 84 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) 282 int IonController::allocate(alloc_data& data, int usage) argument 287 data.uncached = useUncached(usage); 290 if(usage 364 isMacroTileEnabled(int format, int usage) argument 525 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument 544 getBufferAttributes(int width, int height, int format, int usage, int& alignedw, int &alignedh, int& tileEnabled, size_t& size) argument 627 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
/hardware/qcom/display/msm8974/libgralloc/ |
H A D | gpu.cpp | 54 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument 72 if (usage & GRALLOC_USAGE_PROTECTED) { 80 err = mAllocCtrl->allocate(data, usage); 96 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 99 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { 102 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { 108 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 117 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { 118 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) 129 if (usage 181 gralloc_alloc_framebuffer_locked(size_t size, int usage, buffer_handle_t* pHandle) argument 241 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument 251 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument 348 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 358 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | gpu.h | 39 int gralloc_alloc_buffer(size_t size, int usage, 46 int alloc_impl(int w, int h, int format, int usage, 51 int format, int usage, 54 int gralloc_alloc_framebuffer_locked(size_t size, int usage, 57 int gralloc_alloc_framebuffer(size_t size, int usage, 64 int usage, buffer_handle_t* pHandle,
|
H A D | alloc_controller.cpp | 54 static bool canFallback(int usage, bool triedSystem) argument 68 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 76 static bool useUncached(int usage) argument 78 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 80 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) 81 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) 189 int IonController::allocate(alloc_data& data, int usage) argument 194 data.uncached = useUncached(usage); 197 if(usage 363 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
/hardware/qcom/display/msm8226/libgralloc/ |
H A D | gpu.cpp | 54 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument 72 if (usage & GRALLOC_USAGE_PROTECTED) { 80 err = mAllocCtrl->allocate(data, usage); 96 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 101 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 110 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { 111 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) 122 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { 126 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 130 if (usage 185 gralloc_alloc_framebuffer_locked(size_t size, int usage, buffer_handle_t* pHandle) argument 245 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument 255 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument 342 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 352 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | gpu.h | 38 int gralloc_alloc_buffer(size_t size, int usage, 45 int alloc_impl(int w, int h, int format, int usage, 50 int format, int usage, 53 int gralloc_alloc_framebuffer_locked(size_t size, int usage, 56 int gralloc_alloc_framebuffer(size_t size, int usage, 63 int usage, buffer_handle_t* pHandle,
|
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
H A D | alloc_controller.cpp | 57 static bool canFallback(int usage, bool triedSystem) argument 71 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 73 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 79 static bool useUncached(int usage) argument 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 83 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) 84 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) 277 int IonController::allocate(alloc_data& data, int usage) argument 282 data.uncached = useUncached(usage); 285 if(usage 359 isMacroTileEnabled(int format, int usage) argument 517 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument 536 getBufferAttributes(int width, int height, int format, int usage, int& alignedw, int &alignedh, int& tileEnabled, size_t& size) argument 555 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
/hardware/qcom/display/msm8960/libgralloc/ |
H A D | gpu.cpp | 55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument 73 qdutils::MDSS_V5) && (usage & GRALLOC_USAGE_PROTECTED)) { 79 err = mAllocCtrl->allocate(data, usage); 95 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { 101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { 107 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 112 if (usage & (GRALLOC_USAGE_HW_TEXTURE | 115 else if (usage & GRALLOC_USAGE_HW_CAMERA_ZSL) 123 if (usage 175 gralloc_alloc_framebuffer_locked(size_t size, int usage, buffer_handle_t* pHandle) argument 235 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument 245 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument 333 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 343 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | gpu.h | 39 int gralloc_alloc_buffer(size_t size, int usage, 46 int alloc_impl(int w, int h, int format, int usage, 51 int format, int usage, 54 int gralloc_alloc_framebuffer_locked(size_t size, int usage, 57 int gralloc_alloc_framebuffer(size_t size, int usage, 64 int usage, buffer_handle_t* pHandle,
|
H A D | alloc_controller.cpp | 54 static bool canFallback(int usage, bool triedSystem) argument 68 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 76 static bool useUncached(int usage) argument 79 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 177 int IonController::allocate(alloc_data& data, int usage) argument 182 data.uncached = useUncached(usage); 185 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) 188 if(usage 346 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
/hardware/intel/img/hwcomposer/include/ |
H A D | GraphicBuffer.h | 40 static bool isProtectedUsage(uint32_t usage); 43 static bool isCompressionUsage(uint32_t usage);
|
/hardware/intel/img/psb_video/src/android/ |
H A D | psb_gralloc.h | 39 int gralloc_lock(buffer_handle_t handle, int usage,
|
/hardware/samsung_slsi/exynos5/gralloc/ |
H A D | gralloc.cpp | 59 size_t size, int usage, buffer_handle_t* pHandle); 70 buffer_handle_t handle, int usage, 117 static unsigned int _select_heap(int usage) argument 121 if (usage & GRALLOC_USAGE_PROTECTED) 129 static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage, argument 134 unsigned int heap_mask = _select_heap(usage); 137 bool sw_usage = !!(usage & (GRALLOC_USAGE_SW_READ_MASK | 140 if (usage & GRALLOC_USAGE_HW_FB) { 142 "framebuffer target should not have SW usage bits; ignoring"); 144 } else if (usage 199 gralloc_alloc_framework_yuv(int ionfd, int w, int h, int format, int usage, unsigned int ion_flags, private_handle_t **hnd, int *stride) argument 229 gralloc_alloc_yuv(int ionfd, int w, int h, int format, int usage, unsigned int ion_flags, private_handle_t **hnd, int *stride) argument 332 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/ |
H A D | resize_util.c | 20 static void usage(char *progname) { function 52 usage(argv[0]); 60 usage(argv[0]); 65 usage(argv[0]); 72 usage(argv[0]); 78 usage(argv[0]);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
H A D | vpxenc.h | 32 int usage; member in struct:VpxEncoderConfig
|
/hardware/qcom/msm8960/original-kernel-headers/linux/ |
H A D | msm_ion.h | 211 * @usage - usage hint to TZ 216 int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage); 223 * @usage - usage hint to TZ 228 int msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage); 241 static inline int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage) argument 247 enum cp_mem_usage usage) 246 msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage) argument
|
/hardware/qcom/msm8x27/original-kernel-headers/linux/ |
H A D | msm_ion.h | 211 * @usage - usage hint to TZ 216 int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage); 223 * @usage - usage hint to TZ 228 int msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage); 241 static inline int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage) argument 247 enum cp_mem_usage usage) 246 msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage) argument
|
/hardware/libhardware/include/hardware/ |
H A D | gralloc.h | 108 /* mask for the software usage bit-mask */ 130 /* implementation-specific private usage flags */ 183 * specified usage. This call may block, for instance if the h/w needs 192 * If usage specifies GRALLOC_USAGE_SW_*, vaddr is filled with the address 211 * If the buffer was created with a usage mask incompatible with the 212 * requested usage flags here, -EINVAL is returned. 217 buffer_handle_t handle, int usage, 247 buffer_handle_t handle, int usage, 262 buffer_handle_t handle, int usage, 292 buffer_handle_t handle, int usage, [all...] |