MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / PixelFormat

Method PixelFormat

java/com/tigervnc/rfb/PixelFormat.java:37–48  ·  view source on GitHub ↗
(int b, int d, boolean e, boolean t,
                     int rm, int gm, int bm, int rs, int gs, int bs)

Source from the content-addressed store, hash-verified

35public class PixelFormat {
36
37 public PixelFormat(int b, int d, boolean e, boolean t,
38 int rm, int gm, int bm, int rs, int gs, int bs)
39 {
40 bpp = b; depth = d; trueColour = t; bigEndian = e;
41 redMax = rm; greenMax = gm; blueMax = bm;
42 redShift = rs; greenShift = gs; blueShift = bs;
43 converters = new HashMap<Integer, ColorConvertOp>();
44 if (!isSane())
45 throw new Exception("invalid pixel format");
46
47 updateState();
48 }
49
50 public PixelFormat()
51 {

Callers

nothing calls this directly

Calls 2

isSaneMethod · 0.95
updateStateMethod · 0.95

Tested by

no test coverage detected