Method and apparatus for simplifying the decoding of data
First Claim
1. A method of converting data in a file using an apparatus having a processor and a memory, the method comprising:
- checking for a first data portion of a plurality of data portions in the file, the first data portion being a critical data chunk in a Portable Network Graphics (PNG) file and having a first data value;
reading in data from a second data portion of the plurality of data portions;
decoding the data in the second data portion of the plurality of data portions;
wherein decoding the data in the second data portion comprises decoding data for an opaque image encoded with a four-channel blue, green, red and alpha format;
skipping a multiplication of a color value with a transparency value if the first data portion having the first data value is detected;
performing a checksum operation using the processor on the decoded data from the second data portion if the first data portion having the first data value is not detected; and
skipping the checksum operation on the decoded data from the second data portion if the first data portion having a first data value is detected.
1 Assignment
0 Petitions
Accused Products
Abstract
The various methods and devices described herein relate to devices which, in at least certain embodiments, may include a method of decoding data or a data stream in a file, which may include checking for a first data portion of a plurality of data portions in the file, the first data portion having a first data value, reading in data from another data portion of the plurality of data portions, decoding or decompressing the data, performing a checksum operation on the decoded data if the first data portion having the first data value is not detected, and skipping a checksum operation on the decoded data if the first data portion having the first data value is detected. In the embodiment, a checksum operation on encoded data may also be skipped. In an embodiment, the first data value may include information or instructions about how a decoder may decode the data and may also include a tag or identifier.
32 Citations
19 Claims
-
1. A method of converting data in a file using an apparatus having a processor and a memory, the method comprising:
-
checking for a first data portion of a plurality of data portions in the file, the first data portion being a critical data chunk in a Portable Network Graphics (PNG) file and having a first data value; reading in data from a second data portion of the plurality of data portions; decoding the data in the second data portion of the plurality of data portions; wherein decoding the data in the second data portion comprises decoding data for an opaque image encoded with a four-channel blue, green, red and alpha format; skipping a multiplication of a color value with a transparency value if the first data portion having the first data value is detected; performing a checksum operation using the processor on the decoded data from the second data portion if the first data portion having the first data value is not detected; and skipping the checksum operation on the decoded data from the second data portion if the first data portion having a first data value is detected. - View Dependent Claims (2, 3, 4)
-
-
5. A machine-readable storage medium storing executable program instructions which when executed cause the machine to perform a method comprising:
-
checking for a first data portion of a plurality of data portions in the file, the first data portion being a critical data chunk in a Portable Network Graphics (PNG) file and having a first data value; reading in data from a second data portion of the plurality of data portions; decoding the data in the second data portion of the plurality of data portions; wherein decoding the data in the second data portion comprises decoding data for an opaque image encoded with a four-channel blue, green, red and alpha format; skipping a multiplication of a color value with a transparency value if the first data portion having the first data value is detected; performing a checksum operation on the decoded data from the second data portion if the first data portion having the first data value is not detected; and skipping the checksum operation on the decoded data from the second data portion if the first data portion having the first data value is detected. - View Dependent Claims (6, 7, 8, 9, 10, 11)
-
-
12. An apparatus having a processor and a memory, comprising:
-
means for checking, including the processor, for a first data portion of a plurality of data portions in the file, the first data portion being a critical data chunk in a Portable Network Graphics (PNG) file And having a first data value; means for reading in data from a second data portion of the plurality of data portions; means for decoding the data in the second data portion of the plurality of data portions; wherein decoding the data in the second data portion comprises decoding data for an opaque image encoded with a four-channel blue, green, red and alpha format; means for skipping a multiplication of a color value with a transparency value if the first data portion having the first data value is detected; means for performing a checksum operation using the processor on the decoded data from the second data portion if the first data portion having the first data value is not detected; and means for skipping the checksum operation on the decoded data from the second data portion if the first data portion having a first data value is detected.
-
-
13. An apparatus, comprising:
-
a processor; and a memory coupled to said processor, said memory having stored thereon instructions which, when executed by a decoder cause the decoder to perform a method, the method comprising; checking for a first data portion of a plurality of data portions in a file, the first data portion being a critical data chunk in a Portable Network Graphics (PNG) file and having a first data value; reading in data from a second data portion of the plurality of data portions; decoding the data in the second data portion of the plurality of data portions; wherein decoding the data in the second data portion comprises decoding data for an opaque image encoded with a four-channel blue, green, red and alpha format; skipping multiplication of a color value with a transparency value if the first data portion having the first data value is detected; performing a checksum operation on the data from the second data portion if the first data portion having the first data value is not detected; and skipping the checksum operation on the data from the second data portion if the first data portion having a first data value is detected. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
Specification