Re: VDR - xine - CoreAVC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 11, 2008 8:09 PM, Reinhard Nissl <rnissl@xxxxxx> wrote:

> Anyway, does the decoder tell you the aspect ratio anywhere?
>
> The aspect ratio must be passed to get_frame(). When the frame
> has the correct aspect ratio set, xine-lib will take care to
> setup the video scaler to stretch for example the image to 136 %
> horizontally.

The coreavc patch for xine has this code in it: -

+        if(!img) {
+        img = this->stream->video_out->get_frame (this->stream->video_out,
+              this->bih->biWidth,
+              this->bih->biHeight,
+              this->ratio,
+              IMGFMT_YUY2,
+              field);
+        }

with      this->ratio = (double)this->bih->biWidth/(double)this->bih->biHeight;

This is all within xine's src/libw32dll/w32codec.c which is a
different area to which I was modifying before
(src/demuxers/demux_mpeg_pes.c) where the codec is initialised.

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux