Enum ndi::FrameFormatType [−][src]
pub enum FrameFormatType { Progressive, Interleaved, Field0, Field1, }
Expand description
A description of the frome format of a frame
This is usually part of a VideoData
frame.
To make everything as easy to use as possible, the SDK always assumes that fields are ‘top field first’. This is, in fact, the case for every modern format, but does create a problem for two specific older video formats as discussed below:
NTSC 486 LINES
The best way to handle this format is simply to offset the image vertically by one line (p_uyvy_data + uyvy_stride_in_bytes
)
and reduce the vertical resolution to 480 lines. This can all be done without modification
of the data being passed in at all; simply change the data and resolution pointers.
DV NTSC
This format is a relatively rare these days, although still used from time to time. There is no entirely trivial way to handle this other than to move the image down one line and add a black line at the bottom.
Variants
This is a progressive video frame
This is a frame of video that is comprised of two fields.
The upper field comes first, and the lower comes second (see FrameFormatType
)
This is an individual field 0 from a fielded video frame.
This is the first temporal, upper field. (see FrameFormatType
)
This is an individual field 1 from a fielded video frame.
This is the second temporal, lower field (see FrameFormatType
)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FrameFormatType
impl Send for FrameFormatType
impl Sync for FrameFormatType
impl Unpin for FrameFormatType
impl UnwindSafe for FrameFormatType
Blanket Implementations
Mutably borrows from an owned value. Read more