[mythtv-commits] Ticket #2649: Opengl video renderer

MythTV mythtv at cvs.mythtv.org
Wed Nov 1 23:15:13 UTC 2006


#2649: Opengl video renderer
-----------------------------------------+----------------------------------
 Reporter:  mark_kendall at btinternet.com  |       Owner:  ijr    
     Type:  enhancement                  |      Status:  new    
 Priority:  minor                        |   Milestone:  unknown
Component:  mythtv                       |     Version:  head   
 Severity:  medium                       |  
-----------------------------------------+----------------------------------
 Video renderer using opengl for the mythtv-vid branch. Highlighs/lowlights
 include:-

 * Works with XGL
  - tested with XGL 7.0.0, Beryl 0.1.1 on Ubuntu 6.0.6 (Dapper).
  - but large(ish) performance penalty under xgl.
  - some window issues

 * Hardware yuv to rgb conversion
  - based on xine/glitz fragment program
  - uses rectangular textures when available
  - added colour adjustment as well (enable xv colour controls to use) -
 brightness, contrast, colour only (no hue).

 * Vertical sync
  - takes care of itself if opengl sync to vblank is enabled (nvidia-
 settings) and GPU can keep up
  - 'normal' opengl vsync will fail silently
  - better sync (less tearing) at 1080i when using buggy nvidia drivers
 (i.e. don't need to disable sync to vblank for xv)

 * PiP
  - hardware scaling of pip
  - pip sizing should be accurate for XrandR/aspect ratios etc
  - but pip is currently rendered over osd

 * XRandR
  - appears to be working pretty well (but see ticket:2648)

 * Performance
  - worse than xvideo but seems to be on par with mplayer/xine using opengl
  - FX5200 seems to cope with main video and pip at SD resolutions

 * EPG
  - preview EPG not currently supported

 * To do
  - if RGB OSD surfaces become available, hardware rendering of OSD
  - scaling of video resize for interactive tv - easy; but dependant on OSD
 above.
  - support for non YV12 picture formats (e.g. YUV422p, RGB24 - should be
 easy enough)
  - preview EPG if using opengl painter in mythui?
  - use QGLWidget for portability?
  - bobdeint - I've tried more approaches than I can remember. Doubling the
 refresh rate is easy enough but impacts so badly on texture sampling that
 you lose the fields. You end up with nothing more than a form of linear
 blend.

 You'll need to tweak your display profiles and use --override-setting
 UseOpenglVideo=1 (probably a short term hack) to get it working.

 Regards

 Mark

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/2649>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list