changeset 1105:0440fb0f458b

add rotation param to vidref Ignore-this: 3c36bede3d3f7b18e3e26d2c5b2722ef
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 10 Jun 2014 05:49:36 +0000
parents 448fe9f81501
children 95ed52dcc3ab
files bin/picamserve light9/vidref/vidref.html
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bin/picamserve	Mon Jun 09 07:30:23 2014 +0000
+++ b/bin/picamserve	Tue Jun 10 05:49:36 2014 +0000
@@ -36,6 +36,7 @@
     c.exposure_compensation= int(arg('exposure_compensation', 0))
     c.awb_gains = (float(arg('redgain', 1)), float(arg('bluegain', 1)))
     c.ISO = int(arg('iso', 250))
+    c.rotation = int(arg('rotation', '0'))
 
 def setupCrop(c, arg):
     c.crop = (float(arg('x', 0)), float(arg('y', 0)),
--- a/light9/vidref/vidref.html	Mon Jun 09 07:30:23 2014 +0000
+++ b/light9/vidref/vidref.html	Tue Jun 10 05:49:36 2014 +0000
@@ -81,6 +81,14 @@
         <option>640</option>
         <option>800</option>
       </datalist>
+      <div><label>rotation
+        <select data-bind="value: params.rotation">
+          <option>0</option>
+          <option>90</option>
+          <option>180</option>
+          <option>270</option>
+        </select>
+      </label></div>
       <div>See <a href="http://picamera.readthedocs.org/en/release-1.4/api.html#picamera.PiCamera.ISO">picamera attribute docs</a></div>
     </fieldset>
 
@@ -108,6 +116,7 @@
            bluegain: ko.observable(1),
            iso: ko.observable(250),
            exposure_compensation: ko.observable(0),
+           rotation: ko.observable(0),
          }
        };
        model.currentUrl = ko.computed(assembleCamUrlWithCrop);