Lines Matching defs:rounding
188 int i, rounding;
193 rounding = ctx->slice_block_rows - ctx->nb_slices * ctx->slice_size;
194 if (rounding > 0) {
195 // Place rounding error at top and bottom of frame.
196 av_assert0(rounding < pic->nb_slices);
200 if (rounding <= 2) {
201 for (i = 0; i < rounding; i++)
204 for (i = 0; i < (rounding + 1) / 2; i++)
206 for (i = 0; i < rounding / 2; i++)
209 } else if (rounding < 0) {
210 // Remove rounding error from last slice only.
211 av_assert0(rounding < ctx->slice_size);
212 pic->slices[pic->nb_slices - 1].row_size += rounding;