MHEG5
15.3.0
|
00001 /******************************************************************************* 00002 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org) 00003 * Copyright © 2008 Ocean Blue Software Ltd 00004 * 00005 * This file is part of a DTVKit Software Component 00006 * You are permitted to copy, modify or distribute this file subject to the terms 00007 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org 00008 * 00009 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 00010 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 00011 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. 00012 * 00013 * If you or your organisation is not a member of DTVKit then you have access 00014 * to this source code outside of the terms of the licence agreement 00015 * and you are expected to delete this and any associated files immediately. 00016 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org 00017 *******************************************************************************/ 00030 #ifndef _STB_OSD_H 00031 #define _STB_OSD_H 00032 00033 #include "techtype.h" 00034 #include "osdtype.h" 00035 00036 /*---Constant and macro definitions for public use-----------------------------*/ 00037 00038 /*---Enumerations for public use-----------------------------------------------*/ 00039 00040 typedef enum e_blit_op 00041 { 00042 STB_BLIT_COPY, 00043 STB_BLIT_A_BLEND 00044 } E_BLIT_OP; 00045 00046 /*---Global type defs for public use-------------------------------------------*/ 00047 00048 /*---Global Function prototypes for public use---------------------------------*/ 00049 00057 void STB_OSDMhegSetPalette(U16BIT index, U16BIT number, const U32BIT *argb); 00058 00069 void* STB_OSDMhegSetResolution(U16BIT width, U16BIT height, U8BIT bits); 00070 00071 00072 00088 void* STB_OSDMhegCreateSurface( U16BIT width, U16BIT height, 00089 BOOLEAN init, U32BIT colour ); 00090 00091 00104 void* STB_OSDMhegLockBuffer( void *surface, U32BIT *pPitch ); 00105 00106 00112 void STB_OSDMhegUnlockBuffer( void *surface ); 00113 00114 00121 void STB_OSDMhegDestroySurface( void *surface ); 00122 00123 00143 void STB_OSDMhegBlitBitmap( void *surface, S_RECTANGLE *pRect, U32BIT pitch, 00144 U16BIT screen_x, U16BIT screen_y, E_BLIT_OP bflg ); 00145 00146 00157 void STB_OSDMhegFillRectangle( S_RECTANGLE *pRect, U32BIT colour, E_BLIT_OP bflg ); 00158 00169 void STB_OSDMhegBlitStretch( S_RECTANGLE *pSrcRect, void *src_surf, 00170 S_RECTANGLE *pDstRect, void *dst_surf, U8BIT alpha_blend ); 00171 00172 00183 void STB_OSDMhegFillSurface( void *surface, S_RECTANGLE *pRect, U32BIT colour, 00184 E_BLIT_OP bflg ); 00185 00191 void STB_OSDMhegUpdate(void); 00192 00193 00197 void STB_OSDMhegClear(void); 00198 00199 00200 #endif /* _STB_OSD_H */