/* * Copyright 2012-15 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Authors: AMD * */ #ifndef __DAL_TRANSFORM_H__ #define __DAL_TRANSFORM_H__ #include "hw_shared.h" #include "dc_hw_types.h" #include "fixed31_32.h" #include "spl/dc_spl_types.h" #define CSC_TEMPERATURE_MATRIX_SIZE … struct bit_depth_reduction_params; struct transform { … }; /* Colorimetry */ enum colorimetry { … }; enum colorimetry_ext { … }; enum active_format_info { … }; /* Active format aspect ratio */ enum active_format_aspect_ratio { … }; enum bar_info { … }; enum picture_scaling { … }; /* RGB quantization range */ enum rgb_quantization_range { … }; /* YYC quantization range */ enum yyc_quantization_range { … }; enum graphics_gamut_adjust_type { … }; struct xfm_grph_csc_adjustment { … }; struct overscan_info { … }; struct scaling_ratios { … }; struct sharpness_adj { … }; struct line_buffer_params { … }; struct scl_inits { … }; struct scaler_data { … }; struct transform_funcs { … }; const uint16_t *get_filter_2tap_16p(void); const uint16_t *get_filter_2tap_64p(void); const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio); const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio); const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio); const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio); const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio); const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio); const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio); const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio); /* Defines the pixel processing capability of the DSCL */ enum dscl_data_processing_format { … }; /* * The DPP capabilities structure contains enumerations to specify the * HW processing features and an associated function pointers to * provide the function interface that can be overloaded for implementations * based on different capabilities */ struct dpp_caps { … }; #endif