![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | alloc_chain |
struct | allocatedoggpage_t |
struct | capturevideostate_ogg_formatspecific_t |
struct | ogg_packet |
struct | ogg_page |
struct | ogg_stream_state |
struct | ogg_sync_state |
struct | oggpack_buffer |
struct | theora_comment |
Comment header metadata. More... | |
struct | theora_info |
Theora bitstream info. More... | |
struct | theora_state |
Codec internal state and context. More... | |
struct | vorbis_block |
struct | vorbis_comment |
struct | vorbis_dsp_state |
struct | vorbis_info |
struct | yuv_buffer |
Macros | |
#define | LOAD_FORMATSPECIFIC_OGG() |
#define | TH_ENCCTL_SET_VP3_COMPATIBLE (10) |
Typedefs | |
typedef int | channelmapping_t[8] |
Enumerations | |
enum | theora_colorspace { OC_CS_UNSPECIFIED , OC_CS_ITU_REC_470M , OC_CS_ITU_REC_470BG , OC_CS_NSPACES } |
A Colorspace. More... | |
enum | theora_pixelformat { OC_PF_420 , OC_PF_RSVD , OC_PF_422 , OC_PF_444 } |
A Chroma subsampling. More... | |
Functions | |
qbool | SCR_CaptureVideo_Ogg_Available (void) |
void | SCR_CaptureVideo_Ogg_BeginVideo (void) |
void | SCR_CaptureVideo_Ogg_CloseDLL (void) |
static void | SCR_CaptureVideo_Ogg_ConvertFrame_BGRA_to_YUV (u8 *in) |
static void | SCR_CaptureVideo_Ogg_EndVideo (void) |
static void | SCR_CaptureVideo_Ogg_FlushInterleaving (void) |
void | SCR_CaptureVideo_Ogg_Init (void) |
static void | SCR_CaptureVideo_Ogg_Interleave (void) |
static qbool | SCR_CaptureVideo_Ogg_OpenLibrary (void) |
static void | SCR_CaptureVideo_Ogg_SoundFrame (const portable_sampleframe_t *paintbuffer, size_t length) |
static void | SCR_CaptureVideo_Ogg_VideoFrames (int num, u8 *in) |
#define LOAD_FORMATSPECIFIC_OGG | ( | ) |
Definition at line 637 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), SCR_CaptureVideo_Ogg_ConvertFrame_BGRA_to_YUV(), SCR_CaptureVideo_Ogg_EndVideo(), SCR_CaptureVideo_Ogg_FlushInterleaving(), SCR_CaptureVideo_Ogg_Interleave(), SCR_CaptureVideo_Ogg_SoundFrame(), and SCR_CaptureVideo_Ogg_VideoFrames().
#define TH_ENCCTL_SET_VP3_COMPATIBLE (10) |
Definition at line 297 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
enum theora_colorspace |
A Colorspace.
Definition at line 316 of file cap_ogg.c.
enum theora_pixelformat |
A Chroma subsampling.
These enumerate the available chroma subsampling options supported by the theora format. See Section 4.4 of the specification for exact definitions.
Enumerator | |
---|---|
OC_PF_420 | Chroma subsampling by 2 in each direction (4:2:0) |
OC_PF_RSVD | Reserved value. |
OC_PF_422 | Horizonatal chroma subsampling by 2 (4:2:2) |
OC_PF_444 | No chroma subsampling at all (4:4:4) |
Definition at line 921 of file cap_ogg.c.
References theora_info::aspect_denominator, theora_info::aspect_numerator, ogg_page::body, ogg_page::body_len, bound, cl_capturevideo_ogg_theora_bitrate, cl_capturevideo_ogg_theora_keyframe_auto_threshold, cl_capturevideo_ogg_theora_keyframe_bitrate_multiplier, cl_capturevideo_ogg_theora_keyframe_maxinterval, cl_capturevideo_ogg_theora_keyframe_mininterval, cl_capturevideo_ogg_theora_noise_sensitivity, cl_capturevideo_ogg_theora_quality, cl_capturevideo_ogg_theora_sharpness, cl_capturevideo_ogg_theora_vp3compat, cl_capturevideo_ogg_vorbis_quality, cls, theora_info::colorspace, Con_DPrintf(), CON_ERROR, Con_Printf(), theora_info::dropframes_p, FindFraction(), format, theora_info::fps_denominator, theora_info::fps_numerator, theora_info::frame_height, theora_info::frame_width, FS_OpenRealFile(), FS_Write(), ogg_page::header, ogg_page::header_len, theora_info::height, i, int(), cvar_t::integer, theora_info::keyframe_auto_p, theora_info::keyframe_auto_threshold, theora_info::keyframe_data_target_bitrate, theora_info::keyframe_frequency, theora_info::keyframe_frequency_force, theora_info::keyframe_mindistance, LOAD_FORMATSPECIFIC_OGG, max, Mem_Alloc, theora_info::noise_sensitivity, OC_CS_UNSPECIFIED, OC_PF_420, theora_info::pixelformat, qogg_stream_flush, qogg_stream_init, qogg_stream_packetin, qogg_stream_pageout, qtheora_comment_clear, qtheora_comment_init, qtheora_control, qtheora_encode_comment, qtheora_encode_header, qtheora_encode_init, qtheora_encode_tables, qtheora_info_clear, qtheora_info_init, theora_info::quality, theora_info::quick_p, qvorbis_analysis_headerout, qvorbis_analysis_init, qvorbis_block_init, qvorbis_comment_clear, qvorbis_comment_init, qvorbis_encode_init_vbr, qvorbis_info_init, SCR_CaptureVideo_Ogg_EndVideo(), SCR_CaptureVideo_Ogg_SoundFrame(), SCR_CaptureVideo_Ogg_VideoFrames(), theora_info::sharpness, theora_info::target_bitrate, tc, tempmempool, TH_ENCCTL_SET_VP3_COMPATIBLE, va(), cvar_t::value, vid_pixelheight, and theora_info::width.
Definition at line 808 of file cap_ogg.c.
References b, cls, format, LOAD_FORMATSPECIFIC_OGG, yuv_buffer::u, yuv_buffer::uv_stride, yuv_buffer::v, w, x, y, yuv_buffer::y, and yuv_buffer::y_stride.
Referenced by SCR_CaptureVideo_Ogg_VideoFrames().
Definition at line 715 of file cap_ogg.c.
References ogg_page::body, ogg_page::body_len, cls, format, FS_Close(), FS_Write(), ogg_page::header, ogg_page::header_len, LOAD_FORMATSPECIFIC_OGG, Mem_Free, NULL, qogg_stream_clear, qogg_stream_flush, qogg_stream_packetin, qogg_stream_pageout, qtheora_clear, qtheora_encode_packetout, qtheora_encode_YUVin, qvorbis_analysis, qvorbis_analysis_blockout, qvorbis_analysis_wrote, qvorbis_bitrate_addblock, qvorbis_bitrate_flushpacket, qvorbis_block_clear, qvorbis_dsp_clear, qvorbis_info_clear, SCR_CaptureVideo_Ogg_FlushInterleaving(), and SCR_CaptureVideo_Ogg_Interleave().
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
Definition at line 697 of file cap_ogg.c.
References cls, format, FS_Write(), and LOAD_FORMATSPECIFIC_OGG.
Referenced by SCR_CaptureVideo_Ogg_EndVideo().
Definition at line 577 of file cap_ogg.c.
References cl_capturevideo_ogg_theora_bitrate, cl_capturevideo_ogg_theora_keyframe_auto_threshold, cl_capturevideo_ogg_theora_keyframe_bitrate_multiplier, cl_capturevideo_ogg_theora_keyframe_maxinterval, cl_capturevideo_ogg_theora_keyframe_mininterval, cl_capturevideo_ogg_theora_noise_sensitivity, cl_capturevideo_ogg_theora_quality, cl_capturevideo_ogg_theora_sharpness, cl_capturevideo_ogg_theora_vp3compat, cl_capturevideo_ogg_vorbis_quality, Cvar_RegisterVariable(), and SCR_CaptureVideo_Ogg_OpenLibrary().
Referenced by CL_Screen_Init().
Definition at line 639 of file cap_ogg.c.
References ogg_page::body, ogg_page::body_len, cls, format, FS_Write(), ogg_page::header, ogg_page::header_len, LOAD_FORMATSPECIFIC_OGG, qogg_page_granulepos, qogg_stream_pageout, qtheora_granule_time, qvorbis_granule_time, and Sys_Error().
Referenced by SCR_CaptureVideo_Ogg_EndVideo(), SCR_CaptureVideo_Ogg_SoundFrame(), and SCR_CaptureVideo_Ogg_VideoFrames().
Definition at line 508 of file cap_ogg.c.
References NULL, og_dll, oggfuncs, Sys_LoadDependency(), th_dll, theorafuncs, ve_dll, vo_dll, vorbisencfuncs, and vorbisfuncs.
Referenced by SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 891 of file cap_ogg.c.
References b, bound, cls, format, i, length, LOAD_FORMATSPECIFIC_OGG, mapping, NULL, paintbuffer, qogg_stream_packetin, qvorbis_analysis, qvorbis_analysis_blockout, qvorbis_analysis_buffer, qvorbis_analysis_wrote, qvorbis_bitrate_addblock, qvorbis_bitrate_flushpacket, and SCR_CaptureVideo_Ogg_Interleave().
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
Definition at line 850 of file cap_ogg.c.
References format, LOAD_FORMATSPECIFIC_OGG, qogg_stream_packetin, qtheora_encode_packetout, qtheora_encode_YUVin, SCR_CaptureVideo_Ogg_ConvertFrame_BGRA_to_YUV(), and SCR_CaptureVideo_Ogg_Interleave().
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 10 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 14 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 11 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 12 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 13 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 15 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 9 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 16 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 8 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
|
static |
Definition at line 17 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_Init().
channelmapping_t mapping[8] |
Definition at line 879 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_SoundFrame().
|
static |
Definition at line 506 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_Available(), SCR_CaptureVideo_Ogg_CloseDLL(), and SCR_CaptureVideo_Ogg_OpenLibrary().
|
static |
Definition at line 449 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_OpenLibrary().
Definition at line 113 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_Interleave().
|
static |
Definition at line 112 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo().
|
static |
Definition at line 107 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), and SCR_CaptureVideo_Ogg_EndVideo().
|
static |
Definition at line 111 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 105 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), SCR_CaptureVideo_Ogg_EndVideo(), SCR_CaptureVideo_Ogg_SoundFrame(), and SCR_CaptureVideo_Ogg_VideoFrames().
|
static |
Definition at line 106 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo(), SCR_CaptureVideo_Ogg_EndVideo(), and SCR_CaptureVideo_Ogg_Interleave().
|
static |
Definition at line 442 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo().
|
static |
Definition at line 444 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 443 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 446 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 438 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 437 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 433 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 435 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo(), and SCR_CaptureVideo_Ogg_VideoFrames().
|
static |
Definition at line 439 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 434 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo(), and SCR_CaptureVideo_Ogg_VideoFrames().
|
static |
Definition at line 445 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_Interleave().
|
static |
Definition at line 441 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 440 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 278 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo(), and SCR_CaptureVideo_Ogg_SoundFrame().
|
static |
Definition at line 277 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo(), and SCR_CaptureVideo_Ogg_SoundFrame().
|
static |
Definition at line 275 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_SoundFrame().
|
static |
Definition at line 270 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 268 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 276 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo(), and SCR_CaptureVideo_Ogg_SoundFrame().
|
static |
Definition at line 280 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo(), and SCR_CaptureVideo_Ogg_SoundFrame().
|
static |
Definition at line 281 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo(), and SCR_CaptureVideo_Ogg_SoundFrame().
|
static |
Definition at line 261 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo().
|
static |
Definition at line 260 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 258 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 257 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
|
static |
Definition at line 262 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo().
|
static |
Definition at line 287 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 263 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_Interleave().
|
static |
Definition at line 256 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_EndVideo().
|
static |
Definition at line 255 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_BeginVideo().
|
static |
Definition at line 506 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_Available(), SCR_CaptureVideo_Ogg_CloseDLL(), and SCR_CaptureVideo_Ogg_OpenLibrary().
|
static |
Definition at line 488 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_OpenLibrary().
|
static |
Definition at line 506 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_Available(), SCR_CaptureVideo_Ogg_CloseDLL(), and SCR_CaptureVideo_Ogg_OpenLibrary().
|
static |
Definition at line 506 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_Available(), SCR_CaptureVideo_Ogg_CloseDLL(), and SCR_CaptureVideo_Ogg_OpenLibrary().
|
static |
Definition at line 460 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_OpenLibrary().
|
static |
Definition at line 466 of file cap_ogg.c.
Referenced by SCR_CaptureVideo_Ogg_OpenLibrary().