| 476 | } |
| 477 | |
| 478 | void 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 | |
| 494 | void FFMS_VideoSource::DetectInputFormat() { |
| 495 | if (InputFormat == AV_PIX_FMT_NONE) |
no test coverage detected