/* * 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_DPP_H__ #define __DAL_DPP_H__
/** * DOC: overview * * The DPP (Display Pipe and Plane) block is the unified display data * processing engine in DCN for processing graphic or video data on per DPP * rectangle base. This rectangle can be a part of SLS (Single Large Surface), * or a layer to be blended with other DPP, or a rectangle associated with a * display tile. * * It provides various functions including: * - graphic color keyer * - graphic cursor compositing * - graphic or video image source to destination scaling * - image sharping * - video format conversion from 4:2:0 or 4:2:2 to 4:4:4 * - Color Space Conversion * - Host LUT gamma adjustment * - Color Gamut Remap * - brightness and contrast adjustment. * * DPP pipe consists of Converter and Cursor (CNVC), Scaler (DSCL), Color * Management (CM), Output Buffer (OBUF) and Digital Bypass (DPB) module * connected in a video/graphics pipeline.
*/
struct dpp { conststruct dpp_funcs *funcs; struct dc_context *ctx; /** * @inst: * * inst stands for "instance," and it is an id number that references a * specific DPP.
*/ int inst; struct dpp_caps *caps; struct pwl_params regamma_params; struct pwl_params degamma_params; struct dpp_cursor_attributes cur_attr; union defer_reg_writes deferred_reg_writes;
struct cnv_color_keyer_params { int color_keyer_en; int color_keyer_mode; int color_keyer_alpha_low; int color_keyer_alpha_high; int color_keyer_red_low; int color_keyer_red_high; int color_keyer_green_low; int color_keyer_green_high; int color_keyer_blue_low; int color_keyer_blue_high;
};
/** * struct cnv_alpha_2bit_lut - Set the 8bit alpha values based on the 2 bit alpha
*/ struct cnv_alpha_2bit_lut { /** * @lut0: ALPHA_2BIT_LUT. ALPHA_2BIT_LUT0. Default: 0b00000000
*/ int lut0;
/** * @lut1: ALPHA_2BIT_LUT. ALPHA_2BIT_LUT1. Default: 0b01010101
*/ int lut1;
/** * @lut2: ALPHA_2BIT_LUT. ALPHA_2BIT_LUT2. Default: 0b10101010
*/ int lut2;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.