diff mbox

Support on discontinuous planer buffer and stride

Message ID 7c34ac520909222330k73380177sbf103345f5d3d7ec@mail.gmail.com (mailing list archive)
State Rejected
Headers show

Commit Message

Jun Nie Sept. 23, 2009, 6:30 a.m. UTC
Hi,
     I re-send this email for the last one is rejected by system. I am
sorry if you guys received both.

     I am optimizing video playback with overlay with V4L2 driver. The
video content is a sub-region of codec output. Thus a memory copy is
necessary.
    Is there plan to support for stride and discrete YUV planer in
kernel? Such as below changes can help much for my usage case.


    If such change is acceptable for everyone, I may help on the implementation.
    Any comments are welcome.

Jun
N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·¥Š{±™çbj)í…æèw*jg¬±¨¶‰šŽŠÝ¢j/êäz¹Þ–Šà2ŠÞ™¨è­Ú&¢)ß¡«a¶Úþø®G«éh®æj:+v‰¨Šwè†Ù¥
diff mbox

Patch

--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -529,7 +529,20 @@  struct v4l2_buffer {
                __u32           offset;
                unsigned long   userptr;
        } m;
+       /* UV/GB location is valid only in planer case */
+       union {
+               __u32           offset_ug;
+               unsigned long   userptr_ug;
+       } m_ug;
+       union {
+               __u32           offset_vb;
+               unsigned long   userptr_vb;
+       } m_vb;
        __u32                   length;
+       /* stride of YUV or RGB */
+       __u32                   stride_yr;
+       __u32                   stride_ug;
+       __u32                   stride_vb;
        __u32                   input;
        __u32                   reserved;
 };