| 2191 | } |
| 2192 | |
| 2193 | static 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 | |
| 2206 | static int update_qp(AVCodecContext *avctx, QSVEncContext *q) |
| 2207 | { |
no test coverage detected