Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1551563

Re: [PATCH v2 1/2] drm_fourcc: Add new P010, P016 video format

From Ayaka <ayaka@soulik.info>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2] drm_fourcc: Add new P010, P016 video format
Date 2017-01-05 03:10 +0100
Message-ID <sW5F7-4IF-7@gated-at.bofh.it> (permalink)
References <sVWBP-76c-7@gated-at.bofh.it> <sVWBQ-76c-29@gated-at.bofh.it> <sVXey-7zE-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



從我的 iPad 傳送

> Daniel Stone <daniel@fooishbar.org> 於 2017年1月5日 上午1:02 寫道:
> 
> Hi Randy,
> 
>> On 4 January 2017 at 16:29, Randy Li <ayaka@soulik.info> wrote:
>> index 90d2cc8..23c8e99 100644
>> --- a/drivers/gpu/drm/drm_fourcc.c
>> +++ b/drivers/gpu/drm/drm_fourcc.c
>> @@ -165,6 +165,9 @@ const struct drm_format_info *__drm_format_info(u32 format)
>>                { .format = DRM_FORMAT_UYVY,            .depth = 0,  .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1 },
>>                { .format = DRM_FORMAT_VYUY,            .depth = 0,  .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1 },
>>                { .format = DRM_FORMAT_AYUV,            .depth = 0,  .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 },
>> +               /* FIXME a pixel in Y for P010 is 10 bits */
>> +               { .format = DRM_FORMAT_P010,            .depth = 0,  .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 2 },
> 
> It seems like P010 stores each Y component in a 16-bit value, with the
> bottom 6 bits ignored. So I think cpp here should be 2.
No, the rest bits are used to store the next pixel. The P010 is just a 10 bits color depth pixel format.
> 
> Cheers,
> Daniel

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] Add pixel formats for 10/16 bits YUV video Randy Li <ayaka@soulik.info> - 2017-01-04 17:30 +0100
  [PATCH v2 1/2] drm_fourcc: Add new P010, P016 video format Randy Li <ayaka@soulik.info> - 2017-01-04 17:30 +0100
    Re: [PATCH v2 1/2] drm_fourcc: Add new P010, P016 video format Daniel Stone <daniel@fooishbar.org> - 2017-01-04 18:10 +0100
      Re: [PATCH v2 1/2] drm_fourcc: Add new P010, P016 video format Ayaka <ayaka@soulik.info> - 2017-01-05 03:10 +0100
  [PATCH v2 2/2] [media] v4l: Add 10/16-bits per channel YUV pixel formats Randy Li <ayaka@soulik.info> - 2017-01-04 17:40 +0100
    Re: [PATCH v2 2/2] [media] v4l: Add 10/16-bits per channel YUV pixel  formats Sakari Ailus <sakari.ailus@iki.fi> - 2017-01-05 11:40 +0100
      Re: [PATCH v2 2/2] [media] v4l: Add 10/16-bits per channel YUV pixel  formats ayaka <ayaka@soulik.info> - 2017-01-05 16:30 +0100
        Re: [PATCH v2 2/2] [media] v4l: Add 10/16-bits per channel YUV pixel  formats Sakari Ailus <sakari.ailus@iki.fi> - 2017-01-05 19:50 +0100

csiph-web