[MPlayer-dev-eng] patch to add geometry support to vo_fbdev.c

Joachim Steiger roh at hyte.de
Wed Dec 1 04:01:41 CET 2004


hi there.
after finding out this feature was unsupported i took a quick look at
the source and found out it wasn't that complicated to add.
its propably somehow buggy if you enter extreme values, but with sane
ones it works fine for me.

here the patch in unified diff format

--snip--

--- vo_fbdev.c_old      2004-10-20 20:57:51.000000000 +0200
+++ vo_fbdev.c  2004-10-21 04:07:01.000000000 +0200
@@ -1065,8 +1065,12 @@
 {
        uint8_t *d;
        uint8_t *s;
+        int geom_xpos=0,geom_ypos=0,backval,a_=0,b_=0,c_=0,d_=0;
-       d = center + (fb_line_len * y + x) * fb_pixel_size;
+        backval = geometry(&geom_xpos,&geom_ypos, &a_, &b_, c_, d_);
+        mp_msg(MSGT_VO,MSGL_V,"xpos=%i ypos=%i fb_line_len=%i fb_pixel_size=%i backval=%i\n", \
+            geom_xpos,geom_ypos,fb_line_len,fb_pixel_size,backval);
+       d = ((geom_xpos*fb_pixel_size)+(geom_ypos*fb_line_len)) + center + (fb_line_len * y + x) * fb_pixel_size;

        s = src[0];
        while (h) {

--/snip--

i think someone should look this over, since i can imagine some other
people would find the feature usefull too

regards

  roh




More information about the MPlayer-dev-eng mailing list