MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / vaapi_encode_av1_trace_write_log

Function vaapi_encode_av1_trace_write_log

libavcodec/vaapi_encode_av1.c:92–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90} VAAPIEncodeAV1Context;
91
92static void vaapi_encode_av1_trace_write_log(void *ctx,
93 PutBitContext *pbc, int length,
94 const char *str, const int *subscripts,
95 int64_t value)
96{
97 VAAPIEncodeAV1Context *priv = ctx;
98 int position;
99
100 position = put_bits_count(pbc);
101 av_assert0(position >= length);
102
103 if (!strcmp(str, "base_q_idx"))
104 priv->qindex_offset = position - length;
105 else if (!strcmp(str, "loop_filter_level[0]"))
106 priv->loopfilter_offset = position - length;
107 else if (!strcmp(str, "cdef_damping_minus_3"))
108 priv->cdef_start_offset = position - length;
109 else if (!strcmp(str, "cdef_uv_sec_strength[i]"))
110 priv->cdef_param_size = position - priv->cdef_start_offset;
111}
112
113static av_cold int vaapi_encode_av1_get_encoder_caps(AVCodecContext *avctx)
114{

Callers

nothing calls this directly

Calls 1

put_bits_countFunction · 0.85

Tested by

no test coverage detected