You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
442 B
C
14 lines
442 B
C
4 years ago
|
#include <libavformat/avformat.h>
|
||
|
#include <libavcodec/avcodec.h>
|
||
|
#include <libavutil/avutil.h>
|
||
|
#include <libavutil/imgutils.h>
|
||
|
#include <libswresample/swresample.h>
|
||
|
#include <libavutil/opt.h>
|
||
|
#include <string.h>
|
||
|
#include <libswscale/swscale.h>
|
||
|
#include "ffmpeg.h"
|
||
|
|
||
|
uint8_t *avcodec_encode_to_mat(AVCodecContext *pCodecCtx, AVFrame *pFrame,AVFrame *nFrame,int *size) {
|
||
|
return convert(pCodecCtx, pFrame, nFrame, size, AV_PIX_FMT_BGR24);
|
||
|
}
|