dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_video.h File Reference

OSD gen module, handles OSD draw. Parts from CL-OSD and SUPEROSD projects. More...

#include <pios_stm32.h>
#include <pios_spi_priv.h>

Go to the source code of this file.

Data Structures

struct  pios_video_type_boundary
 
struct  pios_video_type_cfg
 
struct  pios_video_cfg
 

Macros

#define GRAPHICS_LEFT   0
 
#define GRAPHICS_TOP   0
 
#define GRAPHICS_RIGHT   pios_video_type_boundary_act->graphics_right
 
#define GRAPHICS_BOTTOM   pios_video_type_boundary_act->graphics_bottom
 
#define GRAPHICS_X_MIDDLE   ((GRAPHICS_RIGHT + 1) / 2)
 
#define GRAPHICS_Y_MIDDLE   ((GRAPHICS_BOTTOM + 1) / 2)
 
#define VIDEO_TYPE_PAL_ROWS   300
 
#define GRAPHICS_WIDTH_REAL   376
 
#define GRAPHICS_HEIGHT_REAL   266
 
#define BUFFER_WIDTH_TMP   (GRAPHICS_WIDTH_REAL / (8 / PIOS_VIDEO_BITS_PER_PIXEL))
 
#define BUFFER_WIDTH   (BUFFER_WIDTH_TMP + BUFFER_WIDTH_TMP % 4)
 
#define BUFFER_HEIGHT   (GRAPHICS_HEIGHT_REAL)
 
#define SWAP_BUFFS(tmp, a, b)   { tmp = a; a = b; b = tmp; }
 

Enumerations

enum  pios_video_3d_mode { PIOS_VIDEO_3D_DISABLED, PIOS_VIDEO_3D_SBS3D }
 
enum  pios_video_system { PIOS_VIDEO_SYSTEM_NONE, PIOS_VIDEO_SYSTEM_PAL, PIOS_VIDEO_SYSTEM_NTSC }
 

Functions

bool PIOS_Vsync_ISR ()
 
bool PIOS_Hsync_ISR ()
 
void PIOS_Video_Init (const struct pios_video_cfg *cfg)
 
void PIOS_Pixel_Init (void)
 
void PIOS_Video_SetLevels (uint8_t, uint8_t)
 
void PIOS_Video_SetXOffset (int8_t)
 
void PIOS_Video_SetYOffset (int8_t)
 
void PIOS_Video_SetXScale (uint8_t x_scale)
 
void PIOS_Video_Set3DConfig (enum pios_video_3d_mode mode, uint8_t right_eye_x_shift)
 
uint16_t PIOS_Video_GetLines (void)
 
enum pios_video_system PIOS_Video_GetSystem (void)
 

Variables

const struct pios_video_cfg pios_video_cfg
 
const struct
pios_video_type_boundary
pios_video_type_boundary_act
 

Detailed Description

OSD gen module, handles OSD draw. Parts from CL-OSD and SUPEROSD projects.

Author
Tau Labs, http://taulabs.org, Copyright (C) 2013-2014
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010-2014.
See Also
The GNU Public License (GPL) Version 3

Definition in file pios_video.h.