Home | History | Annotate | Download | only in its

Lines Matching refs:lsbs

114     # the MSPs of the pixels, and the 5th byte holding 4x2b LSBs.
126 Output image will have the 10 LSBs filled in each 16b word, and the 6 MSBs
144 # Cut out the 4x2b LSBs and put each in bits [1:0] of their own 8b words.
145 lsbs = img[::, 4::5].reshape(h,w/4)
146 lsbs = numpy.right_shift(
147 numpy.packbits(numpy.unpackbits(lsbs).reshape(h,w/4,4,2),3), 6)
148 lsbs = lsbs.reshape(h,w)
149 # Fuse the MSBs and LSBs back together
150 img16 = numpy.bitwise_or(msbs, lsbs).reshape(h,w)
164 # the MSBs of the pixels, and the 5th byte holding 4x2b LSBs.
176 Output image will have the 12 LSBs filled in each 16b word, and the 4 MSBs
194 # Cut out the 2x4b LSBs and put each in bits [3:0] of their own 8b words.
195 lsbs = img[::, 2::3].reshape(h,w/2)
196 lsbs = numpy.right_shift(
197 numpy.packbits(numpy.unpackbits(lsbs).reshape(h,w/2,2,4),3), 4)
198 lsbs = lsbs.reshape(h,w)
199 # Fuse the MSBs and LSBs back together
200 img16 = numpy.bitwise_or(msbs, lsbs).reshape(h,w)