MCPcopy Create free account
hub / github.com/FFMS/ffms2 / FFMS_SetOutputFormatV2

Function FFMS_SetOutputFormatV2

src/core/ffms.cpp:170–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170FFMS_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
180FFMS_API(void) FFMS_ResetOutputFormatV(FFMS_VideoSource *V) {
181 V->ResetOutputFormat();

Callers 2

InitOutputFormatMethod · 0.85
InitOutputFormatMethod · 0.85

Calls 3

ClearErrorInfoFunction · 0.85
CopyOutMethod · 0.80
SetOutputFormatMethod · 0.45

Tested by

no test coverage detected