| 584 | } |
| 585 | |
| 586 | void 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 | |
| 605 | void FFMS_VideoSource::ResetInputFormat() { |
| 606 | InputFormatOverridden = false; |
no test coverage detected