summaryrefslogtreecommitdiffstats
path: root/libtoolame-dab/toolame.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-15 04:32:00 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-15 04:32:00 +0100
commitba346d2469facf500cbcaa9cf9117ce04ea0b6da (patch)
treefa1e026da22296f8b044c8960c5860377c4fd6e2 /libtoolame-dab/toolame.h
parente65ff4adee3a806881e3c1ebe1b273b9b664eb26 (diff)
downloadfdk-aac-ba346d2469facf500cbcaa9cf9117ce04ea0b6da.tar.gz
fdk-aac-ba346d2469facf500cbcaa9cf9117ce04ea0b6da.tar.bz2
fdk-aac-ba346d2469facf500cbcaa9cf9117ce04ea0b6da.zip
Use libtoolame-dab in dabplus-enc
Diffstat (limited to 'libtoolame-dab/toolame.h')
-rw-r--r--libtoolame-dab/toolame.h38
1 files changed, 27 insertions, 11 deletions
diff --git a/libtoolame-dab/toolame.h b/libtoolame-dab/toolame.h
index 4289ab5..d7f8198 100644
--- a/libtoolame-dab/toolame.h
+++ b/libtoolame-dab/toolame.h
@@ -1,16 +1,32 @@
+#ifndef __TOOLAME_H_
+#define __TOOLAME_H_
-void global_init (void);
-void proginfo (void);
-void short_usage (void);
+/* All exported functions shown here return zero
+ * on success */
-void obtain_parameters (frame_info *, int *, unsigned long *,
- char[MAX_NAME_SIZE], char[MAX_NAME_SIZE]);
-void parse_args (int, char **, frame_info *, int *, unsigned long *,
- char[MAX_NAME_SIZE], char[MAX_NAME_SIZE], char**, char**);
-void print_config (frame_info *, int *,
- char[MAX_NAME_SIZE], char[MAX_NAME_SIZE]);
-void usage (void);
+/* Initialise toolame encoding library. */
+int toolame_init(void);
+int toolame_enable_downmix_stereo(void);
+int toolame_enable_byteswap(void);
-void smr_dump(double smr[2][SBLIMIT], int nch);
+/* Set channel mode. Allowed values:
+ * s, d, j , and m
+ */
+int toolame_set_channel_mode(const char mode);
+
+/* Valid PSY models: 0 to 3 */
+int toolame_set_psy_model(int new_model);
+
+int toolame_set_bitrate(int brate);
+
+/* Enable PAD insertion from the specified file with length */
+int toolame_set_pad(int pad_len);
+
+int toolame_encode_frame(
+ short buffer[2][1152],
+ unsigned char* xpad_data,
+ unsigned char *output_buffer);
+
+#endif // __TOOLAME_H_