From: Ramiro Polla <ramiro.polla@gmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] libavcodec/mpegvideo_enc: fix multi-threaded motion estimation rounding for mpeg4 Date: Sat, 11 May 2024 10:25:50 +0200 Message-ID: <CALweWgCVRoZP-zzhW90oXRuUgdOj3sCBnREomrNvqg8xe-cQbg@mail.gmail.com> (raw) In-Reply-To: <20240509004444.GJ6420@pb2> On Thu, May 9, 2024 at 2:44 AM Michael Niedermayer <michael@niedermayer.cc> wrote: > On Wed, May 08, 2024 at 05:19:49PM +0200, Ramiro Polla wrote: > > ff_init_me() was being called after ff_update_duplicate_context(), > > which caused the propagation of the initialization to other thread > > contexts to be delayed by one frame. > > > > In the case of mpeg4 (or flipflop_rounding), this would make the > > hpel_put functions differ between the first thread (which would be > > correctly initialized) and the other threads (which would be stale > > from the previous frame). > > --- > > libavcodec/mpegvideo_enc.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > have you confirmed the actual used rounding matches after this > encoder & decoder side ? Yes, I just rechecked it. It used to be wrong (only the first slice would use the correct hpel/qpel functions in the encoder according to the no_rounding flag in the bitstream). > if yes then this should be ok Thanks. Pushed. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2024-05-11 8:26 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-05-08 15:19 Ramiro Polla 2024-05-08 15:19 ` [FFmpeg-devel] [PATCH v2 2/2] libavcodec/motion_est: fix penalty_factor for b frames Ramiro Polla 2024-05-08 21:47 ` Michael Niedermayer 2024-05-11 7:42 ` Ramiro Polla 2024-05-09 0:44 ` [FFmpeg-devel] [PATCH v2 1/2] libavcodec/mpegvideo_enc: fix multi-threaded motion estimation rounding for mpeg4 Michael Niedermayer 2024-05-11 8:25 ` Ramiro Polla [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CALweWgCVRoZP-zzhW90oXRuUgdOj3sCBnREomrNvqg8xe-cQbg@mail.gmail.com \ --to=ramiro.polla@gmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git