aboutsummaryrefslogtreecommitdiffstats
path: root/src/FileInput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-07-08 11:50:26 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-07-08 11:50:26 +0200
commit64b729f3284ead6a71fbeb7f8e0dd22187b21786 (patch)
tree60efb272d174f31bb93cfe561ac1c7ceeb3b412e /src/FileInput.h
parent561b6adce76dd209ebc547fcd98f525501742d97 (diff)
downloadfdk-aac-dabplus-64b729f3284ead6a71fbeb7f8e0dd22187b21786.tar.gz
fdk-aac-dabplus-64b729f3284ead6a71fbeb7f8e0dd22187b21786.tar.bz2
fdk-aac-dabplus-64b729f3284ead6a71fbeb7f8e0dd22187b21786.zip
Add doxygen configuration and target
Diffstat (limited to 'src/FileInput.h')
-rw-r--r--src/FileInput.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/FileInput.h b/src/FileInput.h
index 57cc5a0..937cbd4 100644
--- a/src/FileInput.h
+++ b/src/FileInput.h
@@ -1,5 +1,5 @@
/* ------------------------------------------------------------------
- * Copyright (C) 2014 Matthias P. Braendli
+ * Copyright (C) 2016 Matthias P. Braendli
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,6 +15,16 @@
* and limitations under the License.
* -------------------------------------------------------------------
*/
+/*! \section File Input
+ *
+ * This input reads a wav or raw file.
+ *
+ * The raw input needs to be signed 16-bit per sample data, with
+ * the number of channels corresponding to the command line.
+ *
+ * The wav input must also correspond to the parameters on the command
+ * line (number of channels, rate)
+ */
#ifndef _FILE_INPUT_H_
#define _FILE_INPUT_H_
@@ -35,15 +45,15 @@ class FileInput
~FileInput();
- /* Open the file and prepare the wav decoder.
+ /*! Open the file and prepare the wav decoder.
*
- * Returns nonzero on error
+ * \return nonzero on error
*/
int prepare(void);
- /* Read length bytes into buf.
+ /*! Read length bytes into buf.
*
- * Returns the number of bytes read.
+ * \return the number of bytes read.
*/
ssize_t read(uint8_t* buf, size_t length);
int eof();