Mercurial > mplayer.hg
changeset 25861:5442946cade2
Fix illegal identifiers, names starting with __ are reserved for the system.
author | diego |
---|---|
date | Sun, 27 Jan 2008 18:01:19 +0000 |
parents | 110952f312cc |
children | 4be9faee0360 |
files | libvo/vo_vesa.c |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_vesa.c Sun Jan 27 17:40:38 2008 +0000 +++ b/libvo/vo_vesa.c Sun Jan 27 18:01:19 2008 +0000 @@ -170,7 +170,7 @@ #define VALID_WIN_FRAME(offset) (offset >= win.low && offset < win.high) #define VIDEO_PTR(offset) (win.ptr + offset - win.low) -static inline void __vbeSwitchBank(unsigned long offset) +static inline void vbeSwitchBank(unsigned long offset) { unsigned long gran; unsigned new_offset; @@ -190,7 +190,7 @@ win.high = win.low + video_mode_info.WinSize*1024; } -static void __vbeSetPixel(int x, int y, int r, int g, int b) +static void vbeSetPixel(int x, int y, int r, int g, int b) { int x_res = video_mode_info.XResolution; int y_res = video_mode_info.YResolution; @@ -208,7 +208,7 @@ b >>= 8 - video_mode_info.BlueMaskSize; color = (r << shift_r) | (g << shift_g) | (b << shift_b); offset = y * bpl + (x * pixel_size); - if(!VALID_WIN_FRAME(offset)) __vbeSwitchBank(offset); + if(!VALID_WIN_FRAME(offset)) vbeSwitchBank(offset); memcpy(VIDEO_PTR(offset), &color, pixel_size); } @@ -216,17 +216,17 @@ Copies part of frame to video memory. Data should be in the same format as video memory. */ -static void __vbeCopyBlockFast(unsigned long offset,uint8_t *image,unsigned long size) +static void vbeCopyBlockFast(unsigned long offset,uint8_t *image,unsigned long size) { fast_memcpy(&win.ptr[offset],image,size); } -static void __vbeCopyBlock(unsigned long offset,uint8_t *image,unsigned long size) +static void vbeCopyBlock(unsigned long offset,uint8_t *image,unsigned long size) { unsigned long delta,src_idx = 0; while(size) { - if(!VALID_WIN_FRAME(offset)) __vbeSwitchBank(offset); + if(!VALID_WIN_FRAME(offset)) vbeSwitchBank(offset); delta = min(size,win.high - offset); fast_memcpy(VIDEO_PTR(offset),&image[src_idx],delta); src_idx += delta; @@ -244,7 +244,7 @@ #define SCREEN_LINE_SIZE(pixel_size) (video_mode_info.XResolution*(pixel_size) ) #define IMAGE_LINE_SIZE(pixel_size) (dstW*(pixel_size)) -static void __vbeCopyData(uint8_t *image) +static void vbeCopyData(uint8_t *image) { unsigned long i,j,image_offset,offset; unsigned pixel_size,image_line_size,screen_line_size,x_shift; @@ -375,7 +375,7 @@ mp_msg(MSGT_VO,MSGL_DBG3, "vo_vesa: flip_page was called\n"); if(flip_trigger) { - if(!HAS_DGA()) __vbeCopyData(dga_buffer); + if(!HAS_DGA()) vbeCopyData(dga_buffer); flip_trigger = 0; } if(vo_doublebuffering && multi_size > 1) @@ -491,7 +491,7 @@ g = y * 255 / y_res; b = 255 - y * 255 / y_res; } - __vbeSetPixel(x, y, r, g, b); + vbeSetPixel(x, y, r, g, b); } } } @@ -504,7 +504,7 @@ for (y = 0; y < y_res; ++y) for (x = 0; x < x_res; ++x) - __vbeSetPixel(x, y, 0, 0, 0); + vbeSetPixel(x, y, 0, 0, 0); } static char *model2str(unsigned char type) @@ -895,11 +895,11 @@ if(HAS_DGA()) { dga_buffer = win.ptr; /* Trickly ;) */ - cpy_blk_fnc = __vbeCopyBlockFast; + cpy_blk_fnc = vbeCopyBlockFast; } else { - cpy_blk_fnc = __vbeCopyBlock; + cpy_blk_fnc = vbeCopyBlock; if(!lvo_name #ifdef CONFIG_VIDIX && !vidix_name