Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 12 files). Show all
Unified · Split
| @@ -196,7 +196,7 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 195 unmodified lines | |||
| 196 | /* Interfaces override from ISVCEncoder */ | 196 | /* Interfaces override from ISVCEncoder */ |
| 197 | 197 | ||
| 198 | int CWelsH264SVCEncoder::GetDefaultParams (SEncParamExt* argv) { | 198 | int CWelsH264SVCEncoder::GetDefaultParams (SEncParamExt* argv) { |
| 199 | SWelsSvcCodingParam::FillDefault(*argv, true); | 199 | SWelsSvcCodingParam::FillDefault(*argv); |
| 200 | return cmResultSuccess; | 200 | return cmResultSuccess; |
| 201 | } | 201 | } |
| 202 | 202 | ||
| @@ -211,9 +211,9 @@ int CWelsH264SVCEncoder::Initialize (const SEncParamBase* argv) { · 8 unmodified lines | |||
| 211 | return cmInitParaError; | 211 | return cmInitParaError; |
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | SWelsSvcCodingParam sConfig (true); | 214 | SWelsSvcCodingParam sConfig; |
| 215 | // Convert SEncParamBase into WelsSVCParamConfig here.. | 215 | // Convert SEncParamBase into WelsSVCParamConfig here.. |
| 216 | if (sConfig.ParamBaseTranscode (*argv, true)) { | 216 | if (sConfig.ParamBaseTranscode (*argv)) { |
| 217 | WelsLog (m_pEncContext, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), parameter_translation failed.\n"); | 217 | WelsLog (m_pEncContext, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), parameter_translation failed.\n"); |
| 218 | Uninitialize(); | 218 | Uninitialize(); |
| 219 | return cmInitParaError; | 219 | return cmInitParaError; |
| @@ -230,7 +230,7 @@ int CWelsH264SVCEncoder::InitializeExt (const SEncParamExt* argv) { · 10 unmodified lines | |||
| 230 | return cmInitParaError; | 230 | return cmInitParaError; |
| 231 | } | 231 | } |
| 232 | 232 | ||
| 233 | SWelsSvcCodingParam sConfig (true); | 233 | SWelsSvcCodingParam sConfig; |
| 234 | // Convert SEncParamExt into WelsSVCParamConfig here.. | 234 | // Convert SEncParamExt into WelsSVCParamConfig here.. |
| 235 | if (sConfig.ParamTranscode (*argv)) { | 235 | if (sConfig.ParamTranscode (*argv)) { |
| 236 | WelsLog (m_pEncContext, WELS_LOG_ERROR, "CWelsH264SVCEncoder::InitializeExt(), parameter_translation failed.\n"); | 236 | WelsLog (m_pEncContext, WELS_LOG_ERROR, "CWelsH264SVCEncoder::InitializeExt(), parameter_translation failed.\n"); |
| @@ -686,7 +686,7 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 449 unmodified lines | |||
| 686 | break; | 686 | break; |
| 687 | case ENCODER_OPTION_SVC_ENCODE_PARAM_EXT: { // SVC Encoding Parameter | 687 | case ENCODER_OPTION_SVC_ENCODE_PARAM_EXT: { // SVC Encoding Parameter |
| 688 | SEncParamExt sEncodingParam; | 688 | SEncParamExt sEncodingParam; |
| 689 | SWelsSvcCodingParam sConfig (true); | 689 | SWelsSvcCodingParam sConfig; |
| 690 | int32_t iInputColorspace = 0; | 690 | int32_t iInputColorspace = 0; |
| 691 | int32_t iTargetWidth = 0; | 691 | int32_t iTargetWidth = 0; |
| 692 | int32_t iTargetHeight = 0; | 692 | int32_t iTargetHeight = 0; |