Home | History | Annotate | Download | only in HAL

Lines Matching full:dequeuedidx

1736     int dequeuedIdx = BAD_INDEX;
1761 dequeuedIdx = i;
1766 if ((dequeuedIdx == BAD_INDEX) && (mMappableBuffers < mBufferCount)) {
1767 dequeuedIdx = mMappableBuffers;
1768 LOGD("Placing buffer in idx:%d", dequeuedIdx);
1769 mBufferHandle[dequeuedIdx] = buffer_handle;
1770 mLocalFlag[dequeuedIdx] = BUFFER_OWNED;
1772 mPrivateHandle[dequeuedIdx] =
1773 (struct private_handle_t *)(*mBufferHandle[dequeuedIdx]);
1774 mMemInfo[dequeuedIdx].main_ion_fd = open("/dev/ion", O_RDONLY);
1775 if (mMemInfo[dequeuedIdx].main_ion_fd < 0) {
1782 ion_info_fd.fd = mPrivateHandle[dequeuedIdx]->fd;
1783 if (ioctl(mMemInfo[dequeuedIdx].main_ion_fd,
1789 mCameraMemory[dequeuedIdx] =
1790 mGetMemory(mPrivateHandle[dequeuedIdx]->fd,
1791 (size_t)mPrivateHandle[dequeuedIdx]->size,
1795 dequeuedIdx, mPrivateHandle[dequeuedIdx]->fd,
1796 mPrivateHandle[dequeuedIdx]->size,
1797 mPrivateHandle[dequeuedIdx]->offset);
1798 mMemInfo[dequeuedIdx].fd = mPrivateHandle[dequeuedIdx]->fd;
1799 mMemInfo[dequeuedIdx].size =
1800 (size_t)mPrivateHandle[dequeuedIdx]->size;
1801 mMemInfo[dequeuedIdx].handle = ion_info_fd.handle;
1808 return dequeuedIdx;
1864 int32_t dequeuedIdx = BAD_INDEX;
1868 dequeuedIdx = BAD_INDEX;
1877 dequeuedIdx = i;
1882 if ((dequeuedIdx == BAD_INDEX) &&
1884 dequeuedIdx = mMappableBuffers;
1885 LOGD("Placing buffer in idx:%d", dequeuedIdx);
1886 mBufferHandle[dequeuedIdx] = buffer_handle;
1887 mLocalFlag[dequeuedIdx] = BUFFER_OWNED;
1889 mPrivateHandle[dequeuedIdx] =
1890 (struct private_handle_t *)(*mBufferHandle[dequeuedIdx]);
1892 setMetaData(mPrivateHandle[dequeuedIdx], UPDATE_REFRESH_RATE, (void*)&mMaxFPS);
1893 mMemInfo[dequeuedIdx].main_ion_fd = open("/dev/ion", O_RDONLY);
1894 if (mMemInfo[dequeuedIdx].main_ion_fd < 0) {
1901 ion_info_fd.fd = mPrivateHandle[dequeuedIdx]->fd;
1902 if (ioctl(mMemInfo[dequeuedIdx].main_ion_fd,
1908 setMetaData(mPrivateHandle[dequeuedIdx], UPDATE_COLOR_SPACE,
1910 mCameraMemory[dequeuedIdx] =
1911 mGetMemory(mPrivateHandle[dequeuedIdx]->fd,
1912 (size_t)mPrivateHandle[dequeuedIdx]->size,
1916 dequeuedIdx, mPrivateHandle[dequeuedIdx]->fd,
1917 mPrivateHandle[dequeuedIdx]->size,
1918 mPrivateHandle[dequeuedIdx]->offset);
1919 mMemInfo[dequeuedIdx].fd = mPrivateHandle[dequeuedIdx]->fd;
1920 mMemInfo[dequeuedIdx].size =
1921 (size_t)mPrivateHandle[dequeuedIdx]->size;
1922 mMemInfo[dequeuedIdx].handle = ion_info_fd.handle;
1930 return dequeuedIdx;