mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:57:44 +00:00
LibVideo/VP9: Move quantizer indices into FrameContext
This also renames (most?) of the related quantizer functions and variables to make more sense. I haven't determined what AC/DC stands for here, but it may be just an arbitrary naming scheme for the first and subsequent coefficients used to quantize the residuals for a block.
This commit is contained in:
parent
0df5c1f32f
commit
f4e835635f
5 changed files with 50 additions and 42 deletions
|
@ -311,6 +311,16 @@ public:
|
|||
Array<i8, MAX_REF_FRAMES> loop_filter_reference_deltas;
|
||||
Array<i8, 2> loop_filter_mode_deltas;
|
||||
|
||||
u8 base_quantizer_index { 0 };
|
||||
i8 y_dc_quantizer_index_delta { 0 };
|
||||
i8 uv_dc_quantizer_index_delta { 0 };
|
||||
i8 uv_ac_quantizer_index_delta { 0 };
|
||||
bool is_lossless() const
|
||||
{
|
||||
// From quantization_params( ) in the spec.
|
||||
return base_quantizer_index == 0 && y_dc_quantizer_index_delta == 0 && uv_dc_quantizer_index_delta == 0 && uv_ac_quantizer_index_delta == 0;
|
||||
}
|
||||
|
||||
u16 header_size_in_bytes { 0 };
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue