Skip to content

Commit

Permalink
Video fixes
Browse files Browse the repository at this point in the history
(cherry picked from commit 39b647c)

video squash
  • Loading branch information
Extrems authored and DacoTaco committed Jun 17, 2023
1 parent 58a4c0e commit 0e39e22
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 78 deletions.
18 changes: 17 additions & 1 deletion gc/ogc/video.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void VIDEO_SetBlack(bool black);

/*!
* \fn u32 VIDEO_GetNextField(void)
* \brief Get the next field in DS mode.
* \brief Get the next field
*
* \return \ref vi_fielddef "field"
*/
Expand Down Expand Up @@ -207,6 +207,22 @@ GXRModeObj * VIDEO_GetPreferredMode(GXRModeObj *mode);
*/
u32 VIDEO_GetVideoScanMode(void);

/*!
* \fn u32 VIDEO_SetAdjustingValues(s16 hor,s16 ver)
* \brief Set video adjustment values
*
* \return none
*/
void VIDEO_SetAdjustingValues(s16 hor,s16 ver);

/*!
* \fn u32 VIDEO_GetAdjustingValues(s16 hor,s16 ver)
* \brief Get video adjustment values
*
* \return none
*/
void VIDEO_GetAdjustingValues(s16 *hor,s16 *ver);

#ifdef __cplusplus
}
#endif /* __cplusplus */
Expand Down
2 changes: 2 additions & 0 deletions gc/ogc/video_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ distribution.
#define VI_INTERLACE 0 /*!< Video mode INTERLACED. */
#define VI_NON_INTERLACE 1 /*!< Video mode NON INTERLACED */
#define VI_PROGRESSIVE 2 /*!< Video mode PROGRESSIVE. Special mode for higher quality */
#define VI_3D 3 /*!< Video mode 3D */

/*!
* @}
Expand Down Expand Up @@ -119,6 +120,7 @@ distribution.
#define VI_TVMODE_NTSC_INT VI_TVMODE(VI_NTSC, VI_INTERLACE)
#define VI_TVMODE_NTSC_DS VI_TVMODE(VI_NTSC, VI_NON_INTERLACE)
#define VI_TVMODE_NTSC_PROG VI_TVMODE(VI_NTSC, VI_PROGRESSIVE)
#define VI_TVMODE_NTSC_3D VI_TVMODE(VI_NTSC, VI_3D)

#define VI_TVMODE_PAL_INT VI_TVMODE(VI_PAL, VI_INTERLACE)
#define VI_TVMODE_PAL_DS VI_TVMODE(VI_PAL, VI_NON_INTERLACE)
Expand Down
Loading

0 comments on commit 0e39e22

Please sign in to comment.