vdr
1.7.31
Main Page
Namespaces
Classes
Files
File List
File Members
PLUGINS
src
dvbhddevice
libhdffcmd
hdffcmd_hdmi.h
Go to the documentation of this file.
1
/**********************************************************************
2
*
3
* HDFF firmware command interface library
4
*
5
* Copyright (C) 2011 Andreas Regel
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 2
10
* of the License, or (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the
19
* Free Software Foundation, Inc.,
20
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
*
22
*********************************************************************/
23
24
#ifndef HDFFCMD_HDMI_H
25
#define HDFFCMD_HDMI_H
26
27
28
typedef
enum
HdffVideoMode_t
29
{
30
HDFF_VIDEO_MODE_576P50
= 18,
31
HDFF_VIDEO_MODE_720P50
= 19,
32
HDFF_VIDEO_MODE_1080I50
= 20,
33
HDFF_VIDEO_MODE_576I50
= 22
34
}
HdffVideoMode_t
;
35
36
typedef
enum
HdffVideoModeAdaption_t
37
{
38
HDFF_VIDEO_MODE_ADAPT_OFF
,
39
HDFF_VIDEO_MODE_ADAPT_FRAME_RATE
,
40
HDFF_VIDEO_MODE_ADAPT_ONLY_FOR_HD
,
41
HDFF_VIDEO_MODE_ADAPT_ALWAYS
42
}
HdffVideoModeAdaption_t
;
43
44
typedef
struct
HdffHdmiConfig_t
45
{
46
int
TransmitAudio
;
47
int
ForceDviMode
;
48
int
CecEnabled
;
49
HdffVideoModeAdaption_t
VideoModeAdaption
;
50
char
CecDeviceName
[14];
51
}
HdffHdmiConfig_t
;
52
53
typedef
enum
HdffCecCommand_t
54
{
55
HDFF_CEC_COMMAND_TV_ON
,
56
HDFF_CEC_COMMAND_TV_OFF
,
57
HDFF_CEC_COMMAND_ACTIVE_SOURCE
,
58
HDFF_CEC_COMMAND_INACTIVE_SOURCE
59
}
HdffCecCommand_t
;
60
61
62
int
HdffCmdHdmiSetVideoMode
(
int
OsdDevice,
HdffVideoMode_t
VideoMode);
63
64
int
HdffCmdHdmiConfigure
(
int
OsdDevice,
const
HdffHdmiConfig_t
* Config);
65
66
int
HdffCmdHdmiSendCecCommand
(
int
OsdDevice,
HdffCecCommand_t
Command);
67
68
int
HdffCmdHdmiSendRawCecCommand
(
int
OsdDevice, uint8_t Destination,
69
uint8_t Opcode,
const
uint8_t * Operand,
70
uint8_t OperandLength);
71
72
#endif
/* HDFFCMD_HDMI_H */
Generated by
1.8.1.2