[chronojump] Backwards on pause and small cleaning



commit 0cc080559adcd8f9dd9bdab9abaa1a54f3db0eb2
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Mar 23 22:36:22 2010 +0800

    Backwards on pause and small cleaning

 src/angle/kneeAngle.cpp |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/angle/kneeAngle.cpp b/src/angle/kneeAngle.cpp
index 894f13a..136943d 100644
--- a/src/angle/kneeAngle.cpp
+++ b/src/angle/kneeAngle.cpp
@@ -91,6 +91,11 @@
  * command to run the file
  * ./kneeAngle "path to video file"
  *
+ * if get lots of errors on playing like: 
+ * "[swscaler @ 0x8d24260]No accelerated colorspace conversion found from yuv420p to bgr24."
+ * execute:
+ * ./kneeAngle "path to video file" 2> /dev/null
+ * 
  */
 
 /*
@@ -1334,6 +1339,16 @@ int main(int argc,char **argv)
 					shouldEnd = true;
 				}
 				
+				else if(mouseClicked == BACKWARD) { 
+					backward = true;
+					//try to go to previous (backwardspeed) frame
+					cvSetCaptureProperty( capture, CV_CAP_PROP_POS_FRAMES, 
+						framesCount - backwardSpeed -1 );
+
+					imageGuiResult(gui, "Backwarding...", font);
+					done = true;
+				}
+
 				else if(mouseClicked == FORWARD) { 
 					forward = true;
 					imageGuiResult(gui, "Forwarding...", font);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]