digiKam
heif_encoder_x265.h
Go to the documentation of this file.
1 /*
2  * HEIF codec.
3  * Copyright (c) 2017 struktur AG, Dirk Farin <farin@struktur.de>
4  *
5  * This file is part of libheif.
6  *
7  * libheif 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  * libheif 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 libheif. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef LIBHEIF_HEIF_ENCODER_X265_H
22 #define LIBHEIF_HEIF_ENCODER_X265_H
23 
24 
25 
26 /* Image sizes in HEVC: since HEVC does not allow for odd image dimensions when
27  using chroma 4:2:0, our strategy is as follows.
28 
29  - Images with odd dimensions are extended with an extra row/column which
30  contains a copy of the border.
31  - The HEVC image size generated by x265 is rounded up to the CTU size (?)
32  and the conformance window has to be respected.
33  - We add an additional crop transform to remove the extra row/column. (TODO)
34  */
35 
36 
37 
39 
40 #endif
const struct heif_encoder_plugin * get_encoder_plugin_x265()
Definition: heif_plugin.h:120