v4l2_frmsize_stepwise structure contains misnamed member
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-v4l2 |
New
|
Undecided
|
Unassigned |
Bug Description
v4l2.py has the following definition for the `v4l2_frmsize_
class v4l2_frmsize_
_fields_ = [
]
But the authoritative upstream C headers (see: https:/
struct v4l2_frmsize_
__u32 min_width; /* Minimum frame width [pixel] */
__u32 max_width; /* Maximum frame width [pixel] */
__u32 step_width; /* Frame width step size [pixel] */
__u32 min_height; /* Minimum frame height [pixel] */
__u32 max_height; /* Maximum frame height [pixel] */
__u32 step_height; /* Frame height step size [pixel] */
};
Notice that the second member is supposed to be named `max_width`; not `min_height`. Also notice that in the Python structure definition, there are TWO members named `min_height` in the same structure!
This means that
(a) it's unclear whether accessing `min_height` via python-v4l2 will access the correct member; and
(b) it's impossible to actually access the `max_width` member via python-v4l2; and
(c) the python-v4l2 code here is obviously just wrong, relative to the C v4l2 headers.
So in summary: the Python structure definition for `v4l2_frmsize_