MCPcopy Create free account
hub / github.com/TruthHun/BookStack / initRGBYUVTable

Function initRGBYUVTable

static/webuploader/webuploader.custom.js:5782–5793  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5780 }
5781
5782 function initRGBYUVTable() {
5783 for(var i = 0; i < 256;i++) {
5784 RGB_YUV_TABLE[i] = 19595 * i;
5785 RGB_YUV_TABLE[(i+ 256)>>0] = 38470 * i;
5786 RGB_YUV_TABLE[(i+ 512)>>0] = 7471 * i + 0x8000;
5787 RGB_YUV_TABLE[(i+ 768)>>0] = -11059 * i;
5788 RGB_YUV_TABLE[(i+1024)>>0] = -21709 * i;
5789 RGB_YUV_TABLE[(i+1280)>>0] = 32768 * i + 0x807FFF;
5790 RGB_YUV_TABLE[(i+1536)>>0] = -27439 * i;
5791 RGB_YUV_TABLE[(i+1792)>>0] = - 5329 * i;
5792 }
5793 }
5794
5795 // IO functions
5796 function writeBits(bs)

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected