Lines Matching refs:buffer
8 function BmpDecoder(buffer,is_with_alpha) { argument
10 this.buffer = buffer;
13 if (this.buffer[0] != 66 && this.buffer[1] != 77) throw new Error("Invalid BMP File");
20 var b = this.buffer;
57 var blue = this.buffer[this.pos++];
58 var green = this.buffer[this.pos++];
59 var red = this.buffer[this.pos++];
60 var quad = this.buffer[this.pos++];
95 var b = this.buffer[this.pos++];
121 var b = this.buffer[this.pos++];//this.buffer.readUInt8(this.pos++);
153 var b = this.buffer[this.pos++];
185 var B = (this.buffer[this.pos+1] << 8) | this.buffer[this.pos];
215 var B = (this.buffer[this.pos+1] << 8) | this.buffer[this.pos];
242 var blue = this.buffer[this.pos++];
243 var green = this.buffer[this.pos++];
244 var red = this.buffer[this.pos++];
265 var blue = this.buffer[this.pos++];
266 var green = this.buffer[this.pos++];
267 var red = this.buffer[this.pos++];
268 var alpha = this.buffer[this.pos++];