//
|
// Created by YY on 2018/10/30.
|
//
|
|
#ifndef ALIVCLIVEPUSHERDEMO_LIBYUV_H
|
#define ALIVCLIVEPUSHERDEMO_LIBYUV_H
|
|
#define RGBA_YUV420SP 0x00004012
|
#define BGRA_YUV420SP 0x00004210
|
#define RGBA_YUV420P 0x00014012
|
#define BGRA_NV21 0x00024210
|
#define RGBA_NV21 0x00024012
|
#define BGRA_YUV420P 0x00014210
|
#define RGB_YUV420SP 0x00003012
|
#define RGB_YUV420P 0x00013012
|
#define BGR_YUV420SP 0x00003210
|
#define BGR_YUV420P 0x00013210
|
|
void rgbaToYuv(int width,int height,unsigned char * rgb,unsigned char * yuv,int type);
|
void rgbaToYuvSIMD(int width,int height,unsigned char * rgb,unsigned char * yuv,int type);
|
|
#endif //ALIVCLIVEPUSHERDEMO_LIBYUV_H
|