1 /*****************************************************************************
2 * adjust_sat_hue.h : Hue/Saturation executive part of adjust plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2011 VideoLAN
6 * Authors: Simon Latapie <garf@via.ecp.fr>
7 * Antoine Cellerier <dionoea -at- videolan d0t org>
8 * Martin Briza <gamajun@seznam.cz> (SSE)
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2.1 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #include <vlc_common.h>
29 * Functions processing saturation and hue of adjust filter.
30 * Prototype and parameters stay the same across different variations.
32 * @param p_pic Source picture
33 * @param p_outpic Destination picture
34 * @param i_sin Sinus value of hue
35 * @param i_cos Cosinus value of hue
36 * @param i_sat Saturation
37 * @param i_x Additional value of saturation
38 * @param i_y Additional value of saturation
42 * Basic C compiler generated function for planar format, i_sat > 256
44 int planar_sat_hue_clip_C( picture_t * p_pic, picture_t * p_outpic,
45 int i_sin, int i_cos, int i_sat, int i_x, int i_y );
48 * Basic C compiler generated function for planar format, i_sat <= 256
50 int planar_sat_hue_C( picture_t * p_pic, picture_t * p_outpic,
51 int i_sin, int i_cos, int i_sat, int i_x, int i_y );
54 * Basic C compiler generated function for packed format, i_sat > 256
56 int packed_sat_hue_clip_C( picture_t * p_pic, picture_t * p_outpic,
57 int i_sin, int i_cos, int i_sat, int i_x, int i_y );
60 * Basic C compiler generated function for packed format, i_sat <= 256
62 int packed_sat_hue_C( picture_t * p_pic, picture_t * p_outpic,
63 int i_sin, int i_cos, int i_sat, int i_x, int i_y );