comparison mpegvideo.c @ 176:9ce215ee9216 libavcodec

unrestricted MC fixed - thanks to Michael Niedermayer for idea
author arpi_esp
date Sun, 16 Dec 2001 12:44:34 +0000
parents de80712db90b
children 374f80a78f0d
comparison
equal deleted inserted replaced
175:bd77d3cbb233 176:9ce215ee9216
399 /* generic function for encode/decode called after a frame has been coded/decoded */ 399 /* generic function for encode/decode called after a frame has been coded/decoded */
400 void MPV_frame_end(MpegEncContext *s) 400 void MPV_frame_end(MpegEncContext *s)
401 { 401 {
402 /* draw edge for correct motion prediction if outside */ 402 /* draw edge for correct motion prediction if outside */
403 if (s->pict_type != B_TYPE) { 403 if (s->pict_type != B_TYPE) {
404 #if 1
405 draw_edges(s->current_picture[0], s->linesize, s->mb_width*16, s->mb_height*16, EDGE_WIDTH);
406 draw_edges(s->current_picture[1], s->linesize/2, s->mb_width*8, s->mb_height*8, EDGE_WIDTH/2);
407 draw_edges(s->current_picture[2], s->linesize/2, s->mb_width*8, s->mb_height*8, EDGE_WIDTH/2);
408 #else
404 draw_edges(s->current_picture[0], s->linesize, s->width, s->height, EDGE_WIDTH); 409 draw_edges(s->current_picture[0], s->linesize, s->width, s->height, EDGE_WIDTH);
405 draw_edges(s->current_picture[1], s->linesize/2, s->width/2, s->height/2, EDGE_WIDTH/2); 410 draw_edges(s->current_picture[1], s->linesize/2, s->width/2, s->height/2, EDGE_WIDTH/2);
406 draw_edges(s->current_picture[2], s->linesize/2, s->width/2, s->height/2, EDGE_WIDTH/2); 411 draw_edges(s->current_picture[2], s->linesize/2, s->width/2, s->height/2, EDGE_WIDTH/2);
412 #endif
407 } 413 }
408 } 414 }
409 415
410 int MPV_encode_picture(AVCodecContext *avctx, 416 int MPV_encode_picture(AVCodecContext *avctx,
411 unsigned char *buf, int buf_size, void *data) 417 unsigned char *buf, int buf_size, void *data)