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

Function set_skip_frame_encode_ctrl

libavcodec/qsvenc.c:2193–2204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2191}
2192
2193static void set_skip_frame_encode_ctrl(AVCodecContext *avctx, const AVFrame *frame,
2194 mfxEncodeCtrl *enc_ctrl)
2195{
2196 AVDictionaryEntry* skip_frame_dict = NULL;
2197 if (!frame->metadata)
2198 return;
2199 skip_frame_dict = av_dict_get(frame->metadata, "qsv_skip_frame", NULL, 0);
2200 if (!skip_frame_dict)
2201 return;
2202 enc_ctrl->SkipFrame = strtol(skip_frame_dict->value, NULL, 10);
2203 return;
2204}
2205
2206static int update_qp(AVCodecContext *avctx, QSVEncContext *q)
2207{

Callers 1

encode_frameFunction · 0.85

Calls 1

av_dict_getFunction · 0.85

Tested by

no test coverage detected