Home | History | Annotate | Download | only in source

Lines Matching refs:skip

287   // Compute amount of lines to skip to implement vertical crop.
288 // TODO(fbarchard): Ensure skip is a multiple of maximum component
290 int skip = (GetHeight() - dst_height) / 2;
291 if (skip > 0) {
292 // There is no API to skip lines in the output data, so we read them
294 while (skip >= GetImageScanlinesPerImcuRow()) {
299 skip -= GetImageScanlinesPerImcuRow();
301 if (skip > 0) {
302 // Have a partial iMCU row left over to skip. Must read it and then
309 // TODO(fbarchard): Compute skip to avoid this
310 assert(skip % GetVertSubSampFactor(i) == 0);
312 DivideAndRoundDown(skip, GetVertSubSampFactor(i));
320 lines_left -= (GetImageScanlinesPerImcuRow() - skip);
376 // TODO(fbarchard): Compute amount of lines to skip to implement vertical crop
377 int skip = (GetHeight() - dst_height) / 2;
378 if (skip > 0) {
379 while (skip >= GetImageScanlinesPerImcuRow()) {
384 skip -= GetImageScanlinesPerImcuRow();
386 if (skip > 0) {
387 // Have a partial iMCU row left over to skip.
393 // TODO(fbarchard): Compute skip to avoid this
394 assert(skip % GetVertSubSampFactor(i) == 0);
395 int rows_to_skip = DivideAndRoundDown(skip, GetVertSubSampFactor(i));
401 int scanlines_to_copy = GetImageScanlinesPerImcuRow() - skip;
405 int rows_to_skip = DivideAndRoundDown(skip, GetVertSubSampFactor(i));