summaryrefslogtreecommitdiff
path: root/libavcodec/cbrt_data.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2016-03-12 19:08:21 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2016-03-13 18:15:57 +0100
commit7c93f2c0b940e07c2a1fd0fb8f7ffc94dcfdb1aa (patch)
tree5e3ae0a4203931fe1af970ebcb1115f1dd2ab452 /libavcodec/cbrt_data.c
parent0c33ceda91dd646414a2e0ec832bada5acb6b762 (diff)
downloadffmpeg-7c93f2c0b940e07c2a1fd0fb8f7ffc94dcfdb1aa.tar.gz
Move cbrt tables to separate cbrt_data(_fixed).c files.
Allows sharing and reusing the data between different files. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/cbrt_data.c')
-rw-r--r--libavcodec/cbrt_data.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/libavcodec/cbrt_data.c b/libavcodec/cbrt_data.c
new file mode 100644
index 0000000000..f5d9778a6f
--- /dev/null
+++ b/libavcodec/cbrt_data.c
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2016 Reimar Döffinger <Reimar.Doeffinger@gmx.de>
+ *
+ * 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
+ */
+
+#include "config.h"
+#include "cbrt_data.h"
+
+#if CONFIG_HARDCODED_TABLES
+#include "libavcodec/cbrt_tables.h"
+#else
+#include "cbrt_tablegen.h"
+#endif