vdr
2.2.0
|
#include <stdint.h>
#include <string.h>
#include <sys/ioctl.h>
#include "hdffcmd.h"
#include "hdffcmd_base.h"
#include "hdffcmd_defs.h"
Go to the source code of this file.
Functions | |
int | HdffCmdOsdConfigure (int OsdDevice, const HdffOsdConfig_t *Config) |
int | HdffCmdOsdReset (int OsdDevice) |
int | HdffCmdOsdCreateDisplay (int OsdDevice, uint16_t Width, uint16_t Height, HdffColorType_t ColorType, uint32_t *NewDisplay) |
int | HdffCmdOsdDeleteDisplay (int OsdDevice, uint32_t Display) |
int | HdffCmdOsdEnableDisplay (int OsdDevice, uint32_t Display, int Enable) |
int | HdffCmdOsdSetDisplayOutputRectangle (int OsdDevice, uint32_t Display, uint16_t X, uint16_t Y, uint16_t Width, uint16_t Height) |
int | HdffCmdOsdSetDisplayClippingArea (int OsdDevice, uint32_t Display, int Enable, uint16_t X, uint16_t Y, uint16_t Width, uint16_t Height) |
int | HdffCmdOsdRenderDisplay (int OsdDevice, uint32_t Display) |
int | HdffCmdOsdSaveRegion (int OsdDevice, uint32_t Display, uint16_t X, uint16_t Y, uint16_t Width, uint16_t Height) |
int | HdffCmdOsdRestoreRegion (int OsdDevice, uint32_t Display) |
int | HdffCmdOsdCreatePalette (int OsdDevice, HdffColorType_t ColorType, HdffColorFormat_t ColorFormat, uint32_t NumColors, const uint32_t *Colors, uint32_t *NewPalette) |
int | HdffCmdOsdDeletePalette (int OsdDevice, uint32_t Palette) |
int | HdffCmdOsdSetDisplayPalette (int OsdDevice, uint32_t Display, uint32_t Palette) |
int | HdffCmdOsdSetPaletteColors (int OsdDevice, uint32_t Palette, HdffColorFormat_t ColorFormat, uint8_t StartColor, uint32_t NumColors, const uint32_t *Colors) |
int | HdffCmdOsdCreateFontFace (int OsdDevice, const uint8_t *FontData, uint32_t DataSize, uint32_t *NewFontFace) |
int | HdffCmdOsdDeleteFontFace (int OsdDevice, uint32_t FontFace) |
int | HdffCmdOsdCreateFont (int OsdDevice, uint32_t FontFace, uint32_t Size, uint32_t *NewFont) |
int | HdffCmdOsdDeleteFont (int OsdDevice, uint32_t Font) |
int | HdffCmdOsdDrawRectangle (int OsdDevice, uint32_t Display, uint16_t X, uint16_t Y, uint16_t Width, uint16_t Height, uint32_t Color) |
int | HdffCmdOsdDrawEllipse (int OsdDevice, uint32_t Display, uint16_t CX, uint16_t CY, uint16_t RadiusX, uint16_t RadiusY, uint32_t Color, uint32_t Flags) |
int | HdffCmdOsdDrawSlope (int OsdDevice, uint32_t Display, uint16_t X, uint16_t Y, uint16_t Width, uint16_t Height, uint32_t Color, uint32_t Type) |
int | HdffCmdOsdDrawText (int OsdDevice, uint32_t Display, uint32_t Font, uint16_t X, uint16_t Y, const char *Text, uint32_t Color) |
int | HdffCmdOsdDrawUtf8Text (int OsdDevice, uint32_t Display, uint32_t Font, uint16_t X, uint16_t Y, const char *Text, uint32_t Color) |
int | HdffCmdOsdDrawWideText (int OsdDevice, uint32_t Display, uint32_t Font, uint16_t X, uint16_t Y, const uint16_t *Text, uint32_t Color) |
int | HdffCmdOsdDrawBitmap (int OsdDevice, uint32_t Display, uint16_t X, uint16_t Y, const uint8_t *Bitmap, uint16_t BmpWidth, uint16_t BmpHeight, uint32_t BmpSize, HdffColorType_t ColorType, uint32_t Palette) |
int HdffCmdOsdConfigure | ( | int | OsdDevice, |
const HdffOsdConfig_t * | Config | ||
) |
Definition at line 33 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HdffOsdConfig_t::FontAntialiasing, HdffOsdConfig_t::FontDpi, HdffOsdConfig_t::FontKerning, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_CONFIGURE, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdConfigure().
int HdffCmdOsdCreateDisplay | ( | int | OsdDevice, |
uint16_t | Width, | ||
uint16_t | Height, | ||
HdffColorType_t | ColorType, | ||
uint32_t * | NewDisplay | ||
) |
Definition at line 82 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_INVALID_HANDLE, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_CREATE_DISPLAY, HDFF_MSG_TYPE_ANSWER, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), OSD_RAW_CMD, osd_raw_cmd_s::result_data, and osd_raw_cmd_s::result_len.
Referenced by HDFF::cHdffCmdIf::CmdOsdCreateDisplay().
int HdffCmdOsdCreateFont | ( | int | OsdDevice, |
uint32_t | FontFace, | ||
uint32_t | Size, | ||
uint32_t * | NewFont | ||
) |
Definition at line 445 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_INVALID_HANDLE, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_CREATE_FONT, HDFF_MSG_TYPE_ANSWER, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), OSD_RAW_CMD, osd_raw_cmd_s::result_data, and osd_raw_cmd_s::result_len.
Referenced by HDFF::cHdffCmdIf::CmdOsdCreateFont().
int HdffCmdOsdCreateFontFace | ( | int | OsdDevice, |
const uint8_t * | FontData, | ||
uint32_t | DataSize, | ||
uint32_t * | NewFontFace | ||
) |
Definition at line 382 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, osd_raw_data_s::data_buffer, osd_raw_data_s::data_handle, osd_raw_data_s::data_length, HDFF_INVALID_HANDLE, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_CREATE_FONT_FACE, HDFF_MSG_TYPE_ANSWER, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), OSD_RAW_CMD, OSD_RAW_DATA, osd_raw_cmd_s::result_data, and osd_raw_cmd_s::result_len.
Referenced by HDFF::cHdffCmdIf::CmdOsdCreateFontFace().
int HdffCmdOsdCreatePalette | ( | int | OsdDevice, |
HdffColorType_t | ColorType, | ||
HdffColorFormat_t | ColorFormat, | ||
uint32_t | NumColors, | ||
const uint32_t * | Colors, | ||
uint32_t * | NewPalette | ||
) |
Definition at line 270 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_INVALID_HANDLE, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_CREATE_PALETTE, HDFF_MSG_TYPE_ANSWER, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), OSD_RAW_CMD, osd_raw_cmd_s::result_data, and osd_raw_cmd_s::result_len.
Referenced by HDFF::cHdffCmdIf::CmdOsdCreatePalette().
int HdffCmdOsdDeleteDisplay | ( | int | OsdDevice, |
uint32_t | Display | ||
) |
Definition at line 122 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DELETE_DISPLAY, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDeleteDisplay().
int HdffCmdOsdDeleteFont | ( | int | OsdDevice, |
uint32_t | Font | ||
) |
Definition at line 485 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DELETE_FONT, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDeleteFont().
int HdffCmdOsdDeleteFontFace | ( | int | OsdDevice, |
uint32_t | FontFace | ||
) |
Definition at line 429 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DELETE_FONT_FACE, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDeleteFontFace().
int HdffCmdOsdDeletePalette | ( | int | OsdDevice, |
uint32_t | Palette | ||
) |
Definition at line 319 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DELETE_PALETTE, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDeletePalette().
int HdffCmdOsdDrawBitmap | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint16_t | X, | ||
uint16_t | Y, | ||
const uint8_t * | Bitmap, | ||
uint16_t | BmpWidth, | ||
uint16_t | BmpHeight, | ||
uint32_t | BmpSize, | ||
HdffColorType_t | ColorType, | ||
uint32_t | Palette | ||
) |
Definition at line 684 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, osd_raw_data_s::data_buffer, osd_raw_data_s::data_handle, osd_raw_data_s::data_length, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DRAW_BITMAP, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), OSD_RAW_CMD, and OSD_RAW_DATA.
Referenced by HDFF::cHdffCmdIf::CmdOsdDrawBitmap().
int HdffCmdOsdDrawEllipse | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint16_t | CX, | ||
uint16_t | CY, | ||
uint16_t | RadiusX, | ||
uint16_t | RadiusY, | ||
uint32_t | Color, | ||
uint32_t | Flags | ||
) |
Definition at line 525 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DRAW_ELLIPSE, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDrawEllipse().
int HdffCmdOsdDrawRectangle | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint16_t | X, | ||
uint16_t | Y, | ||
uint16_t | Width, | ||
uint16_t | Height, | ||
uint32_t | Color | ||
) |
Definition at line 502 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DRAW_RECTANGLE, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDrawRectangle().
int HdffCmdOsdDrawSlope | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint16_t | X, | ||
uint16_t | Y, | ||
uint16_t | Width, | ||
uint16_t | Height, | ||
uint32_t | Color, | ||
uint32_t | Type | ||
) |
Definition at line 549 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DRAW_SLOPE, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDrawSlope().
int HdffCmdOsdDrawText | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint32_t | Font, | ||
uint16_t | X, | ||
uint16_t | Y, | ||
const char * | Text, | ||
uint32_t | Color | ||
) |
Definition at line 573 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DRAW_TEXT, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDrawText().
int HdffCmdOsdDrawUtf8Text | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint32_t | Font, | ||
uint16_t | X, | ||
uint16_t | Y, | ||
const char * | Text, | ||
uint32_t | Color | ||
) |
Definition at line 610 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DRAW_UTF8_TEXT, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDrawUtf8Text().
int HdffCmdOsdDrawWideText | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint32_t | Font, | ||
uint16_t | X, | ||
uint16_t | Y, | ||
const uint16_t * | Text, | ||
uint32_t | Color | ||
) |
Definition at line 647 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_DRAW_WIDE_TEXT, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdDrawTextW().
int HdffCmdOsdEnableDisplay | ( | int | OsdDevice, |
uint32_t | Display, | ||
int | Enable | ||
) |
Definition at line 138 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_ENABLE_DISPLAY, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdEnableDisplay().
int HdffCmdOsdRenderDisplay | ( | int | OsdDevice, |
uint32_t | Display | ||
) |
Definition at line 215 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_RENDER_DISPLAY, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdRenderDisplay().
int HdffCmdOsdReset | ( | int | OsdDevice | ) |
Definition at line 66 of file hdffcmd_osd.c.
References BitBuffer_Init(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_RESET, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdReset().
int HdffCmdOsdRestoreRegion | ( | int | OsdDevice, |
uint32_t | Display | ||
) |
Definition at line 253 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_RESTORE_REGION, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdRestoreRegion().
int HdffCmdOsdSaveRegion | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint16_t | X, | ||
uint16_t | Y, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) |
Definition at line 231 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_SAVE_REGION, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdSaveRegion().
int HdffCmdOsdSetDisplayClippingArea | ( | int | OsdDevice, |
uint32_t | Display, | ||
int | Enable, | ||
uint16_t | X, | ||
uint16_t | Y, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) |
Definition at line 184 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_SET_DISPLAY_CLIPPLING_AREA, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdSetDisplayClippingArea().
int HdffCmdOsdSetDisplayOutputRectangle | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint16_t | X, | ||
uint16_t | Y, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) |
Definition at line 162 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_SET_DISPLAY_OUTPUT_RECTANGLE, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdSetDisplayOutputRectangle().
int HdffCmdOsdSetDisplayPalette | ( | int | OsdDevice, |
uint32_t | Display, | ||
uint32_t | Palette | ||
) |
Definition at line 335 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_SET_DISPLAY_PALETTE, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdSetDisplayPalette().
int HdffCmdOsdSetPaletteColors | ( | int | OsdDevice, |
uint32_t | Palette, | ||
HdffColorFormat_t | ColorFormat, | ||
uint8_t | StartColor, | ||
uint32_t | NumColors, | ||
const uint32_t * | Colors | ||
) |
Definition at line 353 of file hdffcmd_osd.c.
References BitBuffer_Init(), BitBuffer_SetBits(), osd_raw_cmd_s::cmd_data, osd_raw_cmd_s::cmd_len, HDFF_MSG_GROUP_OSD, HDFF_MSG_OSD_SET_PALETTE_COLORS, HDFF_MSG_TYPE_COMMAND, HdffCmdBuildHeader(), HdffCmdSetLength(), and OSD_RAW_CMD.
Referenced by HDFF::cHdffCmdIf::CmdOsdSetPaletteColors().