Add mipi camera pipeline support

Specify io-mode to be userptr until dmabuf in v4l2src -> glupload is
fixed. The reflash frame rate is 15-17fps @ 720p.

Change-Id: Idadcbae1e4a6359cd4bb5640cd4a2fc4aa6d89f3
diff --git a/debian/changelog b/debian/changelog
index 973b7fa..ff2cdaf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+edgetpuvision (6-3) mendel-eagle; urgency=medium
+
+  * Update support for the mipi camera pipeline.
+  * Use glbox as the scaler.
+
+ -- Coral Team <coral-support@google.com>  Thu, 17 Sep 2020 19:26:14 -0700
+
 edgetpuvision (6-2) mendel-day; urgency=medium
 
   * Update scaler to use glcolorscale and v4l2convert.
diff --git a/edgetpuvision/apps.py b/edgetpuvision/apps.py
index 6d11131..72395b6 100644
--- a/edgetpuvision/apps.py
+++ b/edgetpuvision/apps.py
@@ -56,7 +56,7 @@
     parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
     parser.add_argument('--source',
                         help='/dev/videoN:FMT:WxH:N/D or .mp4 file or image file',
-                        default='/dev/video0:YUY2:640x480:30/1')
+                        default='/dev/video0:YUY2:1280x720:30/1')
     parser.add_argument('--loop',  default=False, action='store_true',
                         help='Loop input video file')
     parser.add_argument('--displaymode', type=Display, choices=Display, default=Display.FULLSCREEN,
diff --git a/edgetpuvision/pipelines.py b/edgetpuvision/pipelines.py
index 918454d..1873c5d 100644
--- a/edgetpuvision/pipelines.py
+++ b/edgetpuvision/pipelines.py
@@ -35,11 +35,10 @@
 
 def v4l2_src(fmt, render_size):
     return [
-        Source('v4l2', device=fmt.device),
-        # TODO: use YUV input when MIPI camera is ready
-        Caps('image/jpeg', width=fmt.size.width, height=fmt.size.height,
+        #TOOD: Use Source until dmabuf in v4l2src -> glupload is fixed.
+        Filter('v4l2src device=%s io-mode=userptr' % fmt.device),
+        Caps('video/x-raw', format=fmt.pixel, width=fmt.size.width, height=fmt.size.height,
              framerate='%d/%d' % fmt.framerate),
-        Filter('decodebin'),
         Filter('glfilterbin filter=glbox'),
         Caps('video/x-raw', width=render_size.width, height=render_size.height, format='BGRA'),
     ]