aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacpsy.h
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2008-08-18 05:39:44 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2008-08-18 05:39:44 +0000
commitbf689db0698044d34c9fd472d3f57a619eeea870 (patch)
treec15bd10d54901317616e39caf9e731750c56325b /libavcodec/aacpsy.h
parentb54bf2d6ebae3c6665e86179e17d26e75b2b1aa3 (diff)
downloadffmpeg-bf689db0698044d34c9fd472d3f57a619eeea870.tar.gz
Add okayed chunks of AAC encoder psychoacoustic model
Originally committed as revision 14822 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aacpsy.h')
-rw-r--r--libavcodec/aacpsy.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/libavcodec/aacpsy.h b/libavcodec/aacpsy.h
new file mode 100644
index 0000000000..d0dbb078e9
--- /dev/null
+++ b/libavcodec/aacpsy.h
@@ -0,0 +1,50 @@
+/*
+ * AAC encoder psychoacoustic model
+ * Copyright (C) 2008 Konstantin Shishkov
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef FFMPEG_AACPSY_H
+#define FFMPEG_AACPSY_H
+
+#include "avcodec.h"
+#include "aac.h"
+#include "lowpass.h"
+
+enum AACPsyModelType{
+ AAC_PSY_TEST, ///< a sample model to exercise encoder
+ AAC_PSY_3GPP, ///< model following recommendations from 3GPP TS 26.403
+
+ AAC_NB_PSY_MODELS ///< total number of psychoacoustic models, since it's not a part of the ABI new models can be added freely
+};
+
+/**
+ * context used by psychoacoustic model
+ */
+typedef struct AACPsyContext {
+ AVCodecContext *avctx; ///< encoder context
+}AACPsyContext;
+
+/**
+ * Cleanup model context at the end.
+ *
+ * @param ctx model context
+ */
+void ff_aac_psy_end(AACPsyContext *ctx);
+
+#endif /* FFMPEG_AACPSY_H */