Bindings: Add template specializations

This commit is contained in:
FeRD (Frank Dana)
2020-12-04 11:26:20 -05:00
parent d0a625c9f2
commit b280fbd082
2 changed files with 9 additions and 0 deletions

View File

@@ -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 {

View File

@@ -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