⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blend_fields.c

📁 Motion JPEG编解码器源代码
💻 C
字号:
/*********************************************************** * YUVDEINTERLACER for the mjpegtools                      * * ------------------------------------------------------- * * (C) 2001-2004 Stefan Fendt                              * *                                                         * * Licensed and protected by the GNU-General-Public-       * * License version 2 or if you prefer any later version of * * that license). See the file LICENSE for detailed infor- * * mation.                                                 * *                                                         * * FILE: blend_fields.c                                    * *                                                         * ***********************************************************/#include "config.h"#include "mjpeg_types.h"#include "blend_fields.h"#include <stdio.h>extern int width;extern int height;voidblend_fields_non_accel (uint8_t * dst[3], uint8_t * src[3] ){	int i;	int offs = width*height;	for (i = 0; i < offs; i++)		{			*(dst[0]) = ( *(src[0])+*(dst[0]) )/2;			*(dst[1]) = ( *(src[1])+*(dst[1]) )/2;			*(dst[2]) = ( *(src[2])+*(dst[2]) )/2;			dst[0]++;			dst[1]++;			dst[2]++;			src[0]++;			src[1]++;			src[2]++;		}	dst[0]  -= offs;	src[0] -= offs;	dst[1]  -= offs;	src[1] -= offs;	dst[2]  -= offs;	src[2] -= offs;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -