Home | History | Annotate | Download | only in main

Lines Matching full:channels

53       self.name = None # Set when the channels are added to the format
54 self.shift = -1 # Set when the channels are added to the format
55 self.index = -1 # Set when the channels are added to the format
107 A Swizzle is a mapping from one set of channels in one format to the
108 channels in another. Each channel in the destination format is
120 case, the source channels are represented by the characters "x", "y",
124 channels maps to the first luminance-alpha channel and the alpha channel
209 a permutation with no channels added or removed, then this
230 def __init__(self, name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace):
231 """Constructs a Format from some metadata and a list of channels.
237 channels.
245 channels -- A list of Channel objects
254 self.channels = channels
261 # Name the channels
274 for c, name in zip(self.channels, chan_names):
288 for channel in self.channels:
292 for idx, channel in enumerate(self.channels):
317 for channel in self.channels:
322 """Returns the number of channels in the format."""
324 for channel in self.channels:
333 considered to be an array of num_channels() channels identical to the
337 return self.channels[0]
339 ref_channel = self.channels[0]
341 ref_channel = self.channels[1]
342 for channel in self.channels:
375 for channel in self.channels:
384 for channel in self.channels:
390 """Returns the type of the channels in this format."""
392 for c in self.channels:
401 """Returns the size (in bits) of the channels in this format.
403 This function should only be called if all of the channels have the
407 for c in self.channels:
418 for c in self.channels:
433 for c in self.channels:
444 # Compressed formats are a bit tricky because the list of channels
461 for channel in self.channels:
468 for channel in self.channels:
517 channels = []
532 channels.append(channel)
534 return channels
540 channels."""
567 channels = _parse_channels(fields[5:9], layout, colorspace, swizzle)
569 yield Format(name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace)