| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 'use strict'; | |
| 6 | |
| 7 // TODO:(kaznacheev) Share the EXIF constants with exif_parser.js | 5 // TODO:(kaznacheev) Share the EXIF constants with exif_parser.js |
| 8 var EXIF_MARK_SOS = 0xffda; // Start of "stream" (the actual image data). | 6 var EXIF_MARK_SOS = 0xffda; // Start of "stream" (the actual image data). |
| 9 var EXIF_MARK_SOI = 0xffd8; // Start of image data. | 7 var EXIF_MARK_SOI = 0xffd8; // Start of image data. |
| 10 var EXIF_MARK_EOI = 0xffd9; // End of image data. | 8 var EXIF_MARK_EOI = 0xffd9; // End of image data. |
| 11 | 9 |
| 12 var EXIF_MARK_APP0 = 0xffe0; // APP0 block, most commonly JFIF data. | 10 var EXIF_MARK_APP0 = 0xffe0; // APP0 block, most commonly JFIF data. |
| 13 var EXIF_MARK_EXIF = 0xffe1; // Start of exif block. | 11 var EXIF_MARK_EXIF = 0xffe1; // Start of exif block. |
| 14 | 12 |
| 15 var EXIF_ALIGN_LITTLE = 0x4949; // Indicates little endian exif data. | 13 var EXIF_ALIGN_LITTLE = 0x4949; // Indicates little endian exif data. |
| 16 var EXIF_ALIGN_BIG = 0x4d4d; // Indicates big endian exif data. | 14 var EXIF_ALIGN_BIG = 0x4d4d; // Indicates big endian exif data. |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 }; | 558 }; |
| 561 | 559 |
| 562 /** | 560 /** |
| 563 * Check if every forward has been resolved, throw and error if not. | 561 * Check if every forward has been resolved, throw and error if not. |
| 564 */ | 562 */ |
| 565 ByteWriter.prototype.checkResolved = function() { | 563 ByteWriter.prototype.checkResolved = function() { |
| 566 for (var key in this.forwards_) { | 564 for (var key in this.forwards_) { |
| 567 throw new Error('Unresolved forward pointer ' + key.toString(16)); | 565 throw new Error('Unresolved forward pointer ' + key.toString(16)); |
| 568 } | 566 } |
| 569 }; | 567 }; |
| OLD | NEW |