Lines Matching refs:hnd

216 static inline bool isYuvBuffer(const private_handle_t* hnd) {  in isYuvBuffer()  argument
217 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO)); in isYuvBuffer()
221 static inline bool isSecureBuffer(const private_handle_t* hnd) { in isSecureBuffer() argument
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() argument
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() argument
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() argument
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() argument
241 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_CC)); in isExtCC()
244 static inline int getWidth(const private_handle_t* hnd) { in getWidth() argument
245 if(isYuvBuffer(hnd)) { in getWidth()
246 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in getWidth()
251 return hnd->width; in getWidth()
254 static inline int getHeight(const private_handle_t* hnd) { in getHeight() argument
255 if(isYuvBuffer(hnd)) { in getHeight()
256 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata; in getHeight()
261 return hnd->height; in getHeight()