Lines Matching full:channels
52 self.name = None # Set when the channels are added to the format
53 self.shift = -1 # Set when the channels are added to the format
54 self.index = -1 # Set when the channels are added to the format
106 A Swizzle is a mapping from one set of channels in one format to the
107 channels in another. Each channel in the destination format is
119 case, the source channels are represented by the characters "x", "y",
123 channels maps to the first luminance-alpha channel and the alpha channel
208 a permutation with no channels added or removed, then this
229 …def __init__(self, name, layout, block_width, block_height, block_depth, channels, swizzle, colors… argument
230 """Constructs a Format from some metadata and a list of channels.
236 channels.
244 channels -- A list of Channel objects
253 self.channels = channels
260 # Name the channels
273 for c, name in zip(self.channels, chan_names):
287 for channel in self.channels:
291 for idx, channel in enumerate(self.channels):
316 for channel in self.channels:
321 """Returns the number of channels in the format."""
323 for channel in self.channels:
332 considered to be an array of num_channels() channels identical to the
336 return self.channels[0]
338 ref_channel = self.channels[0]
340 ref_channel = self.channels[1]
341 for channel in self.channels:
374 for channel in self.channels:
383 for channel in self.channels:
389 """Returns the type of the channels in this format."""
391 for c in self.channels:
400 """Returns the size (in bits) of the channels in this format.
402 This function should only be called if all of the channels have the
406 for c in self.channels:
417 for c in self.channels:
432 for c in self.channels:
443 # Compressed formats are a bit tricky because the list of channels
460 for channel in self.channels:
467 for channel in self.channels:
516 channels = []
531 channels.append(channel)
533 return channels
539 channels."""
566 channels = _parse_channels(fields[5:9], layout, colorspace, swizzle)
568 … yield Format(name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace)