/*****************************************************************************1* rectangle.c: rectangle filling2*****************************************************************************3* Copyright (C) 2010-2016 x264 project4*5* Authors: Fiona Glaser <[email protected]>6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.20*21* This program is also available under a commercial proprietary license.22* For more information, contact us at [email protected].23*****************************************************************************/2425#include "common.h"2627#define CACHE_FUNC(name,size,width,height)\28static void x264_macroblock_cache_##name##_##width##_##height( void *target, uint32_t val )\29{\30x264_macroblock_cache_rect( target, width*size, height, size, val );\31}3233#define CACHE_FUNCS(name,size)\34CACHE_FUNC(name,size,4,4)\35CACHE_FUNC(name,size,2,4)\36CACHE_FUNC(name,size,4,2)\37CACHE_FUNC(name,size,2,2)\38CACHE_FUNC(name,size,2,1)\39CACHE_FUNC(name,size,1,2)\40CACHE_FUNC(name,size,1,1)\41void (*x264_cache_##name##_func_table[10])(void *, uint32_t) =\42{\43x264_macroblock_cache_##name##_1_1,\44x264_macroblock_cache_##name##_2_1,\45x264_macroblock_cache_##name##_1_2,\46x264_macroblock_cache_##name##_2_2,\47NULL,\48x264_macroblock_cache_##name##_4_2,\49NULL,\50x264_macroblock_cache_##name##_2_4,\51NULL,\52x264_macroblock_cache_##name##_4_4\53};\5455CACHE_FUNCS(mv, 4)56CACHE_FUNCS(mvd, 2)57CACHE_FUNCS(ref, 1)585960