| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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'; | 5 'use strict'; |
| 6 | 6 |
| 7 // TODO:(kaznacheev) Share the EXIF constants with exif_parser.js | 7 // TODO:(kaznacheev) Share the EXIF constants with exif_parser.js |
| 8 var EXIF_MARK_SOS = 0xffda; // Start of "stream" (the actual image data). | 8 var EXIF_MARK_SOS = 0xffda; // Start of "stream" (the actual image data). |
| 9 var EXIF_MARK_SOI = 0xffd8; // Start of image data. | 9 var EXIF_MARK_SOI = 0xffd8; // Start of image data. |
| 10 var EXIF_MARK_EOI = 0xffd9; // End of image data. | 10 var EXIF_MARK_EOI = 0xffd9; // End of image data. |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 }; | 560 }; |
| 561 | 561 |
| 562 /** | 562 /** |
| 563 * Check if every forward has been resolved, throw and error if not. | 563 * Check if every forward has been resolved, throw and error if not. |
| 564 */ | 564 */ |
| 565 ByteWriter.prototype.checkResolved = function() { | 565 ByteWriter.prototype.checkResolved = function() { |
| 566 for (var key in this.forwards_) { | 566 for (var key in this.forwards_) { |
| 567 throw new Error('Unresolved forward pointer ' + key.toString(16)); | 567 throw new Error('Unresolved forward pointer ' + key.toString(16)); |
| 568 } | 568 } |
| 569 }; | 569 }; |
| OLD | NEW |