/hardware/google/av/media/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 76 const C2PlaneInfo &plane = layout.planes[i]; in _ImageCopy() 129 int32_t src_stride_y = view.layout().planes[0].rowInc; in ImageCopy() 130 int32_t src_stride_u = view.layout().planes[1].rowInc; in ImageCopy() 131 int32_t src_stride_v = view.layout().planes[2].rowInc; in ImageCopy() 170 int32_t dst_stride_y = view.layout().planes[0].rowInc; in ImageCopy() 171 int32_t dst_stride_u = view.layout().planes[1].rowInc; in ImageCopy() 172 int32_t dst_stride_v = view.layout().planes[2].rowInc; in ImageCopy() 194 && layout.planes[layout.PLANE_Y].channel == C2PlaneInfo::CHANNEL_Y in IsYUV420() 195 && layout.planes[layout.PLANE_Y].allocatedDepth == 8 in IsYUV420() 196 && layout.planes[layout.PLANE_Y].bitDepth == 8 in IsYUV420() [all …]
|
/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/ |
D | Gralloc1Hal.h | 150 flex.planes = flexPlanes.data(); in lockYCbCr() 261 const auto& plane = flex.planes[i]; in toYCbCrLayout() 284 if (flex.planes[0].component != FLEX_COMPONENT_Y || in toYCbCrLayout() 285 …((flex.planes[1].component != FLEX_COMPONENT_Cb || flex.planes[2].component != FLEX_COMPONENT_Cr) … in toYCbCrLayout() 286 …(flex.planes[2].component != FLEX_COMPONENT_Cb || flex.planes[1].component != FLEX_COMPONENT_Cr)))… in toYCbCrLayout() 290 const auto& y = flex.planes[0]; in toYCbCrLayout() 291 const auto& cb = (flex.planes[1].component == FLEX_COMPONENT_Cb)? in toYCbCrLayout() 292 flex.planes[1] : flex.planes[2]; in toYCbCrLayout() 293 const auto& cr = (flex.planes[2].component == FLEX_COMPONENT_Cr)? in toYCbCrLayout() 294 flex.planes[2] : flex.planes[1]; in toYCbCrLayout()
|
/hardware/google/easel/amber/camera/libhdrplusclient/ |
D | HdrPlusClientUtils.cpp | 37 if (streamConfig.image.planes.size() != 2) { in getRgb() 39 streamConfig.image.planes.size()); in getRgb() 44 uint32_t yIndex = y * streamConfig.image.planes[0].stride + x; in getRgb() 45 uint32_t vIndex = streamConfig.image.planes[0].scanline * in getRgb() 46 streamConfig.image.planes[0].stride + in getRgb() 47 (y / 2) * streamConfig.image.planes[1].stride + (x & ~0x1); in getRgb() 62 if (streamConfig.image.planes.size() != 1) { in getRgb() 64 streamConfig.image.planes.size()); in getRgb() 68 uint32_t offset = y * streamConfig.image.planes[0].stride + x * 3; in getRgb()
|
/hardware/qcom/display/msm8994/libgralloc/ |
D | mapper.cpp | 343 layout->planes[i].bits_per_component = 8; in ycbcr_to_flexible_layout() 344 layout->planes[i].bits_used = 8; in ycbcr_to_flexible_layout() 345 layout->planes[i].h_increment = 1; in ycbcr_to_flexible_layout() 346 layout->planes[i].v_increment = 1; in ycbcr_to_flexible_layout() 347 layout->planes[i].h_subsampling = 2; in ycbcr_to_flexible_layout() 348 layout->planes[i].v_subsampling = 2; in ycbcr_to_flexible_layout() 351 layout->planes[0].top_left = (uint8_t*)ycbcr->y; in ycbcr_to_flexible_layout() 352 layout->planes[0].component = FLEX_COMPONENT_Y; in ycbcr_to_flexible_layout() 353 layout->planes[0].v_increment = (int32_t)ycbcr->ystride; in ycbcr_to_flexible_layout() 355 layout->planes[1].top_left = (uint8_t*)ycbcr->cb; in ycbcr_to_flexible_layout() [all …]
|
/hardware/qcom/display/msm8996/libgralloc/ |
D | mapper.cpp | 342 layout->planes[i].bits_per_component = 8; in ycbcr_to_flexible_layout() 343 layout->planes[i].bits_used = 8; in ycbcr_to_flexible_layout() 344 layout->planes[i].h_increment = 1; in ycbcr_to_flexible_layout() 345 layout->planes[i].v_increment = 1; in ycbcr_to_flexible_layout() 346 layout->planes[i].h_subsampling = 2; in ycbcr_to_flexible_layout() 347 layout->planes[i].v_subsampling = 2; in ycbcr_to_flexible_layout() 350 layout->planes[0].top_left = (uint8_t*)ycbcr->y; in ycbcr_to_flexible_layout() 351 layout->planes[0].component = FLEX_COMPONENT_Y; in ycbcr_to_flexible_layout() 352 layout->planes[0].v_increment = (int32_t)ycbcr->ystride; in ycbcr_to_flexible_layout() 354 layout->planes[1].top_left = (uint8_t*)ycbcr->cb; in ycbcr_to_flexible_layout() [all …]
|
/hardware/qcom/sdm845/display/gralloc/ |
D | gr_device_impl.cpp | 528 layout->planes[i].bits_per_component = 8; in GetFlexLayout() 529 layout->planes[i].bits_used = 8; in GetFlexLayout() 530 layout->planes[i].h_increment = 1; in GetFlexLayout() 531 layout->planes[i].v_increment = 1; in GetFlexLayout() 532 layout->planes[i].h_subsampling = 2; in GetFlexLayout() 533 layout->planes[i].v_subsampling = 2; in GetFlexLayout() 538 layout->planes[0].top_left = static_cast<uint8_t *>(ycbcr.y); in GetFlexLayout() 539 layout->planes[0].component = FLEX_COMPONENT_Y; in GetFlexLayout() 540 layout->planes[0].v_increment = static_cast<int32_t>(ycbcr.ystride); in GetFlexLayout() 542 layout->planes[1].top_left = static_cast<uint8_t *>(ycbcr.cb); in GetFlexLayout() [all …]
|
/hardware/qcom/sm8150/display/gralloc/ |
D | gr_device_impl.cpp | 547 layout->planes[i].bits_per_component = 8; in GetFlexLayout() 548 layout->planes[i].bits_used = 8; in GetFlexLayout() 549 layout->planes[i].h_increment = 1; in GetFlexLayout() 550 layout->planes[i].v_increment = 1; in GetFlexLayout() 551 layout->planes[i].h_subsampling = 2; in GetFlexLayout() 552 layout->planes[i].v_subsampling = 2; in GetFlexLayout() 557 layout->planes[0].top_left = static_cast<uint8_t *>(ycbcr.y); in GetFlexLayout() 558 layout->planes[0].component = FLEX_COMPONENT_Y; in GetFlexLayout() 559 layout->planes[0].v_increment = static_cast<int32_t>(ycbcr.ystride); in GetFlexLayout() 561 layout->planes[1].top_left = static_cast<uint8_t *>(ycbcr.cb); in GetFlexLayout() [all …]
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_buf_mgr.cpp | 784 layout->planes[i].bits_per_component = 8; in GetFlexLayout() 785 layout->planes[i].bits_used = 8; in GetFlexLayout() 786 layout->planes[i].h_increment = 1; in GetFlexLayout() 787 layout->planes[i].v_increment = 1; in GetFlexLayout() 788 layout->planes[i].h_subsampling = 2; in GetFlexLayout() 789 layout->planes[i].v_subsampling = 2; in GetFlexLayout() 792 layout->planes[0].top_left = static_cast<uint8_t *>(ycbcr.y); in GetFlexLayout() 793 layout->planes[0].component = FLEX_COMPONENT_Y; in GetFlexLayout() 794 layout->planes[0].v_increment = static_cast<int32_t>(ycbcr.ystride); in GetFlexLayout() 796 layout->planes[1].top_left = static_cast<uint8_t *>(ycbcr.cb); in GetFlexLayout() [all …]
|
/hardware/qcom/display/msm8909/gralloc/ |
D | gr_buf_mgr.cpp | 884 layout->planes[i].bits_per_component = 8; in GetFlexLayout() 885 layout->planes[i].bits_used = 8; in GetFlexLayout() 886 layout->planes[i].h_increment = 1; in GetFlexLayout() 887 layout->planes[i].v_increment = 1; in GetFlexLayout() 888 layout->planes[i].h_subsampling = 2; in GetFlexLayout() 889 layout->planes[i].v_subsampling = 2; in GetFlexLayout() 892 layout->planes[0].top_left = static_cast<uint8_t *>(ycbcr.y); in GetFlexLayout() 893 layout->planes[0].component = FLEX_COMPONENT_Y; in GetFlexLayout() 894 layout->planes[0].v_increment = static_cast<int32_t>(ycbcr.ystride); in GetFlexLayout() 896 layout->planes[1].top_left = static_cast<uint8_t *>(ycbcr.cb); in GetFlexLayout() [all …]
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_buf_mgr.cpp | 792 layout->planes[i].bits_per_component = 8; in GetFlexLayout() 793 layout->planes[i].bits_used = 8; in GetFlexLayout() 794 layout->planes[i].h_increment = 1; in GetFlexLayout() 795 layout->planes[i].v_increment = 1; in GetFlexLayout() 796 layout->planes[i].h_subsampling = 2; in GetFlexLayout() 797 layout->planes[i].v_subsampling = 2; in GetFlexLayout() 800 layout->planes[0].top_left = static_cast<uint8_t *>(ycbcr.y); in GetFlexLayout() 801 layout->planes[0].component = FLEX_COMPONENT_Y; in GetFlexLayout() 802 layout->planes[0].v_increment = static_cast<int32_t>(ycbcr.ystride); in GetFlexLayout() 804 layout->planes[1].top_left = static_cast<uint8_t *>(ycbcr.cb); in GetFlexLayout() [all …]
|
/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
D | gr_buf_mgr.cpp | 883 layout->planes[i].bits_per_component = 8; in GetFlexLayout() 884 layout->planes[i].bits_used = 8; in GetFlexLayout() 885 layout->planes[i].h_increment = 1; in GetFlexLayout() 886 layout->planes[i].v_increment = 1; in GetFlexLayout() 887 layout->planes[i].h_subsampling = 2; in GetFlexLayout() 888 layout->planes[i].v_subsampling = 2; in GetFlexLayout() 891 layout->planes[0].top_left = static_cast<uint8_t *>(ycbcr.y); in GetFlexLayout() 892 layout->planes[0].component = FLEX_COMPONENT_Y; in GetFlexLayout() 893 layout->planes[0].v_increment = static_cast<int32_t>(ycbcr.ystride); in GetFlexLayout() 895 layout->planes[1].top_left = static_cast<uint8_t *>(ycbcr.cb); in GetFlexLayout() [all …]
|
/hardware/google/av/media/sfplugin/ |
D | Codec2Buffer.cpp | 237 mAllocatedDepth = layout.planes[0].allocatedDepth; in GraphicView2MediaImageConverter() 238 uint32_t bitDepth = layout.planes[0].bitDepth; in GraphicView2MediaImageConverter() 241 uint32_t mStride = align(mWidth, 2) * divUp(layout.planes[0].allocatedDepth, 8u); in GraphicView2MediaImageConverter() 252 if (layout.planes[0].channel != C2PlaneInfo::CHANNEL_Y in GraphicView2MediaImageConverter() 253 || layout.planes[1].channel != C2PlaneInfo::CHANNEL_CB in GraphicView2MediaImageConverter() 254 || layout.planes[2].channel != C2PlaneInfo::CHANNEL_CR in GraphicView2MediaImageConverter() 255 || layout.planes[0].colSampling != 1 in GraphicView2MediaImageConverter() 256 || layout.planes[0].rowSampling != 1 in GraphicView2MediaImageConverter() 257 || layout.planes[1].colSampling != 2 in GraphicView2MediaImageConverter() 258 || layout.planes[1].rowSampling != 2 in GraphicView2MediaImageConverter() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/core/fb/ |
D | hw_primary.cpp | 427 if (output_buffer->planes[0].fd >= 0) { in Commit() 428 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 429 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() 430 SetStride(device_type_, output_buffer->format, output_buffer->planes[0].stride, in Commit() 431 &mdp_out_layer_.buffer.planes[0].stride); in Commit() 437 mdp_out_layer_.buffer.planes[0].fd, mdp_out_layer_.buffer.planes[0].offset, in Commit() 438 mdp_out_layer_.buffer.planes[0].stride); in Commit()
|
D | hw_device.cpp | 391 if (input_buffer->planes[0].fd >= 0) { in Commit() 393 mdp_buffer.planes[0].fd = input_buffer->planes[0].fd; in Commit() 394 mdp_buffer.planes[0].offset = input_buffer->planes[0].offset; in Commit() 395 SetStride(device_type_, input_buffer->format, input_buffer->planes[0].stride, in Commit() 396 &mdp_buffer.planes[0].stride); in Commit() 410 "in_plane_count %d, in_fence %d, layer count %d", mdp_buffer.planes[0].fd, in Commit() 411 mdp_buffer.planes[0].offset, mdp_buffer.planes[0].stride, mdp_buffer.plane_count, in Commit() 422 if (output_buffer->planes[0].fd >= 0) { in Commit() 423 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 424 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/core/fb/ |
D | hw_primary.cpp | 433 if (output_buffer->planes[0].fd >= 0) { in Commit() 434 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 435 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() 436 SetStride(device_type_, output_buffer->format, output_buffer->planes[0].stride, in Commit() 437 &mdp_out_layer_.buffer.planes[0].stride); in Commit() 443 mdp_out_layer_.buffer.planes[0].fd, mdp_out_layer_.buffer.planes[0].offset, in Commit() 444 mdp_out_layer_.buffer.planes[0].stride); in Commit()
|
/hardware/qcom/sdm845/display/sdm/libs/core/fb/ |
D | hw_primary.cpp | 433 if (output_buffer->planes[0].fd >= 0) { in Commit() 434 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 435 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() 436 SetStride(device_type_, output_buffer->format, output_buffer->planes[0].stride, in Commit() 437 &mdp_out_layer_.buffer.planes[0].stride); in Commit() 443 mdp_out_layer_.buffer.planes[0].fd, mdp_out_layer_.buffer.planes[0].offset, in Commit() 444 mdp_out_layer_.buffer.planes[0].stride); in Commit()
|
D | hw_device.cpp | 443 if (input_buffer->planes[0].fd >= 0) { in Commit() 445 mdp_buffer.planes[0].fd = input_buffer->planes[0].fd; in Commit() 446 mdp_buffer.planes[0].offset = input_buffer->planes[0].offset; in Commit() 447 SetStride(device_type_, input_buffer->format, input_buffer->planes[0].stride, in Commit() 448 &mdp_buffer.planes[0].stride); in Commit() 462 "in_plane_count %d, in_fence %d, layer count %d", mdp_buffer.planes[0].fd, in Commit() 463 mdp_buffer.planes[0].offset, mdp_buffer.planes[0].stride, mdp_buffer.plane_count, in Commit() 474 if (output_buffer->planes[0].fd >= 0) { in Commit() 475 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 476 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/ |
D | hw_primary.cpp | 433 if (output_buffer->planes[0].fd >= 0) { in Commit() 434 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 435 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() 436 SetStride(device_type_, output_buffer->format, output_buffer->planes[0].stride, in Commit() 437 &mdp_out_layer_.buffer.planes[0].stride); in Commit() 443 mdp_out_layer_.buffer.planes[0].fd, mdp_out_layer_.buffer.planes[0].offset, in Commit() 444 mdp_out_layer_.buffer.planes[0].stride); in Commit()
|
D | hw_device.cpp | 439 if (input_buffer->planes[0].fd >= 0) { in Commit() 441 mdp_buffer.planes[0].fd = input_buffer->planes[0].fd; in Commit() 442 mdp_buffer.planes[0].offset = input_buffer->planes[0].offset; in Commit() 443 SetStride(device_type_, input_buffer->format, input_buffer->planes[0].stride, in Commit() 444 &mdp_buffer.planes[0].stride); in Commit() 458 "in_plane_count %d, in_fence %d, layer count %d", mdp_buffer.planes[0].fd, in Commit() 459 mdp_buffer.planes[0].offset, mdp_buffer.planes[0].stride, mdp_buffer.plane_count, in Commit() 470 if (output_buffer->planes[0].fd >= 0) { in Commit() 471 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 472 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/core/fb/ |
D | hw_primary.cpp | 433 if (output_buffer->planes[0].fd >= 0) { in Commit() 434 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 435 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() 436 SetStride(device_type_, output_buffer->format, output_buffer->planes[0].stride, in Commit() 437 &mdp_out_layer_.buffer.planes[0].stride); in Commit() 443 mdp_out_layer_.buffer.planes[0].fd, mdp_out_layer_.buffer.planes[0].offset, in Commit() 444 mdp_out_layer_.buffer.planes[0].stride); in Commit()
|
D | hw_device.cpp | 443 if (input_buffer->planes[0].fd >= 0) { in Commit() 445 mdp_buffer.planes[0].fd = input_buffer->planes[0].fd; in Commit() 446 mdp_buffer.planes[0].offset = input_buffer->planes[0].offset; in Commit() 447 SetStride(device_type_, input_buffer->format, input_buffer->planes[0].stride, in Commit() 448 &mdp_buffer.planes[0].stride); in Commit() 462 "in_plane_count %d, in_fence %d, layer count %d", mdp_buffer.planes[0].fd, in Commit() 463 mdp_buffer.planes[0].offset, mdp_buffer.planes[0].stride, mdp_buffer.plane_count, in Commit() 474 if (output_buffer->planes[0].fd >= 0) { in Commit() 475 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 476 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 245 bufDef.planes_buf.planes[0].length = offset.mp[0].len; in getBufDef() 246 bufDef.planes_buf.planes[0].m.userptr = (long unsigned int)mMemInfo[index].fd; in getBufDef() 247 bufDef.planes_buf.planes[0].data_offset = offset.mp[0].offset; in getBufDef() 248 bufDef.planes_buf.planes[0].reserved[0] = 0; in getBufDef() 250 bufDef.planes_buf.planes[i].length = offset.mp[i].len; in getBufDef() 251 bufDef.planes_buf.planes[i].m.userptr = (long unsigned int)mMemInfo[i].fd; in getBufDef() 252 bufDef.planes_buf.planes[i].data_offset = offset.mp[i].offset; in getBufDef() 253 bufDef.planes_buf.planes[i].reserved[0] = in getBufDef() 254 bufDef.planes_buf.planes[i-1].reserved[0] + in getBufDef() 255 bufDef.planes_buf.planes[i-1].length; in getBufDef()
|
/hardware/qcom/sm8150/display/sdm/libs/core/fb/ |
D | hw_primary.cpp | 433 if (output_buffer->planes[0].fd >= 0) { in Commit() 434 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 435 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() 436 SetStride(device_type_, output_buffer->format, output_buffer->planes[0].stride, in Commit() 437 &mdp_out_layer_.buffer.planes[0].stride); in Commit() 443 mdp_out_layer_.buffer.planes[0].fd, mdp_out_layer_.buffer.planes[0].offset, in Commit() 444 mdp_out_layer_.buffer.planes[0].stride); in Commit()
|
D | hw_device.cpp | 455 if (input_buffer->planes[0].fd >= 0) { in Commit() 457 mdp_buffer.planes[0].fd = input_buffer->planes[0].fd; in Commit() 458 mdp_buffer.planes[0].offset = input_buffer->planes[0].offset; in Commit() 459 SetStride(device_type_, input_buffer->format, input_buffer->planes[0].stride, in Commit() 460 &mdp_buffer.planes[0].stride); in Commit() 474 "in_plane_count %d, in_fence %d, layer count %d", mdp_buffer.planes[0].fd, in Commit() 475 mdp_buffer.planes[0].offset, mdp_buffer.planes[0].stride, mdp_buffer.plane_count, in Commit() 486 if (output_buffer->planes[0].fd >= 0) { in Commit() 487 mdp_out_layer_.buffer.planes[0].fd = output_buffer->planes[0].fd; in Commit() 488 mdp_out_layer_.buffer.planes[0].offset = output_buffer->planes[0].offset; in Commit() [all …]
|
/hardware/google/av/media/codecs/vpx/ |
D | C2SoftVpxEnc.cpp | 495 if (layout.planes[layout.PLANE_Y].colInc == 1 in process() 496 && layout.planes[layout.PLANE_U].colInc == 1 in process() 497 && layout.planes[layout.PLANE_V].colInc == 1) { in process() 501 raw_frame.planes[1] = (uint8_t*)rView->data()[1]; in process() 502 raw_frame.planes[2] = (uint8_t*)rView->data()[2]; in process() 503 raw_frame.stride[0] = layout.planes[layout.PLANE_Y].rowInc; in process() 504 raw_frame.stride[1] = layout.planes[layout.PLANE_U].rowInc; in process() 505 raw_frame.stride[2] = layout.planes[layout.PLANE_V].rowInc; in process()
|