Skip to content

Commit 476b3ed

Browse files
committed
Merge branch 'frame-parallel' of github.com:strukturag/libde265 into frame-parallel
2 parents da13aa3 + a4bdfb9 commit 476b3ed

File tree

7 files changed

+67
-25
lines changed

7 files changed

+67
-25
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ script:
8787
- sh -c "if [ ! -z "$WINE" ]; then WINEPREFIX=`pwd`/$WINE WINEPATH=/usr/lib/gcc/$HOST/4.6/ $WINE ./dec265/dec265.exe -t 4 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
8888
- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi"
8989
#- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -t 4 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi"
90-
- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
90+
#- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
9191
#- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -t 4 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
9292
- sh -c "if [ ! -z '$DECODESTREAMS' ]; then python scripts/decodestreams.py $THREADING /var/lib/libde265-teststreams; fi"

acceleration-speed/Makefile.am

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11

2-
bin_PROGRAMS = acceleration_speed
2+
bin_PROGRAMS =
33

44
AM_CPPFLAGS = -I../libde265
55

6-
acceleration_speed_DEPENDENCIES = ../libde265/libde265.la
7-
acceleration_speed_CXXFLAGS =
8-
acceleration_speed_LDFLAGS =
9-
acceleration_speed_LDADD = ../libde265/libde265.la -lstdc++
10-
acceleration_speed_SOURCES = \
11-
acceleration-speed.cc acceleration-speed.h \
12-
dct.cc dct.h \
13-
dct-scalar.cc dct-scalar.h
6+
if ENABLE_ACCELERATION_SPEED
7+
bin_PROGRAMS += acceleration_speed
8+
9+
acceleration_speed_DEPENDENCIES = ../libde265/libde265.la
10+
acceleration_speed_CXXFLAGS =
11+
acceleration_speed_LDFLAGS =
12+
acceleration_speed_LDADD = ../libde265/libde265.la -lstdc++
13+
acceleration_speed_SOURCES = \
14+
acceleration-speed.cc acceleration-speed.h \
15+
dct.cc dct.h \
16+
dct-scalar.cc dct-scalar.h
1417

1518
if ENABLE_SSE_OPT
1619
acceleration_speed_SOURCES += dct-sse.cc
1720
endif
21+
endif

configure.ac

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ if test "x$GCC" = "xyes"; then
5050
fi
5151
changequote([,])dnl
5252

53-
dnl gl_VISIBILITY
54-
dnl : In encoder branch, we still export all library symbols :
55-
HAVE_VISIBILITY=0
53+
AC_ARG_ENABLE([visibility], AS_HELP_STRING([--enable-visibility], [Enable visibility definitions.]), [gl_VISIBILITY], [HAVE_VISIBILITY=0])
5654
AM_CONDITIONAL([HAVE_VISIBILITY], [test "x$HAVE_VISIBILITY" != "x0"])
5755

5856
# Checks for header files.
@@ -304,9 +302,15 @@ fi
304302

305303
AC_ARG_ENABLE([dec265], AS_HELP_STRING([--disable-dec265], [Do not build dec265 decoder program.]))
306304
AC_ARG_ENABLE([sherlock265], AS_HELP_STRING([--disable-sherlock265], [Do not build sherlock265 visual inspection program.]))
305+
AC_ARG_ENABLE([hdrcopy], AS_HELP_STRING([--disable-hdrcopy], [Do not build hdrcopy decoder program.]))
306+
AC_ARG_ENABLE([enc265], AS_HELP_STRING([--disable-enc265], [Do not build enc265 encoder program.]))
307+
AC_ARG_ENABLE([acceleration_speed], AS_HELP_STRING([--disable-acceleration_speed], [Do not build acceleration_speed test program.]))
307308

308309
if eval "test x$enable_dec265 = x" ; then enable_dec265=yes ; fi
309310
if eval "test x$enable_sherlock265 = x" ; then enable_sherlock265=yes ; fi
311+
if eval "test x$enable_hdrcopy = x" ; then enable_hdrcopy=yes ; fi
312+
if eval "test x$enable_enc265 = x" ; then enable_enc265=yes ; fi
313+
if eval "test x$enable_acceleration_speed = x" ; then enable_acceleration_speed=yes ; fi
310314

311315
if eval "test x$enable_dec265 = xyes" || eval "test x$enable_sherlock265 = xyes" ; then
312316
PKG_CHECK_MODULES([VIDEOGFX], [libvideogfx],
@@ -379,6 +383,9 @@ fi
379383

380384
AM_CONDITIONAL([ENABLE_DEC265], [test "x$enable_dec265" != "xno"])
381385
AM_CONDITIONAL([ENABLE_SHERLOCK265], [test "x$enable_sherlock265" != "xno"])
386+
AM_CONDITIONAL([ENABLE_HDRCOPY], [test "x$enable_hdrcopy" != "xno"])
387+
AM_CONDITIONAL([ENABLE_ENC265], [test "x$enable_enc265" != "xno"])
388+
AM_CONDITIONAL([ENABLE_ACCELERATION_SPEED], [test "x$enable_acceleration_speed" != "xno"])
382389

383390

384391
# --- output configuration results ---
@@ -387,6 +394,9 @@ AC_MSG_NOTICE([---------------------------------------])
387394
AC_MSG_NOTICE([Processor acceleration: $MSG_ACCELERATION_OPTION])
388395
AC_MSG_NOTICE([Building dec265 example: $enable_dec265])
389396
AC_MSG_NOTICE([Building sherlock265 example: $enable_sherlock265])
397+
AC_MSG_NOTICE([Building hdrcopy example: $enable_hdrcopy])
398+
AC_MSG_NOTICE([Building enc265 example: $enable_enc265])
399+
AC_MSG_NOTICE([Building acceleration_speed example: $enable_acceleration_speed])
390400
AC_MSG_NOTICE([---------------------------------------])
391401

392402
AC_CONFIG_FILES([Makefile])

dec265/Makefile.am

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
bin_PROGRAMS = dec265 hdrcopy
2+
bin_PROGRAMS = dec265
33

44
AM_CPPFLAGS = -I../libde265
55

@@ -9,11 +9,15 @@ dec265_LDFLAGS =
99
dec265_LDADD = ../libde265/libde265.la -lstdc++
1010
dec265_SOURCES = dec265.cc
1111

12-
hdrcopy_DEPENDENCIES = ../libde265/libde265.la
13-
hdrcopy_CXXFLAGS =
14-
hdrcopy_LDFLAGS =
15-
hdrcopy_LDADD = ../libde265/libde265.la -lstdc++
16-
hdrcopy_SOURCES = hdrcopy.cc
12+
if ENABLE_HDRCOPY
13+
bin_PROGRAMS += hdrcopy
14+
15+
hdrcopy_DEPENDENCIES = ../libde265/libde265.la
16+
hdrcopy_CXXFLAGS =
17+
hdrcopy_LDFLAGS =
18+
hdrcopy_LDADD = ../libde265/libde265.la -lstdc++
19+
hdrcopy_SOURCES = hdrcopy.cc
20+
endif
1721

1822
if HAVE_VIDEOGFX
1923
dec265_CXXFLAGS += $(VIDEOGFX_CFLAGS)

enc265/Makefile.am

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11

2-
bin_PROGRAMS = enc265
2+
bin_PROGRAMS =
33

44
AM_CPPFLAGS = -I../libde265
55

6-
enc265_DEPENDENCIES = ../libde265/libde265.la
7-
enc265_CXXFLAGS =
8-
enc265_LDFLAGS =
9-
enc265_LDADD = ../libde265/libde265.la -lstdc++
10-
enc265_SOURCES = enc265.cc image-io-png.cc image-io-png.h
6+
if ENABLE_ENC265
7+
bin_PROGRAMS += enc265
8+
9+
enc265_DEPENDENCIES = ../libde265/libde265.la
10+
enc265_CXXFLAGS =
11+
enc265_LDFLAGS =
12+
enc265_LDADD = ../libde265/libde265.la -lstdc++
13+
enc265_SOURCES = enc265.cc image-io-png.cc image-io-png.h
1114

1215
if HAVE_VIDEOGFX
1316
enc265_CXXFLAGS += $(VIDEOGFX_CFLAGS)
1417
enc265_LDFLAGS += $(VIDEOGFX_LIBS)
1518
endif
19+
endif
1620

1721
EXTRA_DIST = \
1822
CMakeLists.txt \

libde265/encoder/Makefile.am

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ libde265_encoder_la_SOURCES = \
1010
encpicbuf.h encpicbuf.cc \
1111
sop.h sop.cc
1212

13+
libde265_encoder_la_CFLAGS = \
14+
$(CFLAG_VISIBILITY) \
15+
-DLIBDE265_EXPORTS
16+
libde265_encoder_la_CXXFLAGS += \
17+
$(CFLAG_VISIBILITY) \
18+
-DLIBDE265_EXPORTS
19+
20+
if HAVE_VISIBILITY
21+
libde265_encoder_la_CFLAGS += -DHAVE_VISIBILITY
22+
libde265_encoder_la_CXXFLAGS += -DHAVE_VISIBILITY
23+
endif
24+
1325
SUBDIRS=algo
1426
libde265_encoder_la_LIBADD = algo/libde265_encoder_algo.la
1527

libde265/encoder/algo/Makefile.am

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,13 @@ libde265_encoder_algo_la_SOURCES = \
1717
tb-rateestim.h tb-rateestim.cc \
1818
pb-mv.h pb-mv.cc
1919

20+
libde265_encoder_algo_la_CXXFLAGS += \
21+
$(CFLAG_VISIBILITY) \
22+
-DLIBDE265_EXPORTS
23+
24+
if HAVE_VISIBILITY
25+
libde265_encoder_algo_la_CXXFLAGS += -DHAVE_VISIBILITY
26+
endif
27+
2028
EXTRA_DIST = \
2129
CMakeLists.txt

0 commit comments

Comments
 (0)