Home
last modified time | relevance | path

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

/hardware/samsung_slsi/exynos5/libcamera2/
DExynosJpegEncoderForCamera.cpp964 int ExynosJpegEncoderForCamera::allocJpegMemory(struct stJpegMem *pstMem, int iMemoryNum) in allocJpegMemory() argument
969 if (pstMem->ionClient < 0) { in allocJpegMemory()
970 JPEG_ERROR_LOG("[%s] i = %d , ionClient is closed (%d)\n", __func__, i, pstMem->ionClient); in allocJpegMemory()
975 if (pstMem->iSize[i] == 0) { in allocJpegMemory()
979 pstMem->ionBuffer[i] = ion_alloc(pstMem->ionClient, \ in allocJpegMemory()
980pstMem->iSize[i], 0, ION_HEAP_SYSTEM_MASK, 0); in allocJpegMemory()
981 if ((pstMem->ionBuffer[i] == -1) ||(pstMem->ionBuffer[i] == 0)) { in allocJpegMemory()
982 JPEG_ERROR_LOG("[%s]ion_alloc(%d) failed\n", __func__, pstMem->iSize[i]); in allocJpegMemory()
983 pstMem->ionBuffer[i] = -1; in allocJpegMemory()
984 freeJpegMemory(pstMem, iMemoryNum); in allocJpegMemory()
[all …]
DExynosJpegEncoderForCamera.h140 int allocJpegMemory(struct stJpegMem *pstMem, int iMemoryNum);
141 void freeJpegMemory(struct stJpegMem *pstMem, int iMemoryNum);
142 void initJpegMemory(struct stJpegMem *pstMem, int iMemoryNum);