]> git.parisson.com Git - pdf.js.git/commitdiff
added comments
authorsbarman <sbarman@L3CWZ5T.(none)>
Thu, 7 Jul 2011 18:01:14 +0000 (11:01 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Thu, 7 Jul 2011 18:01:14 +0000 (11:01 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 3829df975b6f1f30342621566613677cd55109ff..c2760b546731ffa118b10cfd624ad4734bf6d181 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -4520,10 +4520,24 @@ var CanvasGraphics = (function() {
 })();
 
 var ColorSpace = (function() {
+  // Constructor should define this.numComps, this.defaultColor, this.name
   function constructor() {
     error('should not call ColorSpace constructor');
   };
 
+  constructor.prototype = {
+    // Input: array of size numComps representing color component values
+    // Output: array of rgb values, each value ranging from [0.1]
+    getRgb: function cs_getRgb(color) {
+      error('Should not call ColorSpace.getRgb');
+    },
+    // Input: Uint8Array of component values, each value scaled to [0,255]
+    // Output: Uint8Array of rgb values, each value scaled to [0,255]
+    getRgbBuffer: function cs_getRgbBuffer(input) {
+      error('Should not call ColorSpace.getRgbBuffer');
+    }
+  };
+
   constructor.parse = function colorspace_parse(cs, xref, res) {
     if (IsName(cs)) {
       var colorSpaces = res.get('ColorSpace');