| 2851 | } |
| 2852 | |
| 2853 | static void write_slice_end(MPVEncContext *const s) |
| 2854 | { |
| 2855 | if (CONFIG_MPEG4_ENCODER && s->c.codec_id == AV_CODEC_ID_MPEG4) { |
| 2856 | if (s->partitioned_frame) |
| 2857 | ff_mpeg4_merge_partitions(s); |
| 2858 | |
| 2859 | ff_mpeg4_stuffing(&s->pb); |
| 2860 | } else if ((CONFIG_MJPEG_ENCODER || CONFIG_AMV_ENCODER) && |
| 2861 | s->c.out_format == FMT_MJPEG) { |
| 2862 | ff_mjpeg_encode_stuffing(s); |
| 2863 | } else if (CONFIG_SPEEDHQ_ENCODER && s->c.out_format == FMT_SPEEDHQ) { |
| 2864 | ff_speedhq_end_slice(s); |
| 2865 | } |
| 2866 | |
| 2867 | flush_put_bits(&s->pb); |
| 2868 | |
| 2869 | if ((s->c.avctx->flags & AV_CODEC_FLAG_PASS1) && !s->partitioned_frame) |
| 2870 | s->misc_bits+= get_bits_diff(s); |
| 2871 | } |
| 2872 | |
| 2873 | static void write_mb_info(MPVEncContext *const s) |
| 2874 | { |
no test coverage detected