/hardware/libhardware/modules/camera/3_4/ |
D | capture_request.cpp | 41 if (request->input_buffer) { in CaptureRequest() 42 input_buffer = in CaptureRequest() 43 std::make_unique<camera3_stream_buffer_t>(*request->input_buffer); in CaptureRequest()
|
/hardware/qcom/display/msm8909/sdm/libs/hwc/ |
D | blit_engine_c2d.cpp | 210 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 …]
|
D | hwc_tonemapper.cpp | 103 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()
|
D | hwc_display_external_test.cpp | 640 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 …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/ |
D | blit_engine_c2d.cpp | 210 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 …]
|
D | hwc_tonemapper.cpp | 103 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()
|
D | hwc_display_external_test.cpp | 640 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 …]
|
/hardware/qcom/display/msm8996/sdm/libs/hwc/ |
D | blit_engine_c2d.cpp | 210 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 …]
|
/hardware/qcom/display/msm8998/sdm/libs/core/ |
D | display_base.cpp | 593 LayerBuffer *input_buffer = &hw_layer.input_buffer; in AppendDump() local 599 const char *buffer_format = GetFormatString(input_buffer->format); in AppendDump() 614 writeback_id, rotate.pipe_id, input_buffer->width, in AppendDump() 615 input_buffer->height, buffer_format, INT(src_roi.left), in AppendDump() 626 input_buffer = &hw_rotator_session.output_buffer; in AppendDump() 627 buffer_format = GetFormatString(input_buffer->format); in AppendDump() 650 ColorMetaData &color_metadata = hw_layer.input_buffer.color_metadata; in AppendDump() 655 "-", pipe.pipe_id, input_buffer->width, input_buffer->height, in AppendDump() 1286 hw_layer.input_buffer.planes[0].fd = sdm_layer->input_buffer.planes[0].fd; in CommitLayerParams() 1287 hw_layer.input_buffer.planes[0].offset = sdm_layer->input_buffer.planes[0].offset; in CommitLayerParams() [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/hwc2/ |
D | hwc_tonemapper.cpp | 88 (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()
|
/hardware/qcom/display/msm8909/sdm/libs/hwc2/ |
D | hwc_display_external_test.cpp | 633 layer->input_buffer.unaligned_width = var_info.x_pixels; in InitLayer() 634 layer->input_buffer.unaligned_height = var_info.y_pixels; in InitLayer() 666 layer->input_buffer.width = buffer_info_.alloc_buffer_info.aligned_width; in InitLayer() 667 layer->input_buffer.height = buffer_info_.alloc_buffer_info.aligned_height; in InitLayer() 668 layer->input_buffer.size = buffer_info_.alloc_buffer_info.size; in InitLayer() 669 layer->input_buffer.planes[0].fd = buffer_info_.alloc_buffer_info.fd; in InitLayer() 670 layer->input_buffer.planes[0].stride = buffer_info_.alloc_buffer_info.stride; in InitLayer() 671 layer->input_buffer.format = buffer_info_.buffer_config.format; in InitLayer() 673 DLOGI("Input buffer WxH %dx%d format %s size %d fd %d stride %d", layer->input_buffer.width, in InitLayer() 674 layer->input_buffer.height, GetFormatString(layer->input_buffer.format), in InitLayer() [all …]
|
D | hwc_tonemapper.cpp | 88 (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() 194 fb_tone_map_session->UpdateBuffer(-1 /* acquire_fence */, &layer->input_buffer); in HandleToneMap() 231 int acquire_fd = layer->input_buffer.acquire_fence_fd; in ToneMap() 247 session->UpdateBuffer(ctx.fence_fd, &layer->input_buffer); in ToneMap() 258 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit()
|
D | hwc_display.cpp | 494 layer->input_buffer.color_metadata.colorPrimaries); in BuildLayerStack() 500 if (layer->input_buffer.acquire_fence_fd >= 0) { in BuildLayerStack() 501 close(layer->input_buffer.acquire_fence_fd); in BuildLayerStack() 502 layer->input_buffer.acquire_fence_fd = -1; in BuildLayerStack() 507 reinterpret_cast<const private_handle_t *>(layer->input_buffer.buffer_id); in BuildLayerStack() 530 if (layer->input_buffer.flags.secure_display) { in BuildLayerStack() 542 bool hdr_layer = layer->input_buffer.color_metadata.colorPrimaries == ColorPrimaries_BT2020 && in BuildLayerStack() 543 (layer->input_buffer.color_metadata.transfer == Transfer_SMPTE_ST2084 || in BuildLayerStack() 544 layer->input_buffer.color_metadata.transfer == Transfer_HLG); in BuildLayerStack() 547 layer->input_buffer.flags.hdr = true; in BuildLayerStack() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/ |
D | display_base.cpp | 577 LayerBuffer *input_buffer = &hw_layer.input_buffer; in AppendDump() local 583 const char *buffer_format = GetFormatString(input_buffer->format); in AppendDump() 598 writeback_id, rotate.pipe_id, input_buffer->width, in AppendDump() 599 input_buffer->height, buffer_format, INT(src_roi.left), in AppendDump() 610 input_buffer = &hw_rotator_session.output_buffer; in AppendDump() 611 buffer_format = GetFormatString(input_buffer->format); in AppendDump() 634 ColorMetaData &color_metadata = hw_layer.input_buffer.color_metadata; in AppendDump() 639 "-", pipe.pipe_id, input_buffer->width, input_buffer->height, in AppendDump() 1267 hw_layer.input_buffer.planes[0].fd = sdm_layer->input_buffer.planes[0].fd; in CommitLayerParams() 1268 hw_layer.input_buffer.planes[0].offset = sdm_layer->input_buffer.planes[0].offset; in CommitLayerParams() [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/core/ |
D | display_base.cpp | 590 LayerBuffer *input_buffer = &hw_layer.input_buffer; in Dump() local 596 const char *buffer_format = GetFormatString(input_buffer->format); in Dump() 612 writeback_id, rotate.pipe_id, input_buffer->width, in Dump() 613 input_buffer->height, buffer_format, INT(src_roi.left), in Dump() 624 input_buffer = &hw_rotator_session.output_buffer; in Dump() 625 buffer_format = GetFormatString(input_buffer->format); in Dump() 648 ColorMetaData &color_metadata = hw_layer.input_buffer.color_metadata; in Dump() 654 "-", pipe.pipe_id, input_buffer->width, input_buffer->height, in Dump() 1288 hw_layer.input_buffer.planes[0].fd = sdm_layer->input_buffer.planes[0].fd; in CommitLayerParams() 1289 hw_layer.input_buffer.planes[0].offset = sdm_layer->input_buffer.planes[0].offset; in CommitLayerParams() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/ |
D | hwc_tonemapper.cpp | 88 (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()
|
/hardware/qcom/display/msm8996/sdm/libs/core/fb/ |
D | hw_device.cpp | 187 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/msm8909w_3100/sdm/libs/core/fb/ |
D | hw_device.cpp | 206 LayerBuffer input_buffer = layer.input_buffer; in Validate() local 218 input_buffer = hw_rotator_session->output_buffer; in Validate() 225 mdp_buffer.width = input_buffer.width; in Validate() 226 mdp_buffer.height = input_buffer.height; in Validate() 233 error = SetFormat(input_buffer.format, &mdp_buffer.format); in Validate() 251 SetCSC(layer.input_buffer.color_metadata, &mdp_layer.color_space); in Validate() 253 SetIGC(&layer.input_buffer, mdp_layer_count); in Validate() 423 LayerBuffer *input_buffer = const_cast<LayerBuffer *>(&layer.input_buffer); in Commit() local 433 input_buffer = &hw_rotator_session->output_buffer; in Commit() 439 if (input_buffer->planes[0].fd >= 0) { in Commit() [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/core/fb/ |
D | hw_device.cpp | 210 LayerBuffer input_buffer = layer.input_buffer; in Validate() local 222 input_buffer = hw_rotator_session->output_buffer; in Validate() 229 mdp_buffer.width = input_buffer.width; in Validate() 230 mdp_buffer.height = input_buffer.height; in Validate() 237 error = SetFormat(input_buffer.format, &mdp_buffer.format); in Validate() 255 SetCSC(layer.input_buffer.color_metadata, &mdp_layer.color_space); in Validate() 257 SetIGC(&layer.input_buffer, mdp_layer_count); in Validate() 427 LayerBuffer *input_buffer = const_cast<LayerBuffer *>(&layer.input_buffer); in Commit() local 437 input_buffer = &hw_rotator_session->output_buffer; in Commit() 443 if (input_buffer->planes[0].fd >= 0) { in Commit() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/drm/ |
D | hw_device_drm.cpp | 230 LayerBuffer *input_buffer = &layer.input_buffer; in RegisterCurrent() local 235 input_buffer = &hw_rotator_session->output_buffer; in RegisterCurrent() 238 int fd = input_buffer->planes[0].fd; in RegisterCurrent() 243 buf_info.aligned_width = layout.width = input_buffer->width; in RegisterCurrent() 244 buf_info.aligned_height = layout.height = input_buffer->height; in RegisterCurrent() 245 buf_info.format = input_buffer->format; in RegisterCurrent() 595 LayerBuffer *input_buffer = &layer.input_buffer; in SetupAtomic() local 606 input_buffer = &hw_rotator_session->output_buffer; in SetupAtomic() 610 uint32_t fb_id = registry_.GetFbId(input_buffer->planes[0].fd); in SetupAtomic() 642 SetSrcConfig(layer.input_buffer, &config); in SetupAtomic() [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/core/drm/ |
D | hw_device_drm.cpp | 230 LayerBuffer *input_buffer = &layer.input_buffer; in RegisterCurrent() local 235 input_buffer = &hw_rotator_session->output_buffer; in RegisterCurrent() 238 int fd = input_buffer->planes[0].fd; in RegisterCurrent() 243 buf_info.aligned_width = layout.width = input_buffer->width; in RegisterCurrent() 244 buf_info.aligned_height = layout.height = input_buffer->height; in RegisterCurrent() 245 buf_info.format = input_buffer->format; in RegisterCurrent() 600 LayerBuffer *input_buffer = &layer.input_buffer; in SetupAtomic() local 611 input_buffer = &hw_rotator_session->output_buffer; in SetupAtomic() 615 uint32_t fb_id = registry_.GetFbId(input_buffer->planes[0].fd); in SetupAtomic() 647 SetSrcConfig(layer.input_buffer, &config); in SetupAtomic() [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/core/fb/ |
D | hw_device.cpp | 207 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/ |
D | hw_device_drm.cpp | 371 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/ |
D | decoder_driver_test.c | 267 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/ |
D | decoder_driver_test.c | 279 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 …]
|