1/* 2 * Copyright (c) 2011 Intel Corporation. All Rights Reserved. 3 * Copyright (c) Imagination Technologies Limited, UK 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a 6 * copy of this software and associated documentation files (the 7 * "Software"), to deal in the Software without restriction, including 8 * without limitation the rights to use, copy, modify, merge, publish, 9 * distribute, sub license, and/or sell copies of the Software, and to 10 * permit persons to whom the Software is furnished to do so, subject to 11 * the following conditions: 12 * 13 * The above copyright notice and this permission notice (including the 14 * next paragraph) shall be included in all copies or substantial portions 15 * of the Software. 16 * 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 20 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR 21 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 */ 25 26 27#ifndef _REGCONV_H_topazhp_multicore_regs_old_h 28#define _REGCONV_H_topazhp_multicore_regs_old_h 29 30#ifdef __cplusplus 31#include "img_types.h" 32#include "systemc_utils.h" 33#endif 34 35 36/* Register CR_LAMBDA_DC_TABLE */ 37#define TOPAZHP_TOP_CR_LAMBDA_DC_TABLE 0x0120 38#define MASK_TOPAZHP_TOP_CR_QPC_OR_DC_SCALE_LUMA_TABLE 0x000000FF 39#define SHIFT_TOPAZHP_TOP_CR_QPC_OR_DC_SCALE_LUMA_TABLE 0 40#define REGNUM_TOPAZHP_TOP_CR_QPC_OR_DC_SCALE_LUMA_TABLE 0x0120 41#define SIGNED_TOPAZHP_TOP_CR_QPC_OR_DC_SCALE_LUMA_TABLE 0 42 43#define MASK_TOPAZHP_TOP_CR_SATD_LAMBDA_OR_DC_SCALE_CHROMA_TABLE 0x0000FF00 44#define SHIFT_TOPAZHP_TOP_CR_SATD_LAMBDA_OR_DC_SCALE_CHROMA_TABLE 8 45#define REGNUM_TOPAZHP_TOP_CR_SATD_LAMBDA_OR_DC_SCALE_CHROMA_TABLE 0x0120 46#define SIGNED_TOPAZHP_TOP_CR_SATD_LAMBDA_OR_DC_SCALE_CHROMA_TABLE 0 47 48#define MASK_TOPAZHP_TOP_CR_SAD_LAMBDA_TABLE 0x007F0000 49#define SHIFT_TOPAZHP_TOP_CR_SAD_LAMBDA_TABLE 16 50#define REGNUM_TOPAZHP_TOP_CR_SAD_LAMBDA_TABLE 0x0120 51#define SIGNED_TOPAZHP_TOP_CR_SAD_LAMBDA_TABLE 0 52 53 54/* Register CR_MVCALC_COLOCATED (from topazhp_core_regs.h) */ 55#define MASK_TOPAZHP_CR_TEMPORAL_BLEND 0x001F0000 56#define SHIFT_TOPAZHP_CR_TEMPORAL_BLEND 16 57#define REGNUM_TOPAZHP_CR_TEMPORAL_BLEND 0x0174 58#define SIGNED_TOPAZHP_CR_TEMPORAL_BLEND 0 59 60#endif 61