#[repr(C)]pub struct AVHWFramesConstraints {
pub valid_hw_formats: *mut AVPixelFormat,
pub valid_sw_formats: *mut AVPixelFormat,
pub min_width: c_int,
pub min_height: c_int,
pub max_width: c_int,
pub max_height: c_int,
}
Expand description
This struct describes the constraints on hardware frames attached to a given device with a hardware-specific configuration. This is returned by av_hwdevice_get_hwframe_constraints() and must be freed by av_hwframe_constraints_free() after use.
Fields§
§valid_hw_formats: *mut AVPixelFormat
A list of possible values for format in the hw_frames_ctx, terminated by AV_PIX_FMT_NONE. This member will always be filled.
valid_sw_formats: *mut AVPixelFormat
A list of possible values for sw_format in the hw_frames_ctx, terminated by AV_PIX_FMT_NONE. Can be NULL if this information is not known.
min_width: c_int
The minimum size of frames in this hw_frames_ctx. (Zero if not known.)
min_height: c_int
§max_width: c_int
The maximum size of frames in this hw_frames_ctx. (INT_MAX if not known / no limit.)
max_height: c_int
Trait Implementations§
Source§impl Clone for AVHWFramesConstraints
impl Clone for AVHWFramesConstraints
Source§fn clone(&self) -> AVHWFramesConstraints
fn clone(&self) -> AVHWFramesConstraints
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AVHWFramesConstraints
impl Debug for AVHWFramesConstraints
impl Copy for AVHWFramesConstraints
Auto Trait Implementations§
impl Freeze for AVHWFramesConstraints
impl RefUnwindSafe for AVHWFramesConstraints
impl !Send for AVHWFramesConstraints
impl !Sync for AVHWFramesConstraints
impl Unpin for AVHWFramesConstraints
impl UnwindSafe for AVHWFramesConstraints
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more