FFmpeg
Data Fields
AVSubtitleRect Struct Reference

#include <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...
 
uint8_t * data [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 2302 of file avcodec.h.

Field Documentation

◆ x

int AVSubtitleRect::x

top left corner of pict, undefined when pict is not set

Definition at line 2303 of file avcodec.h.

Referenced by copy_av_subtitle(), copy_rectangle(), decode_dvd_subtitles(), encode_dvd_subtitles(), gen_sub_bitmap(), and video_image_display().

◆ y

int AVSubtitleRect::y

top left corner of pict, undefined when pict is not set

Definition at line 2304 of file avcodec.h.

Referenced by copy_av_subtitle(), copy_rectangle(), decode_dvd_subtitles(), encode_dvd_subtitles(), gen_sub_bitmap(), and video_image_display().

◆ w

int AVSubtitleRect::w

width of pict, undefined when pict is not set

Definition at line 2305 of file avcodec.h.

Referenced by copy_av_subtitle(), decode_dvd_subtitles(), encode_dvd_subtitles(), gen_sub_bitmap(), and video_image_display().

◆ h

int AVSubtitleRect::h

height of pict, undefined when pict is not set

Definition at line 2306 of file avcodec.h.

Referenced by copy_av_subtitle(), decode_dvd_subtitles(), encode_dvd_subtitles(), gen_sub_bitmap(), and video_image_display().

◆ nb_colors

int AVSubtitleRect::nb_colors

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

Definition at line 2307 of file avcodec.h.

Referenced by copy_av_subtitle(), decode_dvd_subtitles(), and gen_sub_bitmap().

◆ data

uint8_t* AVSubtitleRect::data[4]

data+linesize for the bitmap of this subtitle.

Can be set for text/ass as well once they are rendered.

Definition at line 2313 of file avcodec.h.

Referenced by copy_av_subtitle(), copy_rectangle(), decode_dvd_subtitles(), encode_dvd_subtitles(), fix_transparency(), gen_sub_bitmap(), and reset_rects().

◆ linesize

int AVSubtitleRect::linesize[4]

◆ type

enum AVSubtitleType AVSubtitleRect::type

◆ text

char* AVSubtitleRect::text

0 terminated plain UTF-8 text

Definition at line 2318 of file avcodec.h.

Referenced by copy_av_subtitle().

◆ 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 2325 of file avcodec.h.

Referenced by copy_av_subtitle(), gen_sub_ass(), and gen_sub_text().

◆ flags

int AVSubtitleRect::flags

Definition at line 2327 of file avcodec.h.

Referenced by copy_av_subtitle(), and decode_dvd_subtitles().


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