pixel format added

This commit is contained in:
Sibesh Kar
2019-07-14 19:49:07 +05:30
parent 4756f0b58d
commit 73f4a73054
8 changed files with 72 additions and 6550 deletions

Binary file not shown.

Binary file not shown.

6493
output.txt

File diff suppressed because one or more lines are too long

View File

@@ -21,17 +21,17 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type InitMsg struct { type InitMsg struct {
RfbHeader string `protobuf:"bytes,1,opt,name=RfbHeader,json=rfbHeader,proto3" json:"RfbHeader,omitempty"` RfbHeader string `protobuf:"bytes,1,opt,name=RfbHeader,json=rfbHeader,proto3" json:"RfbHeader,omitempty"`
RfbVersion string `protobuf:"bytes,2,opt,name=RfbVersion,json=rfbVersion,proto3" json:"RfbVersion,omitempty"` RfbVersion string `protobuf:"bytes,2,opt,name=RfbVersion,json=rfbVersion,proto3" json:"RfbVersion,omitempty"`
FBHeight uint32 `protobuf:"varint,3,opt,name=FBHeight,json=fBHeight,proto3" json:"FBHeight,omitempty"` FBHeight uint32 `protobuf:"varint,3,opt,name=FBHeight,json=fBHeight,proto3" json:"FBHeight,omitempty"`
FBWidth uint32 `protobuf:"varint,4,opt,name=FBWidth,json=fBWidth,proto3" json:"FBWidth,omitempty"` FBWidth uint32 `protobuf:"varint,4,opt,name=FBWidth,json=fBWidth,proto3" json:"FBWidth,omitempty"`
SecType uint32 `protobuf:"varint,5,opt,name=SecType,json=secType,proto3" json:"SecType,omitempty"` SecType uint32 `protobuf:"varint,5,opt,name=SecType,json=secType,proto3" json:"SecType,omitempty"`
StartTime uint32 `protobuf:"varint,6,opt,name=StartTime,json=startTime,proto3" json:"StartTime,omitempty"` StartTime uint32 `protobuf:"varint,6,opt,name=StartTime,json=startTime,proto3" json:"StartTime,omitempty"`
DesktopName string `protobuf:"bytes,7,opt,name=DesktopName,json=desktopName,proto3" json:"DesktopName,omitempty"` DesktopName string `protobuf:"bytes,7,opt,name=DesktopName,json=desktopName,proto3" json:"DesktopName,omitempty"`
PixelFormat string `protobuf:"bytes,8,opt,name=PixelFormat,json=pixelFormat,proto3" json:"PixelFormat,omitempty"` PixelFormat *PixelFormat `protobuf:"bytes,8,opt,name=PixelFormat,json=pixelFormat,proto3" json:"PixelFormat,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *InitMsg) Reset() { *m = InitMsg{} } func (m *InitMsg) Reset() { *m = InitMsg{} }
@@ -108,11 +108,11 @@ func (m *InitMsg) GetDesktopName() string {
return "" return ""
} }
func (m *InitMsg) GetPixelFormat() string { func (m *InitMsg) GetPixelFormat() *PixelFormat {
if m != nil { if m != nil {
return m.PixelFormat return m.PixelFormat
} }
return "" return nil
} }
type PointerEvent struct { type PointerEvent struct {
@@ -602,47 +602,47 @@ func init() {
func init() { proto.RegisterFile("demo.proto", fileDescriptor_ca53982754088a9d) } func init() { proto.RegisterFile("demo.proto", fileDescriptor_ca53982754088a9d) }
var fileDescriptor_ca53982754088a9d = []byte{ var fileDescriptor_ca53982754088a9d = []byte{
// 663 bytes of a gzipped FileDescriptorProto // 669 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0x4d, 0x6b, 0xdb, 0x5a, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xcb, 0x6a, 0xdb, 0x40,
0x10, 0x45, 0x96, 0x25, 0x4b, 0xe3, 0xf8, 0xbd, 0xe4, 0xbe, 0x10, 0xc4, 0xe3, 0xf1, 0x08, 0x5e, 0x14, 0x45, 0x96, 0x5f, 0xba, 0x8a, 0xdb, 0x64, 0x1a, 0x82, 0x28, 0xa5, 0x18, 0x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0x9a, 0xbc, 0x05, 0x2f, 0x89, 0xd6, 0xda, 0x97, 0x08, 0x1a, 0xda, 0x4a, 0x60, 0xdf,
0x25, 0x67, 0x10, 0x08, 0xb3, 0xb2, 0x22, 0x72, 0x35, 0xed, 0xa8, 0xa1, 0xb5, 0xcb, 0x4c, 0xdb, 0xfe, 0x63, 0x9c, 0x6e, 0x9f, 0x92, 0x53, 0xe8, 0x0a, 0xb3, 0xb2, 0x22, 0x70, 0x75, 0xda, 0x51,
0x12, 0xf2, 0x1a, 0x06, 0xb5, 0x39, 0x49, 0xbc, 0xd7, 0x9c, 0xae, 0xe6, 0xfc, 0x63, 0x39, 0x4f, 0x95, 0x56, 0x2f, 0x33, 0xad, 0x9f, 0x90, 0x77, 0xd0, 0x2b, 0xcd, 0x49, 0xe2, 0x9d, 0xce, 0x69,
0xcf, 0x95, 0xee, 0x57, 0x92, 0x33, 0x08, 0x57, 0xb8, 0xb5, 0x34, 0x4f, 0xd3, 0xfe, 0xb6, 0xb4, 0xea, 0x9c, 0x67, 0xd5, 0x29, 0xef, 0x9c, 0x2b, 0xdd, 0x7f, 0x49, 0x4e, 0xc1, 0x5b, 0xe2, 0xc6,
0xe6, 0x0e, 0xe9, 0xae, 0x22, 0xf1, 0x35, 0xf4, 0xf2, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x41, 0xa6, 0xb5, 0x74, 0xda, 0x53, 0x9b, 0x56, 0xdd, 0x21, 0xdd, 0xbe, 0x88, 0xda, 0x9a, 0x7a, 0xfd,
0x67, 0x4d, 0x1f, 0x14, 0x05, 0x00, 0x00, 0x37, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x19, 0x99, 0xbe, 0x28, 0x05, 0x00, 0x00,
} }

View File

@@ -9,7 +9,7 @@ message InitMsg {
uint32 SecType = 5; uint32 SecType = 5;
uint32 StartTime = 6; uint32 StartTime = 6;
string DesktopName = 7; string DesktopName = 7;
string PixelFormat = 8; PixelFormat PixelFormat = 8;
} }
message PointerEvent { message PointerEvent {

View File

@@ -41,6 +41,7 @@ func listPeople(w io.Writer, demo *pb.Demonstration) {
fmt.Printf("SecType: %v \n", demo.Initmsg.GetSecType()) fmt.Printf("SecType: %v \n", demo.Initmsg.GetSecType())
fmt.Printf("StartTime: %v \n", demo.Initmsg.GetStartTime()) fmt.Printf("StartTime: %v \n", demo.Initmsg.GetStartTime())
fmt.Printf("DesktopName: %v \n", demo.Initmsg.GetDesktopName()) fmt.Printf("DesktopName: %v \n", demo.Initmsg.GetDesktopName())
fmt.Printf("PixelFormat: %v \n", demo.Initmsg.GetPixelFormat())
// for _, p := range demo.Segments { // for _, p := range demo.Segments {
// writeSegment(w, p) // writeSegment(w, p)

View File

@@ -108,6 +108,19 @@ func (r *ProtoRecorder) writeStartSession(initMsg *common.ServerInit) error {
// r.buffer.WriteString(desktopName) // r.buffer.WriteString(desktopName)
pixel_format := &pb.PixelFormat{
BPP: uint32(initMsg.PixelFormat.BPP),
Depth: uint32(initMsg.PixelFormat.Depth),
BigEndian: uint32(initMsg.PixelFormat.BigEndian),
TrueColor: uint32(initMsg.PixelFormat.TrueColor),
RedMax: uint32(initMsg.PixelFormat.RedMax),
GreenMax: uint32(initMsg.PixelFormat.GreenMax),
BlueMax: uint32(initMsg.PixelFormat.BlueMax),
RedShift: uint32(initMsg.PixelFormat.RedShift),
GreenShift: uint32(initMsg.PixelFormat.GreenShift),
BlueShift: uint32(initMsg.PixelFormat.BlueShift),
}
initMsgProto := &pb.InitMsg{ initMsgProto := &pb.InitMsg{
RfbHeader: "FBS 001.000", RfbHeader: "FBS 001.000",
RfbVersion: versionMsg_3_3, RfbVersion: versionMsg_3_3,
@@ -116,6 +129,7 @@ func (r *ProtoRecorder) writeStartSession(initMsg *common.ServerInit) error {
SecType: uint32(SecTypeNone), SecType: uint32(SecTypeNone),
StartTime: uint32(r.startTime), StartTime: uint32(r.startTime),
DesktopName: desktopName, DesktopName: desktopName,
PixelFormat: pixel_format,
} }
r.demonstration.Initmsg = initMsgProto r.demonstration.Initmsg = initMsgProto
//binary.Write(&r.buffer, binary.BigEndian, byte(0)) // add null termination for desktop string //binary.Write(&r.buffer, binary.BigEndian, byte(0)) // add null termination for desktop string