FFmpeg
Macros | Functions
jfdctfst.c File Reference

Independent JPEG Group's fast AAN dct. More...

#include <stdlib.h>
#include <stdio.h>
#include "libavutil/common.h"
#include "dct.h"

Macros

#define DCTSIZE   8
 
#define GLOBAL(x)   x
 
#define RIGHT_SHIFT(x, n)   ((x) >> (n))
 
#define CONST_BITS   8
 
#define FIX_0_382683433   ((int32_t) 98) /* FIX(0.382683433) */
 
#define FIX_0_541196100   ((int32_t) 139) /* FIX(0.541196100) */
 
#define FIX_0_707106781   ((int32_t) 181) /* FIX(0.707106781) */
 
#define FIX_1_306562965   ((int32_t) 334) /* FIX(1.306562965) */
 
#define DESCALE(x, n)   RIGHT_SHIFT(x, n)
 
#define MULTIPLY(var, const)   ((int16_t) DESCALE((var) * (const), CONST_BITS))
 

Functions

 ff_fdct_ifast (int16_t *data)
 
 ff_fdct_ifast248 (int16_t *data)
 

Detailed Description

Independent JPEG Group's fast AAN dct.