[vlc-devel] [PATCH 1/2] Sepia video filter

Branko Kokanovic branko.kokanovic at gmail.com
Fri Dec 10 19:41:52 CET 2010


Hi,
just pinging about sepia video filter. It's been awhile since last
version of patch I patch. Any news?
greetings, kokan

On 28.11.2010. 17:40, Branko Kokanovic wrote:
> Hi,
> new version (again, just first patch without GUI).
> Fixed:
> * stored SepiaFunction directly
> * changed VLC_CODEC_VYUY for VLC_CODEC_CYUV (actually, I copied that
> from filter_picture.h (CASE_PACKED_YUV_422), maybe that code there isn't
> right too?)
> * removed redundant 'if' for chroma
> * reused vlc_unit8
> * used vlc_yuv_packed() for simpler code
> * complete rewrite planar sepia so it iterated for two lines and two
> pixels in line, so it is now taking four y values when calculating new
> values
> 
> About calculating sepia - since r,g,b=f(y,u,v) and y,u,v=f(r,g,b), I
> must take in account all values when converting back and forth. Also.
> I'm aware that YuvSepia2() and YuvSepia4() function could be merged, but
> since it's only those two cases, I think it would be a bit of
> overarchitecture.
> 
> Speaking about refactoring, it will be another patch after this is
> pushed (I got some stuff from posterize.c that could go there too), but
> with only two patches for VLC so far, I thought it was not ok to do
> refactoring right now. What header will it end up into -
> filter_picture.h? Some new?
> 
> On 28.11.2010. 13:55, Laurent Aimar wrote:
>> Hi,

> Hi,
> new version (again, just first patch without GUI).
> Fixed:
> * stored SepiaFunction directly
> * changed VLC_CODEC_VYUY for VLC_CODEC_CYUV (actually, I copied that
> from filter_picture.h (CASE_PACKED_YUV_422), maybe that code there isn't
> right too?)
> * removed redundant 'if' for chroma
> * reused vlc_unit8
> * used vlc_yuv_packed() for simpler code
> * complete rewrite planar sepia so it iterated for two lines and two
> pixels in line, so it is now taking four y values when calculating new
> values
> 
> About calculating sepia - since r,g,b=f(y,u,v) and y,u,v=f(r,g,b), I
> must take in account all values when converting back and forth. Also.
> I'm aware that YuvSepia2() and YuvSepia4() function could be merged, but
> since it's only those two cases, I think it would be a bit of
> overarchitecture.
> 
> Speaking about refactoring, it will be another patch after this is
> pushed (I got some stuff from posterize.c that could go there too), but
> with only two patches for VLC so far, I thought it was not ok to do
> refactoring right now. What header will it end up into -
> filter_picture.h? Some new?
> 
> On 28.11.2010. 13:55, Laurent Aimar wrote:
>> Hi,




More information about the vlc-devel mailing list