github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_video_stream_information.go (about)

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Information about video stream. It may be requested using MAV_CMD_REQUEST_MESSAGE, where param2 indicates the video stream id: 0 for all streams, 1 for first, 2 for second, etc.
     6  type MessageVideoStreamInformation struct {
     7  	// Video Stream ID (1 for first, 2 for second, etc.)
     8  	StreamId uint8
     9  	// Number of streams available.
    10  	Count uint8
    11  	// Type of stream.
    12  	Type VIDEO_STREAM_TYPE `mavenum:"uint8"`
    13  	// Bitmap of stream status flags.
    14  	Flags VIDEO_STREAM_STATUS_FLAGS `mavenum:"uint16"`
    15  	// Frame rate.
    16  	Framerate float32
    17  	// Horizontal resolution.
    18  	ResolutionH uint16
    19  	// Vertical resolution.
    20  	ResolutionV uint16
    21  	// Bit rate.
    22  	Bitrate uint32
    23  	// Video image rotation clockwise.
    24  	Rotation uint16
    25  	// Horizontal Field of view.
    26  	Hfov uint16
    27  	// Stream name.
    28  	Name string `mavlen:"32"`
    29  	// Video stream URI (TCP or RTSP URI ground station should connect to) or port number (UDP port ground station should listen to).
    30  	Uri string `mavlen:"160"`
    31  }
    32  
    33  // GetID implements the message.Message interface.
    34  func (*MessageVideoStreamInformation) GetID() uint32 {
    35  	return 269
    36  }