Lines Matching refs:hnd

259 bool isRotatorSupportedFormat(private_handle_t *hnd);
261 bool isRotationDoable(hwc_context_t *ctx, private_handle_t *hnd);
269 private_handle_t *hnd);
308 private_handle_t *hnd,
406 static inline bool isYuvBuffer(const private_handle_t* hnd) { in isYuvBuffer() argument
407 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO)); in isYuvBuffer()
411 static inline bool is4kx2kYuvBuffer(const private_handle_t* hnd) { in is4kx2kYuvBuffer() argument
412 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO) && in is4kx2kYuvBuffer()
413 (hnd->width > 2048)); in is4kx2kYuvBuffer()
417 static inline bool isSecureBuffer(const private_handle_t* hnd) { in isSecureBuffer() argument
418 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); in isSecureBuffer()
421 static inline bool isTileRendered(const private_handle_t* hnd) { in isTileRendered() argument
422 return (hnd && (private_handle_t::PRIV_FLAGS_TILE_RENDERED & hnd->flags)); in isTileRendered()
425 static inline bool isCPURendered(const private_handle_t* hnd) { in isCPURendered() argument
426 return (hnd && (private_handle_t::PRIV_FLAGS_CPU_RENDERED & hnd->flags)); in isCPURendered()
430 static inline bool isBufferLocked(const private_handle_t* hnd) { in isBufferLocked() argument
431 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags)); in isBufferLocked()
435 static inline bool isExtOnly(const private_handle_t* hnd) { in isExtOnly() argument
436 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY)); in isExtOnly()
440 static inline bool isSecureDisplayBuffer(const private_handle_t* hnd) { in isSecureDisplayBuffer() argument
441 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_DISPLAY)); in isSecureDisplayBuffer()
444 static inline int getWidth(const private_handle_t* hnd) { in getWidth() argument
445 if(isYuvBuffer(hnd)) { in getWidth()
446 MetaData_t *metadata = reinterpret_cast<MetaData_t*>(hnd->base_metadata); in getWidth()
451 return hnd->width; in getWidth()
454 static inline int getHeight(const private_handle_t* hnd) { in getHeight() argument
455 if(isYuvBuffer(hnd)) { in getHeight()
456 MetaData_t *metadata = reinterpret_cast<MetaData_t*>(hnd->base_metadata); in getHeight()
461 return hnd->height; in getHeight()