public UDPRoverCameraDevice(string IpAddress, int Port, string aCameraName, string aMonikerString, int aCameraID, long ImageQuality, int FrameRateDivider)
            : base(aCameraName, aMonikerString, aCameraID, FrameRateDivider)
        {
            aImageQuality = ImageQuality;

            //register callback on BitmapAcquired
            RegisterBitmapAcquiredCB(BitmapAcquiredCBHandler);

            //Create a socket connection for data to go out.
            aUDPSender = new UDPSender(IpAddress, Port);
            converter = new ImageConverter();
            aUDPStatistics = new LocalUDPStatistics(aUDPSender, 1000);
            aCodecUtility = new CodecUtility();
            aRandomGenerator = new Random();
        }
Пример #2
0
        public UDPRoverCameraDevice(string IpAddress, int Port, string aCameraName, string aMonikerString, int aCameraID, long ImageQuality, int FrameRateDivider)
            : base(aCameraName, aMonikerString, aCameraID, FrameRateDivider)
        {
            aImageQuality = ImageQuality;

            //register callback on BitmapAcquired
            RegisterBitmapAcquiredCB(BitmapAcquiredCBHandler);

            //Create a socket connection for data to go out.
            aUDPSender       = new UDPSender(IpAddress, Port);
            converter        = new ImageConverter();
            aUDPStatistics   = new LocalUDPStatistics(aUDPSender, 1000);
            aCodecUtility    = new CodecUtility();
            aRandomGenerator = new Random();
        }