pjmedia_vid_dev_cap class abstract
This enumeration identifies various video device capabilities. These video capabilities indicates what features are supported by the underlying video device implementation.
Applications get these capabilities in the #pjmedia_vid_dev_info structure.
Application can also set the specific features/capabilities when opening the video stream by setting the \a flags member of #pjmedia_vid_dev_param structure.
Once video stream is running, application can also retrieve or set some specific video capability, by using #pjmedia_vid_dev_stream_get_cap() and #pjmedia_vid_dev_stream_set_cap() and specifying the desired capability. The value of the capability is specified as pointer, and application needs to supply the pointer with the correct value, according to the documentation of each of the capability.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- PJMEDIA_VID_DEV_CAP_FORMAT → const int
- Support for video formats. The value of this capability is represented by #pjmedia_format structure.
- PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW → const int
- Support for native preview capability in capture devices. Value is pj_bool_t. With native preview, capture device can be instructed to show or hide a preview window showing video directly from the camera by setting this capability to PJ_TRUE or PJ_FALSE. Once the preview is started, application may use PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW capability to query the video window.
- PJMEDIA_VID_DEV_CAP_INPUT_SCALE → const int
- Support for video input scaling
- PJMEDIA_VID_DEV_CAP_MAX → const int
- End of standard capability
- PJMEDIA_VID_DEV_CAP_ORIENTATION → const int
- Support for changing video orientation. For a renderer device, changing video orientation in will potentially affect the size of render window, i.e: width and height swap. For a capture device, the video will be rotated but the size of the video frame will stay the same, so the video may be resized or stretched.
- PJMEDIA_VID_DEV_CAP_OUTPUT_FULLSCREEN → const int
- Support for setting the output video window full screen.
- PJMEDIA_VID_DEV_CAP_OUTPUT_HIDE → const int
- Support for setting the video output's visibility. The value of this capability is a pj_bool_t containing boolean PJ_TRUE or PJ_FALSE.
- PJMEDIA_VID_DEV_CAP_OUTPUT_POSITION → const int
- Support for setting the video window's position. Value is pjmedia_coord specifying the window's new coordinate.
- PJMEDIA_VID_DEV_CAP_OUTPUT_RESIZE → const int
- Support for resizing video output. This capability SHOULD be implemented by renderer, to alter the video output dimension on the fly. Value is pjmedia_rect_size.
- PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW → const int
- Support for returning the native window handle of the video window. For renderer, this means the window handle of the renderer window, while for capture, this means the window handle of the native preview, only if the device supports PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW capability.
- PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW_FLAGS → const int
- Support for setting the output video window's flags. The value of this capability is a bitmask combination of #pjmedia_vid_dev_wnd_flag.
- PJMEDIA_VID_DEV_CAP_SWITCH → const int
- Support for fast switching to another device. A video stream with this capability allows replacing of its underlying device with another device, saving the user from opening a new video stream and gets a much faster and smoother switching action.