Compressed image data generally is stored in a format that permits efficient access to each part of the compressed image data and the parameters for decompressing each part of the compressed image data. There are several standards that have been defined for bitstream formats for different kinds of compressed data. For example, there is a bitstream format defined by the MPEG-2 standard. Typically, such a bitstream format includes picture header information and picture information. The header information typically includes information about how to access the compressed image data and associated parameters for each block of an image. Such bitstream formats generally are designed to enable efficient access to the bitstream as a single serial stream of data. MPEG-2 defines “slices” of compressed data by placing “slice markers” in the data stream; however a slice can only be accessed by scanning the data stream for the slice markers.
It is desirable to provide a bitstream format for compressed data that would allow multiple processors to access and decompress different parts of the data in parallel without spending time scanning through all of the compressed image data. Compressed images are usually defined by macroblocks that have a width less than the image width and a height less than the image height. Thus, an image is divided several bands of multiple lines, and each band of multiple lines is divided into a macroblock. The set of macroblocks that define a band is called herein a macroblock rasterscan.
The bit stream format includes, for each image, a picture header followed by image scan data. The bitstream also may include a picture footer or trailer. The image scan data includes data corresponding to a plurality of macroblock rasterscans. The data for each macroblock rasterscan includes data for a plurality of macroblocks for a band of lines in the image followed by padding. The padding ensures that data for each macroblock rasterscan terminates on a data boundary. This data boundary depends on the amount of data that permits efficient access by a processor, for example, but not limited to 4096 (4K) bytes.
The picture header references an image scan index that indicates a number of macroblock rasterscans in the image scan data and a number of lines per macroblock rasterscan, followed by entries of the index. Each entry in the index includes an offset of the macroblock rasterscan in image scan. The picture header may include a reference to a picture header type, that references an I_frame_image_descriptor, which references the image scan index.
Using the image scan index, each macroblock rasterscan can be randomly and directly accessed, thus allowing different macroblock rasterscans to be processed in parallel by different processors. Thus, multiple processors operating in parallel can efficiently decode an image.
Accordingly, in one aspect, a computer information product includes a computer readable medium and data stored on the computer readable medium that, when interpreted by a computer, defines a bitstream for compressed image data. The bitstream comprises, for each image, a picture header followed by image scan data. The image scan data includes data corresponding to a plurality of macroblock rasterscans. The data for each macroblock rasterscan includes data for a plurality of macroblocks for a band of lines in the image followed by padding, whereby data for each macroblock rasterscan terminates on a data boundary. The picture header references an image scan index that indicates a number of macroblock rasterscans in the image scan data and a number of lines per macroblock rasterscan, followed by entries of the index. Each entry in the index includes an offset of the macroblock rasterscan in image scan.
In another aspect, a method and computer program product for reading such a bitstream involves accessing the picture header to locate the image scan index. The image scan index is accessed to locate, for each macroblock rasterscan, the offset of the macroblock rasterscan in the image scan data. Each macroblock rasterscan then is retrieved according to the offsets from the image scan index. Each of the macroblock rasterscans may be decoded in parallel.
In another aspect, a method and computer program product for writing such a bitstream involves, for each image, defining a picture header followed by image scan data. For each band of lines in the image, a bitstream is defined in memory for a macroblock rasterscan using data for a plurality of macroblocks for the band of lines followed by padding that makes each macroblock rasterscan terminate on a data boundary. The image scan data is defined to include data corresponding to a plurality of macroblock rasterscans. An image scan index is defined that indicates a number of macroblock rasterscans in the image scan data and a number of lines per macroblock rasterscan, followed by entries of the image scan index. Entries in the image scan index are created such that each entry in the index includes an offset of the macroblock rasterscan in image scan. A reference in the picture header to the image scan index also is created. The picture header followed by the image scan data are written as the bitstream.
Referring now to
Referring now to
Referring now to
Referring now to
Referring now to
Referring now to
Using the image scan index, each macroblock rasterscan can be randomly and directly accessed, thus allowing different macroblock rasterscans to be processed in parallel by different processors. Thus, multiple processors operating in parallel can efficiently decode an image.
The image processing application 77 performs operations on the image data to produce uncompressed image data 78. For example, such image processing operations may include, but are not limited to, operations for combining images, such as compositing, blending, and keying, or operations within an image, such as resizing, filtering, and color correction, or operations between two images, such as motion estimation. The image processing application also may be an application that captures and/or creates digital image data, without using any input image data. The image processing application also may manipulate metadata about the image data, for example to define a sequence of scenes of motion video information. The image processing application also may playback image data in one or more formats, without providing any output data.
Although
Referring now to
In one embodiment, if each macroblock rasterscan has an end of block code, indicating the end of the data for the macroblock rasterscan, and if the amount of padding is known, the process of
Referring now to
The various components of the system shown in
One or more output devices may be connected to the computer system. Example output devices include, but are not limited to, a cathode ray tube (CRT) display, liquid crystal displays (LCD) and other video output devices, printers, communication devices such as a modem, and storage devices such as disk or tape. One or more input devices may be connected to the computer system. Example input devices include, but are not limited to, a keyboard, keypad, track ball, mouse, pen and tablet, communication device, and data input devices. The invention is not limited to the particular input or output devices used in combination with the computer system or to those described herein.
The computer system may be a general purpose computer system which is programmable using a computer programming language, such as “C++,” Visual Basic, JAVA or other language, such as a scripting language or even assembly language. The computer system may also be specially programmed, special purpose hardware. In a general-purpose computer system, the processor is typically a commercially available processor, such as various processors available from Intel, AMD, Cyrix, Motorola, and IBM. The general-purpose computer also typically has an operating system, which controls the execution of other computer programs and provides scheduling, debugging, input/output control, accounting, compilation, storage assignment, data management and memory management, and communication control and related services. Example operating systems include, but are not limited to, the UNIX operating system and those available from Microsoft and Apple Computer.
A memory system typically includes a computer readable medium. The medium may be volatile or nonvolatile, writeable or nonwriteable, and/or rewriteable or not rewriteable, A memory system stores data typically in binary form. Such data may define an application program to be executed by the microprocessor, or information stored on the disk to be processed by the application program. The invention is not limited to a particular memory system.
A system such as described above may be implemented in software or hardware or firmware, or a combination of the three. The various elements of the system, either individually or in combination may be implemented as one or more computer program products in which computer program instructions are stored on a computer readable medium for execution by a computer. Various steps of a process may be performed by a computer executing such computer program instructions. The computer system may be a multiprocessor computer system or may include multiple computers connected over a computer network. The components shown in
Having now described an example embodiment, it should be apparent to those skilled in the art that the foregoing is merely illustrative and not limiting, having been presented by way of example only. Numerous modifications and other embodiments are within the scope of one of ordinary skill in the art and are contemplated as falling within the scope of the invention.
This application claims priority to and the benefit of, under 35 U.S.C. §120, and is a continuation application of pending application Ser. No. 12/286,991, filed on Oct. 3, 2008, now U.S. Pat. No. 7,916,363 which is a continuation of application Ser. No. 10/817,209 now U.S. Pat. No. 7,433,519, filed on Apr. 2, 2004, which is a nonprovisional application claiming priority under 35 U.S.C. §119 to provisional Application Ser. No. 60/460,547, filed Apr. 4, 2003, abandoned, all of which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
3769453 | Bahl et al. | Oct 1973 | A |
3984833 | Van Voorhis | Oct 1976 | A |
4044347 | Van Voorhis | Aug 1977 | A |
4092675 | Saran | May 1978 | A |
4092677 | Saran | May 1978 | A |
4136363 | Saran | Jan 1979 | A |
4302775 | Wildergren et al. | Nov 1981 | A |
4325085 | Gooch | Apr 1982 | A |
4330833 | Pratt et al. | May 1982 | A |
4385363 | Wildergren et al. | May 1983 | A |
4394774 | Wildergren et al. | Jul 1983 | A |
4410916 | Pratt et al. | Oct 1983 | A |
4476495 | Fuijisawa et al. | Oct 1984 | A |
4520490 | Wei | May 1985 | A |
4558302 | Welch | Dec 1985 | A |
4558370 | Mitchell et al. | Dec 1985 | A |
4586027 | Tsukiyama et al. | Apr 1986 | A |
4663325 | Ohtaka et al. | May 1987 | A |
4698672 | Chen et al. | Oct 1987 | A |
4704628 | Chen et al. | Nov 1987 | A |
4706265 | Furukawa | Nov 1987 | A |
4710813 | Wallis et al. | Dec 1987 | A |
4813056 | Fedele | Mar 1989 | A |
4837571 | Lutz | Jun 1989 | A |
4841299 | Weaver | Jun 1989 | A |
4849812 | Borgers et al. | Jul 1989 | A |
4872009 | Tsukiyama et al. | Oct 1989 | A |
4901075 | Vogel | Feb 1990 | A |
4988998 | O'Brien | Jan 1991 | A |
5027206 | Vreeswijk et al. | Jun 1991 | A |
5049880 | Stevens | Sep 1991 | A |
5072295 | Murakami et al. | Dec 1991 | A |
5128758 | Azadegan et al. | Jul 1992 | A |
5179442 | Azadegan et al. | Jan 1993 | A |
5191436 | Yonemitsu | Mar 1993 | A |
5268686 | Battail | Dec 1993 | A |
5272478 | Allen | Dec 1993 | A |
5291486 | Koyanagi | Mar 1994 | A |
5333135 | Wendorf | Jul 1994 | A |
5426464 | Casavant et al. | Jun 1995 | A |
5428390 | Cooper et al. | Jun 1995 | A |
5461420 | Yonemitsu et al. | Oct 1995 | A |
5559557 | Kato | Sep 1996 | A |
5579413 | Bjontegaard | Nov 1996 | A |
5663763 | Yagasaki et al. | Sep 1997 | A |
5724097 | Hibi et al. | Mar 1998 | A |
5751359 | Suzuki et al. | May 1998 | A |
5821887 | Zhu et al. | Oct 1998 | A |
5982437 | Okazaki et al. | Nov 1999 | A |
6023531 | Peters et al. | Feb 2000 | A |
6028639 | Bhatt et al. | Feb 2000 | A |
6198543 | Ryan | Mar 2001 | B1 |
6249546 | Bist | Jun 2001 | B1 |
6256349 | Suzuki et al. | Jul 2001 | B1 |
6438167 | Shimizu et al. | Aug 2002 | B1 |
6456659 | Zuccaro et al. | Sep 2002 | B1 |
6484142 | Miyasaka et al. | Nov 2002 | B1 |
6668088 | Werner et al. | Dec 2003 | B1 |
6687407 | Peters et al. | Feb 2004 | B2 |
7212681 | Chen et al | May 2007 | B1 |
7403561 | Kottke et al. | Jul 2008 | B2 |
7433519 | Rynderman | Oct 2008 | B2 |
7916363 | Rynderman | Mar 2011 | B2 |
20020163966 | Ramaswamy | Nov 2002 | A1 |
20030048848 | Li et al. | Mar 2003 | A1 |
20030115021 | Mates | Jun 2003 | A1 |
20040062448 | Zeng et al. | Apr 2004 | A1 |
20040233986 | Morad et al. | Nov 2004 | A1 |
20060204112 | Yamaguchi et al. | Sep 2006 | A1 |
20090003438 | Kottke et al. | Jan 2009 | A1 |
Number | Date | Country |
---|---|---|
0500077 | Aug 1992 | EP |
WO 9716029 | May 1997 | WO |
WO 9835500 | Aug 1998 | WO |
WO 0111893 | Feb 2001 | WO |
WO2004091221 | Oct 2004 | WO |
Number | Date | Country | |
---|---|---|---|
20110170791 A1 | Jul 2011 | US |
Number | Date | Country | |
---|---|---|---|
60460547 | Apr 2003 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12286991 | Oct 2008 | US |
Child | 13052256 | US | |
Parent | 10817209 | Apr 2004 | US |
Child | 12286991 | US |