Lines Matching refs:Line
224 // The following line was modified for benchmarking:
261 // The following line was modified for benchmarking:
626 throw (new Error("Select initializeWebAudio case")); // Line added for benchmarking.
923 // The following line was modified for benchmarking:
1017 var line = 0;
1025 for (line = 0; line < this.originalHeightMultipliedByChannels;) {
1026 output[line++] = 0;
1027 output[line++] = 0;
1028 output[line++] = 0;
1034 for (line = 0, pixelOffset = actualPosition; line < this.originalHeightMultipliedByChannels; pixelOffset += nextLineOffsetOriginalWidth) {
1035 output[line++] += buffer[pixelOffset++] * amountToNext;
1036 output[line++] += buffer[pixelOffset++] * amountToNext;
1037 output[line++] += buffer[pixelOffset] * amountToNext;
1043 for (line = 0, pixelOffset = actualPosition; line < this.originalHeightMultipliedByChannels; pixelOffset += nextLineOffsetOriginalWidth) {
1044 output[line++] += buffer[pixelOffset++] * weight;
1045 output[line++] += buffer[pixelOffset++] * weight;
1046 output[line++] += buffer[pixelOffset] * weight;
1052 for (line = 0, pixelOffset = outputOffset; line < this.originalHeightMultipliedByChannels; pixelOffset += nextLineOffsetTargetWidth) {
1053 outputBuffer[pixelOffset++] = output[line++] / ratioWeight;
1054 outputBuffer[pixelOffset++] = output[line++] / ratioWeight;
1055 outputBuffer[pixelOffset] = output[line++] / ratioWeight;
1086 var line = 0;
1094 for (line = 0; line < this.originalHeightMultipliedByChannels;) {
1095 output[line++] = 0;
1096 output[line++] = 0;
1097 output[line++] = 0;
1098 output[line++] = 0;
1104 for (line = 0, pixelOffset = actualPosition; line < this.originalHeightMultipliedByChannels; pixelOffset += nextLineOffsetOriginalWidth) {
1105 output[line++] += buffer[pixelOffset++] * amountToNext;
1106 output[line++] += buffer[pixelOffset++] * amountToNext;
1107 output[line++] += buffer[pixelOffset++] * amountToNext;
1108 output[line++] += buffer[pixelOffset] * amountToNext;
1114 for (line = 0, pixelOffset = actualPosition; line < this.originalHeightMultipliedByChannels; pixelOffset += nextLineOffsetOriginalWidth) {
1115 output[line++] += buffer[pixelOffset++] * weight;
1116 output[line++] += buffer[pixelOffset++] * weight;
1117 output[line++] += buffer[pixelOffset++] * weight;
1118 output[line++] += buffer[pixelOffset] * weight;
1124 for (line = 0, pixelOffset = outputOffset; line < this.originalHeightMultipliedByChannels; pixelOffset += nextLineOffsetTargetWidth) {
1125 outputBuffer[pixelOffset++] = output[line++] / ratioWeight;
1126 outputBuffer[pixelOffset++] = output[line++] / ratioWeight;
1127 outputBuffer[pixelOffset++] = output[line++] / ratioWeight;
1128 outputBuffer[pixelOffset] = output[line++] / ratioWeight;
1430 this.modeSTAT = 0; //The scan line mode (for lines 1-144 it's 2-3-0, for 145-154 it's 1)
1431 this.spriteCount = 252; //Mode 3 extra clocking counter (Depends on how many sprites are on the current line.).
1437 this.LINECONTROL = []; //Array of functions to handle each scan line we do (onscreen + offscreen)
1439 //Array of line 0 function to handle the LCD controller when it's off (Do nothing!).
1531 var dateVar = new_Date(); // The line is changed for benchmarking.
1533 dateVar = new_Date(); // The line is changed for benchmarking.
1536 this.actualScanLine = 0; //Actual scan line...
1537 this.lastUnrenderedLine = 0; //Last rendered scan line...
1579 this.pixelEnd = 0; //track the x-coord limit for line rendering (mid-scanline usage).
6226 this.initializeAudioStartState(); // Line added for benchmarking.
6323 // The following line was modified for benchmarking:
6348 this.canvasOffscreen = new GameBoyCanvas(); // Line modified for benchmarking.
6378 throw(new Error("HTML5 Canvas support required: " + error.message + "file: " + error.fileName + ", line: " + error.lineNumber));
7094 this.LCDCONTROL[this.actualScanLine](this); //Scan Line and STAT Mode Control
7176 GameBoyCore.prototype.scanLineMode3 = function () { //Scan Line Drawing Period
7240 GameBoyCore.prototype.updateSpriteCount = function (line) {
7243 var lineAdjusted = line + 0x10;
7269 this.LCDCONTROL[this.actualScanLine](this); //Scan Line and STAT Mode Control
7312 var line = 0;
7313 while (line < 154) {
7314 if (line < 143) {
7315 //We're on a normal scan line:
7316 this.LINECONTROL[line] = function (parentObj) {
7327 //We're on a new scan line:
7330 //Make sure the mode 0 handler was run at least once per scan line:
7360 parentObj.LINECONTROL[parentObj.actualScanLine](parentObj); //Scan Line and STAT Mode Control.
7364 else if (line == 143) {
7365 //We're on the last visible scan line of the LCD screen:
7378 //Just finished the last visible scan line:
7381 //Make sure the mode 0 handler was run at least once per scan line:
7427 parentObj.LINECONTROL[144](parentObj); //Scan Line and STAT Mode Control.
7431 else if (line < 153) {
7433 this.LINECONTROL[line] = function (parentObj) {
7435 //We're on a new scan line:
7449 parentObj.LINECONTROL[parentObj.actualScanLine](parentObj); //Scan Line and STAT Mode Control.
7454 //VBlank Ending (We're on the last actual scan line)
7476 parentObj.LINECONTROL[0](parentObj); //Scan Line and STAT Mode Control.
7481 ++line;
7514 var dateObj = new_Date(); // The line is changed for benchmarking.
7836 var scrollYAdjusted = (this.backgroundY + scanlineToRender) & 0xFF; //The line of the BG we're at.
7924 var scrollYAdjusted = (this.backgroundY + scanlineToRender) & 0xFF; //The line of the BG we're at.
8022 var scrollYAdjusted = (this.backgroundY + scanlineToRender) & 0xFF; //The line of the BG we're at.
8121 var scrollYAdjusted = scanlineToRender - this.windowY; //The line of the BG we're at.
8185 var scrollYAdjusted = scanlineToRender - this.windowY; //The line of the BG we're at.
8255 var scrollYAdjusted = scanlineToRender - this.windowY; //The line of the BG we're at.
8505 //Generate only a single tile line for the GB tile cache mode:
8519 //Generate only a single tile line for the GBC tile cache mode (Bank 1):
8564 //Generate only a single tile line for the GBC tile cache mode (Bank 2):
8607 //Generate only a single tile line for the GB tile cache mode (OAM accessible range):
10200 parentObj.matchLYC(); //Get the compare of the first scan line.
10267 parentObj.matchLYC(); //Get the compare of the first scan line.
10453 parentObj.matchLYC(); //Get the compare of the first scan line.
10581 // The following line was modified for benchmarking:
10633 // The following line was modified for benchmarking:
10719 var dateObj = new_Date(); // The line is changed for benchmarking.
10878 alert(error.message + " file: " + error.fileName + " line: " + error.lineNumber);