Re: [vdr] vdr-xine - 4:3 zoom problem with h264 SD channels

2009-09-30 Thread Goga777
Приветствую, Reinhard


thanks

with your patch now everything is ok


> I had a look at the above channel. xine reports a ratio of 13636.
> 
> But the current zoom code in input_vdr.c doesn't consider this to
> be 4:3. Please replace the function adjust_zoom() by the
> following code:
> 

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


Re: [vdr] vdr-xine - 4:3 zoom problem with h264 SD channels

2009-09-28 Thread Reinhard Nissl
Hi,

Goga777 schrieb:

> on Astra 19,2E ther's several h264 SD 576i channels with aspect ratio above 
> 4:3 (or 15:11).

[snip]

> TV 
> Polonia;TVP:10861:hC56M5O35S1:S19.2E:22000:516=27:0;690=pol,691=pol:695:0:7104:1:1059:0

[snip]

> on  vdr-xine 093  the "4:3 image zoom" doesn't work at all with such channels
> 
> only "16:9 image zoom" works with them, but it's not correctly
>
> 
> could someone to test it please

I had a look at the above channel. xine reports a ratio of 13636.

But the current zoom code in input_vdr.c doesn't consider this to
be 4:3. Please replace the function adjust_zoom() by the
following code:

static void adjust_zoom(vdr_input_plugin_t *this)
{
  pthread_mutex_lock(&this->adjust_zoom_lock);

  if (this->image4_3_zoom_x && this->image4_3_zoom_y
&& this->image16_9_zoom_x && this->image16_9_zoom_y)
  {
int ratio = (int)(1 * this->frame_size.r + 0.5);
int matches4_3 = abs(ratio - 1);
int matches16_9 = abs(ratio - 17778);

/* fprintf(stderr, "ratio: %d\n", ratio); */
if (matches4_3 < matches16_9)
{
  xine_set_param(this->stream, XINE_PARAM_VO_ZOOM_X,
this->image4_3_zoom_x);
  xine_set_param(this->stream, XINE_PARAM_VO_ZOOM_Y,
this->image4_3_zoom_y);
}
else
{
  xine_set_param(this->stream, XINE_PARAM_VO_ZOOM_X,
this->image16_9_zoom_x);
  xine_set_param(this->stream, XINE_PARAM_VO_ZOOM_Y,
this->image16_9_zoom_y);
}
  }

  pthread_mutex_unlock(&this->adjust_zoom_lock);
}

Bye.
-- 
Dipl.-Inform. (FH) Reinhard Nissl
mailto:rni...@gmx.de

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


[vdr] vdr-xine - 4:3 zoom problem with h264 SD channels

2009-09-27 Thread Goga777
Hi

on Astra 19,2E ther's several h264 SD 576i channels with aspect ratio above 4:3 
(or 15:11).

TVP1;TVP:10861:hC56M5O35S1:S19.2E:22000:512=27:0;650=pol,651=pol:655:0:7100:1:1059:0
TVP2;TVP:10861:hC56M5O35S1:S19.2E:22000:513=27:0;660=pol,661=pol:665:0:7101:1:1059:0
TVP INFO;TVP:10861:hC56M5O35S1:S19.2E:22000:514=27:0;670=pol:0:0:7102:1:1059:0
TVP 
Sport;TVP:10861:hC56M5O35S1:S19.2E:22000:515=27:0;680=pol,681=pol:0:0:7103:1:1059:0
TV 
Polonia;TVP:10861:hC56M5O35S1:S19.2E:22000:516=27:0;690=pol,691=pol:695:0:7104:1:1059:0
TVP 
Historia;TVP:10861:hC56M5O35S1:S19.2E:22000:517=27:0;700=pol:0:0:7105:1:1059:0
TVP 
Kultura;TVP:10861:hC56M5O35S1:S19.2E:22000:518=27:0;710=pol:715:0:7106:1:1059:0
TVP 
HD;TVP:10861:hC56M5O35S1:S19.2E:22000:532=27:0;850=pol,851=pol,852=eng:0:0:7120:1:1059:0
TV PULS;TVP:10861:hC56M5O35S1:S19.2E:22000:521=27:0;740=pol:0:0:7109:1:1059:0
PR JEDYNKA;TVP:10861:hC56M5O35S1:S19.2E:22000:0:0;631=pol:0:0:7201:1:1059:0
PR DWOJKA;TVP:10861:hC56M5O35S1:S19.2E:22000:0:0;632=pol:0:0:7202:1:1059:0
PR TROJKA;TVP:10861:hC56M5O35S1:S19.2E:22000:0:0;633=pol:0:0:7203:1:1059:0
PR EURO;TVP:10861:hC56M5O35S1:S19.2E:22000:0:0;634=pol:0:0:7204:1:1059:0
PR DLA 
ZAGRANICY;TVP:10861:hC56M5O35S1:S19.2E:22000:0:0;635=pol:0:0:7205:1:1059:0
OBRADY 
PARLAMENTU;TVP:10861:hC56M5O35S1:S19.2E:22000:0:0;636=pol:0:0:7206:1:1059:0

on  vdr-xine 093  the "4:3 image zoom" doesn't work at all with such channels

only "16:9 image zoom" works with them, but it's not correctly

could someone to test it please

thanks

Goga






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