FFmpeg
data.c
Go to the documentation of this file.
1 /*
2  * HEVC shared tables
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #include <stdint.h>
22 
23 #include "data.h"
24 
25 const uint8_t ff_hevc_diag_scan4x4_x[16] = {
26  0, 0, 1, 0,
27  1, 2, 0, 1,
28  2, 3, 1, 2,
29  3, 2, 3, 3,
30 };
31 
32 const uint8_t ff_hevc_diag_scan4x4_y[16] = {
33  0, 1, 0, 2,
34  1, 0, 3, 2,
35  1, 0, 3, 2,
36  1, 3, 2, 3,
37 };
38 
39 const uint8_t ff_hevc_diag_scan8x8_x[64] = {
40  0, 0, 1, 0,
41  1, 2, 0, 1,
42  2, 3, 0, 1,
43  2, 3, 4, 0,
44  1, 2, 3, 4,
45  5, 0, 1, 2,
46  3, 4, 5, 6,
47  0, 1, 2, 3,
48  4, 5, 6, 7,
49  1, 2, 3, 4,
50  5, 6, 7, 2,
51  3, 4, 5, 6,
52  7, 3, 4, 5,
53  6, 7, 4, 5,
54  6, 7, 5, 6,
55  7, 6, 7, 7,
56 };
57 
58 const uint8_t ff_hevc_diag_scan8x8_y[64] = {
59  0, 1, 0, 2,
60  1, 0, 3, 2,
61  1, 0, 4, 3,
62  2, 1, 0, 5,
63  4, 3, 2, 1,
64  0, 6, 5, 4,
65  3, 2, 1, 0,
66  7, 6, 5, 4,
67  3, 2, 1, 0,
68  7, 6, 5, 4,
69  3, 2, 1, 7,
70  6, 5, 4, 3,
71  2, 7, 6, 5,
72  4, 3, 7, 6,
73  5, 4, 7, 6,
74  5, 7, 6, 7,
75 };
ff_hevc_diag_scan8x8_y
const uint8_t ff_hevc_diag_scan8x8_y[64]
Definition: data.c:58
ff_hevc_diag_scan4x4_y
const uint8_t ff_hevc_diag_scan4x4_y[16]
Definition: data.c:32
data.h
ff_hevc_diag_scan4x4_x
const uint8_t ff_hevc_diag_scan4x4_x[16]
Definition: data.c:25
ff_hevc_diag_scan8x8_x
const uint8_t ff_hevc_diag_scan8x8_x[64]
Definition: data.c:39