/hardware/qcom/display/msm8084/libgralloc/ |
D | mapper.cpp | 61 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() 98 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() 99 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap() 133 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer() 145 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer() 160 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer() 169 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer() 180 private_handle_t* hnd) in terminateBuffer() [all …]
|
D | gpu.cpp | 98 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer() 102 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601; in gralloc_alloc_buffer() 107 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer() 116 flags |= private_handle_t::PRIV_FLAGS_ITU_R_709; in gralloc_alloc_buffer() 119 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer() 128 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer() 132 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer() 136 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer() 140 flags |= private_handle_t::PRIV_FLAGS_HW_COMPOSER; in gralloc_alloc_buffer() 144 flags |= private_handle_t::PRIV_FLAGS_HW_TEXTURE; in gralloc_alloc_buffer() [all …]
|
D | gralloc_priv.h | 171 struct private_handle_t : public native_handle { struct 173 struct private_handle_t { 233 private_handle_t(int fd, size_t size, int flags, int bufferType, argument 246 ~private_handle_t() { in ~private_handle_t() argument 255 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument 284 static private_handle_t* dynamicCast(const native_handle* in) { in dynamicCast() argument 286 return (private_handle_t*) in; in dynamicCast()
|
/hardware/qcom/display/msm8974/libgralloc/ |
D | mapper.cpp | 60 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() 62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map() 63 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map() 94 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() 95 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap() 129 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer() 141 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer() 156 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer() 165 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer() 176 private_handle_t* hnd) in terminateBuffer() [all …]
|
D | gpu.cpp | 97 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 …]
|
D | gralloc_priv.h | 127 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/msm8226/libgralloc/ |
D | mapper.cpp | 59 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() 61 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map() 62 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map() 96 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() 97 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap() 131 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer() 143 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer() 159 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer() 168 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer() 179 private_handle_t* hnd) in terminateBuffer() [all …]
|
D | gpu.cpp | 97 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer() 103 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer() 112 flags |= private_handle_t::PRIV_FLAGS_ITU_R_709; in gralloc_alloc_buffer() 114 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer() 118 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601; in gralloc_alloc_buffer() 123 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer() 127 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer() 131 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer() 135 flags |= private_handle_t::PRIV_FLAGS_HW_COMPOSER; in gralloc_alloc_buffer() 139 flags |= private_handle_t::PRIV_FLAGS_HW_TEXTURE; in gralloc_alloc_buffer() [all …]
|
D | gralloc_priv.h | 169 struct private_handle_t : public native_handle { struct 171 struct private_handle_t { 229 private_handle_t(int fd, int size, int flags, int bufferType, argument 242 ~private_handle_t() { in ~private_handle_t() argument 251 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument 279 static private_handle_t* dynamicCast(const native_handle* in) { in dynamicCast() argument 281 return (private_handle_t*) in; in dynamicCast()
|
/hardware/qcom/display/msm8960/libgralloc/ |
D | mapper.cpp | 60 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() 62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map() 63 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map() 94 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() 95 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap() 129 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer() 141 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer() 156 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer() 165 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer() 176 private_handle_t* hnd) in terminateBuffer() [all …]
|
D | gpu.cpp | 96 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 …]
|
D | gralloc_priv.h | 130 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/libhardware/modules/gralloc/ |
D | mapper.cpp | 50 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() 88 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer() 126 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer() 138 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer() 141 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer() 149 private_handle_t* hnd) in mapBuffer() 156 private_handle_t* hnd) in terminateBuffer() [all …]
|
D | gralloc_priv.h | 35 struct private_handle_t; 40 private_handle_t* framebuffer; 59 struct private_handle_t : public native_handle { struct 61 struct private_handle_t { 83 return (((sizeof(private_handle_t) - sizeof(native_handle_t))/sizeof(int)) - sNumFds); in sNumInts() argument 88 private_handle_t(int fd, int size, int flags) : in private_handle_t() function 96 ~private_handle_t() { in ~private_handle_t() argument 101 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
|
D | gralloc.cpp | 138 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/ |
D | mapper.cpp | 42 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() 58 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() 90 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer() 93 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer() 118 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer() 121 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer() 150 if (private_handle_t::validate(handle) < 0) in gralloc_lock() 153 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock() 165 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unlock() 172 if (private_handle_t::validate(handle) < 0) in gralloc_unlock()
|
/hardware/qcom/display/msm8960/libgenlock/ |
D | genlock.cpp | 70 if (private_handle_t::validate(buffer_handle)) { in perform_lock_unlock_operation() 75 private_handle_t *hnd = reinterpret_cast<private_handle_t*> in perform_lock_unlock_operation() 77 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in perform_lock_unlock_operation() 141 if (private_handle_t::validate(buffer_handle)) { in genlock_create_lock() 146 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock() 147 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_create_lock() 196 if (private_handle_t::validate(buffer_handle)) { in genlock_release_lock() 201 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_release_lock() 202 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_release_lock() 226 if (private_handle_t::validate(buffer_handle)) { in genlock_attach_lock() [all …]
|
/hardware/samsung_slsi/exynos5/include/ |
D | gralloc_priv.h | 35 struct private_handle_t; 41 struct private_handle_t* framebuffer; 64 struct private_handle_t : public native_handle { struct 66 struct private_handle_t { 111 private_handle_t(int fd, int size, int flags, int w, in private_handle_t() argument 123 private_handle_t(int fd, int fd1, int size, int flags, int w, in private_handle_t() function 135 private_handle_t(int fd, int fd1, int fd2, int size, int flags, int w, in private_handle_t() function 146 ~private_handle_t() { in ~private_handle_t() argument 151 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument 162 static private_handle_t* dynamicCast(const native_handle* in) in dynamicCast() argument [all …]
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
D | hwc_copybit.h | 48 private_handle_t * getCurrentRenderBuffer(); 57 private_handle_t *renderBuffer, bool isFG); 59 private_handle_t *renderBuffer); 80 int clear (private_handle_t* hnd, hwc_rect_t& rect); 82 private_handle_t* mRenderBuffer[NUM_RENDER_BUFFERS];
|
/hardware/qcom/display/msm8226/libhwcomposer/ |
D | hwc_copybit.h | 48 private_handle_t * getCurrentRenderBuffer(); 57 private_handle_t *renderBuffer, bool isFG); 59 private_handle_t *renderBuffer); 80 int clear (private_handle_t* hnd, hwc_rect_t& rect); 82 private_handle_t* mRenderBuffer[NUM_RENDER_BUFFERS];
|
/hardware/qcom/display/msm8960/libhwcomposer/ |
D | hwc_utils.h | 216 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/ |
D | hwc_utils.h | 263 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 …]
|
/hardware/qcom/display/msm8226/libcopybit/ |
D | software_converter.cpp | 36 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/msm8974/libcopybit/ |
D | software_converter.cpp | 36 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/ |
D | software_converter.cpp | 36 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()
|