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

Function vaapi_encode_mjpeg_init

libavcodec/vaapi_encode_mjpeg.c:519–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517};
518
519static 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
532static av_cold int vaapi_encode_mjpeg_close(AVCodecContext *avctx)
533{

Callers

nothing calls this directly

Calls 1

ff_vaapi_encode_initFunction · 0.85

Tested by

no test coverage detected