recorder working

This commit is contained in:
Sibesh Kar 2019-07-14 18:19:52 +05:30
parent f0ae005ead
commit 4756f0b58d
4 changed files with 6502 additions and 4 deletions

Binary file not shown.

Binary file not shown.

6493
output.txt Normal file

File diff suppressed because one or more lines are too long

View File

@ -54,10 +54,14 @@ func listPeople(w io.Writer, demo *pb.Demonstration) {
// writePointerEvent(w, p) // writePointerEvent(w, p)
// } // }
i := 0
for _, p := range demo.Fbupdates { for _, p := range demo.Fbupdates {
fmt.Print(p) writeFbupdate(w, p, &i)
} }
fmt.Println(i)
} }
func writeSegment(w io.Writer, p *pb.FbsSegment) { 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 { 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))
} }
} }