Skip to content

Commit

Permalink
AMFから取得できる解像度の情報が間違っていることがあるので、設定値を表示するように。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Feb 3, 2017
1 parent 31267d8 commit 6f8ed51
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions VCECore/VCECore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1721,9 +1721,6 @@ tstring VCECore::GetEncoderParam() {
getCPUInfo(cpu_info);
getGPUInfo("Advanced Micro Device", gpu_info, _countof(gpu_info));

AMFSize frameSize;
pProperty->GetProperty(AMF_PARAM_FRAMESIZE(m_VCECodecId), &frameSize);

AMFRate frameRate;
pProperty->GetProperty(AMF_PARAM_FRAMERATE(m_VCECodecId), &frameRate);

Expand Down Expand Up @@ -1753,7 +1750,7 @@ tstring VCECore::GetEncoderParam() {
AMFRatio aspectRatio;
pProperty->GetProperty(AMF_PARAM_ASPECT_RATIO(m_VCECodecId), &aspectRatio);
mes += strsprintf(_T(" %dx%d%s %d:%d %0.3ffps (%d/%dfps)\n"),
frameSize.width, frameSize.height,
m_inputInfo.dstWidth, m_inputInfo.dstHeight,
scan_type == AMF_VIDEO_ENCODER_SCANTYPE_INTERLACED ? _T("i") : _T("p"),
aspectRatio.num, aspectRatio.den,
frameRate.num / (double)frameRate.den, frameRate.num, frameRate.den);
Expand Down

0 comments on commit 6f8ed51

Please sign in to comment.