utils: rkisp1: Fix pixel format for raw capture
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@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
9007d37939
commit
4d3a118c11
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue