Lines Matching refs:buffers
75 CameraBuffer *buffers = new CameraBuffer [numArrayEntriesC]; in allocateBufferList() local
76 if(!buffers) { in allocateBufferList()
83 memset(buffers, 0, sizeof(CameraBuffer) * numArrayEntriesC); in allocateBufferList()
114 buffers[i].type = CAMERA_BUFFER_ION; in allocateBufferList()
115 buffers[i].opaque = data; in allocateBufferList()
116 buffers[i].mapped = data; in allocateBufferList()
117 buffers[i].ion_handle = handle; in allocateBufferList()
118 buffers[i].ion_fd = mIonFd; in allocateBufferList()
119 buffers[i].fd = mmap_fd; in allocateBufferList()
120 buffers[i].size = size; in allocateBufferList()
121 buffers[i].format = CameraHal::getPixelFormatConstant(format); in allocateBufferList()
128 return buffers; in allocateBufferList()
133 if(buffers) in allocateBufferList()
134 freeBufferList(buffers); in allocateBufferList()
170 int MemoryManager::freeBufferList(CameraBuffer *buffers) in freeBufferList() argument
177 if(!buffers) in freeBufferList()
185 while(buffers[i].type == CAMERA_BUFFER_ION) in freeBufferList()
187 if(buffers[i].size) in freeBufferList()
189 munmap(buffers[i].opaque, buffers[i].size); in freeBufferList()
190 close(buffers[i].fd); in freeBufferList()
191 ion_free(mIonFd, buffers[i].ion_handle); in freeBufferList()
200 delete [] buffers; in freeBufferList()