📄 yuvcorrect_functions.c
字号:
/* * yuvcorrect_functions.c * Common functions between yuvcorrect and yuvcorrect_tune * Copyright (C) 2002 Xavier Biquard <xbiquard@free.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */// *************************************************************************************#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <math.h>#include <signal.h>#include "yuv4mpeg.h"#include "yuvcorrect.h"// For pointer adress alignementconst uint16_t ALIGNEMENT = 16 ; // 16 bytes alignement for mmx registers in SIMD instructions for Pentiumconst float PI = 3.141592654;const char *legal_opt_flags = "I:F:M:T:Y:R:v:h";const char LUMINANCE[] = "LUMINANCE_";const char CHROMINANCE[] = "CHROMINANCE_";const char Y[] = "Y_";const char UV[] = "UV_";const char CONFORM[] = "CONFORM";const char R[] = "R_";const char G[] = "G_";const char B[] = "B_";// Possible capacity over or under flow for the RGB to YUV conversion and vice-versaconst uint16_t OFFSET = 256;// *************************************************************************************voidhandle_args_yuv_rgb (int argc, char *argv[], yuv_correction_t * yuv_correct, rgb_correction_t * rgb_correct){ // This function handles argument passing on the command line int c; unsigned int ui1, ui2, ui3, ui4; int k_yuv, k_rgb; float f1, f2, f3; // Ne pas oublier de mettre la putain de ligne qui suit, sinon, plus d'argument
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -