Home | History | Annotate | Download | only in source

Lines Matching refs:skip

268   // Compute amount of lines to skip to implement vertical crop.
269 // TODO(fbarchard): Ensure skip is a multiple of maximum component
271 int skip = (GetHeight() - dst_height) / 2;
272 if (skip > 0) {
273 // There is no API to skip lines in the output data, so we read them
275 while (skip >= GetImageScanlinesPerImcuRow()) {
280 skip -= GetImageScanlinesPerImcuRow();
282 if (skip > 0) {
283 // Have a partial iMCU row left over to skip. Must read it and then
290 // TODO(fbarchard): Compute skip to avoid this
291 assert(skip % GetVertSubSampFactor(i) == 0);
293 DivideAndRoundDown(skip, GetVertSubSampFactor(i));
302 lines_left -= (GetImageScanlinesPerImcuRow() - skip);
360 // TODO(fbarchard): Compute amount of lines to skip to implement vertical crop
361 int skip = (GetHeight() - dst_height) / 2;
362 if (skip > 0) {
363 while (skip >= GetImageScanlinesPerImcuRow()) {
368 skip -= GetImageScanlinesPerImcuRow();
370 if (skip > 0) {
371 // Have a partial iMCU row left over to skip.
377 // TODO(fbarchard): Compute skip to avoid this
378 assert(skip % GetVertSubSampFactor(i) == 0);
379 int rows_to_skip = DivideAndRoundDown(skip, GetVertSubSampFactor(i));
385 int scanlines_to_copy = GetImageScanlinesPerImcuRow() - skip;
389 int rows_to_skip = DivideAndRoundDown(skip, GetVertSubSampFactor(i));