Hi,

Morfsta schrieb:

> 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;

Looks not bad, but ratio is wrong. For your sample 1440 x 1080 it
will yield 1.3333 and not 1.8181 (or 1.7778). Therefore you get
those black bars left and right to the image.

In case the decoder doesn't provide the image aspect ratio (and
it looks like that as you had to provide the image size too),
you'll have to extract it from the H.264 data yourself (as you
did already for the image size).

Bye.
-- 
Dipl.-Inform. (FH) Reinhard Nissl
mailto:[EMAIL PROTECTED]

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

Reply via email to