DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
theora_info Struct Reference

Theora bitstream info. More...

+ Collaboration diagram for theora_info:

Data Fields

uint32_t aspect_denominator
 pixel aspect ratio denominator
 
uint32_t aspect_numerator
 pixel aspect ratio numerator
 
voidcodec_setup
 
theora_colorspace colorspace
 colorspace
 
int dropframes_p
 
uint32_t fps_denominator
 frame rate denominator
 
uint32_t fps_numerator
 frame rate numerator
 
uint32_t frame_height
 display frame height
 
uint32_t frame_width
 display frame width

 
uint32_t height
 encoded frame height
 
int keyframe_auto_p
 
int32_t keyframe_auto_threshold
 
uint32_t keyframe_data_target_bitrate
 
uint32_t keyframe_frequency
 
uint32_t keyframe_frequency_force
 
uint32_t keyframe_mindistance
 
int32_t noise_sensitivity
 
uint32_t offset_x
 horizontal offset of the displayed frame
 
uint32_t offset_y
 vertical offset of the displayed frame
 
theora_pixelformat pixelformat
 chroma subsampling mode to expect
 
int quality
 Nominal quality setting, 0-63.
 
int quick_p
 Quick encode/decode.
 
int32_t sharpness
 
int target_bitrate
 nominal bitrate in bits per second
 
unsigned char version_major
 
unsigned char version_minor
 
unsigned char version_subminor
 
uint32_t width
 encoded frame width

 

Detailed Description

Theora bitstream info.

Contains the basic playback parameters for a stream, corresponding to the initial 'info' header packet.

Encoded theora frames must be a multiple of 16 in width and height. To handle other frame sizes, a crop rectangle is specified in frame_height and frame_width, offset_x and * offset_y. The offset and size should still be a multiple of 2 to avoid chroma sampling shifts. Offset values in this structure are measured from the upper left of the image.

Frame rate, in frames per second, is stored as a rational fraction. Aspect ratio is also stored as a rational fraction, and refers to the aspect ratio of the frame pixels, not of the overall frame itself.

See examples/encoder_example.c for usage examples of the other paramters and good default settings for the encoder parameters.

Definition at line 357 of file cap_ogg.c.

Field Documentation

◆ aspect_denominator

uint32_t theora_info::aspect_denominator

pixel aspect ratio denominator

Definition at line 367 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ aspect_numerator

uint32_t theora_info::aspect_numerator

pixel aspect ratio numerator

Definition at line 366 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ codec_setup

void* theora_info::codec_setup

Definition at line 378 of file cap_ogg.c.

◆ colorspace

theora_colorspace theora_info::colorspace

colorspace

Definition at line 368 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ dropframes_p

int theora_info::dropframes_p

Definition at line 381 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ fps_denominator

uint32_t theora_info::fps_denominator

frame rate denominator

Definition at line 365 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ fps_numerator

uint32_t theora_info::fps_numerator

frame rate numerator

Definition at line 364 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ frame_height

uint32_t theora_info::frame_height

display frame height

Definition at line 361 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ frame_width

uint32_t theora_info::frame_width

display frame width

Definition at line 360 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ height

uint32_t theora_info::height

encoded frame height

Definition at line 359 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ keyframe_auto_p

int theora_info::keyframe_auto_p

Definition at line 382 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ keyframe_auto_threshold

int32_t theora_info::keyframe_auto_threshold

Definition at line 387 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ keyframe_data_target_bitrate

uint32_t theora_info::keyframe_data_target_bitrate

Definition at line 386 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ keyframe_frequency

uint32_t theora_info::keyframe_frequency

Definition at line 383 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ keyframe_frequency_force

uint32_t theora_info::keyframe_frequency_force

Definition at line 384 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ keyframe_mindistance

uint32_t theora_info::keyframe_mindistance

Definition at line 388 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ noise_sensitivity

int32_t theora_info::noise_sensitivity

Definition at line 389 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ offset_x

uint32_t theora_info::offset_x

horizontal offset of the displayed frame

Definition at line 362 of file cap_ogg.c.

◆ offset_y

uint32_t theora_info::offset_y

vertical offset of the displayed frame

Definition at line 363 of file cap_ogg.c.

◆ pixelformat

theora_pixelformat theora_info::pixelformat

chroma subsampling mode to expect

Definition at line 392 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ quality

int theora_info::quality

Nominal quality setting, 0-63.

Definition at line 370 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ quick_p

int theora_info::quick_p

Quick encode/decode.

Definition at line 371 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ sharpness

int32_t theora_info::sharpness

Definition at line 390 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ target_bitrate

int theora_info::target_bitrate

nominal bitrate in bits per second

Definition at line 369 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().

◆ version_major

unsigned char theora_info::version_major

Definition at line 374 of file cap_ogg.c.

◆ version_minor

unsigned char theora_info::version_minor

Definition at line 375 of file cap_ogg.c.

◆ version_subminor

unsigned char theora_info::version_subminor

Definition at line 376 of file cap_ogg.c.

◆ width

uint32_t theora_info::width

encoded frame width

Definition at line 358 of file cap_ogg.c.

Referenced by SCR_CaptureVideo_Ogg_BeginVideo().


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