chromium/third_party/ffmpeg/libavcodec/dct32_template.c

/*
 * Template for the Discrete Cosine Transform for 32 samples
 * Copyright (c) 2001, 2002 Fabrice Bellard
 *
 * 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 "dct32.h"
#include "mathops.h"
#include "libavutil/internal.h"

#ifdef CHECKED
#define SUINT
#define SUINT32
#else
#define SUINT
#define SUINT32
#endif

#if DCT32_FLOAT
#define dct32
#define FIXHR(x)
#define MULH3(x, y, s)
#define INTFLOAT
#define SUINTFLOAT
#else
#define dct32
#define FIXHR
#define MULH3
#define INTFLOAT
#define SUINTFLOAT
#endif


/* tab[i][j] = 1.0 / (2.0 * cos(pi*(2*k+1) / 2^(6 - j))) */

/* cos(i*pi/64) */

#define COS0_0
#define COS0_1
#define COS0_2
#define COS0_3
#define COS0_4
#define COS0_5
#define COS0_6
#define COS0_7
#define COS0_8
#define COS0_9
#define COS0_10
#define COS0_11
#define COS0_12
#define COS0_13
#define COS0_14
#define COS0_15

#define COS1_0
#define COS1_1
#define COS1_2
#define COS1_3
#define COS1_4
#define COS1_5
#define COS1_6
#define COS1_7

#define COS2_0
#define COS2_1
#define COS2_2
#define COS2_3

#define COS3_0
#define COS3_1

#define COS4_0

/* butterfly operator */
#define BF(a, b, c, s)

#define BF0(a, b, c, s)

#define BF1(a, b, c, d)

#define BF2(a, b, c, d)

#define ADD(a, b)

/* DCT32 without 1/sqrt(2) coef zero scaling. */
void dct32(INTFLOAT *out, const INTFLOAT *tab_arg)
{}