15 #define CAMERA_WIDTH 640
16 #define CAMERA_PITCH 768
17 #define CAMERA_HEIGHT 480
19 #define CAMERA_Y_BUFFER_SIZE (CAMERA_PITCH * CAMERA_HEIGHT)
20 #define CAMERA_UV_BUFFER_SIZE (CAMERA_PITCH * CAMERA_HEIGHT / 2)
21 #define CAMERA_YUV_BUFFER_SIZE (CAMERA_Y_BUFFER_SIZE + CAMERA_UV_BUFFER_SIZE)
23 #define CAMERA_YUV_BUFFER_ALIGNMENT 256
85 WUT_CHECK_OFFSET(
CAMMode, 0x00, unk_0x00);
86 WUT_CHECK_OFFSET(
CAMMode, 0x04, fps);
114 WUT_UNKNOWN_BYTES(4);
118 WUT_UNKNOWN_BYTES(0x10);
138 WUT_CHECK_OFFSET(
CAMSurface, 0x00, surfaceSize);
139 WUT_CHECK_OFFSET(
CAMSurface, 0x04, surfaceBuffer);
143 WUT_CHECK_OFFSET(
CAMSurface, 0x14, alignment);
145 WUT_CHECK_OFFSET(
CAMSurface, 0x1C, pixelFormat);
void CAMExit(CAMHandle handle)
CAMEventHandler eventHandler
CAMError CAMCheckMemSegmentation(void *pMem, uint32_t size)
uint32_t threadAffinity
See OS_THREAD_ATTRIB.
CAMError CAMClose(CAMHandle handle)
CAMHandle CAMInit(int instance, CAMSetupInfo *setupInfo, CAMError *err)
CAMError CAMGetMemReq(CAMStreamInfo *streamInfo)
CAMError CAMOpen(CAMHandle handle)
void(* CAMEventHandler)(CAMEventData *camEventData)
CAMError CAMSubmitTargetSurface(CAMHandle handle, CAMSurface *surface)
@ CAMERA_ERROR_INVALID_ARG
@ CAMERA_ERROR_INVALID_HANDLE
@ CAMERA_ERROR_DEVICE_IN_USE
@ CAMERA_ERROR_UNINITIALIZED
@ CAMERA_ERROR_INSUFFICIENT_MEMORY
@ CAMERA_ERROR_SEGMENT_VIOLATION