Home | History | Annotate | Download | only in libhwcomposer

Lines Matching refs:hnd

216 static inline bool isYuvBuffer(const private_handle_t* hnd) {
217 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO));
221 static inline bool isSecureBuffer(const private_handle_t* hnd) {
222 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags));
225 static inline bool isBufferLocked(const private_handle_t* hnd) {
226 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags));
230 static inline bool isExtOnly(const private_handle_t* hnd) {
231 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY));
235 static inline bool isExtBlock(const private_handle_t* hnd) {
236 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK));
240 static inline bool isExtCC(const private_handle_t* hnd) {
241 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_CC));
244 static inline int getWidth(const private_handle_t* hnd) {
245 if(isYuvBuffer(hnd)) {
246 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata;
251 return hnd->width;
254 static inline int getHeight(const private_handle_t* hnd) {
255 if(isYuvBuffer(hnd)) {
256 MetaData_t *metadata = (MetaData_t *)hnd->base_metadata;
261 return hnd->height;