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

Method bits

java/com/tigervnc/rfb/PixelFormat.java:428–452  ·  view source on GitHub ↗
(int value)

Source from the content-addressed store, hash-verified

426 }
427
428 private static int bits(int value)
429 {
430 int bits;
431
432 bits = 16;
433
434 if ((value & 0xff00) == 0) {
435 bits -= 8;
436 value <<= 8;
437 }
438 if ((value & 0xf000) == 0) {
439 bits -= 4;
440 value <<= 4;
441 }
442 if ((value & 0xc000) == 0) {
443 bits -= 2;
444 value <<= 2;
445 }
446 if ((value & 0x8000) == 0) {
447 bits -= 1;
448 value <<= 1;
449 }
450
451 return bits;
452 }
453
454 private void updateState()
455 {

Callers 2

updateStateMethod · 0.95
isSaneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected