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

Function initRGBYUVTable

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

Source from the content-addressed store, hash-verified

5769 }
5770
5771 function initRGBYUVTable() {
5772 for(var i = 0; i < 256;i++) {
5773 RGB_YUV_TABLE[i] = 19595 * i;
5774 RGB_YUV_TABLE[(i+ 256)>>0] = 38470 * i;
5775 RGB_YUV_TABLE[(i+ 512)>>0] = 7471 * i + 0x8000;
5776 RGB_YUV_TABLE[(i+ 768)>>0] = -11059 * i;
5777 RGB_YUV_TABLE[(i+1024)>>0] = -21709 * i;
5778 RGB_YUV_TABLE[(i+1280)>>0] = 32768 * i + 0x807FFF;
5779 RGB_YUV_TABLE[(i+1536)>>0] = -27439 * i;
5780 RGB_YUV_TABLE[(i+1792)>>0] = - 5329 * i;
5781 }
5782 }
5783
5784 // IO functions
5785 function writeBits(bs)

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected