2013-06-09 18:03:33 +00:00
|
|
|
/*
|
|
|
|
* On2 Audio for Video Codec decoder
|
|
|
|
*
|
|
|
|
* Copyright (c) 2013 Konstantin Shishkov
|
|
|
|
*
|
2014-04-23 18:47:13 +00:00
|
|
|
* This file is part of FFmpeg.
|
2013-06-09 18:03:33 +00:00
|
|
|
*
|
2014-04-23 18:47:13 +00:00
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2013-06-09 18:03:33 +00:00
|
|
|
* 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.
|
|
|
|
*
|
2014-04-23 18:47:13 +00:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2013-06-09 18:03:33 +00:00
|
|
|
* 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
|
2014-04-23 18:47:13 +00:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2013-06-09 18:03:33 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2016-01-29 02:25:13 +00:00
|
|
|
#ifndef AVCODEC_ON2AVCDATA_H
|
|
|
|
#define AVCODEC_ON2AVCDATA_H
|
2013-06-09 18:03:33 +00:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define ON2AVC_MAX_BANDS 112
|
|
|
|
#define ON2AVC_ESC_CB 15
|
|
|
|
|
|
|
|
typedef struct On2AVCMode {
|
|
|
|
int num_windows;
|
|
|
|
int num_bands;
|
|
|
|
const int *band_start;
|
|
|
|
} On2AVCMode;
|
|
|
|
|
|
|
|
extern const On2AVCMode ff_on2avc_modes_40[8];
|
|
|
|
extern const On2AVCMode ff_on2avc_modes_44[8];
|
|
|
|
|
|
|
|
#define ON2AVC_SCALE_DIFFS 121
|
2020-10-25 11:48:41 +00:00
|
|
|
extern const uint8_t ff_on2avc_scale_diff_syms[];
|
|
|
|
extern const uint8_t ff_on2avc_scale_diff_bits[];
|
2013-06-09 18:03:33 +00:00
|
|
|
|
2020-10-25 13:04:59 +00:00
|
|
|
extern const uint8_t ff_on2avc_cb_lens[];
|
|
|
|
extern const uint16_t ff_on2avc_cb_syms[];
|
2020-10-18 05:20:43 +00:00
|
|
|
extern const int ff_on2avc_cb_elems[];
|
2013-06-09 18:03:33 +00:00
|
|
|
|
|
|
|
extern const float ff_on2avc_window_long_32000[1024];
|
|
|
|
extern const float ff_on2avc_window_long_24000[1024];
|
|
|
|
extern const float ff_on2avc_window_short[128];
|
|
|
|
|
|
|
|
extern const double ff_on2avc_tab_10_1[];
|
|
|
|
extern const double ff_on2avc_tab_10_2[];
|
|
|
|
extern const double ff_on2avc_tab_20_1[];
|
|
|
|
extern const double ff_on2avc_tab_20_2[];
|
|
|
|
extern const double ff_on2avc_tab_40_1[];
|
|
|
|
extern const double ff_on2avc_tab_40_2[];
|
|
|
|
extern const double ff_on2avc_tab_84_1[];
|
|
|
|
extern const double ff_on2avc_tab_84_2[];
|
|
|
|
extern const double ff_on2avc_tab_84_3[];
|
|
|
|
extern const double ff_on2avc_tab_84_4[];
|
2016-07-03 08:09:36 +00:00
|
|
|
extern const double * const ff_on2avc_tabs_4_10_1[4];
|
|
|
|
extern const double * const ff_on2avc_tabs_4_10_2[4];
|
|
|
|
extern const double * const ff_on2avc_tabs_9_20_1[9];
|
|
|
|
extern const double * const ff_on2avc_tabs_9_20_2[9];
|
|
|
|
extern const double * const ff_on2avc_tabs_19_40_1[19];
|
|
|
|
extern const double * const ff_on2avc_tabs_19_40_2[19];
|
|
|
|
extern const double * const ff_on2avc_tabs_20_84_1[20];
|
|
|
|
extern const double * const ff_on2avc_tabs_20_84_2[20];
|
|
|
|
extern const double * const ff_on2avc_tabs_20_84_3[20];
|
|
|
|
extern const double * const ff_on2avc_tabs_20_84_4[20];
|
2013-06-09 18:03:33 +00:00
|
|
|
extern const float ff_on2avc_ctab_1[2048];
|
|
|
|
extern const float ff_on2avc_ctab_2[2048];
|
|
|
|
extern const float ff_on2avc_ctab_3[2048];
|
|
|
|
extern const float ff_on2avc_ctab_4[2048];
|
|
|
|
|
2016-01-29 02:25:13 +00:00
|
|
|
#endif /* AVCODEC_ON2AVCDATA_H */
|