From 6fe8a0f69e8b0196fc88f7d99bb9f2195780fc79 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 27 Nov 2017 20:13:05 +0000 Subject: [PATCH] Change format ext api and re-format code --- .clang-format | 2 +- app/AboutDialog.cpp | 15 +- app/ConfigureFormatDialog.cpp | 48 +- app/FramePropertiesDock.cpp | 27 +- app/HistogramWidget.cpp | 23 +- app/ModuleHandleDock.cpp | 3 +- app/ModulesHandle.cpp | 139 +- app/ModulesHandle.h | 4 +- app/ModulesHandleOptDialog.cpp | 9 +- app/PlaYUVerApp.cpp | 141 +- app/PlaYUVerApp.h | 4 +- app/PlaYUVerAppAdaptor.cpp | 6 +- app/PlaYUVerAppModuleIf.cpp | 4 +- app/PlaYUVerSubWindowHandle.cpp | 85 +- app/PlotSubWindow.cpp | 20 +- app/PlotSubWindow.h | 4 +- app/ProgressBar.cpp | 3 +- app/QualityHandle.cpp | 46 +- app/QualityMeasurementSidebar.cpp | 12 +- app/SeekStreamDialog.cpp | 3 +- app/SubWindowAbstract.cpp | 3 +- app/VideoHandle.cpp | 109 +- app/VideoHandle.h | 2 +- app/VideoSubWindow.cpp | 131 +- app/VideoSubWindow.h | 7 +- app/ViewArea.cpp | 15 +- app/external/qcustomplot.cpp | 1878 ++++++++---------------- app/external/qcustomplot.h | 243 +-- app/main.cpp | 176 ++- lib/CMakeLists.txt | 1 + lib/PlaYUVerDefs.h | 5 +- lib/PlaYUVerFrame.cpp | 106 +- lib/PlaYUVerFramePixelFormats.cpp | 217 ++- lib/PlaYUVerFramePixelFormats.h | 3 +- lib/PlaYUVerOptions.cpp | 48 +- lib/PlaYUVerOptions.h | 5 +- lib/PlaYUVerPixel.h | 14 +- lib/PlaYUVerStream.cpp | 84 +- lib/PlaYUVerStream.h | 48 +- lib/PlaYUVerStreamHandlerIf.h | 34 +- lib/StreamHandlerLibav.cpp | 57 +- lib/StreamHandlerLibav.h | 5 +- lib/StreamHandlerOpenCV.cpp | 6 +- lib/StreamHandlerOpenCV.h | 3 - lib/StreamHandlerPortableMap.cpp | 20 +- lib/StreamHandlerRaw.cpp | 16 + modules/AbsoluteFrameDifference.cpp | 8 +- modules/DisparityStereoBM.cpp | 6 +- modules/DisparityStereoSGBM.cpp | 9 +- modules/DisparityStereoVar.cpp | 7 +- modules/EightBitsSampling.cpp | 4 +- modules/FilterComponent.cpp | 12 +- modules/FrameCrop.cpp | 13 +- modules/FrameDifference.cpp | 7 +- modules/FrameMask.cpp | 8 +- modules/FrameShift.cpp | 12 +- modules/InterFrameVariance.cpp | 8 +- modules/MeasureOpticalFlowDualTVL1.cpp | 14 +- modules/OpticalFlow.cpp | 14 +- modules/SetChromaHalfScale.cpp | 3 +- modules/WeightedPSNR.cpp | 3 +- tools/PlaYUVerTools.cpp | 39 +- 62 files changed, 1422 insertions(+), 2579 deletions(-) diff --git a/.clang-format b/.clang-format index 8985e75..6e8cf9f 100644 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,7 @@ --- Language: Cpp # BasedOnStyle: Chromium -ColumnLimit: 100 +ColumnLimit: 150 AccessModifierOffset: -2 AlignAfterOpenBracket: Align AlignConsecutiveAssignments: false diff --git a/app/AboutDialog.cpp b/app/AboutDialog.cpp index a4b61f5..a73bad3 100644 --- a/app/AboutDialog.cpp +++ b/app/AboutDialog.cpp @@ -37,16 +37,14 @@ AboutDialog::AboutDialog( QWidget* parent ) : QDialog( parent ) { - QPixmap logo = QPixmap( ":/images/playuver-backgroud-logo.png" ) - .scaled( QSize( 500, 350 ), Qt::KeepAspectRatio ); + QPixmap logo = QPixmap( ":/images/playuver-backgroud-logo.png" ).scaled( QSize( 500, 350 ), Qt::KeepAspectRatio ); QLabel* pixmapLabel = new QLabel; pixmapLabel->setPixmap( logo ); - QLabel* label = - new QLabel( QString( "

%1 Version %2

%3

" ) - .arg( QApplication::applicationName() ) - .arg( QApplication::applicationVersion() ) - .arg( tr( "Enhanced open-source Qt-based raw video player" ) ) ); + QLabel* label = new QLabel( QString( "

%1 Version %2

%3

" ) + .arg( QApplication::applicationName() ) + .arg( QApplication::applicationVersion() ) + .arg( tr( "Enhanced open-source Qt-based raw video player" ) ) ); label->setWordWrap( true ); QString featuresList = QStringLiteral( "

Features: