shithub: dav1d

Download patch

ref: fdf1570e13b9360d7f3d224e1f77655e34980350
parent: 6f7e5cb38edfe6dc3899f0ddf7d508e508f21f81
author: Henrik Gramner <[email protected]>
date: Wed Dec 2 09:10:49 EST 2020

Use smaller data types for wiener filter coefficients

Reduces memory usage by 96 bytes per sb.

--- a/src/lf_mask.h
+++ b/src/lf_mask.h
@@ -41,8 +41,8 @@
 
 typedef struct Av1RestorationUnit {
     enum Dav1dRestorationType type;
-    int16_t filter_h[3];
-    int16_t filter_v[3];
+    int8_t filter_h[3];
+    int8_t filter_v[3];
     uint8_t sgr_idx;
     int16_t sgr_weights[2];
 } Av1RestorationUnit;