You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Bindings: Add template specializations
This commit is contained in:
@@ -129,6 +129,8 @@
|
||||
%template() std::map<std::string, int>;
|
||||
%template() std::pair<int, int>;
|
||||
%template() std::vector<int>;
|
||||
%template() std::pair<double, double>;
|
||||
%template() std::pair<float, float>;
|
||||
|
||||
/* Make openshot.Fraction more Pythonic */
|
||||
%extend openshot::Fraction {
|
||||
|
||||
@@ -57,6 +57,13 @@
|
||||
%shared_ptr(juce::AudioSampleBuffer)
|
||||
%shared_ptr(openshot::Frame)
|
||||
|
||||
/* Template specializations */
|
||||
%template() std::map<std::string, int>;
|
||||
%template() std::pair<int, int>;
|
||||
%template() std::vector<int>;
|
||||
%template() std::pair<double, double>;
|
||||
%template() std::pair<float, float>;
|
||||
|
||||
%{
|
||||
/* Ruby and FFmpeg define competing RSHIFT macros,
|
||||
* so we move Ruby's out of the way for now. We'll
|
||||
|
||||
Reference in New Issue
Block a user