Skip to content

Commit 0e216c3

Browse files
camera: Make CAMMode::forceDrc var an enum, and some extra comments (#439)
1 parent 7b01c95 commit 0e216c3

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

‎include/camera/camera.h‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,38 @@ typedef enum CamError
4747
CAMERA_ERROR_UVD_SESSION = -13,
4848
CAMERA_ERROR_SEGMENT_VIOLATION = -15
4949
} CamError;
50+
WUT_CHECK_SIZE(CamError, 0x4);
5051

5152
typedef enum CamFps
5253
{
5354
CAMERA_FPS_15 = 0,
5455
CAMERA_FPS_30 = 1
5556
} CamFps;
57+
WUT_CHECK_SIZE(CamFps, 0x4);
5658

59+
//! Stream type. There is only one valid stream type
5760
typedef enum CamStreamType
5861
{
5962
CAMERA_STREAM_TYPE_1 = 0
6063
} CamStreamType;
64+
WUT_CHECK_SIZE(CamStreamType, 0x4);
6165

66+
//! Type of event received by the event handler
6267
typedef enum CamEventType
6368
{
69+
//! Frame was captured, decoded and copied to a submitted surface
6470
CAMERA_DECODE_DONE = 0,
71+
//! Wii U Gamepad disconnected
6572
CAMERA_DRC_DETACH = 1
6673
} CamEventType;
74+
WUT_CHECK_SIZE(CamEventType, 0x4);
75+
76+
typedef enum CamForceDRC
77+
{
78+
CAMERA_FORCE_DRC_OFF = 0,
79+
CAMERA_FORCE_DRC_ON = 1
80+
} CamForceDRC;
81+
WUT_CHECK_SIZE(CamForceDRC, 0x4);
6782

6883
struct CAMEventData
6984
{
@@ -104,8 +119,8 @@ typedef void (*CAMEventHandler)(CAMEventData *camEventData);
104119

105120
struct CAMMode
106121
{
107-
//! If TRUE, the GamePad will display the camera output regardless of what is being rendered
108-
BOOL forceDrc;
122+
//! Controls whether GamePad will display the camera output (regardless of rendered content)
123+
CamForceDRC forceDrc;
109124
//! Framerate setting
110125
CamFps fps;
111126
};

0 commit comments

Comments
 (0)