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

Method ResetOutputFormat

src/core/videosource.cpp:586–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586void FFMS_VideoSource::ResetOutputFormat() {
587 if (SWS) {
588 sws_freeContext(SWS);
589 SWS = nullptr;
590 }
591
592 TargetWidth = -1;
593 TargetHeight = -1;
594 TargetPixelFormats.clear();
595
596 OutputFormat = AV_PIX_FMT_NONE;
597 OutputColorSpace = AVCOL_SPC_UNSPECIFIED;
598 OutputColorRange = AVCOL_RANGE_UNSPECIFIED;
599 OutputColorSpaceSet = false;
600 OutputColorRangeSet = false;
601
602 OutputFrame(DecodeFrame);
603}
604
605void FFMS_VideoSource::ResetInputFormat() {
606 InputFormatOverridden = false;

Callers 1

FFMS_ResetOutputFormatVFunction · 0.80

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected