Skip to content

Commit bf620f8

Browse files
committed
Merge branch 'develop' into hardware-support
2 parents 7933527 + aa85c1b commit bf620f8

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,12 @@ endif(RESVG_FOUND)
199199
################### JSONCPP #####################
200200
# Include jsoncpp headers (needed for JSON parsing)
201201
if (USE_SYSTEM_JSONCPP)
202+
message(STATUS "Discovering system JsonCPP (USE_SYSTEM_JSONCPP enabled)")
202203
find_package(JsonCpp REQUIRED)
203204
include_directories(${JSONCPP_INCLUDE_DIRS})
205+
message(STATUS "Discovering system JsonCPP - done")
204206
else()
205-
message("-- Could NOT find JsonCpp library (Using embedded JsonCpp instead)")
207+
message(STATUS "Using embedded JsonCpp (USE_SYSTEM_JSONCPP not enabled)")
206208
include_directories("../thirdparty/jsoncpp/include")
207209
endif(USE_SYSTEM_JSONCPP)
208210

src/bindings/ruby/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ FIND_PACKAGE(SWIG 2.0 REQUIRED)
3030
INCLUDE(${SWIG_USE_FILE})
3131

3232
### Enable some legacy SWIG behaviors, in newer CMAKEs
33-
if (CMAKE_VERSION VERSION_GREATER 3.13)
33+
if (POLICY CMP0078)
3434
cmake_policy(SET CMP0078 OLD)
3535
endif()
36-
if (CMAKE_VERSION VERSION_GREATER 3.14)
36+
if (POLICY CMP0086)
3737
cmake_policy(SET CMP0086 OLD)
3838
endif()
3939

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
11
import openshot
22

3-
# Create a empty clip
4-
t = openshot.Timeline(720, 480, openshot.Fraction(24,1), 44100, 2)
3+
# Create an empty timeline
4+
t = openshot.Timeline(720, 480, openshot.Fraction(24,1), 44100, 2, openshot.LAYOUT_STEREO)
5+
t.Open()
56

67
# lower layer
7-
lower = openshot.ImageReader("/home/jonathan/apps/libopenshot/src/examples/back.png")
8+
lower = openshot.QtImageReader("back.png")
89
c1 = openshot.Clip(lower)
910
c1.Layer(1)
1011
t.AddClip(c1)
1112

1213
# higher layer
13-
higher = openshot.ImageReader("/home/jonathan/apps/libopenshot/src/examples/front3.png")
14+
higher = openshot.QtImageReader("front3.png")
1415
c2 = openshot.Clip(higher)
1516
c2.Layer(2)
1617
#c2.alpha = openshot.Keyframe(0.5)
1718
t.AddClip(c2)
1819

1920
# Wipe / Transition
2021
brightness = openshot.Keyframe()
21-
brightness.AddPoint(1, 100.0, openshot.BEZIER)
22-
brightness.AddPoint(24, -100.0, openshot.BEZIER)
22+
brightness.AddPoint(1, 1.0, openshot.BEZIER)
23+
brightness.AddPoint(24, -1.0, openshot.BEZIER)
2324

2425
contrast = openshot.Keyframe()
2526
contrast.AddPoint(1, 20.0, openshot.BEZIER)
2627
contrast.AddPoint(24, 20.0, openshot.BEZIER)
2728

28-
e = openshot.Wipe("/home/jonathan/apps/libopenshot/src/examples/mask.png", brightness, contrast)
29+
reader = openshot.QtImageReader("mask.png")
30+
e = openshot.Mask(reader, brightness, contrast)
2931
e.Layer(2)
3032
e.End(60)
3133
t.AddEffect(e)
3234

33-
e1 = openshot.Wipe("/home/jonathan/apps/libopenshot/src/examples/mask2.png", brightness, contrast)
35+
reader1 = openshot.QtImageReader("mask2.png")
36+
e1 = openshot.Mask(reader1, brightness, contrast)
3437
e1.Layer(2)
3538
e1.Order(2)
3639
e1.End(60)
3740
#t.AddEffect(e1)
3841

39-
4042
for n in range(1,25):
41-
print n
43+
print(n, end=" ", flush=1)
4244
t.GetFrame(n).Save("%s.png" % n, 1.0)

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,5 +226,5 @@ IF (NOT DISABLE_TESTS)
226226

227227
#################### MAKE TEST ######################
228228
# Hook up the 'make os_test' target to the 'openshot-test' executable
229-
ADD_CUSTOM_TARGET(os_test ${CMAKE_CURRENT_BINARY_DIR}/openshot-test)
229+
ADD_CUSTOM_TARGET(os_test COMMAND openshot-test)
230230
ENDIF (NOT DISABLE_TESTS)

0 commit comments

Comments
 (0)