Add video filtering support to VideoOutput
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>
Thu, 8 Jan 2015 13:32:41 +0000 (14:32 +0100)
committerYoann Lopes <yoann.lopes@theqtcompany.com>
Tue, 3 Feb 2015 14:41:39 +0000 (14:41 +0000)
commit3e94b7ce2d8166767ec47425d2cefbc77cb5fde2
treec27061139c94b04d8237d4fabba05801a39f9369
parent2f494446388e314286506eae335439b7bbc75736
Add video filtering support to VideoOutput

Add the QAbstractVideoFilter base class and integrate it with VideoOutput.

This can be used to perform arbitrary filtering or image processing
on the frames of a video stream of a VideoOutput element right before
the OpenGL texture is provided to the scenegraph by the video node.

This opens up the possibility to integrate computer vision
frameworks or accelerated image processing with Qt Quick applications
that display video streams using Qt Multimedia.

Conceptually it is somewhat similar to QVideoProbe, this
approach however allows modifying the frame, in real time
with tight integration to the scenegraph node, and targets
Qt Quick meaning setting up the filter and processing the results
of the computations happen completely in QML.

[ChangeLog] Added QAbstractVideoFilter that serves as a base class for QML
video filtering elements that integrate compute, vision, and image processing
frameworks with VideoOutput.

Change-Id: Ice1483f8c2daec5a43536978627a7bbb64549480
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
33 files changed:
examples/multimedia/video/qmlvideofilter_opencl/README [new file with mode: 0644]
examples/multimedia/video/qmlvideofilter_opencl/main.cpp [new file with mode: 0644]
examples/multimedia/video/qmlvideofilter_opencl/main.qml [new file with mode: 0644]
examples/multimedia/video/qmlvideofilter_opencl/qmlvideofilter_opencl.pro [new file with mode: 0644]
examples/multimedia/video/qmlvideofilter_opencl/qmlvideofilter_opencl.qrc [new file with mode: 0644]
examples/multimedia/video/qmlvideofilter_opencl/rgbframehelper.h [new file with mode: 0644]
src/imports/multimedia/multimedia.cpp
src/imports/multimedia/plugins.qmltypes
src/multimedia/qtmultimediaquicktools_headers/qdeclarativevideooutput_backend_p.h
src/multimedia/qtmultimediaquicktools_headers/qdeclarativevideooutput_p.h
src/multimedia/qtmultimediaquicktools_headers/qsgvideonode_p.h
src/multimedia/video/qabstractvideofilter.cpp [new file with mode: 0644]
src/multimedia/video/qabstractvideofilter.h [new file with mode: 0644]
src/multimedia/video/qvideoframe.cpp
src/multimedia/video/qvideoframe.h
src/multimedia/video/video.pri
src/plugins/android/videonode/qandroidsgvideonode.cpp
src/plugins/android/videonode/qandroidsgvideonode.h
src/plugins/videonode/egl/qsgvideonode_egl.cpp
src/plugins/videonode/egl/qsgvideonode_egl.h
src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp
src/plugins/videonode/imx6/qsgvivantevideomaterial.h
src/plugins/videonode/imx6/qsgvivantevideonode.cpp
src/plugins/videonode/imx6/qsgvivantevideonode.h
src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp
src/qtmultimediaquicktools/qdeclarativevideooutput_render_p.h
src/qtmultimediaquicktools/qsgvideonode_i420.cpp
src/qtmultimediaquicktools/qsgvideonode_i420.h
src/qtmultimediaquicktools/qsgvideonode_rgb.cpp
src/qtmultimediaquicktools/qsgvideonode_rgb.h
src/qtmultimediaquicktools/qsgvideonode_texture.cpp
src/qtmultimediaquicktools/qsgvideonode_texture.h