System and method for encoding image data and other data types into one data format and decoding of same
First Claim
1. A method of a codec for encoding data streams into a combined file, comprising:
- accessing a first file including a first plurality of data bytes;
accessing a second file including a second plurality of data bytes; and
combining the first file and the second file to provide the combined file including only one header and one body, comprising the steps of;
in a first storing step, sequentially storing a first file byte block of a first byte block size in the body of the combined file, wherein the first file byte block includes one or more bytes of data from the first plurality of data bytes of the first file,in a second storing step, sequentially storing a second file byte block of a second byte block size in the body of the combined file, wherein the second file byte block includes one or more bytes of data from the second plurality of data bytes of the second file,repeating the first and second storing steps to sequentially store the first plurality of data bytes of the first file and the second plurality of data bytes of the second file in the body of the combined file,wherein the first plurality of data bytes and the second plurality of data bytes are both stored in the one body of the combined file in association with only the one header separate from the body, andwherein no byte block from the first file is stored adjacent another byte block from the first file, and no byte block from the second file is stored adjacent another byte block from the second file, andstoring, in the header of the combined file, a number of bytes of the first file and the second file, the first byte block size, and the second byte block size, wherein the first byte block size and the second byte block size are determined according to a file size relationship between the first file and the second file for use in a decoding process of the combined file.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for encoding data streams into a combined file and decoding of same, including accessing a first file having a first plurality of data bytes, accessing a second file having a second plurality of data bytes, combining the first file and the second file, comprising the steps of storing a block of data bytes of a first byte block size in the body of the combined file as a first file byte block, storing a block of data bytes of a second byte block size in the body of the combined file as a second file byte block, repeating the first and second storing steps to sequentially store all of the data bytes in the first file and the second file in the combined file, and decoding the combined file to separate the bytes of the first file and the bytes of the second file from the combined file.
35 Citations
23 Claims
-
1. A method of a codec for encoding data streams into a combined file, comprising:
-
accessing a first file including a first plurality of data bytes; accessing a second file including a second plurality of data bytes; and combining the first file and the second file to provide the combined file including only one header and one body, comprising the steps of; in a first storing step, sequentially storing a first file byte block of a first byte block size in the body of the combined file, wherein the first file byte block includes one or more bytes of data from the first plurality of data bytes of the first file, in a second storing step, sequentially storing a second file byte block of a second byte block size in the body of the combined file, wherein the second file byte block includes one or more bytes of data from the second plurality of data bytes of the second file, repeating the first and second storing steps to sequentially store the first plurality of data bytes of the first file and the second plurality of data bytes of the second file in the body of the combined file, wherein the first plurality of data bytes and the second plurality of data bytes are both stored in the one body of the combined file in association with only the one header separate from the body, and wherein no byte block from the first file is stored adjacent another byte block from the first file, and no byte block from the second file is stored adjacent another byte block from the second file, and storing, in the header of the combined file, a number of bytes of the first file and the second file, the first byte block size, and the second byte block size, wherein the first byte block size and the second byte block size are determined according to a file size relationship between the first file and the second file for use in a decoding process of the combined file. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method of a codec for decoding a data stream of a combined file into separate data streams, comprising:
-
analyzing header data included in a header of the combined file, wherein the combined file includes only one header and includes both data from a first data stream of a first original file and data from a second data stream of a second original file in one body of the combined file in association with only the one header separate from the body; reading from the header data a number of bytes of the first original file and the second original file, and a byte block size for each of a first data stream and a second data stream, wherein a byte block includes one or more bytes of data within a file, and wherein the byte block size for each of the first data stream and the second data stream are determined according to a file size relationship between the first original file and the second original file; reading a first file byte block included in the combined file, wherein the first file byte block includes a number of bytes in the combined file corresponding to the byte block size for the first data stream read from the header of the combined file; writing the first file byte block to a first file; reading a second file byte block included in the combined file, wherein the second file byte block includes a number of bytes in the combined file corresponding to the byte block size for the second data stream read from the header of the combined file; and writing the second file byte block to a second file. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A system for encoding data streams into a combined file and decoding the combined file into separate data streams, comprising:
-
a network interface coupled to a processor; and a memory coupled to the processor, the processor configured to; access a first file including a first plurality of data bytes; access a second file including a second plurality of data bytes; and combine the first file and the second file to provide the combined file including only one header and one body, wherein, during combining, the processor is further configured to; in a first storing step, sequentially store a first file byte block of a first byte block size in the body of the combined file, wherein the first file byte block includes one or more bytes of data from the first plurality of data bytes of the first file, in a second storing step, sequentially store a second file byte block of a second byte block size in the body of the combined file, wherein the second file byte block includes one or more bytes of data from the second plurality of data bytes of the second file, repeat the first and second storing steps to sequentially store the first plurality of data bytes of the first file and the second plurality of data bytes of the second file in the body of the combined file, wherein the first plurality of data bytes and the second plurality of data bytes are both stored in the one body of the combined file in association with only the one header separate from the body, and wherein no byte block from the first file is stored adjacent another byte block from the first file, and no byte block from the second file is stored adjacent another byte block from the second file, and store, in the header, information relating to a number of bytes of the first file and the second file, the first byte block size, and the second byte block size, wherein the first byte block size and the second byte block size are determined according to a file size relationship between the first file and the second file for use in a decoding process of the combined file. - View Dependent Claims (19, 20, 21, 22, 23)
-
Specification