OLD | NEW |
1 /* | 1 /* |
2 * 4XM codec | 2 * 4XM codec |
3 * Copyright (c) 2003 Michael Niedermayer | 3 * Copyright (c) 2003 Michael Niedermayer |
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 AVCodecContext *avctx; | 130 AVCodecContext *avctx; |
131 DSPContext dsp; | 131 DSPContext dsp; |
132 AVFrame current_picture, last_picture; | 132 AVFrame current_picture, last_picture; |
133 GetBitContext pre_gb; ///< ac/dc prefix | 133 GetBitContext pre_gb; ///< ac/dc prefix |
134 GetBitContext gb; | 134 GetBitContext gb; |
135 const uint8_t *bytestream; | 135 const uint8_t *bytestream; |
136 const uint16_t *wordstream; | 136 const uint16_t *wordstream; |
137 int mv[256]; | 137 int mv[256]; |
138 VLC pre_vlc; | 138 VLC pre_vlc; |
139 int last_dc; | 139 int last_dc; |
140 DECLARE_ALIGNED_16(DCTELEM, block)[6][64]; | 140 DECLARE_ALIGNED(16, DCTELEM, block)[6][64]; |
141 void *bitstream_buffer; | 141 void *bitstream_buffer; |
142 unsigned int bitstream_buffer_size; | 142 unsigned int bitstream_buffer_size; |
143 int version; | 143 int version; |
144 CFrameBuffer cfrm[CFRAME_BUFFER_COUNT]; | 144 CFrameBuffer cfrm[CFRAME_BUFFER_COUNT]; |
145 } FourXContext; | 145 } FourXContext; |
146 | 146 |
147 | 147 |
148 #define FIX_1_082392200 70936 | 148 #define FIX_1_082392200 70936 |
149 #define FIX_1_414213562 92682 | 149 #define FIX_1_414213562 92682 |
150 #define FIX_1_847759065 121095 | 150 #define FIX_1_847759065 121095 |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 CODEC_ID_4XM, | 846 CODEC_ID_4XM, |
847 sizeof(FourXContext), | 847 sizeof(FourXContext), |
848 decode_init, | 848 decode_init, |
849 NULL, | 849 NULL, |
850 decode_end, | 850 decode_end, |
851 decode_frame, | 851 decode_frame, |
852 CODEC_CAP_DR1, | 852 CODEC_CAP_DR1, |
853 .long_name = NULL_IF_CONFIG_SMALL("4X Movie"), | 853 .long_name = NULL_IF_CONFIG_SMALL("4X Movie"), |
854 }; | 854 }; |
855 | 855 |
OLD | NEW |