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

2-byte DRCS (characters drawn by the broadcaster) data unit. More...

Include dependency graph for caption-superimpose-2bytedrcs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef CaptionSuperImpose1ByteDrcs_t CaptionSuperImpose2ByteDrcs_t
 

Functions

CaptionSuperImpose2ByteDrcs_t * caption_superimpose_2bytedrcs_new (const CaptionManagement_t *m)
 
void caption_superimpose_2bytedrcs_free (CaptionSuperImpose2ByteDrcs_t *cc)
 

Detailed Description

2-byte DRCS (characters drawn by the broadcaster) data unit.

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_2BYTE_DRCS. The syntax is the same as the 1-byte DRCS one (ARIB STD-B24, Volume 1, Part 2, Annex D); only the meaning of the character_code changes: here the two bytes are the code of the supplemental character (Gaiji) itself. So the struct is the same of caption-superimpose-1bytedrcs.h.

Definition in file caption-superimpose-2bytedrcs.h.

Typedef Documentation

◆ CaptionSuperImpose2ByteDrcs_t

One font of one 2-byte DRCS character: same fields as CaptionSuperImpose1ByteDrcs_t, but character_code is the 2-byte code of the character.

Definition at line 24 of file caption-superimpose-2bytedrcs.h.

Function Documentation

◆ caption_superimpose_2bytedrcs_new()

CaptionSuperImpose2ByteDrcs_t * caption_superimpose_2bytedrcs_new ( const CaptionManagement_t *  m)

Creates the list from a 2-byte DRCS (characters drawn by the broadcaster) data unit.

Parameters
mContent read by caption_management_load() or caption_management_load_unit(), of type CAPTION_HANDLER_TYPE_2BYTE_DRCS, with a non-empty data unit.
Returns
The list, or NULL if out of memory, if the data unit has no character or if it is truncated/invalid. Free with caption_superimpose_2bytedrcs_free().

◆ caption_superimpose_2bytedrcs_free()

void caption_superimpose_2bytedrcs_free ( CaptionSuperImpose2ByteDrcs_t *  cc)

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

Parameters
ccThe list. NULL is fine.