VDPAU
|
Typedefs | |
typedef VdpStatus | VdpBitmapSurfaceQueryCapabilities(VdpDevice device, VdpRGBAFormat surface_rgba_format, VdpBool *is_supported, uint32_t *max_width, uint32_t *max_height) |
Query the implementation's VdpBitmapSurface capabilities. More... | |
typedef uint32_t | VdpBitmapSurface |
An opaque handle representing a VdpBitmapSurface object. More... | |
typedef VdpStatus | VdpBitmapSurfaceCreate(VdpDevice device, VdpRGBAFormat rgba_format, uint32_t width, uint32_t height, VdpBool frequently_accessed, VdpBitmapSurface *surface) |
Create a VdpBitmapSurface. More... | |
typedef VdpStatus | VdpBitmapSurfaceDestroy(VdpBitmapSurface surface) |
Destroy a VdpBitmapSurface. More... | |
typedef VdpStatus | VdpBitmapSurfaceGetParameters(VdpBitmapSurface surface, VdpRGBAFormat *rgba_format, uint32_t *width, uint32_t *height, VdpBool *frequently_accessed) |
Retrieve the parameters used to create a VdpBitmapSurface. More... | |
typedef VdpStatus | VdpBitmapSurfacePutBitsNative(VdpBitmapSurface surface, void const *const *source_data, uint32_t const *source_pitches, VdpRect const *destination_rect) |
Copy image data from application memory in the surface's native format to a VdpBitmapSurface. More... | |
A VdpBitmapSurface stores RGBA data in a defined format.
A VdpBitmapSurface may be filled with:
VdpBitmapSurface content may be accessed by:
VdpBitmapSurface objects are intended to store static read-only data, such as font glyphs, and the bitmaps used to compose an applications' user-interface.
The primary differences between VdpBitmapSurfaces and VdpOutputSurfaces are:
typedef uint32_t VdpBitmapSurface |
An opaque handle representing a VdpBitmapSurface object.
typedef VdpStatus VdpBitmapSurfaceCreate(VdpDevice device, VdpRGBAFormat rgba_format, uint32_t width, uint32_t height, VdpBool frequently_accessed,VdpBitmapSurface *surface) |
Create a VdpBitmapSurface.
[in] | device | The device that will contain the surface. |
[in] | rgba_format | The format of the new surface. |
[in] | width | The width of the new surface. |
[in] | height | The height of the new surface. |
[in] | frequently_accessed | Is this bitmap used frequently, or infrequently, by compositing options? Implementations may use this as a hint to determine how to allocate the underlying storage for the surface. |
[out] | surface | The new surface's handle. |
The memory backing the surface may not be initialized during creation. Applications are expected initialize any region that they use, via VdpBitmapSurfacePutBitsNative.
typedef VdpStatus VdpBitmapSurfaceDestroy(VdpBitmapSurface surface) |
Destroy a VdpBitmapSurface.
[in] | surface | The surface's handle. |
typedef VdpStatus VdpBitmapSurfaceGetParameters(VdpBitmapSurface surface,VdpRGBAFormat *rgba_format, uint32_t *width, uint32_t *height, VdpBool *frequently_accessed) |
Retrieve the parameters used to create a VdpBitmapSurface.
[in] | surface | The surface's handle. |
[out] | rgba_format | The format of the surface. |
[out] | width | The width of the surface. |
[out] | height | The height of the surface. |
[out] | frequently_accessed | The frequently_accessed state of the surface. |
typedef VdpStatus VdpBitmapSurfacePutBitsNative(VdpBitmapSurface surface, void const *const *source_data, uint32_t const *source_pitches, VdpRect const *destination_rect) |
Copy image data from application memory in the surface's native format to a VdpBitmapSurface.
[in] | surface | The surface's handle. |
[in] | source_data | Pointers to the application data buffers from which the image data will be copied. Note that this is an array of pointers, one per plane. The source_format parameter will define how many planes are required. |
[in] | source_pitches | Pointers to the pitch values for the application data buffers. Note that this is an array of pointers, one per plane. The source_format parameter will define how many planes are required. |
[in] | destination_rect | The sub-rectangle of the surface to fill with application data. If NULL, the entire surface will be updated. |
typedef VdpStatus VdpBitmapSurfaceQueryCapabilities(VdpDevice device, VdpRGBAFormat surface_rgba_format,VdpBool *is_supported, uint32_t *max_width, uint32_t *max_height) |
Query the implementation's VdpBitmapSurface capabilities.
[in] | device | The device to query. |
[in] | surface_rgba_format | The surface format for which information is requested. |
[out] | is_supported | Is this surface format supported? |
[out] | max_width | The maximum supported surface width for this chroma type. |
[out] | max_height | The maximum supported surface height for this chroma type. |