FFmpeg
jpegquanttables.c
Go to the documentation of this file.
1 /*
2  * MJPEG encoder and decoder
3  * Copyright (c) 2000, 2001 Fabrice Bellard
4  * Copyright (c) 2003 Alex Beregszaszi
5  * Copyright (c) 2003-2004 Michael Niedermayer
6  *
7  * This file is part of FFmpeg.
8  *
9  * FFmpeg is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * FFmpeg is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with FFmpeg; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  */
23 
24 /**
25  * @file
26  * MJPEG quantization tables
27  */
28 
29 #include "jpegquanttables.h"
30 
31 /* These are the sample quantization tables given in JPEG spec section K.1.
32  * The spec says that the values given produce "good" quality, and
33  * when divided by 2, "very good" quality.
34  */
35 const uint8_t ff_mjpeg_std_luminance_quant_tbl[64] = {
36  16, 11, 10, 16, 24, 40, 51, 61,
37  12, 12, 14, 19, 26, 58, 60, 55,
38  14, 13, 16, 24, 40, 57, 69, 56,
39  14, 17, 22, 29, 51, 87, 80, 62,
40  18, 22, 37, 56, 68, 109, 103, 77,
41  24, 35, 55, 64, 81, 104, 113, 92,
42  49, 64, 78, 87, 103, 121, 120, 101,
43  72, 92, 95, 98, 112, 100, 103, 99
44 };
46  17, 18, 24, 47, 99, 99, 99, 99,
47  18, 21, 26, 66, 99, 99, 99, 99,
48  24, 26, 56, 99, 99, 99, 99, 99,
49  47, 66, 99, 99, 99, 99, 99, 99,
50  99, 99, 99, 99, 99, 99, 99, 99,
51  99, 99, 99, 99, 99, 99, 99, 99,
52  99, 99, 99, 99, 99, 99, 99, 99,
53  99, 99, 99, 99, 99, 99, 99, 99
54 };
jpegquanttables.h
ff_mjpeg_std_chrominance_quant_tbl
const uint8_t ff_mjpeg_std_chrominance_quant_tbl[64]
Definition: jpegquanttables.c:45
ff_mjpeg_std_luminance_quant_tbl
const uint8_t ff_mjpeg_std_luminance_quant_tbl[64]
Definition: jpegquanttables.c:35