| 517 | }; |
| 518 | |
| 519 | static av_cold int vaapi_encode_mjpeg_init(AVCodecContext *avctx) |
| 520 | { |
| 521 | VAAPIEncodeContext *ctx = avctx->priv_data; |
| 522 | |
| 523 | ctx->codec = &vaapi_encode_type_mjpeg; |
| 524 | |
| 525 | // The JPEG image header - see note above. |
| 526 | ctx->desired_packed_headers = |
| 527 | VA_ENC_PACKED_HEADER_RAW_DATA; |
| 528 | |
| 529 | return ff_vaapi_encode_init(avctx); |
| 530 | } |
| 531 | |
| 532 | static av_cold int vaapi_encode_mjpeg_close(AVCodecContext *avctx) |
| 533 | { |
nothing calls this directly
no test coverage detected