comparison rv34.c @ 10120:e37de8b92b10 libavcodec

Convert ZERO8x2 macro into inline function
author kostya
date Sun, 30 Aug 2009 10:54:16 +0000
parents 4dafbd9c8918
children e2d17f7f9408
comparison
equal deleted inserted replaced
10119:8078ecd2fe4c 10120:e37de8b92b10
35 #include "rv34data.h" 35 #include "rv34data.h"
36 #include "rv34.h" 36 #include "rv34.h"
37 37
38 //#define DEBUG 38 //#define DEBUG
39 39
40 #define ZERO8x2(dst, stride) \ 40 static inline void ZERO8x2(void* dst, int stride)
41 fill_rectangle(dst, 1, 2, stride, 0, 4); \ 41 {
42 fill_rectangle(((uint8_t*)(dst))+4, 1, 2, stride, 0, 4); \ 42 fill_rectangle(dst, 1, 2, stride, 0, 4);
43 fill_rectangle(((uint8_t*)(dst))+4, 1, 2, stride, 0, 4);
44 }
43 45
44 /** translation of RV30/40 macroblock types to lavc ones */ 46 /** translation of RV30/40 macroblock types to lavc ones */
45 static const int rv34_mb_type_to_lavc[12] = { 47 static const int rv34_mb_type_to_lavc[12] = {
46 MB_TYPE_INTRA, 48 MB_TYPE_INTRA,
47 MB_TYPE_INTRA16x16 | MB_TYPE_SEPARATE_DC, 49 MB_TYPE_INTRA16x16 | MB_TYPE_SEPARATE_DC,