[FFmpeg-devel] [PATCH] RV40 Decoder - 1/3 - Loop Filter

Michael Niedermayer michaelni
Thu Nov 27 22:04:40 CET 2008


On Thu, Nov 27, 2008 at 09:23:21AM +0200, Kostya wrote:
> $subj
> 
> Fixed several bugs in chroma loop filtering introduced during
> refactoring, now it's bitexact again.

[...]

> +    for(s->mb_y = 0; s->mb_y < s->mb_height; s->mb_y++){
> +        mb_pos = s->mb_y * s->mb_stride;
> +        for(s->mb_x = 0; s->mb_x < s->mb_width; s->mb_x++, mb_pos++){
> +            int mbtype = s->current_picture_ptr->mb_type[mb_pos];
> +            if(IS_INTRA(mbtype) || IS_SEPARATE_DC(mbtype))
> +                r->cbp_luma  [mb_pos] = 0xFFFF;
> +            if(IS_INTRA(mbtype))
> +                r->cbp_chroma[mb_pos] = 0xFF;
> +        }
> +    }
> +    for(s->mb_y = 0; s->mb_y < s->mb_height; s->mb_y++){
> +        mb_pos = s->mb_y * s->mb_stride;
> +        for(s->mb_x = 0; s->mb_x < s->mb_width; s->mb_x++, mb_pos++){

loop filtering should be done after each block or row of blocks has been
decoded to maximize the chance that things still are in the cache

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081127/0a7c4cb9/attachment.pgp>



More information about the ffmpeg-devel mailing list