1. Technical Field
Embodiments of the present disclosure generally relate to data processing technology, and particularly to a method for processing video data.
2. Description of Related Art
Adding depth information to two-dimensional video creates three-dimensional video. The depth information of a video is a distance between a scene and an imaging plane. The depth information is represented by a gray value (000˜255), therefore, there is a large amount of data in the three-dimensional video. To store or transmit the three-dimensional video, the three-dimensional video data should be compressed first. However, current video compression technology (e.g. MPEG or H.264) is good at compressing the two-dimensional video data, but not suitable for compressing three-dimensional video data. Therefore, there is room for improvement in the art.
The disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In one embodiment, the management unit 10 may include computerized code in the form of one or more programs that are stored in the storage unit 20, and executed by the processor 30 to perform a method for processing the three-dimensional video data. The storage unit 20 may be a dedicated memory, such as an EPROM or a flash memory.
In step S102, acquiring a plurality of frames from the three-dimensional video data and acquiring a first color macroblock (MB) from one of the acquired frames. In the embodiment, the first color MB has 16*16 pixels. A format of the first color MB is Y:Cb:Cr=4:4:4
In step S104, acquiring a first depth MB corresponding to the first color MB from the acquired frame. In the embodiment, the first color MB and the first depth MB both have 16*16 pixels. A format of the first depth MB is Y:Cb:Cr=4:0:0.
In step S106, down-sampling the first depth MB according to a sampling proportion 1/N, to obtain a second depth MB. In the embodiment, the second depth MB has 4*4 pixels, the sampling proportion is 1/16.
In step S108, embedding depth information of the second depth MB to the first color MB, to create a second color MB including the depth information. A detailed description of step S108 is given in
As shown in step S202 of
In step S204, acquiring depth information from the second depth MB.
In step S206, embedding the depth information to each of the brightness MBs. In detail, two pixels of each of the brightness MBs are replaced with two pixels of the second depth MB.
In step S208, embedding the depth information to each of the chroma MBs. In detail, four pixels of each of the chroma MBs are replaced with four pixels of the second depth MB. In the embodiment, the two pixels of each of the brightness MBs and the four pixels of each of the chroma MBs may be replaced with pixels in corresponding position of the second depth MB.
In step S210, creating a second color MB according to the brightness MBs and the chroma MBs embedded with the depth information. In the embodiment, the second color MB includes the four brightness MBs and two chroma MBs in which the depth information has been embedded.
Returning to
In step S112, entropy encoding video data including the compressed second color MB, to obtain video encoding data. The video encoding data is transmitted to a network layer (not shown in
Steps S114-S126 in
In step S116, decompressing (e.g., inverse DCT and inverse quantization) the compressed second color MB, to obtain a third color MB. The third color MB includes four brightness MBs and two chroma MBs.
In step S118, acquiring depth information, brightness information, and chroma information from the third color MB, to create a third depth MB and a fourth color MB. A detailed description of step S118 is given in
As shown in step S302 of
In step S304, acquiring depth information from each of the chroma MBs of the third color MB. It is understood that the depth information has been embedded to four pixels of each of the chroma MBs in step S208.
In step S305, creating a third depth MB according to the acquired depth information from the brightness MBs and the chroma MBs.
In step S306, acquiring brightness information of the third color MB from each of the brightness MBs.
In step S308, acquiring chroma information of the third color MB from each of the chroma MBs.
In step S310, creating a fourth color MB which does not include the depth information according to the acquired brightness information and chroma information.
Returning to step S122 of
In step S124, creating a fifth color MB according to the fourth depth MB and the fourth color MB, and synthesizing the fourth color MB and the fifth color MB to a frame of three-dimensional video data.
In step S126, displaying the three-dimensional video data on a display device (not shown in
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2013 1 0370897 | Aug 2013 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
20080181305 | Cho | Jul 2008 | A1 |
20110032334 | Raveendran et al. | Feb 2011 | A1 |
20110242277 | Do | Oct 2011 | A1 |
20120256951 | Tsukagoshi | Oct 2012 | A1 |
20120274634 | Yamada | Nov 2012 | A1 |
20130162629 | Huang | Jun 2013 | A1 |
20130182755 | Chen | Jul 2013 | A1 |
20140028797 | Hattori et al. | Jan 2014 | A1 |
20140112394 | Sullivan | Apr 2014 | A1 |
Number | Date | Country |
---|---|---|
101610422 | Dec 2009 | CN |
102474661 | May 2012 | CN |
102714744 | Oct 2012 | CN |
2012005947 | Jan 2012 | WO |
2012147621 | Nov 2012 | WO |
Number | Date | Country | |
---|---|---|---|
20150055700 A1 | Feb 2015 | US |