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

Function rv60_decode_init

libavcodec/rv60dec.c:255–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255static av_cold int rv60_decode_init(AVCodecContext * avctx)
256{
257 static AVOnce init_static_once = AV_ONCE_INIT;
258 RV60Context *s = avctx->priv_data;
259
260 s->avctx = avctx;
261
262 ff_videodsp_init(&s->vdsp, 8);
263
264 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
265
266 for (int i = 0; i < 3; i++) {
267 s->last_frame[i] = av_frame_alloc();
268 if (!s->last_frame[i])
269 return AVERROR(ENOMEM);
270 }
271
272 ff_thread_once(&init_static_once, rv60_init_static_data);
273
274 return 0;
275}
276
277static int update_dimensions_clear_info(RV60Context *s, int width, int height)
278{

Callers

nothing calls this directly

Calls 3

ff_videodsp_initFunction · 0.85
av_frame_allocFunction · 0.85
ff_thread_onceFunction · 0.85

Tested by

no test coverage detected