Mercurial > libavcodec.hg
changeset 10120:e37de8b92b10 libavcodec
Convert ZERO8x2 macro into inline function
author | kostya |
---|---|
date | Sun, 30 Aug 2009 10:54:16 +0000 |
parents | 8078ecd2fe4c |
children | 3ae2df444cdb |
files | rv34.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rv34.c Sun Aug 30 08:29:11 2009 +0000 +++ b/rv34.c Sun Aug 30 10:54:16 2009 +0000 @@ -37,9 +37,11 @@ //#define DEBUG -#define ZERO8x2(dst, stride) \ - fill_rectangle(dst, 1, 2, stride, 0, 4); \ - fill_rectangle(((uint8_t*)(dst))+4, 1, 2, stride, 0, 4); \ +static inline void ZERO8x2(void* dst, int stride) +{ + fill_rectangle(dst, 1, 2, stride, 0, 4); + fill_rectangle(((uint8_t*)(dst))+4, 1, 2, stride, 0, 4); +} /** translation of RV30/40 macroblock types to lavc ones */ static const int rv34_mb_type_to_lavc[12] = {