Home
last modified time | relevance | path

Searched refs:MetaBufferUtil (Results 1 – 14 of 14) sorted by relevance

/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraMem.h71 VIDEO_META_OFFSET = MetaBufferUtil::INT_OFFSET,
72 VIDEO_META_SIZE = MetaBufferUtil::INT_SIZE,
73 VIDEO_META_USAGE = MetaBufferUtil::INT_USAGE,
74 VIDEO_META_TIMESTAMP = MetaBufferUtil::INT_TIMESTAMP,
75 VIDEO_META_FORMAT = MetaBufferUtil::INT_COLORFORMAT,
76 VIDEO_META_BUFIDX = MetaBufferUtil::INT_BUFINDEX,
77 VIDEO_META_EVENT = MetaBufferUtil::INT_BUFEVENT,
79 VIDEO_METADATA_NUM_INTS = MetaBufferUtil::INT_TOTAL,
DQCameraMem.cpp1419 MetaBufferUtil::setFdAt(nh, 0, -1); in allocateMore()
1420 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_OFFSET, 0); in allocateMore()
1421 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_SIZE, 0); in allocateMore()
1422 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_USAGE, mUsage); in allocateMore()
1423 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_TIMESTAMP, 0); in allocateMore()
1424 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_FORMAT, mFormat); in allocateMore()
1425 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_BUFIDX, i); in allocateMore()
1426 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_EVENT, 0); in allocateMore()
1472 mTotalInts = MetaBufferUtil::getNumIntsForBatch(numFDs); in allocateMeta()
1488 MetaBufferUtil::setFdAt(nh, j, -1); in allocateMeta()
[all …]
/hardware/qcom/media/msm8998/mm-core/inc/
DOMX_QCOMExtns.h2087 struct MetaBufferUtil { struct
2107 return MetaBufferUtil::isHandleSane(hnd) ? hnd->numFds : -1; in getBatchSize() argument
2113 return (MetaBufferUtil::isHandleSane(hnd) && (index < hnd->numFds)) ? hnd->data[index] : -1; in getFdAt() argument
2117 int idx = MetaBufferUtil::getIntIndex(hnd, index, type); in getIntAt() argument
2124 …return (MetaBufferUtil::isHandleSane(hnd) && (index < hnd->numFds)) ? hnd->data[index] = fd, 0 : -… in setFdAt() argument
2128 int idx = MetaBufferUtil::getIntIndex(hnd, index, type); in setIntAt() argument
2138 int idx = index + type * MetaBufferUtil::getBatchSize(hnd); in getIntIndex() argument
2139 … return (MetaBufferUtil::isHandleSane(hnd) && (idx < (hnd->numInts + hnd->numFds))) ? idx : -1; in getIntIndex()
/hardware/qcom/sm8150/media/mm-core/inc/
DOMX_QCOMExtns.h2191 struct MetaBufferUtil { struct
2211 return MetaBufferUtil::isHandleSane(hnd) ? hnd->numFds : -1; in getBatchSize() argument
2217 return (MetaBufferUtil::isHandleSane(hnd) && (index < hnd->numFds)) ? hnd->data[index] : -1; in getFdAt() argument
2221 int idx = MetaBufferUtil::getIntIndex(hnd, index, type); in getIntAt() argument
2228 …return (MetaBufferUtil::isHandleSane(hnd) && (index < hnd->numFds)) ? hnd->data[index] = fd, 0 : -… in setFdAt() argument
2232 int idx = MetaBufferUtil::getIntIndex(hnd, index, type); in setIntAt() argument
2242 int idx = index + type * MetaBufferUtil::getBatchSize(hnd); in getIntIndex() argument
2243 … return (MetaBufferUtil::isHandleSane(hnd) && (idx < (hnd->numInts + hnd->numFds))) ? idx : -1; in getIntIndex()
/hardware/qcom/sdm845/media/mm-core/inc/
DOMX_QCOMExtns.h2123 struct MetaBufferUtil { struct
2143 return MetaBufferUtil::isHandleSane(hnd) ? hnd->numFds : -1; in getBatchSize() argument
2149 return (MetaBufferUtil::isHandleSane(hnd) && (index < hnd->numFds)) ? hnd->data[index] : -1; in getFdAt() argument
2153 int idx = MetaBufferUtil::getIntIndex(hnd, index, type); in getIntAt() argument
2160 …return (MetaBufferUtil::isHandleSane(hnd) && (index < hnd->numFds)) ? hnd->data[index] = fd, 0 : -… in setFdAt() argument
2164 int idx = MetaBufferUtil::getIntIndex(hnd, index, type); in setIntAt() argument
2174 int idx = index + type * MetaBufferUtil::getBatchSize(hnd); in getIntIndex() argument
2175 … return (MetaBufferUtil::isHandleSane(hnd) && (idx < (hnd->numInts + hnd->numFds))) ? idx : -1; in getIntIndex()
/hardware/qcom/sm7250/media/mm-core/inc/
DOMX_QCOMExtns.h2309 struct MetaBufferUtil { struct
2329 return MetaBufferUtil::isHandleSane(hnd) ? hnd->numFds : -1; in getBatchSize() argument
2335 return (MetaBufferUtil::isHandleSane(hnd) && (index < hnd->numFds)) ? hnd->data[index] : -1; in getFdAt() argument
2339 int idx = MetaBufferUtil::getIntIndex(hnd, index, type); in getIntAt() argument
2346 …return (MetaBufferUtil::isHandleSane(hnd) && (index < hnd->numFds)) ? hnd->data[index] = fd, 0 : -… in setFdAt() argument
2350 int idx = MetaBufferUtil::getIntIndex(hnd, index, type); in setIntAt() argument
2360 int idx = index + type * MetaBufferUtil::getBatchSize(hnd); in getIntIndex() argument
2361 … return (MetaBufferUtil::isHandleSane(hnd) && (idx < (hnd->numInts + hnd->numFds))) ? idx : -1; in getIntIndex()
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/venc/src/
Dvideo_encoder_device_v4l2.cpp2590 usage = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_USAGE); in venc_empty_buf()
2600 …color_format = (OMX_COLOR_FORMATTYPE)MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_COLORFOR… in venc_empty_buf()
2650 if ((unsigned int)MetaBufferUtil::getBatchSize(hnd) != mBatchSize) { in venc_empty_buf()
2652 mBatchSize, MetaBufferUtil::getBatchSize(hnd)); in venc_empty_buf()
2659 int offset = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_OFFSET); in venc_empty_buf()
2660 int length = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_SIZE); in venc_empty_buf()
3117 } else if (MetaBufferUtil::getBatchSize(hnd) > kMaxBuffersInBatch) { in venc_empty_batch()
3119 "Max = %d", MetaBufferUtil::getBatchSize(hnd), kMaxBuffersInBatch); in venc_empty_batch()
3122 … DEBUG_PRINT_LOW("venc_empty_batch: Batch of %d bufs", MetaBufferUtil::getBatchSize(hnd)); in venc_empty_batch()
3138 int numBufs = MetaBufferUtil::getBatchSize(hnd); in venc_empty_batch()
[all …]
Domx_video_base.cpp4080 Input_pmem_info.fd = MetaBufferUtil::getFdAt(media_buffer->meta_handle, 0); in empty_this_buffer_proxy()
4083 … int offset = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_OFFSET); in empty_this_buffer_proxy()
4084 … int size = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_SIZE); in empty_this_buffer_proxy()
4993 Input_pmem.fd = MetaBufferUtil::getFdAt(media_ptr->meta_handle, 0); in omx_release_meta_buffer()
4994 … int size = MetaBufferUtil::getIntAt(media_ptr->meta_handle, 0, MetaBufferUtil::INT_SIZE); in omx_release_meta_buffer()
4995 … int offset = MetaBufferUtil::getIntAt(media_ptr->meta_handle, 0, MetaBufferUtil::INT_OFFSET); in omx_release_meta_buffer()
5501 Input_pmem_info.fd = MetaBufferUtil::getFdAt(media_buffer->meta_handle, 0);
5502 …Input_pmem_info.offset = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::IN…
5503 …Input_pmem_info.size = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_…
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp4038 Input_pmem_info.fd = MetaBufferUtil::getFdAt(media_buffer->meta_handle, 0); in empty_this_buffer_proxy()
4041 … int offset = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_OFFSET); in empty_this_buffer_proxy()
4042 … int size = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_SIZE); in empty_this_buffer_proxy()
4893 Input_pmem.fd = MetaBufferUtil::getFdAt(media_ptr->meta_handle, 0); in omx_release_meta_buffer()
4894 … int size = MetaBufferUtil::getIntAt(media_ptr->meta_handle, 0, MetaBufferUtil::INT_SIZE); in omx_release_meta_buffer()
4895 … int offset = MetaBufferUtil::getIntAt(media_ptr->meta_handle, 0, MetaBufferUtil::INT_OFFSET); in omx_release_meta_buffer()
5240 Input_pmem_info.fd = MetaBufferUtil::getFdAt(media_buffer->meta_handle, 0); in push_input_buffer()
5241 …Input_pmem_info.offset = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::IN… in push_input_buffer()
5242 …Input_pmem_info.size = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_… in push_input_buffer()
Dvideo_encoder_device_v4l2.cpp3895 usage = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_USAGE); in venc_empty_buf()
3905 …color_format = (OMX_COLOR_FORMATTYPE)MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_COLORFOR… in venc_empty_buf()
3954 if ((unsigned int)MetaBufferUtil::getBatchSize(hnd) != mBatchSize) { in venc_empty_buf()
3956 mBatchSize, MetaBufferUtil::getBatchSize(hnd)); in venc_empty_buf()
3963 int offset = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_OFFSET); in venc_empty_buf()
3964 int length = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_SIZE); in venc_empty_buf()
4330 } else if (MetaBufferUtil::getBatchSize(hnd) > kMaxBuffersInBatch) { in venc_empty_batch()
4332 "Max = %d", MetaBufferUtil::getBatchSize(hnd), kMaxBuffersInBatch); in venc_empty_batch()
4335 … DEBUG_PRINT_LOW("venc_empty_batch: Batch of %d bufs", MetaBufferUtil::getBatchSize(hnd)); in venc_empty_batch()
4351 int numBufs = MetaBufferUtil::getBatchSize(hnd); in venc_empty_batch()
[all …]
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp4235 Input_pmem_info.fd = MetaBufferUtil::getFdAt(media_buffer->meta_handle, 0); in empty_this_buffer_proxy()
4238 … int offset = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_OFFSET); in empty_this_buffer_proxy()
4239 … int size = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_SIZE); in empty_this_buffer_proxy()
5188 Input_pmem.fd = MetaBufferUtil::getFdAt(media_ptr->meta_handle, 0); in omx_release_meta_buffer()
5189 … int size = MetaBufferUtil::getIntAt(media_ptr->meta_handle, 0, MetaBufferUtil::INT_SIZE); in omx_release_meta_buffer()
5190 … int offset = MetaBufferUtil::getIntAt(media_ptr->meta_handle, 0, MetaBufferUtil::INT_OFFSET); in omx_release_meta_buffer()
5561 Input_pmem_info.fd = MetaBufferUtil::getFdAt(media_buffer->meta_handle, 0); in push_input_buffer()
5562 …Input_pmem_info.offset = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::IN… in push_input_buffer()
5563 …Input_pmem_info.size = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_… in push_input_buffer()
Dvideo_encoder_device_v4l2.cpp4237 usage = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_USAGE); in venc_empty_buf()
4247 …color_format = (OMX_COLOR_FORMATTYPE)MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_COLORFOR… in venc_empty_buf()
4297 if ((unsigned int)MetaBufferUtil::getBatchSize(hnd) != mBatchSize) { in venc_empty_buf()
4299 mBatchSize, MetaBufferUtil::getBatchSize(hnd)); in venc_empty_buf()
4306 int offset = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_OFFSET); in venc_empty_buf()
4307 int length = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_SIZE); in venc_empty_buf()
4724 } else if (MetaBufferUtil::getBatchSize(hnd) > kMaxBuffersInBatch) { in venc_empty_batch()
4726 "Max = %d", MetaBufferUtil::getBatchSize(hnd), kMaxBuffersInBatch); in venc_empty_batch()
4729 … DEBUG_PRINT_LOW("venc_empty_batch: Batch of %d bufs", MetaBufferUtil::getBatchSize(hnd)); in venc_empty_batch()
4745 int numBufs = MetaBufferUtil::getBatchSize(hnd); in venc_empty_batch()
[all …]
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp3974 Input_pmem_info.fd = MetaBufferUtil::getFdAt(media_buffer->meta_handle, 0); in empty_this_buffer_proxy()
3978 … int offset = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_OFFSET); in empty_this_buffer_proxy()
3979 … int size = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_SIZE); in empty_this_buffer_proxy()
4973 Input_pmem.fd = MetaBufferUtil::getFdAt(media_ptr->meta_handle, 0); in omx_release_meta_buffer()
4974 … int size = MetaBufferUtil::getIntAt(media_ptr->meta_handle, 0, MetaBufferUtil::INT_SIZE); in omx_release_meta_buffer()
4975 … int offset = MetaBufferUtil::getIntAt(media_ptr->meta_handle, 0, MetaBufferUtil::INT_OFFSET); in omx_release_meta_buffer()
5444 Input_pmem_info.fd = MetaBufferUtil::getFdAt(media_buffer->meta_handle, 0); in push_input_buffer()
5445 …Input_pmem_info.offset = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::IN… in push_input_buffer()
5446 …Input_pmem_info.size = MetaBufferUtil::getIntAt(media_buffer->meta_handle, 0, MetaBufferUtil::INT_… in push_input_buffer()
Dvideo_encoder_device_v4l2.cpp3901 usage = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_USAGE); in venc_empty_buf()
3915 …color_format = (OMX_COLOR_FORMATTYPE)MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_COLORFOR… in venc_empty_buf()
3964 if ((unsigned int)MetaBufferUtil::getBatchSize(hnd) != mBatchSize) { in venc_empty_buf()
3966 mBatchSize, MetaBufferUtil::getBatchSize(hnd)); in venc_empty_buf()
3973 int offset = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_OFFSET); in venc_empty_buf()
3974 int length = MetaBufferUtil::getIntAt(hnd, 0, MetaBufferUtil::INT_SIZE); in venc_empty_buf()
4251 } else if (MetaBufferUtil::getBatchSize(hnd) > kMaxBuffersInBatch) { in venc_empty_batch()
4253 "Max = %d", MetaBufferUtil::getBatchSize(hnd), kMaxBuffersInBatch); in venc_empty_batch()
4256 … DEBUG_PRINT_LOW("venc_empty_batch: Batch of %d bufs", MetaBufferUtil::getBatchSize(hnd)); in venc_empty_batch()
4272 int numBufs = MetaBufferUtil::getBatchSize(hnd); in venc_empty_batch()
[all …]