Skip to content

Commit

Permalink
media: hantro: Use standard luma quantization table
Browse files Browse the repository at this point in the history
The table is actually different in the document than in this file, so align
this file with the document.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  • Loading branch information
Andrzej Pietrasiewicz authored and Mauro Carvalho Chehab committed Feb 24, 2020
1 parent e34bca4 commit 801fccf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/staging/media/hantro/hantro_jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
#define HUFF_CHROMA_AC_OFF 409

/* Default tables from JPEG ITU-T.81
* (ISO/IEC 10918-1) Annex K.3, I
* (ISO/IEC 10918-1) Annex K, tables K.1 and K.2
*/
static const unsigned char luma_q_table[] = {
0x10, 0x0b, 0x0a, 0x10, 0x7c, 0x8c, 0x97, 0xa1,
0x0c, 0x0c, 0x0e, 0x13, 0x7e, 0x9e, 0xa0, 0x9b,
0x0e, 0x0d, 0x10, 0x18, 0x8c, 0x9d, 0xa9, 0x9c,
0x0e, 0x11, 0x16, 0x1d, 0x97, 0xbb, 0xb4, 0xa2,
0x12, 0x16, 0x25, 0x38, 0xa8, 0x6d, 0x67, 0xb1,
0x18, 0x23, 0x37, 0x40, 0xb5, 0x68, 0x71, 0xc0,
0x10, 0x0b, 0x0a, 0x10, 0x18, 0x28, 0x33, 0x3d,
0x0c, 0x0c, 0x0e, 0x13, 0x1a, 0x3a, 0x3c, 0x37,
0x0e, 0x0d, 0x10, 0x18, 0x28, 0x39, 0x45, 0x38,
0x0e, 0x11, 0x16, 0x1d, 0x33, 0x57, 0x50, 0x3e,
0x12, 0x16, 0x25, 0x38, 0x44, 0x6d, 0x67, 0x4d,
0x18, 0x23, 0x37, 0x40, 0x51, 0x68, 0x71, 0x5c,
0x31, 0x40, 0x4e, 0x57, 0x67, 0x79, 0x78, 0x65,
0x48, 0x5c, 0x5f, 0x62, 0x70, 0x64, 0x67, 0xc7,
0x48, 0x5c, 0x5f, 0x62, 0x70, 0x64, 0x67, 0x63
};

static const unsigned char chroma_q_table[] = {
Expand Down

0 comments on commit 801fccf

Please sign in to comment.