|
libclosedcaption 1.0.3
ISDB-Tb/SBTVD (Brazilian DTV) closed caption extraction from MPEG-TS
|
Geometric graphics data unit, split into commands. More...


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) |
Geometric graphics data unit, split into commands.
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.
| #define CAPTION_GEOMETRIC_OPCODE_RESET 0x20 |
RESET: 2 fixed bytes.
Definition at line 20 of file caption-superimpose-geometric.h.
| #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.
| #define CAPTION_GEOMETRIC_OPCODE_TEXTURE 0x23 |
TEXTURE: 1 fixed byte.
Definition at line 22 of file caption-superimpose-geometric.h.
| #define CAPTION_GEOMETRIC_OPCODE_SET_COLOR 0x3c |
SET COLOR.
Definition at line 23 of file caption-superimpose-geometric.h.
| #define CAPTION_GEOMETRIC_OPCODE_SET_PATTERN 0x3d |
SET PATTERN.
Definition at line 24 of file caption-superimpose-geometric.h.
| #define CAPTION_GEOMETRIC_OPCODE_SELECT_COLOR 0x3e |
SELECT COLOR.
Definition at line 25 of file caption-superimpose-geometric.h.
| #define CAPTION_GEOMETRIC_OPCODE_BLINK 0x3f |
BLINK.
Definition at line 26 of file caption-superimpose-geometric.h.
| typedef struct CaptionSuperImposeGeometric_t CaptionSuperImposeGeometric_t |
One graphics display command.
| CaptionSuperImposeGeometric_t * caption_superimpose_geometric_new | ( | const CaptionManagement_t * | m | ) |
Creates the list of commands from a geometric graphics data unit.
| m | Content read by caption_management_load() or caption_management_load_unit(), of type CAPTION_HANDLER_TYPE_GEOMETRIC, with a non-empty data unit. |
| 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").
| opcode | Opcode of the command. |
| void caption_superimpose_geometric_free | ( | CaptionSuperImposeGeometric_t * | cc | ) |
Frees the list created by caption_superimpose_geometric_new(), including all the items chained in next.
| cc | The list. NULL is fine. |