Skip to content

Commit

Permalink
重构 transcode-2;
Browse files Browse the repository at this point in the history
  • Loading branch information
RealChuan committed Feb 28, 2024
1 parent 6d6ba06 commit 85c622b
Show file tree
Hide file tree
Showing 27 changed files with 832 additions and 269 deletions.
2 changes: 0 additions & 2 deletions examples/player/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
mainwindow.h
mediainfodialog.cc
mediainfodialog.hpp
openwebmediadialog.cc
openwebmediadialog.hpp
playlistmodel.cpp
Expand Down
5 changes: 2 additions & 3 deletions examples/player/mainwindow.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "mainwindow.h"
#include "colorspacedialog.hpp"
#include "controlwidget.hpp"
#include "mediainfodialog.hpp"
#include "openwebmediadialog.hpp"
#include "playlistmodel.h"
#include "playlistview.hpp"
Expand All @@ -17,6 +16,7 @@
#include <ffmpeg/player.h>
#include <ffmpeg/videorender/videopreviewwidget.hpp>
#include <ffmpeg/videorender/videorendercreate.hpp>
#include <ffmpeg/widgets/mediainfodialog.hpp>

#include <QtWidgets>

Expand Down Expand Up @@ -369,7 +369,7 @@ void MainWindow::onShowColorSpace()

void MainWindow::onShowMediaInfo()
{
MediaInfoDialog dialog(this);
Ffmpeg::MediaInfoDialog dialog(this);
dialog.setMediaInfo(d_ptr->playerPtr->mediaInfo());
dialog.exec();
}
Expand Down Expand Up @@ -462,7 +462,6 @@ void MainWindow::onProcessEvents()
errorEvent->error().errorString());
qWarning() << text;
d_ptr->setTitleWidgetText(text);

} break;
default: break;
}
Expand Down
2 changes: 0 additions & 2 deletions examples/player/player.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ SOURCES += \
controlwidget.cc \
main.cpp \
mainwindow.cpp \
mediainfodialog.cc \
openwebmediadialog.cc \
playlistmodel.cpp \
playlistview.cc \
Expand All @@ -32,7 +31,6 @@ HEADERS += \
colorspacedialog.hpp \
controlwidget.hpp \
mainwindow.h \
mediainfodialog.hpp \
openwebmediadialog.hpp \
playlistmodel.h \
playlistview.hpp \
Expand Down
9 changes: 8 additions & 1 deletion examples/transcoder/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
set(PROJECT_SOURCES main.cc mainwindow.cc mainwindow.hpp)
set(PROJECT_SOURCES
main.cc
mainwindow.cc
mainwindow.hpp
previewwidget.cc
previewwidget.hpp
sourcewidget.cc
sourcewidget.hpp)

qt_add_executable(QFfmpegTranscoder MANUAL_FINALIZATION ${PROJECT_SOURCES})
target_link_libraries(
Expand Down
Loading

0 comments on commit 85c622b

Please sign in to comment.