File Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
250
13.17
sm_util.h File Reference
This is just a helper implementation for development and will be removed in the final version.
#include <stdio.h>
#include "mml_gdc_surfman.h"
Macros
#define UTIL_SUCCESS(rc, execute)
#define UTIL_ERR_OUT_OF_MEMORY MM_ERRCODE(0x31000001)
Functions
MM_ERROR utSurfReadBitmap (MML_GDC_SURFACE surface, void
∗∗
pImage, MM_U32
∗
baseAddr,
MM_U32
∗
clutAddr)
MM_ERROR utSurfLoadBitmap (MML_GDC_SURFACE surface, const void
∗
pImage, MM_BOOL
bCopyToRAM)
MM_S32 utSurfWidth (MML_GDC_SURFACE surf)
MM_S32 utSurfHeight (MML_GDC_SURFACE surf)
MM_ERROR utSurfCreateBuffer (MML_GDC_SURFACE surf, MM_U32 w, MM_U32 h,
MML_GDC_SURF_FORMAT eFormat)
void utSurfDeleteBuffer (MML_GDC_SURFACE surf)
MM_ERROR utSurfGetPixel (MML_GDC_SURFACE src, MM_U32 x, MM_U32 y, MM_U08
∗
r, MM_U08
∗
g,
MM_U08
∗
b, MM_U08
∗
a)
MM_ERROR utSurfSetPixel (MML_GDC_SURFACE src, MM_U32 x, MM_U32 y, MM_U08 r, MM_U08 g,
MM_U08 b, MM_U08 a)
13.17.1 Detailed Description
This is just a helper implementation for development and will be removed in the final version.