MLT  7.38.0
Multimedia Framework
MltAnimation.h
Go to the documentation of this file.
1 
20 #ifndef MLTPP_ANIMATION_H
21 #define MLTPP_ANIMATION_H
22 
23 #include "MltConfig.h"
24 
25 #include <framework/mlt.h>
26 
27 namespace Mlt {
28 
38 {
39 private:
41 
42 public:
43  Animation();
45  Animation(mlt_animation animation);
46  Animation(const Animation &);
47  ~Animation();
48 
50  bool is_valid() const;
51  mlt_animation get_animation() const;
52  Animation &operator=(const Animation &);
53 
55  int length();
57  int get_item(int position, bool &is_key, mlt_keyframe_type &);
59  bool is_key(int position);
61  mlt_keyframe_type keyframe_type(int position);
63  int next_key(int position);
64  bool next_key(int position, int &key);
66  int previous_key(int position);
67  bool previous_key(int position, int &key);
69  int key_count();
71  int key_get(int index, int &frame, mlt_keyframe_type &);
73  int key_get_frame(int index);
75  mlt_keyframe_type key_get_type(int index);
77  int key_set_type(int index, mlt_keyframe_type type);
79  int key_set_frame(int index, int frame);
81  void shift_frames(int shift);
83  void set_length(int length);
85  int remove(int position);
87  void interpolate();
90  char *serialize_cut(int in = -1, int out = -1);
92  char *serialize_cut(mlt_time_format format, int in = -1, int out = -1);
93 };
94 } // namespace Mlt
95 
96 #endif
#define MLTPP_DECLSPEC
MltConfig.h - Convenience header file for all mlt++ objects Copyright (C) 2004-2026 Meltytech,...
Definition: MltConfig.h:33
C++ wrapper for mlt_animation — keyframe animation data.
Definition: MltAnimation.h:38
mlt_animation instance
Definition: MltAnimation.h:40
header file for lazy client and implementation code :-)
mlt_time_format
The time string formats.
Definition: mlt_types.h:172
mlt_keyframe_type
Interpolation methods for animation keyframes.
Definition: mlt_types.h:181
MLT C++ wrapper Copyright (C) 2015-2026 Meltytech, LLC.
Definition: MltAnimation.h:27
Property Animation class.
Definition: mlt_animation.c:51