#include "cpptest.h"

/** 
 * This file contains auto-generated stub definitions.
 *
 * Available C++test API functions (see C++test Users Guide for details):
 *     void CppTest_Assert(bool test, const char * message)
 *     void CppTest_Break()
 *     const char* CppTest_GetCurrentTestCaseName()
 *     const char* CppTest_GetCurrentTestSuiteName()
 *     bool CppTest_IsCurrentTestCase(const char* testCaseName)
 */

/** 
 * Header files where the stubbed functions are originally declared.
 * Verify #include directives and add any additional header files as necessary.
 */
#include <pthread.h>
#include "MsOS.h"
#include "drvXC_IOPort.h" // david test
#include "apiGFX.h"

// david test
#undef GFXDRAW_FLAG_DEFAULT
#undef GFXDRAW_FLAG_SCALE
#undef GFXDRAW_FLAG_DUPLICAPE
#undef GFXDRAW_FLAG_TRAPEZOID_X
#undef GFXDRAW_FLAG_TRAPEZOID_Y
// david test

#include "apiGOP.h"
#include "apiJPEG.h"
#include "apiPNL.h"
#include "apiXC.h"
#include "core/core.h"
#include "core/gfxcard.h"
#include "core/layers.h"
#include "core/palette.h"
#include "core/screens.h"
#include "core/state.h"
#include "core/surface.h"
#include "directfb.h"
#include "directfb_util.h"
#include "drvMMIO.h"
#include "drvMVOP.h"
#include "drvSEM.h"
#include "drvTVEncoder.h"
#include "fusion/call.h"
#include "fusion/lock.h"
#include "fusion/reactor.h"
#include "fusion/ref.h"
#include "fusion/shmalloc.h"
#include "gfx/clip.h"
#include "jpeglib.h"
#include "misc/gfx_util.h"
#include "png.h"

#include "direct/memcpy.h"

#include "drvXC_HDMI_if.h"




// david test
DirectConfig config = {
	     .debug                 = false,
	     .trace                 = true,
	     .sighandler            = true,

	     .fatal                 = DCFL_ASSERT,
	     .fatal_break           = true,
	     .thread_block_signals  = true,
	     .thread_priority_scale = 100,
	     .bdestroy              = false,

};

pthread_mutex_t  g_dfb_lock_counter_mutex= PTHREAD_MUTEX_INITIALIZER;
//DFBConfig dfbconfig;
#if 0  //David
DFBConfig *dfb_config = &config;
#elif 0  //FIXJASON
DFBConfig ABC_DFBConfig;
DFBConfig* dfb_config = &ABC_DFBConfig;
#endif
//IDirectFB idirectfbsingleton;
IDirectFB *idirectfb_singleton = 0;
DEFINE_MODULE_DIRECTORY( dfb_graphics_drivers, "gfxdrivers", DFB_GRAPHICS_DRIVER_ABI_VERSION );


/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SelectSourceScanType(EN_GOP_DWIN_SCAN_MODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SelectSourceScanType (EN_GOP_DWIN_SCAN_MODE enScanMode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_SelectSourceScanType (EN_GOP_DWIN_SCAN_MODE enScanMode) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void dfb_gfxcard_get_device_info(GraphicsDeviceInfo *) */
EXTERN_C_LINKAGE void dfb_gfxcard_get_device_info (GraphicsDeviceInfo * ret_info) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_dfb_gfxcard_get_device_info (GraphicsDeviceInfo * ret_info) 
{
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetSrcColorKey(MS_BOOL, GFX_ColorKeyMode, GFX_Buffer_Format, void *, void *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetSrcColorKey (MS_BOOL enable, GFX_ColorKeyMode opMode, GFX_Buffer_Format fmt, void * ps_color, void * pe_color) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetSrcColorKey (MS_BOOL enable, GFX_ColorKeyMode opMode, GFX_Buffer_Format fmt, void * ps_color, void * pe_color) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: void dfb_scale_linear_32(u32 *, int, int, void *, int, DFBRectangle *, CoreSurface *, const DFBRegion *) */
EXTERN_C_LINKAGE void dfb_scale_linear_32 (u32 * src, int sw, int sh, void * dst, int dpitch, DFBRectangle * drect, CoreSurface * dst_surface, const DFBRegion * dst_clip) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_dfb_scale_linear_32 (u32 * src, int sw, int sh, void * dst, int dpitch, DFBRectangle * drect, CoreSurface * dst_surface, const DFBRegion * dst_clip) 
{
}

/** Auto-generated stub definition for function: void MApi_JPEG_SetProMaxDecodeResolution(MS_U16, MS_U16) */
EXTERN_C_LINKAGE void MApi_JPEG_SetProMaxDecodeResolution (MS_U16 u16ProWidth, MS_U16 u16ProHeight) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_JPEG_SetProMaxDecodeResolution (MS_U16 u16ProWidth, MS_U16 u16ProHeight) 
{
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_SetGOPBrightness(MS_U8, MS_U16, MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetGOPBrightness (MS_U8 u8GOP, MS_U16 u16BriVal, MS_BOOL bMSB) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_SetGOPBrightness (MS_U8 u8GOP, MS_U16 u16BriVal, MS_BOOL bMSB) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void * fusion_dbg_shmalloc(FusionSHMPoolShared *, const char *, int, const char *, size_t) */
EXTERN_C_LINKAGE void * fusion_dbg_shmalloc (FusionSHMPoolShared * pool, const char * file, int line, const char * func, size_t __size) ;
EXTERN_C_LINKAGE void * CppTest_Auto_Stub_fusion_dbg_shmalloc (FusionSHMPoolShared * pool, const char * file, int line, const char * func, size_t __size) 
{
    return (void *)0;
}

/** Auto-generated stub definition for function: void MDrv_VE_SetOutputCtrl(PMS_VE_Output_Ctrl) */
EXTERN_C_LINKAGE void MDrv_VE_SetOutputCtrl (PMS_VE_Output_Ctrl pOutputCtrl) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MDrv_VE_SetOutputCtrl (PMS_VE_Output_Ctrl pOutputCtrl) 
{
}

/** Auto-generated stub definition for function: DFBResult DirectFBError(const char *, DFBResult) */
EXTERN_C_LINKAGE DFBResult DirectFBError (const char * msg, DFBResult result) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_DirectFBError (const char * msg, DFBResult result) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_RegisterXCReduceBWForOSDCB(void (*)(MS_U8, MS_BOOL)) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_RegisterXCReduceBWForOSDCB (void (* fpGOP_CB)(MS_U8, MS_BOOL)) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_RegisterXCReduceBWForOSDCB (void (* fpGOP_CB)(MS_U8, MS_BOOL)) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: DFBResult dfb_surface_reconfig(CoreSurface *, const CoreSurfaceConfig *) */
EXTERN_C_LINKAGE DFBResult dfb_surface_reconfig (CoreSurface * surface, const CoreSurfaceConfig * config) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_surface_reconfig (CoreSurface * surface, const CoreSurfaceConfig * config) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: DFBSurfacePixelFormat dfb_primary_layer_pixelformat(void) */
EXTERN_C_LINKAGE DFBSurfacePixelFormat dfb_primary_layer_pixelformat () ;
EXTERN_C_LINKAGE DFBSurfacePixelFormat CppTest_Auto_Stub_dfb_primary_layer_pixelformat (void) 
{
    return DSPF_UNKNOWN;
}

/** Auto-generated stub definition for function: FusionSHMPoolShared * dfb_core_shmpool_data(CoreDFB *) */
EXTERN_C_LINKAGE FusionSHMPoolShared * dfb_core_shmpool_data (CoreDFB * core) ;
EXTERN_C_LINKAGE FusionSHMPoolShared * CppTest_Auto_Stub_dfb_core_shmpool_data (CoreDFB * core) 
{
    return (FusionSHMPoolShared *)0;
}

/** Auto-generated stub definition for function: int png_check_sig(png_bytep, int) */
EXTERN_C_LINKAGE int png_check_sig (png_bytep sig, int num) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_png_check_sig (png_bytep sig, int num) 
{
    return 0;
}

/** Auto-generated stub definition for function: MS_U8 MApi_GOP_GWIN_CreateWin_Assign_FB(MS_U8, MS_U8, MS_U16, MS_U16) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_CreateWin_Assign_FB (MS_U8 u8GOP, MS_U8 FBId, MS_U16 dispX, MS_U16 dispY) ;
EXTERN_C_LINKAGE MS_U8 CppTest_Auto_Stub_MApi_GOP_GWIN_CreateWin_Assign_FB (MS_U8 u8GOP, MS_U8 FBId, MS_U16 dispX, MS_U16 dispY) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetMirror(MS_BOOL, MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetMirror (MS_BOOL isMirrorX, MS_BOOL isMirrorY) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetMirror (MS_BOOL isMirrorX, MS_BOOL isMirrorY) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: void MApi_XC_SetOSD2VEMode(EN_VOP_SEL_OSD_XC2VE_MUX) */
EXTERN_C_LINKAGE void MApi_XC_SetOSD2VEMode (EN_VOP_SEL_OSD_XC2VE_MUX eVOPSelOSD_MUX) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_XC_SetOSD2VEMode (EN_VOP_SEL_OSD_XC2VE_MUX eVOPSelOSD_MUX) 
{
}

/** Auto-generated stub definition for function: DirectResult fusion_reactor_detach(FusionReactor *, Reaction *) */
EXTERN_C_LINKAGE DirectResult fusion_reactor_detach (FusionReactor * reactor, Reaction * reaction) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_reactor_detach (FusionReactor * reactor, Reaction * reaction) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_Init(void) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_Init () ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_Init (void) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void dfb_copy_buffer_32(u32 *, void *, int, DFBRectangle *, CoreSurface *, const DFBRegion *) */
EXTERN_C_LINKAGE void dfb_copy_buffer_32 (u32 * src, void * dst, int dpitch, DFBRectangle * drect, CoreSurface * dst_surface, const DFBRegion * dst_clip) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_dfb_copy_buffer_32 (u32 * src, void * dst, int dpitch, DFBRectangle * drect, CoreSurface * dst_surface, const DFBRegion * dst_clip) 
{
}

/** Auto-generated stub definition for function: MS_BOOL MDrv_MMIO_Init(void) */
EXTERN_C_LINKAGE MS_BOOL MDrv_MMIO_Init () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MDrv_MMIO_Init (void) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: int pthread_attr_getstacksize(const pthread_attr_t *__restrict__, size_t *__restrict__) */
EXTERN_C_LINKAGE int pthread_attr_getstacksize (const pthread_attr_t * __attr, size_t * __stacksize) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_pthread_attr_getstacksize (const pthread_attr_t * __attr, size_t * __stacksize) 
{
    return 0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_SetClkForCapture(void) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetClkForCapture () ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_SetClkForCapture (void) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void png_set_bgr(png_structp) */
EXTERN_C_LINKAGE void png_set_bgr (png_structp png_ptr) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_png_set_bgr (png_structp png_ptr) 
{
}

/** Auto-generated stub definition for function: _Bool dfb_rectangle_intersect_by_region(DFBRectangle *, const DFBRegion *) */
EXTERN_C_LINKAGE _Bool dfb_rectangle_intersect_by_region (DFBRectangle * rectangle, const DFBRegion * region) ;
EXTERN_C_LINKAGE _Bool CppTest_Auto_Stub_dfb_rectangle_intersect_by_region (DFBRectangle * rectangle, const DFBRegion * region) 
{
    return false;
}

/** Auto-generated stub definition for function: DFBResult dfb_state_set_destination(CardState *, CoreSurface *) */
EXTERN_C_LINKAGE DFBResult dfb_state_set_destination (CardState * state, CoreSurface * destination) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_state_set_destination (CardState * state, CoreSurface * destination) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: void dfb_state_destroy(CardState *) */
EXTERN_C_LINKAGE void dfb_state_destroy (CardState * state) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_dfb_state_destroy (CardState * state) 
{
}

/** Auto-generated stub definition for function: unsigned long dfb_gfxcard_memory_physical(CoreGraphicsDevice *, unsigned int) */
EXTERN_C_LINKAGE unsigned long dfb_gfxcard_memory_physical (CoreGraphicsDevice * device, unsigned offset) ;
EXTERN_C_LINKAGE unsigned long CppTest_Auto_Stub_dfb_gfxcard_memory_physical (CoreGraphicsDevice * device, unsigned offset) 
{
    return 0UL;
}

/** Auto-generated stub definition for function: MS_U8 MApi_GOP_GWIN_GetCurrentGOP(void) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_GetCurrentGOP () ;
EXTERN_C_LINKAGE MS_U8 CppTest_Auto_Stub_MApi_GOP_GWIN_GetCurrentGOP (void) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SetDataFmt(EN_GOP_DWIN_DATA_FMT) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SetDataFmt (EN_GOP_DWIN_DATA_FMT fmt) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_SetDataFmt (EN_GOP_DWIN_DATA_FMT fmt) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void dfb_palette_generate_rgb332_map(CorePalette *) */
EXTERN_C_LINKAGE void dfb_palette_generate_rgb332_map (CorePalette * palette) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_dfb_palette_generate_rgb332_map (CorePalette * palette) 
{
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_RegisterXCIsInterlaceCB(MS_BOOL (*)(void)) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_RegisterXCIsInterlaceCB (MS_BOOL (* fpGOP_CB)(void)) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_RegisterXCIsInterlaceCB (MS_BOOL (* fpGOP_CB)(void)) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: int pthread_attr_setstacksize(pthread_attr_t *, size_t) */
EXTERN_C_LINKAGE int pthread_attr_setstacksize (pthread_attr_t * __attr, size_t __stacksize) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_pthread_attr_setstacksize (pthread_attr_t * __attr, size_t __stacksize) 
{
    return 0;
}

/** Auto-generated stub definition for function: MS_U8 MApi_GOP_GWIN_CreateFBFrom3rdSurf(MS_U16, MS_U16, MS_U16, MS_U32, MS_U16, MS_U8 *) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_CreateFBFrom3rdSurf (MS_U16 width, MS_U16 height, MS_U16 fbFmt, MS_U32 u32FbAddr, MS_U16 pitch, MS_U8 * ret_FBId) ;
EXTERN_C_LINKAGE MS_U8 CppTest_Auto_Stub_MApi_GOP_GWIN_CreateFBFrom3rdSurf (MS_U16 width, MS_U16 height, MS_U16 fbFmt, MS_U32 u32FbAddr, MS_U16 pitch, MS_U8 * ret_FBId) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: void * dfb_gfxcard_memory_virtual(CoreGraphicsDevice *, unsigned int) */
EXTERN_C_LINKAGE void * dfb_gfxcard_memory_virtual (CoreGraphicsDevice * device, unsigned offset) ;
EXTERN_C_LINKAGE void * CppTest_Auto_Stub_dfb_gfxcard_memory_virtual (CoreGraphicsDevice * device, unsigned offset) 
{
    return (void *)0;
}

/** Auto-generated stub definition for function: DFBResult dfb_surface_create_simple(CoreDFB *, int, int, DFBSurfacePixelFormat, DFBSurfaceCapabilities, CoreSurfaceTypeFlags, unsigned long, CorePalette *, CoreSurface **) */
EXTERN_C_LINKAGE DFBResult dfb_surface_create_simple (CoreDFB * core, int width, int height, DFBSurfacePixelFormat format, DFBSurfaceCapabilities caps, CoreSurfaceTypeFlags type, unsigned long resource_id, CorePalette * palette, CoreSurface ** ret_surface) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_surface_create_simple (CoreDFB * core, int width, int height, DFBSurfacePixelFormat format, DFBSurfaceCapabilities caps, CoreSurfaceTypeFlags type, unsigned long resource_id, CorePalette * palette, CoreSurface ** ret_surface) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: void MApi_JPEG_Exit(void) */
EXTERN_C_LINKAGE void MApi_JPEG_Exit () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_JPEG_Exit (void) 
{
}

/** Auto-generated stub definition for function: int pthread_mutexattr_destroy(pthread_mutexattr_t *) */
EXTERN_C_LINKAGE int pthread_mutexattr_destroy (pthread_mutexattr_t * __attr) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_pthread_mutexattr_destroy (pthread_mutexattr_t * __attr) 
{
    return 0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_EnableIntr(MS_U16, MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_EnableIntr (MS_U16 u8mask, MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_EnableIntr (MS_U16 u8mask, MS_BOOL bEnable) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetPaletteOpt(GOP_PaletteEntry *, MS_U16, MS_U16, EN_GOP_PALETTE_TYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetPaletteOpt (GOP_PaletteEntry * pPalArray, MS_U16 u32PalStart, MS_U16 u32PalEnd, EN_GOP_PALETTE_TYPE ePalType) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetPaletteOpt (GOP_PaletteEntry * pPalArray, MS_U16 u32PalStart, MS_U16 u32PalEnd, EN_GOP_PALETTE_TYPE ePalType) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: png_uint_32 png_get_IHDR(png_structp, png_infop, png_uint_32 *, png_uint_32 *, int *, int *, int *, int *, int *) */
EXTERN_C_LINKAGE png_uint_32 png_get_IHDR (png_structp png_ptr, png_infop info_ptr, png_uint_32 * width, png_uint_32 * height, int * bit_depth, int * color_type, int * interlace_method, int * compression_method, int * filter_method) ;
EXTERN_C_LINKAGE png_uint_32 CppTest_Auto_Stub_png_get_IHDR (png_structp png_ptr, png_infop info_ptr, png_uint_32 * width, png_uint_32 * height, int * bit_depth, int * color_type, int * interlace_method, int * compression_method, int * filter_method) 
{
    return 0UL;
}
#if 0  //FIXJASON
/** Auto-generated stub definition for function: void __pthread_unregister_cancel(__pthread_unwind_buf_t *) */
EXTERN_C_LINKAGE void __pthread_unregister_cancel (__pthread_unwind_buf_t * __buf) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub___pthread_unregister_cancel (__pthread_unwind_buf_t * __buf) 
{
}
#endif
/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_EnableTileMode(MS_U8, MS_BOOL, EN_GOP_TILE_DATA_TYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_EnableTileMode (MS_U8 winId, MS_BOOL bEnable, EN_GOP_TILE_DATA_TYPE tiletype) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_EnableTileMode (MS_U8 winId, MS_BOOL bEnable, EN_GOP_TILE_DATA_TYPE tiletype) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SetAlphaValue(MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SetAlphaValue (MS_U8 u8AlphaVal) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_SetAlphaValue (MS_U8 u8AlphaVal) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: DirectResult fusion_skirmish_prevail(FusionSkirmish *) */
EXTERN_C_LINKAGE DirectResult fusion_skirmish_prevail (FusionSkirmish * skirmish) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_skirmish_prevail (FusionSkirmish * skirmish) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SwitchGOP(MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SwitchGOP (MS_U8 u8GOP) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SwitchGOP (MS_U8 u8GOP) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void MDrv_VE_SwitchInputSource(PMS_Switch_VE_Src_Info) */
EXTERN_C_LINKAGE void MDrv_VE_SwitchInputSource (PMS_Switch_VE_Src_Info pSwitchInfo) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MDrv_VE_SwitchInputSource (PMS_Switch_VE_Src_Info pSwitchInfo) 
{
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetRotate(GFX_RotateAngle) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetRotate (GFX_RotateAngle angle) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetRotate (GFX_RotateAngle angle) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetHMirror(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetHMirror (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetHMirror (MS_BOOL bEnable) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetBlending(MS_U8, MS_BOOL, MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetBlending (MS_U8 u8win, MS_BOOL bEnable, MS_U8 u8coef) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetBlending (MS_U8 u8win, MS_BOOL bEnable, MS_U8 u8coef) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: MS_BOOL MApi_XC_Init(XC_INITDATA *, MS_U32) */
EXTERN_C_LINKAGE MS_BOOL MApi_XC_Init (XC_INITDATA * pXC_InitData, MS_U32 u32InitDataLen) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MApi_XC_Init (XC_INITDATA * pXC_InitData, MS_U32 u32InitDataLen) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: int pthread_mutexattr_init(pthread_mutexattr_t *) */
EXTERN_C_LINKAGE int pthread_mutexattr_init (pthread_mutexattr_t * __attr) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_pthread_mutexattr_init (pthread_mutexattr_t * __attr) 
{
    return 0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_RegisterXCGetCapHStartCB(MS_U16 (*)(void)) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_RegisterXCGetCapHStartCB (MS_U16 (* fpGOP_CB)(void)) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_RegisterXCGetCapHStartCB (MS_U16 (* fpGOP_CB)(void)) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_EnableR2YCSC(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_EnableR2YCSC (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_EnableR2YCSC (MS_BOOL bEnable) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: DFBResult dfb_surface_set_palette(CoreSurface *, CorePalette *) */
EXTERN_C_LINKAGE DFBResult dfb_surface_set_palette (CoreSurface * surface, CorePalette * palette) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_surface_set_palette (CoreSurface * surface, CorePalette * palette) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: _Bool dfb_rectangle_intersect(DFBRectangle *, const DFBRectangle *) */
EXTERN_C_LINKAGE _Bool dfb_rectangle_intersect (DFBRectangle * rectangle, const DFBRectangle * clip) ;
EXTERN_C_LINKAGE _Bool CppTest_Auto_Stub_dfb_rectangle_intersect (DFBRectangle * rectangle, const DFBRectangle * clip) 
{
    return false;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetIntensity(MS_U32, GFX_Buffer_Format, MS_U32 *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetIntensity (MS_U32 id, GFX_Buffer_Format fmt, MS_U32 * pColor) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetIntensity (MS_U32 id, GFX_Buffer_Format fmt, MS_U32 * pColor) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: void MsOS_FlushMemory(void) */
EXTERN_C_LINKAGE void MsOS_FlushMemory () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MsOS_FlushMemory (void) 
{
}

/** Auto-generated stub definition for function: DFBResult dfb_gfxcard_stretchblit(DFBRectangle *, DFBRectangle *, CardState *) */
EXTERN_C_LINKAGE DFBResult dfb_gfxcard_stretchblit (DFBRectangle * srect, DFBRectangle * drect, CardState * state) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_gfxcard_stretchblit (DFBRectangle * srect, DFBRectangle * drect, CardState * state) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: DirectResult fusion_call_execute(FusionCall *, FusionCallExecFlags, int, void *, int *) */
EXTERN_C_LINKAGE DirectResult fusion_call_execute (FusionCall * call, FusionCallExecFlags flags, int call_arg, void * call_ptr, int * ret_val) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_call_execute (FusionCall * call, FusionCallExecFlags flags, int call_arg, void * call_ptr, int * ret_val) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: int pthread_mutexattr_settype(pthread_mutexattr_t *, int) */
EXTERN_C_LINKAGE int pthread_mutexattr_settype (pthread_mutexattr_t * __attr, int __kind) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_pthread_mutexattr_settype (pthread_mutexattr_t * __attr, int __kind) 
{
    return 0;
}

/** Auto-generated stub definition for function: E_APIXC_ReturnValue MApi_XC_SetOutputCapture(MS_BOOL, E_XC_SOURCE_TO_VE) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_SetOutputCapture (MS_BOOL bEnable, E_XC_SOURCE_TO_VE eSourceToVE) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Auto_Stub_MApi_XC_SetOutputCapture (MS_BOOL bEnable, E_XC_SOURCE_TO_VE eSourceToVE) 
{
    return E_APIXC_RET_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetAlphaCmp(MS_BOOL, GFX_ACmpOp) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetAlphaCmp (MS_BOOL enable, GFX_ACmpOp eMode) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetAlphaCmp (MS_BOOL enable, GFX_ACmpOp eMode) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetTAGID(MS_U16) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetTAGID (MS_U16 tagID) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetTAGID (MS_U16 tagID) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: png_uint_32 png_get_valid(png_structp, png_infop, png_uint_32) */
EXTERN_C_LINKAGE png_uint_32 png_get_valid (png_structp png_ptr, png_infop info_ptr, png_uint_32 flag) ;
EXTERN_C_LINKAGE png_uint_32 CppTest_Auto_Stub_png_get_valid (png_structp png_ptr, png_infop info_ptr, png_uint_32 flag) 
{
    return 0UL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetSrcBufferInfo(GFX_BufferInfo *, MS_U32) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetSrcBufferInfo (GFX_BufferInfo * bufInfo, MS_U32 offsetofByte) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetSrcBufferInfo (GFX_BufferInfo * bufInfo, MS_U32 offsetofByte) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetVMirror(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetVMirror (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetVMirror (MS_BOOL bEnable) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void AddDefaultWmModule(void) */
EXTERN_C_LINKAGE void AddDefaultWmModule () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_AddDefaultWmModule (void) 
{
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_EndDraw(void) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_EndDraw () ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_EndDraw (void) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetGOPDst(MS_U8, EN_GOP_DST_TYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetGOPDst (MS_U8 u8GOP, EN_GOP_DST_TYPE dsttype) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetGOPDst (MS_U8 u8GOP, EN_GOP_DST_TYPE dsttype) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetDFBBldFlags(MS_U16) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDFBBldFlags (MS_U16 u16DFBBldFlags) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetDFBBldFlags (MS_U16 u16DFBBldFlags) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: DFBResult dfb_surface_set_field(CoreSurface *, int) */
EXTERN_C_LINKAGE DFBResult dfb_surface_set_field (CoreSurface * surface, int field) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_surface_set_field (CoreSurface * surface, int field) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: MS_U16 MApi_JPEG_GetAlignedWidth(void) */
EXTERN_C_LINKAGE MS_U16 MApi_JPEG_GetAlignedWidth () ;
EXTERN_C_LINKAGE MS_U16 CppTest_Auto_Stub_MApi_JPEG_GetAlignedWidth (void) 
{
    return (unsigned short)0;
}

/** Auto-generated stub definition for function: DFBResult dfb_surface_write_buffer(CoreSurface *, CoreSurfaceBufferRole, const void *, int, const DFBRectangle *) */
EXTERN_C_LINKAGE DFBResult dfb_surface_write_buffer (CoreSurface * surface, CoreSurfaceBufferRole role, const void * source, int pitch, const DFBRectangle * rect) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_surface_write_buffer (CoreSurface * surface, CoreSurfaceBufferRole role, const void * source, int pitch, const DFBRectangle * rect) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_VSCALE(MS_BOOL, MS_U16, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_VSCALE (MS_BOOL bEnable, MS_U16 src, MS_U16 dst) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_Set_VSCALE (MS_BOOL bEnable, MS_U16 src, MS_U16 dst) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: DirectResult fusion_skirmish_dismiss(FusionSkirmish *) */
EXTERN_C_LINKAGE DirectResult fusion_skirmish_dismiss (FusionSkirmish * skirmish) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_skirmish_dismiss (FusionSkirmish * skirmish) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: void png_destroy_read_struct(png_structpp, png_infopp, png_infopp) */
EXTERN_C_LINKAGE void png_destroy_read_struct (png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_png_destroy_read_struct (png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr) 
{
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetForceWrite(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetForceWrite (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetForceWrite (MS_BOOL bEnable) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetDFBBldConstColor(GFX_RgbColor) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDFBBldConstColor (GFX_RgbColor gfxRgbColor) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetDFBBldConstColor (GFX_RgbColor gfxRgbColor) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: void jpeg_abort_decompress(j_decompress_ptr) */
EXTERN_C_LINKAGE void jpeg_abort_decompress (j_decompress_ptr cinfo) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_jpeg_abort_decompress (j_decompress_ptr cinfo) 
{
}

/** Auto-generated stub definition for function: void jpeg_destroy_decompress(j_decompress_ptr) */
EXTERN_C_LINKAGE void jpeg_destroy_decompress (j_decompress_ptr cinfo) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_jpeg_destroy_decompress (j_decompress_ptr cinfo) 
{
}

/** Auto-generated stub definition for function: MS_BOOL MsOS_Init(void) */
EXTERN_C_LINKAGE MS_BOOL MsOS_Init () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MsOS_Init (void) 
{
    return (unsigned char)0;
}
#if 0  //FIXJASON
/** Auto-generated stub definition for function: void __pthread_register_cancel(__pthread_unwind_buf_t *) */
EXTERN_C_LINKAGE void __pthread_register_cancel (__pthread_unwind_buf_t * __buf) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub___pthread_register_cancel (__pthread_unwind_buf_t * __buf) 
{
}
#endif
/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_InitByGOP(GOP_InitInfo *, MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_InitByGOP (GOP_InitInfo * pGopInit, MS_U8 u8GOP) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_InitByGOP (GOP_InitInfo * pGopInit, MS_U8 u8GOP) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: _Bool dfb_core_is_master(CoreDFB *) */
EXTERN_C_LINKAGE _Bool dfb_core_is_master (CoreDFB * core) ;
EXTERN_C_LINKAGE _Bool CppTest_Auto_Stub_dfb_core_is_master (CoreDFB * core) 
{
    return false;
}

/** Auto-generated stub definition for function: JPEG_Result MApi_JPEG_HdlVidxChk(void) */
EXTERN_C_LINKAGE JPEG_Result MApi_JPEG_HdlVidxChk () ;
EXTERN_C_LINKAGE JPEG_Result CppTest_Auto_Stub_MApi_JPEG_HdlVidxChk (void) 
{
    return E_JPEG_FAILED;
}

/** Auto-generated stub definition for function: MS_U8 MApi_GOP_GWIN_DestroyFB(MS_U8) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_DestroyFB (MS_U8 fbId) ;
EXTERN_C_LINKAGE MS_U8 CppTest_Auto_Stub_MApi_GOP_GWIN_DestroyFB (MS_U8 fbId) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_WaitForTAGID(MS_U16) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_WaitForTAGID (MS_U16 tagID) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_WaitForTAGID (MS_U16 tagID) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: DirectResult fusion_call_init(FusionCall *, FusionCallHandler, void *, const FusionWorld *) */
EXTERN_C_LINKAGE DirectResult fusion_call_init (FusionCall * call, FusionCallHandler handler, void * ctx, const FusionWorld * world) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_call_init (FusionCall * call, FusionCallHandler handler, void * ctx, const FusionWorld * world) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: void jpeg_CreateDecompress(j_decompress_ptr, int, size_t) */
EXTERN_C_LINKAGE void jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize) 
{
}

/** Auto-generated stub definition for function: DFBResult dfb_surface_lock_buffer(CoreSurface *, CoreSurfaceBufferRole, CoreSurfaceAccessorID, CoreSurfaceAccessFlags, CoreSurfaceBufferLock *) */
EXTERN_C_LINKAGE DFBResult dfb_surface_lock_buffer (CoreSurface * surface, CoreSurfaceBufferRole role, CoreSurfaceAccessorID accessor, CoreSurfaceAccessFlags access, CoreSurfaceBufferLock * ret_lock) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_surface_lock_buffer (CoreSurface * surface, CoreSurfaceBufferRole role, CoreSurfaceAccessorID accessor, CoreSurfaceAccessFlags access, CoreSurfaceBufferLock * ret_lock) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: E_APIXC_ReturnValue MApi_XC_OP2VOPDESel(E_OP2VOP_DE_SEL) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_OP2VOPDESel (E_OP2VOP_DE_SEL eVopDESel) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Auto_Stub_MApi_XC_OP2VOPDESel (E_OP2VOP_DE_SEL eVopDESel) 
{
    return E_APIXC_RET_FAIL;
}

/** Auto-generated stub definition for function: int dfb_state_init(CardState *, CoreDFB *) */
EXTERN_C_LINKAGE int dfb_state_init (CardState * state, CoreDFB * core) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_dfb_state_init (CardState * state, CoreDFB * core) 
{
    return 0;
}

/** Auto-generated stub definition for function: void jpeg_calc_output_dimensions(j_decompress_ptr) */
EXTERN_C_LINKAGE void jpeg_calc_output_dimensions (j_decompress_ptr cinfo) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_jpeg_calc_output_dimensions (j_decompress_ptr cinfo) 
{
}

/** Auto-generated stub definition for function: DFBResult dfb_palette_create(CoreDFB *, unsigned int, CorePalette **) */
EXTERN_C_LINKAGE DFBResult dfb_palette_create (CoreDFB * core, unsigned size, CorePalette ** ret_palette) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_palette_create (CoreDFB * core, unsigned size, CorePalette ** ret_palette) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: FusionWorld * dfb_core_world(CoreDFB *) */
EXTERN_C_LINKAGE FusionWorld * dfb_core_world (CoreDFB * core) ;
EXTERN_C_LINKAGE FusionWorld * CppTest_Auto_Stub_dfb_core_world (CoreDFB * core) 
{
    return (FusionWorld *)0;
}

/** Auto-generated stub definition for function: void MDrv_VE_SetMode(MS_VE_Set_Mode_Type *) */
EXTERN_C_LINKAGE void MDrv_VE_SetMode (MS_VE_Set_Mode_Type * pVESetMode) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MDrv_VE_SetMode (MS_VE_Set_Mode_Type * pVESetMode) 
{
}

/** Auto-generated stub definition for function: CoreCleanup * dfb_core_cleanup_add(CoreDFB *, CoreCleanupFunc, void *, _Bool) */
EXTERN_C_LINKAGE CoreCleanup * dfb_core_cleanup_add (CoreDFB * core, CoreCleanupFunc func, void * data, _Bool emergency) ;
EXTERN_C_LINKAGE CoreCleanup * CppTest_Auto_Stub_dfb_core_cleanup_add (CoreDFB * core, CoreCleanupFunc func, void * data, _Bool emergency) 
{
    return (CoreCleanup *)0;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetDFBBldOP(GFX_DFBBldOP, GFX_DFBBldOP) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDFBBldOP (GFX_DFBBldOP gfxSrcBldOP, GFX_DFBBldOP gfxDstBldOP) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetDFBBldOP (GFX_DFBBldOP gfxSrcBldOP, GFX_DFBBldOP gfxDstBldOP) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_STRETCHWIN(MS_U8, EN_GOP_DST_TYPE, MS_U16, MS_U16, MS_U16, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_STRETCHWIN (MS_U8 u8GOP_num, EN_GOP_DST_TYPE eDstType, MS_U16 x, MS_U16 y, MS_U16 width, MS_U16 height) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_Set_STRETCHWIN (MS_U8 u8GOP_num, EN_GOP_DST_TYPE eDstType, MS_U16 x, MS_U16 y, MS_U16 width, MS_U16 height) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: DFBResult dfb_surface_flip(CoreSurface *, _Bool) */
EXTERN_C_LINKAGE DFBResult dfb_surface_flip (CoreSurface * surface, _Bool swap) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_surface_flip (CoreSurface * surface, _Bool swap) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetMux(GOP_MuxConfig *, MS_U32) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetMux (GOP_MuxConfig * pGopMuxConfig, MS_U32 u32SizeOfMuxInfo) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetMux (GOP_MuxConfig * pGopMuxConfig, MS_U32 u32SizeOfMuxInfo) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: MS_U16 MApi_XC_GetOutputVFreqX100(void) */
EXTERN_C_LINKAGE MS_U16 MApi_XC_GetOutputVFreqX100 () ;
EXTERN_C_LINKAGE MS_U16 CppTest_Auto_Stub_MApi_XC_GetOutputVFreqX100 (void) 
{
    return (unsigned short)0;
}

/** Auto-generated stub definition for function: MS_BOOL MApi_XC_GetStatus(XC_ApiStatus *, SCALER_WIN) */
EXTERN_C_LINKAGE MS_BOOL MApi_XC_GetStatus (XC_ApiStatus * pDrvStatus, SCALER_WIN eWindow) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MApi_XC_GetStatus (XC_ApiStatus * pDrvStatus, SCALER_WIN eWindow) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: int png_set_interlace_handling(png_structp) */
EXTERN_C_LINKAGE int png_set_interlace_handling (png_structp png_ptr) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_png_set_interlace_handling (png_structp png_ptr) 
{
    return 0;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetClip(GFX_Point *, GFX_Point *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetClip (GFX_Point * v0, GFX_Point * v1) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetClip (GFX_Point * v0, GFX_Point * v1) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: void MApi_JPEG_SetMRBufferValid(JPEG_BuffLoadType) */
EXTERN_C_LINKAGE void MApi_JPEG_SetMRBufferValid (JPEG_BuffLoadType u8MRBuffType) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_JPEG_SetMRBufferValid (JPEG_BuffLoadType u8MRBuffType) 
{
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_DrawLine(GFX_DrawLineInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_DrawLine (GFX_DrawLineInfo * pline) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_DrawLine (GFX_DrawLineInfo * pline) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: FusionReactor * fusion_reactor_new(int, const char *, const FusionWorld *) */
EXTERN_C_LINKAGE FusionReactor * fusion_reactor_new (int msg_size, const char * name, const FusionWorld * world) ;
EXTERN_C_LINKAGE FusionReactor * CppTest_Auto_Stub_fusion_reactor_new (int msg_size, const char * name, const FusionWorld * world) 
{
    return (FusionReactor *)0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_SetPINPON(MS_U8, MS_BOOL, GOP_PINPON_MODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetPINPON (MS_U8 winId, MS_BOOL bEn, GOP_PINPON_MODE PINPON_Mode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_SetPINPON (MS_U8 winId, MS_BOOL bEn, GOP_PINPON_MODE PINPON_Mode) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetAlphaSrcFrom(GFX_AlphaSrcFrom) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetAlphaSrcFrom (GFX_AlphaSrcFrom eMode) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetAlphaSrcFrom (GFX_AlphaSrcFrom eMode) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_EnableAlphaBlending(MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_EnableAlphaBlending (MS_BOOL enable) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_EnableAlphaBlending (MS_BOOL enable) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: MS_BOOL MDrv_VE_SetIOMapBase(void) */
EXTERN_C_LINKAGE MS_BOOL MDrv_VE_SetIOMapBase () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MDrv_VE_SetIOMapBase (void) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: MS_BOOL MDrv_VE_EnaVECapture(PMS_VE_VECAPTURESTATE) */
EXTERN_C_LINKAGE MS_BOOL MDrv_VE_EnaVECapture (PMS_VE_VECAPTURESTATE pstVECapState) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MDrv_VE_EnaVECapture (PMS_VE_VECAPTURESTATE pstVECapState) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_RectFill(GFX_RectFillInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_RectFill (GFX_RectFillInfo * pfillblock) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_RectFill (GFX_RectFillInfo * pfillblock) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: MS_BOOL MsOS_MPool_Init(void) */
EXTERN_C_LINKAGE MS_BOOL MsOS_MPool_Init () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MsOS_MPool_Init (void) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_HSCALE(MS_BOOL, MS_U16, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_HSCALE (MS_BOOL bEnable, MS_U16 src, MS_U16 dst) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_Set_HSCALE (MS_BOOL bEnable, MS_U16 src, MS_U16 dst) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: MS_BOOL MDrv_MVOP_GetIsInterlace(void) */
EXTERN_C_LINKAGE MS_BOOL MDrv_MVOP_GetIsInterlace () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MDrv_MVOP_GetIsInterlace (void) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: void png_process_data(png_structp, png_infop, png_bytep, png_size_t) */
EXTERN_C_LINKAGE void png_process_data (png_structp png_ptr, png_infop info_ptr, png_bytep buffer, png_size_t buffer_size) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_png_process_data (png_structp png_ptr, png_infop info_ptr, png_bytep buffer, png_size_t buffer_size) 
{
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_BitBlt(GFX_DrawRect *, MS_U32) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_BitBlt (GFX_DrawRect * drawbuf, MS_U32 drawflag) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_BitBlt (GFX_DrawRect * drawbuf, MS_U32 drawflag) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: CoreLayer * dfb_layers_register(CoreScreen *, void *, const DisplayLayerFuncs *) */
EXTERN_C_LINKAGE CoreLayer * dfb_layers_register (CoreScreen * screen, void * driver_data, const DisplayLayerFuncs * funcs) ;
EXTERN_C_LINKAGE CoreLayer * CppTest_Auto_Stub_dfb_layers_register (CoreScreen * screen, void * driver_data, const DisplayLayerFuncs * funcs) 
{
    return (CoreLayer *)0;
}

/** Auto-generated stub definition for function: DFBBoolean dfb_clip_rectangle(const DFBRegion *, DFBRectangle *) */
EXTERN_C_LINKAGE DFBBoolean dfb_clip_rectangle (const DFBRegion * clip, DFBRectangle * rect) ;
EXTERN_C_LINKAGE DFBBoolean CppTest_Auto_Stub_dfb_clip_rectangle (const DFBRegion * clip, DFBRectangle * rect) 
{
    return DFB_FALSE;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_FlushQueue(void) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_FlushQueue () ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_FlushQueue (void) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetFieldInver(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetFieldInver (MS_BOOL enable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetFieldInver (MS_BOOL enable) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_DestroyWin(MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_DestroyWin (MS_U8 gId) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_DestroyWin (MS_U8 gId) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: DirectResult fusion_reactor_attach(FusionReactor *, ReactionFunc, void *, Reaction *) */
EXTERN_C_LINKAGE DirectResult fusion_reactor_attach (FusionReactor * reactor, ReactionFunc func, void * ctx, Reaction * reaction) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_reactor_attach (FusionReactor * reactor, ReactionFunc func, void * ctx, Reaction * reaction) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: void MApi_JPEG_Rst(void) */
EXTERN_C_LINKAGE void MApi_JPEG_Rst () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_JPEG_Rst (void) 
{
}

/** Auto-generated stub definition for function: JPEG_Result MApi_JPEG_Init(JPEG_InitParam *) */
EXTERN_C_LINKAGE JPEG_Result MApi_JPEG_Init (JPEG_InitParam * pInitParam) ;
EXTERN_C_LINKAGE JPEG_Result CppTest_Auto_Stub_MApi_JPEG_Init (JPEG_InitParam * pInitParam) 
{
    return E_JPEG_FAILED;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_OutputColor(EN_GOP_OUTPUT_COLOR) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_OutputColor (EN_GOP_OUTPUT_COLOR type) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_OutputColor (EN_GOP_OUTPUT_COLOR type) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void png_set_gray_to_rgb(png_structp) */
EXTERN_C_LINKAGE void png_set_gray_to_rgb (png_structp png_ptr) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_png_set_gray_to_rgb (png_structp png_ptr) 
{
}

/** Auto-generated stub definition for function: DirectResult fusion_skirmish_init(FusionSkirmish *, const char *, const FusionWorld *) */
EXTERN_C_LINKAGE DirectResult fusion_skirmish_init (FusionSkirmish * skirmish, const char * name, const FusionWorld * world) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_skirmish_init (FusionSkirmish * skirmish, const char * name, const FusionWorld * world) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_BeginDraw(void) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_BeginDraw () ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_BeginDraw (void) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: DirectResult fusion_ref_up(FusionRef *, _Bool) */
EXTERN_C_LINKAGE DirectResult fusion_ref_up (FusionRef * ref, _Bool global) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_ref_up (FusionRef * ref, _Bool global) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: png_infop png_create_info_struct(png_structp) */
EXTERN_C_LINKAGE png_infop png_create_info_struct (png_structp png_ptr) ;
EXTERN_C_LINKAGE png_infop CppTest_Auto_Stub_png_create_info_struct (png_structp png_ptr) 
{
    return (png_infop)0;
}

/** Auto-generated stub definition for function: MS_BOOL MDrv_SEM_Init(void) */
EXTERN_C_LINKAGE MS_BOOL MDrv_SEM_Init () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MDrv_SEM_Init (void) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: MS_BOOL MsOS_MPool_Get(void **, MS_U32 *, MS_U32 *, MS_BOOL) */
EXTERN_C_LINKAGE MS_BOOL MsOS_MPool_Get (void ** pAddrVirt, MS_U32 * pu32AddrPhys, MS_U32 * pu32Size, MS_BOOL bNonCache) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MsOS_MPool_Get (void ** pAddrVirt, MS_U32 * pu32AddrPhys, MS_U32 * pu32Size, MS_BOOL bNonCache) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: void png_read_update_info(png_structp, png_infop) */
EXTERN_C_LINKAGE void png_read_update_info (png_structp png_ptr, png_infop info_ptr) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_png_read_update_info (png_structp png_ptr, png_infop info_ptr) 
{
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_DrawOval(GFX_OvalFillInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_DrawOval (GFX_OvalFillInfo * pOval) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_DrawOval (GFX_OvalFillInfo * pOval) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_VStretchMode(EN_GOP_STRETCH_VMODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_VStretchMode (EN_GOP_STRETCH_VMODE VStrchMode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_Set_VStretchMode (EN_GOP_STRETCH_VMODE VStrchMode) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: MS_U16 MApi_JPEG_GetAlignedHeight(void) */
EXTERN_C_LINKAGE MS_U16 MApi_JPEG_GetAlignedHeight () ;
EXTERN_C_LINKAGE MS_U16 CppTest_Auto_Stub_MApi_JPEG_GetAlignedHeight (void) 
{
    return (unsigned short)0;
}

/** Auto-generated stub definition for function: MS_BOOL MApi_GOP_Switch_GWIN_2_FB_BY_ADDR(MS_U8, MS_U32, MS_U16, MS_U16 *) */
EXTERN_C_LINKAGE MS_BOOL MApi_GOP_Switch_GWIN_2_FB_BY_ADDR (MS_U8 gWinId, MS_U32 u32FlipAddr, MS_U16 u16WaitTagID, MS_U16 * pU16QueueCnt) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MApi_GOP_Switch_GWIN_2_FB_BY_ADDR (MS_U8 gWinId, MS_U32 u32FlipAddr, MS_U16 u16WaitTagID, MS_U16 * pU16QueueCnt) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: void AddLinuxInputModule(void) */
EXTERN_C_LINKAGE void AddLinuxInputModule () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_AddLinuxInputModule (void) 
{
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_SetConfig(EN_GOP_CONFIG_TYPE, MS_U32 *) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetConfig (EN_GOP_CONFIG_TYPE type, MS_U32 * plist) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_SetConfig (EN_GOP_CONFIG_TYPE type, MS_U32 * plist) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void MApi_GFX_Init(GFX_Config *) */
EXTERN_C_LINKAGE void MApi_GFX_Init (GFX_Config * geConfig) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_GFX_Init (GFX_Config * geConfig) 
{
}

/** Auto-generated stub definition for function: void png_set_strip_16(png_structp) */
EXTERN_C_LINKAGE void png_set_strip_16 (png_structp png_ptr) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_png_set_strip_16 (png_structp png_ptr) 
{
}

/** Auto-generated stub definition for function: VE_Result MDrv_VE_Set_Customer_Scaling(MS_VE_CusScalingInfo *) */
EXTERN_C_LINKAGE VE_Result MDrv_VE_Set_Customer_Scaling (MS_VE_CusScalingInfo * pstVECusScalingInfo) ;
EXTERN_C_LINKAGE VE_Result CppTest_Auto_Stub_MDrv_VE_Set_Customer_Scaling (MS_VE_CusScalingInfo * pstVECusScalingInfo) 
{
    return E_VE_NOT_SUPPORT;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Enable(MS_U8, MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Enable (MS_U8 winId, MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_Enable (MS_U8 winId, MS_BOOL bEnable) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: DFBResult dfb_surface_unlock_buffer(CoreSurface *, CoreSurfaceBufferLock *) */
EXTERN_C_LINKAGE DFBResult dfb_surface_unlock_buffer (CoreSurface * surface, CoreSurfaceBufferLock * lock) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_surface_unlock_buffer (CoreSurface * surface, CoreSurfaceBufferLock * lock) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: void * pthread_getspecific(pthread_key_t) */
EXTERN_C_LINKAGE void * pthread_getspecific (pthread_key_t __key) ;
EXTERN_C_LINKAGE void * CppTest_Auto_Stub_pthread_getspecific (pthread_key_t __key) 
{
    return (void *)0;
}

/** Auto-generated stub definition for function: MS_BOOL MsOS_MPool_Mapping(MS_U8, MS_U32, MS_U32, MS_BOOL) */
EXTERN_C_LINKAGE MS_BOOL MsOS_MPool_Mapping (MS_U8 u8MiuSel, MS_U32 u32Offset, MS_U32 u32MapSize, MS_BOOL bNonCache) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MsOS_MPool_Mapping (MS_U8 u8MiuSel, MS_U32 u32Offset, MS_U32 u32MapSize, MS_BOOL bNonCache) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: png_structp png_create_read_struct(png_const_charp, png_voidp, png_error_ptr, png_error_ptr) */
EXTERN_C_LINKAGE png_structp png_create_read_struct (png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn) ;
EXTERN_C_LINKAGE png_structp CppTest_Auto_Stub_png_create_read_struct (png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn) 
{
    return (png_structp)0;
}

/** Auto-generated stub definition for function: JDIMENSION jpeg_read_scanlines(j_decompress_ptr, JSAMPARRAY, JDIMENSION) */
EXTERN_C_LINKAGE JDIMENSION jpeg_read_scanlines (j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines) ;
EXTERN_C_LINKAGE JDIMENSION CppTest_Auto_Stub_jpeg_read_scanlines (j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines) 
{
    return 0U;
}

/** Auto-generated stub definition for function: DFBResult dfb_state_set_source(CardState *, CoreSurface *) */
EXTERN_C_LINKAGE DFBResult dfb_state_set_source (CardState * state, CoreSurface * source) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_state_set_source (CardState * state, CoreSurface * source) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_EnableDFBBlending(MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_EnableDFBBlending (MS_BOOL enable) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_EnableDFBBlending (MS_BOOL enable) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: void AddFreeType2Interface(void) */
EXTERN_C_LINKAGE void AddFreeType2Interface () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_AddFreeType2Interface (void) 
{
}

/** Auto-generated stub definition for function: MS_BOOL MApi_PNL_GetDstInfo(MS_PNL_DST_DispInfo *, MS_U32) */
EXTERN_C_LINKAGE MS_BOOL MApi_PNL_GetDstInfo (MS_PNL_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MApi_PNL_GetDstInfo (MS_PNL_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_Enable(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_Enable (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_Enable (MS_BOOL bEnable) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetVCmdBuffer(MS_PHYADDR, GFX_VcmqBufSize) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetVCmdBuffer (MS_PHYADDR u32Addr, GFX_VcmqBufSize enBufSize) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetVCmdBuffer (MS_PHYADDR u32Addr, GFX_VcmqBufSize enBufSize) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: JPEG_ErrCode MApi_JPEG_GetErrorCode(void) */
EXTERN_C_LINKAGE JPEG_ErrCode MApi_JPEG_GetErrorCode () ;
EXTERN_C_LINKAGE JPEG_ErrCode CppTest_Auto_Stub_MApi_JPEG_GetErrorCode (void) 
{
    return E_JPEG_NO_ERROR;
}

/** Auto-generated stub definition for function: MS_BOOL MDrv_VE_VECaptureWaitOnFrame(PMS_VE_VECAPTURESTATE) */
EXTERN_C_LINKAGE MS_BOOL MDrv_VE_VECaptureWaitOnFrame (PMS_VE_VECAPTURESTATE pstVECapState) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MDrv_VE_VECaptureWaitOnFrame (PMS_VE_VECAPTURESTATE pstVECapState) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: MS_BOOL MApi_XC_GetDstInfo(MS_XC_DST_DispInfo *, MS_U32, EN_GOP_XCDST_TYPE) */
EXTERN_C_LINKAGE MS_BOOL MApi_XC_GetDstInfo (MS_XC_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo, EN_GOP_XCDST_TYPE XCDstType) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MApi_XC_GetDstInfo (MS_XC_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo, EN_GOP_XCDST_TYPE XCDstType) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: JPEG_Event MApi_JPEG_GetJPDEventFlag(void) */
EXTERN_C_LINKAGE JPEG_Event MApi_JPEG_GetJPDEventFlag () ;
EXTERN_C_LINKAGE JPEG_Event CppTest_Auto_Stub_MApi_JPEG_GetJPDEventFlag (void) 
{
    return E_JPEG_EVENT_DEC_DONE;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetNearestMode(MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetNearestMode (MS_BOOL enable) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetNearestMode (MS_BOOL enable) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: boolean jpeg_finish_decompress(j_decompress_ptr) */
EXTERN_C_LINKAGE boolean jpeg_finish_decompress (j_decompress_ptr cinfo) ;
EXTERN_C_LINKAGE boolean CppTest_Auto_Stub_jpeg_finish_decompress (j_decompress_ptr cinfo) 
{
    return 0;
}

/** Auto-generated stub definition for function: MS_U16 MApi_GFX_GetNextTAGID(MS_BOOL) */
EXTERN_C_LINKAGE MS_U16 MApi_GFX_GetNextTAGID (MS_BOOL bStepTagBefore) ;
EXTERN_C_LINKAGE MS_U16 CppTest_Auto_Stub_MApi_GFX_GetNextTAGID (MS_BOOL bStepTagBefore) 
{
    return (unsigned short)0;
}

/** Auto-generated stub definition for function: void AddMstarirModule(void) */
EXTERN_C_LINKAGE void AddMstarirModule () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_AddMstarirModule (void) 
{
}

/** Auto-generated stub definition for function: VE_Result MDrv_VE_GetStatus(VE_DrvStatus *) */
EXTERN_C_LINKAGE VE_Result MDrv_VE_GetStatus (VE_DrvStatus * pDrvStatus) ;
EXTERN_C_LINKAGE VE_Result CppTest_Auto_Stub_MDrv_VE_GetStatus (VE_DrvStatus * pDrvStatus) 
{
    return E_VE_NOT_SUPPORT;
}

/** Auto-generated stub definition for function: int pthread_cancel(pthread_t) */
EXTERN_C_LINKAGE int pthread_cancel (pthread_t __th) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_pthread_cancel (pthread_t __th) 
{
    return 0;
}

/** Auto-generated stub definition for function: DFBResult dfb_surface_create(CoreDFB *, const CoreSurfaceConfig *, CoreSurfaceTypeFlags, unsigned long, CorePalette *, CoreSurface **) */
EXTERN_C_LINKAGE DFBResult dfb_surface_create (CoreDFB * core, const CoreSurfaceConfig * config, CoreSurfaceTypeFlags type, unsigned long resource_id, CorePalette * palette, CoreSurface ** ret_surface) ;
EXTERN_C_LINKAGE DFBResult CppTest_Auto_Stub_dfb_surface_create (CoreDFB * core, const CoreSurfaceConfig * config, CoreSurfaceTypeFlags type, unsigned long resource_id, CorePalette * palette, CoreSurface ** ret_surface) 
{
    return DFB_OK;
}

/** Auto-generated stub definition for function: boolean jpeg_resync_to_restart(j_decompress_ptr, int) */
EXTERN_C_LINKAGE boolean jpeg_resync_to_restart (j_decompress_ptr cinfo, int desired) ;
EXTERN_C_LINKAGE boolean CppTest_Auto_Stub_jpeg_resync_to_restart (j_decompress_ptr cinfo, int desired) 
{
    return 0;
}

/** Auto-generated stub definition for function: JPEG_Result MApi_JPEG_Decode(void) */
EXTERN_C_LINKAGE JPEG_Result MApi_JPEG_Decode () ;
EXTERN_C_LINKAGE JPEG_Result CppTest_Auto_Stub_MApi_JPEG_Decode (void) 
{
    return E_JPEG_FAILED;
}

/** Auto-generated stub definition for function: void png_progressive_combine_row(png_structp, png_bytep, png_bytep) */
EXTERN_C_LINKAGE void png_progressive_combine_row (png_structp png_ptr, png_bytep old_row, png_bytep new_row) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_png_progressive_combine_row (png_structp png_ptr, png_bytep old_row, png_bytep new_row) 
{
}

/** Auto-generated stub definition for function: void png_set_progressive_read_fn(png_structp, png_voidp, png_progressive_info_ptr, png_progressive_row_ptr, png_progressive_end_ptr) */
EXTERN_C_LINKAGE void png_set_progressive_read_fn (png_structp png_ptr, png_voidp progressive_ptr, png_progressive_info_ptr info_fn, png_progressive_row_ptr row_fn, png_progressive_end_ptr end_fn) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_png_set_progressive_read_fn (png_structp png_ptr, png_voidp progressive_ptr, png_progressive_info_ptr info_fn, png_progressive_row_ptr row_fn, png_progressive_end_ptr end_fn) 
{
}

/** Auto-generated stub definition for function: DirectResult fusion_skirmish_destroy(FusionSkirmish *) */
EXTERN_C_LINKAGE DirectResult fusion_skirmish_destroy (FusionSkirmish * skirmish) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_skirmish_destroy (FusionSkirmish * skirmish) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: png_voidp png_get_progressive_ptr(png_structp) */
EXTERN_C_LINKAGE png_voidp png_get_progressive_ptr (png_structp png_ptr) ;
EXTERN_C_LINKAGE png_voidp CppTest_Auto_Stub_png_get_progressive_ptr (png_structp png_ptr) 
{
    return (png_voidp)0;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_EnableVCmdQueue(MS_U16) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_EnableVCmdQueue (MS_U16 blEnable) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_EnableVCmdQueue (MS_U16 blEnable) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetWinPosition(MS_U8, MS_U16, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetWinPosition (MS_U8 winId, MS_U16 dispX, MS_U16 dispY) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetWinPosition (MS_U8 winId, MS_U16 dispX, MS_U16 dispY) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_HStretchMode(EN_GOP_STRETCH_HMODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_HStretchMode (EN_GOP_STRETCH_HMODE HStrchMode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_Set_HStretchMode (EN_GOP_STRETCH_HMODE HStrchMode) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: void AddFontDgiffInterface(void) */
EXTERN_C_LINKAGE void AddFontDgiffInterface () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_AddFontDgiffInterface (void) 
{
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SetWinProperty(GOP_DwinProperty *) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SetWinProperty (GOP_DwinProperty * pproperty) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_SetWinProperty (GOP_DwinProperty * pproperty) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GetChipCaps(EN_GOP_CAPS, MS_U32 *, MS_U32) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GetChipCaps (EN_GOP_CAPS eCapType, MS_U32 * pRet, MS_U32 ret_size) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GetChipCaps (EN_GOP_CAPS eCapType, MS_U32 * pRet, MS_U32 ret_size) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_QueryDFBBldCaps(MS_U16 *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_QueryDFBBldCaps (MS_U16 * pU16SupportedBldFlags) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_QueryDFBBldCaps (MS_U16 * pU16SupportedBldFlags) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: JPEG_Result MApi_JPEG_GetBuffLoadType(JPEG_BuffLoadType *) */
EXTERN_C_LINKAGE JPEG_Result MApi_JPEG_GetBuffLoadType (JPEG_BuffLoadType * pBuffLoadType) ;
EXTERN_C_LINKAGE JPEG_Result CppTest_Auto_Stub_MApi_JPEG_GetBuffLoadType (JPEG_BuffLoadType * pBuffLoadType) 
{
    return E_JPEG_FAILED;
}

/** Auto-generated stub definition for function: DirectResult fusion_ref_down(FusionRef *, _Bool) */
EXTERN_C_LINKAGE DirectResult fusion_ref_down (FusionRef * ref, _Bool global) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_ref_down (FusionRef * ref, _Bool global) 
{
    return DR_OK;
}

/** Auto-generated stub definition for function: void fusion_dbg_shfree(FusionSHMPoolShared *, const char *, int, const char *, const char *, void *) */
EXTERN_C_LINKAGE void fusion_dbg_shfree (FusionSHMPoolShared * pool, const char * file, int line, const char * func, const char * what, void * __ptr) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_fusion_dbg_shfree (FusionSHMPoolShared * pool, const char * file, int line, const char * func, const char * what, void * __ptr) 
{
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetDstColorKey(MS_BOOL, GFX_ColorKeyMode, GFX_Buffer_Format, void *, void *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDstColorKey (MS_BOOL enable, GFX_ColorKeyMode opMode, GFX_Buffer_Format fmt, void * ps_color, void * pe_color) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetDstColorKey (MS_BOOL enable, GFX_ColorKeyMode opMode, GFX_Buffer_Format fmt, void * ps_color, void * pe_color) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: MS_U16 MApi_JPEG_GetAlignedPitch(void) */
EXTERN_C_LINKAGE MS_U16 MApi_JPEG_GetAlignedPitch () ;
EXTERN_C_LINKAGE MS_U16 CppTest_Auto_Stub_MApi_JPEG_GetAlignedPitch (void) 
{
    return (unsigned short)0;
}

/** Auto-generated stub definition for function: int jpeg_read_header(j_decompress_ptr, boolean) */
EXTERN_C_LINKAGE int jpeg_read_header (j_decompress_ptr cinfo, boolean require_image) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_jpeg_read_header (j_decompress_ptr cinfo, boolean require_image) 
{
    return 0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_TranspColorStretchMode(EN_GOP_STRCH_TRANSPCOLORMODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_TranspColorStretchMode (EN_GOP_STRCH_TRANSPCOLORMODE TColorStrchMode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_Set_TranspColorStretchMode (EN_GOP_STRCH_TRANSPCOLORMODE TColorStrchMode) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: CoreScreen * dfb_screens_register(CoreGraphicsDevice *, void *, ScreenFuncs *) */
EXTERN_C_LINKAGE CoreScreen * dfb_screens_register (CoreGraphicsDevice * device, void * driver_data, ScreenFuncs * funcs) ;
EXTERN_C_LINKAGE CoreScreen * CppTest_Auto_Stub_dfb_screens_register (CoreGraphicsDevice * device, void * driver_data, ScreenFuncs * funcs) 
{
    return (CoreScreen *)0;
}

/** Auto-generated stub definition for function: MS_BOOL MApi_PNL_IOMapBaseInit(void) */
EXTERN_C_LINKAGE MS_BOOL MApi_PNL_IOMapBaseInit () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MApi_PNL_IOMapBaseInit (void) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: MS_BOOL MApi_VE_GetDstInfo(MS_VE_DST_DispInfo *, MS_U32) */
EXTERN_C_LINKAGE MS_BOOL MApi_VE_GetDstInfo (MS_VE_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Auto_Stub_MApi_VE_GetDstInfo (MS_VE_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: void MApi_JPEG_UpdateReadInfo(MS_U32, MS_BOOL) */
EXTERN_C_LINKAGE void MApi_JPEG_UpdateReadInfo (MS_U32 u32DataRead, MS_BOOL bEOFflag) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_JPEG_UpdateReadInfo (MS_U32 u32DataRead, MS_BOOL bEOFflag) 
{
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_TrapezoidFill(GFX_RectFillInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_TrapezoidFill (GFX_RectFillInfo * pGfxFillInfo) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_TrapezoidFill (GFX_RectFillInfo * pGfxFillInfo) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: int pthread_join(pthread_t, void **) */
EXTERN_C_LINKAGE int pthread_join (pthread_t __th, void ** __thread_return) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_pthread_join (pthread_t __th, void ** __thread_return) 
{
    return 0;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetDC_CSC_FMT(GFX_YUV_Rgb2Yuv, GFX_YUV_OutRange, GFX_YUV_InRange, GFX_YUV_422, GFX_YUV_422) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDC_CSC_FMT (GFX_YUV_Rgb2Yuv mode, GFX_YUV_OutRange yuv_out_range, GFX_YUV_InRange uv_in_range, GFX_YUV_422 srcfmt, GFX_YUV_422 dstfmt) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetDC_CSC_FMT (GFX_YUV_Rgb2Yuv mode, GFX_YUV_OutRange yuv_out_range, GFX_YUV_InRange uv_in_range, GFX_YUV_422 srcfmt, GFX_YUV_422 dstfmt) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: void dfb_core_cleanup_remove(CoreDFB *, CoreCleanup *) */
EXTERN_C_LINKAGE void dfb_core_cleanup_remove (CoreDFB * core, CoreCleanup * cleanup) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_dfb_core_cleanup_remove (CoreDFB * core, CoreCleanup * cleanup) 
{
}

/** Auto-generated stub definition for function: void AddFontDefaultInterface(void) */
EXTERN_C_LINKAGE void AddFontDefaultInterface () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_AddFontDefaultInterface (void) 
{
}

/** Auto-generated stub definition for function: JPEG_Result MApi_JPEG_DecodeHdr(void) */
EXTERN_C_LINKAGE JPEG_Result MApi_JPEG_DecodeHdr () ;
EXTERN_C_LINKAGE JPEG_Result CppTest_Auto_Stub_MApi_JPEG_DecodeHdr (void) 
{
    return E_JPEG_FAILED;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_BitBltEx(GFX_DrawRect *, MS_U32, GFX_ScaleInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_BitBltEx (GFX_DrawRect * drawbuf, MS_U32 drawflag, GFX_ScaleInfo * ScaleInfo) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_BitBltEx (GFX_DrawRect * drawbuf, MS_U32 drawflag, GFX_ScaleInfo * ScaleInfo) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetDstBufferInfo(GFX_BufferInfo *, MS_U32) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDstBufferInfo (GFX_BufferInfo * bufInfo, MS_U32 offsetofByte) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetDstBufferInfo (GFX_BufferInfo * bufInfo, MS_U32 offsetofByte) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: MS_U32 MsOS_MPool_PA2KSEG1(MS_U32) */
EXTERN_C_LINKAGE MS_U32 MsOS_MPool_PA2KSEG1 (MS_U32 pAddrPhys) ;
EXTERN_C_LINKAGE MS_U32 CppTest_Auto_Stub_MsOS_MPool_PA2KSEG1 (MS_U32 pAddrPhys) 
{
    return 0UL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SetSourceSel(EN_GOP_DWIN_SRC_SEL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SetSourceSel (EN_GOP_DWIN_SRC_SEL enSrcSel) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_SetSourceSel (EN_GOP_DWIN_SRC_SEL enSrcSel) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetPaletteOpt(GFX_PaletteEntry *, MS_U16, MS_U16) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetPaletteOpt (GFX_PaletteEntry * pPalArray, MS_U16 u32PalStart, MS_U16 u32PalEnd) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetPaletteOpt (GFX_PaletteEntry * pPalArray, MS_U16 u32PalStart, MS_U16 u32PalEnd) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: void png_set_filler(png_structp, png_uint_32, int) */
EXTERN_C_LINKAGE void png_set_filler (png_structp png_ptr, png_uint_32 filler, int flags) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_png_set_filler (png_structp png_ptr, png_uint_32 filler, int flags) 
{
}

/** Auto-generated stub definition for function: void MApi_JPEG_SetMaxDecodeResolution(MS_U16, MS_U16) */
EXTERN_C_LINKAGE void MApi_JPEG_SetMaxDecodeResolution (MS_U16 u16Width, MS_U16 u16Height) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_JPEG_SetMaxDecodeResolution (MS_U16 u16Width, MS_U16 u16Height) 
{
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetStrBltSckType(GFX_StretchCKType, GFX_RgbColor *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetStrBltSckType (GFX_StretchCKType type, GFX_RgbColor * color) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetStrBltSckType (GFX_StretchCKType type, GFX_RgbColor * color) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_EnableTransClr(EN_GOP_TRANSCLR_FMT, MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_EnableTransClr (EN_GOP_TRANSCLR_FMT fmt, MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_EnableTransClr (EN_GOP_TRANSCLR_FMT fmt, MS_BOOL bEnable) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_GetDWinIntInfoTimeout(GOP_DWinIntInfo *, MS_U32) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_GetDWinIntInfoTimeout (GOP_DWinIntInfo * pDWinIntInfo, MS_U32 u32Timeout) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_DWIN_GetDWinIntInfoTimeout (GOP_DWinIntInfo * pDWinIntInfo, MS_U32 u32Timeout) 
{
    return GOP_API_FAIL;
}
#if 0  //FIXJASON
/** Auto-generated stub definition for function: void __pthread_unwind_next(__pthread_unwind_buf_t *) */
EXTERN_C_LINKAGE void __pthread_unwind_next (__pthread_unwind_buf_t * __buf) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub___pthread_unwind_next (__pthread_unwind_buf_t * __buf) 
{
}
#endif
/** Auto-generated stub definition for function: boolean jpeg_start_decompress(j_decompress_ptr) */
EXTERN_C_LINKAGE boolean jpeg_start_decompress (j_decompress_ptr cinfo) ;
EXTERN_C_LINKAGE boolean CppTest_Auto_Stub_jpeg_start_decompress (j_decompress_ptr cinfo) 
{
    return 0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetTransClr_8888(MS_U32, MS_U32) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetTransClr_8888 (MS_U32 clr, MS_U32 mask) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_SetTransClr_8888 (MS_U32 clr, MS_U32 mask) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: struct jpeg_error_mgr * jpeg_std_error(struct jpeg_error_mgr *) */
EXTERN_C_LINKAGE struct jpeg_error_mgr * jpeg_std_error (struct jpeg_error_mgr * err) ;
EXTERN_C_LINKAGE struct jpeg_error_mgr * CppTest_Auto_Stub_jpeg_std_error (struct jpeg_error_mgr * err) 
{
    return err;
}

/** Auto-generated stub definition for function: void MDrv_VE_InitVECapture(PMS_VE_Output_CAPTURE) */
EXTERN_C_LINKAGE void MDrv_VE_InitVECapture (PMS_VE_Output_CAPTURE pVECapture) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MDrv_VE_InitVECapture (PMS_VE_Output_CAPTURE pVECapture) 
{
}

/** Auto-generated stub definition for function: void AddDevmemModule(void) */
EXTERN_C_LINKAGE void AddDevmemModule () ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_AddDevmemModule (void) 
{
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_RegisterFBFmtCB(MS_U32 (*)(MS_U16, MS_U32, MS_U16)) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_RegisterFBFmtCB (MS_U32 (* fpGOP_CB)(MS_U16, MS_U32, MS_U16)) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_RegisterFBFmtCB (MS_U32 (* fpGOP_CB)(MS_U16, MS_U32, MS_U16)) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetAlphaBlending(GFX_BlendCoef, MS_U8) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetAlphaBlending (GFX_BlendCoef blendcoef, MS_U8 blendfactor) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetAlphaBlending (GFX_BlendCoef blendcoef, MS_U8 blendfactor) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for variable: volatile unsigned int g_dfb_lock_flag */
EXTERN_C_LINKAGE_START
extern volatile unsigned g_dfb_lock_flag;
volatile unsigned CppTest_Variable_Auto_Stub_g_dfb_lock_flag = 0U;
EXTERN_C_LINKAGE_END

/** Auto-generated stub definition for variable: void *(* direct_memcpy)(void *, const void *, size_t) */
EXTERN_C_LINKAGE_START
extern void *(* direct_memcpy)(void *, const void *, size_t);
void *(* CppTest_Variable_Auto_Stub_direct_memcpy)(void *, const void *, size_t) = (void *(*)(void *, const void *, size_t))0;
EXTERN_C_LINKAGE_END















/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_UpdateRegOnce(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_UpdateRegOnce (MS_BOOL bWriteRegOnce) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_UpdateRegOnce (MS_BOOL bWriteRegOnce) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: MS_U8 MApi_GOP_GWIN_GetFreeFBID(void) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_GetFreeFBID () ;
EXTERN_C_LINKAGE MS_U8 CppTest_Auto_Stub_MApi_GOP_GWIN_GetFreeFBID (void) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: MS_U8 MApi_GOP_GWIN_CreateFBbyStaticAddr(MS_U8, MS_U16, MS_U16, MS_U16, MS_U16, MS_U16, MS_U32) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_CreateFBbyStaticAddr (MS_U8 fbId, MS_U16 dispX, MS_U16 dispY, MS_U16 width, MS_U16 height, MS_U16 fbFmt, MS_U32 u32FbAddr) ;
EXTERN_C_LINKAGE MS_U8 CppTest_Auto_Stub_MApi_GOP_GWIN_CreateFBbyStaticAddr (MS_U8 fbId, MS_U16 dispX, MS_U16 dispY, MS_U16 width, MS_U16 height, MS_U16 fbFmt, MS_U32 u32FbAddr) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_MapFB2Win(MS_U8, MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_MapFB2Win (MS_U8 fbId, MS_U8 gwinId) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_GWIN_MapFB2Win (MS_U8 fbId, MS_U8 gwinId) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_GOP_API_Result MApi_GOP_Set3DOSDMode(MS_U8, MS_U16, MS_U16, EN_GOP_3D_MODETYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_Set3DOSDMode (MS_U8 u8Gwin, MS_U16 u16MainFBId, MS_U16 u16SubFBId, EN_GOP_3D_MODETYPE en3DMode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Auto_Stub_MApi_GOP_Set3DOSDMode (MS_U8 u8Gwin, MS_U16 u16MainFBId, MS_U16 u16SubFBId, EN_GOP_3D_MODETYPE en3DMode) 
{
    return GOP_API_FAIL;
}

/** Auto-generated stub definition for function: E_APIXC_ReturnValue MApi_XC_OSDC_GetDstInfo(MS_OSDC_DST_DispInfo *, MS_U32) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_OSDC_GetDstInfo (MS_OSDC_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Auto_Stub_MApi_XC_OSDC_GetDstInfo (MS_OSDC_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) 
{
    return E_APIXC_RET_FAIL;
}

/** Auto-generated stub definition for function: E_HDMI_SYNC_TYPE MApi_XC_GetHdmiSyncMode(void) */
EXTERN_C_LINKAGE E_HDMI_SYNC_TYPE MApi_XC_GetHdmiSyncMode () ;
EXTERN_C_LINKAGE E_HDMI_SYNC_TYPE CppTest_Auto_Stub_MApi_XC_GetHdmiSyncMode (void) 
{
    return HDMI_SYNC_DE;
}

/** Auto-generated stub definition for function: void MApi_XC_GetDEWindow(MS_WINDOW_TYPE *, SCALER_WIN) */
EXTERN_C_LINKAGE void MApi_XC_GetDEWindow (MS_WINDOW_TYPE * psWin, SCALER_WIN eWindow) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_XC_GetDEWindow (MS_WINDOW_TYPE * psWin, SCALER_WIN eWindow) 
{
}

/** Auto-generated stub definition for function: void MApi_XC_GetDEWidthHeightInDEByPassMode(MS_U16 *, MS_U16 *, SCALER_WIN) */
EXTERN_C_LINKAGE void MApi_XC_GetDEWidthHeightInDEByPassMode (MS_U16 * pu16Width, MS_U16 * pu16Height, SCALER_WIN eWindow) ;
EXTERN_C_LINKAGE void CppTest_Auto_Stub_MApi_XC_GetDEWidthHeightInDEByPassMode (MS_U16 * pu16Width, MS_U16 * pu16Height, SCALER_WIN eWindow) 
{
}

/** Auto-generated stub definition for function: MS_U8 MDrv_HDMI_Get_Pixel_Repetition(void) */
EXTERN_C_LINKAGE MS_U8 MDrv_HDMI_Get_Pixel_Repetition () ;
EXTERN_C_LINKAGE MS_U8 CppTest_Auto_Stub_MDrv_HDMI_Get_Pixel_Repetition (void) 
{
    return (unsigned char)0;
}

/** Auto-generated stub definition for function: void * dlopen(const char *, int) */
EXTERN_C_LINKAGE void * dlopen (const char * __file, int __mode) ;
EXTERN_C_LINKAGE void * CppTest_Auto_Stub_dlopen (const char * __file, int __mode) 
{
    return (void *)0;
}

/** Auto-generated stub definition for function: int dlclose(void *) */
EXTERN_C_LINKAGE int dlclose (void * __handle) ;
EXTERN_C_LINKAGE int CppTest_Auto_Stub_dlclose (void * __handle) 
{
    return 0;
}

/** Auto-generated stub definition for function: char * dlerror(void) */
EXTERN_C_LINKAGE char * dlerror () ;
EXTERN_C_LINKAGE char * CppTest_Auto_Stub_dlerror (void) 
{
    return (char *)0;
}

/** Auto-generated stub definition for function: void * dlsym(void *__restrict__, const char *__restrict__) */
EXTERN_C_LINKAGE void * dlsym (void * __handle, const char * __name) ;
EXTERN_C_LINKAGE void * CppTest_Auto_Stub_dlsym (void * __handle, const char * __name) 
{
    return (void *)0;
}

/** Auto-generated stub definition for function: GFX_Result MApi_GFX_SetDither(MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDither (MS_BOOL enable) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Auto_Stub_MApi_GFX_SetDither (MS_BOOL enable) 
{
    return GFX_FAIL;
}

/** Auto-generated stub definition for function: DirectResult fusion_skirmish_lock_count(FusionSkirmish *, int *) */
EXTERN_C_LINKAGE DirectResult fusion_skirmish_lock_count (FusionSkirmish * skirmish, int * lock_count) ;
EXTERN_C_LINKAGE DirectResult CppTest_Auto_Stub_fusion_skirmish_lock_count (FusionSkirmish * skirmish, int * lock_count)
{
    return DR_OK;
}




