Skip to content

Commit

Permalink
VCEEnc.auoのビルドを修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Dec 18, 2022
1 parent de6d8aa commit 5956a3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion VCECore/VCECore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,12 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="vce_amf.cpp" />
<ClCompile Include="vce_amf.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="vce_cmd.cpp" />
<ClCompile Include="vce_core.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
Expand Down
12 changes: 6 additions & 6 deletions VCEEnc/frm/frmConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1382,16 +1382,16 @@ System::Void frmConfig::ConfToFrm(CONF_GUIEX *cnf) {
SetNUValue(fcgNUAspectRatioX, abs(enc.par[0]));
SetNUValue(fcgNUAspectRatioY, abs(enc.par[1]));

SetNUValue(fcgNUQPMax, enc.nQPMax);
SetNUValue(fcgNUQPMin, enc.nQPMin);
SetNUValue(fcgNUQPMax, enc.nQPMax.value_or(0));
SetNUValue(fcgNUQPMin, enc.nQPMin.value_or(0));
SetNUValue(fcgNUBDeltaQP, enc.nDeltaQPBFrame);
SetNUValue(fcgNUBRefDeltaQP, enc.nDeltaQPBFrameRef);

SetNUValue(fcgNUSlices, enc.nSlices);
SetNUValue(fcgNURefFrames, enc.nRefFrames);

fcgCBDeblock->Checked = enc.bDeblockFilter;
fcgCBSkipFrame->Checked = enc.bEnableSkipFrame;
fcgCBSkipFrame->Checked = enc.enableSkipFrame.value_or(false);
fcgCBTimerPeriodTuning->Checked = enc.bTimerPeriodTuning;
fcgCBVBAQ->Checked = enc.bVBAQ;
fcgCBFullrange->Checked = enc.common.out_vui.colorrange == RGY_COLORRANGE_FULL;
Expand Down Expand Up @@ -1593,8 +1593,8 @@ System::String^ frmConfig::FrmToConf(CONF_GUIEX *cnf) {
enc.nQPI = (int)fcgNUQPI->Value;
enc.nQPP = (int)fcgNUQPP->Value;
enc.nQPB = (int)fcgNUQPB->Value;
enc.nQPMax = (int)fcgNUQPMax->Value;
enc.nQPMin = (int)fcgNUQPMin->Value;
if (fcgNUQPMax->Value > 0) enc.nQPMax = (int)fcgNUQPMax->Value;
if (fcgNUQPMin->Value > 0) enc.nQPMin = (int)fcgNUQPMin->Value;

enc.nBframes = (int)fcgNUBframes->Value;
enc.bBPyramid = fcgCBBPyramid->Checked;
Expand All @@ -1606,7 +1606,7 @@ System::String^ frmConfig::FrmToConf(CONF_GUIEX *cnf) {
enc.nRefFrames = (int)fcgNURefFrames->Value;

enc.bDeblockFilter = fcgCBDeblock->Checked;
enc.bEnableSkipFrame = fcgCBSkipFrame->Checked;
if (fcgCBSkipFrame->Checked) enc.enableSkipFrame = fcgCBSkipFrame->Checked;
enc.bVBAQ = fcgCBVBAQ->Checked;
enc.common.out_vui.colorrange = fcgCBFullrange->Checked ? RGY_COLORRANGE_FULL : RGY_COLORRANGE_UNSPECIFIED;
enc.common.out_vui.matrix = (CspMatrix)list_colormatrix[fcgCXColorMatrix->SelectedIndex].value;
Expand Down

0 comments on commit 5956a3a

Please sign in to comment.