ffmpeg解码mjpeg格式数据接口介绍

来源:互联网 发布:大乐透软件0416ren 编辑:程序博客网 时间:2024/06/06 02:55
解码主要函数
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const AVPacket *avpkt); 
其中:
avpkt传递待解码的数据指针(avpkt的成员*data即可指向待解码的数据,比如usb camera的取出帧);
picture存储解码后的数据;
got_picture_ptr是解码成功的标志位。
0 0
原创粉丝点击