Lines Matching refs:buffer

71  * \param gbm The created buffer manager
147 /** Get the width of the buffer object
149 * \param bo The buffer object
150 * \return The width of the allocated buffer object
159 /** Get the height of the buffer object
161 * \param bo The buffer object
162 * \return The height of the allocated buffer object
170 /** Get the stride of the buffer object
175 * \param bo The buffer object
176 * \return The stride of the allocated buffer object in bytes
186 * \param bo The buffer object
197 /** Get the format of the buffer object
199 * The format of the pixels in the buffer.
201 * \param bo The buffer object
202 * \return The format of buffer object, one of the GBM_FORMAT_* codes
210 /** Get the bit-per-pixel of the buffer object's format
212 * The bits-per-pixel of the buffer object's format.
219 * \param bo The buffer object
220 * \return The number of bits0per-pixel of the buffer object's format.
287 * the buffer object. This function will provide the offset for the given plane
290 * \param bo The buffer object
299 /** Get the gbm device used to create the buffer object
301 * \param bo The buffer object
302 * \return Returns the gbm device with which the buffer object was created
310 /** Get the handle of the buffer object
315 * \param bo The buffer object
316 * \return Returns the handle of the allocated buffer object
324 /** Get a DMA-BUF file descriptor for the buffer object
327 * handle for the buffer object. Each call to gbm_bo_get_fd() returns a new
331 * \param bo The buffer object
332 * \return Returns a file descriptor referring to the underlying buffer or -1
343 * \param bo The buffer object
352 /** Get the handle for the specified plane of the buffer object
359 * \param bo The buffer object
370 /** Get a DMA-BUF file descriptor for the specified plane of the buffer object
373 * handle for the specified plane of the buffer object. Each call to
377 * \param bo The buffer object
379 * \return Returns a file descriptor referring to the underlying buffer or -1
391 * Get the chosen modifier for the buffer object
396 * \param bo The buffer object
409 /** Write data into the buffer object
411 * If the buffer object was created with the GBM_BO_USE_WRITE flag,
412 * this function can be used to write data into the buffer object. The
415 * according to the width, height, stride and format of the buffer object.
417 * \param bo The buffer object
428 /** Set the user data associated with a buffer object
430 * \param bo The buffer object
431 * \param data The data to associate to the buffer object
433 * called prior to the buffer destruction
443 /** Get the user data associated with a buffer object
445 * \param bo The buffer object
446 * \return Returns the user data associated with the buffer object or %NULL
458 * Destroys the given buffer object and frees all resources associated with
461 * \param bo The buffer object
473 * Allocate a buffer object for the given dimensions
476 * \param width The width for the buffer
477 * \param height The height for the buffer
478 * \param format The format to use for the buffer, from GBM_FORMAT_* or
480 * \param flags The union of the usage flags for this buffer
482 * \return A newly allocated buffer that should be freed with gbm_bo_destroy()
553 * Create a gbm buffer object from a foreign object
570 * \param buffer Pointer to the external object
571 * \param flags The union of the usage flags for this buffer
573 * \return A newly allocated buffer object that should be freed with
581 uint32_t type, void *buffer, uint32_t flags)
583 return gbm->v0.bo_import(gbm, type, buffer, flags);
587 * Map a region of a gbm buffer object for cpu access
592 * The mapping exposes a linear view of the buffer object even if the buffer
595 * This function may require intermediate buffer copies (ie. it may be slow).
597 * \param bo The buffer object
599 * the buffer
601 * the buffer
602 * \param width The width of the mapped region for the buffer
603 * \param height The height of the mapped region for the buffer
604 * \param flags The union of the GBM_BO_TRANSFER_* flags for this buffer
608 * \return Address of the mapped buffer that should be unmapped with
630 * Unmap a previously mapped region of a gbm buffer object
635 * \param bo The buffer object
730 * Lock the surface's current front buffer
732 * Lock rendering to the surface's current front buffer until it is
741 * \return A buffer object representing the front buffer that should be
755 * Release a locked buffer obtained with gbm_surface_lock_front_buffer()
757 * Returns the underlying buffer to the gbm surface. Releasing a bo
764 * \param bo The buffer object
775 * Before starting a new frame, the surface must have a buffer
777 * buffer, but after one or more buffers have been locked (\sa
779 * free buffer before rendering.
781 * If a surface doesn't have a free buffer, the application must
782 * return a buffer to the surface using gbm_surface_release_buffer()