Commit dd61f37b authored by Jean-Paul Saman's avatar Jean-Paul Saman

Merge branch 'master' of git@git.videolan.org:vlc

parents e1629c21 c807dafe
...@@ -2234,10 +2234,9 @@ if test "${enable_opencv}" = "yes" -a "${CXX}" != ""; ...@@ -2234,10 +2234,9 @@ if test "${enable_opencv}" = "yes" -a "${CXX}" != "";
then then
AC_ARG_WITH(opencv-tree, AC_ARG_WITH(opencv-tree,
[ --with-opencv-tree=PATH opencv tree for linking]) [ --with-opencv-tree=PATH opencv tree for linking])
if test -n "${with_opencv_tree}"
then
if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin" if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"
then then
test -z "${with_opencv_tree}" && AC_MSG_ERROR([You have to specify --with-opencv-tree])
AC_MSG_CHECKING(for opencv in ${with_opencv_tree}) AC_MSG_CHECKING(for opencv in ${with_opencv_tree})
if test -f ${with_opencv_tree}/cv/include/cv.h -a -f ${with_opencv_tree}/cxcore/include/cxcore.h \ if test -f ${with_opencv_tree}/cv/include/cv.h -a -f ${with_opencv_tree}/cxcore/include/cxcore.h \
-a -f ${with_opencv_tree}/cvaux/include/cvaux.h -a -f ${with_opencv_tree}/otherlibs/highgui/highgui.h -a -f ${with_opencv_tree}/cvaux/include/cvaux.h -a -f ${with_opencv_tree}/otherlibs/highgui/highgui.h
...@@ -2257,8 +2256,16 @@ then ...@@ -2257,8 +2256,16 @@ then
AC_MSG_ERROR([cannot find opencv in ${with_opencv_tree}]) AC_MSG_ERROR([cannot find opencv in ${with_opencv_tree}])
fi fi
else else
AC_MSG_WARN([--enable-opencv currently only works on windows]) PKG_CHECK_MODULES(OPENCV, opencv,
fi [
VLC_ADD_PLUGIN([opencv_example])
VLC_ADD_PLUGIN([opencv_wrapper])
VLC_ADD_LIBS([opencv_example opencv_wrapper],[${OPENCV_LIBS}])
VLC_ADD_CFLAGS([opencv_wrapper],[${OPENCV_CFLAGS}])
VLC_ADD_CXXFLAGS([opencv_example],[${OPENCV_CFLAGS}])
],
[AC_MSG_ERROR([libopencv not found!])]
)
fi fi
fi fi
...@@ -3023,18 +3030,19 @@ dnl Trying with pkg-config ...@@ -3023,18 +3030,19 @@ dnl Trying with pkg-config
[AC_CHECK_HEADERS([ffmpeg/swscale.h libswscale/swscale.h])], [AC_CHECK_HEADERS([ffmpeg/swscale.h libswscale/swscale.h])],
[], [],
[${SWSCALE_LIBS}]) [${SWSCALE_LIBS}])
VLC_RESTORE_FLAGS
],[AC_CHECK_LIB(avcodec,img_resample,[], ],[AC_CHECK_LIB(avcodec,img_resample,[],
[AC_MSG_ERROR([Your FFmpeg library doesn't have the needed img_resample() function. You should rebuild it with software scaler disabled, or install the swscale headers.])], [AC_MSG_ERROR([Your FFmpeg library doesn't have the needed img_resample() function. You should rebuild it with software scaler disabled, or install the swscale headers.])],
[${FFMPEG_LIBS}]) [${FFMPEG_LIBS}])
] ]
) )
VLC_RESTORE_FLAGS
],[ ],[
dnl dnl
dnl last chance: at the default place dnl last chance: at the default place
dnl dnl
VLC_SAVE_FLAGS
CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_ffmpeg}" CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_ffmpeg}"
LDFLAGS="${LDFLAGS_save} ${LDFLAGS_ffmpeg} ${LIBS_ffmpeg}" LDFLAGS="${LDFLAGS_save} ${LDFLAGS_ffmpeg} ${LIBS_ffmpeg}"
AC_CHECK_HEADERS(ffmpeg/avcodec.h libavcodec/avcodec.h) AC_CHECK_HEADERS(ffmpeg/avcodec.h libavcodec/avcodec.h)
...@@ -3061,8 +3069,7 @@ dnl Trying with pkg-config ...@@ -3061,8 +3069,7 @@ dnl Trying with pkg-config
AC_CHECK_LIB(avformat, av_open_input_stream, [ AC_CHECK_LIB(avformat, av_open_input_stream, [
VLC_ADD_LIBS([ffmpeg],[-lavformat -lz]) ], [], [-lavcodec -lz $LDAVUTIL]) VLC_ADD_LIBS([ffmpeg],[-lavformat -lz]) ], [], [-lavcodec -lz $LDAVUTIL])
LDFLAGS="${LDFLAGS_save}" VLC_RESTORE_FLAGS
CPPFLAGS="${CPPFLAGS_save}"
AC_CHECK_LIB(swscale, sws_getContext, [ AC_CHECK_LIB(swscale, sws_getContext, [
AC_CHECK_HEADERS(ffmpeg/swscale.h libswscale/swscale.h) AC_CHECK_HEADERS(ffmpeg/swscale.h libswscale/swscale.h)
...@@ -3070,10 +3077,10 @@ dnl Trying with pkg-config ...@@ -3070,10 +3077,10 @@ dnl Trying with pkg-config
[AC_CHECK_LIB(avcodec,img_resample,[], [AC_CHECK_LIB(avcodec,img_resample,[],
[AC_MSG_ERROR([Your FFmpeg library doesn't have the needed img_resample() function. You should rebuild it with software scaler disabled, or install the swscale headers.])], [AC_MSG_ERROR([Your FFmpeg library doesn't have the needed img_resample() function. You should rebuild it with software scaler disabled, or install the swscale headers.])],
[-lavcodec $LDAVUTIL]) [-lavcodec $LDAVUTIL])
LDFLAGS="${LDFLAGS_save}"
CPPFLAGS="${CPPFLAGS_save}"
], ],
[${SWSCALE_LIBS}]) [${SWSCALE_LIBS}])
VLC_RESTORE_FLAGS
]) ])
fi fi
......
...@@ -344,7 +344,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block ) ...@@ -344,7 +344,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
p_spu->p_region->i_x = 0; p_spu->p_region->i_x = 0;
p_spu->p_region->i_y = 0; p_spu->p_region->i_y = 0;
p_spu->p_region->i_align = SUBPICTURE_ALIGN_BOTTOM; p_spu->p_region->i_align = p_sys->i_align;
/* Normal text subs, easy markup */ /* Normal text subs, easy markup */
p_spu->i_flags = SUBPICTURE_ALIGN_BOTTOM; p_spu->i_flags = SUBPICTURE_ALIGN_BOTTOM;
...@@ -381,7 +381,6 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block ) ...@@ -381,7 +381,6 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
if( i_total <= 40 ) goto error; if( i_total <= 40 ) goto error;
p_spu->p_region->psz_text = strdup( &p_text[8] ); p_spu->p_region->psz_text = strdup( &p_text[8] );
p_spu->p_region->fmt.i_height = p_spu->p_region->fmt.i_visible_height = p_page.rows + 1;
#ifdef ZVBI_DEBUG #ifdef ZVBI_DEBUG
msg_Info( p_dec, "page %x-%x(%d)\n%s", p_page.pgno, p_page.subno, i_total, p_text ); msg_Info( p_dec, "page %x-%x(%d)\n%s", p_page.pgno, p_page.subno, i_total, p_text );
#endif #endif
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_decoder.h>
#include <vlc_filter.h> #include <vlc_filter.h>
#include "filter_common.h" #include "filter_common.h"
#include <vlc_image.h> #include <vlc_image.h>
......
...@@ -322,17 +322,6 @@ int vlc_wclosedir( void *_p_dir ) ...@@ -322,17 +322,6 @@ int vlc_wclosedir( void *_p_dir )
#endif #endif
} }
#if defined (WIN32)
/**
* gettext callbacks for plugins.
* LibVLC links libintl statically on Windows.
*/
char *vlc_dgettext( const char *package, const char *msgid )
{
return dgettext( package, msgid );
}
#endif
/** /**
* In-tree plugins share their gettext domain with LibVLC. * In-tree plugins share their gettext domain with LibVLC.
*/ */
......
...@@ -287,8 +287,6 @@ void vlc_rewinddir (void *); ...@@ -287,8 +287,6 @@ void vlc_rewinddir (void *);
# define _wreaddir vlc_wreaddir # define _wreaddir vlc_wreaddir
# define _wclosedir vlc_wclosedir # define _wclosedir vlc_wclosedir
# define rewinddir vlc_rewinddir # define rewinddir vlc_rewinddir
char *vlc_dgettext ( const char *package, const char *msgid );
#endif #endif
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment