diff options
author | Thomas Reufer <thomas@reufer.ch> | 2014-01-07 16:32:58 +0100 |
---|---|---|
committer | Thomas Reufer <thomas@reufer.ch> | 2014-01-07 16:32:58 +0100 |
commit | dd9fbf38610934623869728d1b00904d15783480 (patch) | |
tree | 789059da0b20f3c7d9711b3dd638a770d2a6cfb2 /types.h | |
parent | 9512123c95324f1679d748993662bd9f08f6f763 (diff) | |
download | vdr-plugin-rpihddevice-0.0.5.tar.gz vdr-plugin-rpihddevice-0.0.5.tar.bz2 |
2013-11-17: Version 0.0.50.0.5
-------------------------
- new:
- improved audio format detection (taken from softhddevice)
- separate thread for audio decoding
- fixed:
- jump forward/backward in recordings
- several minor bugfixes
- missing:
- still picture
- trick modes
- deinterlacer
- video format/output options
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 67 |
1 files changed, 67 insertions, 0 deletions
@@ -0,0 +1,67 @@ +/* + * See the README file for copyright information and how to reach the author. + * + * $Id$ + */ + +#ifndef TYPES_H +#define TYPES_H + +class cAudioCodec +{ +public: + + enum eCodec { + ePCM, + eMPG, + eAC3, + eEAC3, + eAAC, + eDTS, + eNumCodecs, + eInvalid + }; + + static const char* Str(eCodec codec) { + return (codec == ePCM) ? "PCM" : + (codec == eMPG) ? "MPEG" : + (codec == eAC3) ? "AC3" : + (codec == eEAC3) ? "E-AC3" : + (codec == eAAC) ? "AAC" : + (codec == eDTS) ? "DTS" : "unknown"; + } +}; + +class cVideoCodec +{ +public: + + enum eCodec { + eMPEG2, + eH264, + eNumCodecs, + eInvalid + }; + + static const char* Str(eCodec codec) { + return (codec == eMPEG2) ? "MPEG2" : + (codec == eH264) ? "H264" : "unknown"; + } +}; + +class cAudioPort +{ +public: + + enum ePort { + eLocal, + eHDMI + }; + + static const char* Str(ePort port) { + return (port == eLocal) ? "local" : + (port == eHDMI) ? "HDMI" : "unknown"; + } +}; + +#endif |