public class VideoResolution extends Object
VideoResolution
may be used to describe attributes
of input or output video.Modifier and Type | Field and Description |
---|---|
static int |
SCANMODE_INTERLACED
Constant indicating interlaced line scan mode.
|
static int |
SCANMODE_PROGRESSIVE
Constant indicating progressive line scan mode.
|
static int |
SCANMODE_UNKNOWN
Constant indicating an unknown or unspecified line scan mode.
|
Constructor and Description |
---|
VideoResolution(Dimension rez,
int ar,
float rate,
int scan)
Creates an instance of
VideoResolution based upon
the given attributes. |
VideoResolution(Dimension rez,
int ar,
float rate,
int scan,
int stereoscopicMode)
Creates an instance of
VideoResolution based upon
the given attributes. |
Modifier and Type | Method and Description |
---|---|
int |
getAspectRatio()
Return the aspect ratio of the output video as specified by this object.
|
Dimension |
getPixelResolution()
Return the pixel resolution of the video.
|
float |
getRate()
Return the frame or field rate of the video as specified by this object.
|
int |
getScanMode()
Return the video scan mode, as specified by this object.
|
int |
getStereoscopicMode()
Reports the stereoscopic mode of this VideoResolution object.
|
public static final int SCANMODE_UNKNOWN
public static final int SCANMODE_INTERLACED
public static final int SCANMODE_PROGRESSIVE
public VideoResolution(Dimension rez, int ar, float rate, int scan)
VideoResolution
based upon
the given attributes. The stereoscopic mode is set to the default
value of S3DFormatTypes.FORMAT_2D
.rez
- The desired pixel resolution;
null
MAY be specified to indicate a wildcard value.ar
- The desired aspect ratio.
VideoFormatControl.ASPECT_RATIO_UNKNOWN
MAY be specified
to indicate a wildcard value.rate
- The desired field or frame rate.
Values less than or equal to 0.0F may be specified to indicate
a wildcard value.scan
- The desired scan mode.
SCANMODE_UNKNOWN
MAY be specified to indicate a wildcard value.public VideoResolution(Dimension rez, int ar, float rate, int scan, int stereoscopicMode)
VideoResolution
based upon
the given attributes.rez
- The desired pixel resolution;
null
MAY be specified to indicate a wildcard value.ar
- The desired aspect ratio.
VideoFormatControl.ASPECT_RATIO_UNKNOWN
MAY be specified
to indicate a wildcard value.rate
- The desired field or frame rate.
Values less than or equal to 0.0F may be specified to indicate
a wildcard value.scan
- The desired scan mode.
SCANMODE_UNKNOWN
MAY be specified to indicate a wildcard value.}stereoscopicMode
- The desired stereoscopicMode, indicated by one
of the video format types defined by S3DFormatTypes
(e.g., S3DFormatTypes.FORMAT_2D
,
S3DFormatTypes.TOP_AND_BOTTOM
, etc.).public Dimension getPixelResolution()
A value of null
MAY be returned, indicating that the resolution is
unknown or unspecified.
Dimension
specifying the pixel resolution
or null
public int getAspectRatio()
A value of ASPECT_RATIO_UNKNOWN
MAY be returned, indicating that
the aspect ratio is unknown or unspecified.
public float getRate()
Possible return values are:
A value of less then or equal to 0.0F may be returned, indicating that the rate is unknown or unspecified.
Return value specifies the field rate if getScanMode()
returns
SCANMODE_INTERLACED
and the frame rate if getScanMode()
returns SCANMODE_PROGRESSIVE
.
getScanMode()
public int getScanMode()
A value of SCANMODE_UNKNOWN
MAY be returned, indicating that
the scan mode is unknown or unspecified.
SCANMODE_UNKNOWN
,
SCANMODE_INTERLACED
,
or SCANMODE_PROGRESSIVE
.public int getStereoscopicMode()
S3DFormatTypes
S3DFormatTypes
Copyright © 2013 CableLabs. All rights reserved.