• Home
  • Raw
  • Download

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
112 A Swizzle is a mapping from one set of channels in one format to the
113 channels in another. Each channel in the destination format is
125 case, the source channels are represented by the characters "x", "y",
129 channels maps to the first luminance-alpha channel and the alpha channel
214 a permutation with no channels added or removed, then this
235 …def __init__(self, name, layout, block_width, block_height, block_depth, channels, swizzle, colors… argument
236 """Constructs a Format from some metadata and a list of channels.
242 channels.
250 channels -- A list of Channel objects
259 self.channels = channels
266 # Name the channels
279 for c, name in zip(self.channels, chan_names):
293 for channel in self.channels:
297 for idx, channel in enumerate(self.channels):
322 for channel in self.channels:
327 """Returns the number of channels in the format."""
329 for channel in self.channels:
338 considered to be an array of num_channels() channels identical to the
342 return self.channels[0]
344 ref_channel = self.channels[0]
346 ref_channel = self.channels[1]
347 for channel in self.channels:
380 for channel in self.channels:
389 for channel in self.channels:
395 """Returns the type of the channels in this format."""
397 for c in self.channels:
406 """Returns the size (in bits) of the channels in this format.
408 This function should only be called if all of the channels have the
412 for c in self.channels:
423 for c in self.channels:
438 for c in self.channels:
449 # Compressed formats are a bit tricky because the list of channels
466 for channel in self.channels:
473 for channel in self.channels:
522 channels = []
537 channels.append(channel)
539 return channels
545 channels."""
573 channels = _parse_channels(fields[5:9])
575 … yield Format(name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace)