FFmpeg  4.0
Data Fields
AVSubtitleRect Struct Reference

#include <libavcodec/avcodec.h>

Data Fields

int x
 top left corner of pict, undefined when pict is not set More...
 
int y
 top left corner of pict, undefined when pict is not set More...
 
int w
 width of pict, undefined when pict is not set More...
 
int h
 height of pict, undefined when pict is not set More...
 
int nb_colors
 number of colors in pict, undefined when pict is not set More...
 
attribute_deprecated AVPicture pict
 
uint8_tdata [4]
 data+linesize for the bitmap of this subtitle. More...
 
int linesize [4]
 
enum AVSubtitleType type
 
char * text
 0 terminated plain UTF-8 text More...
 
char * ass
 0 terminated ASS/SSA compatible event line. More...
 
int flags
 

Detailed Description

Definition at line 3825 of file avcodec.h.

Field Documentation

◆ x

int AVSubtitleRect::x

◆ y

int AVSubtitleRect::y

◆ w

int AVSubtitleRect::w

◆ h

int AVSubtitleRect::h

◆ nb_colors

int AVSubtitleRect::nb_colors

number of colors in pict, undefined when pict is not set

Definition at line 3830 of file avcodec.h.

Referenced by decode_dvd_subtitles(), decode_frame(), display_end_segment(), encode_dvb_subtitles(), find_smallest_bounding_rectangle(), gen_sub_bitmap(), save_subtitle_set(), and xsub_encode().

◆ pict

attribute_deprecated AVPicture AVSubtitleRect::pict

◆ data

uint8_t* AVSubtitleRect::data[4]

◆ linesize

int AVSubtitleRect::linesize[4]

◆ type

enum AVSubtitleType AVSubtitleRect::type

◆ text

char* AVSubtitleRect::text

0 terminated plain UTF-8 text

Definition at line 3848 of file avcodec.h.

Referenced by avsubtitle_free().

◆ ass

char* AVSubtitleRect::ass

0 terminated ASS/SSA compatible event line.

The presentation of this is unaffected by the other values in this struct.

Definition at line 3855 of file avcodec.h.

Referenced by ass_decode_frame(), ass_encode_frame(), avcodec_decode_subtitle2(), avsubtitle_free(), convert_sub_to_old_ass_form(), encode_frame(), ff_ass_add_rect(), gen_sub_text(), mov_text_encode_frame(), and webvtt_encode_frame().

◆ flags

int AVSubtitleRect::flags

The documentation for this struct was generated from the following file: