morapi_Image Struct Reference
Image.
More...
#include <morapi_image.h>
Public Member Functions
Constructs, destructs, initializes and cleans up
morapi_Image * | morapi_create_Image (morapi_Env *io_env) |
morapi_Result | morapi_destroy_Image (morapi_Env *io_env, morapi_Image *self) |
morapi_Result | morapi_Image_init (morapi_Image *self, morapi_ImageFormat i_format, morapi_Int32 i_width, morapi_Int32 i_height, morapi_ImagePlane *i_plane) |
morapi_Result | morapi_Image_cleanup (morapi_Image *self) |
Gets a image format, width and height
morapi_ImageFormat | morapi_Image_getFormat (const morapi_Image *self) |
morapi_Int32 | morapi_Image_getWidth (const morapi_Image *self) |
morapi_Int32 | morapi_Image_getHeight (const morapi_Image *self) |
Gets a pixel
Operations
morapi_Result | morapi_Image_clear (morapi_Image *self, morapi_Uint32 i_col0, morapi_Uint32 i_col1, morapi_Uint32 i_col2, morapi_Uint32 i_col3) |
Detailed Description
Image.
Member Function Documentation
morapi_create_Image()
morapi_Image * morapi_create_Image (morapi_Env * io_env)
Creates the images.
morapi_destroy_Image()
morapi_Result morapi_destroy_Image (morapi_Env * io_env,
morapi_Image * self)
Destroys the images.
morapi_Image_init()
morapi_Result morapi_Image_init (morapi_Image * self,
morapi_ImageFormat i_format,
morapi_Int32 i_width,
morapi_Int32 i_height,
morapi_ImagePlane * i_plane)
Initializes the image data.
Parameters
- self : the initialized image.
- i_format : the image format.
- i_width,i_height : the width and height of the image.
- i_plane : the plane data. If NULL is specified, the plane data and the line step are automatically and internally allocated. If plane[i].data is NULL, it is automatically and internally allocated. If plane[i].line_step is less than or equals to 0, it is automatically calculated and set.
morapi_Image_cleanup()
morapi_Result morapi_Image_cleanup (morapi_Image * self)
Cleans up the image.
morapi_Image_getFormat()
morapi_ImageFormat morapi_Image_getFormat (const morapi_Image * self)
Gets the image format.
morapi_Image_getWidth()
morapi_Int32 morapi_Image_getWidth (const morapi_Image * self)
Gets the width of the image.
morapi_Image_getHeight()
morapi_Int32 morapi_Image_getHeight (const morapi_Image * self)
Gets the height of the image.
morapi_Image_getPlaneUint8()
morapi_Uint8 * morapi_Image_getPlaneUint8 (const morapi_Image * self,
morapi_Int32 i_plane,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in a plane i_plane (morapi_Uint8 version).
morapi_Image_getPlaneInt8()
morapi_Int8 * morapi_Image_getPlaneInt8 (const morapi_Image * self,
morapi_Int32 i_plane,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in a plane i_plane (morapi_Int8 version).
morapi_Image_getPlaneUint16()
morapi_Uint16 * morapi_Image_getPlaneUint16 (const morapi_Image * self,
morapi_Int32 i_plane,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in a plane i_plane (morapi_Uint16 version).
morapi_Image_getPlaneInt16()
morapi_Int16 * morapi_Image_getPlaneInt16 (const morapi_Image * self,
morapi_Int32 i_plane,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in a plane i_plane (morapi_Int16 version).
morapi_Image_getPlaneUint32()
morapi_Uint32 * morapi_Image_getPlaneUint32 (const morapi_Image * self,
morapi_Int32 i_plane,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in a plane i_plane (morapi_Uint32 version).
morapi_Image_getPlaneInt32()
morapi_Int32 * morapi_Image_getPlaneInt32 (const morapi_Image * self,
morapi_Int32 i_plane,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in a plane i_plane (morapi_Int32 version).
morapi_Image_getPlaneUint64()
morapi_Uint64 * morapi_Image_getPlaneUint64 (const morapi_Image * self,
morapi_Int32 i_plane,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in a plane i_plane (morapi_Uint64 version).
morapi_Image_getPlaneInt64()
morapi_Int64 * morapi_Image_getPlaneInt64 (const morapi_Image * self,
morapi_Int32 i_plane,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in a plane i_plane (morapi_Int64 version).
morapi_Image_getUint8()
morapi_Uint8 * morapi_Image_getUint8 (const morapi_Image * self,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in the first plane (morapi_Uint8 version).
morapi_Image_getInt8()
morapi_Int8 * morapi_Image_getInt8 (const morapi_Image * self,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in the first plane (morapi_Int8 version).
morapi_Image_getUint16()
morapi_Uint16 * morapi_Image_getUint16 (const morapi_Image * self,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in the first plane (morapi_Uint16 version).
morapi_Image_getInt16()
morapi_Int16 * morapi_Image_getInt16 (const morapi_Image * self,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in the first plane (morapi_Int16 version).
morapi_Image_getUint32()
morapi_Uint32 * morapi_Image_getUint32 (const morapi_Image * self,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in the first plane (morapi_Uint32 version).
morapi_Image_getInt32()
morapi_Int32 * morapi_Image_getInt32 (const morapi_Image * self,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in the first plane (morapi_Int32 version).
morapi_Image_getUint64()
morapi_Uint64 * morapi_Image_getUint64 (const morapi_Image * self,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in the first plane (morapi_Uint64 version).
morapi_Image_getInt64()
morapi_Int64 * morapi_Image_getInt64 (const morapi_Image * self,
morapi_Int32 i_x,
morapi_Int32 i_y)
Gets a pixel at (i_x, i_y) in the first plane (morapi_Int64 version).
morapi_Image_clear()
morapi_Result morapi_Image_clear (morapi_Image * self,
morapi_Uint32 i_col0,
morapi_Uint32 i_col1,
morapi_Uint32 i_col2,
morapi_Uint32 i_col3)
Clears the image.
Parameters
- self : the image to clear.
- i_col0,i_col1,i_col2,i_col3 : the color which is used to clear the image.