Mercurial > libavcodec.hg
comparison mpegvideo.c @ 701:85b071dfc7e3 libavcodec
ff_get_fourcc() & XVIX support
author | michaelni |
---|---|
date | Fri, 27 Sep 2002 10:27:57 +0000 |
parents | c622224012f0 |
children | 9b35329086c7 |
comparison
equal
deleted
inserted
replaced
700:0fb4c66527e1 | 701:85b071dfc7e3 |
---|---|
16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 * | 18 * |
19 * 4MV & hq & b-frame encoding stuff by Michael Niedermayer <michaelni@gmx.at> | 19 * 4MV & hq & b-frame encoding stuff by Michael Niedermayer <michaelni@gmx.at> |
20 */ | 20 */ |
21 | |
22 #include <ctype.h> | |
21 #include "avcodec.h" | 23 #include "avcodec.h" |
22 #include "dsputil.h" | 24 #include "dsputil.h" |
23 #include "mpegvideo.h" | 25 #include "mpegvideo.h" |
24 | 26 |
25 #ifdef USE_FASTMEMCPY | 27 #ifdef USE_FASTMEMCPY |
160 s->mb_height = (s->height + 15) / 16; | 162 s->mb_height = (s->height + 15) / 16; |
161 | 163 |
162 /* set default edge pos, will be overriden in decode_header if needed */ | 164 /* set default edge pos, will be overriden in decode_header if needed */ |
163 s->h_edge_pos= s->mb_width*16; | 165 s->h_edge_pos= s->mb_width*16; |
164 s->v_edge_pos= s->mb_height*16; | 166 s->v_edge_pos= s->mb_height*16; |
167 | |
168 /* convert fourcc to upper case */ | |
169 s->avctx->fourcc= toupper( s->avctx->fourcc &0xFF) | |
170 + (toupper((s->avctx->fourcc>>8 )&0xFF)<<8 ) | |
171 + (toupper((s->avctx->fourcc>>16)&0xFF)<<16) | |
172 + (toupper((s->avctx->fourcc>>24)&0xFF)<<24); | |
165 | 173 |
166 s->mb_num = s->mb_width * s->mb_height; | 174 s->mb_num = s->mb_width * s->mb_height; |
167 if(!(s->flags&CODEC_FLAG_DR1)){ | 175 if(!(s->flags&CODEC_FLAG_DR1)){ |
168 s->linesize = s->mb_width * 16 + 2 * EDGE_WIDTH; | 176 s->linesize = s->mb_width * 16 + 2 * EDGE_WIDTH; |
169 s->uvlinesize = s->mb_width * 8 + EDGE_WIDTH; | 177 s->uvlinesize = s->mb_width * 8 + EDGE_WIDTH; |