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

Function vaapi_encode_vp8_init

libavcodec/vaapi_encode_vp8.c:204–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202};
203
204static av_cold int vaapi_encode_vp8_init(AVCodecContext *avctx)
205{
206 VAAPIEncodeContext *ctx = avctx->priv_data;
207
208 ctx->codec = &vaapi_encode_type_vp8;
209
210 // No packed headers are currently desired. VP8 has no metadata
211 // which would be useful to write, and no existing driver supports
212 // adding them anyway.
213 ctx->desired_packed_headers = 0;
214
215 return ff_vaapi_encode_init(avctx);
216}
217
218#define OFFSET(x) offsetof(VAAPIEncodeVP8Context, x)
219#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