caps = komeda_get_format_caps(table, fourcc, modifier); if (!caps) returnfalse;
if (!(caps->supported_layer_types & layer_type)) returnfalse;
if (table->format_mod_supported) return table->format_mod_supported(caps, layer_type, modifier,
rot);
returntrue;
}
u32 *komeda_get_layer_fourcc_list(struct komeda_format_caps_table *table,
u32 layer_type, u32 *n_fmts)
{ conststruct komeda_format_caps *cap;
u32 *fmts; int i, j, n = 0;
fmts = kcalloc(table->n_formats, sizeof(u32), GFP_KERNEL); if (!fmts) return NULL;
for (i = 0; i < table->n_formats; i++) {
cap = &table->format_caps[i]; if (!(layer_type & cap->supported_layer_types) ||
(cap->fourcc == 0)) continue;
/* one fourcc may has two caps items in table (afbc/none-afbc), * so check the existing list to avoid adding a duplicated one.
*/ for (j = n - 1; j >= 0; j--) if (fmts[j] == cap->fourcc) break;
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.