summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ae_toolame.h
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-21 19:43:37 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-21 19:43:37 +0000
commit91413c4747b34c08108facafcee031068af967d5 (patch)
treed5bd04ce009e6b3737107380293e482bcbeff846 /libmpcodecs/ae_toolame.h
parent07685ad398369f5f06f5d23d5e83a945c0074519 (diff)
downloadmpv-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.h15
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