#[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 data: [*mut u8; 4],
pub linesize: [c_int; 4],
pub flags: c_int,
pub type_: AVSubtitleType,
pub text: *mut c_char,
pub ass: *mut c_char,
}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
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]§flags: c_int§type_: AVSubtitleType§text: *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.
trait 实现§
源代码§impl Clone for AVSubtitleRect
impl Clone for AVSubtitleRect
源代码§fn clone(&self) -> AVSubtitleRect
fn clone(&self) -> AVSubtitleRect
Returns a duplicate of the value. 阅读更多
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source 执行拷贝赋值。 阅读更多源代码§impl Debug for AVSubtitleRect
impl Debug for AVSubtitleRect
源代码§impl PartialEq for AVSubtitleRect
impl PartialEq for AVSubtitleRect
impl Copy for AVSubtitleRect
impl Eq for AVSubtitleRect
impl StructuralPartialEq for AVSubtitleRect
自动 trait 实现§
impl Freeze for AVSubtitleRect
impl RefUnwindSafe for AVSubtitleRect
impl !Send for AVSubtitleRect
impl !Sync for AVSubtitleRect
impl Unpin for AVSubtitleRect
impl UnsafeUnpin for AVSubtitleRect
impl UnwindSafe for AVSubtitleRect
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值可变地借用。 阅读更多