#include"dc_dsc.h" #include"dc_hw_types.h" #include"dc_types.h" /* do not include any other headers *orelseitmightbreakEdidUtilityfunctionality.
*/
/* Input parameters for configuring DSC from the outside of DSC */ struct dsc_config {
uint32_t pic_width;
uint32_t pic_height; enum dc_pixel_encoding pixel_encoding; enum dc_color_depth color_depth; /* Bits per component */ bool is_odm; struct dc_dsc_config dc_dsc_cfg;
};
/* Output parameters for configuring DSC-related part of OPTC */ struct dsc_optc_config {
uint32_t slice_width; /* Slice width in pixels */
uint32_t bytes_per_pixel; /* Bytes per pixel in u3.28 format */ bool is_pixel_format_444; /* 'true' if pixel format is 'RGB 444' or 'Simple YCbCr 4:2:2' (4:2:2 upsampled to 4:4:4)' */
};
/* DSC encoder capabilities *TheydifferfromtheDPCDDSCcapsbecausetheyarebasedonAMDDSCencodercaps.
*/ union dsc_enc_slice_caps { struct {
uint8_t NUM_SLICES_1 : 1;
uint8_t NUM_SLICES_2 : 1;
uint8_t NUM_SLICES_3 : 1; /* This one is not per DSC spec, but our encoder supports it */
uint8_t NUM_SLICES_4 : 1;
uint8_t NUM_SLICES_8 : 1;
uint8_t NUM_SLICES_12 : 1;
uint8_t NUM_SLICES_16 : 1;
} bits;
uint8_t raw;
};
struct dsc_enc_caps {
uint8_t dsc_version; union dsc_enc_slice_caps slice_caps;
int32_t lb_bit_depth; bool is_block_pred_supported; union dsc_color_formats color_formats; union dsc_color_depth color_depth;
int32_t max_total_throughput_mps; /* Maximum total throughput with all the slices combined */
int32_t max_slice_width;
uint32_t bpp_increment_div; /* bpp increment divisor, e.g. if 16, it's 1/16th of a bit */
uint32_t edp_sink_max_bits_per_pixel; bool is_dp;
};
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.