| 168 | } |
| 169 | |
| 170 | FFMS_API(int) FFMS_SetOutputFormatV2(FFMS_VideoSource *V, const int *TargetFormats, int Width, int Height, int Resizer, FFMS_ErrorInfo *ErrorInfo) { |
| 171 | ClearErrorInfo(ErrorInfo); |
| 172 | try { |
| 173 | V->SetOutputFormat(reinterpret_cast<const AVPixelFormat *>(TargetFormats), Width, Height, Resizer); |
| 174 | } catch (FFMS_Exception &e) { |
| 175 | return e.CopyOut(ErrorInfo); |
| 176 | } |
| 177 | return FFMS_ERROR_SUCCESS; |
| 178 | } |
| 179 | |
| 180 | FFMS_API(void) FFMS_ResetOutputFormatV(FFMS_VideoSource *V) { |
| 181 | V->ResetOutputFormat(); |
no test coverage detected