xine-lib  1.2.9
Data Structures | Typedefs | Functions | Variables
buffer_types.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <inttypes.h>
#include <xine/buffer.h>
#include <xine/xineutils.h>
#include <xine/xine_internal.h>
#include "bswap.h"

Data Structures

struct  video_db_s
 
struct  audio_db_s
 

Typedefs

typedef struct video_db_s video_db_t
 
typedef struct audio_db_s audio_db_t
 

Functions

uint32_t _x_fourcc_to_buf_video (uint32_t fourcc_int)
 Returns the BUF_VIDEO_xxx for the given fourcc. More...
 
const char * _x_buf_video_name (uint32_t buf_type)
 Returns video codec name given the buffer type. More...
 
uint32_t _x_formattag_to_buf_audio (uint32_t formattag)
 Returns the BUF_AUDIO_xxx for the given formattag. More...
 
const char * _x_buf_audio_name (uint32_t buf_type)
 Returns audio codec name given the buffer type. More...
 
static void code_to_text (char ascii[5], uint32_t code)
 
void _x_report_video_fourcc (xine_t *xine, const char *module, uint32_t code)
 
void _x_report_audio_format_tag (xine_t *xine, const char *module, uint32_t code)
 
void _x_bmiheader_le2me (xine_bmiheader *bih)
 
void _x_waveformatex_le2me (xine_waveformatex *wavex)
 

Variables

static const video_db_t video_db []
 
static const audio_db_t audio_db []
 

Typedef Documentation

◆ audio_db_t

typedef struct audio_db_s audio_db_t

◆ video_db_t

typedef struct video_db_s video_db_t

Function Documentation

◆ _x_bmiheader_le2me()

void _x_bmiheader_le2me ( xine_bmiheader bih)

◆ _x_buf_audio_name()

const char* _x_buf_audio_name ( uint32_t  buf_type)

Returns audio codec name given the buffer type.

Parameters
buf_typeOne of the BUF_AUDIO_xxx values.
See also
_x_buf_video_name

References audio_db, audio_db_s::buf_type, and audio_db_s::name.

Referenced by asf_read_header(), audio_decoder_loop(), and demux_avi_send_headers().

◆ _x_buf_video_name()

const char* _x_buf_video_name ( uint32_t  buf_type)

Returns video codec name given the buffer type.

Parameters
buf_typeOne of the BUF_VIDEO_xxx values.
See also
_x_buf_audio_name

References video_db_s::buf_type, video_db_s::name, and video_db.

Referenced by asf_read_header(), demux_avi_send_headers(), and video_decoder_loop().

◆ _x_formattag_to_buf_audio()

uint32_t _x_formattag_to_buf_audio ( uint32_t  formattag)

◆ _x_fourcc_to_buf_video()

uint32_t _x_fourcc_to_buf_video ( uint32_t  fourcc_int)

Returns the BUF_VIDEO_xxx for the given fourcc.

Parameters
fourcc_int32-bit FOURCC value in machine endianness
See also
_x_formattag_to_buf_audio

example: fourcc_int = *(uint32_t *)fourcc_char;

References video_db_s::buf_type, video_db_s::fourcc, and video_db.

Referenced by asf_read_header(), decode_dshow_header(), decode_video_header(), demux_avi_send_headers(), demux_qt_send_headers(), open_film_file(), open_nsv_file(), open_smjpeg_file(), parse_track_entry(), and real_parse_headers().

◆ _x_report_audio_format_tag()

void _x_report_audio_format_tag ( xine_t xine,
const char *  module,
uint32_t  code 
)

◆ _x_report_video_fourcc()

void _x_report_video_fourcc ( xine_t ,
const char *  module,
uint32_t   
)

◆ _x_waveformatex_le2me()

void _x_waveformatex_le2me ( xine_waveformatex wavex)

◆ code_to_text()

static void code_to_text ( char  ascii[5],
uint32_t  code 
)
static

Variable Documentation

◆ audio_db

const audio_db_t audio_db[]
static

◆ video_db

const video_db_t video_db[]
static