let height = va_image.height as usize;
// We only support NV12 images
- assert_eq!(va_image.format.fourcc, u32::from_ne_bytes(*b"NV12"));
+ assert_eq!(va_image.format.fourcc(), Ok(VAFourcc::NV12));
// Consistency check
assert_eq!(va_image.num_planes, 2);
.iter()
.any(|e| *e == bindings::VAEntrypoint::VAEntrypointVLD));
- let format = bindings::constants::VA_RT_FORMAT_YUV420;
+ let format = RTFormat::YUV420;
let width = 16;
let height = 16;
None,
width,
height,
- Some(UsageHint::USAGE_HINT_DECODER),
+ Some(UsageHint::Decoder.into()),
1,
)
.unwrap();