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 { |
164 | 164 | AUD_VISUALIMPAIR = 0x20, |
165 | 165 | } AudioProperty; // has 6 bits in ProgramInfo::properties |
166 | 166 | |
167 | | /// if VideoProps changes, the audioprop column in program and |
| 167 | /// if VideoProps changes, the videoprop column in program and |
168 | 168 | /// recordedprogram has to changed accordingly |
169 | 169 | typedef enum VideoProps { |
170 | 170 | // For backwards compatibility do not change 0 or 1 |
… |
… |
typedef enum VideoProps { |
174 | 174 | VID_AVC = 0x04, |
175 | 175 | VID_720 = 0x08, |
176 | 176 | VID_1080 = 0x10, |
| 177 | VID_3DTV = 0x20, |
177 | 178 | } VideoProperty; // has 5 bits in ProgramInfo::properties |
178 | 179 | |
179 | | /// if SubtitleTypes changes, the audioprop column in program and |
| 180 | /// if SubtitleTypes changes, the subtitletypes column in program and |
180 | 181 | /// recordedprogram has to changed accordingly |
181 | 182 | typedef enum SubtitleTypes { |
182 | 183 | // For backwards compatibility do not change 0 or 1 |
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 |
404 | 404 | case 0x0B: case 0x0C: |
405 | 405 | case 0x0F: case 0x10: |
406 | 406 | return VID_WIDESCREEN | VID_HDTV; |
| 407 | case 0x80: case 0x81: |
| 408 | case 0x82: case 0x83: |
| 409 | return VID_WIDESCREEN | VID_HDTV | VID_3DTV; |
407 | 410 | default: |
408 | 411 | return VID_UNKNOWN; |
409 | 412 | } |