[libcamera-devel] [PATCH 3/4] utils: rkisp1: Fix pixel format for raw capture
paul.elder at ideasonboard.com
paul.elder at ideasonboard.com
Fri Jul 15 09:31:47 CEST 2022
Hi Laurent,
On Tue, Jun 21, 2022 at 12:06:57AM +0300, Laurent Pinchart via libcamera-devel wrote:
> The regexp to convert the raw pixel media bus code to a pixel format is
> incorrect. Fix it.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder at ideasonboard.com>
> ---
> utils/rkisp1/rkisp1-capture.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh
> index eee6b8027261..2549779d0f78 100755
> --- a/utils/rkisp1/rkisp1-capture.sh
> +++ b/utils/rkisp1/rkisp1-capture.sh
> @@ -171,7 +171,7 @@ mediactl="media-ctl -d $mdev"
>
> get_sensor_format "$sensor"
> if [[ $raw == true ]] ; then
> - capture_format=$(echo $sensor_mbus_code | sed 's/_[0-9X]$//')
> + capture_format=$(echo $sensor_mbus_code | sed 's/_[0-9X]*$//')
> capture_mbus_code=$sensor_mbus_code
> else
> capture_format=YUYV
More information about the libcamera-devel
mailing list