shave one unneeded filter-cache line
There was 1 unneeded sample line allocated for the filter cache in of simple filtering. + Add an explaining comment. Change-Id: I775a596c8b8643e773e0eade8aa341dc23fb290f
This commit is contained in:
parent
1955969925
commit
42548da9e3
@ -21,8 +21,12 @@ extern "C" {
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Memory setup
|
// Memory setup
|
||||||
|
|
||||||
// how many extra luma lines are needed for caching, given a filtering level
|
// kFilterExtraRows[] = How many extra lines are needed on the MB boundary
|
||||||
static const uint8_t kFilterExtraRows[3] = { 0, 4, 8 };
|
// for caching, given a filtering level.
|
||||||
|
// Simple filter: up to 2 luma samples are read and 1 is written.
|
||||||
|
// Complex filter: up to 4 luma samples are read and 3 are written. Same for
|
||||||
|
// U/V, so it's 8 samples total (because of the 2x upsampling).
|
||||||
|
static const uint8_t kFilterExtraRows[3] = { 0, 2, 8 };
|
||||||
|
|
||||||
int VP8InitFrame(VP8Decoder* const dec, VP8Io* io) {
|
int VP8InitFrame(VP8Decoder* const dec, VP8Io* io) {
|
||||||
const int mb_w = dec->mb_w_;
|
const int mb_w = dec->mb_w_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user