Searched defs:usage (Results 76 - 100 of 168) sorted by relevance

1234567

/hardware/google/av/media/codecs/aac/
H A DC2SoftAacEnc.cpp319 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; local
320 // TODO: error handling, proper usage, etc.
321 c2_status_t err = pool->fetchLinearBlock(mOutBufferSize * numFrames, usage, &block);
/hardware/google/av/media/codecs/amr_nb_wb/
H A DC2SoftAmrWbEnc.cpp302 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; local
303 c2_status_t err = pool->fetchLinearBlock(outCapacity, usage, &outputBlock);
/hardware/google/av/media/codecs/cmds/
H A Dcodec2.cpp386 static void usage(const char *me) { function
387 fprintf(stderr, "usage: %s [options] [input_filename]\n", me);
400 usage(argv[0]);
/hardware/google/av/media/codecs/flac/
H A DC2SoftFlacEnc.cpp226 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; local
227 c2_status_t err = pool->fetchLinearBlock(outCapacity, usage, &mOutputBlock);
/hardware/google/av/media/codecs/mp3/
H A DC2SoftMp3Dec.cpp376 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; local
377 c2_status_t err = pool->fetchLinearBlock(calOutSize, usage, &block);
/hardware/google/av/media/codecs/mpeg4_h263/
H A DC2SoftMpeg4Enc.cpp324 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; local
325 c2_status_t err = pool->fetchLinearBlock(mOutBufferSize, usage, &block);
/hardware/google/av/media/codecs/opus/
H A DC2SoftOpusDec.cpp429 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; local
432 usage, &block);
/hardware/google/av/media/codecs/vpx/
H A DC2SoftVpxDec.cpp453 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; local
454 c2_status_t err = pool->fetchGraphicBlock(align(mWidth, 16) * bpp, mHeight, format, usage, &block);
/hardware/intel/common/libmix/videoencoder/
H A DVideoEncoderUtils.cpp45 int usage, buffer_handle_t* handle, int32_t* stride) {
56 err = gralloc_device_alloc_img(gGralloc, w, h, format, usage, handle,
60 w, h, format, usage, err, strerror(-err));
85 static int gfx_lock(buffer_handle_t handle, int usage, argument
104 err = gralloc_lock_async_img(gGralloc, handle, usage, &r, vaddr, -1);
106 LOG_V("gfx_lock: handle is %x, usage is %x, vaddr is %x.\n",
107 (unsigned int)handle, usage, (unsigned int)*vaddr);
216 int usage = GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_SW_READ_OFTEN; local
219 if (gfx_lock((buffer_handle_t)handle, usage, 0, 0, vinfo.width, vinfo.height, &vaddr[0]) != 0)
308 int usage local
44 gfx_alloc(uint32_t w, uint32_t h, int format, int usage, buffer_handle_t* handle, int32_t* stride) argument
557 int usage = GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_SW_READ_OFTEN; local
[all...]
/hardware/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/
H A DGralloc1On0Adapter.cpp250 int usage = android_convertGralloc1To0Usage( local
255 descriptor->height, descriptor->format, usage);
259 usage, &handle, &stride);
/hardware/interfaces/media/omx/1.0/vts/functional/common/
H A Dmedia_hidl_test_common.cpp209 uint32_t usage; local
215 descriptorInfo.usage = static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN);
218 [&status, &usage](android::hardware::media::omx::V1_0::Status _s,
221 usage = _n1;
224 descriptorInfo.usage |= usage;
253 buffer->omxBuffer.attr.anwBuffer.usage = descriptorInfo.usage;
/hardware/libhardware/include/hardware/
H A Dtv_input.h276 /* OUT: Client must set this usage when allocating buffer. */
277 uint32_t usage; member in struct:buffer_producer_stream
370 * usage specified in the stream. Framework provides seq in an
/hardware/libhardware/modules/audio/
H A Daudio_policy.c72 audio_policy_force_use_t usage,
77 /* retreive current device category forced for a given usage */
80 audio_policy_force_use_t usage)
71 ap_set_force_use(struct audio_policy *pol, audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) argument
78 ap_get_force_use( const struct audio_policy *pol, audio_policy_force_use_t usage) argument
/hardware/libhardware/modules/camera/3_0/
H A DCamera.cpp194 // Set up all streams (calculate usage/max_buffers for each)
276 * streams, and then produce usage and max_buffer values for each stream.
285 uint32_t usage = 0; local
288 usage |= GRALLOC_USAGE_SW_WRITE_OFTEN |
291 usage |= GRALLOC_USAGE_SW_READ_OFTEN |
294 streams[i]->setUsage(usage);
/hardware/qcom/display/msm8909/gralloc/
H A Dgr_device_impl.cpp231 gralloc1_consumer_usage_t usage) {
237 &BufferDescriptor::SetConsumerUsage, usage);
281 gralloc1_producer_usage_t usage) {
287 &BufferDescriptor::SetProducerUsage, usage);
458 // Either producer usage or consumer usage must be *_USAGE_NONE
229 SetConsumerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_consumer_usage_t usage) argument
279 SetProducerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_producer_usage_t usage) argument
H A Dgr_priv_handle.h141 private_handle_t(int fd, unsigned int size, int usage, int buf_type, int format, int w, int h) argument
143 static_cast<gralloc1_producer_usage_t>(usage),
144 static_cast<gralloc1_consumer_usage_t>(usage)) {
H A Dgr_utils.cpp372 int usage = 0; local
374 usage = GRALLOC1_PRODUCER_USAGE_PRIVATE_ALLOC_UBWC;
508 // Allow UBWC, if an OpenGL client sets UBWC usage flag and GPU plus MDP
510 // usage flag and MDP supports the format.
521 // Allow UBWC, only if CPU usage flags are not set
/hardware/qcom/display/msm8909w_3100/libgralloc1/
H A Dgr_device_impl.cpp231 gralloc1_consumer_usage_t usage) {
237 &BufferDescriptor::SetConsumerUsage, usage);
281 gralloc1_producer_usage_t usage) {
287 &BufferDescriptor::SetProducerUsage, usage);
459 // Either producer usage or consumer usage must be *_USAGE_NONE
229 SetConsumerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_consumer_usage_t usage) argument
279 SetProducerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_producer_usage_t usage) argument
H A Dgr_priv_handle.h142 private_handle_t(int fd, unsigned int size, int usage, int buf_type, int format, int w, int h) argument
144 static_cast<gralloc1_producer_usage_t>(usage),
145 static_cast<gralloc1_consumer_usage_t>(usage)) {
H A Dgr_utils.cpp372 int usage = 0; local
374 usage = GRALLOC1_PRODUCER_USAGE_PRIVATE_ALLOC_UBWC;
508 // Allow UBWC, if an OpenGL client sets UBWC usage flag and GPU plus MDP
510 // usage flag and MDP supports the format.
521 // Allow UBWC, only if CPU usage flags are not set
/hardware/qcom/display/msm8994/libgralloc/
H A Dalloc_controller.cpp60 static bool canFallback(int usage, bool triedSystem) argument
74 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED))
76 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY))
86 static bool useUncached(const int& usage) { argument
87 if ((usage & GRALLOC_USAGE_PROTECTED) or
88 (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) or
89 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) or
90 ((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY))
167 int usage, int& aligned_w, int& aligned_h)
172 int tileEnabled = isMacroTileEnabled(format, usage);
166 getAlignedWidthAndHeight(int width, int height, int format, int usage, int& aligned_w, int& aligned_h) argument
375 allocate(alloc_data& data, int usage) argument
453 isMacroTileEnabled(int format, int usage) argument
486 getSize(int format, int width, int height, int usage, const int alignedw, const int alignedh) argument
622 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument
640 getBufferAttributes(int width, int height, int format, int usage, int& alignedw, int &alignedh, int& tileEnabled, unsigned int& size) argument
723 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument
796 isUBwcEnabled(int format, int usage) argument
[all...]
H A Dmapper.cpp216 buffer_handle_t handle, int usage)
224 if (usage & (GRALLOC_USAGE_SW_READ_MASK | GRALLOC_USAGE_SW_WRITE_MASK)) {
237 if ((usage & GRALLOC_USAGE_SW_READ_MASK) and
246 if (usage & GRALLOC_USAGE_SW_WRITE_MASK) {
256 buffer_handle_t handle, int usage,
262 int err = gralloc_map_and_invalidate(module, handle, usage);
269 buffer_handle_t handle, int usage,
275 int err = gralloc_map_and_invalidate(module, handle, usage);
456 int usage = va_arg(args, int); local
460 *tileEnabled = isMacroTileEnabled(format, usage);
215 gralloc_map_and_invalidate(gralloc_module_t const* module, buffer_handle_t handle, int usage) argument
255 gralloc_lock(gralloc_module_t const* module, buffer_handle_t handle, int usage, int , int , int , int , void** vaddr) argument
268 gralloc_lock_ycbcr(gralloc_module_t const* module, buffer_handle_t handle, int usage, int , int , int , int , struct android_ycbcr *ycbcr) argument
[all...]
/hardware/qcom/display/msm8996/libgralloc/
H A Dmapper.cpp215 buffer_handle_t handle, int usage)
223 if (usage & (GRALLOC_USAGE_SW_READ_MASK | GRALLOC_USAGE_SW_WRITE_MASK)) {
236 if ((usage & GRALLOC_USAGE_SW_READ_MASK) and
245 if (usage & GRALLOC_USAGE_SW_WRITE_MASK) {
255 buffer_handle_t handle, int usage,
261 int err = gralloc_map_and_invalidate(module, handle, usage);
268 buffer_handle_t handle, int usage,
274 int err = gralloc_map_and_invalidate(module, handle, usage);
454 int usage = va_arg(args, int); local
458 *tileEnabled = isUBwcEnabled(format, usage) ||
214 gralloc_map_and_invalidate(gralloc_module_t const* module, buffer_handle_t handle, int usage) argument
254 gralloc_lock(gralloc_module_t const* module, buffer_handle_t handle, int usage, int , int , int , int , void** vaddr) argument
267 gralloc_lock_ycbcr(gralloc_module_t const* module, buffer_handle_t handle, int usage, int , int , int , int , struct android_ycbcr *ycbcr) argument
[all...]
/hardware/qcom/display/msm8996/libgralloc1/
H A Dgr_device_impl.cpp219 gralloc1_consumer_usage_t usage) {
225 &BufferDescriptor::SetConsumerUsage, usage);
269 gralloc1_producer_usage_t usage) {
275 &BufferDescriptor::SetProducerUsage, usage);
430 // Either producer usage or consumer usage must be *_USAGE_NONE
217 SetConsumerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_consumer_usage_t usage) argument
267 SetProducerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_producer_usage_t usage) argument
H A Dgr_priv_handle.h135 private_handle_t(int fd, unsigned int size, int usage, int buf_type, int format, int w, int h) argument
137 static_cast<gralloc1_producer_usage_t>(usage),
138 static_cast<gralloc1_consumer_usage_t>(usage)) {

Completed in 515 milliseconds

1234567