Changeset 9f3fa003d56eabc422a858abdddbb6ca81eb082a
- Timestamp:
- 29/02/08 00:05:29
(8 months ago)
- Author:
- Faustino Osuna <riquedafreak@videolan.org>
- git-committer:
- Faustino Osuna <riquedafreak@videolan.org> 1204239929 +0000
- git-parent:
[4d898349f259a9f0063d38dd2e3e2c6757dd16db]
- git-author:
- Faustino Osuna <riquedafreak@videolan.org> 1204239929 +0000
- Message:
Update references to ffmpeg header files to match new directory structure. All ffmpeg headers should now be accessed through:
* <libpostprocess/postprocess.h>
* <libswscale/swscale.h>
* <libavutil/avutil.h>
* <libavcodec/avcodec.h>
* <libavformat/avformat.h>
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r67ddda1 |
r9f3fa00 |
|
| 3059 | 3059 | CPPFLAGS="${CPPFLAGS} ${FFMPEG_CFLAGS}" |
|---|
| 3060 | 3060 | CFLAGS="${CFLAGS} ${FFMPEG_CFLAGS}" |
|---|
| 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.])] ) |
|---|
| | 3061 | AC_CHECK_HEADERS(libavcodec/avcodec.h, [], [AC_MSG_ERROR([Missing header file libavcodec/avcodec.h.])] ) |
|---|
| | 3062 | AC_CHECK_HEADERS(libavformat/avformat.h, [], [AC_MSG_ERROR([Missing header file libavformat/avformat.h.])] ) |
|---|
| | 3063 | AC_CHECK_HEADERS(libavutil/avutil.h, [], [AC_MSG_ERROR([Missing header file libavutil/avutil.h.])] ) |
|---|
| 3064 | 3064 | dnl newer ffmpeg have a separate libpostproc |
|---|
| 3065 | 3065 | PKG_CHECK_MODULES(POSTPROC, libpostproc,[ |
|---|
| … | … | |
| 3069 | 3069 | CPPFLAGS="${CPPFLAGS} ${POSTPROC_CFLAGS}" |
|---|
| 3070 | 3070 | CFLAGS="${CFLAGS} ${POSTPROC_CFLAGS}" |
|---|
| 3071 | | AC_CHECK_HEADERS(postproc/postprocess.h, [], [AC_MSG_ERROR([Missing header file postproc/postprocess.h.])] ) |
|---|
| | 3071 | AC_CHECK_HEADERS(libpostproc/postprocess.h, [], [AC_MSG_ERROR([Missing header file libpostproc/postprocess.h.])] ) |
|---|
| 3072 | 3072 | if test "${SYS}" = "darwin"; then |
|---|
| 3073 | 3073 | VLC_ADD_BUILTINS([ffmpeg]) |
|---|
| … | … | |
| 3089 | 3089 | VLC_ADD_CFLAGS([ffmpeg],[${SWSCALE_CFLAGS}]) |
|---|
| 3090 | 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 | 3091 | AC_CHECK_LIB(swscale, sws_getContext, |
|---|
| 3093 | | [AC_CHECK_HEADERS([ffmpeg/avutil.h, ffmpeg/swscale.h])],[],[-lavutil -lm]) |
|---|
| | 3092 | [AC_CHECK_HEADERS([libavutil/avutil.h libswscale/swscale.h])],[],[-lavutil -lm]) |
|---|
| 3094 | 3093 | ],[ true ]) |
|---|
| 3095 | 3094 | VLC_RESTORE_FLAGS |
|---|
| … | … | |
| 3101 | 3100 | CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_ffmpeg}" |
|---|
| 3102 | 3101 | LDFLAGS="${LDFLAGS_save} ${LDFLAGS_ffmpeg} ${LIBS_ffmpeg}" |
|---|
| 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.])] ) |
|---|
| | 3102 | AC_CHECK_HEADERS(libavcodec/avcodec.h, [], [AC_MSG_ERROR([Missing header file libavcodec/avcodec.h.])] ) |
|---|
| | 3103 | AC_CHECK_HEADERS(libavformat/avformat.h) |
|---|
| | 3104 | AC_CHECK_HEADERS(libavutil/avutil.h) |
|---|
| | 3105 | AC_CHECK_HEADERS(libpostproc/postprocess.h, [], [AC_MSG_ERROR([Missing header file libpostproc/postprocess.h.])] ) |
|---|
| 3107 | 3106 | |
|---|
| 3108 | 3107 | AC_CHECK_LIB(avutil, av_crc_init, [ |
|---|
| … | … | |
| 3129 | 3128 | |
|---|
| 3130 | 3129 | AC_CHECK_LIB(swscale, sws_getContext, [ |
|---|
| 3131 | | AC_CHECK_HEADERS(ffmpeg/swscale.h) |
|---|
| | 3130 | AC_CHECK_HEADERS(libswscale/swscale.h) |
|---|
| 3132 | 3131 | VLC_ADD_LIBS([ffmpeg],[-lswscale]) ], [], [-lavcodec $LDAVUTIL]) |
|---|
| 3133 | 3132 | LDFLAGS="${LDFLAGS_save}" |
|---|
| rce1cf0e |
r9f3fa00 |
|
| 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 |
|---|
| 93 | | #cmakedefine HAVE_FFMPEG_AVUTIL_H_ |
|---|
| 94 | | #cmakedefine HAVE_FFMPEG_SWSCALE_H |
|---|
| | 90 | #cmakedefine HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 91 | #cmakedefine HAVE_LIBAVFORMAT_AVFORMAT_H |
|---|
| | 92 | #cmakedefine HAVE_LIBAVUTIL_AVUTIL_H |
|---|
| | 93 | #cmakedefine HAVE_LIBSWSCALE_SWSCALE_H |
|---|
| 95 | 94 | #cmakedefine HAVE_FLAC_STREAM_DECODER_H |
|---|
| 96 | 95 | #cmakedefine HAVE_FONTCONFIG_FONTCONFIG_H |
|---|
| reaccd9e |
r9f3fa00 |
|
| 452 | 452 | set( CMAKE_REQUIRED_FLAGS ${FFmpeg_CFLAGS} ) |
|---|
| 453 | 453 | |
|---|
| 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) |
|---|
| | 454 | vlc_check_include_files (libavcodec/avcodec.h) |
|---|
| | 455 | vlc_check_include_files (libavutil/avutil.h) |
|---|
| | 456 | vlc_check_include_files (libswscale/swscale.h) |
|---|
| 458 | 457 | |
|---|
| 459 | 458 | check_include_files ("stdint.h;postproc/postprocess.h" HAVE_POSTPROC_POSTPROCESS_H) |
|---|
| r079a181 |
r9f3fa00 |
|
| 36 | 36 | |
|---|
| 37 | 37 | /* ffmpeg header */ |
|---|
| 38 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 39 | | # include <ffmpeg/avcodec.h> |
|---|
| | 38 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 39 | # include <libavcodec/avcodec.h> |
|---|
| 40 | 40 | #else |
|---|
| 41 | 41 | # include <avcodec.h> |
|---|
| ra78e273 |
r9f3fa00 |
|
| 33 | 33 | #include <vlc_vout.h> |
|---|
| 34 | 34 | |
|---|
| 35 | | #if defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 35 | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 36 | 36 | #include <vlc_filter.h> |
|---|
| 37 | 37 | #endif |
|---|
| 38 | 38 | |
|---|
| 39 | 39 | /* ffmpeg header */ |
|---|
| 40 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 41 | | # include <ffmpeg/avcodec.h> |
|---|
| | 40 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 41 | # include <libavcodec/avcodec.h> |
|---|
| 42 | 42 | #else |
|---|
| 43 | 43 | # include <avcodec.h> |
|---|
| … | … | |
| 46 | 46 | #include "ffmpeg.h" |
|---|
| 47 | 47 | |
|---|
| 48 | | #if !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 48 | #if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 49 | 49 | void E_(InitLibavcodec) ( vlc_object_t *p_object ); |
|---|
| 50 | 50 | static void ChromaConversion( vout_thread_t *, picture_t *, picture_t * ); |
|---|
| … | … | |
| 362 | 362 | } |
|---|
| 363 | 363 | |
|---|
| 364 | | #endif /* !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) */ |
|---|
| | 364 | #endif /* !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) */ |
|---|
| r99fab90 |
r9f3fa00 |
|
| 36 | 36 | |
|---|
| 37 | 37 | /* ffmpeg header */ |
|---|
| 38 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 39 | | # include <ffmpeg/avcodec.h> |
|---|
| | 38 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 39 | # include <libavcodec/avcodec.h> |
|---|
| 40 | 40 | #else |
|---|
| 41 | 41 | # include <avcodec.h> |
|---|
| r99fab90 |
r9f3fa00 |
|
| 37 | 37 | |
|---|
| 38 | 38 | /* ffmpeg header */ |
|---|
| 39 | | #ifdef HAVE_FFMPEG_AVFORMAT_H |
|---|
| 40 | | # include <ffmpeg/avformat.h> |
|---|
| | 39 | #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H |
|---|
| | 40 | # include <libavformat/avformat.h> |
|---|
| 41 | 41 | #elif defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| 42 | 42 | # include <avformat.h> |
|---|
| … | … | |
| 48 | 48 | |
|---|
| 49 | 49 | /* Version checking */ |
|---|
| 50 | | #if defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| | 50 | #if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| 51 | 51 | |
|---|
| 52 | 52 | /***************************************************************************** |
|---|
| … | … | |
| 502 | 502 | } |
|---|
| 503 | 503 | |
|---|
| 504 | | #endif /* HAVE_FFMPEG_AVFORMAT_H */ |
|---|
| | 504 | #endif /* HAVE_LIBAVFORMAT_AVFORMAT_H */ |
|---|
| ra78e273 |
r9f3fa00 |
|
| 42 | 42 | /* ffmpeg header */ |
|---|
| 43 | 43 | #define HAVE_MMX 1 |
|---|
| 44 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 45 | | # include <ffmpeg/avcodec.h> |
|---|
| | 44 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 45 | # include <libavcodec/avcodec.h> |
|---|
| 46 | 46 | #else |
|---|
| 47 | 47 | # include <avcodec.h> |
|---|
| r99fab90 |
r9f3fa00 |
|
| 35 | 35 | /* ffmpeg header */ |
|---|
| 36 | 36 | #define HAVE_MMX 1 |
|---|
| 37 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 38 | | # include <ffmpeg/avcodec.h> |
|---|
| | 37 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 38 | # include <libavcodec/avcodec.h> |
|---|
| 39 | 39 | #else |
|---|
| 40 | 40 | # include <avcodec.h> |
|---|
| … | … | |
| 75 | 75 | static const char *enc_hq_list_text[] = { N_("rd"), N_("bits"), N_("simple") }; |
|---|
| 76 | 76 | |
|---|
| 77 | | #if defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 77 | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 78 | 78 | static int pi_mode_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 }; |
|---|
| 79 | 79 | static const char *ppsz_mode_descriptions[] = |
|---|
| … | … | |
| 197 | 197 | ENC_CHROMA_ELIM_TEXT, ENC_CHROMA_ELIM_LONGTEXT, VLC_TRUE ); |
|---|
| 198 | 198 | |
|---|
| 199 | | #if defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| | 199 | #if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| 200 | 200 | /* demux submodule */ |
|---|
| 201 | 201 | add_submodule(); |
|---|
| … | … | |
| 213 | 213 | #endif |
|---|
| 214 | 214 | |
|---|
| 215 | | #if defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 215 | #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 216 | 216 | /* video filter submodule */ |
|---|
| 217 | 217 | add_submodule(); |
|---|
| rbc4789a |
r9f3fa00 |
|
| 35 | 35 | |
|---|
| 36 | 36 | /* ffmpeg header */ |
|---|
| 37 | | #ifdef HAVE_FFMPEG_AVFORMAT_H |
|---|
| 38 | | # include <ffmpeg/avformat.h> |
|---|
| | 37 | #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H |
|---|
| | 38 | # include <libavformat/avformat.h> |
|---|
| 39 | 39 | #elif defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| 40 | 40 | # include <avformat.h> |
|---|
| … | … | |
| 46 | 46 | |
|---|
| 47 | 47 | /* Version checking */ |
|---|
| 48 | | #if defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| | 48 | #if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) |
|---|
| 49 | 49 | |
|---|
| 50 | 50 | static const char *ppsz_mux_options[] = { |
|---|
| … | … | |
| 506 | 506 | } |
|---|
| 507 | 507 | |
|---|
| 508 | | #endif /* HAVE_FFMPEG_AVFORMAT_H */ |
|---|
| | 508 | #endif /* HAVE_LIBAVFORMAT_AVFORMAT_H */ |
|---|
| r079a181 |
r9f3fa00 |
|
| 32 | 32 | |
|---|
| 33 | 33 | /* ffmpeg header */ |
|---|
| 34 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 35 | | # include <ffmpeg/avcodec.h> |
|---|
| | 34 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 35 | # include <libavcodec/avcodec.h> |
|---|
| 36 | 36 | #else |
|---|
| 37 | 37 | # include <avcodec.h> |
|---|
| r3235f03 |
r9f3fa00 |
|
| 35 | 35 | |
|---|
| 36 | 36 | /* ffmpeg headers */ |
|---|
| 37 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 38 | | # include <ffmpeg/avcodec.h> |
|---|
| | 37 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 38 | # include <libavcodec/avcodec.h> |
|---|
| 39 | 39 | #else |
|---|
| 40 | 40 | # include <avcodec.h> |
|---|
| 41 | 41 | #endif |
|---|
| 42 | 42 | |
|---|
| 43 | | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| 44 | | # include <ffmpeg/swscale.h> |
|---|
| | 43 | #ifdef HAVE_LIBSWSCALE_SWSCALE_H |
|---|
| | 44 | # include <libswscale/swscale.h> |
|---|
| 45 | 45 | #elif defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 46 | 46 | # include <swscale.h> |
|---|
| … | … | |
| 50 | 50 | |
|---|
| 51 | 51 | /* Version checking */ |
|---|
| 52 | | #if ( (defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) && (LIBSWSCALE_VERSION_INT >= ((0<<16)+(5<<8)+0)) ) |
|---|
| | 52 | #if ( (defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) && (LIBSWSCALE_VERSION_INT >= ((0<<16)+(5<<8)+0)) ) |
|---|
| 53 | 53 | |
|---|
| 54 | 54 | /***************************************************************************** |
|---|
| r079a181 |
r9f3fa00 |
|
| 36 | 36 | |
|---|
| 37 | 37 | /* ffmpeg header */ |
|---|
| 38 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 39 | | # include <ffmpeg/avcodec.h> |
|---|
| | 38 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 39 | # include <libavcodec/avcodec.h> |
|---|
| 40 | 40 | #else |
|---|
| 41 | 41 | # include <avcodec.h> |
|---|
| … | … | |
| 844 | 844 | dest_pic.linesize[i] = p_pic->p[i].i_pitch; |
|---|
| 845 | 845 | } |
|---|
| 846 | | #if !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 846 | #if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 847 | 847 | img_convert( &dest_pic, PIX_FMT_YUV420P, |
|---|
| 848 | 848 | (AVPicture *)p_ff_pic, |
|---|
| rd6ec770 |
r9f3fa00 |
|
| 36 | 36 | |
|---|
| 37 | 37 | /* ffmpeg header */ |
|---|
| 38 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| 39 | | # include <ffmpeg/avcodec.h> |
|---|
| | 38 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| | 39 | # include <libavcodec/avcodec.h> |
|---|
| 40 | 40 | #else |
|---|
| 41 | 41 | # include <avcodec.h> |
|---|
| … | … | |
| 44 | 44 | #include "ffmpeg.h" |
|---|
| 45 | 45 | |
|---|
| 46 | | #if !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| | 46 | #if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) |
|---|
| 47 | 47 | void E_(InitLibavcodec) ( vlc_object_t *p_object ); |
|---|
| 48 | 48 | static int CheckInit( filter_t *p_filter ); |
|---|
| … | … | |
| 567 | 567 | return p_pic_dst; |
|---|
| 568 | 568 | } |
|---|
| 569 | | #endif /* ( (defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) */ |
|---|
| | 569 | #endif /* ( (defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) */ |
|---|
| r99fab90 |
r9f3fa00 |
|
| 137 | 137 | |
|---|
| 138 | 138 | /* Misc */ |
|---|
| 139 | | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| | 139 | #ifdef HAVE_LIBSWSCALE_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 | | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| | 184 | #ifdef HAVE_LIBSWSCALE_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 | | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| | 228 | #ifdef HAVE_LIBSWSCALE_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 | | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| | 249 | #ifdef HAVE_LIBSWSCALE_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 | | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| | 326 | #ifdef HAVE_LIBSWSCALE_SWSCALE_H |
|---|
| 327 | 327 | VLC_FOURCC('Y','U','V','A'); |
|---|
| 328 | 328 | #else |
|---|
| … | … | |
| 384 | 384 | else |
|---|
| 385 | 385 | { |
|---|
| 386 | | #ifdef HAVE_FFMPEG_SWSCALE_H |
|---|
| | 386 | #ifdef HAVE_LIBSWSCALE_SWSCALE_H |
|---|
| 387 | 387 | video_format_t fmt_in; |
|---|
| 388 | 388 | picture_t *p_pic, *p_dest; |
|---|
| r99fab90 |
r9f3fa00 |
|
| 39 | 39 | |
|---|
| 40 | 40 | #define HAVE_MMX |
|---|
| 41 | | #ifdef HAVE_FFMPEG_AVCODEC_H |
|---|
| | 41 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
|---|
| 42 | 42 | # include <ffmpeg/avcodec.h> |
|---|
| 43 | 43 | #else |
|---|