(調査中)
xz Stream を用います
疑似コードこんな感じかな。
int nAllRects;
int nDataLength;
int encoding = 18;
xzStream(nDataLength)
{
rfbRectangle rects[AllRects] = readRects;
foreach (rect : rects) {
xzDecode ; ZRLE Encoding の zlibData の中身、つまり subencoding からの処理と同様
}
}
2016年9月23日金曜日
2016年3月4日金曜日
VNC の PIXEL_FORMAT
The RFB Protocol の PIXEL_FORMAT は、どのような値が設定されているのか… UltraVNC を用いてサンプルを取得しました。
https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#serverinit
|Full |256Clr|64Clrs|8 Clrs|8 Dark|4 Grey|B&W |
----------------|------|------|------|------|------|------|------|
bits-per-pixel| 32| 8| 8| 8| 8| 8| 8|
depth| 32| 8| 6| 3| 8| 6| 3|
big-endian-flag| 0| 0| 0| 0| 0| 0| 0|
true-colour-flag| 1| 1| 1| 1| 1| 1| 1|
red-max| 255| 7| 3| 1| 7| 3| 1|
green-max| 255| 7| 3| 1| 7| 3| 1|
blue-max| 255| 3| 3| 1| 3| 3| 1|
red-shift| 16| 0| 4| 2| 0| 4| 2|
green-shift| 8| 3| 2| 1| 3| 2| 1|
blue-shift| 0| 6| 0| 0| 6| 0| 0|
https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#serverinit
|Full |256Clr|64Clrs|8 Clrs|8 Dark|4 Grey|B&W |
----------------|------|------|------|------|------|------|------|
bits-per-pixel| 32| 8| 8| 8| 8| 8| 8|
depth| 32| 8| 6| 3| 8| 6| 3|
big-endian-flag| 0| 0| 0| 0| 0| 0| 0|
true-colour-flag| 1| 1| 1| 1| 1| 1| 1|
red-max| 255| 7| 3| 1| 7| 3| 1|
green-max| 255| 7| 3| 1| 7| 3| 1|
blue-max| 255| 3| 3| 1| 3| 3| 1|
red-shift| 16| 0| 4| 2| 0| 4| 2|
green-shift| 8| 3| 2| 1| 3| 2| 1|
blue-shift| 0| 6| 0| 0| 6| 0| 0|
登録:
コメント (Atom)