Template =""> int TVideoDecoderAMF::GetCapability(GUID EncodeGUID, NV_ENC_CAPS CapsToQuery) const { if (IsOpen()) { int CapsValue = 0;NV_ENC_STRUCT(NV_ENC_CAPS_PARAM, CapsParam); CapsParam.capsToQuery = CapsToQuery;AMFSTATUS const Result = FAPI::Get().AMFGetEncodeCaps(Decoder, EncodeGUID, &CapsParam, &CapsValue); if (Result != NV_ENC_SUCCESS) { FAVResult::Log(EAVResult::Warning, FString::Printf(TEXT("Failed to query for AMF capability %d"), CapsToQuery), TEXT("AMF"), Result);return 0; }return CapsValue; }return FAVResult(EAVResult::ErrorInvalidState, TEXT("Decoder not open"), TEXT("AMF")); }