VC-2 11.3.3 - color_diff_sampling_format() */
| 290 | |
| 291 | /* VC-2 11.3.3 - color_diff_sampling_format() */ |
| 292 | static void encode_sample_fmt(VC2EncContext *s) |
| 293 | { |
| 294 | put_bits(&s->pb, 1, !s->strict_compliance); |
| 295 | if (!s->strict_compliance) { |
| 296 | int idx; |
| 297 | if (s->chroma_x_shift == 1 && s->chroma_y_shift == 0) |
| 298 | idx = 1; /* 422 */ |
| 299 | else if (s->chroma_x_shift == 1 && s->chroma_y_shift == 1) |
| 300 | idx = 2; /* 420 */ |
| 301 | else |
| 302 | idx = 0; /* 444 */ |
| 303 | put_vc2_ue_uint(&s->pb, idx); |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | /* VC-2 11.3.4 - scan_format() */ |
| 308 | static void encode_scan_format(VC2EncContext *s) |
no test coverage detected