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

Function decode_frame

libavcodec/sanm.c:2898–2915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2896}
2897
2898static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
2899 int *got_frame_ptr, AVPacket *pkt)
2900{
2901 SANMVideoContext *ctx = avctx->priv_data;
2902 int ret;
2903
2904 ctx->frame = frame;
2905 bytestream2_init(&ctx->gb, pkt->data, pkt->size);
2906
2907 if (!ctx->version) {
2908 if ((ret = decode_anim(avctx, got_frame_ptr)))
2909 return ret;
2910 } else {
2911 if ((ret = decode_bl16(avctx, got_frame_ptr)))
2912 return ret;
2913 }
2914 return pkt->size;
2915}
2916
2917const FFCodec ff_sanm_decoder = {
2918 .p.name = "sanm",

Callers

nothing calls this directly

Calls 3

bytestream2_initFunction · 0.85
decode_animFunction · 0.85
decode_bl16Function · 0.85

Tested by

no test coverage detected