1 Star 1 Fork 0

macos2 / MyCamera

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
video_unit.h 781 Bytes
一键复制 编辑 原始数据 按行查看 历史
tom 提交于 2020-01-06 10:52 . add some message
/*
* video_unit.h
*
* Created on: 2019年12月30日
* Author: tom
* @https://github.com/macos2/MyCamera
* @https://gitee.com/macos2/MyCamera
*/
#ifndef VIDEO_UNIT_H_
#define VIDEO_UNIT_H_
#include <stdlib.h>
#include <stdio.h>
/*pix to pix transform
*y=y,cb=u,cr=v
*a yuv pix to a 32bit argb pix(each element 8bit);
*/
int yuv_to_argb(unsigned char y,unsigned char cb,unsigned char cr,int alpha);
/*Map:
*yyyy
*yyyy
*uu
*uu
*vv
*vv
* */
void * yuv422p_to_argb(void *data, int width, int height, int alpha);
/*Map:
*yuyvyuyv
*yuyvyuyv
* */
void * yuyv_to_argb(void *data, int width, int height, int alpha);
/*Map:
* yyyy
* yyyy
* uu
* vv
* */
void * yu12_to_argb(void *data, int width, int height, int alpha);
#endif /* VIDEO_UNIT_H_ */
C
1
https://gitee.com/macos2/MyCamera.git
git@gitee.com:macos2/MyCamera.git
macos2
MyCamera
MyCamera
master

搜索帮助