This application claims priority under 35 U.S.C. §119 to Indian Provisional Patent Application No. 5269/CHE/2014 filed on Oct. 22, 2014 in the Indian Patent Office and Korean Patent Application No. 10-2015-0025676 filed on Feb. 24, 2015 in the Korean Intellectual Property Office, the disclosure of which is incorporated by reference herein in its entirety.
1. Technical Field
Exemplary embodiments relate to a semiconductor device, and more particularly, to an application processor including multiple cores for performing real-time in-loop filtering, method thereof and a system including the same.
2. Description of the Related Art
A slice and a tile in a picture can reduce a dependency in entropy encoding or entropy decoding. However, when a plurality of slices or tiles in the picture are processed by a plurality of processors in parallel, a de-blocking operation of the plurality of slices or tiles may be stalled until the processing operation of macro-blocks adjacent to boundaries of the plurality slices or tiles is finished. In addition, the plurality of processors needs to exchange information on the de-blocking operation of the macro-blocks adjacent to boundaries of the plurality slices or tiles.
That is, when a plurality of divided regions in a picture are processed by a plurality of processors in parallel, the de-blocking operation may be stalled or delayed due to the dependencies and distributions of the plurality of divided regions in the picture processed by the plurality of processors.
According to an aspect of an exemplary embodiment, there is provided an application processor including a first core configured to process a first picture including a first processing unit and a second processing unit, and a second core configured to process a second picture including a third processing unit and a fourth processing unit, wherein the first core and the second core are configured to perform processing of the second processing unit and the third processing unit, respectively, in parallel.
The first core may divide the first picture into the first processing unit and the second processing unit based on a processing complexity of the first picture, the second core may divide the second picture into the third processing unit and the fourth processing unit based on a processing complexity of the second picture, and when a number of slices in the second processing unit are different from a number of slices in the third processing unit, the first core completes the processing of the second processing unit in a first time period and the second core completes the processing of the third processing unit in the first time period.
The first core may divide the first picture into the first processing unit and the second processing unit based on a processing complexity of the first picture, the second core may divide the second picture into the third processing unit and the fourth processing unit based on a processing complexity of the second picture, and when a number of tiles in the second processing unit are different from a number of tiles in the third processing unit, the first core completes the processing of the second processing unit in a first time period and the second core completes the processing of the third processing unit in the first time period.
The first core may include an in-loop filter that conforms to a H.264 video coding standard, and the second core processes the third processing unit while the first core processes the second processing unit and performs in-loop filtering of a processed block in the second processing unit using the in-loop filter.
The first core may include an in-loop filter that conforms to a high efficient video coding (HEVC) standard, and the second core processes the third processing unit while the first core processes the second processing unit and performs in-loop filtering of a processed block in the second processing unit using the in-loop filter.
Each of the first processing unit, the second processing unit, the third processing unit, and the fourth processing unit may include at least one slice.
Each of the first processing unit, the second processing unit, the third processing unit, and the fourth processing unit may include at least one tile.
The first core may be embodied in a first hardware codec and the second core may be embodied in a second hardware codec.
The first core and the second core may be embodied in a single hardware codec.
The first core may be a first core of a central processing unit (CPU) and the second core may be a second core of the CPU.
The processing of the third processing unit may be performed after a delay of a processing time from the processing of the first processing unit.
According to an aspect of another exemplary embodiment, there is provided a system-on-chip (SoC) including a receiver interface configured to receive a first picture having a first processing unit and a second processing unit, and a second picture having a third processing unit and a fourth processing unit; a first core configured to process the first picture; and a second core configured to process the second picture, wherein the first core and the second core are configured to perform processing of the second processing unit and the third processing unit, respectively, in parallel.
When a number of slices in the second processing unit are different from a number of slices in the third processing unit, the first core may complete the processing of the second processing unit in a first time period and the second core may complete the processing of the third processing unit in the first time period.
When a number of tiles in the second processing unit are different from a number of tiles in the third processing unit, the first core may complete the processing of the second processing unit in a first time period and the second core may complete the processing of the third processing unit in the first time period.
The first core may include an in-loop filter that conforms to a H.264 video coding standard, and the second core may process the third processing unit while the first core processes the second processing unit and performs in-loop filtering of a processed block in the second processing unit using the in-loop filter.
The first core may include an in-loop filter that conforms to a high efficient video coding (HEVC) standard, and the second core may process the third processing unit while the first core processes the second processing unit and performs in-loop filtering of a processed block in the second processing unit using the in-loop filter.
According to an aspect of another exemplary embodiment, there is provided a data processing system including a receiver interface configured to receive a first picture having a first processing unit and a second processing unit, and a second picture having a third processing unit and a fourth processing unit; a first core configured to process the first picture; and a second core configured to process the second picture, wherein the first core and the second core are configured to perform processing of the second processing unit and the third processing unit, respectively, in parallel.
When a number of slices in the second processing unit are different from a number of slices in the third processing unit, the first core may complete the processing of the second processing unit in a first time period and the second core may complete the processing of the third processing unit in the first time period.
When a number of tiles in the second processing unit are different from a number of tiles in the third processing unit, the first core may complete the processing of the second processing unit in a first time period and the second core may complete the processing of the third processing unit in the first time period.
The first core may include an in-loop filter that conforms to a H.264 video coding standard, and the second core may process the third processing unit while the first core processes the second processing unit and performs in-loop filtering of a processed block in the second processing unit using the in-loop filter.
The first core may include an in-loop filter that conforms to a high efficient video coding (HEVC) standard, and the second core may process the third processing unit while the first core processes the second processing unit and performs in-loop filtering of a processed block in the second processing unit using the in-loop filter.
The receiver interface may be a wireless interface.
The processing of the third processing unit may be performed after a delay of a processing time from the processing of the first processing unit.
According to an aspect of another exemplary embodiment, there is provided a method for processing video data including assigning a first picture of the video data to a first core and a second picture of the video data to a second core; processing a first processing unit of the first picture by the first core; processing a second processing unit of the first picture by the first core; processing a third processing unit of the second picture by the second core in parallel with the processing of the second processing unit by the first core; and performing in-loop filtering of the processed first processing unit and the processed second processing unit based on a processing result of the first processing unit.
Each of the first processing unit, the second processing unit, and the third processing unit may include at least one slice or tile.
The video data may include odd pictures and even pictures, and all the odd pictures of the video data may be assigned to the first core, and all the even pictures of the video data may be assigned to the second core until processing of the video data is completed.
The method may further include assigning a third picture of the video data to a third core; and processing a fourth processing unit of the third picture by the third core in parallel with the processing of the third processing unit of the second picture.
According to an aspect of another exemplary embodiment, there is provided an application processor including a first core; and a second core, wherein the first core processes a first set of blocks of a first picture while the second core performs no processing, and the first core processes a second set of blocks of the first picture while the second core processes a first set of blocks of a second picture.
The first core may process the second set of blocks of the first picture and the second core may process the first set of blocks of a second picture in parallel.
The first core may start processing the second set of blocks of the first picture at the same time that the second core starts processing the first set of blocks of the second picture.
The above and other aspects will become more apparent by describing in detail exemplary embodiments thereof with reference to the accompanying drawings in which:
Various exemplary embodiments will now be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments are shown. The present inventive concept may, however, be embodied in different forms and should not be construed as limited to the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will filly convey the scope of the present inventive concept to those skilled in the art. The same reference numbers may indicate the same components throughout the specification. In the attached figures, the thickness of layers and regions may be exaggerated for clarity.
It will also be understood that when a layer is referred to as being “on” another layer or substrate, it can be directly on the other layer or substrate, or intervening layers may also be present. In contrast, when an element is referred to as being “directly on” another element, there are no intervening elements present.
Spatially relative terms, such as “beneath,” “below,” “lower,” “above,” “upper” and the like, may be used herein for ease of description to describe one element or feature's relationship to another element(s) or feature(s) as illustrated in the figures. It will be understood that the spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements described as “below” or “beneath” other elements or features would then be oriented “above” the other elements or features. Thus, the exemplary term “below” can encompass both an orientation of above and below. The device may be otherwise oriented (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein interpreted accordingly.
The use of the terms “a” and “an” and “the” and similar referents in the context of describing the exemplary embodiments, especially in the context of the following claims, are to be construed to cover both the singular and the plural, unless otherwise indicated herein or clearly contradicted by context. The terms “comprising,” “having,” “including,” and “containing” are to be construed as open-ended terms (i.e., meaning “including, but not limited to,”) unless otherwise noted.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this present inventive concept belongs. It is noted that the use of any and all examples, or exemplary terms provided herein is intended merely to better illuminate the present inventive concept and is not a limitation on the scope of the present inventive concept unless otherwise specified. Further, unless defined otherwise, all terms defined in generally used dictionaries may not be overly interpreted.
The exemplary embodiments will be described with reference to perspective views, cross-sectional views, and/or plan views. Thus, the profile of an exemplary view may be modified according to manufacturing techniques and/or allowances. That is, the exemplary embodiments are not intended to limit the scope of the present inventive concept but cover all changes and modifications that can be caused due to a change in manufacturing process. Thus, regions shown in the drawings are illustrated in schematic form and the shapes of the regions are presented simply by way of illustration and not as a limitation.
Various exemplary embodiments will be described more fully hereinafter with reference to the accompanying drawings.
A picture or a processing unit (i.e., a unit to be processed) in various exemplary embodiments may include one or more divided regions, for example, slices or tiles. According to exemplary embodiments, a picture may be processed by a core. In other words, all divided regions, for example, all slices or all tiles, in a picture may be processed by a single core. Here, process may mean encode, decode, encode including in-loop filtering or decode including in-loop filtering.
In various exemplary embodiments, a picture can be divided into slices. The slice defines a sequence of an integer number of macroblocks (MBs) or Coding Tree Units (CTUs) for AVC or HEVC, respectively. In exemplary embodiments for HEVC, a picture can also be divided into tiles. The tile defines a rectangular region of an integer number of CTUs and may include CTUs contained in more than one slice.
In some exemplary embodiments, the data processing system 100A, 100B, or 100C may be embodied in a full High Definition (FHD) TV or Ultra High Definition (UHD) TV. In addition, the data processing system 100A, 100B, or 100C may be compatible with a video coding standard such as H.264, High Efficiency Video Coding (HEVC), and so on.
In some exemplary embodiments, the data processing system 100A, 100B or 100C may be implemented on a personal computer (PC), a smart phone, a tablet PC, a mobile internet device (MID), a laptop computer, a mobile digital media player (M-DMP), or a portable media player (PMP).
The controller 200A may be implemented as an Integrated Circuit (IC), a system on chip (SoC), a mother board, an Application Processor (AP) or a mobile AP.
The controller 200A may receive and encode input uncompressed YUV/RGB data or decode an encoded bit stream, control operations such as read/write operations of the plurality of memories 301, 303 and 305, and transmit display data or video data to the display 400. In addition, the controller 200A may process image data or video data output from the camera 500, and may store the processed image data or the processed video data in at least one of the plurality of memories 301, 303 and 305 and/or transmit the processed image data or the processed video data to the display 400.
The controller 200A may include a central processing unit (CPU) 210A, a graphic processing unit (GPU) 220, a plurality of hardware codecs 230-1 to 230-N, N being a natural number equal to or greater than 2, a memory interface (I/F) 240, a display interface (I/F) 260 and a receiver interface (I/F) 270. When the data processing system 100A further includes a camera 500, the controller 200A may further include a camera interface (I/F) 250.
The CPU 210A, the GPU 220, the plurality of hardware codecs 230-1 to 230-N, the memory interface 240, the display interface 260, and the receiver interface 270 may transmit or receive data from/to each other through a bus 201. The camera interface 250 may be connected to and transmit/receive data from/to the other components, e.g., 210A and/or 220.
The CPU 210A may include one or more cores. The CPU 210A may control an overall operation of the controller 200A. For example, the CPU 210A may execute program codes or applications for controlling operations of the GPU 220, the plurality of hardware codecs 230-1 to 230-N, the memory interface 240, the camera interface 250, the display interface 260, and/or the receiver interface 270.
The GPU 220 may be process 2D or 3D graphic data. The graphic data processed by the GPU 220 may be stored in at least one of the plurality of memories 301, 303 and 305 or may be displayed by the display 400.
The plurality of hardware codecs 230-1 to 230-N may be substantially the same in view of structure and operation. In some exemplary embodiments, each of the plurality of hardware codecs 230-1 to 230-N may be called a core. Each of the plurality of hardware codecs 230-1 to 230-N may include one of memories MEM1 to MEMN respectively. Each of the memories MEM1 to MEMN may store information of one or more encoded and/or decoded pictures and/or perform in-loop filtering of the one or more encoded and/or decoded pictures.
The memory interface 240 may include a first memory interface 241, a second memory interface 243 and a third memory interface 245. For example, when the first memory 301 of the plurality of memories 301, 303, 305 is a dynamic random access memory (DRAM), the first memory interface 241 may be a DRAM interface. When the second memory 303 is a NAND flash memory, the second memory interface 243 may be a NAND flash interface. When the third memory 305 is an embedded multimedia card (eMMC), the third memory interface may be eMMC interface. For convenience of description, in
The display interface 260 may transmit display data, for example, video data, to the display 400 under a control of CPU 210A, GPU 220, or each of the plurality of hardware codecs 230-1 to 230-N. In some exemplary embodiments, the display interface 260 may be embodied as a display serial interface (DSI) of a mobile industry processor interface MIPI®, an embedded display port (eDP) interface, or a high-definition multimedia interface (HDMI), etc. However, these interfaces are only exemplary, and the display interface 260 is not limited thereto.
The receiver interface 270 may receive uncompressed picture data (RGB/YUV) or/and an encoded bit stream through a wired communication network or a wireless communication network. In some exemplary embodiments, the receiver interface 270 may be embodied as a universal serial bus interface (USB), an Ethernet interface, a Bluetooth interface, a Wi-Fi interface, or a long term evolution (LTE™) interface, etc. However, these interfaces are only exemplary, and the receiver interface 270 is not limited thereto.
The camera interface 250 may receive image data output from the camera 500. In some exemplary embodiments, the camera interface 250 may be a camera serial interface (CSI) of a MIPI®. However, this interface is only exemplary, and the camera interface 250 is not limited thereto. The camera 500 may a camera module including a CMOS image sensor.
Referring to
In the H.264 video coding standard, the block may be a macroblock. In a high efficiency video coding (HEVC) standard, the block may be a coding tree unit (CTU). In some exemplary embodiments, the picture 10 may be a frame to encode, an original picture, a raw bitstream of a picture to encode, a frame to decode, an encoded picture, or an encoded bitstream EB, etc.
An encoder may encode the blocks in a picture and a decoder may decode the blocks in a picture from a block 0 to a block 63 sequentially.
After a first block 0 in the first slice SLICE1 is processed, the encoder or decoder does not perform in-loop filtering of the processed first block 0 edges because there is no block before the processed first block 0. On the other hand, after processing a second block 1 in the first slice SLICE1, the encoder or decoder may perform in-loop filtering of the first block 0 edge and the second block 1 based on a first video data of the processed first block 0 and a second video data of the processed second block 1. That is, the encoder or decoder may perform in-loop filtering on a block boundary. Here, block boundary denotes a boundary between two blocks.
After a 23rd processed block 22 in the second slice SLICE2 is processed, the encoder or the decoder may perform an in-loop filtering of the 23rd processed block 22 edge in the second SLICE2 and prior blocks 14 and 21 in the first slice SLICE1 based on video data of the blocks 14, 21 and 23. That is, the encoder or decoder may perform in-loop filtering on a slice boundary.
After a 41st processed block 40 in the third slice SLICE3 is processed, the encoder or decoder may perform an in-loop filtering of the 41st processed block 40 edge in the third SLICE3 and prior block 32 in the first slice SLICE2 based on video data of the 33rd block 32. That is, the encoder or decoder may perform in-loop filtering on a slice boundary. In other words, in-loop filtering of a current processed block may be performed using at least one of an upper processed block and a left processed block adjacent to the current block.
According to exemplary embodiments, a decoder including an in-loop filter that conforms to a video coding standard of H.264 may perform in-loop filtering for each block. According to exemplary embodiments, a decoder including an in-loop filter that conforms to a video coding standard of HEVC may perform in-loop filtering for each block. For example, a decoder may perform in-loop filtering of a plurality of blocks adjacent to a current decoded block on a block boundary, or perform in-loop filtering of all pixels in the current decoded block according to a video coding standard of sample adaptive offset (SAO).
The in-loop filtering according to the video coding standard of H.264 may be performed based on a motion vector, prediction mode information, and/or a quantization parameter, etc. The in-loop filtering according to the video coding standard of HEVC may be performed based on a motion vector, prediction mode information, a quantization parameter, and/or a plurality of parameters of SAO filter, etc. The prediction mode may include intra-prediction mode information or inter-prediction mode information.
Referring to
Referring to
In some exemplary embodiments, the CPU 210A may control the receiver interface 270 such that an odd picture may be assigned to the first core CORE0 and an even picture may be assigned to the second core CORE1.
In some exemplary embodiments, the CPU 210A may control the first core CORE0 and the second core CORE1 such that odd pictures may be assigned to the first core CORE0 and even pictures may be assigned to the second core CORE1.
Referring to
In the second time period T2, the first core CORE0 may process the second slice 610-2 of the first picture 610 and the second core CORE1 may process the first slice 612-1 of the second picture 612. The processing of the first slice 612-1 and the second slice 610-2 may be performed in parallel in the second time period T2. As used in this specification, “processing . . . performed in parallel” denotes that there is some overlap in the processing. Thus, here, “parallel” denotes that there is some overlap in the processing of the first slice 612-1 and the second slice 610-2. That is, while dotted lines are used in
In addition, in the second time period T2, the first core CORE0 may perform in-loop filtering on a boundary of the first slice 610-1 and the second slice 610-2 of the first picture 610 for each block based on a processing result of the first slice 610-1 in the first picture 610. As described with reference to
In a third time period T3, the first core CORE0 may process the first slice 614-1 of the third picture 614 and the second core CORE1 may process the second slice 612-2 of the second picture 612. The processing of the first slice 614-1 of the third picture 614 and the second slice 612-2 of the second picture 612 may be performed in parallel in the second time period T3.
In addition, in the third time period T3, the second core CORE1 may perform in-loop filtering on a boundary of the first slice 612-1 and the second slice 612-2 for each block based on a processing result of the first slice 612-1 in the second picture 612. That is, the second core CORE1 may perform the processing of the second slice 612-2 and the in-loop filtering of edge of the first slice 612-1 and the second slice 612-2 of the second picture 612 in the third time period T3 so that no additional time is used for the in-loop filtering. The second core CORE1 thus may have a 1 slice delay as shown in
The controller 200A shown in
The first core CORE0 may divide the picture 620 into a first processing unit and a second processing unit based on processing complexity or size of a plurality of divided regions in the picture 620. In
The second core CORE1 may divide the picture 622 into a first processing unit and a second processing unit based on processing complexity of the picture 622. In
For example, when the pictures 620, 622, 624 and 626 are not divided into a plurality of slices or tiles, or when a plurality of divided regions (e.g., slices or tiles) have different processing complexities, it is advantageous to define a plurality of divided regions for parallel processing of the plurality of cores CORE0 and CORE1 based on the processing complexities. Here, the first core CORE0 and the second core CORE1 may divide and process in parallel the plurality of divided regions of the pictures 620, 622, 624 and 626. The processing complexity may be defined by a decoding time and/or encoding time and/or size of slices in terms of blocks of a picture, etc.
When m is a natural number which is equal to or greater than 4 in
The second core CORE1 may divide the picture 626 into a first processing unit and a second processing unit based on processing complexity of the picture 626. In
Although, each picture 620, 622, 624, . . . , or 626 is illustrated to be divided into a first processing unit and a second processing unit for the two cores CORE0 and CORE1, respectively, for the sake of convenient description of
For example, a processing time for processing the three slices SLICE1-3 to SLICE1-5 by the first core CORE0 and a processing time for processing the two slices SLICE2-1 to SLICE2-2 by the second core CORE1 may be substantially same. Here, the meaning of “substantially same” may include “equal, nearly the same, almost the same, or the same with allowable margin of difference”.
As shown in
Turning to
In a second time period T12, the first core CORE0 may process the third slice SLICE1-3 to the fifth slice SLICE1-5 of the first picture 620, and the second core CORE1 may process the first slice SLICE2-1 and the second slice SLICE2-2 of the second picture 622. The processing of the third slice SLICE1-3 to the fifth slice SLICE1-5 and the processing of the first slice SLICE2-1 and the second slice SLICE2-2 may be performed in parallel in the second time period T12.
In the second time period T12, the first core CORE0 may perform in-loop filtering on a boundary of the slices SLICE1-2 and SLICE1-3 for each block based on the processing result of the slice SLICE1-2. In the second time period T12, the first core CORE0 may perform in-loop filtering on a boundary of the slices SLICE1-3 and SLICE1-4 for each block based on the processing result of the slice SLICE1-3 and may perform in-loop filtering on a boundary of the slices SLICE1-4 and SLICE1-5 for each block based on the processing result of the slice SLICE1-4. In addition, in the second time period T12, the second core CORE1 may perform in-loop filtering on a boundary of the slices SLICE2-1 and SLICE2-2 for each block based on the processing result of the slice SLICE2-1.
That is, in the second time period T12, the first core CORE0 may perform in-loop filtering for the three slices SLICE1-3 to SLICE1-5 and the second CORE1 may perform in-loop filtering for the two slices SLICE2-1 and SLICE2-2 so that no additional time is used for in-loop filtering, for example, no additional time for gathering distributed slices over the first core CORE0 and the second core CORE1.
In a third time period T13, the first core CORE0 may process the first slice SLICE3-1 and the second slice SLICE3-2 of the third picture 624. In the third time period T31, the first core CORE0 may perform in-loop filtering on a boundary of the slices SLICE3-1 and SLICE3-2 for each block based on the processing result of the slice SLICE3-1.
In the third time period T13, the first core CORE0 may process the first slice SLICE3-1 and the second slice SLICE3-2 of the third picture 624, and the second core CORE1 may process the third slice SLICE2-3 to the fifth slice SLICE2-5 of the second picture 622. The processing of the third slice SLICE2-3 to the fifth slice SLICE2-5 and the processing of the first slice SLICE3-1 and the second slice SLICE3-2 may be performed in parallel in the third time period T13.
In the third time period T13, the first core CORE0 may perform in-loop filtering on a boundary of the slices SLICE3-1 and SLICE3-2 for each block based on the processing result of the slice SLICE3-1. In addition, in the third time period T13, the second core CORE1 may perform in-loop filtering on a boundary of the slices SLICE2-2 and SLICE2-3 for each block based on the processing result of the slice SLICE2-2. In the third time period T13, the second core CORE1 may perform in-loop filtering on a boundary of the slices SLICE2-3 and SLICE2-4 for each block based on the processing result of the slice SLICE2-3 and may perform in-loop filtering on a boundary of the slices SLICE2-4 and SLICE2-5 for each block based on the processing result of the slice SLICE2-4.
That is, in the third time period T13, the first CORE0 may perform in-loop filtering for the two slices SLICE3-1 and SLICE3-2, and the second core CORE1 may perform in-loop filtering for the three slices SLICE2-3 to SLICE2-5 so that no additional time is used for in-loop filtering, for example, no additional time for gathering distributed slices over the first core CORE0 and the second core CORE1.
The controller 200A shown in
As shown in
Turning to
In a second time period T22, the first core CORE0 may process the second slice SLICE1-2 of the first picture 630, and the second core CORE1 may process the first slice SLICE2-1 of the second picture 632. The processing of the second slice SLICE1-2 and the processing of the first slice SLICE2-1 may be performed in parallel in the second time period T22.
In the second time period T22, the first core CORE0 may perform in-loop filtering on a boundary of the slices SLICE1-1 and SLICE1-2 for each block based on the processing result of the slice SLICE1-1.
For parallel processing, a one (1) slice delay may be assigned to the second core CORE1 and a two (2) slice delay may be assigned to the third core CORE2.
In a third time period T23, the first core CORE0 may process the third slice SLICE1-3 of the first picture 630, the second core CORE1 may process the second slice SLICE2-2 of the second picture 632, and the third core CORE2 may process the first slice SLICE3-1 of the third picture 634.
In the third time period T23, the processing of the third slice SLICE1-3, the processing of the second slice SLICE2-2 and the first slice SLICE1-3 may be performed in parallel in the third time period T23.
In the third time period T23, the first core CORE0 may perform in-loop filtering on a boundary of the slices SLICE1-2 and SLICE1-3 for each block based on the processing result of the slice SLICE1-2, and the second core CORE1 may perform in-loop filtering on a boundary of the slices SLICE2-1 and SLICE2-2 for each block based on the processing result of the slice SLICE2-1.
In a fourth time period T24, the first core CORE0 may process a first slice SLICE4-1 of the fourth picture 636, the second core CORE1 may process the third slice SLICE2-3 of the second picture 632, and the third core CORE2 may process the second slice SLICE3-2 of the third picture 634. That is, once the first core CORE0 finishes processing the slices of the first picture 630, the first core CORE0 proceeds to the next picture in the sequence of pictures, in this case the fourth picture 636.
In the fourth time period T24, the processing of the first slice SLICE4-1, the processing of the third slice SLICE2-3 and the processing of the second slice SLICE3-2 may be performed in parallel.
In the fourth time period T24, the second core CORE1 may perform in-loop filtering on a boundary of the slices SLICE2-2 and SLICE2-3 for each block based on the processing result of the slice SLICE2-2, and the third core CORE2 may perform in-loop filtering on a boundary of the slices SLICE3-1 and SLICE3-2 for each block based on the processing result of the slice SLICE3-1.
In a fifth time period T25, an operation of each core of the cores CORE0, CORE1, and CORE2 may continue to process respective slices in a similar way as in the operation in the first through fourth time periods T21-T24.
The data processing system 100A may encode the third picture 614 to avoid or reduce the dependency among the slices SLICE2-2 and SLICE3-1 in parallel processing by determining a reference picture and a coordinate of a matching block (or a reference block) based on the dependency. For example, when the first slice 614-1 is encoded, a motion vector of a macro block in the first slice 614-1 may be determined to avoid dependency by making the macro block refer to one of the slices 610-1, 610-2 and 612-1 instead of the second slice 612-2 with some restriction of the bottom pixels being processed by the in-loop filtering operation. As a result, the dependency in parallel processing may be reduced.
The data processing system 100A may generate and refer to a motion constraint slice group to reduce dependency between slices processed in parallel when the slices are encoded. The motion constraint slice group may include information to restrict a reference picture or a reference region of a previous picture which is referred to by a current processing slice. The motion constraint slice group may be stored in a memory 301, 303 or 305 in the data processing system 100A, or in a memory in each of the cores 230-1 to 230-N.
An arrow shown in each of a plurality of pictures 640, 642, 644 and 646 illustrate a processing direction or a processing order of a plurality of tiles in the plurality of pictures 640, 642, 644 and 646.
The controller 200A in
Referring to
Operations of the first core CORE0 and the second core CORE1 will be described in reference to
In a first time period T31, the first core CORE0 may process the first tile TILE1-1 of the first picture 640. For parallel processing, a tile delay may be assigned to the second core CORE1.
In a second time period T32, the first core CORE0 may process the second tile TILE1-2 of the first picture 640 and the second core CORE1 may process the first tile TILE2-1 of the second picture 642. The processing of the first tile TILE2-1 and the second tile TILE1-2 may be performed in parallel in the second time period T2. As in the case discussed above, here, “parallel” denotes that there is some overlap in the processing of the first tile TILE2-1 and the second tile TILE1-2. That is, while dotted lines are used in
In addition, in the second time period T32, the first core CORE0 may perform in-loop filtering on a boundary of the tiles TILE1-1 and TILE1-2 for each block based on a processing result of the first tile TILE1-1 in the first picture 640. That is, in the second time period T32, the first CORE0 may perform processing of the second tile TILE1-2 and in-loop filtering of the tiles TILE1-1 and TILE1-2 so that no additional time is used for in-loop filtering.
In a third time period T33, the first core CORE0 may process the first tile TILE3-1 of the third picture 644 and the second core CORE1 may process the second tile TILE2-2 of the second picture 642. The processing of the first tile TILE3-1 and the second slice TILE2-2 may be performed in parallel in the third time period T33.
In addition, in the third time period T33, the second core CORE1 may perform in-loop filtering on a boundary of the tiles TILE2-1 and TILE2-2 for each block based on a processing result of the first tile TILE2-1 in the second picture 642. That is, in the third time period T33, the second CORE1 may perform processing of the second tile TILE2-2 and in-loop filtering of the tiles TILE2-1 and TILE2-2 so that no additional time is used for in-loop filtering.
In a fourth time period T34, each core of the cores CORE0, and CORE1 may continue to process respective tiles in a similar way as in the operation in the third time period T33.
An arrow shown in each of a plurality of pictures 650, 652, 654 and 656 illustrates a processing direction or a processing order of a plurality of tiles in the plurality of pictures 650, 652, 654 and 656.
The controller 200A in
Referring to
In a first time period T31, the first core CORE0 may process the first tile TILE1-1 of the first picture 650. For parallel processing, a tile delay may be assigned to the second core CORE1.
In a second time period T32, the first core CORE0 may process the second tile TILE1-2 of the first picture 650 and the second core CORE1 may process the first tile TILE2-1 of the second picture 652. The processing of the first tile TILE2-1 and the second tile TILE1-2 may be performed in parallel in the second time period T32.
In addition, in the second time period T32, the first core CORE0 may perform in-loop filtering on a boundary of the tiles TILE1-1 and TILE1-2 for each block based on a processing result of the first tile TILE1-1 in the first picture 650. That is, in the second time period T32, the first CORE0 may perform a processing of the second tile TILE1-2 and in-loop filtering of the tiles TILE1-1 and TILE1-2 so that no additional time is used for in-loop filtering.
In a third time period T33, the first core CORE0 may process the first tile TILE3-1 of the third picture 654 and the second core CORE1 may process the second tile TILE2-2 of the second picture 652. The processing of the first tile TILE3-1 and the second slice TILE2-2 may be performed in parallel in the third time period T33.
In addition, in the third time period T33, the second core CORE1 may perform in-loop filtering on a boundary of the tiles TILES2-1 and TILE2-2 for each block based on a processing result of the first tile TILE2-1 in the second picture 652. That is, in the third time period T33, the second CORE1 may perform a processing of the second tile TILE2-2 and in-loop filtering of the tiles TILE2-1 and TILE2-2 so that no additional time is used for in-loop filtering.
In a fourth time period T34, each core of the cores CORE0, and CORE1 may continue to process respective tiles in a similar way as in the operation in the third time period T33.
An arrow shown in each of a plurality of pictures 660, 662, and 664 illustrates a processing direction or a processing order of a plurality of tiles in the plurality of pictures 660, 662, and 664.
The controller 200A in
Referring to
In a first time period T51, the first core CORE0 may process the first tile TILE1-1 and the second tile TILE1-2 of the first picture 660 and perform in-loop filtering on a boundary of the tiles TILE1-1 and TILE1-2 of the first picture 660 for each block based on a processing result of the first tile TILE1-1. For parallel processing, two tile delays may be assigned to the second core CORE1.
In a second time period T52, the first core CORE0 may process the third tile TILE1-3 and fourth tile TILE1-4 of the first picture 660, and the second core CORE1 may process the first tile TILE2-1 and the second tile TILE2-2 of the second picture 662. The processing of the third tile TILE1-3 and fourth tile TILE1-4 and the processing of the first tile TILE2-1 and the second tile TILE2-2 may be performed in parallel in the second time period T52. As in the case discussed above, here, “parallel” denotes that there is some overlap in the processing of the tiles. That is, while dotted lines are used in
In addition, in the second time period T52, the first core CORE0 may perform in-loop filtering on a boundary of the tiles TILE1-1 and TILE1-3 for each block based on a processing result of the first tile TILE1-1 in the first picture 660.
In the second time period T52, the first core CORE0 may perform in-loop filtering on a boundary of the tiles TILE1-2 and TILE1-4 for each block based on a processing result of the first tile TILE1-2 in the first picture 660.
In the second time period T52, the first core CORE0 may perform in-loop filtering on a boundary of the tiles TILE1-3 and TILE1-4 for each block based on a processing result of the first tile TILE1-3 in the first picture 660.
In a second time period T52, the second core CORE1 may perform in-loop filtering on a boundary of the tiles TILE2-1 and TILE2-2 of the second picture 662 for each block based on a processing result of the first tile TILE2-1
That is, the in-loop filtering on the boundaries of the processed tiles are performed in the second time period T52 so that no additional time is used for in-loop filtering.
In a third time period T53, the cores CORE0, and CORE1 may continue to process respective tiles in a similar way as in the operation in the second time period T52.
Referring to
The selection circuit 701 may output image data or video data INV to the encoder 700 in response to a selection signal SEL when the selection signal SEL has a first level, e.g., a low level. The selection circuit 701 may output an encoded bitstream EBS to the decoder 800 in response to a selection signal SEL when the selection signal SEL has a second level, e.g., a high level.
The selection signal SEL may be provided by the CPU 210A. The image data or the video data INV may be provided through the camera interface 250 and the encoded bitstream EBS may be provided through the receiver interface 270 or the memory interface 240.
The encoder 700 may encode the output image data or the output video data INV from the selection circuit 701 and output the encoded image data or the encoded video data to the decoder 800 by an encoded bitstream.
The decoder 800 may decode the encoded bitstream EBS output from the selection circuit 701 or the encoded bitstream output from the encoder 700, and generate a reconstructed image data or a reconstructed video data RV. The reconstructed image data or a reconstructed video data RV may be displayed on the display 40 through the display interface 260.
In some exemplary embodiments, the encoder 700 or decoder 800 may store the reconstructed image data or the reconstructed video data RV in the memory MEM1. The encoder 700 or decoder 800 may perform in-loop filtering of the stored reconstructed image data or the stored reconstructed video data in the memory MEM1.
In some exemplary embodiments, each of the encoder 700 and the decoder 800 may include in-loop filtering that is defined according to H.264 video coding standard or HEVC video coding standard or any other standard supporting in-loop de-blocking filter.
Referring to
The predictor 710 may include a motion estimator 712 and a motion compensator 714. The predictor 710 may predict a current block, generate a predicted block and output the predicted block. In particular, the predictor 710 may predict a pixel value of each of pixels in the current block and generate a predicted block including the predicted pixel value of each of the pixels. When an inter prediction is performed, the predictor 710 may include the motion estimator 712 and the motion compensator 714. The motion estimator 712 may be called a motion vector estimator.
The motion estimator 712 or motion vector estimator 712 may estimate a motion vector of a current block based on at least one reference picture by a block corresponding to a block mode or a predefined block mode of the current block, and determine the motion vector of the current block. A size of the block may be 16×16, 16×8, 8×16, 8×8, 8×4, 4×8 or 4×4.
The motion compensator 714 may generate a predicted block based on the motion estimation vector of the current block output from the motion estimator 712, and output the predicted block. That is, the motion compensator 714 may output a block in the reference picture addressed by the current block as a predicted block.
The subtractor 720 may subtract the predicted block from the current block having video data INV, and generate a residual block. The subtractor 720 may calculate a difference between each of pixels of the current block and each of pixels of the predicted block, and generate the residual block including residual signals.
The transformer 730 may transformer the residual signals from time domain to frequency domain, and the quantizer 740 may quantize an output of the transformer 730 and output the quantized residual block. The transformer 730 may use a discrete cosine transform DCT for transforming the residual signals to frequency domain. The residual signals transformed to frequency domain may be a transform coefficient.
The entropy encoder 750 may encode the quantized residual block output from the quantizer 740 and output an encoded bitstream.
The inverse transformer 770 may perform an inverse transform of inverse quantized residual block, and generate a reconstructed residual block.
The adder 780 may add the predicted block from the predictor 710 and the reconstructed residual block output from the inverse transformer 770, and reconstruct the current block.
The in-loop filter 790 may perform in-loop filtering of the reconstructed current block, and output the filtered current block to the predictor 710.
Referring to
The entropy decoder 810 may decode a received encoded bitstream EBS or an encoded bitstream output from the encoder 700, and generate a quantized residual block.
The inverse quantizer 820 may perform an inverse quantization of the quantized residual block output from the entropy decoder 810, and generate an inverse quantized residual block.
The inverse transform 830 may perform an inverse transform of the inverse quantized residual block, and generate a reconstructed residual block.
The motion compensator 840 may predict a current block based on a motion vector included in the reconstructed block output from the in-loop filter 860, and output the predicted block.
The adder 850 may reconstruct the current block by adding the reconstructed residual block output from the in-loop filter 860 and the predicted block output from the motion compensator 840, and output the reconstructed current block.
The in-loop filter may perform an in-loop filtering of the reconstructed current block, and output the reconstructed current block RV. That is, the in-loop filter may output the reconstructed video data RV by a block.
In some exemplary embodiments, the in-loop filters 790 and 860 may each include a de-blocking filter and a sample adaptive offset (SAO) filter.
Referring to
The controller 200B may be embodied in an integrated circuit (IC), a system-on-chip (SoC), an application processor (AP), and/or a mobile AP, etc.
The controller 200B may include a CPU 210A, a GPU 220, a plurality of hardware codec 230, a memory interface (I/F) 240, a display interface (I/F) 260 and a receiver interface (I/F) 270. When the data processing system 100A further includes a camera 500, the controller 200A may further include a camera interface (I/F) 250.
The controller 200B shown in
Operations of each of the plurality of codecs 231-1 to 231-N may be equal to or similar to the operations of each of the plurality of hardware codecs 230-1 to 230-N in
Each of the plurality of codecs 231-1 to 231-N may include the components 701, 700 and 800 that are described with reference to
Referring to
The controller 200C may be embodied in an integrated circuit (IC), a system-on-chip (SoC), an application processor (AP), and/or a mobile AP, etc.
The controller 200C may include a CPU 210B, a GPU 220, a plurality of hardware codecs 230, a memory interface (I/F) 240, a display interface (I/F) 260 and a receiver interface (I/F) 270. When the data processing system 100C further includes a camera 500, the controller 200C may further include a camera interface (I/F) 250.
The controller 200C shown in
Operations of each of the plurality of cores CORE1 to COREN may be equal to or similar to the operations of each of the plurality of hardware codecs 230-1 to 230-N in
Each of the plurality of cores CORE1 to COREN may execute a software codec. The first core CORE0, the second CORE1 and the third core CORE2 described in
The software codec executed by each of the cores CORE1 to COREN may perform encoding, decoding, encoding including in-loop filtering, or decoding including in-loop filtering with reference to
Referring to
In operation S110, a first slice (or a first tile) in the first picture may be processed by the first core. In operation S120, a first slice (or a first tile) in the second picture may be processed by the second core in parallel while a second slice (or a second tile) of the first picture is processed by the first core. In operation S120, the first core may further perform in-loop filtering of the first slice and the second slice of the first picture based on the processing result of the first slice of the first picture. In operation S130, a first slice (or a first tile) in the third picture may be processed by the third core in parallel while a second slice (or a second tile) of the second picture is processed by the second core. In operation S130, the second core may further perform in-loop filtering of the first slice and the second slice of the second picture based on the processing result of the first slice of the second picture.
As described above, the method of decoding video data described in
Although the present inventive concept has been described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in forms and details may be made thereto without departing from the spirit and scope of the present inventive concept as defined by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
5269/CHE/2014 | Oct 2014 | IN | national |
10-2015-0025676 | Feb 2015 | KR | national |