X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_chroma%2Fi420_rgb8.c;h=14581c95e5eab720979c4085dd6903b2a59982f2;hb=f2e9e1493074b89632022946d3f6c319e8e0e522;hp=9528ffaea867c31819ab967098769fe900e4f127;hpb=2e2178f773f3316cb9895e25eb14b8db70f9a414;p=vlc diff --git a/modules/video_chroma/i420_rgb8.c b/modules/video_chroma/i420_rgb8.c index 9528ffaea8..14581c95e5 100644 --- a/modules/video_chroma/i420_rgb8.c +++ b/modules/video_chroma/i420_rgb8.c @@ -29,9 +29,8 @@ # include "config.h" #endif -#include +#include #include -#include #include "i420_rgb.h" #include "i420_rgb_c.h" @@ -70,15 +69,15 @@ void I420_RGB8( filter_t *p_filter, picture_t *p_src, picture_t *p_dest ) - p_src->p[1].i_visible_pitch; /* The dithering matrices */ - static int dither10[4] = { 0x0, 0x8, 0x2, 0xa }; - static int dither11[4] = { 0xc, 0x4, 0xe, 0x6 }; - static int dither12[4] = { 0x3, 0xb, 0x1, 0x9 }; - static int dither13[4] = { 0xf, 0x7, 0xd, 0x5 }; - - static int dither20[4] = { 0x0, 0x10, 0x4, 0x14 }; - static int dither21[4] = { 0x18, 0x8, 0x1c, 0xc }; - static int dither22[4] = { 0x6, 0x16, 0x2, 0x12 }; - static int dither23[4] = { 0x1e, 0xe, 0x1a, 0xa }; + static const int dither10[4] = { 0x0, 0x8, 0x2, 0xa }; + static const int dither11[4] = { 0xc, 0x4, 0xe, 0x6 }; + static const int dither12[4] = { 0x3, 0xb, 0x1, 0x9 }; + static const int dither13[4] = { 0xf, 0x7, 0xd, 0x5 }; + + static const int dither20[4] = { 0x0, 0x10, 0x4, 0x14 }; + static const int dither21[4] = { 0x18, 0x8, 0x1c, 0xc }; + static const int dither22[4] = { 0x6, 0x16, 0x2, 0x12 }; + static const int dither23[4] = { 0x1e, 0xe, 0x1a, 0xa }; SetOffset( p_filter->fmt_in.video.i_width, p_filter->fmt_in.video.i_height,