OLD | NEW |
1 /* | 1 /* |
2 * Electronic Arts TQI Video Decoder | 2 * Electronic Arts TQI Video Decoder |
3 * Copyright (c) 2007-2009 Peter Ross <pross@xvid.org> | 3 * Copyright (c) 2007-2009 Peter Ross <pross@xvid.org> |
4 * | 4 * |
5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
6 * | 6 * |
7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "dsputil.h" | 33 #include "dsputil.h" |
34 #include "aandcttab.h" | 34 #include "aandcttab.h" |
35 #include "mpeg12.h" | 35 #include "mpeg12.h" |
36 #include "mpegvideo.h" | 36 #include "mpegvideo.h" |
37 | 37 |
38 typedef struct TqiContext { | 38 typedef struct TqiContext { |
39 MpegEncContext s; | 39 MpegEncContext s; |
40 AVFrame frame; | 40 AVFrame frame; |
41 void *bitstream_buf; | 41 void *bitstream_buf; |
42 unsigned int bitstream_buf_size; | 42 unsigned int bitstream_buf_size; |
43 DECLARE_ALIGNED_16(DCTELEM, block)[6][64]; | 43 DECLARE_ALIGNED(16, DCTELEM, block)[6][64]; |
44 } TqiContext; | 44 } TqiContext; |
45 | 45 |
46 static av_cold int tqi_decode_init(AVCodecContext *avctx) | 46 static av_cold int tqi_decode_init(AVCodecContext *avctx) |
47 { | 47 { |
48 TqiContext *t = avctx->priv_data; | 48 TqiContext *t = avctx->priv_data; |
49 MpegEncContext *s = &t->s; | 49 MpegEncContext *s = &t->s; |
50 s->avctx = avctx; | 50 s->avctx = avctx; |
51 if(avctx->idct_algo==FF_IDCT_AUTO) | 51 if(avctx->idct_algo==FF_IDCT_AUTO) |
52 avctx->idct_algo=FF_IDCT_EA; | 52 avctx->idct_algo=FF_IDCT_EA; |
53 dsputil_init(&s->dsp, avctx); | 53 dsputil_init(&s->dsp, avctx); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 CODEC_TYPE_VIDEO, | 159 CODEC_TYPE_VIDEO, |
160 CODEC_ID_TQI, | 160 CODEC_ID_TQI, |
161 sizeof(TqiContext), | 161 sizeof(TqiContext), |
162 tqi_decode_init, | 162 tqi_decode_init, |
163 NULL, | 163 NULL, |
164 tqi_decode_end, | 164 tqi_decode_end, |
165 tqi_decode_frame, | 165 tqi_decode_frame, |
166 CODEC_CAP_DR1, | 166 CODEC_CAP_DR1, |
167 .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TQI Video"), | 167 .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TQI Video"), |
168 }; | 168 }; |
OLD | NEW |