Changeset d9cb27ecc1614561769129ea3a5b4f9130488a24
- Timestamp:
- 02/29/08 02:43:53
(4 months ago)
- Author:
- Faustino Osuna <riquedafreak@videolan.org>
- git-committer:
- Faustino Osuna <riquedafreak@videolan.org> 1204249433 +0000
- git-parent:
[e00551fba283031fa8e4036eb044c640cfdb64be]
- git-author:
- Faustino Osuna <riquedafreak@videolan.org> 1204249433 +0000
- Message:
Too many problems with new ffmpeg detection, reverting to last known good (rev 25403).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re00551f |
rd9cb27e |
|
| 3059 | 3059 | CPPFLAGS="${CPPFLAGS} ${FFMPEG_CFLAGS}" |
|---|
| 3060 | 3060 | CFLAGS="${CFLAGS} ${FFMPEG_CFLAGS}" |
|---|
| 3061 | | AC_CHECK_HEADERS(libavcodec/avcodec.h ffmpeg/avcodec.h) |
|---|
| 3062 | | AC_CHECK_HEADERS(libavformat/avformat.h ffmpeg/avformat.h) |
|---|
| 3063 | | AC_CHECK_HEADERS(libavutil/avutil.h ffmpeg/avformat.h) |
|---|
| 3064 | | |
|---|
| | 3061 | AC_CHECK_HEADERS(ffmpeg/avcodec.h, [], [AC_MSG_ERROR([Missing header file ffmpeg/avcodec.h.])] ) |
|---|
| | 3062 | AC_CHECK_HEADERS(ffmpeg/avformat.h, [], [AC_MSG_ERROR([Missing header file ffmpeg/avformat.h.])] ) |
|---|
| | 3063 | AC_CHECK_HEADERS(ffmpeg/avutil.h, [], [AC_MSG_ERROR([Missing header file ffmpeg/avutil.h.])] ) |
|---|
| 3065 | 3064 | dnl newer ffmpeg have a separate libpostproc |
|---|
| 3066 | 3065 | PKG_CHECK_MODULES(POSTPROC, libpostproc,[ |
|---|
| … | … | |
| 3070 | 3069 | CPPFLAGS="${CPPFLAGS} ${POSTPROC_CFLAGS}" |
|---|
| 3071 | 3070 | CFLAGS="${CFLAGS} ${POSTPROC_CFLAGS}" |
|---|
| 3072 | | AC_CHECK_HEADERS(postproc/postprocess.h) |
|---|
| | 3071 | AC_CHECK_HEADERS(postproc/postprocess.h, [], [AC_MSG_ERROR([Missing header file postproc/postprocess.h.])] ) |
|---|
| 3073 | 3072 | if test "${SYS}" = "darwin"; then |
|---|
| 3074 | 3073 | VLC_ADD_BUILTINS([ffmpeg]) |
|---|
| … | … | |
| 3090 | 3089 | VLC_ADD_CFLAGS([ffmpeg],[${SWSCALE_CFLAGS}]) |
|---|
| 3091 | 3090 | VLC_ADD_LIBS([ffmpeg],[${SWSCALE_LIBS}]) |
|---|
| | 3091 | dnl AC_CHECK_HEADERS(ffmpeg/swscale.h, [], [AC_MSG_ERROR([Missing header file ffmpeg/swscale.h.])]) |
|---|
| 3092 | 3092 | AC_CHECK_LIB(swscale, sws_getContext, |
|---|
| 3093 | | [AC_CHECK_HEADERS([ffmpeg/avutil.h libavutil/avutil.h ffmpeg/swscale.h libswscale/swscale.h])],[],[-lavutil -lm]) |
|---|
| | 3093 | [AC_CHECK_HEADERS([ffmpeg/avutil.h, ffmpeg/swscale.h])],[],[-lavutil -lm]) |
|---|
| 3094 | 3094 | ],[ true ]) |
|---|
| 3095 | 3095 | VLC_RESTORE_FLAGS |
|---|
| … | … | |
| 3101 | 3101 | CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_ffmpeg}" |
|---|
| 3102 | 3102 | LDFLAGS="${LDFLAGS_save} ${LDFLAGS_ffmpeg} ${LIBS_ffmpeg}" |
|---|
| 3103 | | AC_CHECK_HEADERS(libavcodec/avcodec.h ffmpeg/avcodec.h) |
|---|
| 3104 | | AC_CHECK_HEADERS(libavformat/avformat.h ffmpeg/avformat.h) |
|---|
| 3105 | | AC_CHECK_HEADERS(libavutil/avutil.h ffmpeg/avutil.h) |
|---|
| 3106 | | AC_CHECK_HEADERS(postproc/postprocess.h) |
|---|
| | 3103 | AC_CHECK_HEADERS(ffmpeg/avcodec.h, [], [AC_MSG_ERROR([Missing header file ffmpeg/avcodec.h.])] ) |
|---|
| | 3104 | AC_CHECK_HEADERS(ffmpeg/avformat.h) |
|---|
| | 3105 | AC_CHECK_HEADERS(ffmpeg/avutil.h) |
|---|
| | 3106 | AC_CHECK_HEADERS(postproc/postprocess.h, [], [AC_MSG_ERROR([Missing header file postproc/postprocess.h.])] ) |
|---|
| 3107 | 3107 | |
|---|
| 3108 | 3108 | AC_CHECK_LIB(avutil, av_crc_init, [ |
|---|
| … | … | |
| 3129 | 3129 | |
|---|
| 3130 | 3130 | AC_CHECK_LIB(swscale, sws_getContext, [ |
|---|
| 3131 | | AC_CHECK_HEADERS(libswscale/swscale.h ffmpeg/swscale.h) |
|---|
| | 3131 | AC_CHECK_HEADERS(ffmpeg/swscale.h) |
|---|
| 3132 | 3132 | VLC_ADD_LIBS([ffmpeg],[-lswscale]) ], [], [-lavcodec $LDAVUTIL]) |
|---|
| 3133 | 3133 | LDFLAGS="${LDFLAGS_save}" |
|---|
| 3134 | 3134 | CPPFLAGS="${CPPFLAGS_save}" |
|---|
| 3135 | 3135 | ]) |
|---|
| 3136 | | |
|---|
| 3137 | | if test "$ac_cv_header_libavcodec_avcodec_h" = "no" && test "$ac_cv_header_ffmpeg_avcodec_h" = "no"; then |
|---|
| 3138 | | AC_MSG_ERROR([Missing header file libavcodec/avcodec.h.]) |
|---|
| 3139 | | fi |
|---|
| 3140 | | if test "$ac_cv_header_libavformat_avformat_h" = "no" && test $"ac_cv_header_ffmpeg_avformat_h" = "no"; then |
|---|
| 3141 | | AC_MSG_ERROR([Missing header file libavformat/avformat.h.]) |
|---|
| 3142 | | fi |
|---|
| 3143 | | if test "$ac_cv_header_libavutil_avutil_h" = "no" && test "$ac_cv_header_ffmpeg_avutil_h" = "no"; then |
|---|
| 3144 | | AC_MSG_ERROR([Missing header file libavutil/avutil.h.]) |
|---|
| 3145 | | fi |
|---|
| 3146 | | if test "$ac_cv_header_libswscale_swscale_h" = "no" && test "$ac_cv_header_ffmpeg_swscale_h" = "no"; then |
|---|
| 3147 | | AC_MSG_ERROR([Missing header file libswscale/swscale.h.]) |
|---|
| 3148 | | fi |
|---|
| 3149 | 3136 | fi |
|---|
| 3150 | 3137 | fi |
|---|
| re00551f |
rd9cb27e |
|
| 88 | 88 | #cmakedefine HAVE_FAAD_H |
|---|
| 89 | 89 | #cmakedefine HAVE_FCNTL_H |
|---|
| 90 | | #cmakedefine HAVE_FFMPEG_AVCODEC_H |
|---|
| 91 | | #cmakedefine HAVE_FFMPEG_AVFORMAT_H |
|---|
| 92 | | #cmakedefine HAVE_FFMPEG_AVUTIL_H |
|---|
| | 90 | #cmakedefine HAVE_FFMPEG_AVCODEC_H |
|---|
| | 91 | #cmakedefine HAVE_FFMPEG_AVFORMAT_H |
|---|
| | 92 | #cmakedefine HAVE_FFMPEG_AVUTIL_H |
|---|
| | 93 | #cmakedefine HAVE_FFMPEG_AVUTIL_H_ |
|---|
| 93 | 94 | #cmakedefine HAVE_FFMPEG_SWSCALE_H |
|---|
| 94 | | #cmakedefine HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| 95 | | #cmakedefine HAVE_LIBAVFORMAT_AVFORMAT_H |
|---|
| 96 | | #cmakedefine HAVE_LIBAVUTIL_AVUTIL_H |
|---|
| 97 | | #cmakedefine HAVE_LIBSWSCALE_SWSCALE_H |
|---|
| 98 | 95 | #cmakedefine HAVE_FLAC_STREAM_DECODER_H |
|---|
| 99 | 96 | #cmakedefine HAVE_FONTCONFIG_FONTCONFIG_H |
|---|
| re00551f |
rd9cb27e |
|
| 452 | 452 | set( CMAKE_REQUIRED_FLAGS ${FFmpeg_CFLAGS} ) |
|---|
| 453 | 453 | |
|---|
| 454 | | vlc_check_include_files (libavcodec/avcodec.h ffmpeg/avcodec.h) |
|---|
| 455 | | vlc_check_include_files (libavutil/avutil.h ffmpeg/avutil.h) |
|---|
| 456 | | vlc_check_include_files (libswscale/swscale.h ffmpeg/swscale.h) |
|---|
| | 454 | vlc_check_include_files (ffmpeg/avcodec.h) |
|---|
| | 455 | vlc_check_include_files (ffmpeg/avutil.h) |
|---|
| | 456 | vlc_check_include_files (ffmpeg/swscale.h) |
|---|
| | 457 | check_include_files (swscale.h HAVE_LIBSWSCALE_TREE) |
|---|
| 457 | 458 | |
|---|
| 458 | 459 | check_include_files ("stdint.h;postproc/postprocess.h" HAVE_POSTPROC_POSTPROCESS_H) |
|---|
| re00551f |
rd9cb27e |
|
| 36 | 36 | |
|---|
| 37 | 37 | /* ffmpeg header */ |
|---|
| 38 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 39 | | # include <libavcodec/avcodec.h> |
|---|
| 40 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 38 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 41 | 39 | # include <ffmpeg/avcodec.h> |
|---|
| 42 | 40 | #else |
|---|
| re00551f |
rd9cb27e |
|
| 33 | 33 | #include <vlc_vout.h> |
|---|
| 34 | 34 | |
|---|
| 35 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 35 | #if defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 36 | 36 | #include <vlc_filter.h> |
|---|
| 37 | 37 | #endif |
|---|
| 38 | 38 | |
|---|
| 39 | 39 | /* ffmpeg header */ |
|---|
| 40 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 41 | | # include <libavcodec/avcodec.h> |
|---|
| 42 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 40 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 43 | 41 | # include <ffmpeg/avcodec.h> |
|---|
| 44 | 42 | #else |
|---|
| … | … | |
| 48 | 46 | #include "ffmpeg.h" |
|---|
| 49 | 47 | |
|---|
| 50 | | #if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 48 | #if !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 51 | 49 | void E_(InitLibavcodec) ( vlc_object_t *p_object ); |
|---|
| 52 | 50 | static void ChromaConversion( vout_thread_t *, picture_t *, picture_t * ); |
|---|
| … | … | |
| 364 | 362 | } |
|---|
| 365 | 363 | |
|---|
| 366 | | #endif /* !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) */ |
|---|
| | 364 | #endif /* !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) */ |
|---|
| re00551f |
rd9cb27e |
|
| 36 | 36 | |
|---|
| 37 | 37 | /* ffmpeg header */ |
|---|
| 38 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 39 | | # include <libavcodec/avcodec.h> |
|---|
| 40 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 38 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 41 | 39 | # include <ffmpeg/avcodec.h> |
|---|
| 42 | 40 | #else |
|---|
| re00551f |
rd9cb27e |
|
| 37 | 37 | |
|---|
| 38 | 38 | /* ffmpeg header */ |
|---|
| 39 | | #if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) |
|---|
| 40 | | # include <libavformat/avformat.h> |
|---|
| 41 | | #elif defined(HAVE_FFMPEG_AVFORMAT_H) |
|---|
| | 39 | #ifdef HAVE_FFMPEG_AVFORMAT_H |
|---|
| 42 | 40 | # include <ffmpeg/avformat.h> |
|---|
| 43 | 41 | #elif defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| … | … | |
| 50 | 48 | |
|---|
| 51 | 49 | /* Version checking */ |
|---|
| 52 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 50 | #if defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| 53 | 51 | |
|---|
| 54 | 52 | /***************************************************************************** |
|---|
| … | … | |
| 504 | 502 | } |
|---|
| 505 | 503 | |
|---|
| 506 | | #endif /* HAVE_LIBAVFORMAT_AVFORMAT_H */ |
|---|
| | 504 | #endif /* HAVE_FFMPEG_AVFORMAT_H */ |
|---|
| re00551f |
rd9cb27e |
|
| 42 | 42 | /* ffmpeg header */ |
|---|
| 43 | 43 | #define HAVE_MMX 1 |
|---|
| 44 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 45 | | # include <libavcodec/avcodec.h> |
|---|
| 46 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 44 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 47 | 45 | # include <ffmpeg/avcodec.h> |
|---|
| 48 | 46 | #else |
|---|
| re00551f |
rd9cb27e |
|
| 35 | 35 | /* ffmpeg header */ |
|---|
| 36 | 36 | #define HAVE_MMX 1 |
|---|
| 37 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 38 | | # include <libavcodec/avcodec.h> |
|---|
| 39 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 37 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 40 | 38 | # include <ffmpeg/avcodec.h> |
|---|
| 41 | 39 | #else |
|---|
| … | … | |
| 77 | 75 | static const char *enc_hq_list_text[] = { N_("rd"), N_("bits"), N_("simple") }; |
|---|
| 78 | 76 | |
|---|
| 79 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 77 | #if defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 80 | 78 | static int pi_mode_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 }; |
|---|
| 81 | 79 | static const char *ppsz_mode_descriptions[] = |
|---|
| … | … | |
| 199 | 197 | ENC_CHROMA_ELIM_TEXT, ENC_CHROMA_ELIM_LONGTEXT, VLC_TRUE ); |
|---|
| 200 | 198 | |
|---|
| 201 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 199 | #if defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| 202 | 200 | /* demux submodule */ |
|---|
| 203 | 201 | add_submodule(); |
|---|
| … | … | |
| 215 | 213 | #endif |
|---|
| 216 | 214 | |
|---|
| 217 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 215 | #if defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 218 | 216 | /* video filter submodule */ |
|---|
| 219 | 217 | add_submodule(); |
|---|
| re00551f |
rd9cb27e |
|
| 35 | 35 | |
|---|
| 36 | 36 | /* ffmpeg header */ |
|---|
| 37 | | #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H |
|---|
| 38 | | # include <libavformat/avformat.h> |
|---|
| | 37 | #ifdef HAVE_FFMPEG_AVFORMAT_H |
|---|
| | 38 | # include <ffmpeg/avformat.h> |
|---|
| 39 | 39 | #elif defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| 40 | 40 | # include <avformat.h> |
|---|
| … | … | |
| 46 | 46 | |
|---|
| 47 | 47 | /* Version checking */ |
|---|
| 48 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 48 | #if defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| 49 | 49 | |
|---|
| 50 | 50 | static const char *ppsz_mux_options[] = { |
|---|
| … | … | |
| 506 | 506 | } |
|---|
| 507 | 507 | |
|---|
| 508 | | #endif /* HAVE_LIBAVFORMAT_AVFORMAT_H */ |
|---|
| | 508 | #endif /* HAVE_FFMPEG_AVFORMAT_H */ |
|---|
| re00551f |
rd9cb27e |
|
| 32 | 32 | |
|---|
| 33 | 33 | /* ffmpeg header */ |
|---|
| 34 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 35 | | # include <libavcodec/avcodec.h> |
|---|
| 36 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 34 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 37 | 35 | # include <ffmpeg/avcodec.h> |
|---|
| 38 | 36 | #else |
|---|
| re00551f |
rd9cb27e |
|
| 35 | 35 | |
|---|
| 36 | 36 | /* ffmpeg headers */ |
|---|
| 37 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 38 | | # include <libavcodec/avcodec.h> |
|---|
| 39 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 37 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 40 | 38 | # include <ffmpeg/avcodec.h> |
|---|
| 41 | 39 | #else |
|---|
| … | … | |
| 43 | 41 | #endif |
|---|
| 44 | 42 | |
|---|
| 45 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) |
|---|
| 46 | | # include <libswscale/swscale.h> |
|---|
| 47 | | #elif defined(HAVE_FFMPEG_H) |
|---|
| | 43 | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| 48 | 44 | # include <ffmpeg/swscale.h> |
|---|
| 49 | 45 | #elif defined(HAVE_LIBSWSCALE_TREE) |
|---|
| … | … | |
| 54 | 50 | |
|---|
| 55 | 51 | /* Version checking */ |
|---|
| 56 | | #if ( (defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) && (LIBSWSCALE_VERSION_INT >= ((0<<16)+(5<<8)+0)) ) |
|---|
| | 52 | #if ( (defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) && (LIBSWSCALE_VERSION_INT >= ((0<<16)+(5<<8)+0)) ) |
|---|
| 57 | 53 | |
|---|
| 58 | 54 | /***************************************************************************** |
|---|
| re00551f |
rd9cb27e |
|
| 36 | 36 | |
|---|
| 37 | 37 | /* ffmpeg header */ |
|---|
| 38 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 39 | | # include <libavcodec/avcodec.h> |
|---|
| 40 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 38 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 41 | 39 | # include <ffmpeg/avcodec.h> |
|---|
| 42 | 40 | #else |
|---|
| … | … | |
| 846 | 844 | dest_pic.linesize[i] = p_pic->p[i].i_pitch; |
|---|
| 847 | 845 | } |
|---|
| 848 | | #if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 846 | #if !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 849 | 847 | img_convert( &dest_pic, PIX_FMT_YUV420P, |
|---|
| 850 | 848 | (AVPicture *)p_ff_pic, |
|---|
| re00551f |
rd9cb27e |
|
| 36 | 36 | |
|---|
| 37 | 37 | /* ffmpeg header */ |
|---|
| 38 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 39 | | # include <libavcodec/avcodec.h> |
|---|
| 40 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 38 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 41 | 39 | # include <ffmpeg/avcodec.h> |
|---|
| 42 | 40 | #else |
|---|
| … | … | |
| 46 | 44 | #include "ffmpeg.h" |
|---|
| 47 | 45 | |
|---|
| 48 | | #if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 46 | #if !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 49 | 47 | void E_(InitLibavcodec) ( vlc_object_t *p_object ); |
|---|
| 50 | 48 | static int CheckInit( filter_t *p_filter ); |
|---|
| … | … | |
| 569 | 567 | return p_pic_dst; |
|---|
| 570 | 568 | } |
|---|
| 571 | | #endif /* ( (defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) */ |
|---|
| | 569 | #endif /* ( (defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) */ |
|---|
| re00551f |
rd9cb27e |
|
| 137 | 137 | |
|---|
| 138 | 138 | /* Misc */ |
|---|
| 139 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) |
|---|
| | 139 | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| 140 | 140 | image_handler_t *p_image; |
|---|
| 141 | 141 | #endif |
|---|
| … | … | |
| 182 | 182 | memset( p_sys, 0, sizeof(decoder_sys_t) ); |
|---|
| 183 | 183 | |
|---|
| 184 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) |
|---|
| | 184 | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| 185 | 185 | p_sys->p_image = image_HandlerCreate( VLC_OBJECT(p_dec) ); |
|---|
| 186 | 186 | if( !p_sys->p_image ) |
|---|
| … | … | |
| 226 | 226 | p_dec->fmt_out.video.i_chroma = VLC_FOURCC('T','E','X','T'); |
|---|
| 227 | 227 | else |
|---|
| 228 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) |
|---|
| | 228 | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| 229 | 229 | p_dec->fmt_out.video.i_chroma = VLC_FOURCC('Y','U','V','A'); |
|---|
| 230 | 230 | #else |
|---|
| … | … | |
| 247 | 247 | var_DelCallback( p_dec, "vbi-opaque", Opaque, p_sys ); |
|---|
| 248 | 248 | |
|---|
| 249 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) |
|---|
| | 249 | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| 250 | 250 | if( p_sys->p_image ) image_HandlerDelete( p_sys->p_image ); |
|---|
| 251 | 251 | #endif |
|---|
| … | … | |
| 324 | 324 | memset( &fmt, 0, sizeof(video_format_t) ); |
|---|
| 325 | 325 | fmt.i_chroma = p_sys->b_text ? VLC_FOURCC('T','E','X','T') : |
|---|
| 326 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) |
|---|
| | 326 | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| 327 | 327 | VLC_FOURCC('Y','U','V','A'); |
|---|
| 328 | 328 | #else |
|---|
| … | … | |
| 384 | 384 | else |
|---|
| 385 | 385 | { |
|---|
| 386 | | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) |
|---|
| | 386 | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| 387 | 387 | video_format_t fmt_in; |
|---|
| 388 | 388 | picture_t *p_pic, *p_dest; |
|---|
| re00551f |
rd9cb27e |
|
| 39 | 39 | |
|---|
| 40 | 40 | #define HAVE_MMX |
|---|
| 41 | | #if defined(HAVE_LIBAVCODEC_AVCODEC_H) |
|---|
| 42 | | # include <libavcodec/avcodec.h> |
|---|
| 43 | | #elif defined(HAVE_FFMPEG_AVCODEC_H) |
|---|
| | 41 | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 44 | 42 | # include <ffmpeg/avcodec.h> |
|---|
| 45 | 43 | #else |
|---|