TUT HEVC Encoder
|
#include "cli.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <ctype.h>
Functions | |
static int | select_input_res_auto (const char *file_name, int32_t *out_width, int32_t *out_height) |
Try to detect resolution from file name automatically. | |
static int | detect_file_format (const char *file_name) |
Try to detect file format from file name automatically. | |
cmdline_opts_t * | cmdline_opts_parse (const kvz_api *const api, int argc, char *argv[]) |
Parse command line arguments. | |
void | cmdline_opts_free (const kvz_api *const api, cmdline_opts_t *opts) |
Deallocate a cmdline_opts_t structure. | |
void | print_usage (void) |
void | print_version (void) |
void | print_help (void) |
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) |
Variables | |
static const char | short_options [] = "i:o:d:w:h:n:q:p:r:" |
static const struct option | long_options [] |
void cmdline_opts_free | ( | const kvz_api *const | api, |
cmdline_opts_t * | opts | ||
) |
argc | Number of arguments |
argv | Argument list |
file_name | file name to get format from |
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 | ||
) |
|
static |
file_name | file name to get dimensions from |
out_width | detected width |
out_height | detected height |