FFmpeg
Classes | Macros | Typedefs | Enumerations | Variables
pgssubdec.c File Reference

PGS subtitle decoder. More...

#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "mathops.h"
#include "libavutil/colorspace.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"

Classes

struct  PGSSubObjectRef
 
struct  PGSSubPresentation
 
struct  PGSSubObject
 
struct  PGSSubObjects
 
struct  PGSSubPalette
 
struct  PGSSubPalettes
 
struct  PGSSubContext
 

Macros

#define RGBA(r, g, b, a)   (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b))
 
#define MAX_EPOCH_PALETTES   8
 
#define MAX_EPOCH_OBJECTS   64
 
#define MAX_OBJECT_REFS   2
 
#define OFFSET(x)   offsetof(PGSSubContext, x)
 
#define SD   AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM
 

Typedefs

typedef struct PGSSubObjectRef PGSSubObjectRef
 
typedef struct PGSSubPresentation PGSSubPresentation
 
typedef struct PGSSubObject PGSSubObject
 
typedef struct PGSSubObjects PGSSubObjects
 
typedef struct PGSSubPalette PGSSubPalette
 
typedef struct PGSSubPalettes PGSSubPalettes
 
typedef struct PGSSubContext PGSSubContext
 

Enumerations

enum  SegmentType {
  PALETTE_SEGMENT = 0x14, OBJECT_SEGMENT = 0x15, PRESENTATION_SEGMENT = 0x16, WINDOW_SEGMENT = 0x17,
  DISPLAY_SEGMENT = 0x80, SEGMENT_TYPE_MPEGTS, SEGMENT_TYPE_FMP4
}
 

Variables

AVCodec ff_pgssub_decoder
 

Detailed Description

PGS subtitle decoder.

Variable Documentation

§ ff_pgssub_decoder

AVCodec ff_pgssub_decoder
Initial value:
= {
.name = "pgssub",
.long_name = NULL_IF_CONFIG_SMALL("HDMV Presentation Graphic Stream subtitles"),
.type = AVMEDIA_TYPE_SUBTITLE,
.id = AV_CODEC_ID_HDMV_PGS_SUBTITLE,
.priv_data_size = sizeof(PGSSubContext),
.init = init_decoder,
.close = close_decoder,
.decode = decode,
.priv_class = &pgsdec_class,
}
Definition: pgssubdec.c:93
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186