Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 25 of 142) sorted by relevance

123456

/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp87 uint32_t buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in AllocateBuffer() local
90 buffer_size = ROUND_UP(buffer_size, data.align) * buffer_config.buffer_count; in AllocateBuffer()
95 data.size = buffer_size; in AllocateBuffer()
107 alloc_buffer_info->size = buffer_size; in AllocateBuffer()
181 uint32_t buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in GetBufferSize() local
184 buffer_size = ROUND_UP(buffer_size, align) * buffer_config.buffer_count; in GetBufferSize()
186 return buffer_size; in GetBufferSize()
/hardware/qcom/display/msm8909/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp91 uint32_t buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in AllocateBuffer() local
94 buffer_size = ROUND_UP(buffer_size, data.align) * buffer_config.buffer_count; in AllocateBuffer()
99 data.size = buffer_size; in AllocateBuffer()
114 alloc_buffer_info->size = buffer_size; in AllocateBuffer()
193 uint32_t buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in GetBufferSize() local
196 buffer_size = ROUND_UP(buffer_size, align) * buffer_config.buffer_count; in GetBufferSize()
198 return buffer_size; in GetBufferSize()
292 uint32_t buffer_size = 0; in GetAllocatedBufferInfo() local
293 buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in GetAllocatedBufferInfo()
299 allocated_buffer_info->size = UINT32(buffer_size); in GetAllocatedBufferInfo()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp91 uint32_t buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in AllocateBuffer() local
94 buffer_size = ROUND_UP(buffer_size, data.align) * buffer_config.buffer_count; in AllocateBuffer()
99 data.size = buffer_size; in AllocateBuffer()
114 alloc_buffer_info->size = buffer_size; in AllocateBuffer()
193 uint32_t buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in GetBufferSize() local
196 buffer_size = ROUND_UP(buffer_size, align) * buffer_config.buffer_count; in GetBufferSize()
198 return buffer_size; in GetBufferSize()
292 uint32_t buffer_size = 0; in GetAllocatedBufferInfo() local
293 buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in GetAllocatedBufferInfo()
299 allocated_buffer_info->size = UINT32(buffer_size); in GetAllocatedBufferInfo()
/hardware/libhardware/modules/camera/3_4/arc/
Dframe_buffer.cpp36 AllocatedFrameBuffer::AllocatedFrameBuffer(int buffer_size) { in AllocatedFrameBuffer() argument
37 buffer_.reset(new uint8_t[buffer_size]); in AllocatedFrameBuffer()
38 buffer_size_ = buffer_size; in AllocatedFrameBuffer()
42 AllocatedFrameBuffer::AllocatedFrameBuffer(uint8_t* buffer, int buffer_size) { in AllocatedFrameBuffer() argument
44 buffer_size_ = buffer_size; in AllocatedFrameBuffer()
62 V4L2FrameBuffer::V4L2FrameBuffer(base::ScopedFD fd, int buffer_size, in V4L2FrameBuffer() argument
66 buffer_size_ = buffer_size; in V4L2FrameBuffer()
Dframe_buffer.h61 explicit AllocatedFrameBuffer(int buffer_size);
62 explicit AllocatedFrameBuffer(uint8_t* buffer, int buffer_size);
82 V4L2FrameBuffer(base::ScopedFD fd, int buffer_size, uint32_t width,
/hardware/libhardware_legacy/include/hardware_legacy/
Dwifi_logger.h298 void (*on_ring_buffer_data) (char *ring_name, char *buffer, int buffer_size,
320 void (*on_alert) (wifi_request_id id, char *buffer, int buffer_size, int err_code);
374 void (*on_firmware_memory_dump) (char *buffer, int buffer_size);
391 wifi_error wifi_get_firmware_version(wifi_interface_handle iface, char *buffer, int buffer_size);
398 wifi_error wifi_get_driver_version(wifi_interface_handle iface, char *buffer, int buffer_size);
423 void (*on_driver_memory_dump) (char *buffer, int buffer_size);
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_mpo_composer.c101 uint32_t buffer_size, int value, uint8_t *overflow) in mm_jpeg_mpo_write_long_little_endian() argument
103 if (buff_offset + 3 >= buffer_size) { in mm_jpeg_mpo_write_long_little_endian()
132 uint32_t buffer_size, int value, uint8_t *overflow) in mm_jpeg_mpo_write_long() argument
134 if ((buff_offset + 3) >= buffer_size) { in mm_jpeg_mpo_write_long()
160 uint8_t *mm_jpeg_mpo_get_app_marker(uint8_t *buffer_addr, int buffer_size, in mm_jpeg_mpo_get_app_marker() argument
174 (p_current_addr < (buffer_addr + (buffer_size - 1)))); in mm_jpeg_mpo_get_app_marker()
196 (p_current_addr < (buffer_addr + (buffer_size - 1)))); in mm_jpeg_mpo_get_app_marker()
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp160 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetBufferSize() local
167 format, producer_usage, consumer_usage, &aligned_width, &aligned_height, &buffer_size); in GetBufferSize()
168 return buffer_size; in GetBufferSize()
301 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetAllocatedBufferInfo() local
308 format, producer_usage, consumer_usage, &aligned_width, &aligned_height, &buffer_size); in GetAllocatedBufferInfo()
312 allocated_buffer_info->size = UINT32(buffer_size); in GetAllocatedBufferInfo()
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp154 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetBufferSize() local
161 format, producer_usage, consumer_usage, &aligned_width, &aligned_height, &buffer_size); in GetBufferSize()
162 return buffer_size; in GetBufferSize()
295 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetAllocatedBufferInfo() local
302 format, producer_usage, consumer_usage, &aligned_width, &aligned_height, &buffer_size); in GetAllocatedBufferInfo()
304 allocated_buffer_info->size = UINT32(buffer_size); in GetAllocatedBufferInfo()
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dwifi_logger.cpp127 DebugCommand(wifi_interface_handle iface, char *buffer, int *buffer_size, in DebugCommand() argument
129 : WifiCommand("DebugCommand", iface, 0), mBuff(buffer), mBuffSize(buffer_size), mType in DebugCommand()
403 int buffer_size) in wifi_get_firmware_version() argument
405 if (buffer && (buffer_size > 0)) { in wifi_get_firmware_version()
406 DebugCommand *cmd = new DebugCommand(iface, buffer, &buffer_size, GET_FW_VER); in wifi_get_firmware_version()
418 wifi_error wifi_get_driver_version(wifi_interface_handle iface, char *buffer, int buffer_size) in wifi_get_driver_version() argument
420 if (buffer && (buffer_size > 0)) { in wifi_get_driver_version()
421 DebugCommand *cmd = new DebugCommand(iface, buffer, &buffer_size, GET_DRV_VER); in wifi_get_driver_version()
533 int buffer_size = 0; in handleEvent() local
554 buffer_size = it.get_len(); in handleEvent()
[all …]
/hardware/libhardware/modules/audio/
Daudio_hw.c86 size_t buffer_size = out->frame_count * in out_get_buffer_size() local
89 ALOGV("out_get_buffer_size: %zu", buffer_size); in out_get_buffer_size()
90 return buffer_size; in out_get_buffer_size()
237 size_t buffer_size = in->frame_count * in in_get_buffer_size() local
240 ALOGV("in_get_buffer_size: %zu", buffer_size); in in_get_buffer_size()
241 return buffer_size; in in_get_buffer_size()
482 size_t buffer_size = samples_per_milliseconds( in adev_get_input_buffer_size() local
491 buffer_size *= 4; in adev_get_input_buffer_size()
493 buffer_size *= audio_bytes_per_sample(config->format); in adev_get_input_buffer_size()
495 ALOGV("adev_get_input_buffer_size: %zu", buffer_size); in adev_get_input_buffer_size()
[all …]
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp193 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetBufferSize() local
200 GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); in GetBufferSize()
201 return buffer_size; in GetBufferSize()
346 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetAllocatedBufferInfo() local
353 GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); in GetAllocatedBufferInfo()
357 allocated_buffer_info->size = UINT32(buffer_size); in GetAllocatedBufferInfo()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp169 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetBufferSize() local
176 GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); in GetBufferSize()
177 return buffer_size; in GetBufferSize()
322 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetAllocatedBufferInfo() local
329 GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); in GetAllocatedBufferInfo()
333 allocated_buffer_info->size = UINT32(buffer_size); in GetAllocatedBufferInfo()
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp1747 unsigned int alignment = 0,buffer_size = 0; in component_init() local
1996 DEBUG_PRINT_HIGH("Input Buffer Size =%d",drv_ctx.ip_buf.buffer_size); in component_init()
2036 drv_ctx.ip_buf.buffer_size, drv_ctx.interm_op_buf.buffer_size, in component_init()
2037 drv_ctx.op_buf.buffer_size); in component_init()
2039 h264_scratch.nAllocLen = drv_ctx.ip_buf.buffer_size; in component_init()
2040 h264_scratch.pBuffer = (OMX_U8 *)malloc (drv_ctx.ip_buf.buffer_size); in component_init()
3435 unsigned int buffer_size; in set_parameter() local
3451 if (!client_buffers.get_buffer_req(buffer_size)) { in set_parameter()
3456 portDefn->nBufferSize >= drv_ctx.op_buf.buffer_size ) in set_parameter()
3459 drv_ctx.op_buf.buffer_size = portDefn->nBufferSize; in set_parameter()
[all …]
Domx_vdec_hevc.cpp1235 unsigned int alignment = 0,buffer_size = 0; in component_init() local
1530 DEBUG_PRINT_HIGH("Input Buffer Size =%d",drv_ctx.ip_buf.buffer_size); in component_init()
1534 h264_scratch.nAllocLen = drv_ctx.ip_buf.buffer_size; in component_init()
1535 h264_scratch.pBuffer = (OMX_U8 *)malloc (drv_ctx.ip_buf.buffer_size); in component_init()
1554 m_frame_parser.mutils->allocate_rbsp_buffer (drv_ctx.ip_buf.buffer_size); in component_init()
2730 unsigned int buffer_size; in set_parameter() local
2731 if (!client_buffers.get_buffer_req(buffer_size)) { in set_parameter()
2736 portDefn->nBufferSize >= drv_ctx.op_buf.buffer_size ) { in set_parameter()
2738 drv_ctx.op_buf.buffer_size = portDefn->nBufferSize; in set_parameter()
2744 drv_ctx.op_buf.mincount, drv_ctx.op_buf.buffer_size, in set_parameter()
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp1730 unsigned int alignment = 0,buffer_size = 0; in component_init() local
1973 DEBUG_PRINT_HIGH("Input Buffer Size =%d",drv_ctx.ip_buf.buffer_size); in component_init()
2013 drv_ctx.ip_buf.buffer_size, drv_ctx.interm_op_buf.buffer_size, in component_init()
2014 drv_ctx.op_buf.buffer_size); in component_init()
2016 h264_scratch.nAllocLen = drv_ctx.ip_buf.buffer_size; in component_init()
2017 h264_scratch.pBuffer = (OMX_U8 *)malloc (drv_ctx.ip_buf.buffer_size); in component_init()
3386 unsigned int buffer_size; in set_parameter() local
3387 if (!client_buffers.get_buffer_req(buffer_size)) { in set_parameter()
3392 portDefn->nBufferSize >= drv_ctx.op_buf.buffer_size ) in set_parameter()
3395 drv_ctx.op_buf.buffer_size = portDefn->nBufferSize; in set_parameter()
[all …]
Domx_vdec_hevc.cpp1240 unsigned int alignment = 0,buffer_size = 0; in component_init() local
1551 DEBUG_PRINT_HIGH("Input Buffer Size =%d",drv_ctx.ip_buf.buffer_size); in component_init()
1555 h264_scratch.nAllocLen = drv_ctx.ip_buf.buffer_size; in component_init()
1556 h264_scratch.pBuffer = (OMX_U8 *)malloc (drv_ctx.ip_buf.buffer_size); in component_init()
1575 m_frame_parser.mutils->allocate_rbsp_buffer (drv_ctx.ip_buf.buffer_size); in component_init()
2751 unsigned int buffer_size; in set_parameter() local
2752 if (!client_buffers.get_buffer_req(buffer_size)) { in set_parameter()
2757 portDefn->nBufferSize >= drv_ctx.op_buf.buffer_size ) { in set_parameter()
2759 drv_ctx.op_buf.buffer_size = portDefn->nBufferSize; in set_parameter()
2765 drv_ctx.op_buf.mincount, drv_ctx.op_buf.buffer_size, in set_parameter()
[all …]
Domx_vdec_msm8974.cpp1594 unsigned int alignment = 0,buffer_size = 0; in component_init() local
2005 DEBUG_PRINT_HIGH("Input Buffer Size =%u",(unsigned int)drv_ctx.ip_buf.buffer_size); in component_init()
2010 h264_scratch.nAllocLen = drv_ctx.ip_buf.buffer_size; in component_init()
2011 h264_scratch.pBuffer = (OMX_U8 *)malloc (drv_ctx.ip_buf.buffer_size); in component_init()
2029 m_frame_parser.mutils->allocate_rbsp_buffer (drv_ctx.ip_buf.buffer_size); in component_init()
3318 unsigned int buffer_size; in set_parameter() local
3419 } else if (!client_buffers.get_buffer_req(buffer_size)) { in set_parameter()
3427 … portDefn->nBufferSize != drv_ctx.op_buf.buffer_size)) { in set_parameter()
3435 … portDefn->nBufferSize >= drv_ctx.op_buf.buffer_size ) { in set_parameter()
3437 drv_ctx.op_buf.buffer_size = portDefn->nBufferSize; in set_parameter()
[all …]
Domx_vdec.cpp1154 unsigned int alignment = 0,buffer_size = 0; in component_init() local
1521 h264_scratch.nAllocLen = drv_ctx.ip_buf.buffer_size - DEVICE_SCRATCH; in component_init()
1532 m_frame_parser.mutils->allocate_rbsp_buffer (drv_ctx.ip_buf.buffer_size); in component_init()
2836 if ((OMX_U32)handle->size < drv_ctx.op_buf.buffer_size) { in use_android_native_buffer()
2839 drv_ctx.op_buf.buffer_size, (OMX_U32)handle->size); in use_android_native_buffer()
2918 unsigned int buffer_size; in set_parameter() local
2920 if (!client_buffers.get_buffer_req(buffer_size)) { in set_parameter()
2925 portDefn->nBufferSize >= buffer_size) { in set_parameter()
2927 drv_ctx.op_buf.buffer_size = portDefn->nBufferSize; in set_parameter()
2934 drv_ctx.op_buf.mincount, drv_ctx.op_buf.buffer_size, in set_parameter()
[all …]
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dwifiloggercmd.h71 int buffer_size);
107 virtual void setVersionInfo(char *buffer, int buffer_size);
/hardware/qcom/media/msm8996/videopp/src/
Domx_vdpp.cpp1710 DEBUG_PRINT_HIGH("Input Buffer Size =%d \n ",drv_ctx.ip_buf.buffer_size); in component_init()
2963 unsigned int buffer_size; in set_parameter() local
3032 drv_ctx.op_buf.mincount, drv_ctx.op_buf.buffer_size, in set_parameter()
3194 …ffer_size=%d \n", portDefn->nBufferCountActual, portDefn->nBufferSize, drv_ctx.ip_buf.buffer_size); in set_parameter()
3208 drv_ctx.ip_buf.mincount, drv_ctx.ip_buf.buffer_size, in set_parameter()
3930 if ((OMX_U32)handle->size < drv_ctx.op_buf.buffer_size) { in use_output_buffer()
3933 drv_ctx.op_buf.buffer_size, (OMX_U32)handle->size); in use_output_buffer()
3944 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size; in use_output_buffer()
3948 drv_ctx.op_buf.buffer_size, in use_output_buffer()
3956 drv_ctx.op_buf.buffer_size,drv_ctx.op_buf.alignment, in use_output_buffer()
[all …]
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp212 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetBufferSize() local
214 GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); in GetBufferSize()
215 return buffer_size; in GetBufferSize()
363 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetAllocatedBufferInfo() local
365 GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); in GetAllocatedBufferInfo()
369 allocated_buffer_info->size = UINT32(buffer_size); in GetAllocatedBufferInfo()
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp280 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetBufferSize() local
282 int ret = GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); in GetBufferSize()
286 return buffer_size; in GetBufferSize()
437 uint32_t aligned_width = 0, aligned_height = 0, buffer_size = 0; in GetAllocatedBufferInfo() local
439 int ret = GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); in GetAllocatedBufferInfo()
446 allocated_buffer_info->size = UINT32(buffer_size); in GetAllocatedBufferInfo()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/
Domx_vdec.cpp1192 unsigned int alignment = 0,buffer_size = 0; in component_init() local
1555 h264_scratch.nAllocLen = drv_ctx.ip_buf.buffer_size; in component_init()
1556 h264_scratch.pBuffer = (OMX_U8 *)malloc (drv_ctx.ip_buf.buffer_size); in component_init()
1566 m_frame_parser.mutils->allocate_rbsp_buffer (drv_ctx.ip_buf.buffer_size); in component_init()
2974 if ((OMX_U32)handle->size < drv_ctx.op_buf.buffer_size) { in use_android_native_buffer()
2977 drv_ctx.op_buf.buffer_size, (OMX_U32)handle->size); in use_android_native_buffer()
3059 unsigned int buffer_size; in set_parameter() local
3060 if (!client_buffers.get_buffer_req(buffer_size)) { in set_parameter()
3065 portDefn->nBufferSize >= buffer_size) in set_parameter()
3077 drv_ctx.op_buf.buffer_size = portDefn->nBufferSize; in set_parameter()
[all …]
Domx_vdec_copper.cpp1192 unsigned int alignment = 0,buffer_size = 0; in component_init() local
1452 printf("Input Buffer Size =%d \n ",drv_ctx.ip_buf.buffer_size); in component_init()
1471 h264_scratch.nAllocLen = drv_ctx.ip_buf.buffer_size; in component_init()
1472 h264_scratch.pBuffer = (OMX_U8 *)malloc (drv_ctx.ip_buf.buffer_size); in component_init()
1482 m_frame_parser.mutils->allocate_rbsp_buffer (drv_ctx.ip_buf.buffer_size); in component_init()
2862 portDefn->nBufferSize >= drv_ctx.op_buf.buffer_size ) in set_parameter()
2865 drv_ctx.op_buf.buffer_size = portDefn->nBufferSize; in set_parameter()
2873 drv_ctx.op_buf.mincount, drv_ctx.op_buf.buffer_size, in set_parameter()
2942 && portDefn->nBufferSize == drv_ctx.ip_buf.buffer_size) in set_parameter()
2945 drv_ctx.ip_buf.buffer_size = portDefn->nBufferSize; in set_parameter()
[all …]

123456