Lines Matching refs:img
286 void DumpYuvToFile(const String8 &fileName, const CpuConsumer::LockedBuffer &img) { in DumpYuvToFile() argument
292 switch (img.format) { in DumpYuvToFile()
294 stride = img.stride; in DumpYuvToFile()
295 chromaStride = img.chromaStride; in DumpYuvToFile()
296 chromaStep = img.chromaStep; in DumpYuvToFile()
297 dataCb = img.dataCb; in DumpYuvToFile()
298 dataCr = img.dataCr; in DumpYuvToFile()
301 stride = img.width; in DumpYuvToFile()
302 chromaStride = img.width; in DumpYuvToFile()
304 dataCr = img.data + img.width * img.height; in DumpYuvToFile()
308 stride = img.stride; in DumpYuvToFile()
309 chromaStride = ALIGN(img.width / 2, 16); in DumpYuvToFile()
311 dataCr = img.data + img.stride * img.height; in DumpYuvToFile()
312 dataCb = dataCr + chromaStride * img.height/2; in DumpYuvToFile()
315 ALOGE("Unknown format %d, not dumping", img.format); in DumpYuvToFile()
324 for (size_t y = 0; y < img.height; ++y) { in DumpYuvToFile()
326 reinterpret_cast<const char*>(img.data + stride * y), in DumpYuvToFile()
327 1, img.width, yuvFile); in DumpYuvToFile()
328 if (bytes != img.width) { in DumpYuvToFile()
338 for (size_t y = 0; y < img.height / 2; ++y) { in DumpYuvToFile()
341 for (size_t x = 0; x < img.width / 2; ++x) { in DumpYuvToFile()
347 1, img.width / 2, yuvFile); in DumpYuvToFile()
348 if (bytes != img.width / 2) { in DumpYuvToFile()