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

Bitmap data unit (a PNG image with position and flashing colors). More...

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

Go to the source code of this file.

Data Structures

struct  CaptionSuperImposeBitmap_t
 

Typedefs

typedef struct CaptionSuperImposeBitmap_t CaptionSuperImposeBitmap_t
 

Functions

CaptionSuperImposeBitmap_t * caption_superimpose_bitmap_new (const CaptionManagement_t *m)
 
void caption_superimpose_bitmap_free (CaptionSuperImposeBitmap_t *cc)
 

Detailed Description

Bitmap data unit (a PNG image with position and flashing colors).

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_BITMAP, following the "bitmap graphics coding" (ARIB STD-B24, Volume 1, Part 3, 6.2, Table 6-1, p. 156): position header, flashing header and the PNG file. The library does not decode the PNG: it validates the signature, reads the size from the IHDR chunk and hands the bytes to be used with any PNG decoder.

Definition in file caption-superimpose-bitmap.h.

Typedef Documentation

◆ CaptionSuperImposeBitmap_t

Bitmap data unit.

Function Documentation

◆ caption_superimpose_bitmap_new()

CaptionSuperImposeBitmap_t * caption_superimpose_bitmap_new ( const CaptionManagement_t *  m)

Creates the struct from a bitmap data unit.

Parameters
mContent read by caption_management_load() or caption_management_load_unit(), of type CAPTION_HANDLER_TYPE_BITMAP, with a non-empty data unit.
Returns
The struct, or NULL if out of memory or if the data unit is truncated or the PNG is not valid (signature and IHDR). Free with caption_superimpose_bitmap_free().

◆ caption_superimpose_bitmap_free()

void caption_superimpose_bitmap_free ( CaptionSuperImposeBitmap_t *  cc)

Frees the struct created by caption_superimpose_bitmap_new(), including all the items chained in next.

Parameters
ccThe struct. NULL is fine.