TUT HEVC Encoder
picture-generic.h
Go to the documentation of this file.
1#ifndef STRATEGIES_PICTURE_GENERIC_H_
2#define STRATEGIES_PICTURE_GENERIC_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 "global.h" // IWYU pragma: keep
42#include "kvazaar.h"
43
44int kvz_strategy_register_picture_generic(void* opaque, uint8_t bitdepth);
45
46// Function to clip int16_t to pixel. (0-255 or 0-1023)
47// Assumes PIXEL_MAX to be 2^n-1
49
50// Function to clip int32_t to pixel. (0-255 or 0-1023)
51// Assumes PIXEL_MAX to be 2^n-1
53
54unsigned kvz_satd_4x4_subblock_generic(const kvz_pixel * buf1,
55 const int32_t stride1,
56 const kvz_pixel * buf2,
57 const int32_t stride2);
58
60 const int stride,
61 const kvz_pixel *orig,
62 const int orig_stride,
63 unsigned costs[4]);
64
65
66
67#endif //STRATEGIES_PICTURE_GENERIC_H_
Header that is included in every other header.
This file defines the public API of Kvazaar when used as a library.
uint8_t kvz_pixel
Definition: kvazaar.h:95
void kvz_satd_4x4_subblock_quad_generic(const kvz_pixel *preds[4], const int stride, const kvz_pixel *orig, const int orig_stride, unsigned costs[4])
Definition: picture-generic.c:227
kvz_pixel kvz_fast_clip_32bit_to_pixel(int32_t value)
Definition: picture-generic.c:64
int kvz_strategy_register_picture_generic(void *opaque, uint8_t bitdepth)
Definition: picture-generic.c:777
unsigned kvz_satd_4x4_subblock_generic(const kvz_pixel *buf1, const int32_t stride1, const kvz_pixel *buf2, const int32_t stride2)
Calculate SATD between two 4x4 blocks inside bigger arrays.
Definition: picture-generic.c:213
kvz_pixel kvz_fast_clip_16bit_to_pixel(int16_t value)
Definition: picture-generic.c:42