Commit db7b9410 authored by Rafaël Carré's avatar Rafaël Carré

Remove unused HAVE_XXXX_{SWSCALE,FFMPEG}_TREE defines

parent c43e9879
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc_vout.h> #include <vlc_vout.h>
#if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H)
#include <vlc_filter.h> #include <vlc_filter.h>
#endif #endif
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
#include "ffmpeg.h" #include "ffmpeg.h"
#if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) #if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H)
void InitLibavcodec ( vlc_object_t *p_object ); void InitLibavcodec ( vlc_object_t *p_object );
static void ChromaConversion( vout_thread_t *, picture_t *, picture_t * ); static void ChromaConversion( vout_thread_t *, picture_t *, picture_t * );
...@@ -363,4 +363,4 @@ void CloseChroma( vlc_object_t *p_this ) ...@@ -363,4 +363,4 @@ void CloseChroma( vlc_object_t *p_this )
free( p_vout->chroma.p_sys ); free( p_vout->chroma.p_sys );
} }
#endif /* !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) */ #endif /* !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H) */
...@@ -40,8 +40,6 @@ ...@@ -40,8 +40,6 @@
# include <libavformat/avformat.h> # include <libavformat/avformat.h>
#elif defined(HAVE_FFMPEG_AVFORMAT_H) #elif defined(HAVE_FFMPEG_AVFORMAT_H)
# include <ffmpeg/avformat.h> # include <ffmpeg/avformat.h>
#elif defined(HAVE_LIBAVFORMAT_TREE)
# include <avformat.h>
#endif #endif
#include "ffmpeg.h" #include "ffmpeg.h"
...@@ -49,7 +47,7 @@ ...@@ -49,7 +47,7 @@
//#define AVFORMAT_DEBUG 1 //#define AVFORMAT_DEBUG 1
/* Version checking */ /* Version checking */
#if defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) #if defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_AVFORMAT_H)
/***************************************************************************** /*****************************************************************************
* demux_sys_t: demux descriptor * demux_sys_t: demux descriptor
......
...@@ -79,7 +79,7 @@ static const char *enc_hq_list[] = { "rd", "bits", "simple" }; ...@@ -79,7 +79,7 @@ static const char *enc_hq_list[] = { "rd", "bits", "simple" };
static const char *enc_hq_list_text[] = { N_("rd"), N_("bits"), N_("simple") }; static const char *enc_hq_list_text[] = { N_("rd"), N_("bits"), N_("simple") };
#endif #endif
#if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H)
static int pi_mode_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 }; static int pi_mode_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 };
static const char *ppsz_mode_descriptions[] = static const char *ppsz_mode_descriptions[] =
{ N_("Fast bilinear"), N_("Bilinear"), N_("Bicubic (good quality)"), { N_("Fast bilinear"), N_("Bilinear"), N_("Bicubic (good quality)"),
...@@ -209,7 +209,7 @@ vlc_module_begin(); ...@@ -209,7 +209,7 @@ vlc_module_begin();
#endif #endif
#endif /* ENABLE_SOUT */ #endif /* ENABLE_SOUT */
#if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) #if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(HAVE_FFMPEG_AVFORMAT_H)
/* demux submodule */ /* demux submodule */
add_submodule(); add_submodule();
...@@ -228,7 +228,7 @@ vlc_module_begin(); ...@@ -228,7 +228,7 @@ vlc_module_begin();
#endif #endif
#endif #endif
#if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) #if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H)
/* video filter submodule */ /* video filter submodule */
add_submodule(); add_submodule();
set_description( N_("Video scaling filter") ); set_description( N_("Video scaling filter") );
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
# include <libavformat/avformat.h> # include <libavformat/avformat.h>
#elif defined(HAVE_FFMPEG_AVFORMAT_H) #elif defined(HAVE_FFMPEG_AVFORMAT_H)
# include <ffmpeg/avformat.h> # include <ffmpeg/avformat.h>
#elif defined(HAVE_LIBAVFORMAT_TREE)
# include <avformat.h>
#endif #endif
#include "ffmpeg.h" #include "ffmpeg.h"
...@@ -47,7 +45,7 @@ ...@@ -47,7 +45,7 @@
//#define AVFORMAT_DEBUG 1 //#define AVFORMAT_DEBUG 1
/* Version checking */ /* Version checking */
#if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(HAVE_FFMPEG_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE) #if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(HAVE_FFMPEG_AVFORMAT_H)
static const char *ppsz_mux_options[] = { static const char *ppsz_mux_options[] = {
"mux", NULL "mux", NULL
......
...@@ -46,14 +46,12 @@ ...@@ -46,14 +46,12 @@
# include <libswscale/swscale.h> # include <libswscale/swscale.h>
#elif defined(HAVE_FFMPEG_SWSCALE_H) #elif defined(HAVE_FFMPEG_SWSCALE_H)
# include <ffmpeg/swscale.h> # include <ffmpeg/swscale.h>
#elif defined(HAVE_LIBSWSCALE_TREE)
# include <swscale.h>
#endif #endif
#include "ffmpeg.h" #include "ffmpeg.h"
/* Version checking */ /* Version checking */
#if ( (defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) && (LIBSWSCALE_VERSION_INT >= ((0<<16)+(5<<8)+0)) ) #if ( (defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H)) && (LIBSWSCALE_VERSION_INT >= ((0<<16)+(5<<8)+0)) )
/***************************************************************************** /*****************************************************************************
* filter_sys_t : filter descriptor * filter_sys_t : filter descriptor
......
...@@ -869,7 +869,7 @@ static void ffmpeg_CopyPicture( decoder_t *p_dec, ...@@ -869,7 +869,7 @@ static void ffmpeg_CopyPicture( decoder_t *p_dec,
dest_pic.data[i] = p_pic->p[i].p_pixels; dest_pic.data[i] = p_pic->p[i].p_pixels;
dest_pic.linesize[i] = p_pic->p[i].i_pitch; dest_pic.linesize[i] = p_pic->p[i].i_pitch;
} }
#if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) #if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H)
img_convert( &dest_pic, PIX_FMT_YUV420P, img_convert( &dest_pic, PIX_FMT_YUV420P,
(AVPicture *)p_ff_pic, (AVPicture *)p_ff_pic,
p_sys->p_context->pix_fmt, p_sys->p_context->pix_fmt,
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#include "ffmpeg.h" #include "ffmpeg.h"
#if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H) && !defined(HAVE_LIBSWSCALE_TREE) #if !defined(HAVE_LIBSWSCALE_SWSCALE_H) && !defined(HAVE_FFMPEG_SWSCALE_H)
void InitLibavcodec ( vlc_object_t *p_object ); void InitLibavcodec ( vlc_object_t *p_object );
static int CheckInit( filter_t *p_filter ); static int CheckInit( filter_t *p_filter );
static picture_t *Process( filter_t *p_filter, picture_t *p_pic ); static picture_t *Process( filter_t *p_filter, picture_t *p_pic );
...@@ -568,4 +568,4 @@ static picture_t *Process( filter_t *p_filter, picture_t *p_pic ) ...@@ -568,4 +568,4 @@ static picture_t *Process( filter_t *p_filter, picture_t *p_pic )
p_pic->pf_release( p_pic ); p_pic->pf_release( p_pic );
return p_pic_dst; return p_pic_dst;
} }
#endif /* ( (defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) */ #endif /* ( (defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) */
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