Searched refs:usage (Results 1 - 25 of 111) sorted by relevance

12345

/hardware/intel/img/hwcomposer/common/buffers/
H A DGraphicBuffer.cpp34 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/msm8226/libgralloc/
H A Dgpu.cpp54 int gpu_context_t::gralloc_alloc_buffer(unsigned int 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
192 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument
252 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument
262 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, unsigned int bufferSize) argument
351 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument
361 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 Dgpu.h38 int gralloc_alloc_buffer(unsigned int 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 Dalloc_controller.h44 virtual int allocate(alloc_data& data, int usage) = 0;
60 virtual int allocate(alloc_data& data, int usage);
H A Dalloc_controller.cpp57 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
522 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument
541 getBufferAttributes(int width, int height, int format, int usage, int& alignedw, int &alignedh, int& tileEnabled, unsigned int& size) argument
623 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument
[all...]
/hardware/qcom/display/msm8974/libgralloc/
H A Dgpu.cpp54 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 Dgpu.h39 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 Dalloc_controller.cpp54 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 Dalloc_controller.h44 virtual int allocate(alloc_data& data, int usage) = 0;
60 virtual int allocate(alloc_data& data, int usage);
/hardware/qcom/display/msm8960/libgralloc/
H A Dgpu.cpp55 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 Dgpu.h39 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 Dalloc_controller.cpp54 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
353 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument
[all...]
H A Dalloc_controller.h44 virtual int allocate(alloc_data& data, int usage) = 0;
60 virtual int allocate(alloc_data& data, int usage);
/hardware/qcom/display/msm8084/libgralloc/
H A Dgpu.h38 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 Dgpu.cpp55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument
73 if ((usage & GRALLOC_USAGE_PROTECTED) &&
74 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) {
82 err = mAllocCtrl->allocate(data, usage);
98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) {
105 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
115 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) {
116 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) {
128 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) {
132 if (usage
189 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument
249 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument
259 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument
347 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument
357 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 Dalloc_controller.h44 virtual int allocate(alloc_data& data, int usage) = 0;
60 virtual int allocate(alloc_data& data, int usage);
H A Dalloc_controller.cpp57 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/intel/img/hwcomposer/include/
H A DGraphicBuffer.h40 static bool isProtectedUsage(uint32_t usage);
43 static bool isCompressionUsage(uint32_t usage);
/hardware/intel/img/psb_video/src/android/
H A Dpsb_gralloc.h39 int gralloc_lock(buffer_handle_t handle, int usage,
/hardware/samsung_slsi/exynos5/gralloc/
H A Dgralloc.cpp59 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 Dresize_util.c20 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 Dvpxenc.h32 int usage; member in struct:VpxEncoderConfig
/hardware/qcom/msm8960/original-kernel-headers/linux/
H A Dmsm_ion.h211 * @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 Dmsm_ion.h211 * @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 Dgralloc.h108 /* 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,
256 buffer_handle_t handle, int usage,
271 buffer_handle_t handle, int usage,
301 buffer_handle_t handle, int usage,
[all...]

Completed in 1286 milliseconds

12345