00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef BLITTER_32BPP_SSE4_ANIM_HPP
00013 #define BLITTER_32BPP_SSE4_ANIM_HPP
00014
00015 #ifdef WITH_SSE
00016
00017 #ifndef SSE_VERSION
00018 #define SSE_VERSION 4
00019 #endif
00020
00021 #ifndef FULL_ANIMATION
00022 #define FULL_ANIMATION 1
00023 #endif
00024
00025 #include "32bpp_anim.hpp"
00026 #include "32bpp_sse4.hpp"
00027
00028 #undef MARGIN_NORMAL_THRESHOLD
00029 #define MARGIN_NORMAL_THRESHOLD 4
00030
00032 class Blitter_32bppSSE4_Anim FINAL : public Blitter_32bppAnim, public Blitter_32bppSSE_Base {
00033 private:
00034
00035 public:
00036 template <BlitterMode mode, Blitter_32bppSSE_Base::ReadMode read_mode, Blitter_32bppSSE_Base::BlockType bt_last, bool translucent, bool animated>
00037 void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom);
00038 void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
00039 Sprite *Encode(const SpriteLoader::Sprite *sprite, AllocatorProc *allocator) {
00040 return Blitter_32bppSSE_Base::Encode(sprite, allocator);
00041 }
00042 const char *GetName() { return "32bpp-sse4-anim"; }
00043 };
00044
00046 class FBlitter_32bppSSE4_Anim: public BlitterFactory {
00047 public:
00048 FBlitter_32bppSSE4_Anim() : BlitterFactory("32bpp-sse4-anim", "SSE4 Blitter (palette animation)", HasCPUIDFlag(1, 2, 19)) {}
00049 Blitter *CreateInstance() { return new Blitter_32bppSSE4_Anim(); }
00050 };
00051
00052 #endif
00053 #endif