}
}
}
+
+/// Surface status.
+#[repr(u32)]
+#[derive(Clone, Copy, Debug, PartialEq)]
+pub enum VASurfaceStatus {
+ /// Rendering in progress.
+ Rendering = 1,
+ /// Displaying in progress (not safe to render into it).
+ ///
+ /// This status is useful if surface is used as the source of an overlay.
+ Displaying = 2,
+ /// Not being rendered or displayed.
+ Ready = 3,
+ /// Indicate a skipped frame during encode.
+ Skipped = 8,
+}
+
+impl std::fmt::Display for VASurfaceStatus {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "{:?}", self)
+ }
+}