新增大窗口播放视频按键,窗口大小根据解码视频分辨率自动调整,关掉大窗口回到原来位置播放视频
This commit is contained in:
@@ -56,9 +56,12 @@ private:
|
||||
QWaitCondition condition;
|
||||
QString filePath;
|
||||
QLabel* videoLabel;
|
||||
QLineEdit* resolutionEdit;
|
||||
QLabel* videoLabelTemp; // 临时存储新标签
|
||||
QLineEdit* resolutionEdit;
|
||||
bool videoLabelChanged = false;
|
||||
bool abort;
|
||||
bool restart;
|
||||
bool isGotResolution = false;
|
||||
|
||||
AVFormatContext* formatContext;
|
||||
AVCodecContext* codecContext;
|
||||
@@ -66,9 +69,10 @@ private:
|
||||
AVPacket* packet;
|
||||
SwsContext* swsContext;
|
||||
int videoStreamIndex;
|
||||
int FocusWindowWidth = 0;
|
||||
int FocusWindowHeight = 0;
|
||||
|
||||
RingBuffer* ringBuffer;
|
||||
//QLabel* singleFrameLabel; // 用于解码单帧的标签
|
||||
};
|
||||
|
||||
#endif // FFMPEGDECODER_H
|
||||
|
||||
Reference in New Issue
Block a user