digiKam
scan.h
Go to the documentation of this file.
1 /*
2  * H.265 video codec.
3  * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de>
4  *
5  * This file is part of libde265.
6  *
7  * libde265 is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation, either version 3 of
10  * the License, or (at your option) any later version.
11  *
12  * libde265 is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with libde265. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef DE265_SCAN_H
22 #define DE265_SCAN_H
23 
24 #include <stdint.h>
25 
26 typedef struct {
27  uint8_t x,y;
28 } position;
29 
30 typedef struct {
31  uint8_t subBlock;
32  uint8_t scanPos;
34 
36 
37 /* scanIdx: 0 - diag, 1 - horiz, 2 - verti
38  */
39 const position* get_scan_order(int log2BlockSize, int scanIdx);
40 
41 scan_position get_scan_position(int x,int y, int scanIdx, int log2BlkSize);
42 
43 #endif
void init_scan_orders()
const position * get_scan_order(int log2BlockSize, int scanIdx)
scan_position get_scan_position(int x, int y, int scanIdx, int log2BlkSize)
Definition: scan.h:26
uint8_t x
Definition: scan.h:27
Definition: scan.h:30
uint8_t scanPos
Definition: scan.h:32
uint8_t subBlock
Definition: scan.h:31