Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: RGB output mode support #167

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions gc/ogc/gx_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ typedef struct _gx_rmodeobj {
u16 viWidth;
u16 viHeight;
u32 xfbMode;
u8 rgb;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we do without this extra field, and assume that VI_TVMODE_DEBUG_PROG is always RGB?

u8 field_rendering;
u8 aa;
u8 sample_pattern[12][2];
Expand Down
7 changes: 7 additions & 0 deletions gc/ogc/video_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ distribution.
#define VI_MAX_WIDTH_EURGB60 VI_MAX_WIDTH_NTSC
#define VI_MAX_HEIGHT_EURGB60 VI_MAX_HEIGHT_NTSC

#define VI_MAX_WIDTH_DEBUG VI_MAX_WIDTH_NTSC
#define VI_MAX_HEIGHT_DEBUG VI_MAX_HEIGHT_NTSC

#define VIDEO_PadFramebufferWidth(width) ((u16)(((u16)(width) + 15) & ~15)) /*!< macro to pad the width to a multiple of 16 */

/*!
Expand All @@ -133,6 +136,7 @@ distribution.
#define VI_TVMODE_MPAL_PROG VI_TVMODE(VI_MPAL, VI_PROGRESSIVE)

#define VI_TVMODE_DEBUG_INT VI_TVMODE(VI_DEBUG, VI_INTERLACE)
#define VI_TVMODE_DEBUG_PROG VI_TVMODE(VI_DEBUG, VI_PROGRESSIVE)

#define VI_TVMODE_DEBUG_PAL_INT VI_TVMODE(VI_DEBUG_PAL, VI_INTERLACE)
#define VI_TVMODE_DEBUG_PAL_DS VI_TVMODE(VI_DEBUG_PAL, VI_NON_INTERLACE)
Expand Down Expand Up @@ -191,6 +195,9 @@ extern GXRModeObj TVEurgb60Hz480IntAa;
extern GXRModeObj TVEurgb60Hz480Prog;
extern GXRModeObj TVEurgb60Hz480ProgSoft;
extern GXRModeObj TVEurgb60Hz480ProgAa;
extern GXRModeObj TVRgb480Prog; /*!< Video and render mode configuration for 480 lines,progressive,singlefield RGB mode */
extern GXRModeObj TVRgb480ProgSoft;
extern GXRModeObj TVRgb480ProgAa;

/*!
* @}
Expand Down
Loading
Loading