1
/***************************************************************************
2
ADM_guiContrast.cpp - description
4
begin : Mon Sep 23 2002
5
copyright : (C) 2002 by mean
6
email : fixounet@free.fr
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
22
#include "ADM_colorspace/ADM_rgb.h"
24
#include "ADM_image.h"
25
#include "ADM_video/ADM_genvideo.hxx"
26
#include "ADM_videoFilter/ADM_vidContrast.h"
27
#include "DIA_flyDialog.h"
28
#include "DIA_flyEq2.h"
29
#include "ADM_osSupport/ADM_cpuCap.h"
30
/************* COMMON PART *********************/
31
uint8_t flyEq2::update(void)
40
uint8_t flyEq2::process(void)
43
Eq2Settings mySettings;
46
printf("Contrast :%f\n",param.contrast);
47
printf("brightness :%f\n",param.brightness);
48
printf("saturation :%f\n",param.saturation);
50
printf("gamma_weight :%f\n",param.gamma_weight);
51
printf("gamma :%f\n",param.gamma);
55
printf("rgamma :%f\n",param.rgamma);
56
printf("bgamma :%f\n",param.bgamma);
57
printf("ggamma :%f\n",param.ggamma);
58
printf("******************\n");
61
update_lut(&mySettings,¶m);
63
typedef void lutMeType(oneSetting *par, unsigned char *dst, unsigned char *src, unsigned int w, unsigned int h);
65
lutMeType *lutMe=apply_lut;
68
#if (defined( ARCH_X86) || defined(ARCH_X86_64))
74
lutMe(&(mySettings.param[0]),YPLANE(_yuvBufferOut),YPLANE(_yuvBuffer),_w,_h);
75
lutMe(&(mySettings.param[2]),UPLANE(_yuvBufferOut),UPLANE(_yuvBuffer),_w>>1,_h>>1);
76
lutMe(&(mySettings.param[1]),VPLANE(_yuvBufferOut),VPLANE(_yuvBuffer),_w>>1,_h>>1);
80
_yuvBuffer->copyLeftSideTo(_yuvBufferOut);
85
/************* COMMON PART *********************/