
org.jfxvnc.net.rfb.codec.Encoding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfxvnc-net Show documentation
Show all versions of jfxvnc-net Show documentation
RFB/VNC protocol codec and handler based on netty
package org.jfxvnc.net.rfb.codec;
/*
* #%L
* jfxvnc-net
* %%
* Copyright (C) 2015 comtel2000
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/**
* Encoding types
*
*
* 0 Raw
* 1 CopyRect
* 2 RRE
* 5 Hextile
* 16 ZRLE
* -239 Cursor pseudo-encoding
* -223 DesktopSize pseudo-encoding
* 4 CoRRE
* 6 zlib
* 7 tight
* 8 zlibhex
* 15 TRLE
* 17 Hitachi ZYWRLE
* 18 Adam Walling XZ
* 19 Adam Walling XZYW
* -1 to -222
* -224 to -238
* -240 to -256 tight options
* -257 to -272 Anthony Liguori
* -273 to -304 VMWare
* -305 gii
* -306 popa
* -307 Peter Astrand DesktopName
* -308 Pierre Ossman ExtendedDesktopSize
* -309 Colin Dean xvp
* -310 OLIVE Call Control
* -311 CursorWithAlpha
* -412 to -512 TurboVNC fine-grained quality level
* -763 to -768 TurboVNC subsampling level
* 0x574d5600 to 0x574d56ff VMWare
*
*
*/
public enum Encoding {
UNKNOWN(Integer.MIN_VALUE), RAW(0), COPY_RECT(1), RRE(2), HEXTILE(3),
CO_RRE(4), ZLIB(6), TIGHT(7), ZLIB_HEX(8), TRLE(15), ZRLE(16),
H_ZYWRLE(17), AW_XZ(18), AW_XZYW(19),
DESKTOP_SIZE(-223), CURSOR(-239);
private final int type;
private Encoding(int type) {
this.type = type;
}
public static Encoding valueOf(int type) {
for (Encoding e : values()) {
if (e.type == type) {
return e;
}
}
return UNKNOWN;
}
public int getType() {
return type;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy