psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
resc.h File Reference

libresc More...

#include <ppu-types.h>
#include <rsx/gcm_sys.h>
#include <sysutil/sysutil.h>

Go to the source code of this file.

Data Structures

struct  _resc_init_config
 
struct  _resc_src
 
struct  _resc_dsts
 

Macros

#define RESC_ERROR_NOT_INITIALIZED   (0x80210301)
 
#define RESC_ERROR_REINITIALIZED   (0x80210302)
 
#define RESC_ERROR_BAD_ALIGNMENT   (0x80210303)
 
#define RESC_ERROR_BAD_ARGUMENT   (0x80210304)
 
#define RESC_ERROR_LESS_MEMORY   (0x80210305)
 
#define RESC_ERROR_GCM_FLIP_QUE_FULL   (0x80210306)
 
#define RESC_ERROR_BAD_COMBINATION   (0x80210307)
 
#define RESC_CONSTANT_VRAM   0
 
#define RESC_MINIMUM_VRAM   1
 
#define RESC_CONSTANT_GPU_LOAD   0 /* do not use */
 
#define RESC_MINIMUM_GPU_LOAD   2
 
#define RESC_SURFACE_A8R8G8B8   GCM_TF_COLOR_A8R8G8B8 /* 8 */
 
#define RESC_SURFACE_F_W16Z16Y16X16   GCM_TF_COLOR_F_W16Z16Y16X16 /* 11 */
 
#define RESC_UNDEFINED   0
 
#define RESC_720x480   1
 
#define RESC_720x576   2
 
#define RESC_1280x720   4
 
#define RESC_1920x1080   8
 
#define RESC_FULLSCREEN   0
 
#define RESC_LETTERBOX   1
 
#define RESC_PANSCAN   2
 
#define RESC_PAL_50   0
 
#define RESC_PAL_60_DROP   1
 
#define RESC_PAL_60_INTERPOLATE   2
 
#define RESC_PAL_60_INTERPOLATE_30_DROP   3
 
#define RESC_PAL_60_INTERPOLATE_DROP_FLEXIBLE   4
 
#define RESC_PAL_60_FOR_HSYNC   5
 
#define RESC_NORMAL_BILINEAR   0
 
#define RESC_INTERLACE_FILTER   1
 
#define RESC_3X3_GAUSSIAN   2
 
#define RESC_2X3_QUINCUNX   3
 
#define RESC_2X3_QUINCUNX_ALT   4
 
#define RESC_ELEMENT_HALF   0
 
#define RESC_ELEMENT_FLOAT   1
 
#define RESC_DISPLAY_VSYNC   0
 
#define RESC_DISPLAY_HSYNC   1
 

Typedefs

typedef struct _resc_init_config rescInitConfig
 
typedef struct _resc_src rescSrc
 
typedef struct _resc_dsts rescDsts
 

Functions

s32 rescInit (const rescInitConfig *const initConfig)
 
void rescExit ()
 
s32 rescSetDsts (u32 dstsMode, rescDsts *dsts)
 
s32 rescSetDisplayMode (u32 bufferMode)
 
s32 rescGetNumColorBuffers (u32 dstsMode, u32 palTemporalMode, u32 reserved)
 
s32 rescGetBufferSize (int *colorBuffers, int *vertexArray, int *fragmentShader)
 
s32 rescSetBufferAddress (void *colorBuffers, void *vertexArray, void *fragmentShader)
 
s32 rescSetSrc (s32 idx, rescSrc *src)
 
s32 rescSetConvertAndFlip (gcmContextData *context, s32 idx)
 
void rescSetWaitFlip (gcmContextData *context)
 
s64 rescGetLastFlipTime ()
 
void rescResetFlipStatus ()
 
u32 rescGetFlipStatus ()
 
s32 rescGetRegisterCount ()
 
void rescSetRegisterCount (s32 count)
 
s32 rescSetPalInterpolateDropFlexRatio (float ratio)
 
s32 rescCreateInterlaceTable (void *ea, float srcH, s32 depth, int length)
 
s32 rescAdjustAspectRatio (float horizontal, float vertical)
 
void rescSetVBlankHandler (void(*handler)(u32 head))
 
void rescSetFlipHandler (void(*handler)(u32 head))
 
s32 rescGcmSurface2RescSrc (gcmSurface *surface, rescSrc *src)
 
s32 rescVideoResolution2RescBufferMode (u32 resolutionId, u32 *bufferMode)
 

Detailed Description

libresc

Definition in file resc.h.

Macro Definition Documentation

◆ RESC_1280x720

#define RESC_1280x720   4

Definition at line 41 of file resc.h.

◆ RESC_1920x1080

#define RESC_1920x1080   8

Definition at line 42 of file resc.h.

◆ RESC_2X3_QUINCUNX

#define RESC_2X3_QUINCUNX   3

Definition at line 61 of file resc.h.

◆ RESC_2X3_QUINCUNX_ALT

#define RESC_2X3_QUINCUNX_ALT   4

Definition at line 62 of file resc.h.

◆ RESC_3X3_GAUSSIAN

#define RESC_3X3_GAUSSIAN   2

Definition at line 60 of file resc.h.

◆ RESC_720x480

#define RESC_720x480   1

Definition at line 39 of file resc.h.

◆ RESC_720x576

#define RESC_720x576   2

Definition at line 40 of file resc.h.

◆ RESC_CONSTANT_GPU_LOAD

#define RESC_CONSTANT_GPU_LOAD   0 /* do not use */

Definition at line 30 of file resc.h.

◆ RESC_CONSTANT_VRAM

#define RESC_CONSTANT_VRAM   0

Definition at line 28 of file resc.h.

◆ RESC_DISPLAY_HSYNC

#define RESC_DISPLAY_HSYNC   1

Definition at line 70 of file resc.h.

◆ RESC_DISPLAY_VSYNC

#define RESC_DISPLAY_VSYNC   0

Definition at line 69 of file resc.h.

◆ RESC_ELEMENT_FLOAT

#define RESC_ELEMENT_FLOAT   1

Definition at line 66 of file resc.h.

◆ RESC_ELEMENT_HALF

#define RESC_ELEMENT_HALF   0

Definition at line 65 of file resc.h.

◆ RESC_ERROR_BAD_ALIGNMENT

#define RESC_ERROR_BAD_ALIGNMENT   (0x80210303)

Definition at line 21 of file resc.h.

◆ RESC_ERROR_BAD_ARGUMENT

#define RESC_ERROR_BAD_ARGUMENT   (0x80210304)

Definition at line 22 of file resc.h.

◆ RESC_ERROR_BAD_COMBINATION

#define RESC_ERROR_BAD_COMBINATION   (0x80210307)

Definition at line 25 of file resc.h.

◆ RESC_ERROR_GCM_FLIP_QUE_FULL

#define RESC_ERROR_GCM_FLIP_QUE_FULL   (0x80210306)

Definition at line 24 of file resc.h.

◆ RESC_ERROR_LESS_MEMORY

#define RESC_ERROR_LESS_MEMORY   (0x80210305)

Definition at line 23 of file resc.h.

◆ RESC_ERROR_NOT_INITIALIZED

#define RESC_ERROR_NOT_INITIALIZED   (0x80210301)

Definition at line 19 of file resc.h.

◆ RESC_ERROR_REINITIALIZED

#define RESC_ERROR_REINITIALIZED   (0x80210302)

Definition at line 20 of file resc.h.

◆ RESC_FULLSCREEN

#define RESC_FULLSCREEN   0

Definition at line 45 of file resc.h.

◆ RESC_INTERLACE_FILTER

#define RESC_INTERLACE_FILTER   1

Definition at line 59 of file resc.h.

◆ RESC_LETTERBOX

#define RESC_LETTERBOX   1

Definition at line 46 of file resc.h.

◆ RESC_MINIMUM_GPU_LOAD

#define RESC_MINIMUM_GPU_LOAD   2

Definition at line 31 of file resc.h.

◆ RESC_MINIMUM_VRAM

#define RESC_MINIMUM_VRAM   1

Definition at line 29 of file resc.h.

◆ RESC_NORMAL_BILINEAR

#define RESC_NORMAL_BILINEAR   0

Definition at line 58 of file resc.h.

◆ RESC_PAL_50

#define RESC_PAL_50   0

Definition at line 50 of file resc.h.

◆ RESC_PAL_60_DROP

#define RESC_PAL_60_DROP   1

Definition at line 51 of file resc.h.

◆ RESC_PAL_60_FOR_HSYNC

#define RESC_PAL_60_FOR_HSYNC   5

Definition at line 55 of file resc.h.

◆ RESC_PAL_60_INTERPOLATE

#define RESC_PAL_60_INTERPOLATE   2

Definition at line 52 of file resc.h.

◆ RESC_PAL_60_INTERPOLATE_30_DROP

#define RESC_PAL_60_INTERPOLATE_30_DROP   3

Definition at line 53 of file resc.h.

◆ RESC_PAL_60_INTERPOLATE_DROP_FLEXIBLE

#define RESC_PAL_60_INTERPOLATE_DROP_FLEXIBLE   4

Definition at line 54 of file resc.h.

◆ RESC_PANSCAN

#define RESC_PANSCAN   2

Definition at line 47 of file resc.h.

◆ RESC_SURFACE_A8R8G8B8

#define RESC_SURFACE_A8R8G8B8   GCM_TF_COLOR_A8R8G8B8 /* 8 */

Definition at line 34 of file resc.h.

◆ RESC_SURFACE_F_W16Z16Y16X16

#define RESC_SURFACE_F_W16Z16Y16X16   GCM_TF_COLOR_F_W16Z16Y16X16 /* 11 */

Definition at line 35 of file resc.h.

◆ RESC_UNDEFINED

#define RESC_UNDEFINED   0

Definition at line 38 of file resc.h.

Typedef Documentation

◆ rescDsts

typedef struct _resc_dsts rescDsts

◆ rescInitConfig

◆ rescSrc

typedef struct _resc_src rescSrc

Function Documentation

◆ rescAdjustAspectRatio()

s32 rescAdjustAspectRatio ( float  horizontal,
float  vertical 
)

◆ rescCreateInterlaceTable()

s32 rescCreateInterlaceTable ( void *  ea,
float  srcH,
s32  depth,
int  length 
)

◆ rescExit()

void rescExit ( )

◆ rescGcmSurface2RescSrc()

s32 rescGcmSurface2RescSrc ( gcmSurface surface,
rescSrc src 
)

◆ rescGetBufferSize()

s32 rescGetBufferSize ( int *  colorBuffers,
int *  vertexArray,
int *  fragmentShader 
)

◆ rescGetFlipStatus()

u32 rescGetFlipStatus ( )

◆ rescGetLastFlipTime()

s64 rescGetLastFlipTime ( )

◆ rescGetNumColorBuffers()

s32 rescGetNumColorBuffers ( u32  dstsMode,
u32  palTemporalMode,
u32  reserved 
)

◆ rescGetRegisterCount()

s32 rescGetRegisterCount ( )

◆ rescInit()

s32 rescInit ( const rescInitConfig *const  initConfig)

◆ rescResetFlipStatus()

void rescResetFlipStatus ( )

◆ rescSetBufferAddress()

s32 rescSetBufferAddress ( void *  colorBuffers,
void *  vertexArray,
void *  fragmentShader 
)

◆ rescSetConvertAndFlip()

s32 rescSetConvertAndFlip ( gcmContextData context,
s32  idx 
)

◆ rescSetDisplayMode()

s32 rescSetDisplayMode ( u32  bufferMode)

◆ rescSetDsts()

s32 rescSetDsts ( u32  dstsMode,
rescDsts dsts 
)

◆ rescSetFlipHandler()

void rescSetFlipHandler ( void(*)(u32 head)  handler)

◆ rescSetPalInterpolateDropFlexRatio()

s32 rescSetPalInterpolateDropFlexRatio ( float  ratio)

◆ rescSetRegisterCount()

void rescSetRegisterCount ( s32  count)

◆ rescSetSrc()

s32 rescSetSrc ( s32  idx,
rescSrc src 
)

◆ rescSetVBlankHandler()

void rescSetVBlankHandler ( void(*)(u32 head)  handler)

◆ rescSetWaitFlip()

void rescSetWaitFlip ( gcmContextData context)

◆ rescVideoResolution2RescBufferMode()

s32 rescVideoResolution2RescBufferMode ( u32  resolutionId,
u32 *  bufferMode 
)