annotate src/filters/hq_shared32.h @ 319:92c47a9cdaea

adapting bootstrap to new util functions.
author Robert McIntyre <rlm@mit.edu>
date Tue, 03 Apr 2012 04:16:20 -0500
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 #ifndef VBA_HQ_SHARED32_H
rlm@1 2 #define VBA_HQ_SHARED32_H
rlm@1 3
rlm@1 4 #if _MSC_VER > 1000
rlm@1 5 #pragma once
rlm@1 6 #endif // _MSC_VER > 1000
rlm@1 7
rlm@1 8 #define abs32(value) (value & 0x7FFFFFFF)
rlm@1 9 #define abs16(value) (value & 0x7FFF)
rlm@1 10
rlm@1 11 const int Ymask = 0x00FF0000;
rlm@1 12 const int Umask = 0x0000FF00;
rlm@1 13 const int Vmask = 0x000000FF;
rlm@1 14 const int trY = 0x00300000;
rlm@1 15 const int trU = 0x00000700;
rlm@1 16 const int trV = 0x00000006;
rlm@1 17
rlm@1 18 void Interp1(unsigned char *pc, unsigned int c1, unsigned int c2);
rlm@1 19 void Interp2(unsigned char *pc, unsigned int c1, unsigned int c2, unsigned int c3);
rlm@1 20 void Interp3(unsigned char *pc, unsigned int c1, unsigned int c2);
rlm@1 21 void Interp4(unsigned char *pc, unsigned int c1, unsigned int c2, unsigned int c3);
rlm@1 22 void Interp5(unsigned char *pc, unsigned int c1, unsigned int c2);
rlm@1 23 void Interp1_16(unsigned char *pc, unsigned short c1, unsigned short c2);
rlm@1 24 void Interp2_16(unsigned char *pc, unsigned short c1, unsigned short c2, unsigned short c3);
rlm@1 25 void Interp3_16(unsigned char *pc, unsigned short c1, unsigned short c2);
rlm@1 26 void Interp4_16(unsigned char *pc, unsigned short c1, unsigned short c2, unsigned short c3);
rlm@1 27 void Interp5_16(unsigned char *pc, unsigned short c1, unsigned short c2);
rlm@1 28 bool Diff(unsigned int c1, unsigned int c2);
rlm@1 29 unsigned int RGBtoYUV(unsigned int c);
rlm@1 30
rlm@1 31 #endif // VBA_HQ_SHARED32_H