Home
last modified time | relevance | path

Searched refs:input_buffer (Results 1 – 25 of 70) sorted by relevance

123

/hardware/libhardware/modules/camera/3_4/
Dcapture_request.cpp41 if (request->input_buffer) { in CaptureRequest()
42 input_buffer = in CaptureRequest()
43 std::make_unique<camera3_stream_buffer_t>(*request->input_buffer); in CaptureRequest()
Drequest_tracker.cpp47 if (request.input_buffer) { in RequestStreams()
48 result.insert(request.input_buffer->stream); in RequestStreams()
/hardware/qcom/display/sdm845/sdm/libs/hwc/
Dblit_engine_c2d.cpp210 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit()
214 layer_stack->layers.at(index)->input_buffer.release_fence_fd; in PostCommit()
218 layer_stack->layers.at(index)->input_buffer.release_fence_fd = -1; in PostCommit()
219 fd = layer_stack->layers.at(index)->input_buffer.acquire_fence_fd; in PostCommit()
220 layer_stack->layers.at(index)->input_buffer.acquire_fence_fd = -1; in PostCommit()
265 if (Is10BitFormat(layer->input_buffer.format)) { in Prepare()
284 LayerBuffer &layer_buffer = layer_stack->layers.at(gpu_target_index)->input_buffer; in Prepare()
296 LayerBuffer &layer_buffer = layer->input_buffer; in Prepare()
383 layer->input_buffer.width = target_aligned_width; in PreCommit()
384 layer->input_buffer.height = target_aligned_height; in PreCommit()
[all …]
Dhwc_tonemapper.cpp103 tone_map_config_.type = layer->input_buffer.flags.hdr ? TONEMAP_FORWARD : TONEMAP_INVERSE; in SetToneMapConfig()
104 tone_map_config_.colorPrimaries = layer->input_buffer.color_metadata.colorPrimaries; in SetToneMapConfig()
105 tone_map_config_.transfer = layer->input_buffer.color_metadata.transfer; in SetToneMapConfig()
111 LayerBuffer& buffer = layer->input_buffer; in IsSameToneMapConfig()
145 fb_tone_map_session->UpdateBuffer(-1 /* acquire_fence */, &layer->input_buffer); in HandleToneMap()
182 acquire_fd = dup(layer->input_buffer.acquire_fence_fd); in ToneMap()
199 session->UpdateBuffer(fence_fd, &layer->input_buffer); in ToneMap()
210 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit()
Dhwc_display_external_test.cpp640 layer->input_buffer.unaligned_width = var_info.x_pixels; in InitLayer()
641 layer->input_buffer.unaligned_height = var_info.y_pixels; in InitLayer()
673 layer->input_buffer.width = buffer_info_.alloc_buffer_info.aligned_width; in InitLayer()
674 layer->input_buffer.height = buffer_info_.alloc_buffer_info.aligned_height; in InitLayer()
675 layer->input_buffer.size = buffer_info_.alloc_buffer_info.size; in InitLayer()
676 layer->input_buffer.planes[0].fd = buffer_info_.alloc_buffer_info.fd; in InitLayer()
677 layer->input_buffer.planes[0].stride = buffer_info_.alloc_buffer_info.stride; in InitLayer()
678 layer->input_buffer.format = buffer_info_.buffer_config.format; in InitLayer()
680 DLOGI("Input buffer WxH %dx%d format %s size %d fd %d stride %d", layer->input_buffer.width, in InitLayer()
681 layer->input_buffer.height, GetFormatString(layer->input_buffer.format), in InitLayer()
[all …]
Dhwc_display.cpp427 LayerBuffer &layer_buffer = layer->input_buffer; in PrepareLayerParams()
509 LayerBuffer &layer_buffer = layer->input_buffer; in CommitLayerParams()
607 layer->input_buffer.format = kFormatARGB8888; in PrePrepareLayerStack()
630 LayerBuffer &input_buffer = layer->input_buffer; in PrePrepareLayerStack() local
631 input_buffer.width = UINT32(layer->dst_rect.right - layer->dst_rect.left); in PrePrepareLayerStack()
632 input_buffer.height = UINT32(layer->dst_rect.bottom - layer->dst_rect.top); in PrePrepareLayerStack()
633 input_buffer.unaligned_width = input_buffer.width; in PrePrepareLayerStack()
634 input_buffer.unaligned_height = input_buffer.height; in PrePrepareLayerStack()
637 layer->src_rect.right = input_buffer.width; in PrePrepareLayerStack()
638 layer->src_rect.bottom = input_buffer.height; in PrePrepareLayerStack()
[all …]
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dblit_engine_c2d.cpp210 LayerBuffer *layer_buffer = layer->input_buffer; in PostCommit()
214 layer_stack->layers.at(index)->input_buffer->release_fence_fd; in PostCommit()
218 layer_stack->layers.at(index)->input_buffer->release_fence_fd = -1; in PostCommit()
219 fd = layer_stack->layers.at(index)->input_buffer->acquire_fence_fd; in PostCommit()
220 layer_stack->layers.at(index)->input_buffer->acquire_fence_fd = -1; in PostCommit()
265 if (Is10BitFormat(layer->input_buffer->format)) { in Prepare()
284 LayerBuffer *layer_buffer = layer_stack->layers.at(gpu_target_index)->input_buffer; in Prepare()
296 LayerBuffer *layer_buffer = layer->input_buffer; in Prepare()
370 layer->input_buffer->width = target_width; in PreCommit()
371 layer->input_buffer->height = target_height; in PreCommit()
[all …]
Dhwc_display.cpp60 if (layer->input_buffer->flags.interlace) { in ApplyDeInterlaceAdjustment()
327 layer->input_buffer = layer_buffer; in AllocateLayerStack()
336 delete layer->input_buffer; in FreeLayerStack()
345 LayerBuffer *layer_buffer = layer->input_buffer; in PrepareLayerParams()
410 LayerBuffer *layer_buffer = layer->input_buffer; in CommitLayerParams()
499 layer->input_buffer->format = kFormatARGB8888; in PrePrepareLayerStack()
514 LayerBuffer *input_buffer = layer->input_buffer; in PrePrepareLayerStack() local
515 input_buffer->width = UINT32(layer->dst_rect.right - layer->dst_rect.left); in PrePrepareLayerStack()
516 input_buffer->height = UINT32(layer->dst_rect.bottom - layer->dst_rect.top); in PrePrepareLayerStack()
519 layer->src_rect.right = input_buffer->width; in PrePrepareLayerStack()
[all …]
/hardware/qcom/display/sdm845/sdm/libs/hwc2/
Dhwc_tonemapper.cpp112 tone_map_config_.type = layer->input_buffer.flags.hdr ? TONEMAP_FORWARD : TONEMAP_INVERSE; in SetToneMapConfig()
113 tone_map_config_.colorPrimaries = layer->input_buffer.color_metadata.colorPrimaries; in SetToneMapConfig()
114 tone_map_config_.transfer = layer->input_buffer.color_metadata.transfer; in SetToneMapConfig()
120 LayerBuffer& buffer = layer->input_buffer; in IsSameToneMapConfig()
154 fb_tone_map_session->UpdateBuffer(-1 /* acquire_fence */, &layer->input_buffer); in HandleToneMap()
191 (layer->input_buffer.buffer_id); in ToneMap()
194 acquire_fd = layer->input_buffer.acquire_fence_fd; in ToneMap()
211 session->UpdateBuffer(fence_fd, &layer->input_buffer); in ToneMap()
222 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit()
Dhwc_display.cpp466 layer->input_buffer.color_metadata.colorPrimaries); in BuildLayerStack()
472 if (layer->input_buffer.acquire_fence_fd >= 0) { in BuildLayerStack()
473 close(layer->input_buffer.acquire_fence_fd); in BuildLayerStack()
474 layer->input_buffer.acquire_fence_fd = -1; in BuildLayerStack()
479 reinterpret_cast<const private_handle_t *>(layer->input_buffer.buffer_id); in BuildLayerStack()
510 bool hdr_layer = layer->input_buffer.color_metadata.colorPrimaries == ColorPrimaries_BT2020 && in BuildLayerStack()
511 (layer->input_buffer.color_metadata.transfer == Transfer_SMPTE_ST2084 || in BuildLayerStack()
512 layer->input_buffer.color_metadata.transfer == Transfer_HLG); in BuildLayerStack()
515 layer->input_buffer.flags.hdr = true; in BuildLayerStack()
526 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/core/
Ddisplay_base.cpp591 LayerBuffer *input_buffer = &hw_layer.input_buffer; in AppendDump() local
597 const char *buffer_format = GetFormatString(input_buffer->format); in AppendDump()
612 writeback_id, rotate.pipe_id, input_buffer->width, in AppendDump()
613 input_buffer->height, buffer_format, INT(src_roi.left), in AppendDump()
624 input_buffer = &hw_rotator_session.output_buffer; in AppendDump()
625 buffer_format = GetFormatString(input_buffer->format); in AppendDump()
648 ColorMetaData &color_metadata = hw_layer.input_buffer.color_metadata; in AppendDump()
653 "-", pipe.pipe_id, input_buffer->width, input_buffer->height, in AppendDump()
1284 hw_layer.input_buffer.planes[0].fd = sdm_layer->input_buffer.planes[0].fd; in CommitLayerParams()
1285 hw_layer.input_buffer.planes[0].offset = sdm_layer->input_buffer.planes[0].offset; in CommitLayerParams()
[all …]
/hardware/qcom/display/sdm845/sdm/libs/core/
Ddisplay_base.cpp586 LayerBuffer *input_buffer = &hw_layer.input_buffer; in AppendDump() local
592 const char *buffer_format = GetFormatString(input_buffer->format); in AppendDump()
607 writeback_id, rotate.pipe_id, input_buffer->width, in AppendDump()
608 input_buffer->height, buffer_format, INT(src_roi.left), in AppendDump()
619 input_buffer = &hw_rotator_session.output_buffer; in AppendDump()
620 buffer_format = GetFormatString(input_buffer->format); in AppendDump()
643 ColorMetaData &color_metadata = hw_layer.input_buffer.color_metadata; in AppendDump()
648 "-", pipe.pipe_id, input_buffer->width, input_buffer->height, in AppendDump()
1283 hw_layer.input_buffer.planes[0].fd = sdm_layer->input_buffer.planes[0].fd; in CommitLayerParams()
1284 hw_layer.input_buffer.planes[0].offset = sdm_layer->input_buffer.planes[0].offset; in CommitLayerParams()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_tonemapper.cpp88 (ctx->layer->input_buffer.buffer_id); in OnTask()
151 tone_map_config_.type = layer->input_buffer.flags.hdr ? TONEMAP_FORWARD : TONEMAP_INVERSE; in SetToneMapConfig()
152 tone_map_config_.colorPrimaries = layer->input_buffer.color_metadata.colorPrimaries; in SetToneMapConfig()
153 tone_map_config_.transfer = layer->input_buffer.color_metadata.transfer; in SetToneMapConfig()
159 LayerBuffer& buffer = layer->input_buffer; in IsSameToneMapConfig()
193 fb_tone_map_session->UpdateBuffer(-1 /* acquire_fence */, &layer->input_buffer); in HandleToneMap()
229 int acquire_fd = layer->input_buffer.acquire_fence_fd; in ToneMap()
245 session->UpdateBuffer(ctx.fence_fd, &layer->input_buffer); in ToneMap()
256 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit()
Dhwc_display.cpp473 layer->input_buffer.color_metadata.colorPrimaries); in BuildLayerStack()
479 if (layer->input_buffer.acquire_fence_fd >= 0) { in BuildLayerStack()
480 close(layer->input_buffer.acquire_fence_fd); in BuildLayerStack()
481 layer->input_buffer.acquire_fence_fd = -1; in BuildLayerStack()
486 reinterpret_cast<const private_handle_t *>(layer->input_buffer.buffer_id); in BuildLayerStack()
509 bool hdr_layer = layer->input_buffer.color_metadata.colorPrimaries == ColorPrimaries_BT2020 && in BuildLayerStack()
510 (layer->input_buffer.color_metadata.transfer == Transfer_SMPTE_ST2084 || in BuildLayerStack()
511 layer->input_buffer.color_metadata.transfer == Transfer_HLG); in BuildLayerStack()
514 layer->input_buffer.flags.hdr = true; in BuildLayerStack()
525 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack()
[all …]
/hardware/qcom/display/msm8996/sdm/libs/core/fb/
Dhw_device.cpp187 LayerBuffer *input_buffer = layer->input_buffer; in Validate() local
199 input_buffer = &hw_rotator_session->output_buffer; in Validate()
206 mdp_buffer.width = input_buffer->width; in Validate()
207 mdp_buffer.height = input_buffer->height; in Validate()
214 error = SetFormat(input_buffer->format, &mdp_buffer.format); in Validate()
230 SetCSC(layer->input_buffer->csc, &mdp_layer.color_space); in Validate()
232 SetIGC(layer->input_buffer, mdp_layer_count); in Validate()
375 LayerBuffer *input_buffer = stack->layers.at(layer_index)->input_buffer; in Commit() local
385 input_buffer = &hw_rotator_session->output_buffer; in Commit()
391 if (input_buffer->planes[0].fd >= 0) { in Commit()
[all …]
/hardware/qcom/display/sdm845/sdm/libs/core/fb/
Dhw_device.cpp206 LayerBuffer input_buffer = layer.input_buffer; in Validate() local
217 input_buffer = hw_rotator_session->output_buffer; in Validate()
224 mdp_buffer.width = input_buffer.width; in Validate()
225 mdp_buffer.height = input_buffer.height; in Validate()
232 error = SetFormat(input_buffer.format, &mdp_buffer.format); in Validate()
250 SetCSC(layer.input_buffer.color_metadata, &mdp_layer.color_space); in Validate()
252 SetIGC(&layer.input_buffer, mdp_layer_count); in Validate()
422 LayerBuffer *input_buffer = const_cast<LayerBuffer *>(&layer.input_buffer); in Commit() local
432 input_buffer = &hw_rotator_session->output_buffer; in Commit()
438 if (input_buffer->planes[0].fd >= 0) { in Commit()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/core/fb/
Dhw_device.cpp207 LayerBuffer input_buffer = layer.input_buffer; in Validate() local
219 input_buffer = hw_rotator_session->output_buffer; in Validate()
226 mdp_buffer.width = input_buffer.width; in Validate()
227 mdp_buffer.height = input_buffer.height; in Validate()
234 error = SetFormat(input_buffer.format, &mdp_buffer.format); in Validate()
250 SetCSC(layer.input_buffer.color_metadata, &mdp_layer.color_space); in Validate()
252 SetIGC(&layer.input_buffer, mdp_layer_count); in Validate()
419 LayerBuffer *input_buffer = const_cast<LayerBuffer *>(&layer.input_buffer); in Commit() local
429 input_buffer = &hw_rotator_session->output_buffer; in Commit()
435 if (input_buffer->planes[0].fd >= 0) { in Commit()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/core/drm/
Dhw_device_drm.cpp371 LayerBuffer *input_buffer = &layer.input_buffer; in SetupAtomic() local
387 input_buffer = &hw_rotator_session->output_buffer; in SetupAtomic()
393 if (input_buffer->fb_id == 0) { in SetupAtomic()
429 drm_atomic_intf_->Perform(DRMOps::PLANE_SET_FB_ID, pipe_id, input_buffer->fb_id); in SetupAtomic()
431 if (!validate && input_buffer->acquire_fence_fd >= 0) { in SetupAtomic()
433 input_buffer->acquire_fence_fd); in SetupAtomic()
473 layer.input_buffer.release_fence_fd = -1; in DefaultCommit()
502 LayerBuffer &input_buffer = hw_layer_info.hw_layers.at(0).input_buffer; in DefaultCommit() local
503 ret = drmModeSetCrtc(dev_fd, crtc_id, input_buffer.fb_id, 0 /* x */, 0 /* y */, &connector_id, in DefaultCommit()
507 input_buffer.fb_id, crtc_id, connector_id, strerror(errno)); in DefaultCommit()
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/
Ddecoder_driver_test.c267 init_decode->input_buffer.buffer_type = VDEC_BUFFER_TYPE_INPUT; in init_decoder()
269 ioctl_msg.out = &init_decode->input_buffer; in init_decoder()
278 init_decode->input_buffer.buffer_size,\ in init_decoder()
279 init_decode->input_buffer.mincount,\ in init_decoder()
280 init_decode->input_buffer.actualcount); in init_decoder()
283 init_decode->input_buffer.buffer_type = VDEC_BUFFER_TYPE_INPUT; in init_decoder()
284 ioctl_msg.in = &init_decode->input_buffer; in init_decoder()
286 init_decode->input_buffer.actualcount = init_decode->input_buffer.mincount + 2; in init_decoder()
365 buffercount = decode_context->input_buffer.actualcount; in free_buffer()
443 buffercount = decode_context->input_buffer.actualcount; in allocate_buffer()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
Ddecoder_driver_test.c279 init_decode->input_buffer.buffer_type = VDEC_BUFFER_TYPE_INPUT; in init_decoder()
281 ioctl_msg.out = &init_decode->input_buffer; in init_decoder()
291 init_decode->input_buffer.buffer_size,\ in init_decoder()
292 init_decode->input_buffer.mincount,\ in init_decoder()
293 init_decode->input_buffer.actualcount); in init_decoder()
296 init_decode->input_buffer.buffer_type = VDEC_BUFFER_TYPE_INPUT; in init_decoder()
297 ioctl_msg.in = &init_decode->input_buffer; in init_decoder()
299 init_decode->input_buffer.actualcount = init_decode->input_buffer.mincount + 2; in init_decoder()
382 buffercount = decode_context->input_buffer.actualcount; in free_buffer()
470 buffercount = decode_context->input_buffer.actualcount; in allocate_buffer()
[all …]
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_display.cpp55 if (layer->input_buffer->flags.interlace) { in ApplyDeInterlaceAdjustment()
337 if (layer->input_buffer->acquire_fence_fd >= 0) { in BuildLayerStack()
338 close(layer->input_buffer->acquire_fence_fd); in BuildLayerStack()
339 layer->input_buffer->acquire_fence_fd = -1; in BuildLayerStack()
344 reinterpret_cast<const private_handle_t *>(layer->input_buffer->buffer_id); in BuildLayerStack()
375 LayerBuffer *layer_buffer = layer->input_buffer; in BuildLayerStack()
901 client_target_->GetSDMLayer()->input_buffer->release_fence_fd; in BuildLayerStack()
910 LayerBuffer *layer_buffer = layer->input_buffer; in BuildLayerStack()
1116 reinterpret_cast<const private_handle_t *>(layer->input_buffer->buffer_id); in BuildLayerStack()
1117 auto acquire_fence_fd = layer->input_buffer->acquire_fence_fd; in BuildLayerStack()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/
Dvideo_encoder_test.c337 ioctl_msg.out = &init_decode->input_buffer; in init_encoder()
347 (int)init_decode->input_buffer.datasize,\ in init_encoder()
348 (int)init_decode->input_buffer.mincount,\ in init_encoder()
349 (int)init_decode->input_buffer.actualcount); in init_encoder()
352 ioctl_msg.in = &init_decode->input_buffer; in init_encoder()
354 init_decode->input_buffer.actualcount = init_decode->input_buffer.mincount + 2; in init_encoder()
436 buffercount = encoder_context->input_buffer.actualcount; in free_buffer()
509 buffercount = encoder_context->input_buffer.actualcount; in allocate_buffer()
510 alignedsize = encoder_context->input_buffer.alignment; in allocate_buffer()
511 buffersize = encoder_context->input_buffer.datasize; in allocate_buffer()
[all …]
/hardware/qcom/display/sdm845/sdm/libs/core/drm/
Dhw_device_drm.cpp224 LayerBuffer *input_buffer = &layer.input_buffer; in RegisterCurrent() local
229 input_buffer = &hw_rotator_session->output_buffer; in RegisterCurrent()
232 MapBufferToFbId(input_buffer); in RegisterCurrent()
651 LayerBuffer *input_buffer = &layer.input_buffer; in SetupAtomic() local
662 input_buffer = &hw_rotator_session->output_buffer; in SetupAtomic()
666 uint32_t fb_id = registry_.GetFbId(input_buffer->planes[0].fd); in SetupAtomic()
698 SetSrcConfig(layer.input_buffer, &config); in SetupAtomic()
702 if (!validate && input_buffer->acquire_fence_fd >= 0) { in SetupAtomic()
704 input_buffer->acquire_fence_fd); in SetupAtomic()
767 layer.input_buffer.release_fence_fd = -1; in DefaultCommit()
[all …]
/hardware/qcom/display/msm8996/sdm/libs/core/
Ddisplay_base.cpp582 if (layer == NULL || layer->input_buffer == NULL) { in AppendDump()
587 LayerBuffer *input_buffer = layer->input_buffer; in AppendDump() local
593 const char *buffer_format = GetFormatString(input_buffer->format); in AppendDump()
608 writeback_id, rotate.pipe_id, input_buffer->width, in AppendDump()
609 input_buffer->height, buffer_format, INT(src_roi.left), in AppendDump()
620 input_buffer = &hw_rotator_session.output_buffer; in AppendDump()
621 buffer_format = GetFormatString(input_buffer->format); in AppendDump()
643 snprintf(csc, sizeof(csc), "%d", layer->input_buffer->csc); in AppendDump()
646 "-", pipe.pipe_id, input_buffer->width, input_buffer->height, in AppendDump()
960 LayerBuffer *layer_buffer = layer->input_buffer; in NeedsMixerReconfiguration()
/hardware/libhardware/include/hardware/
Dcamera3.h2191 camera3_stream_buffer_t *input_buffer; member
2375 const camera3_stream_buffer_t *input_buffer; member

123