zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
info.c File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <ogg/ogg.h>
#include "vorbis/codec.h"
#include "codec_internal.h"
#include "codebook.h"
#include "registry.h"
#include "window.h"
#include "psy.h"
#include "misc.h"
#include "os.h"

Go to the source code of this file.

Macros

#define ENCODE_VENDOR_STRING   "Xiph.Org libVorbis I 20101101 (Schaufenugget)"
 
#define GENERAL_VENDOR_STRING   "Xiph.Org libVorbis 1.3.2"
 

Functions

static void _v_readstring (oggpack_buffer *o, char *buf, int bytes)
 
static void _v_writestring (oggpack_buffer *o, const char *s, int bytes)
 
static int _vorbis_pack_books (oggpack_buffer *opb, vorbis_info *vi)
 
static int _vorbis_pack_comment (oggpack_buffer *opb, vorbis_comment *vc)
 
static int _vorbis_pack_info (oggpack_buffer *opb, vorbis_info *vi)
 
static int _vorbis_unpack_books (vorbis_info *vi, oggpack_buffer *opb)
 
static int _vorbis_unpack_comment (vorbis_comment *vc, oggpack_buffer *opb)
 
static int _vorbis_unpack_info (vorbis_info *vi, oggpack_buffer *opb)
 
static int ilog2 (unsigned int v)
 
static int tagcompare (const char *s1, const char *s2, int n)
 
int vorbis_analysis_headerout (vorbis_dsp_state *v, vorbis_comment *vc, ogg_packet *op, ogg_packet *op_comm, ogg_packet *op_code)
 
void vorbis_comment_add (vorbis_comment *vc, const char *comment)
 
void vorbis_comment_add_tag (vorbis_comment *vc, const char *tag, const char *contents)
 
void vorbis_comment_clear (vorbis_comment *vc)
 
void vorbis_comment_init (vorbis_comment *vc)
 
char * vorbis_comment_query (vorbis_comment *vc, const char *tag, int count)
 
int vorbis_comment_query_count (vorbis_comment *vc, const char *tag)
 
int vorbis_commentheader_out (vorbis_comment *vc, ogg_packet *op)
 
double vorbis_granule_time (vorbis_dsp_state *v, ogg_int64_t granulepos)
 
int vorbis_info_blocksize (vorbis_info *vi, int zo)
 
void vorbis_info_clear (vorbis_info *vi)
 
void vorbis_info_init (vorbis_info *vi)
 
int vorbis_synthesis_headerin (vorbis_info *vi, vorbis_comment *vc, ogg_packet *op)
 
int vorbis_synthesis_idheader (ogg_packet *op)
 
const char * vorbis_version_string (void)
 

Macro Definition Documentation

#define ENCODE_VENDOR_STRING   "Xiph.Org libVorbis I 20101101 (Schaufenugget)"

Definition at line 35 of file info.c.

Referenced by _vorbis_pack_comment().

#define GENERAL_VENDOR_STRING   "Xiph.Org libVorbis 1.3.2"

Definition at line 34 of file info.c.

Referenced by vorbis_version_string().

Function Documentation

static void _v_readstring ( oggpack_buffer o,
char *  buf,
int  bytes 
)
static

Definition at line 55 of file info.c.

References oggpack_read().

Referenced by _vorbis_unpack_comment(), vorbis_synthesis_headerin(), and vorbis_synthesis_idheader().

static void _v_writestring ( oggpack_buffer o,
const char *  s,
int  bytes 
)
static

Definition at line 48 of file info.c.

References oggpack_write().

Referenced by _vorbis_pack_books(), _vorbis_pack_comment(), and _vorbis_pack_info().

static int ilog2 ( unsigned int  v)
static

Definition at line 38 of file info.c.

References ret.

Referenced by _vorbis_pack_info().

static int tagcompare ( const char *  s1,
const char *  s2,
int  n 
)
static

Definition at line 87 of file info.c.

Referenced by vorbis_comment_query(), and vorbis_comment_query_count().

void vorbis_comment_add ( vorbis_comment vc,
const char *  comment 
)
void vorbis_comment_add_tag ( vorbis_comment vc,
const char *  tag,
const char *  contents 
)

Definition at line 77 of file info.c.

References vorbis_comment_add().

void vorbis_comment_init ( vorbis_comment vc)

Definition at line 61 of file info.c.

References memset.

Referenced by _fetch_headers().

char* vorbis_comment_query ( vorbis_comment vc,
const char *  tag,
int  count 
)

Definition at line 97 of file info.c.

References vorbis_comment::comments, i, NULL, tagcompare(), and vorbis_comment::user_comments.

int vorbis_comment_query_count ( vorbis_comment vc,
const char *  tag 
)

Definition at line 118 of file info.c.

References vorbis_comment::comments, i, tagcompare(), and vorbis_comment::user_comments.

double vorbis_granule_time ( vorbis_dsp_state v,
ogg_int64_t  granulepos 
)

Definition at line 647 of file info.c.

References vorbis_info::rate, and vorbis_dsp_state::vi.

int vorbis_info_blocksize ( vorbis_info vi,
int  zo 
)
void vorbis_info_init ( vorbis_info vi)

Definition at line 155 of file info.c.

References _ogg_calloc, vorbis_info::codec_setup, and memset.

Referenced by _fetch_headers().

int vorbis_synthesis_idheader ( ogg_packet op)
const char* vorbis_version_string ( void  )

Definition at line 662 of file info.c.

References GENERAL_VENDOR_STRING.