64,654
社区成员
发帖
与我相关
我的任务
分享
#include "jpegtoyuv.h"
#pragma once
namespace H264Lib
{
public ref class H264Encoder
{
public:
H264Encoder();
H264Encoder(unsigned char *ibuf, unsigned char *obuf, unsigned int img_width, unsigned int img_height, unsigned int total_frames, unsigned int fps);
~H264Encoder();
public:
void Jpeg2Yuv(unsigned char *jpegdata, int jpegsize, unsigned int width, unsigned int height, unsigned char *ibuf);
void Encode();
int test();
protected:
void init();
public:
void (*p_end_process)(unsigned char* ibuf, unsigned char* obuf);
unsigned char *ibuf;
unsigned char *obuf;
int ibuf_index;
int obuf_index;
int *r_f;
int *w_f;
unsigned int img_width;
unsigned int img_height;
unsigned int fps;
unsigned int total_frames;
};
}