TUT HEVC Encoder
Loading...
Searching...
No Matches
yuv_io.h
Go to the documentation of this file.
1/*****************************************************************************
2 * This file is part of Kvazaar HEVC encoder.
3 *
4 * Copyright (c) 2021, Tampere University, ITU/ISO/IEC, project contributors
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without modification,
8 * are permitted provided that the following conditions are met:
9 *
10 * * Redistributions of source code must retain the above copyright notice, this
11 * list of conditions and the following disclaimer.
12 *
13 * * Redistributions in binary form must reproduce the above copyright notice, this
14 * list of conditions and the following disclaimer in the documentation and/or
15 * other materials provided with the distribution.
16 *
17 * * Neither the name of the Tampere University or ITU/ISO/IEC nor the names of its
18 * contributors may be used to endorse or promote products derived from
19 * this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 * INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON
28 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 * INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS
31 ****************************************************************************/
32
33#ifndef YUV_IO_H_
34#define YUV_IO_H_
35
36/*
37 * \file
38 * \brief Functions related to reading YUV input and output.
39 */
40
41#include <stdio.h>
42
43#include "global.h" // IWYU pragma: keep
44#include "kvazaar.h"
45
47 unsigned input_width, unsigned input_height,
48 unsigned from_bitdepth, unsigned to_bitdepth,
49 kvz_picture *img_out, unsigned file_format);
50
51int yuv_io_seek(FILE* file, unsigned frames,
52 unsigned input_width, unsigned input_height,
53 unsigned file_format);
54
56 const kvz_picture *img,
57 unsigned output_width, unsigned output_height);
58
59#endif // YUV_IO_H_
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.
Struct which contains all picture data.
Definition kvazaar.h:504
int yuv_io_seek(FILE *file, unsigned frames, unsigned input_width, unsigned input_height, unsigned file_format)
Seek forward in a YUV file.
Definition yuv_io.c:294
int yuv_io_write(FILE *file, const kvz_picture *img, unsigned output_width, unsigned output_height)
Write a single frame to a file.
Definition yuv_io.c:338
int yuv_io_read(FILE *file, unsigned input_width, unsigned input_height, unsigned from_bitdepth, unsigned to_bitdepth, kvz_picture *img_out, unsigned file_format)
Read a single frame from a file.
Definition yuv_io.c:235