Skip to content

Commit

Permalink
Update vidiopy.hpp to include PositionBundle struct and modify Clip c…
Browse files Browse the repository at this point in the history
…lass
  • Loading branch information
SohamTilekar committed Apr 8, 2024
1 parent 925a131 commit 2c19d3b
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions _c_vidiopy/_cpp/vidiopy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,20 @@
#define SHARED_EXPORT_API
#endif

#include <functional>
#include <vector>
#include <functional>
#include <string>

typedef struct PositionBundle
{
char xChar;
int xInt;
double xDouble;

char yChar;
int yInt;
double yDouble;
};

class Clip
{
Expand All @@ -16,8 +28,11 @@ class Clip
double end;
double duration;
double fps;
char *name;
std::vector<std::function<double(double)>> time_transforms;
std::string name;
void setTimeTransforms(std::function<PositionBundle(double)> func);

private:
std::vector<std::function<PositionBundle(double)>> timeTransforms;
};

class AudioClip : public Clip
Expand Down

0 comments on commit 2c19d3b

Please sign in to comment.