aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-03 22:29:49 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-03 22:29:49 +0000
commitc7b4ae2a593c37bfd080b5d7953cb35e0ddea74e (patch)
tree26cd9dd3f4ddc795776c77db72f6bfb733639b42
parent1b9a0504abe1733b3fadb7d5d6bddfeb881667f6 (diff)
use offsets/pitches for OSD too
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6296 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_xv.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 3922ad922e..34ce3115a6 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -101,15 +101,21 @@ static uint32_t dwidth,dheight;
static void (*draw_alpha_fnc)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride);
static void draw_alpha_yv12(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){
- vo_draw_alpha_yv12(w,h,src,srca,stride,xvimage[current_buf]->data+image_width*y0+x0,image_width);
+ vo_draw_alpha_yv12(w,h,src,srca,stride,
+ xvimage[current_buf]->data+xvimage[current_buf]->offsets[0]+
+ xvimage[current_buf]->pitches[0]*y0+x0,xvimage[current_buf]->pitches[0]);
}
static void draw_alpha_yuy2(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){
- vo_draw_alpha_yuy2(w,h,src,srca,stride,xvimage[current_buf]->data+2*(image_width*y0+x0),2*image_width);
+ vo_draw_alpha_yuy2(w,h,src,srca,stride,
+ xvimage[current_buf]->data+xvimage[current_buf]->offsets[0]+
+ xvimage[current_buf]->pitches[0]*y0+2*x0,xvimage[current_buf]->pitches[0]);
}
static void draw_alpha_uyvy(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){
- vo_draw_alpha_yuy2(w,h,src,srca,stride,xvimage[current_buf]->data+2*(image_width*y0+x0)+1,2*image_width);
+ vo_draw_alpha_yuy2(w,h,src,srca,stride,
+ xvimage[current_buf]->data+xvimage[current_buf]->offsets[0]+
+ xvimage[current_buf]->pitches[0]*y0+2*x0+1,xvimage[current_buf]->pitches[0]);
}
static void draw_alpha_null(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){