1 /* $NetBSD: dce110_transform_v.h,v 1.2 2021/12/18 23:45:02 riastradh Exp $ */ 2 3 /* Copyright 2012-15 Advanced Micro Devices, Inc. 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a 6 * copy of this software and associated documentation files (the "Software"), 7 * to deal in the Software without restriction, including without limitation 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 * and/or sell copies of the Software, and to permit persons to whom the 10 * Software is furnished to do so, subject to the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be included in 13 * all copies or substantial portions of the Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 * OTHER DEALINGS IN THE SOFTWARE. 22 * 23 * Authors: AMD 24 * 25 */ 26 27 #ifndef __DAL_TRANSFORM_V_DCE110_H__ 28 #define __DAL_TRANSFORM_V_DCE110_H__ 29 30 #include "../dce/dce_transform.h" 31 32 #define LB_TOTAL_NUMBER_OF_ENTRIES 1712 33 #define LB_BITS_PER_ENTRY 144 34 35 bool dce110_transform_v_construct( 36 struct dce_transform *xfm110, 37 struct dc_context *ctx); 38 39 void dce110_opp_v_set_csc_default( 40 struct transform *xfm, 41 const struct default_adjustment *default_adjust); 42 43 void dce110_opp_v_set_csc_adjustment( 44 struct transform *xfm, 45 const struct out_csc_color_matrix *tbl_entry); 46 47 48 void dce110_opp_program_regamma_pwl_v( 49 struct transform *xfm, 50 const struct pwl_params *params); 51 52 void dce110_opp_power_on_regamma_lut_v( 53 struct transform *xfm, 54 bool power_on); 55 56 void dce110_opp_set_regamma_mode_v( 57 struct transform *xfm, 58 enum opp_regamma mode); 59 60 #endif 61