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

Method DetectInputFormat

src/core/videosource.cpp:494–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void 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
509void FFMS_VideoSource::ReAdjustOutputFormat(AVFrame *Frame) {
510 if (SWS) {

Callers

nothing calls this directly

Calls 1

handle_jpegFunction · 0.85

Tested by

no test coverage detected