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 */
| 270 | * it also limits us greatly in our choice of formats, hence the flag to disable |
| 271 | * strict_compliance */ |
| 272 | static 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() */ |
| 281 | static void encode_frame_size(VC2EncContext *s) |
no test coverage detected