summaryrefslogtreecommitdiff
path: root/src/gfx/gfx_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx/gfx_priv.h')
-rw-r--r--src/gfx/gfx_priv.h363
1 files changed, 201 insertions, 162 deletions
diff --git a/src/gfx/gfx_priv.h b/src/gfx/gfx_priv.h
index 5647af8..6a2218e 100644
--- a/src/gfx/gfx_priv.h
+++ b/src/gfx/gfx_priv.h
@@ -89,13 +89,13 @@ DEV_STATUS redcloud_find_msr_device(MSR * pDev);
int redcloud_msr_init(void);
DEV_STATUS redcloud_id_msr_device(MSR * pDev, unsigned long address);
DEV_STATUS redcloud_get_msr_dev_address(unsigned int device,
- unsigned long *address);
+ unsigned long *address);
DEV_STATUS redcloud_get_glink_id_at_address(unsigned int *device,
- unsigned long address);
+ unsigned long address);
DEV_STATUS redcloud_msr_read(unsigned int device, unsigned int msrRegister,
- Q_WORD * msrValue);
+ Q_WORD * msrValue);
DEV_STATUS redcloud_msr_write(unsigned int device, unsigned int msrRegister,
- Q_WORD * msrValue);
+ Q_WORD * msrValue);
#endif
#endif
@@ -131,13 +131,14 @@ int gu1_set_display_bpp(unsigned short bpp);
int gu1_is_display_mode_supported(int xres, int yres, int bpp, int hz);
int gu1_set_display_mode(int xres, int yres, int bpp, int hz);
int gu1_set_display_timings(unsigned short bpp, unsigned short flags,
- unsigned short hactive, unsigned short hblank_start,
- unsigned short hsync_start, unsigned short hsync_end,
- unsigned short hblank_end, unsigned short htotal,
- unsigned short vactive, unsigned short vblank_start,
- unsigned short vsync_start, unsigned short vsync_end,
- unsigned short vblank_end, unsigned short vtotal,
- unsigned long frequency);
+ unsigned short hactive, unsigned short hblank_start,
+ unsigned short hsync_start,
+ unsigned short hsync_end, unsigned short hblank_end,
+ unsigned short htotal, unsigned short vactive,
+ unsigned short vblank_start,
+ unsigned short vsync_start,
+ unsigned short vsync_end, unsigned short vblank_end,
+ unsigned short vtotal, unsigned long frequency);
int gu1_set_vtotal(unsigned short vtotal);
void gu1_set_display_pitch(unsigned short pitch);
void gu1_set_display_offset(unsigned long offset);
@@ -147,10 +148,10 @@ void gu1_video_shutdown(void);
void gu1_set_cursor_enable(int enable);
void gu1_set_cursor_colors(unsigned long bkcolor, unsigned long fgcolor);
void gu1_set_cursor_position(unsigned long memoffset,
- unsigned short xpos, unsigned short ypos,
- unsigned short xhotspot, unsigned short yhotspot);
+ unsigned short xpos, unsigned short ypos,
+ unsigned short xhotspot, unsigned short yhotspot);
void gu1_set_cursor_shape32(unsigned long memoffset,
- unsigned long *andmask, unsigned long *xormask);
+ unsigned long *andmask, unsigned long *xormask);
int gu1_set_compression_enable(int enable);
int gu1_set_compression_offset(unsigned long offset);
int gu1_set_compression_pitch(unsigned short pitch);
@@ -163,21 +164,21 @@ void gu1_delay_milliseconds(unsigned long milliseconds);
void gu1_delay_microseconds(unsigned long microseconds);
void gu1_enable_panning(int x, int y);
int gu1_set_fixed_timings(int panelResX, int panelResY, unsigned short width,
- unsigned short height, unsigned short bpp);
+ unsigned short height, unsigned short bpp);
int gu1_set_panel_present(int panelResX, int panelResY, unsigned short width,
- unsigned short height, unsigned short bpp);
+ unsigned short height, unsigned short bpp);
void gu1_reset_timing_lock(void);
int gu1_get_display_details(unsigned int mode, int *xres, int *yres, int *hz);
unsigned short gu1_get_display_pitch(void);
unsigned long gu1_get_max_supported_pixel_clock(void);
int gu1_mode_frequency_supported(int xres, int yres, int bpp,
- unsigned long frequency);
+ unsigned long frequency);
int gu1_get_refreshrate_from_frequency(int xres, int yres, int bpp, int *hz,
- unsigned long frequency);
+ unsigned long frequency);
int gu1_get_refreshrate_from_mode(int xres, int yres, int bpp, int *hz,
- unsigned long frequency);
+ unsigned long frequency);
int gu1_get_frequency_from_refreshrate(int xres, int yres, int bpp, int hz,
- int *frequency);
+ int *frequency);
int gu1_get_display_mode_count(void);
int gu1_get_display_mode(int *xres, int *yres, int *bpp, int *hz);
unsigned long gu1_get_frame_buffer_line_size(void);
@@ -196,8 +197,7 @@ unsigned short gu1_get_vblank_end(void);
unsigned short gu1_get_vtotal(void);
unsigned short gu1_get_display_bpp(void);
unsigned long gu1_get_display_offset(void);
-int gu1_get_display_palette_entry(unsigned long index,
- unsigned long *palette);
+int gu1_get_display_palette_entry(unsigned long index, unsigned long *palette);
void gu1_get_display_palette(unsigned long *palette);
unsigned long gu1_get_cursor_enable(void);
unsigned long gu1_get_cursor_offset(void);
@@ -220,16 +220,17 @@ int gu1_get_valid_bit(int line);
void gfx_set_display_video_format(unsigned long format);
void gfx_set_display_video_yuv_offsets(unsigned long yoffset,
- unsigned long uoffset, unsigned long voffset);
+ unsigned long uoffset,
+ unsigned long voffset);
void gfx_set_display_video_yuv_pitch(unsigned long ypitch,
- unsigned long uvpitch);
-void gfx_set_display_video_downscale(unsigned short srch,
- unsigned short dsth);
+ unsigned long uvpitch);
+void gfx_set_display_video_downscale(unsigned short srch, unsigned short dsth);
void gfx_set_display_video_vertical_downscale_enable(int enable);
void gfx_get_display_video_yuv_offsets(unsigned long *yoffset,
- unsigned long *uoffset, unsigned long *voffset);
+ unsigned long *uoffset,
+ unsigned long *voffset);
void gfx_get_display_video_yuv_pitch(unsigned long *ypitch,
- unsigned long *uvpitch);
+ unsigned long *uvpitch);
unsigned long gfx_get_display_video_downscale_delta(void);
int gfx_get_display_video_downscale_enable(void);
@@ -248,18 +249,19 @@ void gu2_disable_compression(void);
#if GFX_DISPLAY_DYNAMIC
void gu2_get_display_video_yuv_offsets(unsigned long *yoffset,
- unsigned long *uoffset, unsigned long *voffset);
+ unsigned long *uoffset,
+ unsigned long *voffset);
void gu2_get_display_video_yuv_pitch(unsigned long *ypitch,
- unsigned long *uvpitch);
+ unsigned long *uvpitch);
unsigned long gu2_get_display_video_downscale_delta(void);
int gu2_get_display_video_downscale_enable(void);
void gu2_set_display_video_yuv_offsets(unsigned long yoffset,
- unsigned long uoffset, unsigned long voffset);
+ unsigned long uoffset,
+ unsigned long voffset);
void gu2_set_display_video_format(unsigned long format);
void gu2_set_display_video_yuv_pitch(unsigned long ypitch,
- unsigned long uvpitch);
-void gu2_set_display_video_downscale(unsigned short srch,
- unsigned short dsth);
+ unsigned long uvpitch);
+void gu2_set_display_video_downscale(unsigned short srch, unsigned short dsth);
void gu2_set_display_video_vertical_downscale_enable(int enable);
void gu2_set_display_video_enable(int enable);
void gu2_set_display_video_size(unsigned short width, unsigned short height);
@@ -270,13 +272,14 @@ int gu2_set_display_bpp(unsigned short bpp);
int gu2_is_display_mode_supported(int xres, int yres, int bpp, int hz);
int gu2_set_display_mode(int xres, int yres, int bpp, int hz);
int gu2_set_display_timings(unsigned short bpp, unsigned short flags,
- unsigned short hactive, unsigned short hblank_start,
- unsigned short hsync_start, unsigned short hsync_end,
- unsigned short hblank_end, unsigned short htotal,
- unsigned short vactive, unsigned short vblank_start,
- unsigned short vsync_start, unsigned short vsync_end,
- unsigned short vblank_end, unsigned short vtotal,
- unsigned long frequency);
+ unsigned short hactive, unsigned short hblank_start,
+ unsigned short hsync_start,
+ unsigned short hsync_end, unsigned short hblank_end,
+ unsigned short htotal, unsigned short vactive,
+ unsigned short vblank_start,
+ unsigned short vsync_start,
+ unsigned short vsync_end, unsigned short vblank_end,
+ unsigned short vtotal, unsigned long frequency);
int gu2_set_vtotal(unsigned short vtotal);
void gu2_set_display_pitch(unsigned short pitch);
void gu2_set_display_offset(unsigned long offset);
@@ -285,18 +288,18 @@ int gu2_set_display_palette(unsigned long *palette);
void gu2_set_cursor_enable(int enable);
void gu2_set_cursor_colors(unsigned long bkcolor, unsigned long fgcolor);
void gu2_set_cursor_position(unsigned long memoffset,
- unsigned short xpos, unsigned short ypos,
- unsigned short xhotspot, unsigned short yhotspot);
+ unsigned short xpos, unsigned short ypos,
+ unsigned short xhotspot, unsigned short yhotspot);
void gu2_set_cursor_shape32(unsigned long memoffset,
- unsigned long *andmask, unsigned long *xormask);
+ unsigned long *andmask, unsigned long *xormask);
void gu2_set_cursor_shape64(unsigned long memoffset,
- unsigned long *andmask, unsigned long *xormask);
+ unsigned long *andmask, unsigned long *xormask);
void gu2_set_icon_enable(int enable);
void gu2_set_icon_colors(unsigned long color0, unsigned long color1,
- unsigned long color2);
+ unsigned long color2);
void gu2_set_icon_position(unsigned long memoffset, unsigned short xpos);
void gu2_set_icon_shape64(unsigned long memoffset, unsigned long *andmask,
- unsigned long *xormask, unsigned int lines);
+ unsigned long *xormask, unsigned int lines);
int gu2_set_compression_enable(int enable);
int gu2_set_compression_offset(unsigned long offset);
int gu2_set_compression_pitch(unsigned short pitch);
@@ -309,23 +312,24 @@ void gu2_delay_milliseconds(unsigned long milliseconds);
void gu2_delay_microseconds(unsigned long microseconds);
void gu2_enable_panning(int x, int y);
int gu2_is_panel_mode_supported(int panelResX, int panelResY,
- unsigned short width, unsigned short height, unsigned short bpp);
+ unsigned short width, unsigned short height,
+ unsigned short bpp);
int gu2_set_fixed_timings(int panelResX, int panelResY, unsigned short width,
- unsigned short height, unsigned short bpp);
+ unsigned short height, unsigned short bpp);
int gu2_set_panel_present(int panelResX, int panelResY, unsigned short width,
- unsigned short height, unsigned short bpp);
+ unsigned short height, unsigned short bpp);
void gu2_reset_timing_lock(void);
int gu2_get_display_details(unsigned int mode, int *xres, int *yres, int *hz);
unsigned short gu2_get_display_pitch(void);
unsigned long gu2_get_max_supported_pixel_clock(void);
int gu2_mode_frequency_supported(int xres, int yres, int bpp,
- unsigned long frequency);
+ unsigned long frequency);
int gu2_get_refreshrate_from_frequency(int xres, int yres, int bpp, int *hz,
- unsigned long frequency);
+ unsigned long frequency);
int gu2_get_refreshrate_from_mode(int xres, int yres, int bpp, int *hz,
- unsigned long frequency);
+ unsigned long frequency);
int gu2_get_frequency_from_refreshrate(int xres, int yres, int bpp, int hz,
- int *frequency);
+ int *frequency);
int gu2_get_display_mode_count(void);
int gu2_get_display_mode(int *xres, int *yres, int *bpp, int *hz);
unsigned long gu2_get_frame_buffer_line_size(void);
@@ -344,8 +348,7 @@ unsigned short gu2_get_vblank_end(void);
unsigned short gu2_get_vtotal(void);
unsigned short gu2_get_display_bpp(void);
unsigned long gu2_get_display_offset(void);
-int gu2_get_display_palette_entry(unsigned long index,
- unsigned long *palette);
+int gu2_get_display_palette_entry(unsigned long index, unsigned long *palette);
void gu2_get_display_palette(unsigned long *palette);
unsigned long gu2_get_cursor_enable(void);
unsigned long gu2_get_cursor_offset(void);
@@ -374,7 +377,8 @@ int gu2_get_valid_bit(int line);
/* PRIVATE ROUTINES */
void gu1_solid_fill(unsigned short x, unsigned short y,
- unsigned short width, unsigned short height, unsigned long color);
+ unsigned short width, unsigned short height,
+ unsigned long color);
void gu1_detect_blt_buffer_base(void);
/* DYNAMIC ROUTINES */
@@ -383,41 +387,50 @@ void gu1_detect_blt_buffer_base(void);
void gu1_set_bpp(unsigned short bpp);
void gu1_set_solid_pattern(unsigned long color);
void gu1_set_mono_pattern(unsigned long bgcolor, unsigned long fgcolor,
- unsigned long data0, unsigned long data1, unsigned char transparency);
+ unsigned long data0, unsigned long data1,
+ unsigned char transparency);
void gu1_set_color_pattern(unsigned long bgcolor, unsigned long fgcolor,
- unsigned long data0, unsigned long data1, unsigned long data2,
- unsigned long data3, unsigned char transparency);
+ unsigned long data0, unsigned long data1,
+ unsigned long data2, unsigned long data3,
+ unsigned char transparency);
void gu1_load_color_pattern_line(short y, unsigned long *pattern_8x8);
void gu1_set_solid_source(unsigned long color);
void gu1_set_mono_source(unsigned long bgcolor, unsigned long fgcolor,
- unsigned short transparent);
+ unsigned short transparent);
void gu1_set_pattern_flags(unsigned short flags);
void gu1_set_raster_operation(unsigned char rop);
void gu1_pattern_fill(unsigned short x, unsigned short y,
- unsigned short width, unsigned short height);
+ unsigned short width, unsigned short height);
void gu1_color_pattern_fill(unsigned short x, unsigned short y,
- unsigned short width, unsigned short height, unsigned long *pattern);
+ unsigned short width, unsigned short height,
+ unsigned long *pattern);
void gu1_screen_to_screen_blt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width, unsigned short height);
void gu1_screen_to_screen_xblt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height, unsigned long color);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width, unsigned short height,
+ unsigned long color);
void gu1_color_bitmap_to_screen_blt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height, unsigned char *data, long pitch);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width, unsigned short height,
+ unsigned char *data, long pitch);
void gu1_color_bitmap_to_screen_xblt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height, unsigned char *data, long pitch,
- unsigned long color);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width,
+ unsigned short height, unsigned char *data,
+ long pitch, unsigned long color);
void gu1_mono_bitmap_to_screen_blt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height, unsigned char *data, short pitch);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width, unsigned short height,
+ unsigned char *data, short pitch);
void gu1_text_blt(unsigned short dstx, unsigned short dsty,
- unsigned short width, unsigned short height, unsigned char *data);
+ unsigned short width, unsigned short height,
+ unsigned char *data);
void gu1_bresenham_line(unsigned short x, unsigned short y,
- unsigned short length, unsigned short initerr, unsigned short axialerr,
- unsigned short diagerr, unsigned short flags);
+ unsigned short length, unsigned short initerr,
+ unsigned short axialerr, unsigned short diagerr,
+ unsigned short flags);
void gu1_wait_until_idle(void);
int gu1_test_blt_pending(void);
#endif
@@ -438,41 +451,50 @@ void gu2_reset_pitch(unsigned short pitch);
void gu2_set_bpp(unsigned short bpp);
void gu2_set_solid_pattern(unsigned long color);
void gu2_set_mono_pattern(unsigned long bgcolor, unsigned long fgcolor,
- unsigned long data0, unsigned long data1, unsigned char transparency);
+ unsigned long data0, unsigned long data1,
+ unsigned char transparency);
void gu2_set_color_pattern(unsigned long bgcolor, unsigned long fgcolor,
- unsigned long data0, unsigned long data1, unsigned long data2,
- unsigned long data3, unsigned char transparency);
+ unsigned long data0, unsigned long data1,
+ unsigned long data2, unsigned long data3,
+ unsigned char transparency);
void gu2_load_color_pattern_line(short y, unsigned long *pattern_8x8);
void gu2_set_solid_source(unsigned long color);
void gu2_set_mono_source(unsigned long bgcolor, unsigned long fgcolor,
- unsigned short transparent);
+ unsigned short transparent);
void gu2_set_pattern_flags(unsigned short flags);
void gu2_set_raster_operation(unsigned char rop);
void gu2_pattern_fill(unsigned short x, unsigned short y,
- unsigned short width, unsigned short height);
+ unsigned short width, unsigned short height);
void gu2_color_pattern_fill(unsigned short x, unsigned short y,
- unsigned short width, unsigned short height, unsigned long *pattern);
+ unsigned short width, unsigned short height,
+ unsigned long *pattern);
void gu2_screen_to_screen_blt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width, unsigned short height);
void gu2_screen_to_screen_xblt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height, unsigned long color);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width, unsigned short height,
+ unsigned long color);
void gu2_color_bitmap_to_screen_blt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height, unsigned char *data, long pitch);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width, unsigned short height,
+ unsigned char *data, long pitch);
void gu2_color_bitmap_to_screen_xblt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height, unsigned char *data, long pitch,
- unsigned long color);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width,
+ unsigned short height, unsigned char *data,
+ long pitch, unsigned long color);
void gu2_mono_bitmap_to_screen_blt(unsigned short srcx, unsigned short srcy,
- unsigned short dstx, unsigned short dsty, unsigned short width,
- unsigned short height, unsigned char *data, short pitch);
+ unsigned short dstx, unsigned short dsty,
+ unsigned short width, unsigned short height,
+ unsigned char *data, short pitch);
void gu2_text_blt(unsigned short dstx, unsigned short dsty,
- unsigned short width, unsigned short height, unsigned char *data);
+ unsigned short width, unsigned short height,
+ unsigned char *data);
void gu2_bresenham_line(unsigned short x, unsigned short y,
- unsigned short length, unsigned short initerr, unsigned short axialerr,
- unsigned short diagerr, unsigned short flags);
+ unsigned short length, unsigned short initerr,
+ unsigned short axialerr, unsigned short diagerr,
+ unsigned short flags);
void gu2_wait_until_idle(void);
int gu2_test_blt_pending(void);
@@ -483,26 +505,30 @@ void gu22_set_source_transparency(unsigned long color, unsigned long mask);
void gu22_set_alpha_mode(int mode);
void gu22_set_alpha_value(unsigned char value);
void gu22_pattern_fill(unsigned long dstoffset, unsigned short width,
- unsigned short height);
+ unsigned short height);
void gu22_color_pattern_fill(unsigned long dstoffset, unsigned short width,
- unsigned short height, unsigned long *pattern);
+ unsigned short height, unsigned long *pattern);
void gu22_screen_to_screen_blt(unsigned long srcoffset,
- unsigned long dstoffset, unsigned short width, unsigned short height,
- int flags);
+ unsigned long dstoffset, unsigned short width,
+ unsigned short height, int flags);
void gu22_mono_expand_blt(unsigned long srcbase, unsigned short srcx,
- unsigned short srcy, unsigned long dstoffset, unsigned short width,
- unsigned short height, int byte_packed);
+ unsigned short srcy, unsigned long dstoffset,
+ unsigned short width, unsigned short height,
+ int byte_packed);
void gu22_color_bitmap_to_screen_blt(unsigned short srcx, unsigned short srcy,
- unsigned long dstoffset, unsigned short width, unsigned short height,
- unsigned char *data, short pitch);
+ unsigned long dstoffset,
+ unsigned short width,
+ unsigned short height, unsigned char *data,
+ short pitch);
void gu22_mono_bitmap_to_screen_blt(unsigned short srcx, unsigned short srcy,
- unsigned long dstoffset, unsigned short width, unsigned short height,
- unsigned char *data, short pitch);
+ unsigned long dstoffset,
+ unsigned short width, unsigned short height,
+ unsigned char *data, short pitch);
void gu22_text_blt(unsigned long dstoffset, unsigned short width,
- unsigned short height, unsigned char *data);
+ unsigned short height, unsigned char *data);
void gu22_bresenham_line(unsigned long dstoffset, unsigned short length,
- unsigned short initerr, unsigned short axialerr, unsigned short diagerr,
- unsigned short flags);
+ unsigned short initerr, unsigned short axialerr,
+ unsigned short diagerr, unsigned short flags);
void gu22_sync_to_vblank(void);
#endif
@@ -535,12 +561,12 @@ int cs5530_set_video_format(unsigned long format);
int cs5530_set_video_size(unsigned short width, unsigned short height);
int cs5530_set_video_offset(unsigned long offset);
int cs5530_set_video_window(short x, short y, unsigned short w,
- unsigned short h);
+ unsigned short h);
int cs5530_set_video_left_crop(unsigned short x);
int cs5530_set_video_scale(unsigned short srcw, unsigned short srch,
- unsigned short dstw, unsigned short dsth);
+ unsigned short dstw, unsigned short dsth);
int cs5530_set_video_color_key(unsigned long key, unsigned long mask,
- int bluescreen);
+ int bluescreen);
int cs5530_set_video_filter(int xfilter, int yfilter);
int cs5530_set_video_palette(unsigned long *palette);
int cs5530_set_video_palette_entry(unsigned long index, unsigned long color);
@@ -562,8 +588,7 @@ unsigned long cs5530_get_video_dst_size(void);
unsigned long cs5530_get_video_position(void);
unsigned long cs5530_get_video_color_key(void);
unsigned long cs5530_get_video_color_key_mask(void);
-int cs5530_get_video_palette_entry(unsigned long index,
- unsigned long *palette);
+int cs5530_get_video_palette_entry(unsigned long index, unsigned long *palette);
int cs5530_get_video_color_key_src(void);
int cs5530_get_video_filter(void);
unsigned long cs5530_read_crc(void);
@@ -594,21 +619,23 @@ int sc1200_set_video_format(unsigned long format);
int sc1200_set_video_size(unsigned short width, unsigned short height);
int sc1200_set_video_offset(unsigned long offset);
int sc1200_set_video_window(short x, short y, unsigned short w,
- unsigned short h);
+ unsigned short h);
int sc1200_set_video_left_crop(unsigned short x);
int sc1200_set_video_upscale(unsigned short srcw, unsigned short srch,
- unsigned short dstw, unsigned short dsth);
+ unsigned short dstw, unsigned short dsth);
int sc1200_set_video_scale(unsigned short srcw, unsigned short srch,
- unsigned short dstw, unsigned short dsth);
+ unsigned short dstw, unsigned short dsth);
int sc1200_set_video_downscale_config(unsigned short type, unsigned short m);
int sc1200_set_video_color_key(unsigned long key, unsigned long mask,
- int bluescreen);
+ int bluescreen);
int sc1200_set_video_filter(int xfilter, int yfilter);
int sc1200_set_video_palette(unsigned long *palette);
int sc1200_set_video_palette_bypass(int enable);
int sc1200_set_video_palette_entry(unsigned long index, unsigned long color);
int sc1200_set_video_downscale_coefficients(unsigned short coef1,
- unsigned short coef2, unsigned short coef3, unsigned short coef4);
+ unsigned short coef2,
+ unsigned short coef3,
+ unsigned short coef4);
int sc1200_set_video_downscale_enable(int enable);
int sc1200_set_video_source(VideoSourceType source);
int sc1200_set_vbi_source(VbiSourceType source);
@@ -621,13 +648,14 @@ int sc1200_set_top_line_in_odd(int enable);
int sc1200_set_genlock_delay(unsigned long delay);
int sc1200_set_genlock_enable(int flags);
int sc1200_set_video_cursor(unsigned long key, unsigned long mask,
- unsigned short select_color2, unsigned long color1, unsigned long color2);
+ unsigned short select_color2, unsigned long color1,
+ unsigned long color2);
int sc1200_set_video_request(short x, short y);
int sc1200_select_alpha_region(int region);
int sc1200_set_alpha_enable(int enable);
int sc1200_set_alpha_window(short x, short y,
- unsigned short width, unsigned short height);
+ unsigned short width, unsigned short height);
int sc1200_set_alpha_value(unsigned char alpha, char delta);
int sc1200_set_alpha_priority(int priority);
int sc1200_set_alpha_color(unsigned long color);
@@ -648,17 +676,17 @@ unsigned long sc1200_get_video_xclip(void);
unsigned long sc1200_get_video_offset(void);
unsigned long sc1200_get_video_upscale(void);
unsigned long sc1200_get_video_scale(void);
-int sc1200_get_video_downscale_config(unsigned short *type,
- unsigned short *m);
+int sc1200_get_video_downscale_config(unsigned short *type, unsigned short *m);
void sc1200_get_video_downscale_coefficients(unsigned short *coef1,
- unsigned short *coef2, unsigned short *coef3, unsigned short *coef4);
+ unsigned short *coef2,
+ unsigned short *coef3,
+ unsigned short *coef4);
void sc1200_get_video_downscale_enable(int *enable);
unsigned long sc1200_get_video_dst_size(void);
unsigned long sc1200_get_video_position(void);
unsigned long sc1200_get_video_color_key(void);
unsigned long sc1200_get_video_color_key_mask(void);
-int sc1200_get_video_palette_entry(unsigned long index,
- unsigned long *palette);
+int sc1200_get_video_palette_entry(unsigned long index, unsigned long *palette);
int sc1200_get_video_color_key_src(void);
int sc1200_get_video_filter(void);
int sc1200_get_video_request(short *x, short *y);
@@ -672,14 +700,14 @@ int sc1200_get_vertical_scaler_offset(char *offset);
unsigned long sc1200_get_genlock_delay(void);
int sc1200_get_genlock_enable(void);
int sc1200_get_video_cursor(unsigned long *key, unsigned long *mask,
- unsigned short *select_color2, unsigned long *color1,
- unsigned short *color2);
+ unsigned short *select_color2,
+ unsigned long *color1, unsigned short *color2);
unsigned long sc1200_read_crc(void);
int sc1200_get_macrovision_enable(void);
void sc1200_get_alpha_enable(int *enable);
void sc1200_get_alpha_size(unsigned short *x, unsigned short *y,
- unsigned short *width, unsigned short *height);
+ unsigned short *width, unsigned short *height);
void sc1200_get_alpha_value(unsigned char *alpha, char *delta);
void sc1200_get_alpha_priority(int *priority);
void sc1200_get_alpha_color(unsigned long *color);
@@ -709,38 +737,40 @@ int redcloud_set_video_size(unsigned short width, unsigned short height);
int redcloud_set_video_yuv_pitch(unsigned long ypitch, unsigned long uvpitch);
int redcloud_set_video_offset(unsigned long offset);
int redcloud_set_video_yuv_offsets(unsigned long yoffset,
- unsigned long uoffset, unsigned long voffset);
+ unsigned long uoffset,
+ unsigned long voffset);
int redcloud_set_video_window(short x, short y, unsigned short w,
- unsigned short h);
+ unsigned short h);
int redcloud_set_video_left_crop(unsigned short x);
int redcloud_set_video_scale(unsigned short srcw, unsigned short srch,
- unsigned short dstw, unsigned short dsth);
+ unsigned short dstw, unsigned short dsth);
int redcloud_set_video_vertical_downscale(unsigned short srch,
- unsigned short dsth);
+ unsigned short dsth);
void redcloud_set_video_vertical_downscale_enable(int enable);
-int redcloud_set_video_downscale_config(unsigned short type,
- unsigned short m);
+int redcloud_set_video_downscale_config(unsigned short type, unsigned short m);
int redcloud_set_video_color_key(unsigned long key, unsigned long mask,
- int bluescreen);
+ int bluescreen);
int redcloud_set_video_filter(int xfilter, int yfilter);
int redcloud_set_video_palette(unsigned long *palette);
int redcloud_set_graphics_palette(unsigned long *palette);
int redcloud_set_video_palette_bypass(int enable);
-int redcloud_set_video_palette_entry(unsigned long index,
- unsigned long color);
+int redcloud_set_video_palette_entry(unsigned long index, unsigned long color);
int redcloud_set_graphics_palette_entry(unsigned long index,
- unsigned long color);
+ unsigned long color);
int redcloud_set_video_downscale_coefficients(unsigned short coef1,
- unsigned short coef2, unsigned short coef3, unsigned short coef4);
+ unsigned short coef2,
+ unsigned short coef3,
+ unsigned short coef4);
int redcloud_set_video_downscale_enable(int enable);
int redcloud_set_video_cursor(unsigned long key, unsigned long mask,
- unsigned short select_color2, unsigned long color1, unsigned long color2);
+ unsigned short select_color2,
+ unsigned long color1, unsigned long color2);
int redcloud_set_video_cursor_enable(int enable);
int redcloud_select_alpha_region(int region);
int redcloud_set_alpha_enable(int enable);
int redcloud_set_alpha_window(short x, short y,
- unsigned short width, unsigned short height);
+ unsigned short width, unsigned short height);
int redcloud_set_alpha_value(unsigned char alpha, char delta);
int redcloud_set_alpha_priority(int priority);
int redcloud_set_alpha_color(unsigned long color);
@@ -757,36 +787,40 @@ unsigned long redcloud_get_video_line_size(void);
unsigned long redcloud_get_video_xclip(void);
unsigned long redcloud_get_video_offset(void);
void redcloud_get_video_yuv_offsets(unsigned long *yoffset,
- unsigned long *uoffset, unsigned long *voffset);
+ unsigned long *uoffset,
+ unsigned long *voffset);
void redcloud_get_video_yuv_pitch(unsigned long *ypitch,
- unsigned long *uvpitch);
+ unsigned long *uvpitch);
unsigned long redcloud_get_video_scale(void);
unsigned long redcloud_get_video_downscale_delta(void);
int redcloud_get_video_vertical_downscale_enable(void);
int redcloud_get_video_downscale_config(unsigned short *type,
- unsigned short *m);
+ unsigned short *m);
void redcloud_get_video_downscale_coefficients(unsigned short *coef1,
- unsigned short *coef2, unsigned short *coef3, unsigned short *coef4);
+ unsigned short *coef2,
+ unsigned short *coef3,
+ unsigned short *coef4);
void redcloud_get_video_downscale_enable(int *enable);
unsigned long redcloud_get_video_dst_size(void);
unsigned long redcloud_get_video_position(void);
unsigned long redcloud_get_video_color_key(void);
unsigned long redcloud_get_video_color_key_mask(void);
int redcloud_get_video_palette_entry(unsigned long index,
- unsigned long *palette);
+ unsigned long *palette);
int redcloud_get_video_color_key_src(void);
int redcloud_get_video_filter(void);
int redcloud_get_video_cursor(unsigned long *key, unsigned long *mask,
- unsigned short *select_color2, unsigned long *color1,
- unsigned short *color2);
+ unsigned short *select_color2,
+ unsigned long *color1, unsigned short *color2);
unsigned long redcloud_read_crc(void);
unsigned long redcloud_read_crc32(void);
unsigned long redcloud_read_window_crc(int source, unsigned short x,
- unsigned short y, unsigned short width, unsigned short height, int crc32);
+ unsigned short y, unsigned short width,
+ unsigned short height, int crc32);
void redcloud_get_alpha_enable(int *enable);
void redcloud_get_alpha_size(unsigned short *x, unsigned short *y,
- unsigned short *width, unsigned short *height);
+ unsigned short *width, unsigned short *height);
void redcloud_get_alpha_value(unsigned char *alpha, char *delta);
void redcloud_get_alpha_priority(int *priority);
void redcloud_get_alpha_color(unsigned long *color);
@@ -853,12 +887,11 @@ int saa7114_set_decoder_contrast(unsigned char contrast);
int saa7114_set_decoder_hue(char hue);
int saa7114_set_decoder_saturation(unsigned char saturation);
int saa7114_set_decoder_input_offset(unsigned short x, unsigned short y);
-int saa7114_set_decoder_input_size(unsigned short width,
- unsigned short height);
+int saa7114_set_decoder_input_size(unsigned short width, unsigned short height);
int saa7114_set_decoder_output_size(unsigned short width,
- unsigned short height);
+ unsigned short height);
int saa7114_set_decoder_scale(unsigned short srcw, unsigned short srch,
- unsigned short dstw, unsigned short dsth);
+ unsigned short dstw, unsigned short dsth);
int saa7114_set_decoder_vbi_format(int start, int end, int format);
int saa7114_set_decoder_vbi_enable(int enable);
int saa7114_set_decoder_vbi_upscale(void);
@@ -885,9 +918,11 @@ int saa7114_get_decoder_vbi_format(int line);
#if GFX_I2C_DYNAMIC
int acc_i2c_reset(unsigned char busnum, short adr, char freq);
int acc_i2c_write(unsigned char busnum, unsigned char chipadr,
- unsigned char subadr, unsigned char bytes, unsigned char *data);
+ unsigned char subadr, unsigned char bytes,
+ unsigned char *data);
int acc_i2c_read(unsigned char busnum, unsigned char chipadr,
- unsigned char subadr, unsigned char bytes, unsigned char *data);
+ unsigned char subadr, unsigned char bytes,
+ unsigned char *data);
int acc_i2c_select_gpio(int clock, int data);
int acc_i2c_init(void);
void acc_i2c_cleanup(void);
@@ -901,9 +936,11 @@ void acc_i2c_cleanup(void);
#if GFX_I2C_DYNAMIC
int gpio_i2c_reset(unsigned char busnum, short adr, char freq);
int gpio_i2c_write(unsigned char busnum, unsigned char chipadr,
- unsigned char subadr, unsigned char bytes, unsigned char *data);
+ unsigned char subadr, unsigned char bytes,
+ unsigned char *data);
int gpio_i2c_read(unsigned char busnum, unsigned char chipadr,
- unsigned char subadr, unsigned char bytes, unsigned char *data);
+ unsigned char subadr, unsigned char bytes,
+ unsigned char *data);
int gpio_i2c_select_gpio(int clock, int data);
int gpio_i2c_init(void);
void gpio_i2c_cleanup(void);
@@ -935,9 +972,11 @@ int sc1200_get_tv_output(void);
int sc1200_get_tv_mode_count(TVStandardType format);
int sc1200_get_tv_display_mode(int *width, int *height, int *bpp, int *hz);
int sc1200_get_tv_display_mode_frequency(unsigned short width,
- unsigned short height, TVStandardType format, int *frequency);
+ unsigned short height,
+ TVStandardType format, int *frequency);
int sc1200_is_tv_display_mode_supported(unsigned short width,
- unsigned short height, TVStandardType format);
+ unsigned short height,
+ TVStandardType format);
unsigned char cc_add_parity_bit(unsigned char data);
#endif