Update to current bugfix

el8
Nicolas Chauvet 10 years ago
parent 4629e74286
commit 6fa6783a36

File diff suppressed because it is too large Load Diff

@ -1,560 +0,0 @@
commit 5d17bd9d2db93b7a653f870232bf0c0e95a1de3c
Author: Rémi Denis-Courmont <remi@remlab.net>
Date: Thu Jan 29 20:09:56 2015 +0200
chroma: remove dead CYUV support
CYUV is not a pixel format, at least it is not treated as such in VLC
outputs and encoders. CYUV is decoded to YUV 4:1:1 by libavcodec.
diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c
index cd99dd6..4584f9e 100644
--- a/modules/video_chroma/i420_yuy2.c
+++ b/modules/video_chroma/i420_yuy2.c
@@ -44,13 +44,13 @@
#define SRC_FOURCC "I420,IYUV,YV12"
#if defined (MODULE_NAME_IS_i420_yuy2)
-# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV,cyuv,Y211"
+# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV,Y211"
# define VLC_TARGET
#elif defined (MODULE_NAME_IS_i420_yuy2_mmx)
-# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV,cyuv"
+# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV"
# define VLC_TARGET VLC_MMX
#elif defined (MODULE_NAME_IS_i420_yuy2_sse2)
-# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV,cyuv"
+# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV"
# define VLC_TARGET VLC_SSE
#elif defined (MODULE_NAME_IS_i420_yuy2_altivec)
# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422"
@@ -70,9 +70,7 @@ static picture_t *I420_YVYU_Filter ( filter_t *, picture_t * );
static picture_t *I420_UYVY_Filter ( filter_t *, picture_t * );
#if !defined (MODULE_NAME_IS_i420_yuy2_altivec)
static void I420_IUYV ( filter_t *, picture_t *, picture_t * );
-static void I420_cyuv ( filter_t *, picture_t *, picture_t * );
static picture_t *I420_IUYV_Filter ( filter_t *, picture_t * );
-static picture_t *I420_cyuv_Filter ( filter_t *, picture_t * );
#endif
#if defined (MODULE_NAME_IS_i420_yuy2)
static void I420_Y211 ( filter_t *, picture_t *, picture_t * );
@@ -153,10 +151,6 @@ static int Activate( vlc_object_t *p_this )
case VLC_FOURCC('I','U','Y','V'):
p_filter->pf_video_filter = I420_IUYV_Filter;
break;
-
- case VLC_CODEC_CYUV:
- p_filter->pf_video_filter = I420_cyuv_Filter;
- break;
#endif
#if defined (MODULE_NAME_IS_i420_yuy2)
@@ -194,7 +188,6 @@ VIDEO_FILTER_WRAPPER( I420_YVYU )
VIDEO_FILTER_WRAPPER( I420_UYVY )
#if !defined (MODULE_NAME_IS_i420_yuy2_altivec)
VIDEO_FILTER_WRAPPER( I420_IUYV )
-VIDEO_FILTER_WRAPPER( I420_cyuv )
#endif
#if defined (MODULE_NAME_IS_i420_yuy2)
VIDEO_FILTER_WRAPPER( I420_Y211 )
@@ -849,136 +842,6 @@ static void I420_IUYV( filter_t *p_filter, picture_t *p_source,
/* FIXME: TODO ! */
msg_Err( p_filter, "I420_IUYV unimplemented, please harass <sam@zoy.org>" );
}
-
-/*****************************************************************************
- * I420_cyuv: planar YUV 4:2:0 to upside-down packed UYVY 4:2:2
- *****************************************************************************/
-VLC_TARGET
-static void I420_cyuv( filter_t *p_filter, picture_t *p_source,
- picture_t *p_dest )
-{
- uint8_t *p_line1 = p_dest->p->p_pixels +
- p_dest->p->i_visible_lines * p_dest->p->i_pitch
- + p_dest->p->i_pitch;
- uint8_t *p_line2 = p_dest->p->p_pixels +
- p_dest->p->i_visible_lines * p_dest->p->i_pitch;
- uint8_t *p_y1, *p_y2 = p_source->Y_PIXELS;
- uint8_t *p_u = p_source->U_PIXELS;
- uint8_t *p_v = p_source->V_PIXELS;
-
- int i_x, i_y;
-
- const int i_source_margin = p_source->p[0].i_pitch
- - p_source->p[0].i_visible_pitch;
- const int i_source_margin_c = p_source->p[1].i_pitch
- - p_source->p[1].i_visible_pitch;
- const int i_dest_margin = p_dest->p->i_pitch
- - p_dest->p->i_visible_pitch;
-
-#if !defined(MODULE_NAME_IS_i420_yuy2_sse2)
- for( i_y = p_filter->fmt_in.video.i_height / 2 ; i_y-- ; )
- {
- p_line1 -= 3 * p_dest->p->i_pitch;
- p_line2 -= 3 * p_dest->p->i_pitch;
-
- p_y1 = p_y2;
- p_y2 += p_source->p[Y_PLANE].i_pitch;
-
- for( i_x = p_filter->fmt_in.video.i_width / 8 ; i_x-- ; )
- {
-#if !defined (MODULE_NAME_IS_i420_yuy2_mmx)
- C_YUV420_UYVY( );
- C_YUV420_UYVY( );
- C_YUV420_UYVY( );
- C_YUV420_UYVY( );
-#else
- MMX_CALL( MMX_YUV420_UYVY );
-#endif
- }
- for( i_x = ( p_filter->fmt_in.video.i_width % 8 ) / 2; i_x-- ; )
- {
- C_YUV420_UYVY( );
- }
-
- p_y1 += i_source_margin;
- p_y2 += i_source_margin;
- p_u += i_source_margin_c;
- p_v += i_source_margin_c;
- p_line1 += i_dest_margin;
- p_line2 += i_dest_margin;
- }
-
-#if defined (MODULE_NAME_IS_i420_yuy2_mmx)
- /* re-enable FPU registers */
- MMX_END;
-#endif
-
-#else // defined(MODULE_NAME_IS_i420_yuy2_sse2)
- /*
- ** SSE2 128 bits fetch/store instructions are faster
- ** if memory access is 16 bytes aligned
- */
- if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch|
- ((intptr_t)p_line2|(intptr_t)p_y2))) )
- {
- /* use faster SSE2 aligned fetch and store */
- for( i_y = p_filter->fmt_in.video.i_height / 2 ; i_y-- ; )
- {
- p_line1 = p_line2;
- p_line2 += p_dest->p->i_pitch;
-
- p_y1 = p_y2;
- p_y2 += p_source->p[Y_PLANE].i_pitch;
-
- for( i_x = p_filter->fmt_in.video.i_width / 16 ; i_x-- ; )
- {
- SSE2_CALL( SSE2_YUV420_UYVY_ALIGNED );
- }
- for( i_x = ( p_filter->fmt_in.video.i_width % 16 ) / 2; i_x-- ; )
- {
- C_YUV420_UYVY( );
- }
-
- p_y1 += i_source_margin;
- p_y2 += i_source_margin;
- p_u += i_source_margin_c;
- p_v += i_source_margin_c;
- p_line1 += i_dest_margin;
- p_line2 += i_dest_margin;
- }
- }
- else
- {
- /* use slower SSE2 unaligned fetch and store */
- for( i_y = p_filter->fmt_in.video.i_height / 2 ; i_y-- ; )
- {
- p_line1 = p_line2;
- p_line2 += p_dest->p->i_pitch;
-
- p_y1 = p_y2;
- p_y2 += p_source->p[Y_PLANE].i_pitch;
-
- for( i_x = p_filter->fmt_in.video.i_width / 16 ; i_x-- ; )
- {
- SSE2_CALL( SSE2_YUV420_UYVY_UNALIGNED );
- }
- for( i_x = ( p_filter->fmt_in.video.i_width % 16 ) / 2; i_x-- ; )
- {
- C_YUV420_UYVY( );
- }
-
- p_y1 += i_source_margin;
- p_y2 += i_source_margin;
- p_u += i_source_margin_c;
- p_v += i_source_margin_c;
- p_line1 += i_dest_margin;
- p_line2 += i_dest_margin;
- }
- }
- /* make sure all SSE2 stores are visible thereafter */
- SSE2_END;
-#endif // defined(MODULE_NAME_IS_i420_yuy2_sse2)
-}
#endif // !defined (MODULE_NAME_IS_i420_yuy2_altivec)
/*****************************************************************************
diff --git a/modules/video_chroma/i422_yuy2.c b/modules/video_chroma/i422_yuy2.c
index 383fb3e..9099cfc 100644
--- a/modules/video_chroma/i422_yuy2.c
+++ b/modules/video_chroma/i422_yuy2.c
@@ -39,9 +39,9 @@
#define SRC_FOURCC "I422"
#if defined (MODULE_NAME_IS_i422_yuy2)
-# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV,cyuv,Y211"
+# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV,Y211"
#else
-# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV,cyuv"
+# define DEST_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,IUYV"
#endif
/*****************************************************************************
@@ -53,12 +53,10 @@ static void I422_YUY2 ( filter_t *, picture_t *, picture_t * );
static void I422_YVYU ( filter_t *, picture_t *, picture_t * );
static void I422_UYVY ( filter_t *, picture_t *, picture_t * );
static void I422_IUYV ( filter_t *, picture_t *, picture_t * );
-static void I422_cyuv ( filter_t *, picture_t *, picture_t * );
static picture_t *I422_YUY2_Filter ( filter_t *, picture_t * );
static picture_t *I422_YVYU_Filter ( filter_t *, picture_t * );
static picture_t *I422_UYVY_Filter ( filter_t *, picture_t * );
static picture_t *I422_IUYV_Filter ( filter_t *, picture_t * );
-static picture_t *I422_cyuv_Filter ( filter_t *, picture_t * );
#if defined (MODULE_NAME_IS_i422_yuy2)
static void I422_Y211 ( filter_t *, picture_t *, picture_t * );
static picture_t *I422_Y211_Filter ( filter_t *, picture_t * );
@@ -130,10 +128,6 @@ static int Activate( vlc_object_t *p_this )
p_filter->pf_video_filter = I422_IUYV_Filter;
break;
- case VLC_CODEC_CYUV:
- p_filter->pf_video_filter = I422_cyuv_Filter;
- break;
-
#if defined (MODULE_NAME_IS_i422_yuy2)
case VLC_CODEC_Y211:
p_filter->pf_video_filter = I422_Y211_Filter;
@@ -157,7 +151,6 @@ VIDEO_FILTER_WRAPPER( I422_YUY2 )
VIDEO_FILTER_WRAPPER( I422_YVYU )
VIDEO_FILTER_WRAPPER( I422_UYVY )
VIDEO_FILTER_WRAPPER( I422_IUYV )
-VIDEO_FILTER_WRAPPER( I422_cyuv )
#if defined (MODULE_NAME_IS_i422_yuy2)
VIDEO_FILTER_WRAPPER( I422_Y211 )
#endif
@@ -456,104 +449,6 @@ static void I422_IUYV( filter_t *p_filter, picture_t *p_source,
}
/*****************************************************************************
- * I422_cyuv: planar YUV 4:2:2 to upside-down packed UYVY 4:2:2
- *****************************************************************************/
-VLC_TARGET
-static void I422_cyuv( filter_t *p_filter, picture_t *p_source,
- picture_t *p_dest )
-{
- uint8_t *p_line = p_dest->p->p_pixels + p_dest->p->i_visible_lines * p_dest->p->i_pitch;
- uint8_t *p_y = p_source->Y_PIXELS;
- uint8_t *p_u = p_source->U_PIXELS;
- uint8_t *p_v = p_source->V_PIXELS;
-
- int i_x, i_y;
-
- const int i_source_margin = p_source->p[0].i_pitch
- - p_source->p[0].i_visible_pitch;
- const int i_source_margin_c = p_source->p[1].i_pitch
- - p_source->p[1].i_visible_pitch;
- const int i_dest_margin = p_dest->p->i_pitch
- - p_dest->p->i_visible_pitch;
-
-#if defined (MODULE_NAME_IS_i422_yuy2_sse2)
-
- if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch|
- ((intptr_t)p_line|(intptr_t)p_y))) )
- {
- /* use faster SSE2 aligned fetch and store */
- for( i_y = p_filter->fmt_in.video.i_height ; i_y-- ; )
- {
- p_line -= 2 * p_dest->p->i_pitch;
-
- for( i_x = p_filter->fmt_in.video.i_width / 16 ; i_x-- ; )
- {
- SSE2_CALL( SSE2_YUV422_UYVY_ALIGNED );
- }
- for( i_x = ( p_filter->fmt_in.video.i_width % 16 ) / 2; i_x-- ; )
- {
- C_YUV422_UYVY( p_line, p_y, p_u, p_v );
- }
- p_y += i_source_margin;
- p_u += i_source_margin_c;
- p_v += i_source_margin_c;
- p_line += i_dest_margin;
- }
- }
- else {
- /* use slower SSE2 unaligned fetch and store */
- for( i_y = p_filter->fmt_in.video.i_height ; i_y-- ; )
- {
- p_line -= 2 * p_dest->p->i_pitch;
-
- for( i_x = p_filter->fmt_in.video.i_width / 16 ; i_x-- ; )
- {
- SSE2_CALL( SSE2_YUV422_UYVY_UNALIGNED );
- }
- for( i_x = ( p_filter->fmt_in.video.i_width % 16 ) / 2; i_x-- ; )
- {
- C_YUV422_UYVY( p_line, p_y, p_u, p_v );
- }
- p_y += i_source_margin;
- p_u += i_source_margin_c;
- p_v += i_source_margin_c;
- p_line += i_dest_margin;
- }
- }
- SSE2_END;
-
-#else
-
- for( i_y = p_filter->fmt_in.video.i_height ; i_y-- ; )
- {
- for( i_x = p_filter->fmt_in.video.i_width / 8 ; i_x-- ; )
- {
- p_line -= 2 * p_dest->p->i_pitch;
-
-#if defined (MODULE_NAME_IS_i422_yuy2)
- C_YUV422_UYVY( p_line, p_y, p_u, p_v );
- C_YUV422_UYVY( p_line, p_y, p_u, p_v );
- C_YUV422_UYVY( p_line, p_y, p_u, p_v );
- C_YUV422_UYVY( p_line, p_y, p_u, p_v );
-#elif defined (MODULE_NAME_IS_i422_yuy2_mmx)
- MMX_CALL( MMX_YUV422_UYVY );
-#endif
- }
- p_y += i_source_margin;
- p_u += i_source_margin_c;
- p_v += i_source_margin_c;
- p_line += i_dest_margin;
- }
-#if defined (MODULE_NAME_IS_i422_yuy2_mmx)
- MMX_END;
-#elif defined (MODULE_NAME_IS_i422_yuy2_sse2)
- SSE2_END;
-#endif
-
-#endif
-}
-
-/*****************************************************************************
* I422_Y211: planar YUV 4:2:2 to packed YUYV 2:1:1
*****************************************************************************/
#if defined (MODULE_NAME_IS_i422_yuy2)
diff --git a/modules/video_chroma/yuy2_i420.c b/modules/video_chroma/yuy2_i420.c
index 134cfa5..4adff8b 100644
--- a/modules/video_chroma/yuy2_i420.c
+++ b/modules/video_chroma/yuy2_i420.c
@@ -33,7 +33,7 @@
#include <vlc_plugin.h>
#include <vlc_filter.h>
-#define SRC_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,cyuv"
+#define SRC_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422"
#define DEST_FOURCC "I420"
/*****************************************************************************
@@ -44,12 +44,10 @@ static int Activate ( vlc_object_t * );
static void YUY2_I420 ( filter_t *, picture_t *, picture_t * );
static void YVYU_I420 ( filter_t *, picture_t *, picture_t * );
static void UYVY_I420 ( filter_t *, picture_t *, picture_t * );
-static void cyuv_I420 ( filter_t *, picture_t *, picture_t * );
static picture_t *YUY2_I420_Filter ( filter_t *, picture_t * );
static picture_t *YVYU_I420_Filter ( filter_t *, picture_t * );
static picture_t *UYVY_I420_Filter ( filter_t *, picture_t * );
-static picture_t *cyuv_I420_Filter ( filter_t *, picture_t * );
/*****************************************************************************
* Module descriptor
@@ -97,10 +95,6 @@ static int Activate( vlc_object_t *p_this )
p_filter->pf_video_filter = UYVY_I420_Filter;
break;
- case VLC_CODEC_CYUV:
- p_filter->pf_video_filter = cyuv_I420_Filter;
- break;
-
default:
return -1;
}
@@ -116,7 +110,6 @@ static int Activate( vlc_object_t *p_this )
VIDEO_FILTER_WRAPPER( YUY2_I420 )
VIDEO_FILTER_WRAPPER( YVYU_I420 )
VIDEO_FILTER_WRAPPER( UYVY_I420 )
-VIDEO_FILTER_WRAPPER( cyuv_I420 )
/*****************************************************************************
* YUY2_I420: packed YUY2 4:2:2 to planar YUV 4:2:0
@@ -321,72 +314,3 @@ static void UYVY_I420( filter_t *p_filter, picture_t *p_source,
b_skip = !b_skip;
}
}
-
-/*****************************************************************************
- * cyuv_I420: upside-down packed UYVY 4:2:2 to planar YUV 4:2:0
- * FIXME
- *****************************************************************************/
-static void cyuv_I420( filter_t *p_filter, picture_t *p_source,
- picture_t *p_dest )
-{
- uint8_t *p_line = p_source->p->p_pixels;
-
- uint8_t *p_y = p_dest->Y_PIXELS;
- uint8_t *p_u = p_dest->U_PIXELS;
- uint8_t *p_v = p_dest->V_PIXELS;
-
- int i_x, i_y;
-
- const int i_dest_margin = p_dest->p[0].i_pitch
- - p_dest->p[0].i_visible_pitch;
- const int i_dest_margin_c = p_dest->p[1].i_pitch
- - p_dest->p[1].i_visible_pitch;
- const int i_source_margin = p_source->p->i_pitch
- - p_source->p->i_visible_pitch;
-
- bool b_skip = false;
-
- for( i_y = p_filter->fmt_out.video.i_height ; i_y-- ; )
- {
- if( b_skip )
- {
- for( i_x = p_filter->fmt_out.video.i_width / 8 ; i_x-- ; )
- {
- #define C_cyuv_YUV422_skip( p_line, p_y, p_u, p_v ) \
- *p_y++ = *p_line++; p_line++; \
- *p_y++ = *p_line++; p_line++
- C_cyuv_YUV422_skip( p_line, p_y, p_u, p_v );
- C_cyuv_YUV422_skip( p_line, p_y, p_u, p_v );
- C_cyuv_YUV422_skip( p_line, p_y, p_u, p_v );
- C_cyuv_YUV422_skip( p_line, p_y, p_u, p_v );
- }
- for( i_x = ( p_filter->fmt_out.video.i_width % 8 ) / 2; i_x-- ; )
- {
- C_cyuv_YUV422_skip( p_line, p_y, p_u, p_v );
- }
- }
- else
- {
- for( i_x = p_filter->fmt_out.video.i_width / 8 ; i_x-- ; )
- {
- #define C_cyuv_YUV422( p_line, p_y, p_u, p_v ) \
- *p_y++ = *p_line++; *p_v++ = *p_line++; \
- *p_y++ = *p_line++; *p_u++ = *p_line++
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- }
- for( i_x = ( p_filter->fmt_out.video.i_width % 8 ) / 2; i_x-- ; )
- {
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- }
- }
- p_line += i_source_margin;
- p_y += i_dest_margin;
- p_u += i_dest_margin_c;
- p_v += i_dest_margin_c;
-
- b_skip = !b_skip;
- }
-}
diff --git a/modules/video_chroma/yuy2_i422.c b/modules/video_chroma/yuy2_i422.c
index 8ab149e..d748be6 100644
--- a/modules/video_chroma/yuy2_i422.c
+++ b/modules/video_chroma/yuy2_i422.c
@@ -33,7 +33,7 @@
#include <vlc_plugin.h>
#include <vlc_filter.h>
-#define SRC_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422,cyuv"
+#define SRC_FOURCC "YUY2,YUNV,YVYU,UYVY,UYNV,Y422"
#define DEST_FOURCC "I422"
/*****************************************************************************
@@ -44,11 +44,9 @@ static int Activate ( vlc_object_t * );
static void YUY2_I422 ( filter_t *, picture_t *, picture_t * );
static void YVYU_I422 ( filter_t *, picture_t *, picture_t * );
static void UYVY_I422 ( filter_t *, picture_t *, picture_t * );
-static void cyuv_I422 ( filter_t *, picture_t *, picture_t * );
static picture_t *YUY2_I422_Filter ( filter_t *, picture_t * );
static picture_t *YVYU_I422_Filter ( filter_t *, picture_t * );
static picture_t *UYVY_I422_Filter ( filter_t *, picture_t * );
-static picture_t *cyuv_I422_Filter ( filter_t *, picture_t * );
/*****************************************************************************
* Module descriptor
@@ -96,10 +94,6 @@ static int Activate( vlc_object_t *p_this )
p_filter->pf_video_filter = UYVY_I422_Filter;
break;
- case VLC_CODEC_CYUV:
- p_filter->pf_video_filter = cyuv_I422_Filter;
- break;
-
default:
return -1;
}
@@ -116,7 +110,6 @@ static int Activate( vlc_object_t *p_this )
VIDEO_FILTER_WRAPPER( YUY2_I422 )
VIDEO_FILTER_WRAPPER( YVYU_I422 )
VIDEO_FILTER_WRAPPER( UYVY_I422 )
-VIDEO_FILTER_WRAPPER( cyuv_I422 )
/*****************************************************************************
* YUY2_I422: packed YUY2 4:2:2 to planar YUV 4:2:2
@@ -249,48 +242,3 @@ static void UYVY_I422( filter_t *p_filter, picture_t *p_source,
p_v += i_dest_margin_c;
}
}
-
-/*****************************************************************************
- * cyuv_I422: upside-down packed UYVY 4:2:2 to planar YUV 4:2:2
- * FIXME
- *****************************************************************************/
-static void cyuv_I422( filter_t *p_filter, picture_t *p_source,
- picture_t *p_dest )
-{
- uint8_t *p_line = p_source->p->p_pixels;
-
- uint8_t *p_y = p_dest->Y_PIXELS;
- uint8_t *p_u = p_dest->U_PIXELS;
- uint8_t *p_v = p_dest->V_PIXELS;
-
- int i_x, i_y;
-
- const int i_dest_margin = p_dest->p[0].i_pitch
- - p_dest->p[0].i_visible_pitch;
- const int i_dest_margin_c = p_dest->p[1].i_pitch
- - p_dest->p[1].i_visible_pitch;
- const int i_source_margin = p_source->p->i_pitch
- - p_source->p->i_visible_pitch;
-
- for( i_y = p_filter->fmt_out.video.i_height ; i_y-- ; )
- {
- for( i_x = p_filter->fmt_out.video.i_width / 8 ; i_x-- ; )
- {
-#define C_cyuv_YUV422( p_line, p_y, p_u, p_v ) \
- *p_y++ = *p_line++; *p_v++ = *p_line++; \
- *p_y++ = *p_line++; *p_u++ = *p_line++
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- }
- for( i_x = ( p_filter->fmt_out.video.i_width % 8 ) / 2; i_x-- ; )
- {
- C_cyuv_YUV422( p_line, p_y, p_u, p_v );
- }
- p_line += i_source_margin;
- p_y += i_dest_margin;
- p_u += i_dest_margin_c;
- p_v += i_dest_margin_c;
- }
-}

@ -1,54 +0,0 @@
commit 5c07f87a773153c128b3a771ed61e7915cd8fe18
Author: Vinson Lee <vlee@freedesktop.org>
Date: Fri Feb 20 06:05:09 2015 +0000
rdp: Support FreeRDP-1.2.0-beta1-android9
Fix build errors.
CC access/librdp_plugin_la-rdp.lo
access/rdp.c: In function Open:
access/rdp.c:431:5: error: implicit declaration of function freerdp_channels_global_init [-Werror=implicit-function-declaration]
freerdp_channels_global_init();
^
access/rdp.c: In function Close:
access/rdp.c:507:5: error: implicit declaration of function freerdp_channels_global_uninit [-Werror=implicit-function-declaration]
freerdp_channels_global_uninit();
^
freerdp channels global functions were removed from FreeRDP repository
in commit 2a82684521dc8b23ae92e284e866227e5194a7bb.
commit 2a82684521dc8b23ae92e284e866227e5194a7bb
Author: Marc-André Moreau <marcandre.moreau@gmail.com>
Date: Wed Jun 11 16:27:31 2014 -0400
channels: cleanup unused freerdp channels global functions
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
diff --git a/modules/access/rdp.c b/modules/access/rdp.c
index 1dca8ae..769ba60 100644
--- a/modules/access/rdp.c
+++ b/modules/access/rdp.c
@@ -428,7 +428,9 @@ static int Open( vlc_object_t *p_this )
if ( p_sys->f_fps <= 0 ) p_sys->f_fps = 1.0;
p_sys->i_frame_interval = 1000000 / p_sys->f_fps;
+#if FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR < 2
freerdp_channels_global_init();
+#endif
p_sys->p_instance = freerdp_new();
if ( !p_sys->p_instance )
@@ -504,7 +506,9 @@ static void Close( vlc_object_t *p_this )
freerdp_disconnect( p_sys->p_instance );
freerdp_free( p_sys->p_instance );
+#if FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR < 2
freerdp_channels_global_uninit();
+#endif
if ( p_sys->p_block )
block_Release( p_sys->p_block );

@ -32,13 +32,12 @@
Summary: The cross-platform open-source multimedia framework, player and server
Name: vlc
Version: 2.2.1
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv2+
Group: Applications/Multimedia
URL: http://www.videolan.org
Source0: http://download.videolan.org/pub/videolan/vlc/%{version}/vlc-%{version}%{?vlc_rc}.tar.xz
Patch0: vlc-backport-freerdp.patch
Patch1: vlc-backport-chroma_dead_CYUV.patch
Patch0: vlc-2.2x-bugfix-20150513.patch
BuildRequires: desktop-file-utils
@ -220,7 +219,6 @@ JACK audio plugin for the VLC media player.
%prep
%setup -q -n %{name}-%{version}%{?vlc_rc}
%patch0 -p1
%patch1 -p1
%{?_with_bootstrap:
rm aclocal.m4 m4/lib*.m4 m4/lt*.m4 || :
./bootstrap
@ -486,6 +484,9 @@ fi || :
%changelog
* Wed May 13 2015 Nicolas Chauvet <kwizart@gmail.com> - 2.2.1-5
- Update to current bugfix
* Sat May 09 2015 Nicolas Chauvet <kwizart@gmail.com> - 2.2.1-4
- Recreate the plugins cache on post for main - rfbz#3639
- %%ghost the cache plugins

Loading…
Cancel
Save