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

Method SetOutputFormat

src/core/videosource.cpp:463–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463void FFMS_VideoSource::SetOutputFormat(const AVPixelFormat *TargetFormats, int Width, int Height, int Resizer) {
464 TargetWidth = Width;
465 TargetHeight = Height;
466 TargetResizer = Resizer;
467 TargetPixelFormats.clear();
468 while (*TargetFormats != AV_PIX_FMT_NONE)
469 TargetPixelFormats.push_back(*TargetFormats++);
470 OutputColorSpaceSet = true;
471 OutputColorRangeSet = true;
472 OutputFormat = AV_PIX_FMT_NONE;
473
474 ReAdjustOutputFormat(DecodeFrame);
475 OutputFrame(DecodeFrame);
476}
477
478void FFMS_VideoSource::SetInputFormat(int ColorSpace, int ColorRange, AVPixelFormat Format) {
479 InputFormatOverridden = true;

Callers 2

FFMS_SetOutputFormatV2Function · 0.45
FFMS_SetOutputFormatAFunction · 0.45

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected