mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:10:48 +00:00
Add ffplay.m -- a port of ffplay.c, to help implement the GSVideoSink / VideoOutputSink class
This commit is contained in:
parent
1994a629e1
commit
560f2d64b2
4 changed files with 3805 additions and 6 deletions
|
@ -20,7 +20,7 @@ VideoOutput_LIB_DIRS += \
|
|||
|
||||
# Build the bundles.
|
||||
VideoFile_OBJC_FILES = VideoFileSource.m
|
||||
VideoOutput_OBJC_FILES = VideoOutputSink.m
|
||||
VideoOutput_OBJC_FILES = VideoOutputSink.m ffplay.m
|
||||
|
||||
VideoFile_PRINCIPAL_CLASS = VideoFileSource
|
||||
VideoOutput_PRINCIPAL_CLASS = VidioOutputSink
|
||||
|
|
3784
Tools/video/ffplay.m
Normal file
3784
Tools/video/ffplay.m
Normal file
File diff suppressed because it is too large
Load diff
20
configure
vendored
20
configure
vendored
|
@ -5772,9 +5772,9 @@ if test "x$ac_cv_header_libavcodec_avcodec_h" = xyes; then :
|
|||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LIBAVCODEC_AVCODEC_H 1
|
||||
_ACEOF
|
||||
have_video=yes
|
||||
have_codec=yes
|
||||
else
|
||||
have_video=no
|
||||
have_codec=no
|
||||
fi
|
||||
|
||||
done
|
||||
|
@ -5793,9 +5793,23 @@ fi
|
|||
|
||||
done
|
||||
|
||||
for ac_header in SDL/SDL.h
|
||||
do :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_SDL_SDL_H 1
|
||||
_ACEOF
|
||||
have_sdl=yes
|
||||
else
|
||||
have_sdl=no
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
# Only if we have both and enabled, then build video
|
||||
if test $have_video = yes -a $have_format -a $enable_video = yes; then
|
||||
if test $have_codec = yes -a $have_format -a $have_sdl -a $enable_video = yes; then
|
||||
BUILD_VIDEO="video"
|
||||
fi
|
||||
|
||||
|
|
|
@ -570,11 +570,12 @@ AC_ARG_ENABLE(video,
|
|||
BUILD_VIDEO=
|
||||
|
||||
# Check for the headers...
|
||||
AC_CHECK_HEADERS(libavcodec/avcodec.h, have_video=yes, have_video=no)
|
||||
AC_CHECK_HEADERS(libavcodec/avcodec.h, have_codec=yes, have_codec=no)
|
||||
AC_CHECK_HEADERS(libavformat/avformat.h, have_format=yes, have_format=no)
|
||||
AC_CHECK_HEADERS(SDL/SDL.h, have_sdl=yes, have_sdl=no)
|
||||
|
||||
# Only if we have both and enabled, then build video
|
||||
if test $have_video = yes -a $have_format -a $enable_video = yes; then
|
||||
if test $have_codec = yes -a $have_format -a $have_sdl -a $enable_video = yes; then
|
||||
BUILD_VIDEO="video"
|
||||
fi
|
||||
AC_SUBST(BUILD_VIDEO)
|
||||
|
|
Loading…
Reference in a new issue