FFmpeg
Macros | Functions | Variables
xvid_idct_mmi.c File Reference
#include "libavutil/mem_internal.h"
#include "idctdsp_mips.h"
#include "xvididct_mips.h"

Go to the source code of this file.

Macros

#define BITS_INV_ACC   5
 
#define SHIFT_INV_ROW   (16 - BITS_INV_ACC)
 
#define SHIFT_INV_COL   (1 + BITS_INV_ACC)
 
#define RND_INV_ROW   (1024 * (6 - BITS_INV_ACC))
 
#define RND_INV_COL   (16 * (BITS_INV_ACC - 3))
 
#define RND_INV_CORR   (RND_INV_COL - 1)
 
#define BITS_FRW_ACC   3
 
#define SHIFT_FRW_COL   BITS_FRW_ACC
 
#define SHIFT_FRW_ROW   (BITS_FRW_ACC + 17)
 
#define RND_FRW_ROW   (262144*(BITS_FRW_ACC - 1))
 
#define DCT_8_INV_ROW_MMI(A1, A2, A3, A4)
 
#define DCT_8_INV_COL(A1, A2)
 

Functions

void ff_xvid_idct_mmi (int16_t *block)
 
void ff_xvid_idct_put_mmi (uint8_t *dest, ptrdiff_t line_size, int16_t *block)
 
void ff_xvid_idct_add_mmi (uint8_t *dest, ptrdiff_t line_size, int16_t *block)
 

Variables

static const int16_t tg_1_16 [4 *4]
 
static const int32_t rounder_0 [2 *8]
 
static const int16_t tab_i_04_mmi [32 *4]
 

Macro Definition Documentation

◆ BITS_INV_ACC

#define BITS_INV_ACC   5

Definition at line 29 of file xvid_idct_mmi.c.

◆ SHIFT_INV_ROW

#define SHIFT_INV_ROW   (16 - BITS_INV_ACC)

Definition at line 30 of file xvid_idct_mmi.c.

◆ SHIFT_INV_COL

#define SHIFT_INV_COL   (1 + BITS_INV_ACC)

Definition at line 31 of file xvid_idct_mmi.c.

◆ RND_INV_ROW

#define RND_INV_ROW   (1024 * (6 - BITS_INV_ACC))

Definition at line 32 of file xvid_idct_mmi.c.

◆ RND_INV_COL

#define RND_INV_COL   (16 * (BITS_INV_ACC - 3))

Definition at line 33 of file xvid_idct_mmi.c.

◆ RND_INV_CORR

#define RND_INV_CORR   (RND_INV_COL - 1)

Definition at line 34 of file xvid_idct_mmi.c.

◆ BITS_FRW_ACC

#define BITS_FRW_ACC   3

Definition at line 36 of file xvid_idct_mmi.c.

◆ SHIFT_FRW_COL

#define SHIFT_FRW_COL   BITS_FRW_ACC

Definition at line 37 of file xvid_idct_mmi.c.

◆ SHIFT_FRW_ROW

#define SHIFT_FRW_ROW   (BITS_FRW_ACC + 17)

Definition at line 38 of file xvid_idct_mmi.c.

◆ RND_FRW_ROW

#define RND_FRW_ROW   (262144*(BITS_FRW_ACC - 1))

Definition at line 39 of file xvid_idct_mmi.c.

◆ DCT_8_INV_ROW_MMI

#define DCT_8_INV_ROW_MMI (   A1,
  A2,
  A3,
  A4 
)

Definition at line 97 of file xvid_idct_mmi.c.

◆ DCT_8_INV_COL

#define DCT_8_INV_COL (   A1,
  A2 
)

Definition at line 150 of file xvid_idct_mmi.c.

Function Documentation

◆ ff_xvid_idct_mmi()

void ff_xvid_idct_mmi ( int16_t *  block)

◆ ff_xvid_idct_put_mmi()

void ff_xvid_idct_put_mmi ( uint8_t *  dest,
ptrdiff_t  line_size,
int16_t *  block 
)

Definition at line 245 of file xvid_idct_mmi.c.

Referenced by ff_xvid_idct_init_mips().

◆ ff_xvid_idct_add_mmi()

void ff_xvid_idct_add_mmi ( uint8_t *  dest,
ptrdiff_t  line_size,
int16_t *  block 
)

Definition at line 251 of file xvid_idct_mmi.c.

Referenced by ff_xvid_idct_init_mips().

Variable Documentation

◆ tg_1_16

const int16_t tg_1_16[4 *4]
static
Initial value:
= {
13036, 13036, 13036, 13036,
27146, 27146, 27146, 27146,
-21746,-21746,-21746,-21746,
23170, 23170, 23170, 23170
}

Definition at line 41 of file xvid_idct_mmi.c.

Referenced by ff_xvid_idct_mmi().

◆ rounder_0

const int32_t rounder_0[2 *8]
static
Initial value:
= {
65536,65536,
3597, 3597,
2260, 2260,
1203, 1203,
0, 0,
120, 120,
512, 512,
512, 512
}

Definition at line 48 of file xvid_idct_mmi.c.

Referenced by ff_xvid_idct_mmi().

◆ tab_i_04_mmi

const int16_t tab_i_04_mmi[32 *4]
static

Definition at line 59 of file xvid_idct_mmi.c.

Referenced by ff_xvid_idct_mmi().