diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2013-08-25 13:00:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-05 14:21:54 -0500 |
commit | 939f1377fbdb5d0d6d6ee1e234b8ab9328ca77ef (patch) | |
tree | ce2000a7fd236cc36a437682028e0820cc9a3cf0 /include/uapi/linux/videodev2.h | |
parent | c6c092135d4f61b038a41685147c79e966c2399c (diff) |
[media] v4l: Use full 32 bits for buffer flags
The buffer flags field is 32 bits but the defined only used 16. This is
fine, but as more than 16 bits will be used in the very near future, define
them as 32-bit numbers for consistency.
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/uapi/linux/videodev2.h')
-rw-r--r-- | include/uapi/linux/videodev2.h | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 27fedfe4f33b..cb838765dd40 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h | |||
@@ -674,24 +674,32 @@ struct v4l2_buffer { | |||
674 | }; | 674 | }; |
675 | 675 | ||
676 | /* Flags for 'flags' field */ | 676 | /* Flags for 'flags' field */ |
677 | #define V4L2_BUF_FLAG_MAPPED 0x0001 /* Buffer is mapped (flag) */ | 677 | /* Buffer is mapped (flag) */ |
678 | #define V4L2_BUF_FLAG_QUEUED 0x0002 /* Buffer is queued for processing */ | 678 | #define V4L2_BUF_FLAG_MAPPED 0x00000001 |
679 | #define V4L2_BUF_FLAG_DONE 0x0004 /* Buffer is ready */ | 679 | /* Buffer is queued for processing */ |
680 | #define V4L2_BUF_FLAG_KEYFRAME 0x0008 /* Image is a keyframe (I-frame) */ | 680 | #define V4L2_BUF_FLAG_QUEUED 0x00000002 |
681 | #define V4L2_BUF_FLAG_PFRAME 0x0010 /* Image is a P-frame */ | 681 | /* Buffer is ready */ |
682 | #define V4L2_BUF_FLAG_BFRAME 0x0020 /* Image is a B-frame */ | 682 | #define V4L2_BUF_FLAG_DONE 0x00000004 |
683 | /* Image is a keyframe (I-frame) */ | ||
684 | #define V4L2_BUF_FLAG_KEYFRAME 0x00000008 | ||
685 | /* Image is a P-frame */ | ||
686 | #define V4L2_BUF_FLAG_PFRAME 0x00000010 | ||
687 | /* Image is a B-frame */ | ||
688 | #define V4L2_BUF_FLAG_BFRAME 0x00000020 | ||
683 | /* Buffer is ready, but the data contained within is corrupted. */ | 689 | /* Buffer is ready, but the data contained within is corrupted. */ |
684 | #define V4L2_BUF_FLAG_ERROR 0x0040 | 690 | #define V4L2_BUF_FLAG_ERROR 0x00000040 |
685 | #define V4L2_BUF_FLAG_TIMECODE 0x0100 /* timecode field is valid */ | 691 | /* timecode field is valid */ |
686 | #define V4L2_BUF_FLAG_PREPARED 0x0400 /* Buffer is prepared for queuing */ | 692 | #define V4L2_BUF_FLAG_TIMECODE 0x00000100 |
693 | /* Buffer is prepared for queuing */ | ||
694 | #define V4L2_BUF_FLAG_PREPARED 0x00000400 | ||
687 | /* Cache handling flags */ | 695 | /* Cache handling flags */ |
688 | #define V4L2_BUF_FLAG_NO_CACHE_INVALIDATE 0x0800 | 696 | #define V4L2_BUF_FLAG_NO_CACHE_INVALIDATE 0x00000800 |
689 | #define V4L2_BUF_FLAG_NO_CACHE_CLEAN 0x1000 | 697 | #define V4L2_BUF_FLAG_NO_CACHE_CLEAN 0x00001000 |
690 | /* Timestamp type */ | 698 | /* Timestamp type */ |
691 | #define V4L2_BUF_FLAG_TIMESTAMP_MASK 0xe000 | 699 | #define V4L2_BUF_FLAG_TIMESTAMP_MASK 0x0000e000 |
692 | #define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x0000 | 700 | #define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x00000000 |
693 | #define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC 0x2000 | 701 | #define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC 0x00002000 |
694 | #define V4L2_BUF_FLAG_TIMESTAMP_COPY 0x4000 | 702 | #define V4L2_BUF_FLAG_TIMESTAMP_COPY 0x00004000 |
695 | 703 | ||
696 | /** | 704 | /** |
697 | * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor | 705 | * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor |