WYY
2025-02-27 aeea0feedc9e25294962be52c5e1dc7e34fdb006
Client/¶­Åìèº/code/qffmpeg.h
@@ -10,12 +10,19 @@
//引入ffmpeg头文件
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>     //实现音视频的编解码功能
#include <libavformat/avformat.h>   //实现音视频文件的读取和写入功能,支持多种音视频格式
#include <libavfilter/avfilter.h>
#include <libswscale/swscale.h>
#include <libavutil/frame.h>
#include <libavutil/imgutils.h>
}
// å¼•å…¥SDL2头文件
//extern "C"
//{
//   #include "SDL.h"
//}
#include <QObject>
#include <QMutex>
@@ -53,10 +60,13 @@
    int videoStreamIndex;
    int index;
    // SDL相关
//    SDL_Window *sdlWindow;
//    SDL_Renderer *sdlRenderer;
//    SDL_Texture *sdlTexture;
signals:
    void GetImage(const QImage &image,int x);    // å‘送解码后的图像信号
public slots:
};