summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>2009-08-31 16:32:46 +0200
committerhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>2009-08-31 16:32:46 +0200
commit36dfe1e93c14212a6fd2939344018445f132789e (patch)
treee548a3cdeeb77821d7943074766f9f006408941c
parentf56e5f83c8445db50b3cba3013170785c52ac486 (diff)
downloadmediapointer-dvb-s2-36dfe1e93c14212a6fd2939344018445f132789e.tar.gz
mediapointer-dvb-s2-36dfe1e93c14212a6fd2939344018445f132789e.tar.bz2
Add new V4L2_FMT_FLAG_EMULATED flag to videodev2.h
From: Hans de Goede <hdegoede@redhat.com> V4L2_FMT_FLAG_EMULATED 0x0002 This format is not native to the device but emulated through software (usually libv4l2), where possible try to use a native format instead for better performance. Priority: normal Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--linux/include/linux/videodev2.h1
-rw-r--r--v4l2-spec/vidioc-enum-fmt.sgml7
2 files changed, 8 insertions, 0 deletions
diff --git a/linux/include/linux/videodev2.h b/linux/include/linux/videodev2.h
index b61c3b61c..d6f8edb3d 100644
--- a/linux/include/linux/videodev2.h
+++ b/linux/include/linux/videodev2.h
@@ -374,6 +374,7 @@ struct v4l2_fmtdesc {
};
#define V4L2_FMT_FLAG_COMPRESSED 0x0001
+#define V4L2_FMT_FLAG_EMULATED 0x0002
#if 1 /*KEEP*/
/* Experimental Frame Size and frame rate enumeration */
diff --git a/v4l2-spec/vidioc-enum-fmt.sgml b/v4l2-spec/vidioc-enum-fmt.sgml
index 5e0c7c770..73af15640 100644
--- a/v4l2-spec/vidioc-enum-fmt.sgml
+++ b/v4l2-spec/vidioc-enum-fmt.sgml
@@ -127,6 +127,13 @@ the array to zero.</entry>
<entry>0x0001</entry>
<entry>This is a compressed format.</entry>
</row>
+ <row>
+ <entry><constant>V4L2_FMT_FLAG_EMULATED</constant></entry>
+ <entry>0x0002</entry>
+ <entry>This format is not native to the device but emulated
+through software (usually libv4l2), where possible try to use a native format
+instead for better performance.</entry>
+ </row>
</tbody>
</tgroup>
</table>