diff options
author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2021-12-21 11:22:06 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-01-22 09:41:02 +0100 |
commit | d00f1a075ce13c7d71ca00083be110877874a403 (patch) | |
tree | 5cef1032c30e3b54b0c00edb8e23dec08ddbaecb /drivers/media/v4l2-core/v4l2-ctrls-request.c | |
parent | a6b995ed03ffeb36f06c4a46d8804c24d776de6f (diff) |
media: subdev: add "opposite" stream helper funcs
Add two helper functions to make dealing with streams easier:
v4l2_subdev_routing_find_opposite_end - given a routing table and a pad
+ stream, return the pad + stream on the opposite side of the subdev.
v4l2_subdev_state_get_opposite_stream_format - return a pointer to the
format on the pad + stream on the opposite side from the given pad +
stream.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ctrls-request.c')
0 files changed, 0 insertions, 0 deletions