media: rp1: cfe: Add is_image_node()
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fri, 22 Sep 2023 10:47:10 +0000 (13:47 +0300)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:21 +0000 (11:35 +0000)
commit15f87680707e36b82d2f96082795761649461211
treeddcda774316e6761871ca922d2a20fb7eaddafcb
parentd09672de77fa18588f38f19abe54bc0c1df45c28
media: rp1: cfe: Add is_image_node()

The hardware supports streaming from memory (in addition to streaming
from the CSI-2 RX), but the driver does not support this at the moment.

There are multiple places in the driver which uses
is_image_output_node(), even if the "output" part is not relevant. Thus,
in a minor preparation for the possible support for streaming from
memory, and to make it more obvious that the pieces of code are not
about the "output", add is_image_node() which will return true for both
input and output video nodes.

While at it, reformat also the metadata related macros to fit inside 80
columns.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/media/platform/raspberrypi/rp1_cfe/cfe.c