#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_CPU_X86_WEBGL_IMAGE_CONVERSION_SSE_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_CPU_X86_WEBGL_IMAGE_CONVERSION_SSE_H_
#include "build/build_config.h"
#if defined(ARCH_CPU_X86_FAMILY)
#include <emmintrin.h>
namespace blink {
namespace simd {
ALWAYS_INLINE void UnpackOneRowOfRGBA4444LittleToRGBA8(
const uint16_t*& source,
uint8_t*& destination,
unsigned& pixels_per_row) { … }
ALWAYS_INLINE void UnpackOneRowOfRGBA5551LittleToRGBA8(
const uint16_t*& source,
uint8_t*& destination,
unsigned& pixels_per_row) { … }
ALWAYS_INLINE void PackOneRowOfRGBA8LittleToRA8(const uint8_t*& source,
uint8_t*& destination,
unsigned& pixels_per_row) { … }
ALWAYS_INLINE void UnpackOneRowOfBGRA8LittleToRGBA8(const uint32_t*& source,
uint32_t*& destination,
unsigned& pixels_per_row) { … }
ALWAYS_INLINE void PackOneRowOfRGBA8LittleToR8(const uint8_t*& source,
uint8_t*& destination,
unsigned& pixels_per_row) { … }
ALWAYS_INLINE void PackOneRowOfRGBA8LittleToRGBA8(const uint8_t*& source,
uint8_t*& destination,
unsigned& pixels_per_row) { … }
}
}
#endif
#endif