TUT HEVC Encoder
Loading...
Searching...
No Matches
nal.h
Go to the documentation of this file.
1#ifndef NAL_H_
2#define NAL_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
35/*
36 * \ingroup Bitstream
37 * \file
38 * Network Abstraction Layer (NAL) messages.
39 */
40
41#include "bitstream.h"
42#include "global.h" // IWYU pragma: keep
43#include "kvazaar.h"
44
45
46#define SEI_HASH_MAX_LENGTH 16
47
49// FUNCTIONS
50void kvz_nal_write(bitstream_t * const bitstream, const uint8_t nal_type,
51 const uint8_t temporal_id, const int long_start_code);
52void kvz_image_checksum(const kvz_picture *im,
53 unsigned char checksum_out[][SEI_HASH_MAX_LENGTH], const uint8_t bitdepth);
54void kvz_image_md5(const kvz_picture *im,
55 unsigned char checksum_out[][SEI_HASH_MAX_LENGTH],
56 const uint8_t bitdepth);
57
58
59
60#endif
Appending bits into an Annex-B coded bitstream.
Header that is included in every other header.
This file defines the public API of Kvazaar when used as a library.
void kvz_image_checksum(const kvz_picture *im, unsigned char checksum_out[][16], const uint8_t bitdepth)
Calculate checksums for all colors of the picture.
Definition nal.c:77
void kvz_nal_write(bitstream_t *const bitstream, const uint8_t nal_type, const uint8_t temporal_id, const int long_start_code)
Write a Network Abstraction Layer (NAL) packet to the output.
Definition nal.c:42
#define SEI_HASH_MAX_LENGTH
Definition nal.h:46
void kvz_image_md5(const kvz_picture *im, unsigned char checksum_out[][16], const uint8_t bitdepth)
Calculate md5 for all colors of the picture.
Definition nal.c:94
A stream of bits.
Definition bitstream.h:50
Struct which contains all picture data.
Definition kvazaar.h:504