Home
last modified time | relevance | path

Searched refs:private_handle_t (Results 1 – 25 of 101) sorted by relevance

12345

/hardware/qcom/display/msm8974/libgralloc/
Dmapper.cpp61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
95 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
96 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
130 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
142 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
157 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
166 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
177 private_handle_t* hnd) in terminateBuffer()
[all …]
Dgpu.cpp97 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer()
100 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK; in gralloc_alloc_buffer()
103 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_CC; in gralloc_alloc_buffer()
110 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
119 flags |= private_handle_t::PRIV_FLAGS_ITU_R_709; in gralloc_alloc_buffer()
121 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
125 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601; in gralloc_alloc_buffer()
130 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer()
134 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer()
138 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer()
[all …]
Dgralloc_priv.h127 struct private_handle_t : public native_handle { struct
129 struct private_handle_t {
189 private_handle_t(int fd, int size, int flags, int bufferType, argument
202 ~private_handle_t() { in ~private_handle_t() argument
211 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
239 static private_handle_t* dynamicCast(const native_handle* in) { in dynamicCast() argument
241 return (private_handle_t*) in; in dynamicCast()
/hardware/qcom/display/msm8960/libgralloc/
Dmapper.cpp61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
95 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
96 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
130 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
142 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
157 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
166 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
177 private_handle_t* hnd) in terminateBuffer()
[all …]
Dgpu.cpp96 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer()
99 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK; in gralloc_alloc_buffer()
102 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_CC; in gralloc_alloc_buffer()
110 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
114 flags |= private_handle_t::PRIV_FLAGS_ITU_R_709; in gralloc_alloc_buffer()
116 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
119 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601; in gralloc_alloc_buffer()
124 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer()
128 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer()
132 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer()
[all …]
Dgralloc_priv.h130 struct private_handle_t : public native_handle { struct
132 struct private_handle_t {
191 private_handle_t(int fd, int size, int flags, int bufferType, argument
204 ~private_handle_t() { in ~private_handle_t() argument
213 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
241 static private_handle_t* dynamicCast(const native_handle* in) { in dynamicCast() argument
243 return (private_handle_t*) in; in dynamicCast()
/hardware/qcom/display/msm8x26/libgralloc/
Dmapper.cpp61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
95 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
96 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
130 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
142 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
157 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
166 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
177 private_handle_t* hnd) in terminateBuffer()
[all …]
Dgpu.cpp96 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer()
99 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK; in gralloc_alloc_buffer()
102 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_CC; in gralloc_alloc_buffer()
110 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
114 flags |= private_handle_t::PRIV_FLAGS_ITU_R_709; in gralloc_alloc_buffer()
116 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
119 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601; in gralloc_alloc_buffer()
124 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer()
128 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer()
132 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer()
[all …]
Dgralloc_priv.h129 struct private_handle_t : public native_handle { struct
131 struct private_handle_t {
190 private_handle_t(int fd, int size, int flags, int bufferType, argument
203 ~private_handle_t() { in ~private_handle_t() argument
212 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
240 static private_handle_t* dynamicCast(const native_handle* in) { in dynamicCast() argument
242 return (private_handle_t*) in; in dynamicCast()
/hardware/libhardware/modules/gralloc/
Dmapper.cpp50 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
51 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map()
70 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
71 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
92 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
130 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
142 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
145 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
153 private_handle_t* hnd) in mapBuffer()
160 private_handle_t* hnd) in terminateBuffer()
[all …]
Dgralloc_priv.h35 struct private_handle_t;
40 private_handle_t* framebuffer;
59 struct private_handle_t : public native_handle { struct
61 struct private_handle_t {
86 private_handle_t(int fd, int size, int flags) : in private_handle_t() function
94 ~private_handle_t() { in ~private_handle_t() argument
99 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
Dgralloc.cpp138 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked()
139 private_handle_t::PRIV_FLAGS_FRAMEBUFFER); in gralloc_alloc_framebuffer_locked()
183 private_handle_t* hnd = new private_handle_t(fd, size, 0); in gralloc_alloc_buffer()
248 if (private_handle_t::validate(handle) < 0) in gralloc_free()
251 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free()
252 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in gralloc_free()
262 terminateBuffer(module, const_cast<private_handle_t*>(hnd)); in gralloc_free()
/hardware/samsung_slsi/exynos5/gralloc/
Dmapper.cpp42 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
58 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
75 int grallocMap(gralloc_module_t const* module, private_handle_t *hnd) in grallocMap()
80 int grallocUnmap(gralloc_module_t const* module, private_handle_t *hnd) in grallocUnmap()
101 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
106 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
131 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
134 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
163 if (private_handle_t::validate(handle) < 0) in gralloc_lock()
166 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock()
[all …]
Dgralloc.cpp135 unsigned int ion_flags, private_handle_t **hnd, int *stride) in gralloc_alloc_rgb()
196 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, in gralloc_alloc_rgb()
204 private_handle_t **hnd, int *stride) in gralloc_alloc_framework_yuv()
228 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, h); in gralloc_alloc_framework_yuv()
234 private_handle_t **hnd, int *stride) in gralloc_alloc_yuv()
298 *hnd = new private_handle_t(fd, luma_size, usage, w, h, in gralloc_alloc_yuv()
309 *hnd = new private_handle_t(fd, fd1, fd2, luma_size, usage, w, h, in gralloc_alloc_yuv()
312 *hnd = new private_handle_t(fd, fd1, luma_size, usage, w, h, format, in gralloc_alloc_yuv()
342 private_handle_t *hnd = NULL; in gralloc_alloc()
383 if (private_handle_t::validate(handle) < 0) in gralloc_free()
[all …]
Dgr.h32 struct private_handle_t;
34 int grallocMap(gralloc_module_t const* module, private_handle_t *hnd);
35 int grallocUnmap(gralloc_module_t const* module, private_handle_t *hnd);
/hardware/qcom/display/msm8x26/libgenlock/
Dgenlock.cpp68 if (private_handle_t::validate(buffer_handle)) { in perform_lock_unlock_operation()
73 private_handle_t *hnd = reinterpret_cast<private_handle_t*> in perform_lock_unlock_operation()
75 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in perform_lock_unlock_operation()
139 if (private_handle_t::validate(buffer_handle)) { in genlock_create_lock()
144 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock()
145 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_create_lock()
194 if (private_handle_t::validate(buffer_handle)) { in genlock_release_lock()
199 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_release_lock()
200 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_release_lock()
224 if (private_handle_t::validate(buffer_handle)) { in genlock_attach_lock()
[all …]
/hardware/qcom/display/msm8960/libgenlock/
Dgenlock.cpp68 if (private_handle_t::validate(buffer_handle)) { in perform_lock_unlock_operation()
73 private_handle_t *hnd = reinterpret_cast<private_handle_t*> in perform_lock_unlock_operation()
75 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in perform_lock_unlock_operation()
139 if (private_handle_t::validate(buffer_handle)) { in genlock_create_lock()
144 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock()
145 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_create_lock()
194 if (private_handle_t::validate(buffer_handle)) { in genlock_release_lock()
199 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_release_lock()
200 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_release_lock()
224 if (private_handle_t::validate(buffer_handle)) { in genlock_attach_lock()
[all …]
/hardware/samsung_slsi/exynos5/include/
Dgralloc_priv.h35 struct private_handle_t;
40 struct private_handle_t* framebuffer;
62 struct private_handle_t : public native_handle { struct
64 struct private_handle_t {
109 private_handle_t(int fd, int size, int flags, int w, in private_handle_t() function
121 private_handle_t(int fd, int fd1, int size, int flags, int w, in private_handle_t() argument
133 private_handle_t(int fd, int fd1, int fd2, int size, int flags, int w, in private_handle_t() argument
144 ~private_handle_t() { in ~private_handle_t() argument
149 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
160 static private_handle_t* dynamicCast(const native_handle* in) in dynamicCast() argument
[all …]
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_utils.h216 static inline bool isYuvBuffer(const private_handle_t* hnd) { in isYuvBuffer()
221 static inline bool isSecureBuffer(const private_handle_t* hnd) { in isSecureBuffer()
222 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); in isSecureBuffer()
225 static inline bool isBufferLocked(const private_handle_t* hnd) { in isBufferLocked()
226 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags)); in isBufferLocked()
230 static inline bool isExtOnly(const private_handle_t* hnd) { in isExtOnly()
231 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY)); in isExtOnly()
235 static inline bool isExtBlock(const private_handle_t* hnd) { in isExtBlock()
236 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK)); in isExtBlock()
240 static inline bool isExtCC(const private_handle_t* hnd) { in isExtCC()
[all …]
/hardware/qcom/display/msm8x26/libhwcomposer/
Dhwc_utils.h216 static inline bool isYuvBuffer(const private_handle_t* hnd) { in isYuvBuffer()
221 static inline bool isSecureBuffer(const private_handle_t* hnd) { in isSecureBuffer()
222 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); in isSecureBuffer()
225 static inline bool isBufferLocked(const private_handle_t* hnd) { in isBufferLocked()
226 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags)); in isBufferLocked()
230 static inline bool isExtOnly(const private_handle_t* hnd) { in isExtOnly()
231 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY)); in isExtOnly()
235 static inline bool isExtBlock(const private_handle_t* hnd) { in isExtBlock()
236 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK)); in isExtBlock()
240 static inline bool isExtCC(const private_handle_t* hnd) { in isExtCC()
[all …]
/hardware/qcom/display/msm8974/libhwcomposer/
Dhwc_utils.h263 static inline bool isYuvBuffer(const private_handle_t* hnd) { in isYuvBuffer()
268 static inline bool isSecureBuffer(const private_handle_t* hnd) { in isSecureBuffer()
269 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); in isSecureBuffer()
273 static inline bool isL3SecureBuffer(const private_handle_t* hnd) { in isL3SecureBuffer()
275 (private_handle_t::PRIV_FLAGS_L3_SECURE_BUFFER & hnd->flags)); in isL3SecureBuffer()
278 static inline bool isBufferLocked(const private_handle_t* hnd) { in isBufferLocked()
279 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags)); in isBufferLocked()
283 static inline bool isExtOnly(const private_handle_t* hnd) { in isExtOnly()
284 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY)); in isExtOnly()
288 static inline bool isExtBlock(const private_handle_t* hnd) { in isExtBlock()
[all …]
Dhwc_copybit.h43 private_handle_t * getCurrentRenderBuffer();
52 private_handle_t *renderBuffer, int dpy, bool isFG);
73 int clear (private_handle_t* hnd, hwc_rect_t& rect);
75 private_handle_t* mRenderBuffer[NUM_RENDER_BUFFERS];
/hardware/qcom/display/msm8974/libcopybit/
Dsoftware_converter.cpp36 int convertYV12toYCrCb420SP(const copybit_image_t *src, private_handle_t *yv12_handle) in convertYV12toYCrCb420SP()
38 private_handle_t* hnd = (private_handle_t*)src->handle; in convertYV12toYCrCb420SP()
181 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, in convert_yuv_c2d_to_yuv_android()
191 private_handle_t *dst_hnd = (private_handle_t *)rhs->handle; in convert_yuv_c2d_to_yuv_android()
227 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd, in convert_yuv_android_to_yuv_c2d()
236 private_handle_t *dst_hnd = (private_handle_t *)rhs->handle; in convert_yuv_android_to_yuv_c2d()
/hardware/qcom/display/msm8x26/libcopybit/
Dsoftware_converter.cpp36 int convertYV12toYCrCb420SP(const copybit_image_t *src, private_handle_t *yv12_handle) in convertYV12toYCrCb420SP()
38 private_handle_t* hnd = (private_handle_t*)src->handle; in convertYV12toYCrCb420SP()
181 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, in convert_yuv_c2d_to_yuv_android()
191 private_handle_t *dst_hnd = (private_handle_t *)rhs->handle; in convert_yuv_c2d_to_yuv_android()
227 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd, in convert_yuv_android_to_yuv_c2d()
236 private_handle_t *dst_hnd = (private_handle_t *)rhs->handle; in convert_yuv_android_to_yuv_c2d()
/hardware/qcom/display/msm8960/libcopybit/
Dsoftware_converter.cpp36 int convertYV12toYCrCb420SP(const copybit_image_t *src, private_handle_t *yv12_handle) in convertYV12toYCrCb420SP()
38 private_handle_t* hnd = (private_handle_t*)src->handle; in convertYV12toYCrCb420SP()
181 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, in convert_yuv_c2d_to_yuv_android()
191 private_handle_t *dst_hnd = (private_handle_t *)rhs->handle; in convert_yuv_c2d_to_yuv_android()
227 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd, in convert_yuv_android_to_yuv_c2d()
236 private_handle_t *dst_hnd = (private_handle_t *)rhs->handle; in convert_yuv_android_to_yuv_c2d()

12345