Browse Source

fix red_15mask and green_15mask. the previous values were wrong and caused

some SIMD functions to output wrong data.

Originally committed as revision 23021 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
tags/v0.5
Ivo van Poorten 18 years ago
parent
commit
19b202f9d1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libswscale/rgb2rgb.c

+ 2
- 2
libswscale/rgb2rgb.c View File

@@ -122,8 +122,8 @@ static const uint64_t mask16r __attribute__((aligned(8))) = 0xF800F800F800F800U
static const uint64_t red_16mask __attribute__((aligned(8))) = 0x0000f8000000f800ULL; static const uint64_t red_16mask __attribute__((aligned(8))) = 0x0000f8000000f800ULL;
static const uint64_t green_16mask __attribute__((aligned(8)))= 0x000007e0000007e0ULL; static const uint64_t green_16mask __attribute__((aligned(8)))= 0x000007e0000007e0ULL;
static const uint64_t blue_16mask __attribute__((aligned(8))) = 0x0000001f0000001fULL; static const uint64_t blue_16mask __attribute__((aligned(8))) = 0x0000001f0000001fULL;
static const uint64_t red_15mask __attribute__((aligned(8))) = 0x00007c000000f800ULL;
static const uint64_t green_15mask __attribute__((aligned(8)))= 0x000003e0000007e0ULL;
static const uint64_t red_15mask __attribute__((aligned(8))) = 0x00007c0000007c00ULL;
static const uint64_t green_15mask __attribute__((aligned(8)))= 0x000003e0000003e0ULL;
static const uint64_t blue_15mask __attribute__((aligned(8))) = 0x0000001f0000001fULL; static const uint64_t blue_15mask __attribute__((aligned(8))) = 0x0000001f0000001fULL;


#ifdef FAST_BGR2YV12 #ifdef FAST_BGR2YV12


Loading…
Cancel
Save