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

Function ff_ffv1_common_init

libavcodec/ffv1.c:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#include "libavutil/refstruct.h"
35
36av_cold int ff_ffv1_common_init(AVCodecContext *avctx, FFV1Context *s)
37{
38 if (!avctx->width || !avctx->height)
39 return AVERROR_INVALIDDATA;
40
41 s->avctx = avctx;
42 s->flags = avctx->flags;
43
44 s->width = avctx->width;
45 s->height = avctx->height;
46
47 // defaults
48 s->num_h_slices = 1;
49 s->num_v_slices = 1;
50
51 return 0;
52}
53
54static void planes_free(AVRefStructOpaque opaque, void *obj)
55{

Callers 4

parseFunction · 0.85
encode_init_internalFunction · 0.85
decode_initFunction · 0.85
vulkan_encode_ffv1_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected