Linux Media Controller development
 help / color / mirror / Atom feed
* Questions about image size listed in VIDIOC_ENUM_FMT
@ 2025-02-14  4:08 Zhaoxuan Zhai
  2025-02-14  4:19 ` Zhaoxuan Zhai
  0 siblings, 1 reply; 8+ messages in thread
From: Zhaoxuan Zhai @ 2025-02-14  4:08 UTC (permalink / raw)
  To: linux-media; +Cc: Ethan Hsieh, jianhui.lee, guoqing.jiang

Hi all,

We are working on a camera driver. We plan to use v4l2 interface to send 
image data to users. We have a question we'd like to ask.

The situation we are facing is as follows.

We have an image processing unit that can process raw data collected by 
the sensor into the V4L2_PIX_FMT_NV12M format and send it to the user.

However, due to the requirements of the V4L2_PIX_FMT_NV12M format, the 
width and height of the image must be divisible by 16.

For example, when the sensor provides an image size of 2104x1560, after 
NV12M encoding, it should be pading to  2112x1566. But the additional 8 
rows and 8 columns are padded with 0s and contain no actual content.

So, we would like to ask, in this case, what size should we list in 
VIDIOC_ENUM_FMT? Should it be the actual image size with content, 
2104x1560, or the padded size, 2112x1566?"


Thank you,

Zhaoxuan


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Questions about image size listed in VIDIOC_ENUM_FMT
@ 2025-02-14  4:07 Zhaoxuan Zhai
  0 siblings, 0 replies; 8+ messages in thread
From: Zhaoxuan Zhai @ 2025-02-14  4:07 UTC (permalink / raw)
  To: linux-media; +Cc: Ethan Hsieh, jianhui.lee

Hi all,

We are working on a camera driver. We plan to use v4l2 interface to send 
image data to users. We have a question we'd like to ask.

The situation we are facing is as follows.

We have an image processing unit that can process raw data collected by 
the sensor into the V4L2_PIX_FMT_NV12M format and send it to the user.

However, due to the requirements of the V4L2_PIX_FMT_NV12M format, the 
width and height of the image must be divisible by 16.

For example, when the sensor provides an image size of 2104x1560, after 
NV12M encoding, it should be pading to  2112x1566. But the additional 8 
rows and 8 columns are padded with 0s and contain no actual content.

So, we would like to ask, in this case, what size should we list in 
VIDIOC_ENUM_FMT? Should it be the actual image size with content, 
2104x1560, or the padded size, 2112x1566?"


Thank you,

Zhaoxuan


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-02-17 19:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14  4:08 Questions about image size listed in VIDIOC_ENUM_FMT Zhaoxuan Zhai
2025-02-14  4:19 ` Zhaoxuan Zhai
2025-02-14  7:08   ` Sakari Ailus
2025-02-14 14:57     ` Nicolas Dufresne
2025-02-14 16:40       ` Laurent Pinchart
2025-02-17 19:05         ` Nicolas Dufresne
2025-02-14 16:37     ` Laurent Pinchart
  -- strict thread matches above, loose matches on Subject: below --
2025-02-14  4:07 Zhaoxuan Zhai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox