Lines Matching refs:targetbitdepth
553 targetbitdepth = (8,16)[bitdepth > 8]
554 self.rescale = (bitdepth, targetbitdepth)
555 bitdepth = targetbitdepth
556 del targetbitdepth
562 targetbitdepth = 16
564 targetbitdepth = 4
567 targetbitdepth = 8
568 self.rescale = (bitdepth, targetbitdepth)
569 bitdepth = targetbitdepth
570 del targetbitdepth
2064 targetbitdepth = None
2067 targetbitdepth = max(sbit)
2068 if targetbitdepth > meta['bitdepth']:
2073 if targetbitdepth == meta['bitdepth']:
2074 targetbitdepth = None
2075 if targetbitdepth:
2076 shift = meta['bitdepth'] - targetbitdepth
2077 meta['bitdepth'] = targetbitdepth
2100 def _as_rescale(self, get, targetbitdepth): argument
2105 targetmaxval = 2**targetbitdepth - 1
2107 meta['bitdepth'] = targetbitdepth