Searched refs:chan_name (Results 1 – 1 of 1) sorted by relevance
100 def get_channel_bits(fmat, chan_name): argument105 return 4 if fmat.has_channel(chan_name) else 0107 if chan_name in 'rgb':109 elif chan_name == 'a':114 return 8 if fmat.has_channel(chan_name) else 0116 if fmat.name.endswith('_ALPHA1') and chan_name == 'a':120 return bits if fmat.has_channel(chan_name) else 0123 return bits if fmat.has_channel(chan_name) else 0126 return bits if fmat.has_channel(chan_name) else 0128 return 8 if fmat.has_channel(chan_name) else 0[all …]