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
;
33
}
scan_position
;
34
35
void
init_scan_orders
();
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
init_scan_orders
void init_scan_orders()
get_scan_order
const position * get_scan_order(int log2BlockSize, int scanIdx)
get_scan_position
scan_position get_scan_position(int x, int y, int scanIdx, int log2BlkSize)
position
Definition:
scan.h:26
position::x
uint8_t x
Definition:
scan.h:27
scan_position
Definition:
scan.h:30
scan_position::scanPos
uint8_t scanPos
Definition:
scan.h:32
scan_position::subBlock
uint8_t subBlock
Definition:
scan.h:31
core
libs
heifutils
libde265
scan.h
Generated by
1.9.1