TUT HEVC Encoder
Loading...
Searching...
No Matches
videoframe.h
Go to the documentation of this file.
1#ifndef VIDEOFRAME_H_
2#define VIDEOFRAME_H_
3/*****************************************************************************
4 * This file is part of Kvazaar HEVC encoder.
5 *
6 * Copyright (c) 2021, Tampere University, ITU/ISO/IEC, project contributors
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without modification,
10 * are permitted provided that the following conditions are met:
11 *
12 * * Redistributions of source code must retain the above copyright notice, this
13 * list of conditions and the following disclaimer.
14 *
15 * * Redistributions in binary form must reproduce the above copyright notice, this
16 * list of conditions and the following disclaimer in the documentation and/or
17 * other materials provided with the distribution.
18 *
19 * * Neither the name of the Tampere University or ITU/ISO/IEC nor the names of its
20 * contributors may be used to endorse or promote products derived from
21 * this software without specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON
30 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 * INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS
33 ****************************************************************************/
34
41#include "cu.h"
42#include "global.h" // IWYU pragma: keep
43#include "kvazaar.h"
44
45
64
65
66videoframe_t *kvz_videoframe_alloc(int32_t width, int32_t height, enum kvz_chroma_format chroma_format);
67int kvz_videoframe_free(videoframe_t * const frame);
68
70
71#endif
Coding Unit data structure and related functions.
Header that is included in every other header.
#define MAX_TILES_PER_DIM
Definition global.h:232
This file defines the public API of Kvazaar when used as a library.
kvz_chroma_format
Chroma subsampling format used for encoding.
Definition kvazaar.h:209
Definition cu.h:196
Struct which contains all picture data.
Definition kvazaar.h:504
Definition sao.h:55
Struct which contains all picture data.
Definition videoframe.h:50
int32_t width
Luma pixel array width.
Definition videoframe.h:54
int32_t poc
Picture order count.
Definition videoframe.h:62
kvz_picture * source
Source image.
Definition videoframe.h:51
cu_array_t * cu_array
Info for each CU at each depth.
Definition videoframe.h:59
kvz_picture * rec
Reconstructed image.
Definition videoframe.h:52
struct sao_info_t * sao_luma
Array of sao parameters for every LCU.
Definition videoframe.h:60
int32_t height_in_lcu
Picture width in number of LCU's.
Definition videoframe.h:56
int32_t height
Luma pixel array height.
Definition videoframe.h:55
int32_t width_in_lcu
Picture height in number of LCU's.
Definition videoframe.h:57
struct sao_info_t * sao_chroma
Array of sao parameters for every LCU.
Definition videoframe.h:61
struct videoframe videoframe_t
Struct which contains all picture data.
videoframe_t * kvz_videoframe_alloc(int32_t width, int32_t height, enum kvz_chroma_format chroma_format)
Allocate new frame.
Definition videoframe.c:46
void kvz_videoframe_set_poc(videoframe_t *frame, int32_t poc)
Definition videoframe.c:88
int kvz_videoframe_free(videoframe_t *const frame)
Free memory allocated to frame.
Definition videoframe.c:71