| 90 | } VAAPIEncodeAV1Context; |
| 91 | |
| 92 | static 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 | |
| 113 | static av_cold int vaapi_encode_av1_get_encoder_caps(AVCodecContext *avctx) |
| 114 | { |
nothing calls this directly
no test coverage detected