Difference between revisions of "Pixel formats"

From MyLabWiki
Jump to: navigation, search
(Added reference to Gstreamer type defs)
 
(14 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
Currently, this only covers my Logitech cameras.
 +
 
{|class="wikitable" border="1" cellspacing="1" cellpadding="5" style="border-collapse:collapse;"
 
{|class="wikitable" border="1" cellspacing="1" cellpadding="5" style="border-collapse:collapse;"
 
! style="background:#D9E5E5;" | Camera
 
! style="background:#D9E5E5;" | Camera
 
! style="background:#D9E5E5;" | Fourcc
 
! style="background:#D9E5E5;" | Fourcc
 +
! style="background:#D9E5E5;" | V4L2
 +
! style="background:#D9E5E5;" | Type
 
! style="background:#D9E5E5;" | Gstreamer caps
 
! style="background:#D9E5E5;" | Gstreamer caps
 
|-
 
|-
 
| YUYV
 
| YUYV
 
| [http://fourcc.org/yuv.php#YUY2 YUY2]
 
| [http://fourcc.org/yuv.php#YUY2 YUY2]
 +
| [http://v4l2spec.bytesex.org/spec/r4339.htm V4L2_PIX_FMT_YUYV (YUYV)]
 +
| packed
 
| video/x-raw-yuv,format=(fourcc)YUY2
 
| video/x-raw-yuv,format=(fourcc)YUY2
 
|-
 
|-
 
| MJPG
 
| MJPG
 
|
 
|
 +
| TBC: [http://v4l2spec.bytesex.org/spec/x5634.htm V4L2_PIX_FMT_JPEG (JPEG)]
 +
| compressed
 
| image/jpeg
 
| image/jpeg
 
|-
 
|-
 
| RGB3
 
| RGB3
|  
+
|
 +
| TBC: [http://v4l2spec.bytesex.org/spec/r2492.htm V4L2_PIX_FMT_RGB24 (RGB3)]
 +
| packed
 
| video/x-raw-rgb,format=RGB3
 
| video/x-raw-rgb,format=RGB3
 
|-
 
|-
 
| BGR3
 
| BGR3
 
|
 
|
 +
| TBC: [http://v4l2spec.bytesex.org/spec/r2492.htm V4L2_PIX_FMT_BGR24 (BGR3)]
 +
| packed
 
| video/x-raw-rgb,format=BGR3
 
| video/x-raw-rgb,format=BGR3
 
|-
 
|-
 
| YU12
 
| YU12
 
| [http://fourcc.org/yuv.php#IYUV I420]
 
| [http://fourcc.org/yuv.php#IYUV I420]
 +
| [http://v4l2spec.bytesex.org/spec/r4850.htm V4L2_PIX_FMT_YUV420 (YU12)]
 +
| planar
 
| video/x-raw-yuv,format=(fourcc)I420
 
| video/x-raw-yuv,format=(fourcc)I420
 
|-
 
|-
 
| YV12
 
| YV12
 
| [http://fourcc.org/yuv.php#YV12 YV12]
 
| [http://fourcc.org/yuv.php#YV12 YV12]
 +
| [http://v4l2spec.bytesex.org/spec/r4850.htm V4L2_PIX_FMT_YVU420 (YV12)]
 +
| planar
 
| video/x-raw-yuv,format=(fourcc)YV12
 
| video/x-raw-yuv,format=(fourcc)YV12
 
|}
 
|}
 +
 +
 +
=== Legend ===
 +
 +
; Camera
 +
: Pixel format name used in the camera caps as output by guvcview.
 +
; Fourcc
 +
: The corresponding fourcc label
 +
; V4L2
 +
: The corresponding format type in V4L2
 +
; Type
 +
: The type of the pixel format: packed, planar or compressed
 +
; Gstreamer caps
 +
: The format string to be used in the [[:Category:Gstreamer|gstreamer]] caps filter.
  
 
== References ==
 
== References ==
  
 
* [http://www.usb.org/developers/devclass_docs USB Video Class specs] (bottom of the page)
 
* [http://www.usb.org/developers/devclass_docs USB Video Class specs] (bottom of the page)
* [http://v4l2spec.bytesex.org/ V4L2 API Specification (Revision 0.24)]
+
* [http://v4l2spec.bytesex.org/ V4L2 API Specification (Revision 0.24)] – in particular [http://v4l2spec.bytesex.org/spec/x2123.htm Colorspaces], [http://v4l2spec.bytesex.org/spec/x2490.htm RGB formats] and [http://v4l2spec.bytesex.org/spec/x3891.htm YUV formats]
* [http://fourcc.org/ Fourcc]
+
* [http://fourcc.org/ Fourcc] (note that packed and unpacked YUV formats are in separate tables)
 +
* GStreamer Plugin Writer's Guide: [http://www.gstreamer.net/data/doc/gstreamer/head/pwg/html/section-types-definitions.html List of Defined Types]
  
 
[[Category:Cameras]]
 
[[Category:Cameras]]

Latest revision as of 12:22, 16 September 2010

Currently, this only covers my Logitech cameras.

Camera Fourcc V4L2 Type Gstreamer caps
YUYV YUY2 V4L2_PIX_FMT_YUYV (YUYV) packed video/x-raw-yuv,format=(fourcc)YUY2
MJPG TBC: V4L2_PIX_FMT_JPEG (JPEG) compressed image/jpeg
RGB3 TBC: V4L2_PIX_FMT_RGB24 (RGB3) packed video/x-raw-rgb,format=RGB3
BGR3 TBC: V4L2_PIX_FMT_BGR24 (BGR3) packed video/x-raw-rgb,format=BGR3
YU12 I420 V4L2_PIX_FMT_YUV420 (YU12) planar video/x-raw-yuv,format=(fourcc)I420
YV12 YV12 V4L2_PIX_FMT_YVU420 (YV12) planar video/x-raw-yuv,format=(fourcc)YV12


Legend

Camera
Pixel format name used in the camera caps as output by guvcview.
Fourcc
The corresponding fourcc label
V4L2
The corresponding format type in V4L2
Type
The type of the pixel format: packed, planar or compressed
Gstreamer caps
The format string to be used in the gstreamer caps filter.

References