Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions include/camera/camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,27 @@ typedef enum CamFps
CAMERA_FPS_30 = 1
} CamFps;

//! Stream type. There is only one valid stream type
typedef enum CamStreamType
{
CAMERA_STREAM_TYPE_1 = 0
} CamStreamType;

//! Type of event received by the event handler
typedef enum CamEventType
{
//! Frame was captured, decoded and copied to a submitted surface
CAMERA_DECODE_DONE = 0,
//! Wii U Gamepad disconnected
CAMERA_DRC_DETACH = 1
} CamEventType;

typedef enum CamForceDRC
{
CAMERA_FORCE_DRC_OFF = 0,
CAMERA_FORCE_DRC_ON = 1
} CamForceDRC;

struct CAMEventData
{
//! Event type
Expand Down Expand Up @@ -104,8 +114,8 @@ typedef void (*CAMEventHandler)(CAMEventData *camEventData);

struct CAMMode
{
//! If TRUE, the GamePad will display the camera output regardless of what is being rendered
BOOL forceDrc;
//! Controls whether GamePad will display the camera output (regardless of rendered content)
CamForceDRC forceDrc;
//! Framerate setting
CamFps fps;
};
Expand Down