/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_ionbuf.c | 54 void *buffer_allocate(buffer_t *p_buffer, int cached) in buffer_allocate() argument 61 p_buffer->alloc.len = p_buffer->size; in buffer_allocate() 62 p_buffer->alloc.align = 4096; in buffer_allocate() 63 p_buffer->alloc.flags = (cached) ? ION_FLAG_CACHED : 0; in buffer_allocate() 64 p_buffer->alloc.heap_id_mask = 0x1 << ION_IOMMU_HEAP_ID; in buffer_allocate() 66 p_buffer->ion_fd = open("/dev/ion", O_RDONLY); in buffer_allocate() 67 if(p_buffer->ion_fd < 0) { in buffer_allocate() 73 p_buffer->alloc.len = (p_buffer->alloc.len + 4095U) & (~4095U); in buffer_allocate() 74 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate() 77 p_buffer->alloc.len); in buffer_allocate() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg_ionbuf.h | 60 void* buffer_allocate(buffer_t *p_buffer, int cached); 74 int buffer_deallocate(buffer_t *p_buffer); 88 int buffer_invalidate(buffer_t *p_buffer); 102 int buffer_clean(buffer_t *p_buffer);
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpegdec_test.c | 143 int mm_jpegdec_test_alloc(buffer_t *p_buffer, int use_pmem) in mm_jpegdec_test_alloc() argument 148 p_buffer->addr = (uint8_t *)buffer_allocate(p_buffer, 0); in mm_jpegdec_test_alloc() 149 if (NULL == p_buffer->addr) { in mm_jpegdec_test_alloc() 155 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpegdec_test_alloc() 156 if (NULL == p_buffer->addr) { in mm_jpegdec_test_alloc() 164 void mm_jpegdec_test_free(buffer_t *p_buffer) in mm_jpegdec_test_free() argument 166 if (p_buffer->addr == NULL) in mm_jpegdec_test_free() 169 if (p_buffer->p_pmem_fd >= 0) in mm_jpegdec_test_free() 170 buffer_deallocate(p_buffer); in mm_jpegdec_test_free() 172 free(p_buffer->addr); in mm_jpegdec_test_free() [all …]
|
D | mm_jpeg_test.c | 202 int mm_jpeg_test_alloc(buffer_t *p_buffer, int use_pmem) in mm_jpeg_test_alloc() argument 207 p_buffer->addr = (uint8_t *)buffer_allocate(p_buffer, 0); in mm_jpeg_test_alloc() 208 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc() 214 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpeg_test_alloc() 215 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc() 223 void mm_jpeg_test_free(buffer_t *p_buffer) in mm_jpeg_test_free() argument 225 if (p_buffer->addr == NULL) in mm_jpeg_test_free() 228 if (p_buffer->p_pmem_fd >= 0) in mm_jpeg_test_free() 229 buffer_deallocate(p_buffer); in mm_jpeg_test_free() 231 free(p_buffer->addr); in mm_jpeg_test_free() [all …]
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec_utils.cpp | 302 void omx_swvdec_diag::dump_ip(unsigned char *p_buffer, in dump_ip() argument 307 fwrite(p_buffer, sizeof(unsigned char), filled_length, m_file_ip); in dump_ip() 320 void omx_swvdec_diag::dump_op(unsigned char *p_buffer, in dump_op() argument 333 p_buffer_y = p_buffer; in dump_op() 334 p_buffer_uv = p_buffer + (stride * scanlines); in dump_op()
|
D | omx_swvdec.cpp | 1658 OMX_U8 *p_buffer) in use_buffer() argument 1682 OMX_SWVDEC_LOG_API("port index %d, %p", port, p_buffer); in use_buffer() 1686 retval = buffer_use_op(pp_buffer_hdr, p_app_data, bytes, p_buffer); in use_buffer() 2256 p_buffer_swvdec->p_buffer = bufferaddr; in fill_this_buffer() 2268 p_buffer_swvdec->p_buffer); in fill_this_buffer() 3686 m_buffer_array_ip[ii].buffer_swvdec.p_buffer = bufferaddr; in buffer_allocate_ip() 3834 m_buffer_array_op[ii].buffer_swvdec.p_buffer = bufferaddr; in buffer_allocate_op() 4026 OMX_U8 *p_buffer) in buffer_use_op() argument 4084 (*pp_buffer_hdr)->pBuffer = p_buffer; in buffer_use_op() 4102 p_handle = (private_handle_t *) p_buffer; in buffer_use_op() [all …]
|
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec_utils.cpp | 302 void omx_swvdec_diag::dump_ip(unsigned char *p_buffer, in dump_ip() argument 307 fwrite(p_buffer, sizeof(unsigned char), filled_length, m_file_ip); in dump_ip() 320 void omx_swvdec_diag::dump_op(unsigned char *p_buffer, in dump_op() argument 333 p_buffer_y = p_buffer; in dump_op() 334 p_buffer_uv = p_buffer + (stride * scanlines); in dump_op()
|
D | omx_swvdec.cpp | 1642 OMX_U8 *p_buffer) in use_buffer() argument 1666 OMX_SWVDEC_LOG_API("port index %d, %p", port, p_buffer); in use_buffer() 1670 retval = buffer_use_op(pp_buffer_hdr, p_app_data, bytes, p_buffer); in use_buffer() 2245 p_buffer_swvdec->p_buffer = bufferaddr; in fill_this_buffer() 2257 p_buffer_swvdec->p_buffer); in fill_this_buffer() 3682 m_buffer_array_ip[ii].buffer_swvdec.p_buffer = bufferaddr; in buffer_allocate_ip() 3822 m_buffer_array_op[ii].buffer_swvdec.p_buffer = bufferaddr; in buffer_allocate_op() 4014 OMX_U8 *p_buffer) in buffer_use_op() argument 4072 (*pp_buffer_hdr)->pBuffer = p_buffer; in buffer_use_op() 4090 p_handle = (private_handle_t *) p_buffer; in buffer_use_op() [all …]
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec_utils.cpp | 302 void omx_swvdec_diag::dump_ip(unsigned char *p_buffer, in dump_ip() argument 307 fwrite(p_buffer, sizeof(unsigned char), filled_length, m_file_ip); in dump_ip() 320 void omx_swvdec_diag::dump_op(unsigned char *p_buffer, in dump_op() argument 333 p_buffer_y = p_buffer; in dump_op() 334 p_buffer_uv = p_buffer + (stride * scanlines); in dump_op()
|
D | omx_swvdec.cpp | 1622 OMX_U8 *p_buffer) in use_buffer() argument 1646 OMX_SWVDEC_LOG_API("port index %d, %p", port, p_buffer); in use_buffer() 1650 retval = buffer_use_op(pp_buffer_hdr, p_app_data, bytes, p_buffer); in use_buffer() 2225 p_buffer_swvdec->p_buffer = bufferaddr; in fill_this_buffer() 2237 p_buffer_swvdec->p_buffer); in fill_this_buffer() 3630 m_buffer_array_ip[ii].buffer_swvdec.p_buffer = bufferaddr; in buffer_allocate_ip() 3769 m_buffer_array_op[ii].buffer_swvdec.p_buffer = bufferaddr; in buffer_allocate_op() 3947 OMX_U8 *p_buffer) in buffer_use_op() argument 4005 (*pp_buffer_hdr)->pBuffer = p_buffer; in buffer_use_op() 4023 p_handle = (private_handle_t *) p_buffer; in buffer_use_op() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec_utils.cpp | 413 void omx_swvdec_diag::dump_ip(unsigned char *p_buffer, in dump_ip() argument 418 fwrite(p_buffer, sizeof(unsigned char), filled_length, m_file_ip); in dump_ip() 431 void omx_swvdec_diag::dump_op(unsigned char *p_buffer, in dump_op() argument 444 p_buffer_y = p_buffer; in dump_op() 445 p_buffer_uv = p_buffer + (stride * scanlines); in dump_op()
|
D | omx_swvdec.cpp | 1483 OMX_U8 *p_buffer) in use_buffer() argument 1504 OMX_SWVDEC_LOG_API("port index %d, %p", port, p_buffer); in use_buffer() 1508 retval = buffer_use_op(pp_buffer_hdr, p_app_data, bytes, p_buffer); in use_buffer() 2058 p_buffer_swvdec->p_buffer = bufferaddr; in fill_this_buffer() 2072 p_buffer_swvdec->p_buffer); in fill_this_buffer() 3323 m_buffer_array_ip[ii].buffer_swvdec.p_buffer = bufferaddr; in buffer_allocate_ip() 3460 m_buffer_array_op[ii].buffer_swvdec.p_buffer = bufferaddr; in buffer_allocate_op() 3637 OMX_U8 *p_buffer) in buffer_use_op() argument 3699 (*pp_buffer_hdr)->pBuffer = p_buffer; in buffer_use_op() 3717 p_handle = (private_handle_t *) p_buffer; in buffer_use_op() [all …]
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/inc/ |
D | omx_swvdec_utils.h | 127 void dump_ip(unsigned char *p_buffer, unsigned int filled_length); 128 void dump_op(unsigned char *p_buffer,
|
D | omx_swvdec.h | 222 OMX_U8 *p_buffer); 230 OMX_BUFFERHEADERTYPE *p_buffer); 374 OMX_U8 *p_buffer);
|
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/inc/ |
D | omx_swvdec_utils.h | 127 void dump_ip(unsigned char *p_buffer, unsigned int filled_length); 128 void dump_op(unsigned char *p_buffer,
|
D | omx_swvdec.h | 217 OMX_U8 *p_buffer); 225 OMX_BUFFERHEADERTYPE *p_buffer); 369 OMX_U8 *p_buffer);
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/inc/ |
D | omx_swvdec_utils.h | 127 void dump_ip(unsigned char *p_buffer, unsigned int filled_length); 128 void dump_op(unsigned char *p_buffer,
|
D | omx_swvdec.h | 210 OMX_U8 *p_buffer); 218 OMX_BUFFERHEADERTYPE *p_buffer); 361 OMX_U8 *p_buffer);
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/inc/ |
D | omx_swvdec_utils.h | 161 void dump_ip(unsigned char *p_buffer, unsigned int filled_length); 162 void dump_op(unsigned char *p_buffer,
|
D | omx_swvdec.h | 222 OMX_U8 *p_buffer); 230 OMX_BUFFERHEADERTYPE *p_buffer); 362 OMX_U8 *p_buffer);
|
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/venc/src/ |
D | omx_swvenc_mpeg4.cpp | 1967 ipbuffer.p_buffer, in swvenc_do_rotate() 1980 m_pIpbuffers[index].p_buffer = ipbuffer.p_buffer; in swvenc_do_rotate() 1983 ipbuffer.p_buffer = (unsigned char *)buf; in swvenc_do_rotate() 2175 ipbuffer.p_buffer = NULL; in dev_handle_empty_eos_buffer() 2231 ipbuffer.p_buffer= bufhdr->pBuffer; in dev_empty_buf() 2251 …ipbuffer.p_buffer = (unsigned char *)mmap(NULL, size, PROT_READ|PROT_WRITE,MAP_SHARED, fd, offset); in dev_empty_buf() 2252 if (ipbuffer.p_buffer == MAP_FAILED) in dev_empty_buf() 2291 …ipbuffer.p_buffer = (unsigned char *)mmap(NULL, size, PROT_READ|PROT_WRITE,MAP_SHARED, fd, offset); in dev_empty_buf() 2292 if (ipbuffer.p_buffer == MAP_FAILED) in dev_empty_buf() 2303 ipbuffer.p_buffer = bufhdr->pBuffer; in dev_empty_buf() [all …]
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/venc/src/ |
D | omx_swvenc_mpeg4.cpp | 1986 ipbuffer.p_buffer, in swvenc_do_rotate() 1999 m_pIpbuffers[index].p_buffer = ipbuffer.p_buffer; in swvenc_do_rotate() 2002 ipbuffer.p_buffer = (unsigned char *)buf; in swvenc_do_rotate() 2194 ipbuffer.p_buffer = NULL; in dev_handle_empty_eos_buffer() 2250 ipbuffer.p_buffer= bufhdr->pBuffer; in dev_empty_buf() 2270 …ipbuffer.p_buffer = (unsigned char *)mmap(NULL, size, PROT_READ|PROT_WRITE,MAP_SHARED, fd, offset); in dev_empty_buf() 2271 if (ipbuffer.p_buffer == MAP_FAILED) in dev_empty_buf() 2326 …ipbuffer.p_buffer = (unsigned char *)mmap(NULL, size, PROT_READ|PROT_WRITE,MAP_SHARED, fd, offset); in dev_empty_buf() 2327 if (ipbuffer.p_buffer == MAP_FAILED) in dev_empty_buf() 2338 ipbuffer.p_buffer = bufhdr->pBuffer; in dev_empty_buf() [all …]
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/src/ |
D | omx_swvenc_mpeg4.cpp | 1815 ipbuffer.p_buffer= bufhdr->pBuffer; in dev_empty_buf() 1835 …ipbuffer.p_buffer = (unsigned char *)mmap(NULL, size, PROT_READ|PROT_WRITE,MAP_SHARED, fd, offset); in dev_empty_buf() 1836 if (ipbuffer.p_buffer == MAP_FAILED) in dev_empty_buf() 1867 …ipbuffer.p_buffer = (unsigned char *)mmap(NULL, size, PROT_READ|PROT_WRITE,MAP_SHARED, fd, offset); in dev_empty_buf() 1868 if (ipbuffer.p_buffer == MAP_FAILED) in dev_empty_buf() 1879 ipbuffer.p_buffer = bufhdr->pBuffer; in dev_empty_buf() 1899 ipbuffer.p_buffer = bufhdr->pBuffer; in dev_empty_buf() 1912 ipbuffer.p_buffer, in dev_empty_buf() 1929 swvenc_input_log_buffers((const char*)ipbuffer.p_buffer, ipbuffer.filled_length); in dev_empty_buf() 1954 opbuffer.p_buffer = bufhdr->pBuffer; in dev_fill_buf() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/ |
D | omx_swvenc_mpeg4.cpp | 1833 …ipbuffer.p_buffer = (unsigned char *)mmap(NULL, size, PROT_READ|PROT_WRITE,MAP_SHARED, fd, offset); in dev_empty_buf() 1839 ipbuffer.p_buffer = bufhdr->pBuffer; in dev_empty_buf() 1852 ipbuffer.p_buffer, in dev_empty_buf() 1869 swvenc_input_log_buffers((const char*)ipbuffer.p_buffer, ipbuffer.filled_length); in dev_empty_buf() 1894 opbuffer.p_buffer = bufhdr->pBuffer; in dev_fill_buf() 1903 opbuffer.p_buffer, in dev_fill_buf() 1915 if (dev_get_seq_hdr(opbuffer.p_buffer, opbuffer.size, &opbuffer.filled_length) == 0) in dev_fill_buf() 1958 Buffer.p_buffer = (unsigned char*) buffer; in dev_get_seq_hdr() 2449 int status = munmap(p_ipbuffer->p_buffer, size); in swvenc_empty_buffer_done() 2450 …DEBUG_PRINT_HIGH("Unmapped pBuffer <%p> size <%d> status <%d>", p_ipbuffer->p_buffer, size, status… in swvenc_empty_buffer_done() [all …]
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/ |
D | omx_vdec_test.cpp | 3370 char *p_buffer = NULL; in Read_Buffer_From_DivX_4_5_6_File() local 3386 p_buffer = (char *)pBufHdr->pBuffer + byte_pos; in Read_Buffer_From_DivX_4_5_6_File() 3388 bytes_read = read(inputBufferFileFd, p_buffer, NUMBER_OF_ARBITRARYBYTES_READ); in Read_Buffer_From_DivX_4_5_6_File() 3392 ((char*)&read_code)[0] = p_buffer[byte_cntr]; in Read_Buffer_From_DivX_4_5_6_File() 3395 frame_type = p_buffer[byte_cntr]; in Read_Buffer_From_DivX_4_5_6_File() 3504 char *p_buffer = NULL; in Read_Buffer_From_DivX_311_File() local 3518 p_buffer = (char *)pBufHdr->pBuffer + pBufHdr->nOffset; in Read_Buffer_From_DivX_311_File() 3524 if (p_buffer == NULL) { in Read_Buffer_From_DivX_311_File() 3535 n_offset += read(inputBufferFileFd, p_buffer, frame_size); in Read_Buffer_From_DivX_311_File() 3552 char *p_buffer = NULL; in Read_Buffer_From_VP8_File() local [all …]
|