WebM Codec SDK
vpx_tpl.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 The WebM project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
15#ifndef VPX_VPX_VPX_TPL_H_
16#define VPX_VPX_VPX_TPL_H_
17
18#include <stdio.h>
19
20#include "./vpx_integer.h"
21#include "./vpx_codec.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
35#define VPX_TPL_ABI_VERSION (2)
38typedef struct VpxTplBlockStats {
39 int16_t row;
40 int16_t col;
41 int64_t intra_cost;
42 int64_t inter_cost;
43 int16_t mv_r;
44 int16_t mv_c;
45 int64_t recrf_rate;
46 int64_t recrf_dist;
49
51typedef struct VpxTplFrameStats {
57
59typedef struct VpxTplGopStats {
60 int size;
63
75 const VpxTplGopStats *tpl_gop_stats);
76
89 VpxTplGopStats *tpl_gop_stats);
90
97
98#ifdef __cplusplus
99} // extern "C"
100#endif
101
102#endif // VPX_VPX_VPX_TPL_H_
vpx_codec_err_t
Algorithm return codes.
Definition: vpx_codec.h:93
Temporal dependency model stats for each block before propagation.
Definition: vpx_tpl.h:38
int64_t intra_cost
Definition: vpx_tpl.h:41
int64_t recrf_rate
Definition: vpx_tpl.h:45
int ref_frame_index
Definition: vpx_tpl.h:47
int16_t col
Definition: vpx_tpl.h:40
int64_t recrf_dist
Definition: vpx_tpl.h:46
int64_t inter_cost
Definition: vpx_tpl.h:42
int16_t mv_r
Definition: vpx_tpl.h:43
int16_t row
Definition: vpx_tpl.h:39
int16_t mv_c
Definition: vpx_tpl.h:44
Temporal dependency model stats for each frame before propagation.
Definition: vpx_tpl.h:51
VpxTplBlockStats * block_stats_list
Definition: vpx_tpl.h:55
int frame_width
Definition: vpx_tpl.h:52
int num_blocks
Definition: vpx_tpl.h:54
int frame_height
Definition: vpx_tpl.h:53
Temporal dependency model stats for each GOP before propagation.
Definition: vpx_tpl.h:59
int size
Definition: vpx_tpl.h:60
VpxTplFrameStats * frame_stats_list
Definition: vpx_tpl.h:61
Describes the codec algorithm interface to applications.
vpx_codec_err_t vpx_write_tpl_gop_stats(FILE *tpl_file, const VpxTplGopStats *tpl_gop_stats)
Write VpxTplGopStats to file.
void vpx_free_tpl_gop_stats(VpxTplGopStats *tpl_gop_stats)
Free the memory allocated for VpxTplGopStats.
vpx_codec_err_t vpx_read_tpl_gop_stats(FILE *tpl_file, VpxTplGopStats *tpl_gop_stats)
Read VpxTplGopStats from file.