1 /*
2 * AVRn decoder
3 * Copyright (c) 2012 Michael Niedermayer
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
27
34
36 {
39
40 // Support "Resolution 1:1" for Avid AVI Codec
42
46 }
47
50
53
55
61 }
62 }
63
64 return 0;
65 }
66
68 {
70
73
74 return 0;
75 }
76
79 {
83 int buf_size = avpkt->
size;
84 int y,
ret, true_height;
85
88
89 true_height = buf_size / (2*avctx->
width);
90
94 }
95
100
103 for(y = 0; y < avctx->
height-1; y+=2) {
106 buf += 2*avctx->
width;
107 }
108 } else {
109 buf += (true_height - avctx->
height)*avctx->
width*2;
110 for(y = 0; y < avctx->
height; y++) {
112 buf += 2*avctx->
width;
113 }
114 }
115
116 *got_frame = 1;
117 return buf_size;
118 }
119
130 .max_lowres = 3,
131 };
132