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

Function seqvideo_decode_init

libavcodec/tiertexseqv.c:213–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213static av_cold int seqvideo_decode_init(AVCodecContext *avctx)
214{
215 SeqVideoContext *seq = avctx->priv_data;
216 int ret;
217
218 seq->avctx = avctx;
219 avctx->pix_fmt = AV_PIX_FMT_PAL8;
220
221 ret = ff_set_dimensions(avctx, 256, 128);
222 if (ret < 0)
223 return ret;
224
225 seq->frame = av_frame_alloc();
226 if (!seq->frame)
227 return AVERROR(ENOMEM);
228
229 return 0;
230}
231
232static int seqvideo_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
233 int *got_frame, AVPacket *avpkt)

Callers

nothing calls this directly

Calls 2

ff_set_dimensionsFunction · 0.85
av_frame_allocFunction · 0.85

Tested by

no test coverage detected