Commit 043f8202 authored by dionoea's avatar dionoea
Browse files

This should work for all planar YUV formats (in fact it should work for

all formats where the pixel pitch is of 1 byte on every plane).
parent b2f6e68b
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <vlc_vout.h> #include <vlc_vout.h>
#include "vlc_filter.h" #include "vlc_filter.h"
#include "filter_picture.h"
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
...@@ -104,19 +105,15 @@ static int Create( vlc_object_t *p_this ) ...@@ -104,19 +105,15 @@ static int Create( vlc_object_t *p_this )
filter_t *p_filter = (filter_t *)p_this; filter_t *p_filter = (filter_t *)p_this;
filter_sys_t *p_sys; filter_sys_t *p_sys;
if( p_filter->fmt_in.video.i_chroma != VLC_FOURCC('I','4','2','0') switch( p_filter->fmt_in.video.i_chroma )
&& p_filter->fmt_in.video.i_chroma != VLC_FOURCC('I','Y','U','V')
&& p_filter->fmt_in.video.i_chroma != VLC_FOURCC('J','4','2','0')
&& p_filter->fmt_in.video.i_chroma != VLC_FOURCC('Y','V','1','2')
&& p_filter->fmt_in.video.i_chroma != VLC_FOURCC('I','4','2','2')
&& p_filter->fmt_in.video.i_chroma != VLC_FOURCC('J','4','2','2')
)
{ {
/* We only want planar YUV 4:2:0 or 4:2:2 */ CASE_PLANAR_YUV
msg_Err( p_filter, "Unsupported input chroma (%4s)", break;
(char*)&(p_filter->fmt_in.video.i_chroma) );
return VLC_EGENERIC; default:
msg_Err( p_filter, "Unsupported input chroma (%4s)",
(char*)&(p_filter->fmt_in.video.i_chroma) );
return VLC_EGENERIC;
} }
if( p_filter->fmt_in.video.i_chroma != p_filter->fmt_out.video.i_chroma ) if( p_filter->fmt_in.video.i_chroma != p_filter->fmt_out.video.i_chroma )
......
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