| 461 | } |
| 462 | |
| 463 | void 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 | |
| 478 | void FFMS_VideoSource::SetInputFormat(int ColorSpace, int ColorRange, AVPixelFormat Format) { |
| 479 | InputFormatOverridden = true; |
no test coverage detected