Home | History | Annotate | Download | only in converters

Lines Matching refs:bpp

53         final int bpp, am, rm, gm, bm, as, rs, gs, bs, im, is;
55 public DecodeParams(int bpp, int am, int rm, int gm, int bm, int as, int rs, int gs, int bs, int im, int is) {
56 this.bpp = bpp;
69 public DecodeParams(int bpp, int rm, int rs, int im, int is, boolean alpha){
70 this.bpp = bpp;
91 public DecodeParams(int bpp, int rm, int rs, int im, int is){
92 this(bpp, rm, rs, im, is, false);
182 private static int readPixel(ByteBuffer buf, int idx, int bpp){
185 while ((--bpp) > 0){
191 private static void writePixel(ByteBuffer buf, int idx, int pixel, int bpp){
193 while ((--bpp) >= 0){
195 byte bt = (byte) ((pixel >> (bpp * 8)) & 0xff);
263 int i = initialPos + (Ix(x,y,width) * p.bpp);
264 writePixel(buf, i, outputPixel, p.bpp);
272 int bpp = image.getFormat().getBitsPerPixel();
276 image.setData(BufferUtils.createByteBuffer(w*h*bpp/8));
283 int size = (w * h * bpp) / 8;
337 int i = Ix(x, y, width) * inParams.bpp;
338 inputPixel = (readPixel(inData, i, inParams.bpp) & inParams.im) >> inParams.is;
448 int i = mipPos + (Ix(x,y,width) * p.bpp);
449 inputPixel = (readPixel(buf,i,p.bpp) & p.im) >> p.is;