summaryrefslogtreecommitdiffstats
path: root/libvo/vo_aa.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_aa.c')
-rw-r--r--libvo/vo_aa.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c
index d8148793a1..5e9dfbae10 100644
--- a/libvo/vo_aa.c
+++ b/libvo/vo_aa.c
@@ -100,7 +100,7 @@ static unsigned char vo_osd_text[64];
static void
resize(void){
- /*
+ /*
* this function is called by aa lib if windows resizes
* further during init, because here we have to calculate
* a little bit
@@ -120,7 +120,7 @@ resize(void){
screen_h = image_height * aa_scrheight(c) / aa_imgheight(c);
screen_x = (aa_scrwidth(c) - screen_w) / 2;
screen_y = (aa_scrheight(c) - screen_h) / 2;
-
+
if(sws) sws_freeContext(sws);
sws = sws_getContextFromCmdLine(src_width,src_height,image_format,
image_width,image_height,IMGFMT_Y8);
@@ -172,7 +172,7 @@ osdpercent(int duration, int deko, int min, int max, int val, const char * desc,
int where;
int i;
-
+
step=(float)aa_scrwidth(c) /(float)(max-min);
where=(val-min)*step;
osdmessage(duration,deko,"%s: %i%s",desc, val, unit);
@@ -186,13 +186,13 @@ osdpercent(int duration, int deko, int min, int max, int val, const char * desc,
if (where!=(aa_scrwidth(c)-1) ) posbar[aa_scrwidth(c)-1]='|';
posbar[aa_scrwidth(c)]='\0';
-
+
}
static void
printosdtext(void)
{
- /*
+ /*
* places the mplayer status osd
*/
if (vo_osd_text[0] != 0) {
@@ -210,7 +210,7 @@ printosdtext(void)
memset(c->attrbuffer + len,0,osd_text_length - len);
}
osd_text_length = len;
-
+
}
}
@@ -223,7 +223,7 @@ printosdprogbar(void){
}
static int
config(uint32_t width, uint32_t height, uint32_t d_width,
- uint32_t d_height, uint32_t flags, char *title,
+ uint32_t d_height, uint32_t flags, char *title,
uint32_t format) {
/*
* main init
@@ -275,7 +275,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width,
}
/* say hello */
- osdmessage(5, 1, "Welcome to ASCII ART MPlayer");
+ osdmessage(5, 1, "Welcome to ASCII ART MPlayer");
mp_msg(MSGT_VO,MSGL_V,"VO: [aa] screendriver: %s\n", c->driver->name);
mp_msg(MSGT_VO,MSGL_V,"VO: [aa] keyboarddriver: %s\n", c->kbddriver->name);
@@ -307,7 +307,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width,
return 0;
}
-static int
+static int
query_format(uint32_t format) {
/*
* ...are we able to... ?
@@ -332,7 +332,7 @@ query_format(uint32_t format) {
return 0;
}
-static int
+static int
draw_frame(uint8_t *src[]) {
int stride[MP_MAX_PLANES] = {0};
@@ -352,7 +352,7 @@ draw_frame(uint8_t *src[]) {
sws_scale_ordered(sws,src,stride,0,src_height,image,image_stride);
- /* Now 'ASCIInate' the image */
+ /* Now 'ASCIInate' the image */
if (fast)
aa_fastrender(c, screen_x, screen_y, screen_w + screen_x, screen_h + screen_y );
else
@@ -361,8 +361,8 @@ draw_frame(uint8_t *src[]) {
return 0;
}
-static int
-draw_slice(uint8_t *src[], int stride[],
+static int
+draw_slice(uint8_t *src[], int stride[],
int w, int h, int x, int y) {
int dx1 = screen_x + (x * screen_w / src_width);
@@ -372,17 +372,17 @@ draw_slice(uint8_t *src[], int stride[],
sws_scale_ordered(sws,src,stride,y,h,image,image_stride);
- /* Now 'ASCIInate' the image */
+ /* Now 'ASCIInate' the image */
if (fast)
aa_fastrender(c, dx1, dy1, dx2, dy2 );
else
aa_render(c, p,dx1, dy1, dx2, dy2 );
-
+
return 0;
}
-static void
+static void
flip_page(void) {
/* do we have to put *our* (messages, progbar) osd to aa's txtbuf ? */
@@ -415,9 +415,9 @@ flip_page(void) {
aa_flush(c);
}
-static void
+static void
check_events(void) {
- /*
+ /*
* any events?
* called by show_image and mplayer
*/
@@ -494,7 +494,7 @@ check_events(void) {
}
}
-static void
+static void
uninit(void) {
/*
* THE END
@@ -674,15 +674,15 @@ static int preinit(const char *arg)
FILE * fp;
char fname[12];
- if(arg)
+ if(arg)
{
if (parse_suboptions(arg) != 0)
return ENOSYS;
}
/* initializing of aalib */
-
- hidis=aa_getfirst(&aa_displayrecommended);
+
+ hidis=aa_getfirst(&aa_displayrecommended);
if ( hidis==NULL ){
/* check /dev/vcsa<vt> */
/* check only, if no driver is explicit set */
@@ -706,7 +706,7 @@ static int preinit(const char *arg)
if (c == NULL) {
mp_msg(MSGT_VO,MSGL_ERR,"Cannot initialize aalib\n");
return VO_ERROR;
- }
+ }
if (!aa_autoinitkbd(c,0)) {
mp_msg(MSGT_VO,MSGL_ERR,"Cannot initialize keyboard\n");
aa_close(c);