diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-21 19:43:37 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-21 19:43:37 +0000 |
commit | 91413c4747b34c08108facafcee031068af967d5 (patch) | |
tree | d5bd04ce009e6b3737107380293e482bcbeff846 /libmpcodecs/ae_toolame.h | |
parent | 07685ad398369f5f06f5d23d5e83a945c0074519 (diff) | |
download | mpv-91413c4747b34c08108facafcee031068af967d5.tar.bz2 mpv-91413c4747b34c08108facafcee031068af967d5.tar.xz |
encoding to mp2 with libtoolame - only cbr atm
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13426 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/ae_toolame.h')
-rw-r--r-- | libmpcodecs/ae_toolame.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libmpcodecs/ae_toolame.h b/libmpcodecs/ae_toolame.h new file mode 100644 index 0000000000..fea0c5a117 --- /dev/null +++ b/libmpcodecs/ae_toolame.h @@ -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 |