[FFmpeg-soc] [soc]: r984 - dirac/libavcodec/dirac.c
marco
subversion at mplayerhq.hu
Sun Aug 19 00:13:16 CEST 2007
Author: marco
Date: Sun Aug 19 00:13:16 2007
New Revision: 984
Log:
use edge extension when encoding intra frames
Modified:
dirac/libavcodec/dirac.c
Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c (original)
+++ dirac/libavcodec/dirac.c Sun Aug 19 00:13:16 2007
@@ -3826,11 +3826,20 @@ static int dirac_encode_component(DiracC
return -1;
}
- for (y = 0; y < s->padded_height; y++) {
- for (x = 0; x < s->padded_width; x++) {
+ for (y = 0; y < s->height; y++) {
+ for (x = 0; x < s->width; x++) {
coeffs[y * s->padded_width + x] =
s->picture.data[comp][y * s->picture.linesize[comp] + x];
}
+ for (x = s->width; x < s->padded_width; x++)
+ coeffs[y * s->padded_width + x] =
+ s->picture.data[comp][y * s->picture.linesize[comp]
+ + s->width];
+ }
+ for (y = s->height; y < s->padded_height; y++) {
+ for (x = 0; x < s->padded_width; x++)
+ coeffs[y * s->padded_width + x] =
+ s->picture.data[comp][s->height * s->picture.linesize[comp] + x];
}
dirac_dwt(s, coeffs);
More information about the FFmpeg-soc
mailing list