dinhminhquoi / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

VP9 encoder allocates too many buffers that are potentially too large. #788

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The encoder allocates reference buffers before it knows the chroma format of 
the input frames, allocating full-size chroma planes in all cases. This 
increases the memory profile of the encoder unnecessarily. 

Other buffers, such as the post-proc buffer, have the same problem.

Furthermore, the full set of FRAME_BUFFERS (12) are allocated independent of 
the coding mode. 1-pass real-time encoding potentially only requires 3 
reference buffers which would reduce the memory profile of the encoder 
considerably.

Original issue reported on code.google.com by agra...@google.com on 15 May 2014 at 6:52

GoogleCodeExporter commented 9 years ago
First step completed, frames are now allocated at the correct size depending on 
their color format:
https://gerrit.chromium.org/gerrit/#/c/70525/
This will reduce the reference & various other buffer memory profile by 50% for 
4:2:0 format.

Original comment by agra...@google.com on 8 Jul 2014 at 11:01

GoogleCodeExporter commented 9 years ago

Original comment by ya...@google.com on 15 Jan 2015 at 11:39