video: fix minor typos

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
Manos Pitsidianakis 2025-07-02 14:54:17 +03:00 committed by Manos Pitsidianakis
parent 5f762349fb
commit 3fac32390e
2 changed files with 7 additions and 7 deletions

View file

@ -720,7 +720,7 @@ pub struct virtio_video_crop {
pub left: Le32,
pub top: Le32,
pub width: Le32,
pub heigth: Le32,
pub height: Le32,
}
#[repr(C)]
@ -729,7 +729,7 @@ pub struct virtio_video_params {
pub queue_type: Le32,
pub format: Le32,
pub frame_width: Le32,
pub frame_heigth: Le32,
pub frame_height: Le32,
pub min_buffers: Le32,
pub max_buffers: Le32,
pub crop: virtio_video_crop,

View file

@ -441,7 +441,7 @@ impl VideoBackend for V4L2Decoder {
let pix_fmt = unsafe { &format.fmt.pix_mp };
params.format = PixelFormat::from(pix_fmt.pixelformat).to_virtio();
params.frame_width = pix_fmt.width.into();
params.frame_heigth = pix_fmt.height.into();
params.frame_height = pix_fmt.height.into();
params.num_planes = (pix_fmt.num_planes as u32).into();
for i in 0..pix_fmt.num_planes {
@ -456,7 +456,7 @@ impl VideoBackend for V4L2Decoder {
params.crop.left = (sel.left as u32).into();
params.crop.top = (sel.top as u32).into();
params.crop.width = sel.width.into();
params.crop.heigth = sel.height.into();
params.crop.height = sel.height.into();
}
}
@ -477,7 +477,7 @@ impl VideoBackend for V4L2Decoder {
let queue_type = v4l2r::QueueType::from_value(params.queue_type.into()).unwrap();
let mut format = v4l2r::Format {
width: params.frame_width.into(),
height: params.frame_heigth.into(),
height: params.frame_height.into(),
pixelformat: PixelFormat::from(<Le32 as Into<u32>>::into(params.format)),
..Default::default()
};
@ -779,7 +779,7 @@ impl V4L2Decoder {
&& format_frame.width.step != 1
&& format_frame.length.step != 1
{
warn!("invalid step for continious framesize");
warn!("invalid step for continuous framesize");
break;
}
@ -823,7 +823,7 @@ impl V4L2Decoder {
warn!("driver returned wrong ival width: {}", ival.width);
}
if height != ival.height {
warn!("driver returned wrong ival heigth: {}", ival.height);
warn!("driver returned wrong ival height: {}", ival.height);
}
frame_rates.push(video::virtio_video_format_range::from(ival));