int MediaBindingService::GetVideoEncoderConfigurations(_trt__GetVideoEncoderConfigurations *trt__GetVideoEncoderConfigurations, _trt__GetVideoEncoderConfigurationsResponse *trt__GetVideoEncoderConfigurationsResponse) { std::cout << __FUNCTION__ << std::endl; ServiceContext* ctx = (ServiceContext*)this->soap->user; for (auto it: ctx->m_devices) { trt__GetVideoEncoderConfigurationsResponse->Configurations.push_back(ctx->getVideoEncoderCfg(this->soap, it.first)); } return SOAP_OK; }
int MediaBindingService::GetCompatibleVideoEncoderConfigurations(_trt__GetCompatibleVideoEncoderConfigurations *trt__GetCompatibleVideoEncoderConfigurations, _trt__GetCompatibleVideoEncoderConfigurationsResponse *trt__GetCompatibleVideoEncoderConfigurationsResponse) { std::cout << __FUNCTION__ << std::endl; ServiceContext* ctx = (ServiceContext*)this->soap->user; auto it = ctx->m_devices.find(trt__GetCompatibleVideoEncoderConfigurations->ProfileToken); if (it != ctx->m_devices.end()) { trt__GetCompatibleVideoEncoderConfigurationsResponse->Configurations.push_back(ctx->getVideoEncoderCfg(this->soap, it->first)); } return SOAP_OK; }
int MediaBindingService::GetVideoEncoderConfiguration(_trt__GetVideoEncoderConfiguration *trt__GetVideoEncoderConfiguration, _trt__GetVideoEncoderConfigurationResponse *trt__GetVideoEncoderConfigurationResponse) { std::cout << __FUNCTION__ << std::endl; ServiceContext* ctx = (ServiceContext*)this->soap->user; auto it = ctx->m_devices.find(trt__GetVideoEncoderConfiguration->ConfigurationToken); if (it != ctx->m_devices.end()) { trt__GetVideoEncoderConfigurationResponse->Configuration = ctx->getVideoEncoderCfg(this->soap, it->first); } return SOAP_OK; }