FFmpeg
mpegvideo_unquantize.h
Go to the documentation of this file.
1 /*
2  * Unquantize functions for mpegvideo
3  * Copyright (c) 2000,2001 Fabrice Bellard
4  * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
5  *
6  * 4MV & hq & B-frame encoding stuff by Michael Niedermayer <michaelni@gmx.at>
7  *
8  * This file is part of FFmpeg.
9  *
10  * FFmpeg is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * FFmpeg is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with FFmpeg; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  */
24 
25 #ifndef AVCODEC_MPEGVIDEO_UNQUANTIZE_H
26 #define AVCODEC_MPEGVIDEO_UNQUANTIZE_H
27 
28 #include <stdint.h>
29 
30 #include "config.h"
31 
32 typedef struct MpegEncContext MPVContext;
33 
34 typedef struct MPVUnquantDSPContext {
35  void (*dct_unquantize_mpeg1_intra)(const MPVContext *s,
36  int16_t *block/*align 16*/, int n, int qscale);
37  void (*dct_unquantize_mpeg1_inter)(const MPVContext *s,
38  int16_t *block/*align 16*/, int n, int qscale);
39  void (*dct_unquantize_mpeg2_intra)(const MPVContext *s,
40  int16_t *block/*align 16*/, int n, int qscale);
41  void (*dct_unquantize_mpeg2_inter)(const MPVContext *s,
42  int16_t *block/*align 16*/, int n, int qscale);
43  void (*dct_unquantize_h263_intra)(const MPVContext *s,
44  int16_t *block/*align 16*/, int n, int qscale);
45  void (*dct_unquantize_h263_inter)(const MPVContext *s,
46  int16_t *block/*align 16*/, int n, int qscale);
48 
49 #if !ARCH_MIPS
50 #define ff_mpv_unquantize_init(s, bitexact, q_scale_type) ff_mpv_unquantize_init(s, bitexact)
51 #endif
52 
54  int bitexact, int q_scale_type);
61  int q_scale_type);
62 
63 #endif /* AVCODEC_MPEGVIDEO_UNQUANTIZE_H */
MPVUnquantDSPContext::dct_unquantize_mpeg2_intra
void(* dct_unquantize_mpeg2_intra)(const MPVContext *s, int16_t *block, int n, int qscale)
Definition: mpegvideo_unquantize.h:39
ff_mpv_unquantize_init_x86
void ff_mpv_unquantize_init_x86(MPVUnquantDSPContext *s, int bitexact)
Definition: mpegvideo.c:376
ff_mpv_unquantize_init_neon
void ff_mpv_unquantize_init_neon(MPVUnquantDSPContext *s, int bitexact)
Definition: mpegvideo.c:124
ff_mpv_unquantize_init_ppc
void ff_mpv_unquantize_init_ppc(MPVUnquantDSPContext *s, int bitexact)
Definition: mpegvideo_altivec.c:102
MPVUnquantDSPContext::dct_unquantize_mpeg2_inter
void(* dct_unquantize_mpeg2_inter)(const MPVContext *s, int16_t *block, int n, int qscale)
Definition: mpegvideo_unquantize.h:41
ff_mpv_unquantize_init_arm
void ff_mpv_unquantize_init_arm(MPVUnquantDSPContext *s, int bitexact)
Definition: mpegvideo_arm.c:51
ff_mpv_unquantize_init_mips
void ff_mpv_unquantize_init_mips(MPVUnquantDSPContext *s, int bitexact, int q_scale_type)
Definition: mpegvideo_init_mips.c:27
s
#define s(width, name)
Definition: cbs_vp9.c:198
MPVUnquantDSPContext::dct_unquantize_mpeg1_intra
void(* dct_unquantize_mpeg1_intra)(const MPVContext *s, int16_t *block, int n, int qscale)
Definition: mpegvideo_unquantize.h:35
ff_mpv_unquantize_init
#define ff_mpv_unquantize_init(s, bitexact, q_scale_type)
Definition: mpegvideo_unquantize.h:50
MPVUnquantDSPContext::dct_unquantize_h263_inter
void(* dct_unquantize_h263_inter)(const MPVContext *s, int16_t *block, int n, int qscale)
Definition: mpegvideo_unquantize.h:45
MPVUnquantDSPContext::dct_unquantize_mpeg1_inter
void(* dct_unquantize_mpeg1_inter)(const MPVContext *s, int16_t *block, int n, int qscale)
Definition: mpegvideo_unquantize.h:37
MPVUnquantDSPContext::dct_unquantize_h263_intra
void(* dct_unquantize_h263_intra)(const MPVContext *s, int16_t *block, int n, int qscale)
Definition: mpegvideo_unquantize.h:43
ff_mpv_unquantize_init_riscv
void ff_mpv_unquantize_init_riscv(MPVUnquantDSPContext *s, int bitexact)
Definition: mpegvideo_init.c:52
block
The exact code depends on how similar the blocks are and how related they are to the block
Definition: filter_design.txt:207
MPVUnquantDSPContext
Definition: mpegvideo_unquantize.h:34
MpegEncContext
MpegEncContext.
Definition: mpegvideo.h:67