[SignalingServer] Optimize dependent modules
[platform/framework/web/wrtjs.git] / device_home / node_modules / pngjs / lib / constants.js
1 'use strict';
2
3
4 module.exports = {
5
6   PNG_SIGNATURE: [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a],
7
8   TYPE_IHDR: 0x49484452,
9   TYPE_IEND: 0x49454e44,
10   TYPE_IDAT: 0x49444154,
11   TYPE_PLTE: 0x504c5445,
12   TYPE_tRNS: 0x74524e53, // eslint-disable-line camelcase
13   TYPE_gAMA: 0x67414d41, // eslint-disable-line camelcase
14
15   // color-type bits
16   COLORTYPE_GRAYSCALE: 0,
17   COLORTYPE_PALETTE: 1,
18   COLORTYPE_COLOR: 2,
19   COLORTYPE_ALPHA: 4, // e.g. grayscale and alpha
20
21   // color-type combinations
22   COLORTYPE_PALETTE_COLOR: 3,
23   COLORTYPE_COLOR_ALPHA: 6,
24
25   COLORTYPE_TO_BPP_MAP: {
26     0: 1,
27     2: 3,
28     3: 1,
29     4: 2,
30     6: 4
31   },
32
33   GAMMA_DIVISION: 100000
34 };