Mercurial > libavcodec.hg
changeset 1017:e113a950c074 libavcodec
Function renaming. Solves some namespace conflicts
author | nickols_k |
---|---|
date | Mon, 20 Jan 2003 16:33:47 +0000 |
parents | 5840ee827cc9 |
children | 696ccd81403e |
files | a52dec.c liba52/a52.h liba52/parse.c |
diffstat | 3 files changed, 20 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/a52dec.c Sun Jan 19 20:04:35 2003 +0000 +++ b/a52dec.c Mon Jan 20 16:33:47 2003 +0000 @@ -98,12 +98,12 @@ #else /* static linked version */ s->handle = 0; - s->a52_init = a52_init; - s->a52_samples = a52_samples; - s->a52_syncinfo = a52_syncinfo; - s->a52_frame = a52_frame; - s->a52_block = a52_block; - s->a52_free = a52_free; + s->a52_init = ff_a52_init; + s->a52_samples = ff_a52_samples; + s->a52_syncinfo = ff_a52_syncinfo; + s->a52_frame = ff_a52_frame; + s->a52_block = ff_a52_block; + s->a52_free = ff_a52_free; #endif s->state = s->a52_init(0); /* later use CPU flags */ s->samples = s->a52_samples(s->state);
--- a/liba52/a52.h Sun Jan 19 20:04:35 2003 +0000 +++ b/liba52/a52.h Mon Jan 20 16:33:47 2003 +0000 @@ -50,15 +50,15 @@ #define A52_LFE 16 #define A52_ADJUST_LEVEL 32 -a52_state_t * a52_init (uint32_t mm_accel); -sample_t * a52_samples (a52_state_t * state); -int a52_syncinfo (uint8_t * buf, int * flags, +extern a52_state_t * ff_a52_init (uint32_t mm_accel); +extern sample_t * ff_a52_samples (a52_state_t * state); +extern int ff_a52_syncinfo (uint8_t * buf, int * flags, int * sample_rate, int * bit_rate); -int a52_frame (a52_state_t * state, uint8_t * buf, int * flags, +extern int ff_a52_frame (a52_state_t * state, uint8_t * buf, int * flags, sample_t * level, sample_t bias); -void a52_dynrng (a52_state_t * state, +extern void ff_a52_dynrng (a52_state_t * state, sample_t (* call) (sample_t, void *), void * data); -int a52_block (a52_state_t * state); -void a52_free (a52_state_t * state); +extern int ff_a52_block (a52_state_t * state); +extern void ff_a52_free (a52_state_t * state); #endif /* A52_H */
--- a/liba52/parse.c Sun Jan 19 20:04:35 2003 +0000 +++ b/liba52/parse.c Mon Jan 20 16:33:47 2003 +0000 @@ -45,7 +45,7 @@ static uint8_t halfrate[12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3}; -a52_state_t * a52_init (uint32_t mm_accel) +a52_state_t * ff_a52_init (uint32_t mm_accel) { a52_state_t * state; int i; @@ -70,12 +70,12 @@ return state; } -sample_t * a52_samples (a52_state_t * state) +sample_t * ff_a52_samples (a52_state_t * state) { return state->samples; } -int a52_syncinfo (uint8_t * buf, int * flags, +int ff_a52_syncinfo (uint8_t * buf, int * flags, int * sample_rate, int * bit_rate) { static int rate[] = { 32, 40, 48, 56, 64, 80, 96, 112, @@ -120,7 +120,7 @@ } } -int a52_frame (a52_state_t * state, uint8_t * buf, int * flags, +int ff_a52_frame (a52_state_t * state, uint8_t * buf, int * flags, sample_t * level, sample_t bias) { static sample_t clev[4] = {LEVEL_3DB, LEVEL_45DB, LEVEL_6DB, LEVEL_45DB}; @@ -192,7 +192,7 @@ return 0; } -void a52_dynrng (a52_state_t * state, +void ff_a52_dynrng (a52_state_t * state, sample_t (* call) (sample_t, void *), void * data) { state->dynrnge = 0; @@ -512,7 +512,7 @@ } } -int a52_block (a52_state_t * state) +int ff_a52_block (a52_state_t * state) { static const uint8_t nfchans_tbl[] = {2, 1, 2, 3, 3, 4, 4, 5, 1, 1, 2}; static int rematrix_band[4] = {25, 37, 61, 253}; @@ -887,7 +887,7 @@ return 0; } -void a52_free (a52_state_t * state) +void ff_a52_free (a52_state_t * state) { free (state->samples); free (state);