| 323 | } |
| 324 | |
| 325 | void ff_mpeg1_encode_slice_header(MPVEncContext *const s) |
| 326 | { |
| 327 | if (s->c.codec_id == AV_CODEC_ID_MPEG2VIDEO && s->c.height > 2800) { |
| 328 | put_header(s, SLICE_MIN_START_CODE + (s->c.mb_y & 127)); |
| 329 | /* slice_vertical_position_extension */ |
| 330 | put_bits(&s->pb, 3, s->c.mb_y >> 7); |
| 331 | } else { |
| 332 | av_assert1(s->c.mb_y <= SLICE_MAX_START_CODE - SLICE_MIN_START_CODE); |
| 333 | put_header(s, SLICE_MIN_START_CODE + s->c.mb_y); |
| 334 | } |
| 335 | put_qscale(s); |
| 336 | /* slice extra information */ |
| 337 | put_bits(&s->pb, 1, 0); |
| 338 | } |
| 339 | |
| 340 | static int mpeg1_encode_picture_header(MPVMainEncContext *const m) |
| 341 | { |
no test coverage detected