Lines Matching refs:hnd
263 static inline bool isYuvBuffer(const private_handle_t* hnd) { in isYuvBuffer() argument
264 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO)); in isYuvBuffer()
268 static inline bool isSecureBuffer(const private_handle_t* hnd) { in isSecureBuffer() argument
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() argument
274 return (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() argument
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() argument
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() argument
289 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK)); in isExtBlock()
293 static inline bool isExtCC(const private_handle_t* hnd) { in isExtCC() argument
294 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_CC)); in isExtCC()
297 static inline int getWidth(const private_handle_t* hnd) { in getWidth() argument
298 if(isYuvBuffer(hnd)) { in getWidth()
299 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in getWidth()
304 return hnd->width; in getWidth()
307 static inline int getHeight(const private_handle_t* hnd) { in getHeight() argument
308 if(isYuvBuffer(hnd)) { in getHeight()
309 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in getHeight()
314 return hnd->height; in getHeight()