You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Add experimental support for Java bindings for libopenshot. This generates the *.class and *.java files, and a JNI library (libopenshot-java.so) to invoke the actual C++ openshot library, and a openshotJNI.jar which contains all of these files.
This commit is contained in:
@@ -73,7 +73,15 @@ ReaderBase* FrameMapper::Reader()
|
||||
void FrameMapper::AddField(int64_t frame)
|
||||
{
|
||||
// Add a field, and toggle the odd / even field
|
||||
AddField(Field(frame, field_toggle));
|
||||
Field f = { frame, bool(field_toggle) };
|
||||
AddField(f);
|
||||
}
|
||||
|
||||
void FrameMapper::AddField(int64_t frame, bool isOdd)
|
||||
{
|
||||
// Add a field, and toggle the odd / even field
|
||||
Field f = { frame, isOdd };
|
||||
AddField(f);
|
||||
}
|
||||
|
||||
void FrameMapper::AddField(Field field)
|
||||
@@ -183,7 +191,7 @@ void FrameMapper::Init()
|
||||
|
||||
if (frame + 1 <= info.video_length)
|
||||
// add field for next frame (if the next frame exists)
|
||||
AddField(Field(frame + 1, field_toggle));
|
||||
AddField(frame + 1, field_toggle);
|
||||
}
|
||||
else if (pulldown == PULLDOWN_NONE && field % frame_interval == 0)
|
||||
{
|
||||
@@ -244,8 +252,8 @@ void FrameMapper::Init()
|
||||
}
|
||||
|
||||
// Loop through the target frames again (combining fields into frames)
|
||||
Field Odd(0, true); // temp field used to track the ODD field
|
||||
Field Even(0, true); // temp field used to track the EVEN field
|
||||
Field Odd = {0, true}; // temp field used to track the ODD field
|
||||
Field Even = {0, true}; // temp field used to track the EVEN field
|
||||
|
||||
// Variables used to remap audio samples
|
||||
int64_t start_samples_frame = 1;
|
||||
|
||||
Reference in New Issue
Block a user