diff options
author | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-13 15:14:58 +0000 |
---|---|---|
committer | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-13 15:14:58 +0000 |
commit | 0ae6b7238cca4af9782e9231ed316837e1f5d191 (patch) | |
tree | 3b8edd238c162f3b4fca80b545005f2e9b1dadc2 /recordmydesktop/src/get_frame.c | |
parent | ba009b32fecf6f9651ab29bf7b980a972f0e2a1b (diff) |
include/rmdmacro.h: Move AVG_4_PIXELS(), CALC_TVAL_AVG_16(),
CALC_TVAL_AVG_32() and CLEAR_FRAME() out of here.
src/get_frame.c: Put AVG_4_PIXELS() here.
src/yuv_utils.h: Put CALC_TVAL_AVG_16() and CALC_TVAL_AVG_32() here.
src/load_cache.c: Expand CLEAR_FRAME() here.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@535 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/get_frame.c')
-rw-r--r-- | recordmydesktop/src/get_frame.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recordmydesktop/src/get_frame.c b/recordmydesktop/src/get_frame.c index 39bbb36..c732002 100644 --- a/recordmydesktop/src/get_frame.c +++ b/recordmydesktop/src/get_frame.c @@ -30,6 +30,12 @@ #include "yuv_utils.h" +#define AVG_4_PIXELS(data_array,width_img,k_tm,i_tm,offset)\ + ((data_array[(k_tm*width_img+i_tm)*RMD_ULONG_SIZE_T+offset]+\ + data_array[((k_tm-1)*width_img+i_tm)*RMD_ULONG_SIZE_T+offset]+\ + data_array[(k_tm*width_img+i_tm-1)*RMD_ULONG_SIZE_T+offset]+\ + data_array[((k_tm-1)*width_img+i_tm-1)*RMD_ULONG_SIZE_T+offset])/4) + #define CLIP_DUMMY_POINTER_AREA(dummy_p_area,brwin,wgeom){\ (wgeom)->x=((((dummy_p_area).x+\ (dummy_p_area).width>=(brwin)->rgeom.x)&&\ |