| 958 | } |
| 959 | |
| 960 | static av_cold int indeo3_decode_init(AVCodecContext *avctx) |
| 961 | { |
| 962 | Indeo3DecodeContext *s = avctx->priv_data; |
| 963 | int ret = 0; |
| 964 | |
| 965 | s->avctx = avctx; |
| 966 | s->width = avctx->width; |
| 967 | s->height = avctx->height; |
| 968 | avctx->pix_fmt = PIX_FMT_YUV410P; |
| 969 | |
| 970 | if (!(ret = build_modpred(s))) |
| 971 | ret = iv_alloc_frames(s); |
| 972 | if (ret) |
| 973 | iv_free_func(s); |
| 974 | |
| 975 | return ret; |
| 976 | } |
| 977 | |
| 978 | static int iv_decode_frame(AVCodecContext *avctx, |
| 979 | const uint8_t *buf, int buf_size) |
nothing calls this directly
no test coverage detected