Lines Matching refs:bufferCnt

1913         metadataAllocArgs.bufferCnt = CAMERA_MIN_METADATA_BUFFERS;  in openCamera()
2569 uint8_t bufferCnt = 1; in getBufNumForAux() local
2583 bufferCnt = getBufNumRequired(stream_type); in getBufNumForAux()
2588 LOGH("Buffer Cnt for Aux Camera : %d", bufferCnt); in getBufNumForAux()
2589 return bufferCnt; in getBufNumForAux()
2604 int bufferCnt = 0; in getBufNumRequired() local
2662 bufferCnt = zslQBuffers + minCircularBufNum + in getBufNumRequired()
2667 bufferCnt += zslQBuffers; in getBufNumRequired()
2670 bufferCnt = CAMERA_MIN_STREAMING_BUFFERS + in getBufNumRequired()
2675 if (bufferCnt > CAMERA_ISP_PING_PONG_BUFFERS ) in getBufNumRequired()
2676 bufferCnt -= CAMERA_ISP_PING_PONG_BUFFERS; in getBufNumRequired()
2682 bufferCnt += EXTRA_ZSL_PREVIEW_STREAM_BUF; in getBufNumRequired()
2687 bufferCnt += CAMERA_MIN_DISPLAY_BUFFERS; in getBufNumRequired()
2691 bufferCnt += minUndequeCount; in getBufNumRequired()
2696 && (bufferCnt < persist_cnt)) { in getBufNumRequired()
2697 bufferCnt = persist_cnt; in getBufNumRequired()
2703 bufferCnt = minCaptureBuffers + in getBufNumRequired()
2709 if (bufferCnt > maxStreamBuf) { in getBufNumRequired()
2710 bufferCnt = maxStreamBuf; in getBufNumRequired()
2712 bufferCnt += minUndequeCount; in getBufNumRequired()
2721 bufferCnt = zslQBuffers + CAMERA_MIN_STREAMING_BUFFERS + in getBufNumRequired()
2725 bufferCnt = zslQBuffers + minCircularBufNum + in getBufNumRequired()
2728 if (getSensorType() == CAM_SENSOR_YUV && bufferCnt > CAMERA_ISP_PING_PONG_BUFFERS) { in getBufNumRequired()
2730 bufferCnt -= CAMERA_ISP_PING_PONG_BUFFERS; in getBufNumRequired()
2733 bufferCnt += zslQBuffers; in getBufNumRequired()
2736 bufferCnt = minCaptureBuffers + in getBufNumRequired()
2741 if (bufferCnt > maxStreamBuf) { in getBufNumRequired()
2742 bufferCnt = maxStreamBuf; in getBufNumRequired()
2752 bufferCnt = zslQBuffers + minCircularBufNum; in getBufNumRequired()
2754 bufferCnt = zslQBuffers + minCircularBufNum; in getBufNumRequired()
2755 if (getSensorType() == CAM_SENSOR_YUV && bufferCnt > CAMERA_ISP_PING_PONG_BUFFERS) { in getBufNumRequired()
2757 bufferCnt -= CAMERA_ISP_PING_PONG_BUFFERS; in getBufNumRequired()
2761 bufferCnt = minCaptureBuffers + in getBufNumRequired()
2766 if (bufferCnt > maxStreamBuf) { in getBufNumRequired()
2767 bufferCnt = maxStreamBuf; in getBufNumRequired()
2774 && (bufferCnt < persist_cnt)) { in getBufNumRequired()
2775 bufferCnt = persist_cnt; in getBufNumRequired()
2780 && (bufferCnt < persist_cnt)) { in getBufNumRequired()
2781 bufferCnt = persist_cnt; in getBufNumRequired()
2789 bufferCnt = CAMERA_MIN_CAMERA_BATCH_BUFFERS; in getBufNumRequired()
2792 bufferCnt = (CAMERA_MIN_VIDEO_BATCH_BUFFERS in getBufNumRequired()
2794 if (bufferCnt < CAMERA_MIN_VIDEO_BUFFERS) { in getBufNumRequired()
2795 bufferCnt = CAMERA_MIN_VIDEO_BUFFERS; in getBufNumRequired()
2799 bufferCnt = CAMERA_MIN_VIDEO_BUFFERS; in getBufNumRequired()
2802 bufferCnt += mParameters.getNumOfExtraBuffersForVideo(); in getBufNumRequired()
2809 bufferCnt += atoi(value); in getBufNumRequired()
2817 bufferCnt = zslQBuffers + minCircularBufNum + in getBufNumRequired()
2823 bufferCnt += zslQBuffers; in getBufNumRequired()
2826 bufferCnt = minCaptureBuffers + in getBufNumRequired()
2833 if (bufferCnt > zslQBuffers + minCircularBufNum) { in getBufNumRequired()
2834 bufferCnt = zslQBuffers + minCircularBufNum; in getBufNumRequired()
2837 if (CAMERA_MIN_METADATA_BUFFERS > bufferCnt) { in getBufNumRequired()
2838 bufferCnt = CAMERA_MIN_METADATA_BUFFERS; in getBufNumRequired()
2844 bufferCnt = minCaptureBuffers; in getBufNumRequired()
2847 bufferCnt -= 1; in getBufNumRequired()
2850 bufferCnt = mParameters.getLongshotStages(); in getBufNumRequired()
2855 bufferCnt = CAMERA_MIN_CALLBACK_BUFFERS; in getBufNumRequired()
2861 bufferCnt = 0; in getBufNumRequired()
2865 LOGH("Buffer count = %d for stream type = %d", bufferCnt, stream_type); in getBufNumRequired()
2866 if (CAM_MAX_NUM_BUFS_PER_STREAM < bufferCnt) { in getBufNumRequired()
2868 bufferCnt, stream_type, CAM_MAX_NUM_BUFS_PER_STREAM); in getBufNumRequired()
2872 return (uint8_t)bufferCnt; in getBufNumRequired()
2986 uint8_t &bufferCnt) in allocateStreamBuf() argument
3038 if (bufferCnt > CAMERA_INITIAL_MAPPABLE_PREVIEW_BUFFERS) { in allocateStreamBuf()
3039 mEnqueuedBuffers = (bufferCnt - in allocateStreamBuf()
3089 LOGH("Allocating %d secure buffers of size %d ", bufferCnt, size); in allocateStreamBuf()
3106 int32_t numAdditionalBuffers = bufferCnt - mem->getCnt(); in allocateStreamBuf()
3114 bufferCnt = mem->getCnt(); in allocateStreamBuf()
3193 if (bufferCnt > 0) { in allocateStreamBuf()
3194 rc = mem->allocate(bufferCnt, size); in allocateStreamBuf()
3199 bufferCnt = mem->getCnt(); in allocateStreamBuf()
3202 rc, stream_type, bufferCnt, size, bCachedMem, bPoolMem, mEnqueuedBuffers); in allocateStreamBuf()
3222 QCameraMemory *mem_obj, size_t size, uint8_t &bufferCnt) in allocateMoreStreamBuf() argument
3226 if (bufferCnt > 0) { in allocateMoreStreamBuf()
3227 rc = mem_obj->allocateMore(bufferCnt, size); in allocateMoreStreamBuf()
3228 bufferCnt = mem_obj->getCnt(); in allocateMoreStreamBuf()
10550 dw->args.metadataAllocArgs.bufferCnt, in deferredWorkRoutine()