FFmpeg
Loading...
Searching...
No Matches
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
32typedef struct MpegEncContext MPVContext;
33
34typedef 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 */
#define s(width, name)
Definition cbs_vp9.c:198
static int16_t block[64]
Definition dct.c:125
void ff_mpv_unquantize_init_riscv(MPVUnquantDSPContext *s, int bitexact)
void ff_mpv_unquantize_init_neon(MPVUnquantDSPContext *s, int bitexact)
Definition mpegvideo.c:124
void ff_mpv_unquantize_init_x86(MPVUnquantDSPContext *s, int bitexact)
Definition mpegvideo.c:376
void ff_mpv_unquantize_init_mips(MPVUnquantDSPContext *s, int bitexact, int q_scale_type)
void ff_mpv_unquantize_init_arm(MPVUnquantDSPContext *s, int bitexact)
void ff_mpv_unquantize_init_ppc(MPVUnquantDSPContext *s, int bitexact)
#define ff_mpv_unquantize_init(s, bitexact, q_scale_type)
void(* dct_unquantize_mpeg2_intra)(const MPVContext *s, int16_t *block, int n, int qscale)
void(* dct_unquantize_mpeg1_intra)(const MPVContext *s, int16_t *block, int n, int qscale)
void(* dct_unquantize_mpeg2_inter)(const MPVContext *s, int16_t *block, int n, int qscale)
void(* dct_unquantize_h263_inter)(const MPVContext *s, int16_t *block, int n, int qscale)
void(* dct_unquantize_h263_intra)(const MPVContext *s, int16_t *block, int n, int qscale)
void(* dct_unquantize_mpeg1_inter)(const MPVContext *s, int16_t *block, int n, int qscale)
MpegEncContext.
Definition mpegvideo.h:67