Mercurial > libavcodec.hg
comparison mpegvideo.c @ 3316:7278f730af27 libavcodec
h264: MBAFF interlaced decoding
author | lorenm |
---|---|
date | Sun, 28 May 2006 22:44:14 +0000 |
parents | 5e2c69db0ef7 |
children | 8869b4dd2ffe |
comparison
equal
deleted
inserted
replaced
3315:cfd452a6560b | 3316:7278f730af27 |
---|---|
485 | 485 |
486 static int init_duplicate_context(MpegEncContext *s, MpegEncContext *base){ | 486 static int init_duplicate_context(MpegEncContext *s, MpegEncContext *base){ |
487 int i; | 487 int i; |
488 | 488 |
489 // edge emu needs blocksize + filter length - 1 (=17x17 for halfpel / 21x21 for h264) | 489 // edge emu needs blocksize + filter length - 1 (=17x17 for halfpel / 21x21 for h264) |
490 CHECKED_ALLOCZ(s->allocated_edge_emu_buffer, (s->width+64)*2*17*2); //(width + edge + align)*interlaced*MBsize*tolerance | 490 CHECKED_ALLOCZ(s->allocated_edge_emu_buffer, (s->width+64)*2*21*2); //(width + edge + align)*interlaced*MBsize*tolerance |
491 s->edge_emu_buffer= s->allocated_edge_emu_buffer + (s->width+64)*2*17; | 491 s->edge_emu_buffer= s->allocated_edge_emu_buffer + (s->width+64)*2*21; |
492 | 492 |
493 //FIXME should be linesize instead of s->width*2 but that isnt known before get_buffer() | 493 //FIXME should be linesize instead of s->width*2 but that isnt known before get_buffer() |
494 CHECKED_ALLOCZ(s->me.scratchpad, (s->width+64)*4*16*2*sizeof(uint8_t)) | 494 CHECKED_ALLOCZ(s->me.scratchpad, (s->width+64)*4*16*2*sizeof(uint8_t)) |
495 s->rd_scratchpad= s->me.scratchpad; | 495 s->rd_scratchpad= s->me.scratchpad; |
496 s->b_scratchpad= s->me.scratchpad; | 496 s->b_scratchpad= s->me.scratchpad; |