
Data Structures | |
| struct | logical_stream_s |
| struct | demux_sys_t |
| struct | stream_header_video_t |
| struct | stream_header_audio_t |
| struct | stream_header_t |
Defines | |
| #define | OGG_BLOCK_SIZE 4096 |
| #define | PACKET_TYPE_HEADER 0x01 |
| #define | PACKET_TYPE_BITS 0x07 |
| #define | PACKET_LEN_BITS01 0xc0 |
| #define | PACKET_LEN_BITS2 0x02 |
| #define | PACKET_IS_SYNCPOINT 0x08 |
Typedefs | |
| typedef struct logical_stream_s | logical_stream_t |
Functions | |
| static int | Open (vlc_object_t *) |
| Probes and initializes. | |
| static void | Close (vlc_object_t *) |
| Releases resources. | |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static int | Demux (demux_t *) |
| static int | Control (demux_t *, int, va_list) |
| static int | Ogg_ReadPage (demux_t *, ogg_page *) |
| static void | Ogg_UpdatePCR (logical_stream_t *, ogg_packet *) |
| static void | Ogg_DecodePacket (demux_t *, logical_stream_t *, ogg_packet *) |
| static int | Ogg_BeginningOfStream (demux_t *p_demux) |
| static int | Ogg_FindLogicalStreams (demux_t *p_demux) |
| static void | Ogg_EndOfStream (demux_t *p_demux) |
| static void | Ogg_LogicalStreamDelete (demux_t *p_demux, logical_stream_t *p_stream) |
| This function delete and release all data associated to a logical_stream_t. | |
| static bool | Ogg_LogicalStreamResetEsFormat (demux_t *p_demux, logical_stream_t *p_stream) |
| static void | Ogg_ExtractMeta (demux_t *p_demux, vlc_fourcc_t i_codec, const uint8_t *p_headers, int i_headers) |
| static void | Ogg_ReadTheoraHeader (logical_stream_t *, ogg_packet *) |
| static void | Ogg_ReadVorbisHeader (logical_stream_t *, ogg_packet *) |
| static void | Ogg_ReadSpeexHeader (logical_stream_t *, ogg_packet *) |
| static void | Ogg_ReadKateHeader (logical_stream_t *, ogg_packet *) |
| static void | Ogg_ReadFlacHeader (demux_t *, logical_stream_t *, ogg_packet *) |
| static void | Ogg_ReadAnnodexHeader (vlc_object_t *, logical_stream_t *, ogg_packet *) |
| static bool | Ogg_ReadDiracHeader (logical_stream_t *, ogg_packet *) |
| static bool | Ogg_IsVorbisFormatCompatible (const es_format_t *p_new, const es_format_t *p_old) |
| This function check if a we need to reset a decoder in case we are reusing an old ES. | |
| static void | Ogg_ExtractXiphMeta (demux_t *p_demux, const void *p_headers, unsigned i_headers, unsigned i_skip) |
| static uint32_t | dirac_uint (bs_t *p_bs) |
| static int | dirac_bool (bs_t *p_bs) |
| #define OGG_BLOCK_SIZE 4096 |
Referenced by Ogg_ReadPage().
| #define PACKET_IS_SYNCPOINT 0x08 |
Referenced by MuxBlock().
| #define PACKET_LEN_BITS01 0xc0 |
Referenced by Ogg_DecodePacket().
| #define PACKET_LEN_BITS2 0x02 |
Referenced by Ogg_DecodePacket().
| #define PACKET_TYPE_BITS 0x07 |
Referenced by Ogg_DecodePacket(), and Ogg_FindLogicalStreams().
| #define PACKET_TYPE_HEADER 0x01 |
Referenced by AddStream(), and Ogg_FindLogicalStreams().
| typedef struct logical_stream_s logical_stream_t |
| static void Close | ( | vlc_object_t * | p_this | ) | [static] |
Releases resources.
Close the module.
Destroys the X11 window.
Disconnect from the X server.
Close a SDL video output.
It destroys an OpenGL vout display.
Terminate a vout display created by Open.
It destroyes a Direct3D vout display.
Terminate an output method created by Open.
Release the drawable.
Close a libcaca video output.
Close a aa video output method.
Close the filter.
Terminate a splitter module.
This function closes a clone video splitter module.
Common close function.
Releases allocate resources.
Close: Destructor.
| p_this | pointer to this filter object | |
| p_this,: | the filter object |
| static int Control | ( | demux_t * | p_demux, | |
| int | i_query, | |||
| va_list | args | |||
| ) | [static] |
References logical_stream_s::b_reinit, DEMUX_GET_META, DEMUX_GET_TIME, DEMUX_HAS_UNSUPPORTED_META, DEMUX_SET_POSITION, DEMUX_SET_TIME, demux_vaControlHelper(), i, demux_sys_t::i_bitrate, demux_sys_t::i_bos, logical_stream_s::i_interpolated_pcr, logical_stream_s::i_pcr, demux_sys_t::i_pcr, demux_sys_t::i_streams, logical_stream_s::os, demux_sys_t::oy, demux_sys_t::p_meta, p_stream, demux_t::p_sys, demux_sys_t::pp_stream, demux_t::s, VLC_EGENERIC, vlc_meta_Merge(), and VLC_SUCCESS.
| static int Demux | ( | demux_t * | p_demux | ) | [static] |
References demux_sys_t::b_page_waiting, logical_stream_s::b_reinit, es_out_Control(), ES_OUT_RESET_PCR, ES_OUT_SET_PCR, logical_stream_s::fmt, es_format_t::i_cat, es_format_t::i_codec, demux_sys_t::i_eos, logical_stream_s::i_interpolated_pcr, demux_sys_t::i_pcr, logical_stream_s::i_pcr, logical_stream_s::i_secondary_header_packets, demux_sys_t::i_streams, msg_Dbg, msg_Err, Ogg_BeginningOfStream(), Ogg_DecodePacket(), Ogg_EndOfStream(), Ogg_ReadPage(), Ogg_ReadTheoraHeader(), Ogg_ReadVorbisHeader(), Ogg_UpdatePCR(), logical_stream_s::os, demux_t::out, demux_sys_t::p_old_stream, p_stream, demux_t::p_sys, demux_sys_t::pp_stream, SPU_ES, TAB_CLEAN, VLC_CODEC_CMML, VLC_CODEC_FLAC, VLC_CODEC_SPEEX, VLC_CODEC_THEORA, VLC_CODEC_VORBIS, VLC_SUCCESS, and VLC_TS_0.
| static int dirac_bool | ( | bs_t * | p_bs | ) | [static] |
| static uint32_t dirac_uint | ( | bs_t * | p_bs | ) | [static] |
| static int Ogg_BeginningOfStream | ( | demux_t * | p_demux | ) | [static] |
References es_format_t::b_packetized, logical_stream_s::b_reinit, es_format_Copy(), es_out_Add(), es_out_Control(), ES_OUT_SET_ES, logical_stream_s::fmt, logical_stream_s::fmt_old, es_format_t::i_bitrate, demux_sys_t::i_bitrate, es_format_t::i_cat, es_format_t::i_codec, logical_stream_s::i_interpolated_pcr, logical_stream_s::i_pcr, logical_stream_s::i_previous_pcr, demux_sys_t::i_streams, msg_Dbg, msg_Warn, Ogg_FindLogicalStreams(), Ogg_LogicalStreamDelete(), demux_t::out, logical_stream_s::p_es, demux_sys_t::p_old_stream, p_stream, demux_t::p_sys, demux_sys_t::pp_stream, VLC_CODEC_A52, VLC_CODEC_CMML, VLC_CODEC_MPGA, VLC_EGENERIC, and VLC_SUCCESS.
Referenced by Demux().
| static void Ogg_DecodePacket | ( | demux_t * | p_demux, | |
| logical_stream_t * | p_stream, | |||
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References es_format_t::audio, AUDIO_ES, logical_stream_s::b_force_backup, BLOCK_FLAG_TYPE_I, block_New, DEFAULT_PTS_DELAY, es_out_Control(), ES_OUT_GET_ES_STATE, ES_OUT_RESET_PCR, es_out_Send(), ES_OUT_SET_ES_FMT, ES_OUT_SET_PCR, logical_stream_s::f_rate, logical_stream_s::fmt, i, demux_sys_t::i_bos, block_t::i_buffer, es_format_t::i_cat, es_format_t::i_codec, block_t::i_dts, es_format_t::i_extra, block_t::i_flags, logical_stream_s::i_granule_shift, logical_stream_s::i_headers, logical_stream_s::i_interpolated_pcr, logical_stream_s::i_kate_num_headers, block_t::i_length, logical_stream_s::i_packets_backup, logical_stream_s::i_pcr, logical_stream_s::i_previous_pcr, block_t::i_pts, audio_format_t::i_rate, msg_Dbg, msg_Warn, msleep, Ogg_ExtractMeta(), Ogg_LogicalStreamResetEsFormat(), Ogg_ReadFlacHeader(), Ogg_UpdatePCR(), demux_t::out, block_t::p_buffer, logical_stream_s::p_es, es_format_t::p_extra, logical_stream_s::p_headers, demux_t::p_sys, PACKET_LEN_BITS01, PACKET_LEN_BITS2, PACKET_TYPE_BITS, SPU_ES, VLC_CODEC_CMML, VLC_CODEC_DIRAC, VLC_CODEC_FLAC, VLC_CODEC_KATE, VLC_CODEC_SPEEX, VLC_CODEC_SUBT, VLC_CODEC_TARKIN, VLC_CODEC_THEORA, VLC_CODEC_VORBIS, VLC_TS_0, VLC_TS_INVALID, and xiph_AppendHeaders().
Referenced by Demux().
| static void Ogg_EndOfStream | ( | demux_t * | p_demux | ) | [static] |
References demux_sys_t::i_bitrate, demux_sys_t::i_streams, Ogg_LogicalStreamDelete(), demux_sys_t::p_meta, demux_t::p_sys, demux_sys_t::pp_stream, and vlc_meta_Delete().
Referenced by Demux().
| static void Ogg_ExtractMeta | ( | demux_t * | p_demux, | |
| vlc_fourcc_t | i_codec, | |||
| const uint8_t * | p_headers, | |||
| int | i_headers | |||
| ) | [static] |
References demux_t::i_update, demux_t::info, INPUT_UPDATE_META, msg_Warn, Ogg_ExtractXiphMeta(), demux_sys_t::p_meta, demux_t::p_sys, VLC_CODEC_CMML, VLC_CODEC_DIRAC, VLC_CODEC_FLAC, VLC_CODEC_KATE, VLC_CODEC_SPEEX, VLC_CODEC_THEORA, and VLC_CODEC_VORBIS.
Referenced by Ogg_DecodePacket().
| static void Ogg_ExtractXiphMeta | ( | demux_t * | p_demux, | |
| const void * | p_headers, | |||
| unsigned | i_headers, | |||
| unsigned | i_skip | |||
| ) | [static] |
References i, demux_sys_t::p_meta, demux_t::p_sys, vorbis_ParseComment(), XIPH_MAX_HEADER_COUNT, and xiph_SplitHeaders().
Referenced by Ogg_ExtractMeta().
| static int Ogg_FindLogicalStreams | ( | demux_t * | p_demux | ) | [static] |
References stream_header_t::audio, es_format_t::audio, AUDIO_ES, stream_header_audio_t::avgbytespersec, logical_stream_s::b_force_backup, demux_sys_t::b_page_waiting, stream_header_t::bits_per_sample, stream_header_audio_t::blockalign, stream_header_t::buffersize, stream_header_audio_t::channels, stream_header_t::default_len, es_format_Init(), logical_stream_s::f_rate, logical_stream_s::fmt, logical_stream_s::fmt_old, GetDWLE(), GetQWLE(), GetWLE(), stream_header_video_t::height, es_format_t::i_bitrate, video_format_t::i_bits_per_pixel, audio_format_t::i_bitspersample, audio_format_t::i_blockalign, demux_sys_t::i_bos, es_format_t::i_cat, audio_format_t::i_channels, es_format_t::i_codec, es_format_t::i_extra, video_format_t::i_frame_rate, video_format_t::i_frame_rate_base, video_format_t::i_height, audio_format_t::i_rate, logical_stream_s::i_secondary_header_packets, logical_stream_s::i_serial_no, demux_sys_t::i_streams, video_format_t::i_width, msg_Dbg, msg_Err, msg_Warn, Ogg_ReadAnnodexHeader(), Ogg_ReadDiracHeader(), Ogg_ReadFlacHeader(), Ogg_ReadKateHeader(), Ogg_ReadPage(), Ogg_ReadSpeexHeader(), Ogg_ReadTheoraHeader(), Ogg_ReadVorbisHeader(), logical_stream_s::os, es_format_t::p_extra, logical_stream_s::p_headers, p_stream, demux_t::p_sys, PACKET_TYPE_BITS, PACKET_TYPE_HEADER, demux_sys_t::pp_stream, stream_header_t::samples_per_unit, stream_header_t::sh, stream_header_t::size, SPU_ES, stream_header_t::streamtype, stream_header_t::subtype, TAB_APPEND, stream_header_t::time_unit, stream_header_t::video, es_format_t::video, VIDEO_ES, VLC_CODEC_FLAC, VLC_CODEC_SUBT, VLC_CODEC_TARKIN, VLC_EGENERIC, VLC_ENOMEM, VLC_FOURCC, VLC_OBJECT, VLC_SUCCESS, wf_tag_to_fourcc(), and stream_header_video_t::width.
Referenced by Ogg_BeginningOfStream().
| static bool Ogg_IsVorbisFormatCompatible | ( | const es_format_t * | p_new, | |
| const es_format_t * | p_old | |||
| ) | [static] |
This function check if a we need to reset a decoder in case we are reusing an old ES.
References i, es_format_t::i_extra, es_format_t::p_extra, XIPH_MAX_HEADER_COUNT, and xiph_SplitHeaders().
Referenced by Ogg_LogicalStreamResetEsFormat().
| static void Ogg_LogicalStreamDelete | ( | demux_t * | p_demux, | |
| logical_stream_t * | p_stream | |||
| ) | [static] |
This function delete and release all data associated to a logical_stream_t.
References es_format_Clean(), es_out_Del(), logical_stream_s::fmt, logical_stream_s::fmt_old, logical_stream_s::os, demux_t::out, logical_stream_s::p_es, and logical_stream_s::p_headers.
Referenced by Ogg_BeginningOfStream(), and Ogg_EndOfStream().
| static bool Ogg_LogicalStreamResetEsFormat | ( | demux_t * | p_demux, | |
| logical_stream_t * | p_stream | |||
| ) | [static] |
References logical_stream_s::fmt, logical_stream_s::fmt_old, es_format_t::i_cat, es_format_t::i_codec, msg_Warn, Ogg_IsVorbisFormatCompatible(), and VLC_CODEC_VORBIS.
Referenced by Ogg_DecodePacket().
| static void Ogg_ReadAnnodexHeader | ( | vlc_object_t * | p_this, | |
| logical_stream_t * | p_stream, | |||
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References AUDIO_ES, logical_stream_s::b_force_backup, logical_stream_s::f_rate, logical_stream_s::fmt, GetDWLE(), GetQWLE(), es_format_t::i_cat, es_format_t::i_codec, logical_stream_s::i_secondary_header_packets, msg_Dbg, Ogg_ReadTheoraHeader(), logical_stream_s::os, SPU_ES, strncasecmp(), UNKNOWN_ES, VIDEO_ES, VLC_CODEC_CMML, VLC_CODEC_MPGV, VLC_CODEC_SPEEX, VLC_CODEC_THEORA, VLC_CODEC_VORBIS, and VLC_FOURCC.
Referenced by Ogg_FindLogicalStreams().
| static bool Ogg_ReadDiracHeader | ( | logical_stream_t * | p_stream, | |
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
| static void Ogg_ReadFlacHeader | ( | demux_t * | p_demux, | |
| logical_stream_t * | p_stream, | |||
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References es_format_t::audio, bs_init(), bs_read(), bs_skip(), logical_stream_s::f_rate, logical_stream_s::fmt, audio_format_t::i_channels, audio_format_t::i_rate, and msg_Dbg.
Referenced by Ogg_DecodePacket(), and Ogg_FindLogicalStreams().
| static void Ogg_ReadKateHeader | ( | logical_stream_t * | p_stream, | |
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References logical_stream_s::b_force_backup, logical_stream_s::f_rate, FindKateCategoryName(), logical_stream_s::fmt, es_format_t::i_cat, es_format_t::i_codec, logical_stream_s::i_granule_shift, logical_stream_s::i_kate_num_headers, es_format_t::psz_description, es_format_t::psz_language, SPU_ES, strdup(), and VLC_CODEC_KATE.
Referenced by Ogg_FindLogicalStreams().
| static int Ogg_ReadPage | ( | demux_t * | p_demux, | |
| ogg_page * | p_oggpage | |||
| ) | [static] |
References OGG_BLOCK_SIZE, demux_sys_t::oy, demux_t::p_sys, demux_t::s, stream_Read(), VLC_EGENERIC, and VLC_SUCCESS.
Referenced by Demux(), and Ogg_FindLogicalStreams().
| static void Ogg_ReadSpeexHeader | ( | logical_stream_t * | p_stream, | |
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References es_format_t::audio, AUDIO_ES, logical_stream_s::b_force_backup, logical_stream_s::f_rate, logical_stream_s::fmt, es_format_t::i_bitrate, es_format_t::i_cat, audio_format_t::i_channels, es_format_t::i_codec, audio_format_t::i_rate, and VLC_CODEC_SPEEX.
Referenced by Ogg_FindLogicalStreams().
| static void Ogg_ReadTheoraHeader | ( | logical_stream_t * | p_stream, | |
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References logical_stream_s::b_force_backup, bs_init(), bs_read(), bs_skip(), logical_stream_s::f_rate, logical_stream_s::fmt, es_format_t::i_bitrate, es_format_t::i_cat, es_format_t::i_codec, video_format_t::i_frame_rate, video_format_t::i_frame_rate_base, logical_stream_s::i_granule_shift, es_format_t::video, VIDEO_ES, and VLC_CODEC_THEORA.
Referenced by Demux(), Ogg_FindLogicalStreams(), and Ogg_ReadAnnodexHeader().
| static void Ogg_ReadVorbisHeader | ( | logical_stream_t * | p_stream, | |
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References es_format_t::audio, AUDIO_ES, logical_stream_s::b_force_backup, logical_stream_s::f_rate, logical_stream_s::fmt, es_format_t::i_bitrate, es_format_t::i_cat, audio_format_t::i_channels, es_format_t::i_codec, audio_format_t::i_rate, and VLC_CODEC_VORBIS.
Referenced by Demux(), and Ogg_FindLogicalStreams().
| static void Ogg_UpdatePCR | ( | logical_stream_t * | p_stream, | |
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References logical_stream_s::f_rate, logical_stream_s::fmt, es_format_t::i_bitrate, es_format_t::i_cat, es_format_t::i_codec, logical_stream_s::i_granule_shift, logical_stream_s::i_interpolated_pcr, logical_stream_s::i_pcr, VIDEO_ES, VLC_CODEC_DIRAC, VLC_CODEC_KATE, and VLC_CODEC_THEORA.
Referenced by Demux(), and Ogg_DecodePacket().
| static int Open | ( | vlc_object_t * | p_this | ) | [static] |
Probes and initializes.
Basic chorus/flanger/delay audio filter This implements a variable delay filter for VLC.
Todo:
Open the module.
Create an X11 window.
Probe the X server.
This function initializes SDL vout method.
It creates an OpenGL vout display.
This function allocates and initialize the DirectX vout display.
It creates a Direct3D vout display.
This function allocates and initializes a FB vout method.
Find the drawable set by libvlc application.
This function initializes libcaca vout method.
This function allocates and initializes a aa vout method.
This function allocates and initializes a Wall splitter module.
Open the filter.
This function allocates and initializes a Clone splitter module.
Open: initialize and create stuff.
Connect to the sftp server and ask for a file.
| p_this,: | the vlc_object |
| p_this | ||
| p_this,: | the filter object |
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
1.5.6