| Index: experimental/PdfViewer/SkPdfSoundObjectDictionary_autogen.h
|
| ===================================================================
|
| --- experimental/PdfViewer/SkPdfSoundObjectDictionary_autogen.h (revision 9684)
|
| +++ experimental/PdfViewer/SkPdfSoundObjectDictionary_autogen.h (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "SkPdfArray_autogen.h"
|
| #include "SkPdfDictionary_autogen.h"
|
|
|
| +// Additional entries specific to a sound object
|
| class SkPdfSoundObjectDictionary : public SkPdfDictionary {
|
| public:
|
| virtual SkPdfObjectType getType() const { return kSoundObjectDictionary_SkPdfObjectType;}
|
| @@ -521,6 +522,13 @@
|
|
|
| SkPdfSoundObjectDictionary& operator=(const SkPdfSoundObjectDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
|
|
|
| +/** (Optional) The type of PDF object that this dictionary describes; if present, must be
|
| + * Sound for a sound object.
|
| +**/
|
| + bool has_Type() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL));
|
| + }
|
| +
|
| std::string Type() const {
|
| std::string ret;
|
| if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret;
|
| @@ -528,6 +536,12 @@
|
| return "";
|
| }
|
|
|
| +/** (Required) The sampling rate, in samples per second.
|
| +**/
|
| + bool has_R() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL));
|
| + }
|
| +
|
| double R() const {
|
| double ret;
|
| if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret;
|
| @@ -535,6 +549,13 @@
|
| return 0;
|
| }
|
|
|
| +/** (Optional) The number of sound channels. Default value: 1. (See implementation
|
| + * note 101 in Appendix H.)
|
| +**/
|
| + bool has_C() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", NULL));
|
| + }
|
| +
|
| long C() const {
|
| long ret;
|
| if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret;
|
| @@ -542,6 +563,12 @@
|
| return 0;
|
| }
|
|
|
| +/** (Optional) The number of bits per sample value per channel. Default value: 8.
|
| +**/
|
| + bool has_B() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", NULL));
|
| + }
|
| +
|
| long B() const {
|
| long ret;
|
| if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "", &ret)) return ret;
|
| @@ -549,6 +576,17 @@
|
| return 0;
|
| }
|
|
|
| +/** (Optional) The encoding format for the sample data:
|
| + * Raw Unspecified or unsigned values in the range 0 to 2B - 1
|
| + * Signed Twos-complement values
|
| + * muLaw mu-law'encoded samples
|
| + * ALaw A-law'encoded samples
|
| + * Default value: Raw.
|
| +**/
|
| + bool has_E() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", "", NULL));
|
| + }
|
| +
|
| std::string E() const {
|
| std::string ret;
|
| if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", "", &ret)) return ret;
|
| @@ -556,6 +594,16 @@
|
| return "";
|
| }
|
|
|
| +/** (Optional) The sound compression format used on the sample data. (Note that this is
|
| + * separate from any stream compression specified by the sound object's Filter entry; see
|
| + * Table 3.4 on page 38 and Section 3.3, "Filters.") If this entry is absent, then no sound
|
| + * compression has been used; the data contains sampled waveforms to be played at R
|
| + * samples per second per channel.
|
| +**/
|
| + bool has_CO() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CO", "", NULL));
|
| + }
|
| +
|
| std::string CO() const {
|
| std::string ret;
|
| if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CO", "", &ret)) return ret;
|
| @@ -563,6 +611,14 @@
|
| return "";
|
| }
|
|
|
| +/** (Optional) Optional parameters specific to the sound compression format used.
|
| + * Note: At the time of publication, no standard values have been defined for the CO and CP
|
| + * entries.
|
| +**/
|
| + bool has_CP() const {
|
| + return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CP", "", NULL));
|
| + }
|
| +
|
| SkPdfObject* CP() const {
|
| SkPdfObject* ret;
|
| if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CP", "", &ret)) return ret;
|
|
|