use crate::bindings;
use crate::config::Config;
use crate::context::Context;
+use crate::formats::{RTFormat, VAFourcc};
use crate::status::*;
use crate::surface::Surface;
use crate::UsageHints;
///
/// # Arguments
///
- /// * `rt_format` - The desired surface format. See `VA_RT_FORMAT_*`
+ /// * `rt_format` - The desired surface format.
/// * `va_fourcc` - The desired pixel format (optional). See `VA_FOURCC_*`
/// * `width` - Width for the create surfaces
/// * `height` - Height for the created surfaces
/// * `num_surfaces` - Number of surfaces to create
pub fn create_surfaces(
self: &Rc<Self>,
- rt_format: u32,
- va_fourcc: Option<u32>,
+ rt_format: RTFormat,
+ va_fourcc: Option<VAFourcc>,
width: u32,
height: u32,
usage_hints: Option<UsageHints>,