//*@@@+++@@@@******************************************************************1//2// Copyright © Microsoft Corp.3// All rights reserved.4//5// Redistribution and use in source and binary forms, with or without6// modification, are permitted provided that the following conditions are met:7//8// • Redistributions of source code must retain the above copyright notice,9// this list of conditions and the following disclaimer.10// • Redistributions in binary form must reproduce the above copyright notice,11// this list of conditions and the following disclaimer in the documentation12// and/or other materials provided with the distribution.13//14// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"15// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE16// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE17// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE18// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR19// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF20// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS21// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN22// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)23// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE24// POSSIBILITY OF SUCH DAMAGE.25//26//*@@@---@@@@******************************************************************2728#ifndef WMI_STRTRANSFORM_H29#define WMI_STRTRANSFORM_H3031#include "windowsmediaphoto.h"3233#define COMPUTE_CORNER_PRED_DIFF(a, b) (*(a) -= (b))34#define COMPUTE_CORNER_PRED_ADD(a, b) (*(a) += (b))3536/** 2x2 foward DCT == 2x2 inverse DCT **/37Void strDCT2x2dn(PixelI *, PixelI *, PixelI *, PixelI *);38Void strDCT2x2up(PixelI *, PixelI *, PixelI *, PixelI *);39Void FOURBUTTERFLY_HARDCODED1(PixelI *p);4041/** 2x2 dct of a group of 4**/42#define FOURBUTTERFLY(p, i00, i01, i02, i03, i10, i11, i12, i13,\43i20, i21, i22, i23, i30, i31, i32, i33) \44strDCT2x2dn(&p[i00], &p[i01], &p[i02], &p[i03]); \45strDCT2x2dn(&p[i10], &p[i11], &p[i12], &p[i13]); \46strDCT2x2dn(&p[i20], &p[i21], &p[i22], &p[i23]); \47strDCT2x2dn(&p[i30], &p[i31], &p[i32], &p[i33])4849#endif // WMI_STRTRANSFORM_H505152