|
XenevaOS
|
#include <nsgif.h>
Public Attributes | |
| nsgif_bitmap_t *(* | create )(int width, int height) |
| void(* | destroy )(nsgif_bitmap_t *bitmap) |
| uint8_t *(* | get_buffer )(nsgif_bitmap_t *bitmap) |
| void(* | set_opaque )(nsgif_bitmap_t *bitmap, bool opaque) |
| bool(* | test_opaque )(nsgif_bitmap_t *bitmap) |
| void(* | modified )(nsgif_bitmap_t *bitmap) |
| uint32_t(* | get_rowspan )(nsgif_bitmap_t *bitmap) |
Bitmap callbacks function table
| nsgif_bitmap_t *(* nsgif_bitmap_cb_vt::create) (int width, int height) |
Callback to create a bitmap with the given dimensions.
| [in] | width | Required bitmap width in pixels. |
| [in] | height | Required bitmap height in pixels. |
| void(* nsgif_bitmap_cb_vt::destroy) (nsgif_bitmap_t *bitmap) |
Callback to free a bitmap.
| [in] | bitmap | The bitmap to destroy. |
| uint8_t *(* nsgif_bitmap_cb_vt::get_buffer) (nsgif_bitmap_t *bitmap) |
Get pointer to pixel buffer in a bitmap.
The pixel buffer must be (width + N) * height * sizeof(uint32_t). Where N is any number greater than or equal to 0. Note that the returned pointer to uint8_t must be 4-byte aligned.
| [in] | bitmap | The bitmap. |
| uint32_t(* nsgif_bitmap_cb_vt::get_rowspan) (nsgif_bitmap_t *bitmap) |
Get row span in pixels.
If this callback is not provided, LibNSGIF will use the width.
If row span is greater than width, this callback must be provided.
| [in] | bitmap | The bitmap. |
| void(* nsgif_bitmap_cb_vt::modified) (nsgif_bitmap_t *bitmap) |
Bitmap modified notification.
| [in] | bitmap | The bitmap. |
| void(* nsgif_bitmap_cb_vt::set_opaque) (nsgif_bitmap_t *bitmap, bool opaque) |
Set whether a bitmap can be plotted opaque.
| [in] | bitmap | The bitmap. |
| [in] | opaque | Whether the current frame is opaque. |
| bool(* nsgif_bitmap_cb_vt::test_opaque) (nsgif_bitmap_t *bitmap) |
Tests whether a bitmap has an opaque alpha channel.
| [in] | bitmap | The bitmap. |