vdr 2.7.6
dvbspu.c File Reference
#include "dvbspu.h"
#include <assert.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>

Go to the source code of this file.

Macros

#define DEBUG(format, args...)
 
#define setMin(a, b)
 
#define setMax(a, b)
 
#define spuXres   720
 
#define spuYres   576
 
#define revRect(r1, r2)
 
#define CMD_SPU_MENU   0x00
 
#define CMD_SPU_SHOW   0x01
 
#define CMD_SPU_HIDE   0x02
 
#define CMD_SPU_SET_PALETTE   0x03
 
#define CMD_SPU_SET_ALPHA   0x04
 
#define CMD_SPU_SET_SIZE   0x05
 
#define CMD_SPU_SET_PXD_OFFSET   0x06
 
#define CMD_SPU_CHG_COLCON   0x07
 
#define CMD_SPU_EOF   0xff
 
#define spuU32(i)
 
#define DIV(a, b)
 

Functions

static uint8_t getBits (uint8_t *&data, uint8_t &bitf)
 

Macro Definition Documentation

◆ CMD_SPU_CHG_COLCON

#define CMD_SPU_CHG_COLCON   0x07

Definition at line 225 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ CMD_SPU_EOF

#define CMD_SPU_EOF   0xff

Definition at line 226 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ CMD_SPU_HIDE

#define CMD_SPU_HIDE   0x02

Definition at line 220 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ CMD_SPU_MENU

#define CMD_SPU_MENU   0x00

Definition at line 218 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ CMD_SPU_SET_ALPHA

#define CMD_SPU_SET_ALPHA   0x04

Definition at line 222 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ CMD_SPU_SET_PALETTE

#define CMD_SPU_SET_PALETTE   0x03

Definition at line 221 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ CMD_SPU_SET_PXD_OFFSET

#define CMD_SPU_SET_PXD_OFFSET   0x06

Definition at line 224 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ CMD_SPU_SET_SIZE

#define CMD_SPU_SET_SIZE   0x05

Definition at line 223 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ CMD_SPU_SHOW

#define CMD_SPU_SHOW   0x01

Definition at line 219 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ DEBUG

◆ DIV

#define DIV ( a,
b )
Value:
(a/b)?:1

Referenced by cDvbSpuDecoder::Draw().

◆ revRect

#define revRect ( r1,
r2 )
Value:
{ r1.x1 = r2.x2; r1.y1 = r2.y2; r1.x2 = r2.x1; r1.y2 = r2.y1; }

Definition at line 61 of file dvbspu.c.

Referenced by cDvbSpuBitmap::cDvbSpuBitmap().

◆ setMax

#define setMax ( a,
b )
Value:
if (a < b) a = b

Definition at line 55 of file dvbspu.c.

Referenced by cDvbSpuDecoder::Draw(), cDvbSpuBitmap::getMinSize(), and cDvbSpuBitmap::putPixel().

◆ setMin

#define setMin ( a,
b )
Value:
if (a > b) a = b

Definition at line 54 of file dvbspu.c.

Referenced by cDvbSpuDecoder::Draw(), cDvbSpuBitmap::getMinSize(), and cDvbSpuBitmap::putPixel().

◆ spuU32

#define spuU32 ( i)
Value:
((spu[i] << 8) + spu[i+1])

Definition at line 228 of file dvbspu.c.

Referenced by cDvbSpuDecoder::setTime().

◆ spuXres

#define spuXres   720

◆ spuYres

#define spuYres   576

Function Documentation

◆ getBits()

static uint8_t getBits ( uint8_t *& data,
uint8_t & bitf )
static

Definition at line 165 of file dvbspu.c.

Referenced by cDvbSpuBitmap::putFieldData().