/*---------------------------------------------------------------------------* Copyright (C) Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ ////============================================================================ /// DEMODRCCamera.c /// /// This is DRC Camera system code for the DEMO library. /// ////============================================================================ #include #include #include // Camera related members CAMSurface DEMODRCCameraSurface[2]; GX2Texture DEMODRCCameraYTexture; GX2Texture DEMODRCCameraUVTexture; CAMSetupInfo DEMODRCCameraSetupInfo; CAMHandle DEMOCameraHandle; #define DEMO_CAM_MAX_ALLOC_ATTEMPTS (10) void* DEMODRCCameraMemAlloc(int size, int alignment) { void *pMemTemp[DEMO_CAM_MAX_ALLOC_ATTEMPTS] = {0}; void *pMem = NULL; s32 err; u32 i; if (size == 0) return 0; for (i=0; i