TUT HEVC Encoder
Loading...
Searching...
No Matches
cli.h
Go to the documentation of this file.
1#ifndef CLI_H_
2#define CLI_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
40#include "global.h" // IWYU pragma: keep
41#include "kvazaar.h"
42
63
64cmdline_opts_t* cmdline_opts_parse(const kvz_api *api, int argc, char *argv[]);
65void cmdline_opts_free(const kvz_api *api, cmdline_opts_t *opts);
66
67void print_usage(void);
68void print_version(void);
69void print_help(void);
70void print_frame_info(const kvz_frame_info *const info,
71 const double frame_psnr[3],
72 const uint32_t bytes,
73 const bool print_psnr,
74 const double avg_qp);
75
76#endif
void print_frame_info(const kvz_frame_info *const info, const double frame_psnr[3], const uint32_t bytes, const bool print_psnr, const double avg_qp)
Definition cli.c:724
void cmdline_opts_free(const kvz_api *api, cmdline_opts_t *opts)
Deallocate a cmdline_opts_t structure.
Definition cli.c:372
void print_help(void)
Definition cli.c:406
void print_usage(void)
Definition cli.c:385
void print_version(void)
Definition cli.c:394
cmdline_opts_t * cmdline_opts_parse(const kvz_api *api, int argc, char *argv[])
Parse command line arguments.
Definition cli.c:248
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.
Definition cli.h:43
char * input
Input filename.
Definition cli.h:45
bool version
Show version information and exit.
Definition cli.h:59
bool help
Show help message and exit.
Definition cli.h:57
kvz_config * config
Encoder configuration.
Definition cli.h:55
int32_t seek
Number of input frames to skip.
Definition cli.h:51
char * output
Output filename.
Definition cli.h:47
bool loop_input
Whether to loop input.
Definition cli.h:61
char * debug
Debug output.
Definition cli.h:49
int32_t frames
Number of frames to encode.
Definition cli.h:53
Definition kvazaar.h:664
Struct which contains all configuration data.
Definition kvazaar.h:287
Other information about an encoded frame.
Definition kvazaar.h:611