| 492 | } |
| 493 | |
| 494 | void FFMS_VideoSource::DetectInputFormat() { |
| 495 | if (InputFormat == AV_PIX_FMT_NONE) |
| 496 | InputFormat = CodecContext->pix_fmt; |
| 497 | |
| 498 | AVColorRange RangeFromFormat = handle_jpeg(&InputFormat); |
| 499 | |
| 500 | if (InputColorRange == AVCOL_RANGE_UNSPECIFIED) |
| 501 | InputColorRange = RangeFromFormat; |
| 502 | if (InputColorRange == AVCOL_RANGE_UNSPECIFIED) |
| 503 | InputColorRange = CodecContext->color_range; |
| 504 | |
| 505 | if (InputColorSpace == AVCOL_SPC_UNSPECIFIED) |
| 506 | InputColorSpace = CodecContext->colorspace; |
| 507 | } |
| 508 | |
| 509 | void FFMS_VideoSource::ReAdjustOutputFormat(AVFrame *Frame) { |
| 510 | if (SWS) { |
nothing calls this directly
no test coverage detected