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

Function encode_parse_params

libavcodec/vc2enc.c:272–278  ·  view source on GitHub ↗

VC-2 11.1 - parse_parameters() * The level dictates what the decoder should expect in terms of resolution * and allows it to quickly reject whatever it can't support. Remember, * this codec kinda targets cheapo FPGAs without much memory. Unfortunately * it also limits us greatly in our choice of formats, hence the flag to disable * strict_compliance */

Source from the content-addressed store, hash-verified

270 * it also limits us greatly in our choice of formats, hence the flag to disable
271 * strict_compliance */
272static void encode_parse_params(VC2EncContext *s)
273{
274 put_vc2_ue_uint(&s->pb, s->ver.major); /* VC-2 demands this to be 2 */
275 put_vc2_ue_uint(&s->pb, s->ver.minor); /* ^^ and this to be 0 */
276 put_vc2_ue_uint(&s->pb, s->profile); /* 3 to signal HQ profile */
277 put_vc2_ue_uint(&s->pb, s->level); /* 3 - 1080/720, 6 - 4K */
278}
279
280/* VC-2 11.3 - frame_size() */
281static void encode_frame_size(VC2EncContext *s)

Callers 1

encode_seq_headerFunction · 0.85

Calls 1

put_vc2_ue_uintFunction · 0.85

Tested by

no test coverage detected