Home | History | Annotate | Download | only in xcore

Lines Matching refs:buf

34     SmartBufferPriv (const SmartPtr<VideoBuffer> &buf);
56 SmartBufferPriv::SmartBufferPriv (const SmartPtr<VideoBuffer> &buf)
59 XCAM_ASSERT (buf.ptr ());
60 this->_buf_ptr = buf;
62 if (!buf.ptr ()) {
68 const VideoBufferInfo& video_info = buf->get_video_info ();
72 this->base.timestamp = buf->get_timestamp ();
90 SmartBufferPriv *buf = (SmartBufferPriv*) data;
91 XCAM_ASSERT (buf->_ref);
92 if (buf->_ref)
93 buf->_ref->ref ();
99 SmartBufferPriv *buf = (SmartBufferPriv*) data;
100 XCAM_ASSERT (buf->_ref);
101 if (buf->_ref) {
102 if (!buf->_ref->unref()) {
103 delete buf;
111 SmartBufferPriv *buf = (SmartBufferPriv*) data;
112 XCAM_ASSERT (buf->_buf_ptr.ptr ());
113 return buf->_buf_ptr->map ();
119 SmartBufferPriv *buf = (SmartBufferPriv*) data;
120 XCAM_ASSERT (buf->_buf_ptr.ptr ());
121 buf->_buf_ptr->unmap ();
127 SmartBufferPriv *buf = (SmartBufferPriv*) data;
128 XCAM_ASSERT (buf->_buf_ptr.ptr ());
129 return buf->_buf_ptr->get_fd ();
136 SmartBufferPriv *buf = (SmartBufferPriv*) data;
137 XCAM_ASSERT (buf->_buf_ptr.ptr ());
139 SmartPtr<DrmBoBuffer> bo_buf = buf->_buf_ptr.dynamic_cast_ptr<DrmBoBuffer> ();
156 convert_to_external_buffer (const SmartPtr<VideoBuffer> &buf)
158 SmartBufferPriv *priv_buf = new SmartBufferPriv (buf);