mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-08-25 00:28:25 +00:00
recorder working
This commit is contained in:
parent
f0ae005ead
commit
4756f0b58d
BIN
bin/recordings/recording_1563107869/proto.rbs
Normal file
BIN
bin/recordings/recording_1563107869/proto.rbs
Normal file
Binary file not shown.
BIN
bin/vnc_reader
BIN
bin/vnc_reader
Binary file not shown.
6493
output.txt
Normal file
6493
output.txt
Normal file
File diff suppressed because one or more lines are too long
@ -54,10 +54,14 @@ func listPeople(w io.Writer, demo *pb.Demonstration) {
|
||||
// writePointerEvent(w, p)
|
||||
// }
|
||||
|
||||
i := 0
|
||||
|
||||
for _, p := range demo.Fbupdates {
|
||||
fmt.Print(p)
|
||||
writeFbupdate(w, p, &i)
|
||||
}
|
||||
|
||||
fmt.Println(i)
|
||||
|
||||
}
|
||||
|
||||
func writeSegment(w io.Writer, p *pb.FbsSegment) {
|
||||
@ -65,11 +69,12 @@ func writeSegment(w io.Writer, p *pb.FbsSegment) {
|
||||
|
||||
}
|
||||
|
||||
func writeFbupdate(w io.Writer, p *pb.FramebufferUpdate) {
|
||||
func writeFbupdate(w io.Writer, p *pb.FramebufferUpdate, i *int) {
|
||||
|
||||
*i++
|
||||
fmt.Printf("----------FRAMEBUFFERUPDATE NUMBER %v -------------- \n", *i)
|
||||
for _, r := range p.Rectangles {
|
||||
fmt.Printf("(%d,%d) (width: %d, height: %d), Enc= %d \n", r.X, r.Y, r.Width, r.Height, r.Enc)
|
||||
|
||||
fmt.Printf("(%d,%d) (width: %d, height: %d), Enc= %d , Bytes: %v \n", r.X, r.Y, r.Width, r.Height, r.Enc, len(r.Bytes))
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user