Mercurial > libavcodec.hg
comparison error_resilience.c @ 10609:f864e7927dff libavcodec
4:2:2 4:4:4 bugfix for the error concealment code.
author | michael |
---|---|
date | Tue, 01 Dec 2009 01:01:37 +0000 |
parents | 2c2827f792a1 |
children | 411ab09ada91 |
comparison
equal
deleted
inserted
replaced
10608:dab94852ac8b | 10609:f864e7927dff |
---|---|
31 #include "dsputil.h" | 31 #include "dsputil.h" |
32 #include "mpegvideo.h" | 32 #include "mpegvideo.h" |
33 | 33 |
34 static void decode_mb(MpegEncContext *s){ | 34 static void decode_mb(MpegEncContext *s){ |
35 s->dest[0] = s->current_picture.data[0] + (s->mb_y * 16* s->linesize ) + s->mb_x * 16; | 35 s->dest[0] = s->current_picture.data[0] + (s->mb_y * 16* s->linesize ) + s->mb_x * 16; |
36 s->dest[1] = s->current_picture.data[1] + (s->mb_y * 8 * s->uvlinesize) + s->mb_x * 8; | 36 s->dest[1] = s->current_picture.data[1] + (s->mb_y * (16>>s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16>>s->chroma_x_shift); |
37 s->dest[2] = s->current_picture.data[2] + (s->mb_y * 8 * s->uvlinesize) + s->mb_x * 8; | 37 s->dest[2] = s->current_picture.data[2] + (s->mb_y * (16>>s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16>>s->chroma_x_shift); |
38 | 38 |
39 MPV_decode_mb(s, s->block); | 39 MPV_decode_mb(s, s->block); |
40 } | 40 } |
41 | 41 |
42 /** | 42 /** |