]> git.sesse.net Git - vlc/blob - modules/video_filter/adjust_sat_hue.h
mediacodec: don't loop in GetOutput
[vlc] / modules / video_filter / adjust_sat_hue.h
1 /*****************************************************************************
2  * adjust_sat_hue.h : Hue/Saturation executive part of adjust plugin for vlc
3  *****************************************************************************
4  * Copyright (C) 2011 VideoLAN
5  *
6  * Authors: Simon Latapie <garf@via.ecp.fr>
7  *          Antoine Cellerier <dionoea -at- videolan d0t org>
8  *          Martin Briza <gamajun@seznam.cz> (SSE)
9  *
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.
14  *
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.
19  *
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  *****************************************************************************/
24
25 #include <vlc_common.h>
26 #include <vlc_cpu.h>
27
28 /**
29  * Functions processing saturation and hue of adjust filter.
30  * Prototype and parameters stay the same across different variations.
31  *
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
39  */
40
41 /**
42  * Basic C compiler generated function for planar format, i_sat > 256
43  */
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 );
46
47 /**
48  * Basic C compiler generated function for planar format, i_sat <= 256
49  */
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 );
52
53 /**
54  * Basic C compiler generated function for packed format, i_sat > 256
55  */
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 );
58
59 /**
60  * Basic C compiler generated function for packed format, i_sat <= 256
61  */
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 );