TUT HEVC Encoder
Loading...
Searching...
No Matches
encoder.c File Reference
#include "encoder.h"
#include <stdio.h>
#include <stdlib.h>
#include "cfg.h"
#include "gop.h"
#include "rdo.h"
#include "strategyselector.h"
#include "kvz_math.h"
#include "fast_coeff_cost.h"
Include dependency graph for encoder.c:

Functions

static int encoder_control_init_gop_layer_weights (encoder_control_t *const encoder)
 Initialize GOP layer weights.
 
static unsigned cfg_num_threads (void)
 
static int get_max_parallelism (const encoder_control_t *const encoder)
 
encoder_control_tkvz_encoder_control_init (const kvz_config *const cfg)
 Allocate and initialize an encoder control structure.
 
void kvz_encoder_control_free (encoder_control_t *const encoder)
 Free an encoder control structure.
 
void kvz_encoder_control_input_init (encoder_control_t *const encoder, const int32_t width, int32_t height)
 

Function Documentation

◆ cfg_num_threads()

static unsigned cfg_num_threads ( void )
static
Here is the caller graph for this function:

◆ encoder_control_init_gop_layer_weights()

static int encoder_control_init_gop_layer_weights ( encoder_control_t *const encoder)
static
Returns
1 on success, 0 on failure.

Selects appropriate weights for layers according to the target bpp. Only GOP structures with exactly four layers are supported with the. exception of experimental GOP 16.

Here is the caller graph for this function:

◆ get_max_parallelism()

static int get_max_parallelism ( const encoder_control_t *const encoder)
static
Here is the caller graph for this function:

◆ kvz_encoder_control_free()

void kvz_encoder_control_free ( encoder_control_t *const encoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvz_encoder_control_init()

encoder_control_t * kvz_encoder_control_init ( const kvz_config *const cfg)
Parameters
cfgencoder configuration
Returns
initialized encoder control or NULL on failure
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvz_encoder_control_input_init()

void kvz_encoder_control_input_init ( encoder_control_t *const encoder,
const int32_t width,
int32_t height )
Here is the caller graph for this function: