[media] s5p-mfc: Update scratch buffer size for VP8 encoder
authorKiran AVND <avnd.kiran@samsung.com>
Mon, 19 May 2014 12:33:01 +0000 (09:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 18:02:42 +0000 (15:02 -0300)
Scratch buffer size updated for vp8 encoding as per
the latest v7 firmware. As the new macro increases the
scratch buffer size, it is backward compatible with the older
firmware too.

Signed-off-by: Kiran AVND <avnd.kiran@samsung.com>
Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-mfc/regs-mfc-v7.h

index ea5ec2a711af2b4ab7b041710ad84ac8c81fd7da..5dfa1490054cca5d96a81b02c6adc3cff75f90dd 100644 (file)
@@ -56,6 +56,7 @@
                        (SZ_1M + ((w) * 144) + (8192 * (h)) + 49216)
 
 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_ENC_V7(w, h) \
-                       (((w) * 48) + (((w) + 1) / 2 * 128) + 144 + 8192)
+                       (((w) * 48) + 8192 + ((((w) + 1) / 2) * 128) + 144 + \
+                       ((((((w) * 16) * ((h) * 16)) * 3) / 2) * 4))
 
 #endif /*_REGS_MFC_V7_H*/
This page took 0.02519 seconds and 5 git commands to generate.