libclosedcaption 1.0.3
ISDB-Tb/SBTVD (Brazilian DTV) closed caption extraction from MPEG-TS
Loading...
Searching...
No Matches
caption-superimpose-geometric.h File Reference

Geometric graphics data unit, split into commands. More...

#include "caption-common.h"
#include "caption-data.h"
#include "caption-management.h"
Include dependency graph for caption-superimpose-geometric.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CaptionSuperImposeGeometric_t
 

Macros

#define CAPTION_GEOMETRIC_OPCODE_RESET   0x20
 
#define CAPTION_GEOMETRIC_OPCODE_DOMAIN   0x21
 
#define CAPTION_GEOMETRIC_OPCODE_TEXTURE   0x23
 
#define CAPTION_GEOMETRIC_OPCODE_SET_COLOR   0x3c
 
#define CAPTION_GEOMETRIC_OPCODE_SET_PATTERN   0x3d
 
#define CAPTION_GEOMETRIC_OPCODE_SELECT_COLOR   0x3e
 
#define CAPTION_GEOMETRIC_OPCODE_BLINK   0x3f
 

Typedefs

typedef struct CaptionSuperImposeGeometric_t CaptionSuperImposeGeometric_t
 

Functions

CaptionSuperImposeGeometric_t * caption_superimpose_geometric_new (const CaptionManagement_t *m)
 
const char * caption_superimpose_geometric_get_name (uint8_t opcode)
 
void caption_superimpose_geometric_free (CaptionSuperImposeGeometric_t *cc)
 

Detailed Description

Geometric graphics data unit, split into commands.

Author
Jorge Pereira jpere.nosp@m.iran.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
Thu Aug 12 13:49:21 BRT 2010

Reads the data units of type CAPTION_HANDLER_TYPE_GEOMETRIC. The geometric graphics are a sequence of "graphics display commands" (ARIB STD-B24, Volume 1, Part 2, 8.1.2): an opcode (0x20 to 0x3f) followed by zero or more operand bytes (0x40 to 0x7f). This module only splits the stream into commands; drawing them (DOMAIN, POINT, LINE, ARC, RECT, POLY...) is up to the application. C0/C1 controls and bytes outside these two ranges are skipped.

Definition in file caption-superimpose-geometric.h.

Macro Definition Documentation

◆ CAPTION_GEOMETRIC_OPCODE_RESET

#define CAPTION_GEOMETRIC_OPCODE_RESET   0x20

RESET: 2 fixed bytes.

Definition at line 20 of file caption-superimpose-geometric.h.

◆ CAPTION_GEOMETRIC_OPCODE_DOMAIN

#define CAPTION_GEOMETRIC_OPCODE_DOMAIN   0x21

DOMAIN: 1 fixed byte and a multi-value operand.

Definition at line 21 of file caption-superimpose-geometric.h.

◆ CAPTION_GEOMETRIC_OPCODE_TEXTURE

#define CAPTION_GEOMETRIC_OPCODE_TEXTURE   0x23

TEXTURE: 1 fixed byte.

Definition at line 22 of file caption-superimpose-geometric.h.

◆ CAPTION_GEOMETRIC_OPCODE_SET_COLOR

#define CAPTION_GEOMETRIC_OPCODE_SET_COLOR   0x3c

SET COLOR.

Definition at line 23 of file caption-superimpose-geometric.h.

◆ CAPTION_GEOMETRIC_OPCODE_SET_PATTERN

#define CAPTION_GEOMETRIC_OPCODE_SET_PATTERN   0x3d

SET PATTERN.

Definition at line 24 of file caption-superimpose-geometric.h.

◆ CAPTION_GEOMETRIC_OPCODE_SELECT_COLOR

#define CAPTION_GEOMETRIC_OPCODE_SELECT_COLOR   0x3e

SELECT COLOR.

Definition at line 25 of file caption-superimpose-geometric.h.

◆ CAPTION_GEOMETRIC_OPCODE_BLINK

#define CAPTION_GEOMETRIC_OPCODE_BLINK   0x3f

BLINK.

Definition at line 26 of file caption-superimpose-geometric.h.

Typedef Documentation

◆ CaptionSuperImposeGeometric_t

One graphics display command.

Function Documentation

◆ caption_superimpose_geometric_new()

CaptionSuperImposeGeometric_t * caption_superimpose_geometric_new ( const CaptionManagement_t *  m)

Creates the list of commands from a geometric graphics data unit.

Parameters
mContent read by caption_management_load() or caption_management_load_unit(), of type CAPTION_HANDLER_TYPE_GEOMETRIC, with a non-empty data unit.
Returns
The list, or NULL if out of memory or if there is no command. Free with caption_superimpose_geometric_free().

◆ caption_superimpose_geometric_get_name()

const char * caption_superimpose_geometric_get_name ( uint8_t  opcode)

Name of the command family of an opcode ("RESET", "DOMAIN", "TEXTURE", "POINT", "LINE", "ARC", "RECT", "POLY", "SET COLOR", "SET PATTERN", "SELECT COLOR" or "BLINK").

Parameters
opcodeOpcode of the command.
Returns
The name, or "UNKNOWN". Never NULL.

◆ caption_superimpose_geometric_free()

void caption_superimpose_geometric_free ( CaptionSuperImposeGeometric_t *  cc)

Frees the list created by caption_superimpose_geometric_new(), including all the items chained in next.

Parameters
ccThe list. NULL is fine.