#[repr(i32)]pub enum AVChromaLocation {
AVCHROMA_LOC_UNSPECIFIED = 0,
AVCHROMA_LOC_LEFT = 1,
AVCHROMA_LOC_CENTER = 2,
AVCHROMA_LOC_TOPLEFT = 3,
AVCHROMA_LOC_TOP = 4,
AVCHROMA_LOC_BOTTOMLEFT = 5,
AVCHROMA_LOC_BOTTOM = 6,
AVCHROMA_LOC_NB = 7,
}展开描述
Location of chroma samples.
Illustration showing the location of the first (top left) chroma sample of the image, the left shows only luma, the right shows the location of the chroma sample, the 2 could be imagined to overlay each other but are drawn separately due to limitations of ASCII
1st 2nd 1st 2nd horizontal luma sample positions
v v v v
______ ______1st luma line > |X X … |3 4 X … X are luma samples, | |1 2 1-6 are possible chroma positions 2nd luma line > |X X … |5 6 X … 0 is undefined/unknown position
Variants§
AVCHROMA_LOC_UNSPECIFIED = 0
AVCHROMA_LOC_LEFT = 1
< MPEG-2/4 4:2:0, H.264 default for 4:2:0
AVCHROMA_LOC_CENTER = 2
< MPEG-1 4:2:0, JPEG 4:2:0, H.263 4:2:0
AVCHROMA_LOC_TOPLEFT = 3
< ITU-R 601, SMPTE 274M 296M S314M(DV 4:1:1), mpeg2 4:2:2
AVCHROMA_LOC_TOP = 4
AVCHROMA_LOC_BOTTOMLEFT = 5
AVCHROMA_LOC_BOTTOM = 6
AVCHROMA_LOC_NB = 7
< Not part of ABI
trait 实现§
源代码§impl Clone for AVChromaLocation
impl Clone for AVChromaLocation
源代码§fn clone(&self) -> AVChromaLocation
fn clone(&self) -> AVChromaLocation
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 AVChromaLocation
impl Debug for AVChromaLocation
源代码§impl Hash for AVChromaLocation
impl Hash for AVChromaLocation
源代码§impl PartialEq for AVChromaLocation
impl PartialEq for AVChromaLocation
impl Copy for AVChromaLocation
impl Eq for AVChromaLocation
impl StructuralPartialEq for AVChromaLocation
自动 trait 实现§
impl Freeze for AVChromaLocation
impl RefUnwindSafe for AVChromaLocation
impl Send for AVChromaLocation
impl Sync for AVChromaLocation
impl Unpin for AVChromaLocation
impl UnsafeUnpin for AVChromaLocation
impl UnwindSafe for AVChromaLocation
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
从拥有的值可变地借用。 阅读更多