Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Unified Diff: experimental/PdfViewer/SkPdfDctdecodeFilterDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/SkPdfDctdecodeFilterDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfDctdecodeFilterDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfDctdecodeFilterDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Optional parameter for the DCTDecode filter
class SkPdfDctdecodeFilterDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kDctdecodeFilterDictionary_SkPdfObjectType;}
@@ -521,6 +522,29 @@
SkPdfDctdecodeFilterDictionary& operator=(const SkPdfDctdecodeFilterDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** ()A code specifying the transformation to be performed on the sample values:
+ * 0 No transformation.
+ * 1 If the image has three color components, transform RGB values to
+ * YUV before encoding and from YUV to RGB after decoding. If the
+ * image has four components, transform CMYK values to YUVK be-
+ * fore encoding and from YUVK to CMYK after decoding. This option
+ * is ignored if the image has one or two color components.
+ * Note: The RGB and YUV used here have nothing to do with the color spaces de-
+ * fined as part of the Adobe imaging model. The purpose of converting from RGB
+ * to YUV is to separate luminance and chrominance information (see below).
+ * The default value of ColorTransform is 1 if the image has three components
+ * and 0 otherwise. In other words, conversion between RGB and YUV is per-
+ * formed for all three-component images unless explicitly disabled by setting
+ * ColorTransform to 0. Additionally, the encoding algorithm inserts an Adobe-
+ * defined marker code in the encoded data indicating the ColorTransform value
+ * used. If present, this marker code overrides the ColorTransform value given to
+ * DCTDecode. Thus it is necessary to specify ColorTransform only when decod-
+ * ing data that does not contain the Adobe-defined marker code.
+**/
+ bool has_ColorTransform() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorTransform", "", NULL));
+ }
+
long ColorTransform() const {
long ret;
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorTransform", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698