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

Method SetInputFormat

src/core/videosource.cpp:478–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478void FFMS_VideoSource::SetInputFormat(int ColorSpace, int ColorRange, AVPixelFormat Format) {
479 InputFormatOverridden = true;
480
481 if (Format != AV_PIX_FMT_NONE)
482 InputFormat = Format;
483 if (ColorRange != AVCOL_RANGE_UNSPECIFIED)
484 InputColorRange = (AVColorRange)ColorRange;
485 if (ColorSpace != AVCOL_SPC_UNSPECIFIED)
486 InputColorSpace = (AVColorSpace)ColorSpace;
487
488 if (TargetPixelFormats.size()) {
489 ReAdjustOutputFormat(DecodeFrame);
490 OutputFrame(DecodeFrame);
491 }
492}
493
494void FFMS_VideoSource::DetectInputFormat() {
495 if (InputFormat == AV_PIX_FMT_NONE)

Callers 1

FFMS_SetInputFormatVFunction · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected