liveWindow video preview window
More...
|
| NvsLiveWindow (Context context) |
|
| NvsLiveWindow (Context context, AttributeSet attrs) |
|
| NvsLiveWindow (Context context, AttributeSet attrs, int defStyleAttr) |
|
| NvsLiveWindow (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) |
|
void | setFillMode (int fillMode) |
| Sets the fill mode of LiveWindow. More...
|
|
int | getFillMode () |
| Gets the fill mode of LiveWindow. More...
|
|
void | setHDRDisplayMode (int hdrMode) |
| Sets the HDR display mode of LiveWindow. More...
|
|
int | getHDRDisplayMode () |
| Gets the HDR display mode of LiveWindow. More...
|
|
PointF | mapCanonicalToView (PointF ptCanonical) |
| Timeline coordinates are converted to view coordinates. More...
|
|
PointF | mapViewToCanonical (PointF ptView) |
| View coordinates are converted to timeline coordinates. More...
|
|
PointF | mapNormalizedToView (PointF ptNormalized) |
| Normalized coordinates are converted to view coordinates. More...
|
|
PointF | mapViewToNormalized (PointF ptView) |
| View coordinates are converted to normalized coordinates. More...
|
|
void | clearVideoFrame () |
| Clears LiveWindow video frames. More...
|
|
Bitmap | takeScreenshot () |
| Screenshot. More...
|
|
void | setBackgroundColor (float r, float g, float b) |
| Sets the background color. More...
|
|
void | setBackgroundColor (float r, float g, float b, float a) |
|
liveWindow video preview window
- Warning
- In the NvsLiveWindow class, all public APIs are used in the UI thread! ! !
◆ NvsLiveWindow() [1/4]
com.meicam.sdk.NvsLiveWindow.NvsLiveWindow |
( |
Context |
context | ) |
|
|
inline |
◆ NvsLiveWindow() [2/4]
com.meicam.sdk.NvsLiveWindow.NvsLiveWindow |
( |
Context |
context, |
|
|
AttributeSet |
attrs |
|
) |
| |
|
inline |
◆ NvsLiveWindow() [3/4]
com.meicam.sdk.NvsLiveWindow.NvsLiveWindow |
( |
Context |
context, |
|
|
AttributeSet |
attrs, |
|
|
int |
defStyleAttr |
|
) |
| |
|
inline |
◆ NvsLiveWindow() [4/4]
com.meicam.sdk.NvsLiveWindow.NvsLiveWindow |
( |
Context |
context, |
|
|
AttributeSet |
attrs, |
|
|
int |
defStyleAttr, |
|
|
int |
defStyleRes |
|
) |
| |
|
inline |
◆ clearVideoFrame()
void com.meicam.sdk.NvsLiveWindow.clearVideoFrame |
( |
| ) |
|
|
inline |
Clears LiveWindow video frames.
◆ getFillMode()
int com.meicam.sdk.NvsLiveWindow.getFillMode |
( |
| ) |
|
|
inline |
Gets the fill mode of LiveWindow.
- Returns
- Returns LiveWindow's Fill Mode
◆ getHDRDisplayMode()
int com.meicam.sdk.NvsLiveWindow.getHDRDisplayMode |
( |
| ) |
|
|
inline |
Gets the HDR display mode of LiveWindow.
- Returns
- Returns LiveWindow's HDR display mode
◆ mapCanonicalToView()
PointF com.meicam.sdk.NvsLiveWindow.mapCanonicalToView |
( |
PointF |
ptCanonical | ) |
|
|
inline |
Timeline coordinates are converted to view coordinates.
- Parameters
-
- Returns
- Returns the converted view point PointF object.
- Since
- 1.1.0
- See also
- mapViewToCanonical
◆ mapNormalizedToView()
PointF com.meicam.sdk.NvsLiveWindow.mapNormalizedToView |
( |
PointF |
ptNormalized | ) |
|
|
inline |
Normalized coordinates are converted to view coordinates.
- Parameters
-
ptNormalized | Normalized coordinate point. |
- Returns
- Returns the converted view point PointF object.
- Since
- 1.1.0
- See also
- mapViewToNormalized
◆ mapViewToCanonical()
PointF com.meicam.sdk.NvsLiveWindow.mapViewToCanonical |
( |
PointF |
ptView | ) |
|
|
inline |
View coordinates are converted to timeline coordinates.
- Parameters
-
- Returns
- Returns the converted timeline coordinate point PointF object.
- Since
- 1.1.0
- See also
- mapCanonicalToView
◆ mapViewToNormalized()
PointF com.meicam.sdk.NvsLiveWindow.mapViewToNormalized |
( |
PointF |
ptView | ) |
|
|
inline |
View coordinates are converted to normalized coordinates.
- Parameters
-
ptView | View coordinate point. |
- Returns
- Returns the converted normalized coordinates point PointF object.
- Since
- 1.1.0
- See also
- mapNormalizedToView
◆ setBackgroundColor() [1/2]
void com.meicam.sdk.NvsLiveWindow.setBackgroundColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
|
inline |
Sets the background color.
◆ setBackgroundColor() [2/2]
void com.meicam.sdk.NvsLiveWindow.setBackgroundColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
inline |
◆ setFillMode()
void com.meicam.sdk.NvsLiveWindow.setFillMode |
( |
int |
fillMode | ) |
|
|
inline |
Sets the fill mode of LiveWindow.
- Parameters
-
◆ setHDRDisplayMode()
void com.meicam.sdk.NvsLiveWindow.setHDRDisplayMode |
( |
int |
hdrMode | ) |
|
|
inline |
Sets the HDR display mode of LiveWindow.
- Parameters
-
◆ takeScreenshot()
Bitmap com.meicam.sdk.NvsLiveWindow.takeScreenshot |
( |
| ) |
|
|
inline |
◆ FILLMODE_PRESERVEASPECTCROP
final int com.meicam.sdk.NvsLiveWindow.FILLMODE_PRESERVEASPECTCROP = 0 |
|
static |
The image is evenly filled and cropped if necessary (default mode)
◆ FILLMODE_PRESERVEASPECTFIT
final int com.meicam.sdk.NvsLiveWindow.FILLMODE_PRESERVEASPECTFIT = 1 |
|
static |
The image is evenly scaled to fit the window, no cropping.
◆ FILLMODE_STRETCH
final int com.meicam.sdk.NvsLiveWindow.FILLMODE_STRETCH = 2 |
|
static |
The image is scaled to fit the window.
◆ HDR_DISPLAY_MODE_DEPEND_DEVICE
final int com.meicam.sdk.NvsLiveWindow.HDR_DISPLAY_MODE_DEPEND_DEVICE = 1 |
|
static |
If the device supports HDR, use HDR display, and use NO HDR mode display if it is not supported.
◆ HDR_DISPLAY_MODE_HLG
final int com.meicam.sdk.NvsLiveWindow.HDR_DISPLAY_MODE_HLG = 3 |
|
static |
If the device supports HDR, use HDR display, and use NO HDR mode display if it is not supported.
◆ HDR_DISPLAY_MODE_SDR
final int com.meicam.sdk.NvsLiveWindow.HDR_DISPLAY_MODE_SDR = 0 |
|
static |
Forced to use SDR display, regardless of whether the device supports HDR display.
◆ HDR_DISPLAY_MODE_TONE_MAP_SDR
final int com.meicam.sdk.NvsLiveWindow.HDR_DISPLAY_MODE_TONE_MAP_SDR = 2 |
|
static |
If the device supports HDR, use HDR display, and use NO HDR mode display if it is not supported.
◆ m_fillMode
◆ m_hdrDisplayMode
◆ m_internalObject
long com.meicam.sdk.NvsLiveWindow.m_internalObject = 0 |
|
protected |
The documentation for this class was generated from the following file: