This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 68fdc7b96925dfc0e4b904af30b33ebc7ead3b92 Author: Michael Niedermayer <[email protected]> AuthorDate: Sat Sep 5 03:48:35 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Sat Sep 19 18:50:08 2026 +0000 avcodec/hevc: support skip_pred and skip_idct at AVDISCARD_ALL Decoding a 3032 frame 1920x1080 stream single threaded on x86_64 (gcc, mean +- stddev over 12 interleaved runs each): full decode: 17.326 +- 0.768 s metadata only: 0.127 +- 0.003 s 137x faster, p = 2e-16 (Welch) --- libavcodec/hevc/hevcdec.c | 4 ++++ libavcodec/hevc/refs.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index cc07d2c8e7..b6234a6c34 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -3070,6 +3070,9 @@ static int decode_slice_data(HEVCContext *s, const HEVCLayerContext *l, if (s->avctx->hwaccel) return FF_HW_CALL(s->avctx, decode_slice, nal->raw_data, nal->raw_size); + if (ff_decode_skip_all_pixels(s->avctx)) + return 0; + if (s->avctx->profile == AV_PROFILE_HEVC_SCC) { av_log(s->avctx, AV_LOG_ERROR, "SCC profile is not yet implemented in hevc native decoder.\n"); @@ -3384,6 +3387,7 @@ static int hevc_frame_start(HEVCContext *s, HEVCLayerContext *l, s->sei.common.film_grain_characteristics->present) || s->sei.common.itut_t35.aom_film_grain.enable) && !(s->avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN) && + !ff_decode_skip_all_pixels(s->avctx) && !s->avctx->hwaccel; ret = set_side_data(s); diff --git a/libavcodec/hevc/refs.c b/libavcodec/hevc/refs.c index 2df3a2ad56..84418d2104 100644 --- a/libavcodec/hevc/refs.c +++ b/libavcodec/hevc/refs.c @@ -470,7 +470,7 @@ static HEVCFrame *generate_missing_ref(HEVCContext *s, HEVCLayerContext *l, int if (!frame) return NULL; - if (!s->avctx->hwaccel) { + if (!s->avctx->hwaccel && !ff_decode_skip_all_pixels(s->avctx)) { int nb_planes = l->sps->chroma_format_idc ? 3 : 1; if (!l->sps->pixel_shift) { for (int i = 0; i < nb_planes; i++) -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
