Mercurial > mplayer.hg
diff libmpcodecs/ae_toolame.h @ 13425:a87f1a948a24
encoding to mp2 with libtoolame - only cbr atm
author | nicodvb |
---|---|
date | Tue, 21 Sep 2004 19:43:37 +0000 |
parents | |
children | e84a6ae9d51e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libmpcodecs/ae_toolame.h Tue Sep 21 19:43:37 2004 +0000 @@ -0,0 +1,15 @@ +#ifndef MPAE_TOOLAME_H +#define MPAE_TOOLAME_H + +#include <toolame.h> + +typedef struct { + toolame_options *toolame_ctx; + int channels, srate, bitrate; + int16_t left_pcm[1152], right_pcm[1152]; +} mpae_toolame_ctx; + +mpae_toolame_ctx *mpae_init_toolame(int channels, int srate); +int mpae_encode_toolame(mpae_toolame_ctx *ctx, uint8_t *dest, int nsamples, void *src, int max_size); + +#endif