Struct ffmpeg_sys_next::AVSubtitleRect
source · [−]#[repr(C)]pub struct AVSubtitleRect {
pub x: c_int,
pub y: c_int,
pub w: c_int,
pub h: c_int,
pub nb_colors: c_int,
pub pict: AVPicture,
pub data: [*mut u8; 4],
pub linesize: [c_int; 4],
pub type_: AVSubtitleType,
pub text: *mut c_char,
pub ass: *mut c_char,
pub flags: c_int,
}Fields
x: c_int< top left corner of pict, undefined when pict is not set
y: c_int< top left corner of pict, undefined when pict is not set
w: c_int< width of pict, undefined when pict is not set
h: c_int< height of pict, undefined when pict is not set
nb_colors: c_int< number of colors in pict, undefined when pict is not set
pict: AVPicture@deprecated unused
data: [*mut u8; 4]data+linesize for the bitmap of this subtitle. Can be set for text/ass as well once they are rendered.
linesize: [c_int; 4]type_: AVSubtitleTypetext: *mut c_char< 0 terminated plain UTF-8 text
ass: *mut c_char0 terminated ASS/SSA compatible event line. The presentation of this is unaffected by the other values in this struct.
flags: c_intTrait Implementations
sourceimpl Clone for AVSubtitleRect
impl Clone for AVSubtitleRect
sourcefn clone(&self) -> AVSubtitleRect
fn clone(&self) -> AVSubtitleRect
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AVSubtitleRect
impl Debug for AVSubtitleRect
sourceimpl PartialEq<AVSubtitleRect> for AVSubtitleRect
impl PartialEq<AVSubtitleRect> for AVSubtitleRect
sourcefn eq(&self, other: &AVSubtitleRect) -> bool
fn eq(&self, other: &AVSubtitleRect) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AVSubtitleRect) -> bool
fn ne(&self, other: &AVSubtitleRect) -> bool
This method tests for !=.
impl Copy for AVSubtitleRect
impl Eq for AVSubtitleRect
impl StructuralEq for AVSubtitleRect
impl StructuralPartialEq for AVSubtitleRect
Auto Trait Implementations
impl RefUnwindSafe for AVSubtitleRect
impl !Send for AVSubtitleRect
impl !Sync for AVSubtitleRect
impl Unpin for AVSubtitleRect
impl UnwindSafe for AVSubtitleRect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more