QML video output. More...
#include <VLCQtQml/QmlVideoOutput.h>
Public Slots | |
| void | presentFrame (const std::shared_ptr< const VlcYUVVideoFrame > &frame) |
| Set frame which will be rendered in the output. More... | |
Signals | |
| void | sourceChanged () |
| Source changed signal. | |
| void | fillModeChanged () |
| Fill mode changed signal. | |
| void | aspectRatioChanged () |
| Fill mode changed signal. | |
| void | cropRatioChanged () |
| Fill mode changed signal. | |
Public Member Functions | |
| VlcQmlSource * | source () const |
| Current video source. More... | |
| void | setSource (VlcQmlSource *source) |
| Set video source. More... | |
| int | fillMode () const |
| Current fill mode. More... | |
| void | setFillMode (int mode) |
| Set fill mode. More... | |
| int | aspectRatio () const |
| Current aspect ratio. More... | |
| void | setAspectRatio (int aspectRatio) |
| Set aspect ratio. More... | |
| int | cropRatio () const |
| Current crop ratio. More... | |
| void | setCropRatio (int cropRatio) |
| Set crop ratio. More... | |
Properties | |
| VlcQmlSource | source |
| Current video source. More... | |
| int | fillMode |
| Current fill mode. More... | |
| int | aspectRatio |
| Current aspect ratio. More... | |
| int | cropRatio |
| Current crop ratio. More... | |
QML video output.
A QML video output that can be used to display video inside QML.
| int VlcQmlVideoOutput::aspectRatio | ( | ) | const |
Current aspect ratio.
Used as property in QML.
| int VlcQmlVideoOutput::cropRatio | ( | ) | const |
Current crop ratio.
Used as property in QML.
| int VlcQmlVideoOutput::fillMode | ( | ) | const |
Current fill mode.
Used as property in QML.
|
slot |
Set frame which will be rendered in the output.
| frame |
| void VlcQmlVideoOutput::setAspectRatio | ( | int | aspectRatio | ) |
Set aspect ratio.
| aspectRatio | new aspect ratio |
No effect when fillMode equals Vlc::Stretch. Used as property in QML.
| void VlcQmlVideoOutput::setCropRatio | ( | int | cropRatio | ) |
Set crop ratio.
| cropRatio | new crop ratio |
No effect when fillMode equals Vlc::Stretch. Used as property in QML.
| void VlcQmlVideoOutput::setFillMode | ( | int | mode | ) |
Set fill mode.
| mode | fill mode |
Used as property in QML.
| void VlcQmlVideoOutput::setSource | ( | VlcQmlSource * | source | ) |
Set video source.
| source | video source |
Used as property in QML.
| VlcQmlSource* VlcQmlVideoOutput::source | ( | ) | const |
Current video source.
Used as property in QML.
|
readwrite |
Current aspect ratio.
|
readwrite |
Current crop ratio.
|
readwrite |
Current fill mode.
|
readwrite |
Current video source.