55 d_width = s_bmp->
width;
136 d_surf->
width = d_width;
137 d_surf->
height = d_height;
146 if (d_surf->
width < d_width)
147 d_surf->
width = d_width;
150 if (d_surf->
height < d_height)
151 d_surf->
height = d_height;
168 if (data && len && visible->
boxSize[0] != 0 && visible->
boxSize[1] != 0)
198 TRACE(TGRAPHICS, (
"copied bmp"))
205 #if defined(OSD_16_BIT) || defined(OSD_31_BIT) || defined(OSD_32_BIT) 206 DrawBmpOnSurface( bmp, b_srf, ((
MHEG5Bitmap *) visible)->tiling,
226 if (data != NULL && len > 0)
228 TRACE(TERROR, (
"DEC_DecodePng returned NULL"))
241 if (data && len && visible->
boxSize[0] != 0 && visible->
boxSize[1] != 0)
275 #if defined(OSD_16_BIT) || defined(OSD_31_BIT) || defined(OSD_32_BIT) 276 DrawBmpOnSurface( bmp, b_srf, ((
MHEG5Bitmap *) visible)->tiling,
301 int left, top, right, bottom;
323 box_col = (left & 0xf000) << 16 |
324 (left & 0x0f00) << 12 |
325 (left & 0x00f0) << 8 |
326 (left & 0x000f) << 4;
333 #if defined(OSD_31_BIT) || defined(OSD_32_BIT) 371 while (top < bottom);
void DEC_FreeJpg(S_IMAGE *image)
Free memory allocated for JPEG bitmap.
void MG_DrawPng(void *data, int len, MHEG5Visible *visible)
void DEC_FreePng(S_IMAGE *image)
Free memory allocated for PNG bitmap.
#define COLOUR_FORMAT_ARGB4444
S_IMAGE * DEC_DecodeJpg(U8BIT *data, U32BIT size)
Allocate memory for JPEG and decode bitmap To free "S_IMAGE" memory, DEC_FreeJpg will be called...
void MG_DisplayImage(S_SURFACE *data, S_REGION *overlap, S32BIT x, S32BIT y)
Copy the image to the screen buffer.
#define OSD_DbgAddSurf(s)
Module Description: Implement the MHEG5 Bitmap Class. 32 Bitmap Class Defines the behaviour of a two-...
void MG_DrawJpg(void *data, int len, MHEG5Visible *visible)
The functions in this file are OPTIONALLY provided by Receiver Platform *.
S_IMAGE * DEC_DecodePng(U8BIT *data, U32BIT size)
Allocate memory for PNG and decode bitmap To free "S_IMAGE" memory, DEC_FreePng will be called...
void MG_OSDdisplayRectangle(S_REGION *overlap, int x, int y, int width, int height, int lineWidth, OSDColor lineColour, OSDColor fillColour)
Draw rectangle.
MHEG5Ingredient ingredient
#define COLOUR_FORMAT_PALETTE
void * STB_OSDMhegLockBuffer(void *surface, U32BIT *pPitch)
Converts hardware surface handle returned by STB_OSDMhegCreateSurface() to buffer address that the en...
void * DEC_OSDCreateBmpSurf(U32BIT s_width, U32BIT s_height, U32BIT i_width, U32BIT i_height, S_IMAGE *image, U32BIT *pitch)
This creates a hardware surface of size using STB_OSDMhegCreateSurface() with s_width and s_height...
#define BytesPerPixel(cf)
void STB_OSDMhegUnlockBuffer(void *surface)
This function informs HW that MHEG5 is finished writing to the buffer.
void MG_OSDdisplayBitmap(MHEG5Visible *visible, S_REGION *overlap)