Skip to content
  • Henrik Gramner's avatar
    Account for chroma subsampling when allocating cbi buffers · 43a11ccb
    Henrik Gramner authored and Henrik Gramner's avatar Henrik Gramner committed
    Reduces memory usage (by 3 kB per sb128 for 4:2:0) when decoding
    streams with subsampled chroma when frame threading is enabled.
    
    This also simplifies the logic for calculating cbi indices.
    Both entropy decoding and reconstruction access the elements in
    the same order, so calculating block x/y positions is redundant
    and we can instead just store values sequentially and increase
    the pointer by one every time it's accessed.
    43a11ccb