UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
codec_info_t Struct Reference
Collaboration diagram for codec_info_t:
Collaboration graph

Public Attributes

int bits_per_channel
 Number of bits per color channel.
 
int block_size_bytes
 Bytes per pixel block (packed pixelformats only, otherwise set to 1)
 
int block_size_pixels
 Bytes per pixel block (packed pixelformats only, otherwise set to 1)
 
unsigned const_size:1
 Indicates if data length is constant for all resolutions (hw surfaces)
 
uint32_t fcc
 FourCC.
 
const char * file_extension
 Extension that should be added to name if frame is saved to file.
 
int h_align
 Number of pixels each line is aligned to.
 
unsigned interframe:1
 Indicates if compression is interframe.
 
const char * name
 displayed name
 
const char * name_long
 more descriptive name
 
unsigned opaque:1
 If codec is opaque (= compressed)
 
unsigned rgb:1
 Whether pixelformat is RGB.
 
int subsampling
 Decimal representation of subsampling in format 'JabA', eg. 4440 (last number is alpha), 0 if undefined.
 

Detailed Description

Defines codec metadata

Note
Members that are not relevant for specified codec (eg. bpp, rgb for opaque and interframe for not opaque) should be zero.

Definition at line 99 of file video_codec.c.

Member Data Documentation

◆ bits_per_channel

int codec_info_t::bits_per_channel

Number of bits per color channel.

Definition at line 106 of file video_codec.c.

Referenced by get_bits_per_component(), and get_pixfmt_desc().

◆ block_size_bytes

int codec_info_t::block_size_bytes

Bytes per pixel block (packed pixelformats only, otherwise set to 1)

Definition at line 103 of file video_codec.c.

Referenced by get_pf_block_bytes(), vc_get_linesize(), and vc_get_size().

◆ block_size_pixels

int codec_info_t::block_size_pixels

Bytes per pixel block (packed pixelformats only, otherwise set to 1)

Definition at line 104 of file video_codec.c.

Referenced by get_pf_block_pixels(), vc_get_linesize(), and vc_get_size().

◆ const_size

unsigned codec_info_t::const_size

Indicates if data length is constant for all resolutions (hw surfaces)

Definition at line 110 of file video_codec.c.

Referenced by codec_is_const_size().

◆ fcc

uint32_t codec_info_t::fcc

FourCC.

Definition at line 102 of file video_codec.c.

Referenced by get_codec_from_fcc(), and get_fourcc().

◆ file_extension

const char* codec_info_t::file_extension

Extension that should be added to name if frame is saved to file.

Definition at line 112 of file video_codec.c.

Referenced by get_codec_file_extension(), and get_codec_from_file_extension().

◆ h_align

int codec_info_t::h_align

Number of pixels each line is aligned to.

Definition at line 105 of file video_codec.c.

Referenced by vc_get_linesize().

◆ interframe

unsigned codec_info_t::interframe

Indicates if compression is interframe.

Definition at line 109 of file video_codec.c.

Referenced by is_codec_interframe().

◆ name

const char* codec_info_t::name

displayed name

Definition at line 100 of file video_codec.c.

Referenced by get_cineform_module_info(), get_cmpto_j2k_module_info(), and get_codec_name().

◆ name_long

const char* codec_info_t::name_long

more descriptive name

Definition at line 101 of file video_codec.c.

Referenced by get_codec_name_long().

◆ opaque

unsigned codec_info_t::opaque

If codec is opaque (= compressed)

Definition at line 108 of file video_codec.c.

Referenced by is_codec_opaque().

◆ rgb

unsigned codec_info_t::rgb

Whether pixelformat is RGB.

Definition at line 107 of file video_codec.c.

Referenced by codec_is_a_rgb(), and get_pixfmt_desc().

◆ subsampling

int codec_info_t::subsampling

Decimal representation of subsampling in format 'JabA', eg. 4440 (last number is alpha), 0 if undefined.

Definition at line 111 of file video_codec.c.

Referenced by get_pixfmt_desc(), and get_subsampling().


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