Add support for keyframes binary format
Some models/animations may contain a large amount of keyframes,
leading to a lot of Keyframe QML elements. This can make QML
file large and not perform well.
This commit adds support for 'keyframeSource' TimelineGroup
property which can be used to load keyframes data from a file in
CBOR binary format. Format specification included in commit.
Contains keyframeBinaryGenerator manual test to assist in
generating these keyframe files. This was used for test10.qml
manual test content. Also adds missing Circles.qml
Task-number: QTBUG-85148
Change-Id: I5f4dc8e5f21e41310def8416fd1e7abc951229f2
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
| commit | 98e7c9cc2c1bdf18687783fdedca70fb87b80f47 |
| parent | 4a4b53469a601a279205bc5b05aa50fe34045afa |
| author | Kaj Grönholm <kaj.gronholm@qt.io> |
| committer | Kaj Grönholm <kaj.gronholm@qt.io> |
| commit time | Mon, 24 Aug 2020 15:33:56 +0300 |
- M src/imports/timeline/CMakeLists.txt
- A src/imports/timeline/keyframedatautils_p.h
- M src/imports/timeline/qquickkeyframe.cpp
- M src/imports/timeline/qquickkeyframe_p.h
- M src/imports/timeline/qquicktimeline.cpp
- M src/imports/timeline/qquicktimeline_p.h
- M src/imports/timeline/qtquicktimelineplugin.cpp
- M src/imports/timeline/timeline.pri
- A tests/manual/keyframeBinaryGenerator/keyframeBinaryGenerator.pro
- A tests/manual/keyframeBinaryGenerator/keyframes_file_specification.txt
- A tests/manual/keyframeBinaryGenerator/main.cpp
- A tests/manual/timelineTestApp/Circle.qml
- A tests/manual/timelineTestApp/animate_bool.cbor
- A tests/manual/timelineTestApp/animate_color.cbor
- A tests/manual/timelineTestApp/animate_real.cbor
- A tests/manual/timelineTestApp/animate_vector3d.cbor
- M tests/manual/timelineTestApp/main.cpp
- M tests/manual/timelineTestApp/main.qml
- M tests/manual/timelineTestApp/qml.qrc
- A tests/manual/timelineTestApp/test10.qml