Home
last modified time | relevance | path

Searched refs:tilesInTask (Results 1 – 1 of 1) sorted by relevance

/external/skia/src/codec/
DSkRawCodec.cpp50 int num_tasks_required(const dng_point& tilesInTask, in num_tasks_required() argument
52 return ((tilesInArea.v + tilesInTask.v - 1) / tilesInTask.v) * in num_tasks_required()
53 ((tilesInArea.h + tilesInTask.h - 1) / tilesInTask.h); in num_tasks_required()
60 dng_point tilesInTask = {1, 1}; in num_tiles_per_task() local
61 while (num_tasks_required(tilesInTask, tilesInArea) > maxTasks) { in num_tiles_per_task()
62 if (tilesInTask.h < tilesInArea.h) { in num_tiles_per_task()
63 ++tilesInTask.h; in num_tiles_per_task()
64 } else if (tilesInTask.v < tilesInArea.v) { in num_tiles_per_task()
65 ++tilesInTask.v; in num_tiles_per_task()
70 return tilesInTask; in num_tiles_per_task()