diff options
Diffstat (limited to 'gralloc/gr_buf_mgr.cpp')
-rw-r--r-- | gralloc/gr_buf_mgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gralloc/gr_buf_mgr.cpp b/gralloc/gr_buf_mgr.cpp index dd9a0297..6dcf4ad4 100644 --- a/gralloc/gr_buf_mgr.cpp +++ b/gralloc/gr_buf_mgr.cpp @@ -661,8 +661,8 @@ static Error getFormatLayout(private_handle_t *handle, std::vector<PlaneLayout> plane_info[i].sampleIncrementInBits = static_cast<int64_t>(plane_layout[i].step * 8); plane_info[i].strideInBytes = static_cast<int64_t>(plane_layout[i].stride_bytes); plane_info[i].totalSizeInBytes = static_cast<int64_t>(plane_layout[i].size); - plane_info[i].widthInSamples = handle->unaligned_width; - plane_info[i].heightInSamples = handle->unaligned_height; + plane_info[i].widthInSamples = handle->unaligned_width >> plane_layout[i].h_subsampling; + plane_info[i].heightInSamples = handle->unaligned_height >> plane_layout[i].v_subsampling; } *out = plane_info; return Error::NONE; |