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

Function write_slice_end

libavcodec/mpegvideo_enc.c:2853–2871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2851}
2852
2853static 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
2873static void write_mb_info(MPVEncContext *const s)
2874{

Callers 1

encode_threadFunction · 0.85

Calls 6

ff_mpeg4_stuffingFunction · 0.85
ff_mjpeg_encode_stuffingFunction · 0.85
ff_speedhq_end_sliceFunction · 0.85
flush_put_bitsFunction · 0.85
get_bits_diffFunction · 0.85

Tested by

no test coverage detected