MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / parse_avid

Function parse_avid

libavcodec/mjpegdec.c:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static void parse_avid(MJpegDecodeContext *s, uint8_t *buf, int len)
105{
106 if (len > 12 && buf[12] == 1) /* 1 - NTSC */
107 s->interlace_polarity = 1;
108 if (len > 12 && buf[12] == 2) /* 2 - PAL */
109 s->interlace_polarity = 0;
110 if (s->avctx->debug & FF_DEBUG_PICT_INFO)
111 av_log(s->avctx, AV_LOG_INFO, "AVID: len:%d %d\n", len, len > 12 ? buf[12] : -1);
112}
113
114static void init_idct(AVCodecContext *avctx)
115{

Callers 2

ff_mjpeg_decode_initFunction · 0.85
mjpeg_decode_comFunction · 0.85

Calls 1

av_logFunction · 0.85

Tested by

no test coverage detected