[mythtv-commits] mythtv commit: r27340 - in trunk/mythtv/libs by markk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Thu Nov 25 00:47:07 UTC 2010


      Author: markk
        Date: 2010-11-25 00:47:07 +0000 (Thu, 25 Nov 2010)
New Revision: 27340
   Changeset: http://svn.mythtv.org/trac/changeset/27340

Log:

Add a new VideoColourSpace class.

This primarily moves the colourspace/picture attribute settings and
database handling out of the VideoOutput classes and moves much of the
lower level picture attribute handling out of MythRenderOpenGL and
MythRenderVDPAU.

- VideoColourSpace calculates its own YUV to RGB conversion matrix that
will be used by VDPAU and OpenGL (unfortunately it doesn't look like
DXVA2 supports a custom conversion matrix).
- the matrix calculation has been validated against the VDPAU version
but also handles studio levels correctly.
- In the unlikely event anyone was using VDPAU picture controls with
studio levels and a hue adjustment, you'll need to reset your hue as
there was a phase error in the old manual calculation.
- XVideo picture settings should be unchanged.
- picture controls are now permanently enabled for VDPAU - and will be
for everything once I remove the 'Enable picture controls' setting.
Playback will just offer whatever adjustments are available.
- picture settings for OpenGL video playback are temporarily disabled as
the fragment programs need changing - but once fixed will offer the full
range of adjustments (brightness, contrast, hue, colour, studio and
colour standard)

I'll follow this up with some work on automatic detection and setting of
the source colour standard and allow the use of the BT 709 colourspace
with XVideo when available (supported by NVidia at least).


Added:

   trunk/mythtv/libs/libmythtv/videocolourspace.cpp
   trunk/mythtv/libs/libmythtv/videocolourspace.h

Modified:

   trunk/mythtv/libs/libmythtv/libmythtv.pro
   trunk/mythtv/libs/libmythtv/videoout_directfb.cpp
   trunk/mythtv/libs/libmythtv/videoout_opengl.cpp
   trunk/mythtv/libs/libmythtv/videoout_vdpau.cpp
   trunk/mythtv/libs/libmythtv/videoout_vdpau.h
   trunk/mythtv/libs/libmythtv/videoout_xv.cpp
   trunk/mythtv/libs/libmythtv/videoout_xv.h
   trunk/mythtv/libs/libmythtv/videooutbase.cpp
   trunk/mythtv/libs/libmythtv/videooutbase.h
   trunk/mythtv/libs/libmythui/mythrender_opengl.cpp
   trunk/mythtv/libs/libmythui/mythrender_opengl.h
   trunk/mythtv/libs/libmythui/mythrender_vdpau.cpp
   trunk/mythtv/libs/libmythui/mythrender_vdpau.h




More information about the mythtv-commits mailing list