void OnFrameGrabbed(GstBaseTexture texture, int index) { // Debug.Log ("Frame Grabbed: "+index); m_grabbedFrames++; if (m_grabbedFrames > 10) { // _camRenderer[0].Enable(); // _camRenderer[1].Enable(); } if (_imageProcessor != null) { _imageProcessor.ProcessTextures(ref Output); } if (OnImageArrived != null) { OnImageArrived(this, index); } if (RobotConnector != null) { RobotConnector.OnCameraFPS(_cameraSource.GetCaptureRate((int)EyeName.LeftEye), _cameraSource.GetCaptureRate((int)EyeName.RightEye)); } }
void OnFrameGrabbed(GstBaseTexture src, int index) { //m_Texture.Player.CopyFrame (_img); m_Texture.Player.CopyFrameCropped(_img, (int)BlitRect.x, (int)BlitRect.y, (int)BlitRect.width, (int)BlitRect.height); _img.BlitToTexture(BlittedImage); // Debug.Log(String.Format("Frame Copied {0}x{1}",_img.Width,_img.Height)); }
void OnFrameGrabbed(GstBaseTexture src, int index) { if (_sampleImage && index == _targetStream) { lock (_img) { //_SrcTexture.Player.CopyFrameCropped (_img, (int)BlitRect.x, (int)BlitRect.y, (int)BlitRect.width, (int)BlitRect.height); if (_sampleRect) { _img.CopyCroppedFrom(src.GetPlayer().GetLastImage(index), (int)BlitRect.x, (int)BlitRect.y, (int)BlitRect.width, (int)BlitRect.height, true); } else { _img.CopyFrom(src.GetPlayer().GetLastImage(index)); } } _sampleImage = false; // _img.FlipImage (false, true); if (OnImageSampled != null) { OnImageSampled(this, _img); } _sampleImage = false; _newImg = true; } }
void _OnFrameGrabbed(GstBaseTexture src, int index) { if (OnImageArrived != null) { OnImageArrived(this, index); } _needProcessing = true; }
void OnImageArrived(GstBaseTexture src, int index) { if (Src.Output == null) { return; } _eye = index; new_image = true; }
void OnFrameBlitted(GstBaseTexture src, int index) { //m_Texture.Player.CopyFrame (_img); float w = m_Texture.Player.FrameSizeImage.x; float h = m_Texture.Player.FrameSizeImage.y; //m_Texture.Player.CopyFrameCropped(_img,(int)(BlitRect.x*w),(int)(BlitRect.y*h),(int)(BlitRect.width*w),(int)(BlitRect.height*h)); m_Texture.Player.CopyFrameCropped(_img, 0, 0, 7680, 2160); _newFrame = true; // Debug.Log(String.Format("Frame Copied {0}x{1}",_img.Width,_img.Height)); }
void OnFrameBlitted(GstBaseTexture src, int index) { m_Texture.Player.CopyFrame(_img_left); m_Texture.Player.CopyFrame(_img_right); float w = m_Texture.Player.FrameSizeImage.x; float h = m_Texture.Player.FrameSizeImage.y; m_Texture.Player.CopyFrameCropped(_img_left, 0, 0, (int)(w / 2), (int)(h)); m_Texture.Player.CopyFrameCropped(_img_right, (int)(w / 2), 0, (int)(w / 2), (int)(h)); _newFrame = true; if (_newFrame) { _img_left.BlitToTexture(blittedImageLeft); _img_right.BlitToTexture(blittedImageRight); _newFrame = false; } }
void OnFrameBlitted(GstBaseTexture src, int index) { m_Texture.Player.CopyFrame(_img_left); m_Texture.Player.CopyFrame(_img_right); float w = m_Texture.Player.FrameSizeImage.x; float h = m_Texture.Player.FrameSizeImage.y; m_Texture.Player.CopyFrameCropped(_img_left, 0, 0, (int)(w / 2), (int)(h)); m_Texture.Player.CopyFrameCropped(_img_right, (int)(w / 2), 0, (int)(w / 2), (int)(h)); _newFrame = true; //can be moved update function in case of performance issues if (_newFrame) { _img_left.BlitToTexture(blittedImageLeft); _img_right.BlitToTexture(blittedImageRight); _newFrame = false; } }
void OnFrameGrabbed(GstBaseTexture src, int index) { _needProcessing [index] = true; }
void OnFrameGrabbed(GstBaseTexture src, int index) { _newFrame = true; }
public DebugCameraCaptureElement(GstBaseTexture src) { SrcTexture = src; }
public ImageSampler(GstBaseTexture src, GstImageInfo.EPixelFormat format = GstImageInfo.EPixelFormat.EPixel_Alpha8) { _format = format; _SrcTexture = src; _initTexture(); }
void OnFrameGrabbed(GstBaseTexture src, int index) { //Debug.Log ("A"); m_dirty = true; }