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

Function vaapi_encode_vp9_init

libavcodec/vaapi_encode_vp9.c:261–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259};
260
261static av_cold int vaapi_encode_vp9_init(AVCodecContext *avctx)
262{
263 VAAPIEncodeContext *ctx = avctx->priv_data;
264
265 ctx->codec = &vaapi_encode_type_vp9;
266
267 // No packed headers are currently desired. They could be written,
268 // but there isn't any reason to do so - the one usable driver (i965)
269 // can write its own headers and there is no metadata to include.
270 ctx->desired_packed_headers = 0;
271
272 return ff_vaapi_encode_init(avctx);
273}
274
275#define OFFSET(x) offsetof(VAAPIEncodeVP9Context, x)
276#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)

Callers

nothing calls this directly

Calls 1

ff_vaapi_encode_initFunction · 0.85

Tested by

no test coverage detected