WO2016004880A1 - Method and apparatus for performing wave-front parallel encoding procedure with constraint on one or both of coding mode and quantization parameter selection - Google Patents

Method and apparatus for performing wave-front parallel encoding procedure with constraint on one or both of coding mode and quantization parameter selection Download PDF

Info

Publication number
WO2016004880A1
WO2016004880A1 PCT/CN2015/083602 CN2015083602W WO2016004880A1 WO 2016004880 A1 WO2016004880 A1 WO 2016004880A1 CN 2015083602 W CN2015083602 W CN 2015083602W WO 2016004880 A1 WO2016004880 A1 WO 2016004880A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
encoding
row
blocks
block row
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/083602
Other languages
French (fr)
Inventor
Tung-Hsing Wu
Han-Liang Chou
Kun-Bin Lee
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MediaTek Inc
Original Assignee
MediaTek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MediaTek Inc filed Critical MediaTek Inc
Priority to CN201580005495.XA priority Critical patent/CN105934950B/en
Publication of WO2016004880A1 publication Critical patent/WO2016004880A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/167Position within a video image, e.g. region of interest [ROI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/436Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation using parallelised computational arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output

Definitions

  • the disclosed embodiments of the present invention relate to video coding, and more particularly, to a method and apparatus for performing a wave-front parallel encoding procedure with constraint on coding mode and/or quantization parameter selection.
  • the conventional video coding standards generally adopt a block based coding technique to exploit spatial and temporal redundancy.
  • the basic approach is to divide the whole source frame into a plurality of blocks, perform prediction on each block, transform residues of each block using discrete cosine transform, and perform quantization and entropy encoding.
  • a reconstructed frame is generated in a coding loop to provide reference pixel data used for coding following blocks.
  • in-loop filter s
  • a de-blocking filter is included in an H. 264 coding loop.
  • the processing order of blocks in the same frame is a raster scan order.
  • blocks in the same block row are sequentially processed from left to right, and block rows in the same frame are sequentially processed from top to bottom.
  • dependency between a current encoding block and neighboring encoded blocks For example, motion vector, coding mode, quantization parameter and/or state/probability of entropy coding of the current encoding block may be determined on the basis of information given from the neighboring encoded blocks.
  • the dependency between each current encoding block and its neighboring encoded blocks should be considered.
  • the wave-front parallel encoding may be employed, thus allowing multiple processing cores to allocate multiple blocks concurrently.
  • entropy encoding function is not considered for wave-front parallel encoding.
  • no parallel processing for H. 264 entropy encoding is implemented.
  • more processing cores do not mean higher encoding speed for entropy encoding.
  • a method and apparatus for performing a wave-front parallel encoding procedure with constraint on coding mode and/or quantization parameter selection are proposed to solve the above-mentioned problem.
  • an exemplary encoding method includes: performing a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels; and imposing constraint on a coding mode selection of a first block of a first block row, wherein a coding mode of the first block of the first block row is selected from at least one first candidate coding mode.
  • an exemplary encoding method includes: performing a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels; and determining the quantization parameter of a first block of a first block row before encoding a second block of a second block row.
  • an exemplary encoder includes an encoding circuit and a control circuit.
  • the encoding circuit is arranged to perform a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels.
  • the control circuit is arranged to impose constraint on a coding mode selection of a first block of a first block row, wherein a coding mode of the first block of the first block row is selected from at least one first candidate coding mode.
  • an exemplary encoder includes an encoding circuit and a control circuit.
  • the encoding circuit is arranged to perform a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels.
  • the control circuit is arranged to determine the quantization parameter of a first block of a first block row before encoding a second block of a second block row.
  • FIG. 1 is a block diagram illustrating a video encoder according to an embodiment of the present invention.
  • FIG. 2 is a diagram illustrating a wave-front parallel encoding procedure according to an embodiment of the present invention.
  • FIG. 3 is a diagram illustrating different configurations of a frame partition according to an embodiment of the present invention.
  • FIG. 4 is a block diagram illustrating another video encoder according to an embodiment of the present invention.
  • FIG. 5 is a diagram illustrating another wave-front parallel encoding procedure according to an embodiment of the present invention.
  • FIG. 6 is a diagram illustrating yet another wave-front parallel encoding procedure according to an embodiment of the present invention.
  • the main concept of the present invention is to enable a wave-front parallel encoding mechanism for an entropy encoding function involved in encoding of a frame partition.
  • the proposed wave-front parallel procedure having the entropy encoding function included therein may be employed by an H. 264 encoder, thus allowing the entropy encoding of blocks in different block rows to be performed in a parallel manner.
  • other coding tools may also be included in the proposed wave-front parallel procedure. Hence, each coding tool can benefit from the wave-front parallel encoding mechanism.
  • the proposed wave-front parallel encoding procedure can be employed to boost the encoding speed of the entropy encoding. Further details of the proposed wave-front parallel encoding mechanism suitable for different coding tools, including an entropy encoding function, are described as below.
  • FIG. 1 is a block diagram illustrating a video encoder according to an embodiment of the present invention.
  • the video encoder 100 may include an encoding circuit 102 and a control circuit 104. It should be noted that only the components pertinent to the present invention are shown in FIG. 1. In practice, the video encoder 100 is allowed to include additional component (s) to achieve other function (s) .
  • the encoding circuit 102 is arranged to perform a wave-front parallel encoding procedure for encoding pixel data of a frame partition F P .
  • FIG. 2 is a diagram illustrating a wave-front parallel encoding procedure according to an embodiment of the present invention.
  • the frame partition F P includes a plurality of block rows BK ROW 1-BK ROW 5, each of the block rows BK ROW 1-BK ROW 5 includes a plurality of blocks 201, and each of the blocks 201 includes a plurality of pixels.
  • Each of the slant-line shaded blocks represents an encoded block
  • each of the dot shaded blocks represents a current encoding block
  • each of the blank blocks represents a block that is not encoded yet. Since the wave-front parallel encoding procedure is employed, there is more than one current encoding block within the same frame partition F P . There is dependency between one current encoding block and its neighboring encoded blocks.
  • any current encoding block may need the encoded information of a left neighboring encoded block (e.g., BK L ) , a top-left neighboring encoded block (e.g., BK TL ) , a top neighboring encoded block (e.g., BK T ) , and a top-right neighboring encoded block (e.g., BK TR ) .
  • a left neighboring encoded block e.g., BK L
  • a top-left neighboring encoded block e.g., BK TL
  • a top neighboring encoded block e.g., BK T
  • a top-right neighboring encoded block e.g., BK TR
  • the horizontal distance D 12 between two current encoding blocks of neighboring block rows BK ROW 1 and BK ROW 2 is equal to two; the horizontal distance D 23 between two current encoding blocks of neighboring block rows BK ROW 2 and BK ROW 3 is equal to two; the horizontal distance D 34 between two current encoding blocks of neighboring block rows BK ROW 3 and BK ROW 4 is equal to two; and the horizontal distance D 45 between two current encoding blocks of neighboring block rows BK ROW 4 and BK ROW 5 is equal to two.
  • the wave-front parallel encoding procedure can be performed through using multiple processing cores to boost the encoding speed of the frame partition F P .
  • multiple processing cores are used for dealing with encoding of multiple current encoding blocks concurrently.
  • the frame partition F P to be processed/encoded by the encoding circuit 102 employing the proposed wave-front parallel encoding procedure with constraint on the coding mode selection may be a frame 301 as illustrated in sub-diagram (A) of FIG. 3, one slice in the frame 301 as illustrated in sub-diagram (B) of FIG. 3, or one tile in the frame 301 as illustrated in sub-diagram (C) of FIG. 3. It should be noted that the numbers of slices and tiles and the sizes of the slices and tiles shown in FIG. 3 are for illustrative purposes only, and are not meant to be limitations of the present invention.
  • the proposed wave-front parallel encoding procedure is configured to have constraint on the coding mode selection of certain blocks in the frame partition F P to thereby enable parallel processing of the entropy encoding function applied to blocks in different block rows.
  • the video encoder 100 has the control circuit 104 designed to impose constraint on a coding mode selection of a specific block of each block row, wherein a coding mode of the specific block of the block row is selected from at least one first candidate coding mode.
  • the at least one first candidate coding mode includes the coding modes which enable prediction of entropy encoding status of the starting block in the next block row.
  • the aforementioned at least one first candidate coding mode may include at least one of an inter mode with residue, an intra mode with residue, and an intra 16x16 mode.
  • the coding mode of the specific block of the block row may be inter mode with residue, intra mode with residue, or intra 16x16 mode.
  • the candidate coding modes available for the specific block of the block row is limited so that the entropy encoding status of the starting block in the next block row can be predictable.
  • the block row ends with the specific block. That is, the specific block is the last block of the block row. Since the candidate coding modes available for the last block of the block row is properly constrained, the dependency status of entropy encoding can be predicted between the last block of one block row and a starting block of the next block row, and thus the entropy encoding can be included in the wave-front parallel encoding procedure.
  • the coding mode selection of the last block BK 1 ’ of the block row BK ROW 1 is limited to one of inter mode with residue, intra mode with residue, and intra 16x16 mode;
  • the coding mode selection of the last block BK 2 ’ of the block row BK ROW 2 is limited to one of inter mode with residue, intra mode with residue, and intra 16x16 mode;
  • the coding mode selection of the last block BK 3 ’ of the block row BK ROW 3 is limited to one of inter mode with residue, intra mode with residue, and intra 16x16 mode;
  • the coding mode selection of the last block BK 4 ’ of the block row BK ROW 4 is limited to one of inter mode with residue, intra mode with residue, and intra 16x16 mode.
  • the control circuit 104 may include a rate controller 106 used to determine a quantization parameter used by a quantization function applied to each block of the frame partition F P , where the quantization function may be one of the coding tools included in the wave-front parallel encoding procedure.
  • the rate controller 106 is arranged to statically determine a quantization parameter for each block included in the frame partition F P before the encoding circuit 102 starts encoding the frame partition F P . For example, according to a target bit budget allocated to the frame partition F P , the rate controller 106 assigns the same quantization parameter to each of the blocks 201 included in the frame partition F P .
  • the rate controller 106 is arranged to dynamically determine a quantization parameter for each block included in the frame partition F P during the encoding of the frame partition F P .
  • the rate controller 106 may assign different quantization parameters to blocks 201 included in the frame partition F P .
  • the quantization parameter regulates how much the image detail is saved.
  • the quantization parameter is very small, almost all of the image detail is retained.
  • the quantization parameter is increased, some of the image detail is aggregated so that the bit rate drops at the price of some increase in distortion and some loss of the quality.
  • using an adaptive rate control mechanism can lead to improved coding quality.
  • a differential coding scheme may be employed to encode quantization parameters of the blocks 201. Since a difference between quantization parameters of two successive blocks 201 in the raster scan order is encoded by the entropy encoding, the quantization parameters of certain blocks should be properly controlled to ensure that the dependency status of entropy encoding can be predicted between blocks in different block rows (e.g., the last block of one block row and the starting block of the next block row) and thus the entropy encoding can be included in the wave-front parallel encoding procedure.
  • the rate controller 106 is further arranged to determine a quantization parameter of a first block before encoding of a second block is started, where encoding of the first block is later than encoding of the second block.
  • the first block is located in a first block row
  • the second is located in a second block row different from the first block row.
  • the second block row may be a neighboring block row of the first block row, where the first block row ends with the first block, and the second block row begins with the second block.
  • the block row BK ROW 2 begins with the block BK 21
  • the block row BK ROW 3 begins with the block BK 31
  • the block row BK ROW 4 begins with the block BK 41
  • the block row BK ROW 5 begins with the block BK 51 .
  • the entropy encoding may encode a difference between quantization parameters of the blocks BK 1 ’ and BK 21 located in adjacent block rows BK ROW 1 and BK ROW 2.
  • the encoding of the block BK 1 ’ (which is the last block in the block row BK ROW 1) is later than the encoding of the block BK 21 (which is the starting block in the block row BK ROW 2 following the block row BK ROW 1) .
  • the control circuit 104 needs to determine the quantization parameter of the block BK 1 ’ to ensure that entropy encoding of the difference between quantization parameters of blocks BK 21 and BK 1 ’ can be successfully done during encoding of the block BK 21 that is started earlier than encoding of the block BK 1 ’ .
  • the encoding of the block BK 2 ’ (which is the last block in the blow row BK ROW 2) is later than the encoding of the block BK 31 (which is the starting block in the block row BK ROW 3 following the block row BK ROW 2)
  • the encoding of the block BK 3 ’ (which is the last block in the block row BK ROW 3) is later than the encoding of the block BK 41 (which is the starting block in the block row BK ROW 4 following the block row BK ROW 3)
  • the encoding of the block BK 4 ’ (which is the last block in the block row BK ROW 4) is later than the encoding of the block BK 51 (which is the starting block in the block row BK ROW 5 following the block row BK ROW 4) .
  • the control circuit 104 Before the encoding circuit 102 starts encoding the block BK 31 , the control circuit 104 needs to determine the quantization parameter of the block BK 2 ’ to ensure that entropy encoding of the difference between quantization parameters of the blocks BK 31 and BK 2 ’ can be successfully done during encoding of the block BK 31 that is started earlier than encoding of the block BK 2 ’ .
  • the control circuit 104 Before the encoding circuit 102 starts encoding the block BK 41 , the control circuit 104 needs to determine the quantization parameter of the block BK 3 ’ to ensure that entropy encoding of the difference between quantization parameters of the blocks BK 41 and BK 3 ’ can be successfully done during encoding of the block BK 41 that is started earlier than encoding of the block BK 3 ’ .
  • the control circuit 104 Before the encoding circuit 102 starts encoding the block BK 51 , the control circuit 104 needs to determine the quantization parameter of the block BK 4 ’ to ensure that entropy encoding of the difference between quantization parameters of the blocks BK 51 and BK 4 ’ can be successfully done during encoding of the block BK 51 that is started earlier than encoding of the block BK 4 ’ .
  • the context-based adaptive variable-length code (CAVLC) entropy encoding has less complexity and data dependency.
  • the CAVLC entropy encoding is more suitable for the proposed wave-front parallel encoding procedure with constraint on the coding mode selection.
  • the encoding circuit 102 is configured to perform the wave-front parallel encoding procedure that includes the CAVLC entropy encoding.
  • each of the block rows BK ROW 1-BK ROW 5 is composed of displayable blocks inside a display boundary only.
  • at least one pixel of each block in a block row is inside the display boundary.
  • the frame partition F P is fully received from a video source (e.g., a camera, a network, or a storage medium) , such that all of the blocks within the frame partition F P are input blocks that will be displayed on a display apparatus after bitstream generated from the video encoder 100 is decoded at a video decoder (not shown) .
  • a video source e.g., a camera, a network, or a storage medium
  • the coding modes of the last blocksBK 1 ’ -BK 4 ’ are limited by the control circuit 104.
  • a coding mode selected for the last block of one block row may not have an optimal coding mode setting.
  • the quantization parameters of the last blocks BK 1 ’ -BK 4 ’ are determined by the control circuit 104 before encoding of the last blocksBK 1 ’ -BK 4 ’ are actually started.
  • the quantization parameter assigned to the last block of one block row may not have an optimal quantization parameter setting.
  • image quality degradation may occur at or around the last blocks when the last blocks are displayed.
  • the proposed wave-front parallel encoding procedure may be applied to a frame partition configured to have extra block (s) /dummy block (s) included in each block row, or to a frame partition configured to have a smaller display boundary.
  • the image quality of blocks displayed on the display apparatus can be ensured by using the proposed wave-front parallel encoding procedure to encode extra block (s) /dummy blocks concatenated to input blocks of each block row that are received from the video source, or by shrinking the display boundary of input blocks of each block row received from the video source.
  • FIG. 4 is a block diagram illustrating another video encoder according to an embodiment of the present invention.
  • the major difference between the video encoders 400 and 100 is the frame partition format or the display boundary setting.
  • the encoding circuit 402 is arranged to perform the proposed wave-front parallel encoding procedure upon a frame partition F P ’ derived from adding extra blocks to a frame partition received from the video source or having a shrunk display boundary.
  • a first part of the frame partition F P ’ is composed of input blocks received from the video source
  • a second part of the frame partition F P ’ is composed of extra blocks/dummy blocks inserted at the encoding circuit 402.
  • the frame partition F P ’ is controlled to have a shrunk display boundary such that a first part of the frame partition F P ’ is composed of input blocks received from the video source and categorized as blocks located inside the shrunk display boundary, and a second part of the frame partition F P ’ is composed of input blocks received from the video source and categorized as blocks located outside the shrunk display boundary.
  • FIG. 5 is a diagram illustrating another wave-front parallel encoding procedure according to an embodiment of the present invention.
  • the frame partition F P ’ includes a plurality of block rows BK ROW 1-BK ROW 5, each of the block rows BK ROW 1-BK ROW 5includes a plurality of blocks 501, and each of the blocks 501 includes a plurality of pixels.
  • each of the block rows BK ROW 1-BK ROW 5 at least one extra block is included therein.
  • each of the extra blocks may be set by a pre-defined block composed of pixels each having a predetermined pixel value.
  • each of the extra blocks may be a padding block that is a duplicate of the last input block in the same block row.
  • the input blocks received from the video source and the extra blocks inserted at the encoding circuit 402 are blocks (denoted as “encoded blocks” ) that will be actually encoded by the encoding circuit 402. It should be noted that, as illustrated in FIG. 5, the block row boundary of the encoded blocks is not aligned with the display boundary (e.g., the block row boundary of input blocks received from the video source) .
  • the last blocks BK 1 ’ -BK 4 ’ of the block rows BK ROW 1-BK ROW 4 are extra blocks that will not be displayed on a display apparatus after the bitstream generated from the video encoder 400 is decoded at a video decoder (not shown) .
  • the entropy encoding can be included in the wave-front parallel encoding procedure without image quality degradation of the last displayable blocks in the block rows BK ROW 1-BK ROW 5.
  • the coding modes of the last blocksBK 1 ’ -BK 4 ’ are limited by the control circuit 104, where each of the last blocksBK 1 ’ -BK 4 ’ is a non-displayable block outside the display boundary. Even though a coding mode selected for the last block of one block row may not have an optimal coding mode setting, the image quality of the last displayable block in the same block row is not affected by the proposed wave-front parallel encoding procedure.
  • the quantization parameters of the last blocks BK 1 ’ -BK 4 ’ are determined by the control circuit 104 before encoding of the last blocksBK 1 ’ -BK 4 ’ are actually started, where each of the last blocksBK 1 ’ -BK 4 ’ is a non-displayable block outside the display boundary. Even though a quantization parameter determined for the last block of one block row may not have an optimal quantization parameter, the image quality of the last displayable block in the same block row is not affected by the proposed wave-front parallel encoding procedure.
  • FIG. 6 is a diagram illustrating yet another wave-front parallel encoding procedure according to an embodiment of the present invention.
  • the frame partition F P ’ includes a plurality of block rows BK ROW 1-BK ROW 5, each of the block rows BK ROW 1-BK ROW 5includes a plurality of blocks 601, and each of the blocks 601 includes a plurality of pixels.
  • an original display boundary may be aligned with the block row boundary of blocks (denoted as “encoded blocks” ) that will be encoded by the encoding circuit 402.
  • the display boundary shown in FIG. 6 is controlled to shift leftwards, thus resulting in a shrunk display boundary that is not aligned with the block row boundary of encoded blocks.
  • the encoded blocks may include input blocks received from the video source.
  • the encoded blocks may include input blocks received from the video source and extra blocks inserted at the encoding circuit 402.
  • each of the block rows BK ROW 1-BK ROW 5 is treated as a non-displayable block outside the shrunk display boundary.
  • each of the block rows BK ROW 1-BK ROW 5 shown in FIG. 6 is composed of displayable blocks (i.e., encoded blocks fully or partially located inside the shrunk display boundary) and at least one non-displayable block (e.g., encoded block (s) fully located outside the shrunk display boundary) .
  • the last blocks BK 1 ’ -BK 4 ’ of the block rows BK ROW 1-BK ROW 4 are encoded blocks that will not be displayed on a display apparatus after the bitstream generated from the video encoder 400 is decoded at a video decoder (not shown) .
  • the entropy encoding can be included in the wave-front parallel encoding procedure without image quality degradation of the last displayable blocks in the block rows BK ROW 1-BK ROW 5.
  • the coding modes of the last blocksBK 1 ’ -BK 4 ’ are limited by the control circuit 104, where each of the last blocksBK 1 ’ -BK 4 ’ is a non-displayable block outside the shrunk display boundary. Even though a coding mode selected for the last block of one block row may not have an optimal coding mode setting, the image quality of the last displayable block (which may be fully or partially inside the shrunk display boundary, depending upon the actual setting of the shrunk display boundary) in the same block row is not affected by the proposed wave-front parallel encoding procedure.
  • the quantization parameters of the last blocks BK 1 ’ -BK 4 ’ are determined by the control circuit 104 before encoding of the last blocksBK 1 ’ -BK 4 ’ are actually started, where each of the last blocksBK 1 ’ -BK 4 ’ is a non-displayable block outside the shrunk display boundary. Even though a quantization parameter determined for the last block of one block row may not have an optimal quantization parameter, the image quality of the last displayable block (which may be fully or partially inside the shrunk display boundary, depending upon the actual setting of the shrunk display boundary) in the same block row is not affected by the proposed wave-front parallel encoding procedure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

An encoding method includes following steps: performing a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels; and imposing constraint on a coding mode selection of a first block of a first block row.

Description

METHOD AND APPARATUS FOR PERFORMING WAVE-FRONT PARALLEL ENCODING PROCEDURE WITH CONSTRAINT ON ONE OR BOTH OF CODING MODE AND QUANTIZATION PARAMETER SELECTION
CROSS REFERENCE TO RELATED APPLICATIONS
This application claims the benefit of U.S. provisional application No. 62/021,786, filed on 07/08/2014, U.S. application No. 14/792,634, filed on 07/07/2015 and incorporated herein by reference.
TECHNICAL FIELD
The disclosed embodiments of the present invention relate to video coding, and more particularly, to a method and apparatus for performing a wave-front parallel encoding procedure with constraint on coding mode and/or quantization parameter selection.
BACKGROUND
The conventional video coding standards generally adopt a block based coding technique to exploit spatial and temporal redundancy. For example, the basic approach is to divide the whole source frame into a plurality of blocks, perform prediction on each block, transform residues of each block using discrete cosine transform, and perform quantization and entropy encoding. Besides, a reconstructed frame is generated in a coding loop to provide reference pixel data used for coding following blocks. For certain video coding standards, in-loop filter (s) may be used for enhancing the image quality of the reconstructed frame. For example, a de-blocking filter is included in an H. 264 coding loop.
Concerning the traditional video encoding, the processing order of blocks in the same frame is a raster scan order. Hence, blocks in the same block row are  sequentially processed from left to right, and block rows in the same frame are sequentially processed from top to bottom. However, there is dependency between a current encoding block and neighboring encoded blocks. For example, motion vector, coding mode, quantization parameter and/or state/probability of entropy coding of the current encoding block may be determined on the basis of information given from the neighboring encoded blocks. To achieve parallel encoding within one frame, the dependency between each current encoding block and its neighboring encoded blocks should be considered. The wave-front parallel encoding may be employed, thus allowing multiple processing cores to encore multiple blocks concurrently. In H. 264, entropy encoding function, however, is not considered for wave-front parallel encoding. Hence, in accordance with the conventional H. 264 encoder design, no parallel processing for H. 264 entropy encoding is implemented. As a result, more processing cores do not mean higher encoding speed for entropy encoding.
SUMMARY
In accordance with exemplary embodiments of the present invention, a method and apparatus for performing a wave-front parallel encoding procedure with constraint on coding mode and/or quantization parameter selection are proposed to solve the above-mentioned problem.
According to a first aspect of the present invention, an exemplary encoding method is disclosed. The exemplary encoding method includes: performing a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels; and imposing constraint on a coding mode selection of a first block of a first block row, wherein a coding mode of the first block of the first block row is selected from at least one first candidate coding mode.
According to a second aspect of the present invention, an exemplary encoding method is disclosed. The exemplary encoding method includes: performing a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels;  and determining the quantization parameter of a first block of a first block row before encoding a second block of a second block row.
According to a third aspect of the present invention, an exemplary encoder is disclosed. The exemplary encoder includes an encoding circuit and a control circuit. The encoding circuit is arranged to perform a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels. The control circuit is arranged to impose constraint on a coding mode selection of a first block of a first block row, wherein a coding mode of the first block of the first block row is selected from at least one first candidate coding mode.
According to a fourth aspect of the present invention, an exemplary encoder is disclosed. The exemplary encoder includes an encoding circuit and a control circuit. The encoding circuit is arranged to perform a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels. The control circuit is arranged to determine the quantization parameter of a first block of a first block row before encoding a second block of a second block row.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
BRIEF DESCRIPTION OF DRAWINGS
FIG. 1 is a block diagram illustrating a video encoder according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating a wave-front parallel encoding procedure according to an embodiment of the present invention.
FIG. 3 is a diagram illustrating different configurations of a frame partition according to an embodiment of the present invention.
FIG. 4 is a block diagram illustrating another video encoder according to an  embodiment of the present invention.
FIG. 5 is a diagram illustrating another wave-front parallel encoding procedure according to an embodiment of the present invention.
FIG. 6 is a diagram illustrating yet another wave-front parallel encoding procedure according to an embodiment of the present invention.
DETAILED DESCRIPTION
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms "include" and "comprise" are used in an open-ended fashion, and thus should be interpreted to mean "include, but not limited to ... " . Also, the term "couple" is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
The main concept of the present invention is to enable a wave-front parallel encoding mechanism for an entropy encoding function involved in encoding of a frame partition. For example, the proposed wave-front parallel procedure having the entropy encoding function included therein may be employed by an H. 264 encoder, thus allowing the entropy encoding of blocks in different block rows to be performed in a parallel manner. In addition to the entropy encoding function, other coding tools may also be included in the proposed wave-front parallel procedure. Hence, each coding tool can benefit from the wave-front parallel encoding mechanism. When entropy encoding with rate control is performed using the wave-front parallel encoding mechanism, acceleration of encoding speed of the entropy encoding can be achieved through using more processing cores. Specifically, no matter whether the rate control is performed at the block level or the frame partition level, the proposed wave-front parallel encoding procedure can be employed to boost the encoding speed of the entropy encoding. Further details of the proposed wave-front parallel encoding mechanism suitable for different coding tools, including an entropy encoding function,  are described as below.
FIG. 1 is a block diagram illustrating a video encoder according to an embodiment of the present invention. The video encoder 100 may include an encoding circuit 102 and a control circuit 104. It should be noted that only the components pertinent to the present invention are shown in FIG. 1. In practice, the video encoder 100 is allowed to include additional component (s) to achieve other function (s) . The encoding circuit 102 is arranged to perform a wave-front parallel encoding procedure for encoding pixel data of a frame partition FP. FIG. 2 is a diagram illustrating a wave-front parallel encoding procedure according to an embodiment of the present invention. In this example, the frame partition FP includes a plurality of block rows BKROW1-BKROW5, each of the block rows BKROW1-BKROW5 includes a plurality of blocks 201, and each of the blocks 201 includes a plurality of pixels. Each of the slant-line shaded blocks represents an encoded block, each of the dot shaded blocks represents a current encoding block, and each of the blank blocks represents a block that is not encoded yet. Since the wave-front parallel encoding procedure is employed, there is more than one current encoding block within the same frame partition FP. There is dependency between one current encoding block and its neighboring encoded blocks. For example, encoding of any current encoding block (e.g., BKCUR) may need the encoded information of a left neighboring encoded block (e.g., BKL) , a top-left neighboring encoded block (e.g., BKTL) , a top neighboring encoded block (e.g., BKT) , and a top-right neighboring encoded block (e.g., BKTR) . Hence, the horizontal distance between two current encoding blocks of neighboring block rows should be controlled to be larger than one to ensure that the parallel encoding of the two current encoding blocks can operate successfully. In this example, the horizontal distance D12 between two current encoding blocks of neighboring block rows BK ROW1 and BKROW2 is equal to two; the horizontal distance D23 between two current encoding blocks of neighboring block rows BKROW2 and BKROW3 is equal to two; the horizontal distance D34 between two current encoding blocks of neighboring block rows BKROW3 and BKROW4 is equal to two; and the horizontal distance D45 between two current encoding blocks of neighboring block rows BKROW4 and BKROW5 is equal to two. In this way, the wave-front parallel encoding procedure can be performed through using multiple processing cores to boost the encoding speed of the frame partition FP. For example, multiple processing cores are used for dealing with encoding of multiple current encoding blocks concurrently.
The frame partition FP to be processed/encoded by the encoding circuit 102 employing the proposed wave-front parallel encoding procedure with constraint on the coding mode selection may be a frame 301 as illustrated in sub-diagram (A) of FIG. 3, one slice in the frame 301 as illustrated in sub-diagram (B) of FIG. 3, or one tile in the frame 301 as illustrated in sub-diagram (C) of FIG. 3. It should be noted that the numbers of slices and tiles and the sizes of the slices and tiles shown in FIG. 3 are for illustrative purposes only, and are not meant to be limitations of the present invention.
In contrast to a conventional wave-front parallel encoding procedure without any constraint on a coding mode selection of each block, the proposed wave-front parallel encoding procedure is configured to have constraint on the coding mode selection of certain blocks in the frame partition FP to thereby enable parallel processing of the entropy encoding function applied to blocks in different block rows. In this embodiment, the video encoder 100 has the control circuit 104 designed to impose constraint on a coding mode selection of a specific block of each block row, wherein a coding mode of the specific block of the block row is selected from at least one first candidate coding mode. With regard to an H. 264 coding scenario, the at least one first candidate coding mode includes the coding modes which enable prediction of entropy encoding status of the starting block in the next block row. For example, the aforementioned at least one first candidate coding mode may include at least one of an inter mode with residue, an intra mode with residue, and an intra 16x16 mode. In other words, the coding mode of the specific block of the block row may be inter mode with residue, intra mode with residue, or intra 16x16 mode.
The candidate coding modes available for the specific block of the block row is limited so that the entropy encoding status of the starting block in the next block row can be predictable. For example, the block row ends with the specific block. That is, the specific block is the last block of the block row. Since the candidate coding modes available for the last block of the block row is properly constrained, the dependency status of entropy encoding can be predicted between the last block of one block row and a starting block of the next block row, and thus the entropy encoding can be included in the wave-front parallel encoding procedure. In this example, the coding mode selection of the last block BK1’ of the block row BK ROW1 is limited to one of inter mode with residue, intra mode with residue, and intra 16x16 mode; the coding mode selection of the last block BK2’ of the block row BKROW2 is limited to one of  inter mode with residue, intra mode with residue, and intra 16x16 mode; the coding mode selection of the last block BK3’ of the block row BKROW3 is limited to one of inter mode with residue, intra mode with residue, and intra 16x16 mode; and the coding mode selection of the last block BK4’ of the block row BKROW4 is limited to one of inter mode with residue, intra mode with residue, and intra 16x16 mode.
The control circuit 104 may include a rate controller 106 used to determine a quantization parameter used by a quantization function applied to each block of the frame partition FP, where the quantization function may be one of the coding tools included in the wave-front parallel encoding procedure. In a case where the rate control is performed at the frame partition level, the rate controller 106 is arranged to statically determine a quantization parameter for each block included in the frame partition FP before the encoding circuit 102 starts encoding the frame partition FP. For example, according to a target bit budget allocated to the frame partition FP, the rate controller 106 assigns the same quantization parameter to each of the blocks 201 included in the frame partition FP.
In another case where the rate control is performed at the block level, which means different blocks in a frame partition may have different quantization parameters. For example, the rate controller 106 is arranged to dynamically determine a quantization parameter for each block included in the frame partition FP during the encoding of the frame partition FP. According to a target bit budget allocated to the frame partition FP, the rate controller 106 may assign different quantization parameters to blocks 201 included in the frame partition FP. In particular, the quantization parameter (QP) regulates how much the image detail is saved. When the quantization parameter is very small, almost all of the image detail is retained. As the quantization parameter is increased, some of the image detail is aggregated so that the bit rate drops at the price of some increase in distortion and some loss of the quality. Hence, using an adaptive rate control mechanism can lead to improved coding quality.
For example, a differential coding scheme may be employed to encode quantization parameters of the blocks 201. Since a difference between quantization parameters of two successive blocks 201 in the raster scan order is encoded by the entropy encoding, the quantization parameters of certain blocks should be properly controlled to ensure that the dependency status of entropy encoding can be predicted between blocks in different block rows (e.g., the last block of one block row and the starting block of the next block row) and thus the entropy encoding can be included in  the wave-front parallel encoding procedure. In this embodiment, the rate controller 106 is further arranged to determine a quantization parameter of a first block before encoding of a second block is started, where encoding of the first block is later than encoding of the second block. For example, the first block is located in a first block row, and the second is located in a second block row different from the first block row. The second block row may be a neighboring block row of the first block row, where the first block row ends with the first block, and the second block row begins with the second block.
Please refer to FIG. 2 again. The block row BKROW2 begins with the block BK21, the block row BKROW3 begins with the block BK31, the block row BKROW4 begins with the block BK41, and the block row BKROW5 begins with the block BK51. The entropy encoding may encode a difference between quantization parameters of the blocks BK1’ and BK21 located in adjacent block rows BK ROW1 and BKROW2. However, according to the wave-front parallel encoding procedure, the encoding of the block BK1’ (which is the last block in the block row BKROW1) is later than the encoding of the block BK21 (which is the starting block in the block row BKROW2 following the block row BKROW1) . Hence, before the encoding circuit 102 starts encoding the block BK21, the control circuit 104 needs to determine the quantization parameter of the block BK1’ to ensure that entropy encoding of the difference between quantization parameters of blocks BK21and BK1’ can be successfully done during encoding of the block BK21 that is started earlier than encoding of the block BK1’ .
Similarly, according to the wave-front parallel encoding procedure, the encoding of the block BK2’ (which is the last block in the blow row BKROW2) is later than the encoding of the block BK31 (which is the starting block in the block row BKROW3 following the block row BKROW2) , the encoding of the block BK3’ (which is the last block in the block row BKROW3) is later than the encoding of the block BK41 (which is the starting block in the block row BKROW4 following the block row BKROW3) , and the encoding of the block BK4’ (which is the last block in the block row BKROW4) is later than the encoding of the block BK51 (which is the starting block in the block row BKROW5 following the block row BKROW4) . Before the encoding circuit 102 starts encoding the block BK31, the control circuit 104 needs to determine the quantization parameter of the block BK2’ to ensure that entropy encoding of the difference between quantization parameters of the blocks BK31 and BK2’ can be successfully done during encoding of the block BK31 that is started earlier than encoding of the block BK2’ .  Before the encoding circuit 102 starts encoding the block BK41, the control circuit 104 needs to determine the quantization parameter of the block BK3’ to ensure that entropy encoding of the difference between quantization parameters of the blocks BK41 and BK3’ can be successfully done during encoding of the block BK41 that is started earlier than encoding of the block BK3’ . Before the encoding circuit 102 starts encoding the block BK51, the control circuit 104 needs to determine the quantization parameter of the block BK4’ to ensure that entropy encoding of the difference between quantization parameters of the blocks BK51 and BK4’ can be successfully done during encoding of the block BK51 that is started earlier than encoding of the block BK4’ .
Compared to the context-adaptive binary arithmetic coding (CABAC) entropy encoding, the context-based adaptive variable-length code (CAVLC) entropy encoding has less complexity and data dependency. Hence, the CAVLC entropy encoding is more suitable for the proposed wave-front parallel encoding procedure with constraint on the coding mode selection. In one exemplary design, the encoding circuit 102 is configured to perform the wave-front parallel encoding procedure that includes the CAVLC entropy encoding.
With regard to the frame partition FP shown in FIG. 2, each of the block rows BKROW1-BKROW5 is composed of displayable blocks inside a display boundary only. In this embodiment, at least one pixel of each block in a block row is inside the display boundary. For example, the frame partition FP is fully received from a video source (e.g., a camera, a network, or a storage medium) , such that all of the blocks within the frame partition FP are input blocks that will be displayed on a display apparatus after bitstream generated from the video encoder 100 is decoded at a video decoder (not shown) . As mentioned above, the coding modes of the last blocksBK1’ -BK4’ (which are input blocks) are limited by the control circuit 104. Hence, it is possible that a coding mode selected for the last block of one block row may not have an optimal coding mode setting. Further, in a case where a block-level rate control mechanism is employed, the quantization parameters of the last blocks BK1’ -BK4’ are determined by the control circuit 104 before encoding of the last blocksBK1’ -BK4’ are actually started. Hence, it is possible that the quantization parameter assigned to the last block of one block row may not have an optimal quantization parameter setting. As a result, image quality degradation may occur at or around the last blocks when the last blocks are displayed.
To avoid image quality degradation of blocks displayed on the display apparatus,  the proposed wave-front parallel encoding procedure may be applied to a frame partition configured to have extra block (s) /dummy block (s) included in each block row, or to a frame partition configured to have a smaller display boundary. To put it another way, the image quality of blocks displayed on the display apparatus can be ensured by using the proposed wave-front parallel encoding procedure to encode extra block (s) /dummy blocks concatenated to input blocks of each block row that are received from the video source, or by shrinking the display boundary of input blocks of each block row received from the video source.
FIG. 4 is a block diagram illustrating another video encoder according to an embodiment of the present invention. The major difference between the  video encoders  400 and 100 is the frame partition format or the display boundary setting. Compared to the encoding circuit 102 that performs the proposed wave-front parallel encoding procedure upon the frame partition FP fully received from the video source and fully inside the display boundary, the encoding circuit 402 is arranged to perform the proposed wave-front parallel encoding procedure upon a frame partition FP’ derived from adding extra blocks to a frame partition received from the video source or having a shrunk display boundary. For example, a first part of the frame partition FP’ is composed of input blocks received from the video source, and a second part of the frame partition FP’ is composed of extra blocks/dummy blocks inserted at the encoding circuit 402. For another example, the frame partition FP’ is controlled to have a shrunk display boundary such that a first part of the frame partition FP’ is composed of input blocks received from the video source and categorized as blocks located inside the shrunk display boundary, and a second part of the frame partition FP’ is composed of input blocks received from the video source and categorized as blocks located outside the shrunk display boundary.
FIG. 5 is a diagram illustrating another wave-front parallel encoding procedure according to an embodiment of the present invention. In this example, the frame partition FP’ includes a plurality of block rows BKROW1-BKROW5, each of the block rows BKROW1-BKROW5includes a plurality of blocks 501, and each of the blocks 501 includes a plurality of pixels. With regard to each of the block rows BKROW1-BKROW5, at least one extra block is included therein. Hence, each of the block rows BKROW1-BKROW5 shown in FIG. 5 is composed of displayable blocks (i.e., input blocks received from the video source) inside a display boundary and at least one non-displayable block (e.g., extra block (s) inserted at the encoding circuit 402) outside the  display boundary. For example, each of the extra blocks may be set by a pre-defined block composed of pixels each having a predetermined pixel value. For another example, each of the extra blocks may be a padding block that is a duplicate of the last input block in the same block row. However, these are for illustrative purposes only, and are not meant to be limitations of the present invention.
The input blocks received from the video source and the extra blocks inserted at the encoding circuit 402 are blocks (denoted as “encoded blocks” ) that will be actually encoded by the encoding circuit 402. It should be noted that, as illustrated in FIG. 5, the block row boundary of the encoded blocks is not aligned with the display boundary (e.g., the block row boundary of input blocks received from the video source) .
As shown in FIG. 5, the last blocks BK1’ -BK4’ of the block rows BKROW1-BKROW4 are extra blocks that will not be displayed on a display apparatus after the bitstream generated from the video encoder 400 is decoded at a video decoder (not shown) . When the proposed wave-front parallel encoding procedure is applied to the frame partition FP’ according to the same aforementioned coding mode selection rule and/or the quantization parameter determination rule applied to the last blocks, the entropy encoding can be included in the wave-front parallel encoding procedure without image quality degradation of the last displayable blocks in the block rows BKROW1-BKROW5. Specifically, the coding modes of the last blocksBK1’ -BK4’ are limited by the control circuit 104, where each of the last blocksBK1’ -BK4’ is a non-displayable block outside the display boundary. Even though a coding mode selected for the last block of one block row may not have an optimal coding mode setting, the image quality of the last displayable block in the same block row is not affected by the proposed wave-front parallel encoding procedure. Further, in a case where a block-level rate control mechanism is employed, the quantization parameters of the last blocks BK1’ -BK4’ are determined by the control circuit 104 before encoding of the last blocksBK1’ -BK4’ are actually started, where each of the last blocksBK1’ -BK4’ is a non-displayable block outside the display boundary. Even though a quantization parameter determined for the last block of one block row may not have an optimal quantization parameter, the image quality of the last displayable block in the same block row is not affected by the proposed wave-front parallel encoding procedure.
FIG. 6 is a diagram illustrating yet another wave-front parallel encoding  procedure according to an embodiment of the present invention. In this example, the frame partition FP’ includes a plurality of block rows BKROW1-BKROW5, each of the block rows BKROW1-BKROW5includes a plurality of blocks 601, and each of the blocks 601 includes a plurality of pixels. Suppose that an original display boundary may be aligned with the block row boundary of blocks (denoted as “encoded blocks” ) that will be encoded by the encoding circuit 402. In this embodiment, the display boundary shown in FIG. 6 is controlled to shift leftwards, thus resulting in a shrunk display boundary that is not aligned with the block row boundary of encoded blocks. For example, the encoded blocks may include input blocks received from the video source. For another example, the encoded blocks may include input blocks received from the video source and extra blocks inserted at the encoding circuit 402.
With regard to each of the block rows BKROW1-BKROW5, at least one encoded block is treated as a non-displayable block outside the shrunk display boundary. Hence, each of the block rows BKROW1-BKROW5 shown in FIG. 6is composed of displayable blocks (i.e., encoded blocks fully or partially located inside the shrunk display boundary) and at least one non-displayable block (e.g., encoded block (s) fully located outside the shrunk display boundary) .
As shown in FIG. 6, the last blocks BK1’ -BK4’ of the block rows BKROW1-BKROW4 are encoded blocks that will not be displayed on a display apparatus after the bitstream generated from the video encoder 400 is decoded at a video decoder (not shown) . When the proposed wave-front parallel encoding procedure is applied to the frame partition FP’ shown in FIG. 6 according to the same aforementioned coding mode selection rule and/or the quantization parameter determination rule applied to the last blocks, the entropy encoding can be included in the wave-front parallel encoding procedure without image quality degradation of the last displayable blocks in the block rows BKROW1-BKROW5. Specifically, the coding modes of the last blocksBK1’ -BK4’ are limited by the control circuit 104, where each of the last blocksBK1’ -BK4’ is a non-displayable block outside the shrunk display boundary. Even though a coding mode selected for the last block of one block row may not have an optimal coding mode setting, the image quality of the last displayable block (which may be fully or partially inside the shrunk display boundary, depending upon the actual setting of the shrunk display boundary) in the same block row is not affected by the proposed wave-front parallel encoding procedure. Further, in a case where a block-level rate control mechanism is employed, the quantization parameters of the  last blocks BK1’ -BK4’ are determined by the control circuit 104 before encoding of the last blocksBK1’ -BK4’ are actually started, where each of the last blocksBK1’ -BK4’ is a non-displayable block outside the shrunk display boundary. Even though a quantization parameter determined for the last block of one block row may not have an optimal quantization parameter, the image quality of the last displayable block (which may be fully or partially inside the shrunk display boundary, depending upon the actual setting of the shrunk display boundary) in the same block row is not affected by the proposed wave-front parallel encoding procedure.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.

Claims (28)

  1. An encoding method comprising:
    performing a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels; and
    imposing constraint on a coding mode selection of a first block of a first block row, wherein a coding mode of the first block of the first block row is selected from at least one first candidate coding mode.
  2. The encoding method of claim 1, wherein the first block row ends with the first block.
  3. The encoding method of claim 2, wherein at least one pixel of each block in the first block row is inside a display boundary.
  4. The encoding method of claim 2, wherein the first block row is composed of displayable blocks inside a display boundary and at least one non-displayable block outside the display boundary, and the at least one non-displayable block includes the first block.
  5. The encoding method of claim 1, further comprising:
    before encoding of a second block is started, determining a quantization parameter of the first block;
    wherein encoding of the first block is later than encoding of the second block.
  6. The encoding method of claim 5, wherein the second block is located in a second block row different from the first block row.
  7. The encoding method of claim 6, wherein the second block row begins with the second block.
  8. The encoding method of claim 7, wherein the first block row ends with the first block.
  9. The encoding method of claim 5, wherein the first block row is a neighboring block row of the second block row.
  10. The encoding method of claim 1, wherein the at least one first candidate coding mode comprises coding modes which enable prediction of entropy encoding status of a second block located in a second block row.
  11. The encoding method of claim 10, wherein
    the first block row is a neighboring block row of the second block row;
    the second block row begins with the second block; and
    the first block row ends with the first block.
  12. The encoding method of claim 10, wherein the second block is entropy encoded before entropy encoding the first block.
  13. The encoding method of claim 1, wherein the wave-front parallel encoding procedure comprises context-based adaptive variable-length code (CAVLC) entropy encoding.
  14. The encoding method of claim 1, wherein the frame partition is a frame, one slice in the frame, or one tile in the frame.
  15. An encoder comprising:
    an encoding circuit, arranged to perform a wave-front parallel encoding procedure for encoding pixel data of a frame partition, wherein the frame partition comprises a plurality of block rows, each of the block rows comprises a plurality of blocks, and each of the blocks comprises a plurality of pixels; and
    a control circuit, arranged to impose constraint on a coding mode selection of a first block of a first block row, wherein a coding mode of the first block of the first block row is selected from at least one first candidate coding mode.
  16. The encoder of claim 15, wherein the first block row ends with the first block.
  17. The encoder of claim 16, wherein at least one pixel of each block in the first block row is inside a display boundary.
  18. The encoder of claim 16, wherein the first block row is composed of displayable blocks inside a display boundary and at least one non-displayable block outside the display boundary, and the at least one non-displayable block includes the first block.
  19. The encoder of claim 15, wherein the control circuit comprises a rate controller arranged to determine a quantization parameter of the first block before encoding of a second block is started; and encoding of the first block is later than encoding of the second block.
  20. The encoder of claim 19, wherein the second block is located in a second block row different from the first block row.
  21. The encoder of claim 20, wherein the second block row begins with the second block.
  22. The encoder of claim 21, wherein the first block row ends with the first block.
  23. The encoder of claim 19, wherein the first block row is a neighboring block row of the second block row.
  24. The encoder of claim 15, wherein the at least one first candidate coding mode comprises coding modes which enable prediction of entropy encoding status of a second block located in a second block row.
  25. The encoding method of claim 24, wherein
    the first block row is a neighboring block row of the second block row;
    the second block row begins with the second block; and
    the first block row ends with the first block.
  26. The encoding method of claim 24, wherein the second block is entropy encoded before entropy encoding the first block.
  27. The encoder of claim 15, wherein the wave-front parallel encoding procedure comprises context-based adaptive variable-length code (CAVLC) entropy encoding.
  28. The encoder of claim 15, wherein the frame partition is a frame, one slice in the frame, or one tile in the frame.
PCT/CN2015/083602 2014-07-08 2015-07-08 Method and apparatus for performing wave-front parallel encoding procedure with constraint on one or both of coding mode and quantization parameter selection Ceased WO2016004880A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201580005495.XA CN105934950B (en) 2014-07-08 2015-07-08 Coding method and related coding device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201462021786P 2014-07-08 2014-07-08
US62/021,786 2014-07-08
US14/792,634 2015-07-07
US14/792,634 US20160014415A1 (en) 2014-07-08 2015-07-07 Method and apparatus for performing wave-front parallel encoding procedure with constraint on coding mode and/or quantization parameter selection

Publications (1)

Publication Number Publication Date
WO2016004880A1 true WO2016004880A1 (en) 2016-01-14

Family

ID=55063596

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083602 Ceased WO2016004880A1 (en) 2014-07-08 2015-07-08 Method and apparatus for performing wave-front parallel encoding procedure with constraint on one or both of coding mode and quantization parameter selection

Country Status (3)

Country Link
US (1) US20160014415A1 (en)
CN (1) CN105934950B (en)
WO (1) WO2016004880A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9621905B2 (en) * 2012-06-29 2017-04-11 Qualcomm Incorporated Tiles and wavefront parallel processing
JP2017219586A (en) * 2016-06-03 2017-12-14 株式会社ジャパンディスプレイ Signal supply circuit and display device
CN113382238A (en) * 2020-02-25 2021-09-10 北京君正集成电路股份有限公司 Method for accelerating calculation speed of partial bit number of residual coefficient

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090034608A1 (en) * 2007-08-02 2009-02-05 Canon Kabushiki Kaisha Method and device for lossy coding of a digital signal
CN101959067A (en) * 2010-09-26 2011-01-26 北京大学 Decision method and system in rapid coding mode based on epipolar constraint
CN103491334A (en) * 2013-09-11 2014-01-01 浙江大学 Video transcode method from H264 to HEVC based on region feature analysis
US20140003532A1 (en) * 2012-06-29 2014-01-02 Qualcomm Incorporated Wavefront parallel processing for video coding

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120163457A1 (en) * 2010-12-28 2012-06-28 Viktor Wahadaniah Moving picture decoding method, moving picture coding method, moving picture decoding apparatus, moving picture coding apparatus, and moving picture coding and decoding apparatus
US20130121417A1 (en) * 2011-11-16 2013-05-16 Qualcomm Incorporated Constrained reference picture sets in wave front parallel processing of video data
US9749661B2 (en) * 2012-01-18 2017-08-29 Qualcomm Incorporated Sub-streams for wavefront parallel processing in video coding
HUE051172T2 (en) * 2012-04-13 2021-03-01 Ge Video Compression Llc Low latency image encoding
CN104221388B (en) * 2012-04-16 2018-01-23 瑞典爱立信有限公司 Indicate the fixation slice structure mark of the parallel processing possibility of compression of video sequence
US9621905B2 (en) * 2012-06-29 2017-04-11 Qualcomm Incorporated Tiles and wavefront parallel processing
CN116708767A (en) * 2013-01-04 2023-09-05 Ge视频压缩有限责任公司 Efficient Scalable Coding Concept
US10136154B2 (en) * 2013-12-04 2018-11-20 Nec Corporation Video coding apparatus, video coding method, and non-transitory computer readable medium
CN106464894B (en) * 2014-02-12 2019-10-18 明达半导体股份有限公司 Video processing method and device
US10757431B2 (en) * 2014-02-12 2020-08-25 Chips & Media, Inc Method and apparatus for processing video
KR102245704B1 (en) * 2014-09-30 2021-04-27 마이크로소프트 테크놀로지 라이센싱, 엘엘씨 Rules for intra-picture prediction modes when wavefront parallel processing is enabled

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090034608A1 (en) * 2007-08-02 2009-02-05 Canon Kabushiki Kaisha Method and device for lossy coding of a digital signal
CN101959067A (en) * 2010-09-26 2011-01-26 北京大学 Decision method and system in rapid coding mode based on epipolar constraint
US20140003532A1 (en) * 2012-06-29 2014-01-02 Qualcomm Incorporated Wavefront parallel processing for video coding
CN103491334A (en) * 2013-09-11 2014-01-01 浙江大学 Video transcode method from H264 to HEVC based on region feature analysis

Also Published As

Publication number Publication date
US20160014415A1 (en) 2016-01-14
CN105934950B (en) 2019-03-01
CN105934950A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
KR102462009B1 (en) Method for image encoding and computer readable redording meduim thereof
JP7399928B2 (en) Image decoding device, image decoding method and program
CN110679149B (en) Loop filtering method based on self-adaptive pixel classification reference
US20220109867A1 (en) Method for encoding and decoding images, and device using same
US9866848B2 (en) Method and apparatus for line buffer reduction for video processing
CN106454359B (en) Image processing device and image processing method
US12375664B2 (en) Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, and non-transitory computer-readable storage medium
US20220038719A1 (en) Residual coding with reduced usage of local neighborhood
JP7793094B2 (en) Flexible allocation of regular bins in residual coding for video coding
JP2014096638A (en) Image encoder, image encoding method, image encoding program, image decoder, image decoding method and image decoding program
JP7777652B2 (en) Method and device for picture encoding and decoding using position-dependent intra-prediction combination
US20160014415A1 (en) Method and apparatus for performing wave-front parallel encoding procedure with constraint on coding mode and/or quantization parameter selection
EP3641311A1 (en) Encoding and decoding methods and apparatus
US10805611B2 (en) Method and apparatus of constrained sequence header
WO2020086248A1 (en) Method and device for picture encoding and decoding
US20120155534A1 (en) Image Decoding Apparatus, Image Decoding Method and Computer Readable, Non-Transitory Storage Medium
CN114788276B (en) Image data encoding and decoding
GB2585041A (en) Image data encoding and decoding
CN117561717A (en) High-precision 4×4 DST7 and DCT8 transformation matrices
WO2016143093A1 (en) Moving image encoding device and intra-prediction encoding method used by such device, and moving image decoding device
HK1182865B (en) Image processing device and image processing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15819386

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15819386

Country of ref document: EP

Kind code of ref document: A1