Lines Matching full:formats
78 c_file_name = work_dir + "/print-formats.c"
79 exe_file_name = work_dir + "/print-formats"
104 formats = {} variable
106 formats[drm_format_to_wl(ident)] = val.lower()
108 formats["argb8888"] = "0"
109 formats["xrgb8888"] = "1"
111 print("Loaded {} formats from drm_fourcc.h".format(len(formats)), file=sys.stderr)
119 # Remove formats we already know about
126 if fmt not in formats:
127 raise Exception("Format present in wl_shm.formats but not in "
129 if val != formats[fmt]:
130 raise Exception("Format value in wl_shm.formats ({}) differs "
132 .format(val, formats[fmt], fmt))
133 del formats[fmt]
138 print("Adding {} formats to wayland.xml...".format(len(formats)), file=sys.stderr)
140 # Append new formats
147 for fmt, val in formats.items():