vdr  1.7.27
setup.h
Go to the documentation of this file.
00001 /*
00002  * setup.h: Setup for the DVB HD Full Featured On Screen Display
00003  *
00004  * See the README file for copyright information and how to reach the author.
00005  *
00006  * $Id: setup.h 1.12 2012/02/08 15:14:56 kls Exp $
00007  */
00008 
00009 #ifndef _HDFF_SETUP_H_
00010 #define _HDFF_SETUP_H_
00011 
00012 #include <vdr/plugin.h>
00013 #include "hdffcmd.h"
00014 
00015 struct cHdffSetup
00016 {
00017     cHdffSetup(void);
00018     bool SetupParse(const char * Name, const char * Value);
00019     void GetOsdSize(int &Width, int &Height, double &PixelAspect);
00020     HdffVideoMode_t GetVideoMode(void);
00021     void SetNextVideoConversion(void);
00022     const char * GetVideoConversionString(void);
00023 
00024     int Resolution;
00025     int VideoModeAdaption;
00026     int TvFormat;
00027     int VideoConversion;
00028     int AnalogueVideo;
00029     int AudioDelay;
00030     int AudioDownmix;
00031     int OsdSize;
00032     int CecEnabled;
00033     int CecTvOn;
00034     int CecTvOff;
00035     int RemoteProtocol;
00036     int RemoteAddress;
00037 
00038     int HighLevelOsd;
00039     int TrueColorOsd;
00040 
00041     int HideMainMenu;
00042 };
00043 
00044 extern cHdffSetup gHdffSetup;
00045 
00046 class cHdffSetupPage : public cMenuSetupPage
00047 {
00048 private:
00049     HDFF::cHdffCmdIf * mHdffCmdIf;
00050     cHdffSetup mNewHdffSetup;
00051     cOsdItem * mTvFormatItem;
00052     int mVideoConversion;
00053 
00054     void BuildVideoConversionItem(void);
00055 
00056 protected:
00057     virtual void Store(void);
00058 
00059 public:
00060     cHdffSetupPage(HDFF::cHdffCmdIf * pHdffCmdIf);
00061     virtual ~cHdffSetupPage(void);
00062     virtual eOSState ProcessKey(eKeys Key);
00063 };
00064 
00065 #endif