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

📄 color_common.c

📁 It s a tool designed to extract as much information as possible from Bluetooth devices without the r
💻 C
字号:
#define NG_PRIVATE#include "config.h"#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <pthread.h>#include <sys/time.h>#include <sys/types.h>#include "grab-ng.h"/* ------------------------------------------------------------------- */void*ng_packed_init(struct ng_video_fmt *out, void *priv){    return priv;}voidng_packed_frame(void *handle, struct ng_video_buf *out,		struct ng_video_buf *in){    int (*func)(unsigned char *dest, unsigned char *src, int p) = handle;    unsigned char *sp,*dp;    unsigned int i,sw,dw;    dw  = (out->fmt.width * ng_vfmt_to_depth[out->fmt.fmtid]) >> 3;    sw  = (in->fmt.width  * ng_vfmt_to_depth[in->fmt.fmtid])  >> 3;    if (in->fmt.bytesperline == sw && out->fmt.bytesperline == dw) {	/* can convert in one go */	func(out->data, in->data, in->fmt.width * in->fmt.height);    } else {	/* convert line by line */	dp = out->data;	sp = in->data;	for (i = 0; i < in->fmt.height; i++) {	    func(dp,sp,in->fmt.width);	    dp += out->fmt.bytesperline;	    sp += in->fmt.bytesperline;	}    }    out->info = in->info;}/* ------------------------------------------------------------------- */void*ng_conv_nop_init(struct ng_video_fmt *out, void *priv){    /* nothing */    return NULL;}voidng_conv_nop_fini(void *handle){    /* nothing */}

⌨️ 快捷键说明

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