mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 19:32:13 +00:00
b29c8c995f
* commit '150c896a9e46b23b97debb0a5f66fbaeaa32f153': hevcdec: split ff_hevc_diag_scan* declarations into a separate header Merged-by: James Almer <jamrial@gmail.com>
76 lines
1.6 KiB
C
76 lines
1.6 KiB
C
/*
|
|
* HEVC shared tables
|
|
*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "hevc_data.h"
|
|
|
|
const uint8_t ff_hevc_diag_scan4x4_x[16] = {
|
|
0, 0, 1, 0,
|
|
1, 2, 0, 1,
|
|
2, 3, 1, 2,
|
|
3, 2, 3, 3,
|
|
};
|
|
|
|
const uint8_t ff_hevc_diag_scan4x4_y[16] = {
|
|
0, 1, 0, 2,
|
|
1, 0, 3, 2,
|
|
1, 0, 3, 2,
|
|
1, 3, 2, 3,
|
|
};
|
|
|
|
const uint8_t ff_hevc_diag_scan8x8_x[64] = {
|
|
0, 0, 1, 0,
|
|
1, 2, 0, 1,
|
|
2, 3, 0, 1,
|
|
2, 3, 4, 0,
|
|
1, 2, 3, 4,
|
|
5, 0, 1, 2,
|
|
3, 4, 5, 6,
|
|
0, 1, 2, 3,
|
|
4, 5, 6, 7,
|
|
1, 2, 3, 4,
|
|
5, 6, 7, 2,
|
|
3, 4, 5, 6,
|
|
7, 3, 4, 5,
|
|
6, 7, 4, 5,
|
|
6, 7, 5, 6,
|
|
7, 6, 7, 7,
|
|
};
|
|
|
|
const uint8_t ff_hevc_diag_scan8x8_y[64] = {
|
|
0, 1, 0, 2,
|
|
1, 0, 3, 2,
|
|
1, 0, 4, 3,
|
|
2, 1, 0, 5,
|
|
4, 3, 2, 1,
|
|
0, 6, 5, 4,
|
|
3, 2, 1, 0,
|
|
7, 6, 5, 4,
|
|
3, 2, 1, 0,
|
|
7, 6, 5, 4,
|
|
3, 2, 1, 7,
|
|
6, 5, 4, 3,
|
|
2, 7, 6, 5,
|
|
4, 3, 7, 6,
|
|
5, 4, 7, 6,
|
|
5, 7, 6, 7,
|
|
};
|