Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
deiteris committed Dec 22, 2022
1 parent b1f27da commit 2878200
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion alvr/server/cpp/platform/linux/EncodePipelineAMF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ amf::AMFComponentPtr EncodePipelineAMF::MakeEncoder(amf::AMF_SURFACE_FORMAT inpu
case ALVR_CAVLC:
amfEncoder->SetProperty(AMF_VIDEO_ENCODER_CABAC_ENABLE, AMF_VIDEO_ENCODER_CALV);
break;
}
}

switch (Settings::Instance().m_encoderQualityPreset) {
case QUALITY:
Expand Down
28 changes: 14 additions & 14 deletions alvr/server/cpp/platform/win32/VideoEncoderVCE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ amf::AMFComponentPtr VideoEncoderVCE::MakeEncoder(

amfEncoder->SetProperty(AMF_VIDEO_ENCODER_MAX_NUM_REFRAMES, 0);

amf::AMFCapsPtr caps;
if (amfEncoder->GetCaps(&caps) == AMF_OK) {
caps->GetProperty(AMF_VIDEO_ENCODER_CAPS_QUERY_TIMEOUT_SUPPORT, &m_hasQueryTimeout);
}
if (m_hasQueryTimeout) {
amfEncoder->SetProperty(AMF_VIDEO_ENCODER_QUERY_TIMEOUT, 1000); // 1s timeout
}
amf::AMFCapsPtr caps;
if (amfEncoder->GetCaps(&caps) == AMF_OK) {
caps->GetProperty(AMF_VIDEO_ENCODER_CAPS_QUERY_TIMEOUT_SUPPORT, &m_hasQueryTimeout);
}
if (m_hasQueryTimeout) {
amfEncoder->SetProperty(AMF_VIDEO_ENCODER_QUERY_TIMEOUT, 1000); // 1s timeout
}
}
else
{
Expand Down Expand Up @@ -271,13 +271,13 @@ amf::AMFComponentPtr VideoEncoderVCE::MakeEncoder(

amfEncoder->SetProperty(AMF_VIDEO_ENCODER_HEVC_MAX_NUM_REFRAMES, 0);

amf::AMFCapsPtr caps;
if (amfEncoder->GetCaps(&caps) == AMF_OK) {
caps->GetProperty(AMF_VIDEO_ENCODER_CAPS_HEVC_QUERY_TIMEOUT_SUPPORT, &m_hasQueryTimeout);
}
if (m_hasQueryTimeout) {
amfEncoder->SetProperty(AMF_VIDEO_ENCODER_HEVC_QUERY_TIMEOUT, 1000); // 1s timeout
}
amf::AMFCapsPtr caps;
if (amfEncoder->GetCaps(&caps) == AMF_OK) {
caps->GetProperty(AMF_VIDEO_ENCODER_CAPS_HEVC_QUERY_TIMEOUT_SUPPORT, &m_hasQueryTimeout);
}
if (m_hasQueryTimeout) {
amfEncoder->SetProperty(AMF_VIDEO_ENCODER_HEVC_QUERY_TIMEOUT, 1000); // 1s timeout
}
}

Debug("Configured %s.\n", pCodec);
Expand Down

0 comments on commit 2878200

Please sign in to comment.