pub enum FrameFormatType {
Progressive = 1,
Interleaved = 0,
Field0 = 2,
Field1 = 3,
}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§
Progressive = 1
This is a progressive video frame
Interleaved = 0
This is a frame of video that is comprised of two fields.
The upper field comes first, and the lower comes second (see FrameFormatType)
Field0 = 2
This is an individual field 0 from a fielded video frame.
This is the first temporal, upper field. (see FrameFormatType)
Field1 = 3
This is an individual field 1 from a fielded video frame.
This is the second temporal, lower field (see FrameFormatType)
Trait Implementations§
Source§impl Clone for FrameFormatType
impl Clone for FrameFormatType
Source§fn clone(&self) -> FrameFormatType
fn clone(&self) -> FrameFormatType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more