|
@@ -105,16 +105,16 @@ public:
|
|
|
// Calculates the output size for each plane in the frame.
|
|
|
Gfx::Size<u32> decoded_size(bool uv) const
|
|
|
{
|
|
|
- // NOTE: According to the spec, this would be `y_size_to_uv_size(subsampling, blocks_to_pixels(blocks_size))`.
|
|
|
- // We are deviating from that by creating smaller buffers to fit just the data we will store in an output
|
|
|
- // frame or reference frame buffer.
|
|
|
if (uv) {
|
|
|
return {
|
|
|
- y_size_to_uv_size(color_config.subsampling_y, size().width()),
|
|
|
- y_size_to_uv_size(color_config.subsampling_y, size().height()),
|
|
|
+ y_size_to_uv_size(color_config.subsampling_y, blocks_to_pixels(columns())),
|
|
|
+ y_size_to_uv_size(color_config.subsampling_y, blocks_to_pixels(rows())),
|
|
|
};
|
|
|
}
|
|
|
- return size();
|
|
|
+ return {
|
|
|
+ blocks_to_pixels(columns()),
|
|
|
+ blocks_to_pixels(rows()),
|
|
|
+ };
|
|
|
}
|
|
|
|
|
|
Vector2D<FrameBlockContext> const& block_contexts() const { return m_block_contexts; }
|