From b57d8b3c02ab671059d8dd7bf7f7990075355f05 Mon Sep 17 00:00:00 2001 From: sylvain Date: Sat, 23 Nov 2013 19:31:40 -0500 Subject: [PATCH 1/2] Fix flicker --- MapperGLCanvas.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MapperGLCanvas.cpp b/MapperGLCanvas.cpp index 83ef806..4472fd0 100644 --- a/MapperGLCanvas.cpp +++ b/MapperGLCanvas.cpp @@ -40,7 +40,10 @@ MapperGLCanvas::MapperGLCanvas(wxFrame *parent) : } void MapperGLCanvas::Paintit(wxPaintEvent& WXUNUSED(event)) { - //GetParent()->Refresh(); + + //GetParent()->Refresh(); + //sleep(1); + Render(); } @@ -81,6 +84,7 @@ void MapperGLCanvas::OnChar(wxKeyEvent & event) p.y += yMove; quad.setVertex(current, p); + GetParent()->Refresh(); Render(); } From 724c1fc67d01cf804004af03e417caab3fa7cff7 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Sat, 23 Nov 2013 19:50:20 -0500 Subject: [PATCH 2/2] add shm proto --- prototypes/shm/read.sh | 5 +++++ prototypes/shm/write.sh | 5 +++++ 2 files changed, 10 insertions(+) create mode 100755 prototypes/shm/read.sh create mode 100755 prototypes/shm/write.sh diff --git a/prototypes/shm/read.sh b/prototypes/shm/read.sh new file mode 100755 index 0000000..a3a64f6 --- /dev/null +++ b/prototypes/shm/read.sh @@ -0,0 +1,5 @@ +gst-launch -e shmsrc socket-path=/tmp/test is-live=1 ! \ + video/x-raw-yuv,format=\(fourcc\)I420,framerate=30/1,width=640,height=480 ! \ + xvimagesink + + diff --git a/prototypes/shm/write.sh b/prototypes/shm/write.sh new file mode 100755 index 0000000..4af6776 --- /dev/null +++ b/prototypes/shm/write.sh @@ -0,0 +1,5 @@ +gst-launch -v videotestsrc ! \ + 'video/x-raw-yuv, width=640, height=480, framerate=30/1, format=(fourcc)I420' ! \ + shmsink socket-path=/tmp/test shm-size=10000000 wait-for-connection=0 + +