vdr
2.2.0
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 */
HDFF_VIDEO_MODE_ADAPT_ONLY_FOR_HD
Definition:
hdffcmd_hdmi.h:40
HDFF_VIDEO_MODE_ADAPT_FRAME_RATE
Definition:
hdffcmd_hdmi.h:39
HdffCmdHdmiSendRawCecCommand
int HdffCmdHdmiSendRawCecCommand(int OsdDevice, uint8_t Destination, uint8_t Opcode, const uint8_t *Operand, uint8_t OperandLength)
Definition:
hdffcmd_hdmi.c:94
HdffCmdHdmiSendCecCommand
int HdffCmdHdmiSendCecCommand(int OsdDevice, HdffCecCommand_t Command)
Definition:
hdffcmd_hdmi.c:78
HdffVideoMode_t
HdffVideoMode_t
Definition:
hdffcmd_hdmi.h:28
HdffHdmiConfig_t::VideoModeAdaption
HdffVideoModeAdaption_t VideoModeAdaption
Definition:
hdffcmd_hdmi.h:49
HDFF_CEC_COMMAND_TV_OFF
Definition:
hdffcmd_hdmi.h:56
HDFF_VIDEO_MODE_576I50
Definition:
hdffcmd_hdmi.h:33
HDFF_VIDEO_MODE_576P50
Definition:
hdffcmd_hdmi.h:30
HDFF_VIDEO_MODE_1080I50
Definition:
hdffcmd_hdmi.h:32
HDFF_VIDEO_MODE_720P50
Definition:
hdffcmd_hdmi.h:31
HDFF_VIDEO_MODE_ADAPT_ALWAYS
Definition:
hdffcmd_hdmi.h:41
HdffHdmiConfig_t
struct HdffHdmiConfig_t HdffHdmiConfig_t
HDFF_CEC_COMMAND_TV_ON
Definition:
hdffcmd_hdmi.h:55
HdffHdmiConfig_t::TransmitAudio
int TransmitAudio
Definition:
hdffcmd_hdmi.h:46
HdffHdmiConfig_t::CecDeviceName
char CecDeviceName[14]
Definition:
hdffcmd_hdmi.h:50
HdffCmdHdmiConfigure
int HdffCmdHdmiConfigure(int OsdDevice, const HdffHdmiConfig_t *Config)
Definition:
hdffcmd_hdmi.c:49
HdffHdmiConfig_t::CecEnabled
int CecEnabled
Definition:
hdffcmd_hdmi.h:48
HDFF_VIDEO_MODE_ADAPT_OFF
Definition:
hdffcmd_hdmi.h:38
HdffHdmiConfig_t::ForceDviMode
int ForceDviMode
Definition:
hdffcmd_hdmi.h:47
HDFF_CEC_COMMAND_INACTIVE_SOURCE
Definition:
hdffcmd_hdmi.h:58
HdffCmdHdmiSetVideoMode
int HdffCmdHdmiSetVideoMode(int OsdDevice, HdffVideoMode_t VideoMode)
Definition:
hdffcmd_hdmi.c:33
HdffVideoModeAdaption_t
HdffVideoModeAdaption_t
Definition:
hdffcmd_hdmi.h:36
HdffHdmiConfig_t
Definition:
hdffcmd_hdmi.h:44
HdffCecCommand_t
HdffCecCommand_t
Definition:
hdffcmd_hdmi.h:53
HDFF_CEC_COMMAND_ACTIVE_SOURCE
Definition:
hdffcmd_hdmi.h:57
Generated by
1.8.11