Ticket #10044: 0001-Add-DVB-3DTV-signalling-as-a-variant-of-HDTV.patch

File 0001-Add-DVB-3DTV-signalling-as-a-variant-of-HDTV.patch, 2.4 KB (added by dekarl@…, 13 years ago)

four new component types

  • mythtv/libs/libmyth/programtypes.h

    From eb091a67baac7a145795af5ebfea8489a0d18619 Mon Sep 17 00:00:00 2001
    From: Karl Dietz <dekarl@users.sourceforge.net>
    Date: Sun, 18 Sep 2011 08:22:59 +0200
    Subject: [PATCH 1/4] Add DVB-3DTV signalling as a variant of HDTV.
    
    Parse the frame compatible plano-stereoscopic 3DTV video format
    definitions from the component descriptor.
    This adds the HDTV and WIDESCREEN flags for 3DTV programmes.
    The video can be signalled as half (usually horizontal) resolution
    2D HDTV signal for backwards compatibility. Having never seen such
    programmes in the wild this patch is coded to the spec.
    ---
     mythtv/libs/libmyth/programtypes.h          |    5 +++--
     mythtv/libs/libmythtv/mpeg/dvbdescriptors.h |    3 +++
     2 files changed, 6 insertions(+), 2 deletions(-)
    
    diff --git a/mythtv/libs/libmyth/programtypes.h b/mythtv/libs/libmyth/programtypes.h
    index ff0c2c0..8fe92e4 100644
    a b typedef enum AudioProps { 
    164164    AUD_VISUALIMPAIR  = 0x20,
    165165} AudioProperty; // has 6 bits in ProgramInfo::properties
    166166
    167 /// if VideoProps changes, the audioprop column in program and
     167/// if VideoProps changes, the videoprop column in program and
    168168/// recordedprogram has to changed accordingly
    169169typedef enum VideoProps {
    170170    // For backwards compatibility do not change 0 or 1
    typedef enum VideoProps { 
    174174    VID_AVC           = 0x04,
    175175    VID_720           = 0x08,
    176176    VID_1080          = 0x10,
     177    VID_3DTV          = 0x20,
    177178} VideoProperty; // has 5 bits in ProgramInfo::properties
    178179
    179 /// if SubtitleTypes changes, the audioprop column in program and
     180/// if SubtitleTypes changes, the subtitletypes column in program and
    180181/// recordedprogram has to changed accordingly
    181182typedef enum SubtitleTypes {
    182183    // For backwards compatibility do not change 0 or 1
  • mythtv/libs/libmythtv/mpeg/dvbdescriptors.h

    diff --git a/mythtv/libs/libmythtv/mpeg/dvbdescriptors.h b/mythtv/libs/libmythtv/mpeg/dvbdescriptors.h
    index 5a8130a..918d09c 100644
    a b class ComponentDescriptor : public MPEGDescriptor 
    404404            case 0x0B: case 0x0C:
    405405            case 0x0F: case 0x10:
    406406                return VID_WIDESCREEN | VID_HDTV;
     407            case 0x80: case 0x81:
     408            case 0x82: case 0x83:
     409                return VID_WIDESCREEN | VID_HDTV | VID_3DTV;
    407410            default:
    408411                return VID_UNKNOWN;
    409412        }