www.pudn.com > mpeg4_DECORE.rar > deblock_horiz.c
/************************************************************************** * * * This code has been developed by John Funnell. This software is an * * implementation of a part of one or more MPEG-4 Video tools as * * specified in ISO/IEC 14496-2 standard. Those intending to use this * * software module in hardware or software products are advised that its * * use may infringe existing patents or copyrights, and any such use * * would be at such party's own risk. The original developer of this * * software module and his/her company, and subsequent editors and their * * companies (including Project Mayo), will have no liability for use of * * this software or modifications or derivatives thereof. * * * * Project Mayo gives users of the Codec a license to this software * * module or modifications thereof for use in hardware or software * * products claiming conformance to the MPEG-4 Video Standard as * * described in the Open DivX license. * * * * The complete Open DivX license can be found at * * http://www.projectmayo.com/opendivx/license.php * * * **************************************************************************/ /** * Copyright (C) 2001 - Project Mayo * * John Funnell * * DivX Advanced Research Center* **/ /*** References: * ISO/IEC 14496-2 * MoMuSys-FDIS-V1.0-990812 * Intel Architecture Software Developer's Manual Volume 2: Instruction Set Reference ***/ #include "postprocess_mmx.h" /* this is to help us inline our functions */ #ifdef PP_COMPONENTS_INLINE #ifndef INLINE #define INLINE static __inline #endif #include "deblock_horiz_DC_on.c" #include "deblock_horiz_useDC.c" #include "deblock_horiz_default_filter.c" #include "deblock_horiz_lpf9.c" #endif /* this is a horizontal deblocking filter - i.e. it will smooth _vertical_ block edges */ void deblock_horiz(uint8_t *image, int width, int stride, QP_STORE_T *QP_store, int QP_stride, int chromaFlag) { int x, y; int QP; uint8_t *v; int useDC, DC_on; #ifdef PREFETCH_AHEAD_H void *prefetch_addr; #endif y = 0; /* loop over image's pixel rows , four at a time */ // for (y=0; y