US20180205947A1 - Dc coefficient sign coding scheme - Google Patents
Dc coefficient sign coding scheme Download PDFInfo
- Publication number
- US20180205947A1 US20180205947A1 US15/409,862 US201715409862A US2018205947A1 US 20180205947 A1 US20180205947 A1 US 20180205947A1 US 201715409862 A US201715409862 A US 201715409862A US 2018205947 A1 US2018205947 A1 US 2018205947A1
- Authority
- US
- United States
- Prior art keywords
- value
- sign
- current block
- block
- coefficient
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods 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/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods 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/13—Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods 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/167—Position within a video image, e.g. region of interest [ROI]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/18—Methods 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 set of transform coefficients
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/91—Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
Definitions
- Digital video streams may represent video using a sequence of frames or still images.
- Digital video can be used for various applications including, for example, video conferencing, high definition video entertainment, video advertisements, or sharing of user-generated videos.
- a digital video stream can contain a large amount of data and consume a significant amount of computing or communication resources of a computing device for processing, transmission, or storage of the video data.
- Various approaches have been proposed to reduce the amount of data in video streams, including compression and other encoding techniques.
- This disclosure relates generally to encoding and decoding video data and more particularly relates to a DC coefficient sign coding scheme for encoding and decoding blocks of video frames.
- a method for determining a sign value of a DC coefficient of a current block using neighbor blocks of the current block comprises identifying a first sign value corresponding to an above neighbor block of the current block and a second sign value corresponding to a left neighbor block of the current block; calculating a context value by applying a first weighting value to the first sign value and a second weighting value to the second sign value, wherein the first weighting value is based on a first boundary between the above neighbor block and the current block and the second weighting value is based on a second boundary between the left neighbor block and the current block; selecting a probability model for determining the sign value of the DC coefficient of the current block based on the context value; and determining the sign value of the DC coefficient of the current block using the probability model.
- An apparatus for determining a sign value of a DC coefficient of a current block using neighbor blocks of the current block comprises a memory and a processor, wherein the memory includes instructions executable by the processor to identify a first sign value corresponding to an above neighbor block of the current block and a second sign value corresponding to a left neighbor block of the current block; calculate a context value by applying a first weighting value to the first sign value and a second weighting value to the second sign value, wherein the first weighting value is based on a first boundary between the above neighbor block and the current block and the second weighting value is based on a second boundary between the left neighbor block and the current block; select a probability model for determining the sign value of the DC coefficient of the current block based on the context value; and determine the sign value of the DC coefficient of the current block using the probability model.
- a method for determining a sign value of a DC coefficient of a current block using neighbor blocks of the current block comprises determining the sign value of the DC coefficient of the current block based on context values derived from respective ones of the neighbor blocks, wherein a context value is derived from a neighbor block by multiplying a sign value of a DC coefficient of the neighbor block and a number of pixels comprising a boundary between the neighbor block and the current block.
- FIG. 1 is a schematic of a video encoding and decoding system.
- FIG. 2 is a block diagram of an example of a computing device that can implement a transmitting station or a receiving station.
- FIG. 3 is a diagram of a typical video stream to be encoded and subsequently decoded.
- FIG. 4 is a block diagram of an encoder according to implementations of this disclosure.
- FIG. 5 is a block diagram of a decoder according to implementations of this disclosure.
- FIG. 6 is an illustration of an example of coefficients of a transform block.
- FIG. 7 is an illustration of an example of neighbor blocks used to determine the sign value of the DC coefficient of a current block.
- FIG. 8 is a flowchart diagram of a process for DC coefficient sign coding.
- Video compression schemes may include breaking respective images, or frames, into smaller portions, such as blocks, and generating an encoded bitstream using techniques to limit the information included for respective blocks thereof.
- the encoded bitstream can be decoded to re-create the source images from the limited information.
- a video compression scheme can include transforming motion vector residuals for a current block of a video stream into transform blocks of transform coefficients.
- the transform coefficients are quantized and entropy coded into an encoded bitstream.
- a decoder uses the encoded transform coefficients to decode or decompress the encoded bitstream to prepare the video stream for viewing or further processing.
- the transform coefficients in a transform block can include a DC coefficient, which is located at the top-left of the transform block and has a magnitude representing the average value of the transform coefficients.
- Typical video compression techniques use a bit to signal the sign of a DC coefficient to a decoder, which may be positive or negative. For example, the decoder can determine that the sign of the DC coefficient is negative when the bit has a value of zero and positive when the bit has a value of one.
- contextual information about the sign of the DC coefficient is not signaled to the decoder. Because a video sequence may include a large number of DC coefficients, using a correspondingly large number of bits to signal the signs of the DC coefficients imposes additional cost on the video compression.
- Implementations of this disclosure address problems such as these by determining a sign value of a DC coefficient of a current block using contextual information about the sign of the DC coefficient of neighbor blocks of the current block.
- First and second sign values are identified as respectively corresponding to an above neighbor block of the current block and a left neighbor block of the current block.
- a context value is calculated by applying a first weighting value to the first sign value and a second weighting value to the second sign value. The first weighting value is based on a boundary between the above neighbor block and the current block and the second weighting value is based on a boundary between the left neighbor block and the current block.
- a probability model usable for determining the sign value of the DC coefficient of the current block is selected based on the context model. The sign value of the DC coefficient of the current block is then determined using the probability model. The efficiency of coding DC coefficients can thus be improved, such as by not using bits to signal respective sign values of the blocks of a video sequence.
- FIG. 1 is a schematic of a video encoding and decoding system 100 .
- a transmitting station 102 can be, for example, a computer having an internal configuration of hardware such as that described in FIG. 2 .
- the processing of the transmitting station 102 can be distributed among multiple devices.
- a network 104 can connect the transmitting station 102 and a receiving station 106 for encoding and decoding of the video stream.
- the video stream can be encoded in the transmitting station 102
- the encoded video stream can be decoded in the receiving station 106 .
- the network 104 can be, for example, the Internet.
- the network 104 can also be a local area network (LAN), wide area network (WAN), virtual private network (VPN), cellular telephone network, or any other means of transferring the video stream from the transmitting station 102 to, in this example, the receiving station 106 .
- LAN local area network
- WAN wide area network
- VPN virtual private network
- the receiving station 106 in one example, can be a computer having an internal configuration of hardware such as that described in FIG. 2 . However, other suitable implementations of the receiving station 106 are possible. For example, the processing of the receiving station 106 can be distributed among multiple devices.
- an implementation can omit the network 104 .
- a video stream can be encoded and then stored for transmission at a later time to the receiving station 106 or any other device having memory.
- the receiving station 106 receives (e.g., via the network 104 , a computer bus, and/or some communication pathway) the encoded video stream and stores the video stream for later decoding.
- a real-time transport protocol RTP
- a transport protocol other than RTP may be used (e.g., a Hypertext Transfer Protocol-based (HTTP-based) video streaming protocol).
- the transmitting station 102 and/or the receiving station 106 may include the ability to both encode and decode a video stream as described below.
- the receiving station 106 could be a video conference participant who receives an encoded video bitstream from a video conference server (e.g., the transmitting station 102 ) to decode and view and further encodes and transmits his or her own video bitstream to the video conference server for decoding and viewing by other participants.
- FIG. 2 is a block diagram of an example of a computing device 200 that can implement a transmitting station or a receiving station.
- the computing device 200 can implement one or both of the transmitting station 102 and the receiving station 106 of FIG. 1 .
- the computing device 200 can be in the form of a computing system including multiple computing devices, or in the form of one computing device, for example, a mobile phone, a tablet computer, a laptop computer, a notebook computer, a desktop computer, and the like.
- a CPU 202 in the computing device 200 can be a conventional central processing unit.
- the CPU 202 can be any other type of device, or multiple devices, capable of manipulating or processing information now existing or hereafter developed.
- the disclosed implementations can be practiced with one processor as shown (e.g., the CPU 202 ), advantages in speed and efficiency can be achieved by using more than one processor.
- a memory 204 in computing device 200 can be a read only memory (ROM) device or a random access memory (RAM) device in an implementation. Any other suitable type of storage device can be used as the memory 204 .
- the memory 204 can include code and data 206 that is accessed by the CPU 202 using a bus 212 .
- the memory 204 can further include an operating system 208 and application programs 210 , the application programs 210 including at least one program that permits the CPU 202 to perform the methods described herein.
- the application programs 210 can include applications 1 through N, which further include a video coding application that performs the methods described here.
- Computing device 200 can also include a secondary storage 214 , which can, for example, be a memory card used with a mobile computing device. Because the video communication sessions may contain a significant amount of information, they can be stored in whole or in part in the secondary storage 214 and loaded into the memory 204 as needed for processing.
- the computing device 200 can also include one or more output devices, such as a display 218 .
- the display 218 may be, in one example, a touch sensitive display that combines a display with a touch sensitive element that is operable to sense touch inputs.
- the display 218 can be coupled to the CPU 202 via the bus 212 .
- Other output devices that permit a user to program or otherwise use the computing device 200 can be provided in addition to or as an alternative to the display 218 .
- the output device is or includes a display
- the display can be implemented in various ways, including by a liquid crystal display (LCD), a cathode-ray tube (CRT) display or a light emitting diode (LED) display, such as an organic LED (OLED) display.
- LCD liquid crystal display
- CRT cathode-ray tube
- LED light emitting diode
- OLED organic LED
- the computing device 200 can also include or be in communication with an image-sensing device 220 , for example, a camera, or any other image-sensing device 220 now existing or hereafter developed that can sense an image such as the image of a user operating the computing device 200 .
- the image-sensing device 220 can be positioned such that it is directed toward the user operating the computing device 200 .
- the position and optical axis of the image-sensing device 220 can be configured such that the field of vision includes an area that is directly adjacent to the display 218 and from which the display 218 is visible.
- the computing device 200 can also include or be in communication with a sound-sensing device 222 , for example, a microphone, or any other sound-sensing device now existing or hereafter developed that can sense sounds near the computing device 200 .
- the sound-sensing device 222 can be positioned such that it is directed toward the user operating the computing device 200 and can be configured to receive sounds, for example, speech or other utterances, made by the user while the user operates the computing device 200 .
- FIG. 2 depicts the CPU 202 and the memory 204 of the computing device 200 as being integrated into one unit, other configurations can be utilized.
- the operations of the CPU 202 can be distributed across multiple machines (wherein individual machines can have one or more processors) that can be coupled directly or across a local area or other network.
- the memory 204 can be distributed across multiple machines such as a network-based memory or memory in multiple machines performing the operations of the computing device 200 .
- the bus 212 of the computing device 200 can be composed of multiple buses.
- the secondary storage 214 can be directly coupled to the other components of the computing device 200 or can be accessed via a network and can comprise an integrated unit such as a memory card or multiple units such as multiple memory cards.
- the computing device 200 can thus be implemented in a wide variety of configurations.
- FIG. 3 is a diagram of an example of a video stream 300 to be encoded and subsequently decoded.
- the video stream 300 includes a video sequence 302 .
- the video sequence 302 includes a number of adjacent frames 304 . While three frames are depicted as the adjacent frames 304 , the video sequence 302 can include any number of adjacent frames 304 .
- the adjacent frames 304 can then be further subdivided into individual frames, for example, a frame 306 .
- the frame 306 can be divided into a series of planes or segments 308 .
- the segments 308 can be subsets of frames that permit parallel processing, for example.
- the segments 308 can also be subsets of frames that can separate the video data into separate colors.
- a frame 306 of color video data can include a luminance plane and two chrominance planes.
- the segments 308 may be sampled at different resolutions.
- the frame 306 may be further subdivided into blocks 310 , which can contain data corresponding to, for example, 16 ⁇ 16 pixels in the frame 306 .
- the blocks 310 can also be arranged to include data from one or more segments 308 of pixel data.
- the blocks 310 can also be of any other suitable size such as 4 ⁇ 4 pixels, 8 ⁇ 8 pixels, 16 ⁇ 8 pixels, 8 ⁇ 16 pixels, 16 ⁇ 16 pixels, or larger. Unless otherwise noted, the terms block and macroblock are used interchangeably herein.
- FIG. 4 is a block diagram of an encoder 400 according to implementations of this disclosure.
- the encoder 400 can be implemented, as described above, in the transmitting station 102 , such as by providing a computer software program stored in memory, for example, the memory 204 .
- the computer software program can include machine instructions that, when executed by a processor such as the CPU 202 , cause the transmitting station 102 to encode video data in the manner described in FIG. 4 .
- the encoder 400 can also be implemented as specialized hardware included in, for example, the transmitting station 102 .
- the encoder 400 is a hardware encoder.
- the encoder 400 has the following stages to perform the various functions in a forward path (shown by the solid connection lines) to produce an encoded or compressed bitstream 420 using the video stream 300 as input: an intra/inter prediction stage 402 , a transform stage 404 , a quantization stage 406 , and an entropy encoding stage 408 .
- the encoder 400 may also include a reconstruction path (shown by the dotted connection lines) to reconstruct a frame for encoding of future blocks.
- the encoder 400 has the following stages to perform the various functions in the reconstruction path: a dequantization stage 410 , an inverse transform stage 412 , a reconstruction stage 414 , and a loop filtering stage 416 .
- Other structural variations of the encoder 400 can be used to encode the video stream 300 .
- respective frames 304 can be processed in units of blocks.
- respective blocks can be encoded using intra-frame prediction (also called intra-prediction) or inter-frame prediction (also called inter-prediction).
- intra-frame prediction also called intra-prediction
- inter-frame prediction also called inter-prediction
- a prediction block can be formed.
- intra-prediction a prediction block may be formed from samples in the current frame that have been previously encoded and reconstructed.
- inter-prediction a prediction block may be formed from samples in one or more previously constructed reference frames. Implementations for forming a prediction block are discussed below with respect to FIGS. 6, 7, and 8 , for example, using warped motion compensation to project pixels of a current block to a warped patch of a reference frame.
- the prediction block can be subtracted from the current block at the intra/inter prediction stage 402 to produce a residual block (also called a residual).
- the transform stage 404 transforms the residual into transform coefficients in, for example, the frequency domain using block-based transforms.
- the quantization stage 406 converts the transform coefficients into discrete quantum values, which are referred to as quantized transform coefficients, using a quantizer value or a quantization level. For example, the transform coefficients may be divided by the quantizer value and truncated.
- the quantized transform coefficients are then entropy encoded by the entropy encoding stage 408 .
- the entropy-encoded coefficients, together with other information used to decode the block are then output to the compressed bitstream 420 .
- the compressed bitstream 420 can be formatted using various techniques, such as variable length coding (VLC) or arithmetic coding.
- VLC variable length coding
- the compressed bitstream 420 can also be referred to as an encoded video stream or encoded video bitstream, and the terms will be used interchangeably herein.
- the reconstruction path in FIG. 4 can be used to ensure that the encoder 400 and a decoder 500 (described below) use the same reference frames to decode the compressed bitstream 420 .
- the reconstruction path performs functions that are similar to functions (discussed in more detail below) that take place during the decoding process, including dequantizing the quantized transform coefficients at the dequantization stage 410 and inverse transforming the dequantized transform coefficients at the inverse transform stage 412 to produce a derivative residual block (also called a derivative residual).
- the prediction block that was predicted at the intra/inter prediction stage 402 can be added to the derivative residual to create a reconstructed block.
- the loop filtering stage 416 can be applied to the reconstructed block to reduce distortion such as blocking artifacts.
- encoder 400 can be used to encode the compressed bitstream 420 .
- a non-transform based encoder can quantize the residual signal directly without the transform stage 404 for certain blocks or frames.
- an encoder can have the quantization stage 406 and the dequantization stage 410 combined in a common stage.
- FIG. 5 is a block diagram of a decoder 500 according to implementations of this disclosure.
- the decoder 500 can be implemented in the receiving station 106 , for example, by providing a computer software program stored in the memory 204 .
- the computer software program can include machine instructions that, when executed by a processor such as the CPU 202 , cause the receiving station 106 to decode video data in the manner described in FIG. 5 .
- the decoder 500 can also be implemented in hardware included in, for example, the transmitting station 102 or the receiving station 106 .
- the decoder 500 similar to the reconstruction path of the encoder 400 discussed above, includes in one example the following stages to perform various functions to produce an output video stream 516 from the compressed bitstream 420 : an entropy decoding stage 502 , a dequantization stage 504 , an inverse transform stage 506 , an intra/inter prediction stage 508 , a reconstruction stage 510 , a loop filtering stage 512 , and a deblocking filtering stage 514 .
- Other structural variations of the decoder 500 can be used to decode the compressed bitstream 420 .
- the data elements within the compressed bitstream 420 can be decoded by the entropy decoding stage 502 to produce a set of quantized transform coefficients.
- the dequantization stage 504 dequantizes the quantized transform coefficients (e.g., by multiplying the quantized transform coefficients by the quantizer value), and the inverse transform stage 506 inverse transforms the dequantized transform coefficients to produce a derivative residual that can be identical to that created by the inverse transform stage 412 in the encoder 400 .
- the decoder 500 can use the intra/inter prediction stage 508 to create the same prediction block as was created in the encoder 400 , e.g., at the intra/inter prediction stage 402 . Implementations for forming a same prediction block as was created in the encoder 400 are discussed below with respect to FIGS. 6, 7, and 8 , for example, using warped motion compensation to project pixels of a current block to a warped patch of a reference frame.
- the prediction block can be added to the derivative residual to create a reconstructed block.
- the loop filtering stage 512 can be applied to the reconstructed block to reduce blocking artifacts.
- the deblocking filtering stage 514 is applied to the reconstructed block to reduce blocking distortion, and the result is output as the output video stream 516 .
- the output video stream 516 can also be referred to as a decoded video stream, and the terms will be used interchangeably herein.
- Other variations of the decoder 500 can be used to decode the compressed bitstream 420 .
- the decoder 500 can produce the output video stream 516 without the deblocking filtering stage 514 .
- FIG. 6 is an illustration of an example of coefficients of a transform block 600 .
- the transform block 600 includes one DC coefficient 602 and a number of AC coefficients 604 .
- the transform block 600 is a 16 ⁇ 16 transform block comprising 216 pixels, the transform block includes 215 AC coefficients.
- the DC coefficient 602 and the AC coefficients 604 of the transform block 600 are transformed residual pixel values.
- the residual pixel values may be generated by a prediction operation (e.g., the intra/inter prediction stage 402 shown in FIG. 4 ) and transformed by a transform operation (e.g., the transform stage 404 shown in FIG. 4 ).
- a discrete cosine transform can be applied to move the coefficients to different positions within the transform block 600 .
- the transformation of the residual pixel values results in the DC coefficient 602 being located at the top-leftmost position of a transform block and the AC coefficients 604 being located at the other positions of the transform block.
- the DC coefficient 602 of the transform block 600 has a magnitude that represents an average of the transformed residual pixel values of the transform block (e.g., the AC coefficients 604 ).
- the DC coefficient 602 thus has a sign value.
- the sign value is positive where the magnitude is above zero and negative where the magnitude is below zero.
- the sign value may not be negative or positive where the magnitude is equal to zero.
- the sign value may by default be configured to be one of positive or negative where the magnitude is equal to zero.
- FIG. 7 is an illustration of an example of neighbor blocks used to determine the sign value of the DC coefficient of a current block 700 .
- the current block 700 is one of a number of transform blocks (e.g., the transform block 600 shown in FIG. 6 ) of a current frame 702 .
- the current frame 702 also includes an above neighbor block 704 , an above neighbor block 706 , a left neighbor block 708 , and a left neighbor block 710 .
- the neighbor blocks 704 , 706 , 708 , and 710 are transform blocks and spatial neighbors of the current block 700 .
- the sign value of the DC coefficient of the current block 700 is determined using a probability model selected based on the sign values of the DC coefficients of the neighbor blocks 704 , 706 , 708 , and 710 .
- a context value can be calculated based on the sign values of the DC coefficients of the neighbor blocks 704 , 706 , 708 , and 710 .
- a probability model corresponding to the calculated context value can be determined for determining the sign value of the DC coefficient of the current block.
- the sign value of the DC coefficient of the current block can then be determined using the selected probability model.
- the context value is calculated using the following formula:
- dc_sum ⁇ dc_sign(nb_block)*boundary(nb_block,curr_block)nb_blocks
- the context value is calculated by applying a weighting value to respective sign values of the DC coefficients of the neighbor blocks 704 , 706 , 708 , and 710 .
- the weighting value applied to such a sign value is determined based on a number of pixels comprising a length of a boundary between the neighbor block having the sign value and the current block.
- each of the neighbor blocks 704 , 706 , 708 , and 710 has an equally long length of boundary with the current block 700 .
- the same weighting value e.g., 1 is applied for each of the neighbor blocks 704 , 706 , 708 , and 710 .
- the neighbor blocks 704 , 708 , and 710 have a negative sign value for their DC coefficients, while the neighbor block 706 has a positive sign value for its DC coefficient.
- the neighbor block 706 would have a weighting value (e.g., 2) that is twice the weighting value applied to the sign values of the neighbor blocks 708 and 710 (e.g., 1).
- the probability value used for determining sign value of the DC coefficient of the current block is selected based on the calculated context value using the following Table 1:
- a first probability model e.g., having a probability model index of 0
- a second probability model e.g., having a probability model index of 1
- a third probability model e.g., having a probability model index of 2
- a probability model usable for determining the sign value for the DC coefficient of the current block 700 indicates a probability that the sign value for the DC coefficient of the current block 700 is positive, negative, or equal to zero.
- the probability model can include an integer value that, when divided by a maximum value, indicates the probability of the sign value for the DC coefficient of the current block 700 being positive, negative, or equal to zero (e.g., represented as a percentage or like value).
- the maximum value can be a global maximum value shared by all or a portion of the probability models usable by the techniques of this disclosure.
- the maximum value can be in the scale of 256.
- a probability model having the probability model index 0 can include the integer value 119 .
- that probability model indicates that there is a 119/256 probability that the sign value of the DC coefficient of the current block 700 is positive.
- That probability model further indicates that there is a (256 ⁇ 119)/256 probability that the sign value of the DC coefficient of the current block 700 is negative.
- the probabilities associated with a probability model are processed using entropy coding (e.g., the entropy coding stage 408 shown in FIG. 4 ).
- entropy coding e.g., the entropy coding stage 408 shown in FIG. 4 .
- arithmetic coding can be used to determine the sign value of the DC coefficient of the current block 700 using the probabilities associated with a selected probability model. For example, once the sign value of the DC coefficient of the current block 700 is determined by the entropy coding stage 408 of the encoder 400 , it can be compressed into an encoded bitstream.
- the probability models that can be selected based on the context value can be updated, such as based on results of a decoding process using the probability models (e.g., by the decoder 500 shown in FIG. 5 ). For example, if the results of a decoding process that use a first probability model (e.g., having a probability model index of 0) indicate that the sign value of the DC coefficient of the current block 700 more often is determined to be positive, that probability model can be updated, such as by updating the integer value thereof. Updating the probability models in this way may improve the efficiency of the entropy coding and/or decoding of the sign values of the DC coefficients of current blocks.
- a first probability model e.g., having a probability model index of 0
- the sign value can be represented other than as in Table 1, above.
- the sign values can be indicated using integers, such as where the sign value of the DC coefficient of the current block is 0 when the context value is equal to 0, 1 when the context value is less than 0, and 2 when the context value is greater than 0.
- the integer value can be passed between an encoder and decoder to indicate the sign value of the DC coefficient of the current block, such as when the sign value of the DC coefficient of the current block is encoded and/or decoded with reference to a coefficient sign map.
- FIG. 8 is a flowchart diagram of a process 800 for DC coefficient sign coding.
- the process 800 can be implemented, for example, as a software program that may be executed by computing devices such as the transmitting station 102 or the receiving station 106 .
- the software program can include machine-readable instructions that may be stored in a memory such as the memory 204 or the secondary storage 214 , and that, when executed by a processor, such as the CPU 202 , may cause the computing device to perform the process 800 .
- the process 800 can be implemented using specialized hardware or firmware. As explained above, some computing devices may have multiple memories or processors, and the operations described in the process 800 can be distributed using multiple processors, memories, or both.
- sign values of DC coefficients of one or more neighbor blocks of a current block are identified. Identifying the sign values of the DC coefficients of the neighbor blocks can include receiving those sign values from a database or other data store (including, but not limited to, a block header or a frame header), generating those sign values such as using instructions executable by a processor (e.g., during an encoding or decoding process, such as is generally shown in FIGS. 4 and 5 , respectively), identifying those sign values within a coefficient sign map, other techniques for identifying those sign values, or combinations thereof.
- a database or other data store including, but not limited to, a block header or a frame header
- generating those sign values such as using instructions executable by a processor (e.g., during an encoding or decoding process, such as is generally shown in FIGS. 4 and 5 , respectively), identifying those sign values within a coefficient sign map, other techniques for identifying those sign values, or combinations thereof.
- Identifying the sign values of the DC coefficients of the neighbor blocks may first include identifying the neighbor blocks within a frame of a video sequence, where the frame also includes the current block. For example, identifying the neighbor blocks can include identifying a position of the current block within the frame and then identifying one or more blocks that are adjacent to one of an upper boundary, left boundary, lower boundary, or right boundary of the current block.
- the neighbor blocks identified for use by the process 800 may be above neighbor blocks of the current block or left neighbor blocks of the current block.
- identifying the sign values of the DC coefficients of the neighbor blocks can include identifying a first sign value corresponding to a DC coefficient of an above neighbor block of the current block and a second sign value corresponding to a DC coefficient of a left neighbor block of the current block.
- other neighbor blocks may be used by the process 800 , such as where blocks within a frame of a video sequence are not encoded or decoded according to a raster order or similar order.
- a context value is calculated by applying weighting values to the sign values identified at 802 .
- the weighting values are determined based on the number of pixels comprising the length of boundary between corresponding ones of the neighbor blocks and the current block. For example, where the neighbor blocks identified at 802 include an above neighbor block and a left neighbor block, a first weighting value is determined based on a first number of pixels comprising the boundary between the above neighbor block and the current block, and a second weighting value is determined based on a second number of pixels comprising the boundary between the left neighbor block and the current block.
- Calculating the context value first includes multiplying sign values and corresponding weighting values for respective ones of the neighbor blocks having a sign value identified at 802 .
- a first value can be calculated for the above neighbor block described above by multiplying its sign value and the first weighting value
- a second value can be calculated for the left neighbor block by multiplying its sign value and the second weighting value.
- the context value can then be calculated by adding the calculated values for the respective neighbor blocks.
- the context value can be calculated by adding the first value and the second value described above.
- a context value refers to the sum of a plurality of values calculated by multiplying sign values and weighting values for respective ones of a plurality of neighbor blocks.
- a context value may alternatively refer to the product of a sign value and a weighting value for an individual neighbor block.
- there may be multiple context values calculated to determine the sign value of the DC coefficient of a current block.
- calculating multiple context values at 806 can include deriving context values for respective ones of the neighbor blocks by multiplying a sign value of a DC coefficient of the neighbor block and a number of pixels comprising a boundary between the neighbor block and the current block. The context values may then be added together to calculate a value usable for determining the sign value of the DC coefficient of the current block, as described below.
- a probability model usable for determining the sign value of the DC coefficient of the current block is selected based on the context value calculated at 804 (or plurality of context values, as applicable). For example, a first probability model is selected when the context value is greater than zero, a second probability model is selected when the context value is less than zero, and a third probability model is selected when the context value is equal to zero.
- the probability model selected at 806 is used to determine the sign value of the DC coefficient of the current block. For example, an integer value of the selected probability model can be compared to a maximum value thereof to determine the probabilities that the sign value of the DC coefficient of the current block is positive, negative, or zero. In an encoding process, those probabilities are used by an entropy coding stage (e.g., the entropy coding stage 408 shown in FIG. 4 ) to determine the sign value of the DC coefficient of the current block, such as using arithmetic coding, and then compress the determined sign value into an encoded bitstream.
- an entropy coding stage e.g., the entropy coding stage 408 shown in FIG. 4
- those probabilities are used by an entropy decoding stage (e.g., the entropy decoding stage 502 shown in FIG. 5 ) to determine the sign value of the DC coefficient of the current block based on values compressed within an encoded bitstream.
- an entropy decoding stage e.g., the entropy decoding stage 502 shown in FIG. 5
- the sign value of the DC coefficient of the current block is determined to be an average of sign values of a plurality of AC coefficients of the current block. That is, the context value is used to determine a sign value of the DC coefficient of the current block based on the neighbor blocks.
- the context value is zero, it means that the neighbor blocks do not indicate a likelihood of the sign value of the DC coefficient of the current block.
- the sign value of the DC coefficient of the current block is calculated using data of the current block independently of data from the neighbor blocks.
- a sign value calculated independently of data from neighbor blocks can be signaled using a bit or compressed within the encoded bitstream (e.g., within a block or frame header, as part of a coefficient sign map, etc.).
- process 800 is depicted and described as a series of steps or operations. However, the steps or operations in accordance with this disclosure can occur in various orders and/or concurrently. Additionally, other steps or operations not presented and described herein may be used. Furthermore, not all illustrated steps or operations may be required to implement a method in accordance with the disclosed subject matter.
- the sign value of the DC coefficient of a current block can be determined without using sign values of DC coefficients of neighbor blocks of the current block.
- the process 800 can include determining an average residual pixel value for respective neighbor blocks, wherein the average residual pixel value is a mean of the coefficients of the neighbor block resulting after the block is transformed.
- calculating an average residual pixel value for a neighbor block can include adding individual residual pixel values of the neighbor block and dividing the sum thereof by the total number of residual pixels within the neighbor block. The sign value of the calculated average residual pixel value may then be used to determine the sign value of the DC coefficient of the current block in place of the sign value of the DC coefficient of that neighbor block.
- the process 800 can be a process for determining a sign value of a non-DC coefficient of the current block using the neighbor blocks of the current block.
- the process 800 can be performed to infer an average sign value for the residual pixels of the current block.
- the average sign value for the residual pixels of the current block can be calculated using average residual pixel values of neighbor blocks, for example, calculated as described above.
- the process 800 can be performed by an encoder, such as the encoder 400 shown in FIG. 4 , and/or a decoder, such as the decoder 500 shown in FIG. 5 .
- the sign value of the DC coefficient of the current block can be determined responsive or otherwise proximate to the transform operation (e.g., the transform stage 404 shown in FIG. 4 ).
- the process 800 can be performed using transform blocks comprising transformed residual pixel values, wherein the residual pixel values are determined via a prediction operation (e.g., the intra/inter prediction stage 402 shown in FIG. 4 ).
- the sign value of the DC coefficient of the current block can be determined during or otherwise proximate to an inverse transform operation (e.g., the inverse transform stage 506 shown in FIG. 5 ).
- the process 800 can be performed to decode the transformed residual pixel values of the current block by identifying the sign value of the DC coefficient of the current block using the sign values of the DC coefficients of the neighbor blocks of the current block.
- the process 800 can include an operation for compressing the sign value of the DC coefficient of the current block.
- the compressed sign value of the DC coefficient of the current block may be included within a block header corresponding to the current block within an encoded bitstream.
- the compressed sign value of the DC coefficient of the current block may be included within a frame header corresponding to a frame including the current block within an encoded bitstream.
- the compressed sign value of the DC coefficient of the current block may be encoded as part of a coefficient sign map for the current block, the frame that includes the current block, or another structure within the encoded bitstream.
- the process 800 can include an operation for decompressing the compressed sign value of the DC coefficient of an encoded current block.
- the decoder can receive the compressed sign value of the DC coefficient of the encoded current block from a block header corresponding to the encoded current block within an encoded bitstream.
- the decoder can receive the compressed sign value of the DC coefficient of the encoded current block from a frame header corresponding to an encoded frame including the encoded current block within the encoded bitstream.
- the decoder can receive the compressed sign value of the DC coefficient of the encoded current block from a coefficient sign map for the encoded current block, the encoded frame that includes the encoded current block, or another structure within the encoded bitstream.
- encoding and decoding illustrate some examples of encoding and decoding techniques. However, it is to be understood that encoding and decoding, as those terms are used in the claims, could mean compression, decompression, transformation, or any other processing or change of data.
- example is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “example” is not necessarily to be construed as being preferred or advantageous over other aspects or designs. Rather, use of the word “example” is intended to present concepts in a concrete fashion.
- the term “or” is intended to mean an inclusive “or” rather than an exclusive “or”. That is, unless specified otherwise or clearly indicated otherwise by the context, the statement “X includes A or B” is intended to mean any of the natural inclusive permutations thereof. That is, if X includes A; X includes B; or X includes both A and B, then “X includes A or B” is satisfied under any of the foregoing instances.
- Implementations of the transmitting station 102 and/or the receiving station 106 can be realized in hardware, software, or any combination thereof.
- the hardware can include, for example, computers, intellectual property (IP) cores, application-specific integrated circuits (ASICs), programmable logic arrays, optical processors, programmable logic controllers, microcode, microcontrollers, servers, microprocessors, digital signal processors, or any other suitable circuit.
- IP intellectual property
- ASICs application-specific integrated circuits
- programmable logic arrays optical processors
- programmable logic controllers programmable logic controllers
- microcode microcontrollers
- servers microprocessors, digital signal processors, or any other suitable circuit.
- signal processors should be understood as encompassing any of the foregoing hardware, either singly or in combination.
- signals and “data” are used interchangeably. Further, portions of the transmitting station 102 and the receiving station 106 do not necessarily have to be implemented in the same manner.
- the transmitting station 102 or the receiving station 106 can be implemented using a general purpose computer or general purpose processor with a computer program that, when executed, carries out any of the respective methods, algorithms, and/or instructions described herein.
- a special purpose computer/processor can be utilized which can contain other hardware for carrying out any of the methods, algorithms, or instructions described herein.
- the transmitting station 102 and the receiving station 106 can, for example, be implemented on computers in a video conferencing system.
- the transmitting station 102 can be implemented on a server, and the receiving station 106 can be implemented on a device separate from the server, such as a handheld communications device.
- the transmitting station 102 using the encoder 400 , can encode content into an encoded video signal and transmit the encoded video signal to the communications device.
- the communications device can then decode the encoded video signal using a decoder 500 .
- the communications device can decode content stored locally on the communications device, for example, content that was not transmitted by the transmitting station 102 .
- Other suitable transmitting and receiving implementation schemes are available.
- the receiving station 106 can be a generally stationary personal computer rather than a portable communications device, and/or a device including an encoder 400 may also include a decoder 500 .
- implementations of the present disclosure can take the form of a computer program product accessible from, for example, a computer-usable or computer-readable medium.
- a computer-usable or computer-readable medium can be any device that can, for example, tangibly contain, store, communicate, or transport the program for use by or in connection with any processor.
- the medium can be, for example, an electronic, magnetic, optical, electromagnetic, or semiconductor device. Other suitable mediums are also available.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
- Digital video streams may represent video using a sequence of frames or still images. Digital video can be used for various applications including, for example, video conferencing, high definition video entertainment, video advertisements, or sharing of user-generated videos. A digital video stream can contain a large amount of data and consume a significant amount of computing or communication resources of a computing device for processing, transmission, or storage of the video data. Various approaches have been proposed to reduce the amount of data in video streams, including compression and other encoding techniques.
- This disclosure relates generally to encoding and decoding video data and more particularly relates to a DC coefficient sign coding scheme for encoding and decoding blocks of video frames.
- A method for determining a sign value of a DC coefficient of a current block using neighbor blocks of the current block according to one implementation of the disclosure comprises identifying a first sign value corresponding to an above neighbor block of the current block and a second sign value corresponding to a left neighbor block of the current block; calculating a context value by applying a first weighting value to the first sign value and a second weighting value to the second sign value, wherein the first weighting value is based on a first boundary between the above neighbor block and the current block and the second weighting value is based on a second boundary between the left neighbor block and the current block; selecting a probability model for determining the sign value of the DC coefficient of the current block based on the context value; and determining the sign value of the DC coefficient of the current block using the probability model.
- An apparatus for determining a sign value of a DC coefficient of a current block using neighbor blocks of the current block according to one implementation of the disclosure comprises a memory and a processor, wherein the memory includes instructions executable by the processor to identify a first sign value corresponding to an above neighbor block of the current block and a second sign value corresponding to a left neighbor block of the current block; calculate a context value by applying a first weighting value to the first sign value and a second weighting value to the second sign value, wherein the first weighting value is based on a first boundary between the above neighbor block and the current block and the second weighting value is based on a second boundary between the left neighbor block and the current block; select a probability model for determining the sign value of the DC coefficient of the current block based on the context value; and determine the sign value of the DC coefficient of the current block using the probability model.
- A method for determining a sign value of a DC coefficient of a current block using neighbor blocks of the current block according to one implementation of the disclosure comprises determining the sign value of the DC coefficient of the current block based on context values derived from respective ones of the neighbor blocks, wherein a context value is derived from a neighbor block by multiplying a sign value of a DC coefficient of the neighbor block and a number of pixels comprising a boundary between the neighbor block and the current block.
- These and other aspects of the present disclosure are disclosed in the following detailed description of the embodiments, the appended claims and the accompanying figures.
- The description herein makes reference to the accompanying drawings described below, wherein like reference numerals refer to like parts throughout the several views.
-
FIG. 1 is a schematic of a video encoding and decoding system. -
FIG. 2 is a block diagram of an example of a computing device that can implement a transmitting station or a receiving station. -
FIG. 3 is a diagram of a typical video stream to be encoded and subsequently decoded. -
FIG. 4 is a block diagram of an encoder according to implementations of this disclosure. -
FIG. 5 is a block diagram of a decoder according to implementations of this disclosure. -
FIG. 6 is an illustration of an example of coefficients of a transform block. -
FIG. 7 is an illustration of an example of neighbor blocks used to determine the sign value of the DC coefficient of a current block. -
FIG. 8 is a flowchart diagram of a process for DC coefficient sign coding. - Video compression schemes may include breaking respective images, or frames, into smaller portions, such as blocks, and generating an encoded bitstream using techniques to limit the information included for respective blocks thereof. The encoded bitstream can be decoded to re-create the source images from the limited information. For example, a video compression scheme can include transforming motion vector residuals for a current block of a video stream into transform blocks of transform coefficients. The transform coefficients are quantized and entropy coded into an encoded bitstream. A decoder uses the encoded transform coefficients to decode or decompress the encoded bitstream to prepare the video stream for viewing or further processing.
- The transform coefficients in a transform block can include a DC coefficient, which is located at the top-left of the transform block and has a magnitude representing the average value of the transform coefficients. Typical video compression techniques use a bit to signal the sign of a DC coefficient to a decoder, which may be positive or negative. For example, the decoder can determine that the sign of the DC coefficient is negative when the bit has a value of zero and positive when the bit has a value of one. However, contextual information about the sign of the DC coefficient is not signaled to the decoder. Because a video sequence may include a large number of DC coefficients, using a correspondingly large number of bits to signal the signs of the DC coefficients imposes additional cost on the video compression.
- Implementations of this disclosure address problems such as these by determining a sign value of a DC coefficient of a current block using contextual information about the sign of the DC coefficient of neighbor blocks of the current block. First and second sign values are identified as respectively corresponding to an above neighbor block of the current block and a left neighbor block of the current block. A context value is calculated by applying a first weighting value to the first sign value and a second weighting value to the second sign value. The first weighting value is based on a boundary between the above neighbor block and the current block and the second weighting value is based on a boundary between the left neighbor block and the current block. A probability model usable for determining the sign value of the DC coefficient of the current block is selected based on the context model. The sign value of the DC coefficient of the current block is then determined using the probability model. The efficiency of coding DC coefficients can thus be improved, such as by not using bits to signal respective sign values of the blocks of a video sequence.
- Further details of techniques for coding DC coefficient sign values are described herein with initial reference to a system in which the techniques can be implemented.
FIG. 1 is a schematic of a video encoding anddecoding system 100. A transmittingstation 102 can be, for example, a computer having an internal configuration of hardware such as that described inFIG. 2 . However, other suitable implementations of the transmittingstation 102 are possible. For example, the processing of the transmittingstation 102 can be distributed among multiple devices. - A
network 104 can connect the transmittingstation 102 and areceiving station 106 for encoding and decoding of the video stream. Specifically, the video stream can be encoded in thetransmitting station 102, and the encoded video stream can be decoded in thereceiving station 106. Thenetwork 104 can be, for example, the Internet. Thenetwork 104 can also be a local area network (LAN), wide area network (WAN), virtual private network (VPN), cellular telephone network, or any other means of transferring the video stream from the transmittingstation 102 to, in this example, thereceiving station 106. - The
receiving station 106, in one example, can be a computer having an internal configuration of hardware such as that described inFIG. 2 . However, other suitable implementations of thereceiving station 106 are possible. For example, the processing of thereceiving station 106 can be distributed among multiple devices. - Other implementations of the video encoding and
decoding system 100 are possible. For example, an implementation can omit thenetwork 104. In another implementation, a video stream can be encoded and then stored for transmission at a later time to thereceiving station 106 or any other device having memory. In one implementation, thereceiving station 106 receives (e.g., via thenetwork 104, a computer bus, and/or some communication pathway) the encoded video stream and stores the video stream for later decoding. In an example implementation, a real-time transport protocol (RTP) is used for transmission of the encoded video over thenetwork 104. In another implementation, a transport protocol other than RTP may be used (e.g., a Hypertext Transfer Protocol-based (HTTP-based) video streaming protocol). - When used in a video conferencing system, for example, the transmitting
station 102 and/or thereceiving station 106 may include the ability to both encode and decode a video stream as described below. For example, thereceiving station 106 could be a video conference participant who receives an encoded video bitstream from a video conference server (e.g., the transmitting station 102) to decode and view and further encodes and transmits his or her own video bitstream to the video conference server for decoding and viewing by other participants. -
FIG. 2 is a block diagram of an example of acomputing device 200 that can implement a transmitting station or a receiving station. For example, thecomputing device 200 can implement one or both of the transmittingstation 102 and thereceiving station 106 ofFIG. 1 . Thecomputing device 200 can be in the form of a computing system including multiple computing devices, or in the form of one computing device, for example, a mobile phone, a tablet computer, a laptop computer, a notebook computer, a desktop computer, and the like. - A
CPU 202 in thecomputing device 200 can be a conventional central processing unit. Alternatively, theCPU 202 can be any other type of device, or multiple devices, capable of manipulating or processing information now existing or hereafter developed. Although the disclosed implementations can be practiced with one processor as shown (e.g., the CPU 202), advantages in speed and efficiency can be achieved by using more than one processor. - A
memory 204 incomputing device 200 can be a read only memory (ROM) device or a random access memory (RAM) device in an implementation. Any other suitable type of storage device can be used as thememory 204. Thememory 204 can include code anddata 206 that is accessed by theCPU 202 using abus 212. Thememory 204 can further include anoperating system 208 andapplication programs 210, theapplication programs 210 including at least one program that permits theCPU 202 to perform the methods described herein. For example, theapplication programs 210 can includeapplications 1 through N, which further include a video coding application that performs the methods described here.Computing device 200 can also include a secondary storage 214, which can, for example, be a memory card used with a mobile computing device. Because the video communication sessions may contain a significant amount of information, they can be stored in whole or in part in the secondary storage 214 and loaded into thememory 204 as needed for processing. - The
computing device 200 can also include one or more output devices, such as adisplay 218. Thedisplay 218 may be, in one example, a touch sensitive display that combines a display with a touch sensitive element that is operable to sense touch inputs. Thedisplay 218 can be coupled to theCPU 202 via thebus 212. Other output devices that permit a user to program or otherwise use thecomputing device 200 can be provided in addition to or as an alternative to thedisplay 218. When the output device is or includes a display, the display can be implemented in various ways, including by a liquid crystal display (LCD), a cathode-ray tube (CRT) display or a light emitting diode (LED) display, such as an organic LED (OLED) display. - The
computing device 200 can also include or be in communication with an image-sensingdevice 220, for example, a camera, or any other image-sensingdevice 220 now existing or hereafter developed that can sense an image such as the image of a user operating thecomputing device 200. The image-sensingdevice 220 can be positioned such that it is directed toward the user operating thecomputing device 200. In an example, the position and optical axis of the image-sensingdevice 220 can be configured such that the field of vision includes an area that is directly adjacent to thedisplay 218 and from which thedisplay 218 is visible. - The
computing device 200 can also include or be in communication with a sound-sensing device 222, for example, a microphone, or any other sound-sensing device now existing or hereafter developed that can sense sounds near thecomputing device 200. The sound-sensing device 222 can be positioned such that it is directed toward the user operating thecomputing device 200 and can be configured to receive sounds, for example, speech or other utterances, made by the user while the user operates thecomputing device 200. - Although
FIG. 2 depicts theCPU 202 and thememory 204 of thecomputing device 200 as being integrated into one unit, other configurations can be utilized. The operations of theCPU 202 can be distributed across multiple machines (wherein individual machines can have one or more processors) that can be coupled directly or across a local area or other network. Thememory 204 can be distributed across multiple machines such as a network-based memory or memory in multiple machines performing the operations of thecomputing device 200. Although depicted here as one bus, thebus 212 of thecomputing device 200 can be composed of multiple buses. Further, the secondary storage 214 can be directly coupled to the other components of thecomputing device 200 or can be accessed via a network and can comprise an integrated unit such as a memory card or multiple units such as multiple memory cards. Thecomputing device 200 can thus be implemented in a wide variety of configurations. -
FIG. 3 is a diagram of an example of avideo stream 300 to be encoded and subsequently decoded. Thevideo stream 300 includes avideo sequence 302. At the next level, thevideo sequence 302 includes a number ofadjacent frames 304. While three frames are depicted as theadjacent frames 304, thevideo sequence 302 can include any number ofadjacent frames 304. Theadjacent frames 304 can then be further subdivided into individual frames, for example, aframe 306. At the next level, theframe 306 can be divided into a series of planes orsegments 308. Thesegments 308 can be subsets of frames that permit parallel processing, for example. Thesegments 308 can also be subsets of frames that can separate the video data into separate colors. For example, aframe 306 of color video data can include a luminance plane and two chrominance planes. Thesegments 308 may be sampled at different resolutions. - Whether or not the
frame 306 is divided intosegments 308, theframe 306 may be further subdivided intoblocks 310, which can contain data corresponding to, for example, 16×16 pixels in theframe 306. Theblocks 310 can also be arranged to include data from one ormore segments 308 of pixel data. Theblocks 310 can also be of any other suitable size such as 4×4 pixels, 8×8 pixels, 16×8 pixels, 8×16 pixels, 16×16 pixels, or larger. Unless otherwise noted, the terms block and macroblock are used interchangeably herein. -
FIG. 4 is a block diagram of anencoder 400 according to implementations of this disclosure. Theencoder 400 can be implemented, as described above, in the transmittingstation 102, such as by providing a computer software program stored in memory, for example, thememory 204. The computer software program can include machine instructions that, when executed by a processor such as theCPU 202, cause the transmittingstation 102 to encode video data in the manner described inFIG. 4 . Theencoder 400 can also be implemented as specialized hardware included in, for example, the transmittingstation 102. In one particularly desirable implementation, theencoder 400 is a hardware encoder. - The
encoder 400 has the following stages to perform the various functions in a forward path (shown by the solid connection lines) to produce an encoded orcompressed bitstream 420 using thevideo stream 300 as input: an intra/inter prediction stage 402, atransform stage 404, aquantization stage 406, and anentropy encoding stage 408. Theencoder 400 may also include a reconstruction path (shown by the dotted connection lines) to reconstruct a frame for encoding of future blocks. InFIG. 4 , theencoder 400 has the following stages to perform the various functions in the reconstruction path: adequantization stage 410, aninverse transform stage 412, areconstruction stage 414, and aloop filtering stage 416. Other structural variations of theencoder 400 can be used to encode thevideo stream 300. - When the
video stream 300 is presented for encoding,respective frames 304, such as theframe 306, can be processed in units of blocks. At the intra/inter prediction stage 402, respective blocks can be encoded using intra-frame prediction (also called intra-prediction) or inter-frame prediction (also called inter-prediction). In any case, a prediction block can be formed. In the case of intra-prediction, a prediction block may be formed from samples in the current frame that have been previously encoded and reconstructed. In the case of inter-prediction, a prediction block may be formed from samples in one or more previously constructed reference frames. Implementations for forming a prediction block are discussed below with respect toFIGS. 6, 7, and 8 , for example, using warped motion compensation to project pixels of a current block to a warped patch of a reference frame. - Next, still referring to
FIG. 4 , the prediction block can be subtracted from the current block at the intra/inter prediction stage 402 to produce a residual block (also called a residual). Thetransform stage 404 transforms the residual into transform coefficients in, for example, the frequency domain using block-based transforms. Thequantization stage 406 converts the transform coefficients into discrete quantum values, which are referred to as quantized transform coefficients, using a quantizer value or a quantization level. For example, the transform coefficients may be divided by the quantizer value and truncated. The quantized transform coefficients are then entropy encoded by theentropy encoding stage 408. The entropy-encoded coefficients, together with other information used to decode the block (which may, for example, include the type of prediction used, transform type, motion vectors, and quantizer value), are then output to thecompressed bitstream 420. Thecompressed bitstream 420 can be formatted using various techniques, such as variable length coding (VLC) or arithmetic coding. Thecompressed bitstream 420 can also be referred to as an encoded video stream or encoded video bitstream, and the terms will be used interchangeably herein. - The reconstruction path in
FIG. 4 (shown by the dotted connection lines) can be used to ensure that theencoder 400 and a decoder 500 (described below) use the same reference frames to decode thecompressed bitstream 420. The reconstruction path performs functions that are similar to functions (discussed in more detail below) that take place during the decoding process, including dequantizing the quantized transform coefficients at thedequantization stage 410 and inverse transforming the dequantized transform coefficients at theinverse transform stage 412 to produce a derivative residual block (also called a derivative residual). At thereconstruction stage 414, the prediction block that was predicted at the intra/inter prediction stage 402 can be added to the derivative residual to create a reconstructed block. Theloop filtering stage 416 can be applied to the reconstructed block to reduce distortion such as blocking artifacts. - Other variations of the
encoder 400 can be used to encode thecompressed bitstream 420. For example, a non-transform based encoder can quantize the residual signal directly without thetransform stage 404 for certain blocks or frames. In another implementation, an encoder can have thequantization stage 406 and thedequantization stage 410 combined in a common stage. -
FIG. 5 is a block diagram of adecoder 500 according to implementations of this disclosure. Thedecoder 500 can be implemented in the receivingstation 106, for example, by providing a computer software program stored in thememory 204. The computer software program can include machine instructions that, when executed by a processor such as theCPU 202, cause the receivingstation 106 to decode video data in the manner described inFIG. 5 . Thedecoder 500 can also be implemented in hardware included in, for example, the transmittingstation 102 or the receivingstation 106. - The
decoder 500, similar to the reconstruction path of theencoder 400 discussed above, includes in one example the following stages to perform various functions to produce anoutput video stream 516 from the compressed bitstream 420: anentropy decoding stage 502, adequantization stage 504, aninverse transform stage 506, an intra/inter prediction stage 508, areconstruction stage 510, aloop filtering stage 512, and adeblocking filtering stage 514. Other structural variations of thedecoder 500 can be used to decode thecompressed bitstream 420. - When the
compressed bitstream 420 is presented for decoding, the data elements within thecompressed bitstream 420 can be decoded by theentropy decoding stage 502 to produce a set of quantized transform coefficients. Thedequantization stage 504 dequantizes the quantized transform coefficients (e.g., by multiplying the quantized transform coefficients by the quantizer value), and theinverse transform stage 506 inverse transforms the dequantized transform coefficients to produce a derivative residual that can be identical to that created by theinverse transform stage 412 in theencoder 400. Using header information decoded from thecompressed bitstream 420, thedecoder 500 can use the intra/inter prediction stage 508 to create the same prediction block as was created in theencoder 400, e.g., at the intra/inter prediction stage 402. Implementations for forming a same prediction block as was created in theencoder 400 are discussed below with respect toFIGS. 6, 7, and 8 , for example, using warped motion compensation to project pixels of a current block to a warped patch of a reference frame. At thereconstruction stage 510, the prediction block can be added to the derivative residual to create a reconstructed block. Theloop filtering stage 512 can be applied to the reconstructed block to reduce blocking artifacts. - Other filtering can be applied to the reconstructed block. In this example, the
deblocking filtering stage 514 is applied to the reconstructed block to reduce blocking distortion, and the result is output as theoutput video stream 516. Theoutput video stream 516 can also be referred to as a decoded video stream, and the terms will be used interchangeably herein. Other variations of thedecoder 500 can be used to decode thecompressed bitstream 420. For example, thedecoder 500 can produce theoutput video stream 516 without thedeblocking filtering stage 514. -
FIG. 6 is an illustration of an example of coefficients of atransform block 600. Thetransform block 600 includes oneDC coefficient 602 and a number ofAC coefficients 604. For example, because thetransform block 600 is a 16×16 transform block comprising 216 pixels, the transform block includes 215 AC coefficients. - The DC coefficient 602 and the
AC coefficients 604 of thetransform block 600 are transformed residual pixel values. The residual pixel values may be generated by a prediction operation (e.g., the intra/inter prediction stage 402 shown inFIG. 4 ) and transformed by a transform operation (e.g., thetransform stage 404 shown inFIG. 4 ). For example, a discrete cosine transform can be applied to move the coefficients to different positions within thetransform block 600. The transformation of the residual pixel values results in theDC coefficient 602 being located at the top-leftmost position of a transform block and theAC coefficients 604 being located at the other positions of the transform block. - The DC coefficient 602 of the
transform block 600 has a magnitude that represents an average of the transformed residual pixel values of the transform block (e.g., the AC coefficients 604). The DC coefficient 602 thus has a sign value. The sign value is positive where the magnitude is above zero and negative where the magnitude is below zero. The sign value may not be negative or positive where the magnitude is equal to zero. Alternatively, the sign value may by default be configured to be one of positive or negative where the magnitude is equal to zero. -
FIG. 7 is an illustration of an example of neighbor blocks used to determine the sign value of the DC coefficient of acurrent block 700. Thecurrent block 700 is one of a number of transform blocks (e.g., thetransform block 600 shown inFIG. 6 ) of acurrent frame 702. Thecurrent frame 702 also includes anabove neighbor block 704, anabove neighbor block 706, aleft neighbor block 708, and aleft neighbor block 710. The neighbor blocks 704, 706, 708, and 710 are transform blocks and spatial neighbors of thecurrent block 700. - The sign value of the DC coefficient of the
current block 700 is determined using a probability model selected based on the sign values of the DC coefficients of the neighbor blocks 704, 706, 708, and 710. A context value can be calculated based on the sign values of the DC coefficients of the neighbor blocks 704, 706, 708, and 710. A probability model corresponding to the calculated context value can be determined for determining the sign value of the DC coefficient of the current block. The sign value of the DC coefficient of the current block can then be determined using the selected probability model. - The context value is calculated using the following formula:
-
dc_sum=Σdc_sign(nb_block)*boundary(nb_block,curr_block)nb_blocks - where dc_sum is the context value, nb_blocks is the total number of neighbor blocks, dc_sign(nb_block) is the sign value of a current neighbor block, and boundary(nb_block, curr_block) is the length of the boundary between the current neighbor block and the current block. Accordingly, the context value is calculated by applying a weighting value to respective sign values of the DC coefficients of the neighbor blocks 704, 706, 708, and 710. The weighting value applied to such a sign value is determined based on a number of pixels comprising a length of a boundary between the neighbor block having the sign value and the current block.
- For example, as shown in
FIG. 7 , each of the neighbor blocks 704, 706, 708, and 710 has an equally long length of boundary with thecurrent block 700. As such, the same weighting value (e.g., 1) is applied for each of the neighbor blocks 704, 706, 708, and 710. The neighbor blocks 704, 708, and 710 have a negative sign value for their DC coefficients, while theneighbor block 706 has a positive sign value for its DC coefficient. As such, the context value for the blocks shown inFIG. 7 equals −2 (e.g., dc_sum=−1+1+−1+−1). In another example, such as where theneighbor block 704 is not present and the boundary between theneighbor block 706 and thecurrent block 700 extends for the entire length of the upper boundary of the current block, theneighbor block 706 would have a weighting value (e.g., 2) that is twice the weighting value applied to the sign values of the neighbor blocks 708 and 710 (e.g., 1). In that case, the context value would equal 0 (e.g., dc_sum=2+−1+−1). - The probability value used for determining sign value of the DC coefficient of the current block is selected based on the calculated context value using the following Table 1:
-
TABLE 1 Probability Model Index Context Value (dc_sum) 0 Greater than 0 1 Less than 0 2 Equal to 0 - As such, when the context value is calculated to be greater than 0, a first probability model (e.g., having a probability model index of 0) is selected; when the context value is calculated to be less than 0, a second probability model (e.g., having a probability model index of 1) is selected; and when the context value is calculated to be equal to 0, a third probability model (e.g., having a probability model index of 2) is selected. Referring back to the example shown in
FIG. 7 , where the context value is calculated to be −2, the second probability model is selected for determining the sign value for the DC coefficient of thecurrent block 700. - A probability model usable for determining the sign value for the DC coefficient of the
current block 700 indicates a probability that the sign value for the DC coefficient of thecurrent block 700 is positive, negative, or equal to zero. The probability model can include an integer value that, when divided by a maximum value, indicates the probability of the sign value for the DC coefficient of thecurrent block 700 being positive, negative, or equal to zero (e.g., represented as a percentage or like value). The maximum value can be a global maximum value shared by all or a portion of the probability models usable by the techniques of this disclosure. - For example, the maximum value can be in the scale of 256. A probability model having the probability model index 0 can include the integer value 119. When the context value indicates to select that probability model, that probability model indicates that there is a 119/256 probability that the sign value of the DC coefficient of the
current block 700 is positive. That probability model further indicates that there is a (256−119)/256 probability that the sign value of the DC coefficient of thecurrent block 700 is negative. - The probabilities associated with a probability model are processed using entropy coding (e.g., the
entropy coding stage 408 shown inFIG. 4 ). For example, arithmetic coding can be used to determine the sign value of the DC coefficient of thecurrent block 700 using the probabilities associated with a selected probability model. For example, once the sign value of the DC coefficient of thecurrent block 700 is determined by theentropy coding stage 408 of theencoder 400, it can be compressed into an encoded bitstream. - The probability models that can be selected based on the context value can be updated, such as based on results of a decoding process using the probability models (e.g., by the
decoder 500 shown inFIG. 5 ). For example, if the results of a decoding process that use a first probability model (e.g., having a probability model index of 0) indicate that the sign value of the DC coefficient of thecurrent block 700 more often is determined to be positive, that probability model can be updated, such as by updating the integer value thereof. Updating the probability models in this way may improve the efficiency of the entropy coding and/or decoding of the sign values of the DC coefficients of current blocks. - In some implementations, the sign value can be represented other than as in Table 1, above. For example, the sign values can be indicated using integers, such as where the sign value of the DC coefficient of the current block is 0 when the context value is equal to 0, 1 when the context value is less than 0, and 2 when the context value is greater than 0. The integer value can be passed between an encoder and decoder to indicate the sign value of the DC coefficient of the current block, such as when the sign value of the DC coefficient of the current block is encoded and/or decoded with reference to a coefficient sign map.
-
FIG. 8 is a flowchart diagram of aprocess 800 for DC coefficient sign coding. Theprocess 800 can be implemented, for example, as a software program that may be executed by computing devices such as the transmittingstation 102 or the receivingstation 106. For example, the software program can include machine-readable instructions that may be stored in a memory such as thememory 204 or the secondary storage 214, and that, when executed by a processor, such as theCPU 202, may cause the computing device to perform theprocess 800. Theprocess 800 can be implemented using specialized hardware or firmware. As explained above, some computing devices may have multiple memories or processors, and the operations described in theprocess 800 can be distributed using multiple processors, memories, or both. - At 802, sign values of DC coefficients of one or more neighbor blocks of a current block are identified. Identifying the sign values of the DC coefficients of the neighbor blocks can include receiving those sign values from a database or other data store (including, but not limited to, a block header or a frame header), generating those sign values such as using instructions executable by a processor (e.g., during an encoding or decoding process, such as is generally shown in
FIGS. 4 and 5 , respectively), identifying those sign values within a coefficient sign map, other techniques for identifying those sign values, or combinations thereof. - Identifying the sign values of the DC coefficients of the neighbor blocks may first include identifying the neighbor blocks within a frame of a video sequence, where the frame also includes the current block. For example, identifying the neighbor blocks can include identifying a position of the current block within the frame and then identifying one or more blocks that are adjacent to one of an upper boundary, left boundary, lower boundary, or right boundary of the current block.
- When the frame that includes the current block is encoded or decoded according to a raster order or similar order for processing the blocks thereof, the neighbor blocks identified for use by the
process 800 may be above neighbor blocks of the current block or left neighbor blocks of the current block. For example, identifying the sign values of the DC coefficients of the neighbor blocks can include identifying a first sign value corresponding to a DC coefficient of an above neighbor block of the current block and a second sign value corresponding to a DC coefficient of a left neighbor block of the current block. However, other neighbor blocks may be used by theprocess 800, such as where blocks within a frame of a video sequence are not encoded or decoded according to a raster order or similar order. - At 804, a context value is calculated by applying weighting values to the sign values identified at 802. The weighting values are determined based on the number of pixels comprising the length of boundary between corresponding ones of the neighbor blocks and the current block. For example, where the neighbor blocks identified at 802 include an above neighbor block and a left neighbor block, a first weighting value is determined based on a first number of pixels comprising the boundary between the above neighbor block and the current block, and a second weighting value is determined based on a second number of pixels comprising the boundary between the left neighbor block and the current block.
- Calculating the context value first includes multiplying sign values and corresponding weighting values for respective ones of the neighbor blocks having a sign value identified at 802. For example, a first value can be calculated for the above neighbor block described above by multiplying its sign value and the first weighting value, and a second value can be calculated for the left neighbor block by multiplying its sign value and the second weighting value. The context value can then be calculated by adding the calculated values for the respective neighbor blocks. For example, the context value can be calculated by adding the first value and the second value described above.
- As such, as used herein, a context value refers to the sum of a plurality of values calculated by multiplying sign values and weighting values for respective ones of a plurality of neighbor blocks. However, a context value may alternatively refer to the product of a sign value and a weighting value for an individual neighbor block. For example, there may be multiple context values calculated to determine the sign value of the DC coefficient of a current block.
- For example, calculating multiple context values at 806 can include deriving context values for respective ones of the neighbor blocks by multiplying a sign value of a DC coefficient of the neighbor block and a number of pixels comprising a boundary between the neighbor block and the current block. The context values may then be added together to calculate a value usable for determining the sign value of the DC coefficient of the current block, as described below.
- At 806, a probability model usable for determining the sign value of the DC coefficient of the current block is selected based on the context value calculated at 804 (or plurality of context values, as applicable). For example, a first probability model is selected when the context value is greater than zero, a second probability model is selected when the context value is less than zero, and a third probability model is selected when the context value is equal to zero.
- At 808, the probability model selected at 806 is used to determine the sign value of the DC coefficient of the current block. For example, an integer value of the selected probability model can be compared to a maximum value thereof to determine the probabilities that the sign value of the DC coefficient of the current block is positive, negative, or zero. In an encoding process, those probabilities are used by an entropy coding stage (e.g., the
entropy coding stage 408 shown inFIG. 4 ) to determine the sign value of the DC coefficient of the current block, such as using arithmetic coding, and then compress the determined sign value into an encoded bitstream. In a decoding process, those probabilities are used by an entropy decoding stage (e.g., theentropy decoding stage 502 shown inFIG. 5 ) to determine the sign value of the DC coefficient of the current block based on values compressed within an encoded bitstream. - However, in some implementations, when the context value equals zero, the sign value of the DC coefficient of the current block is determined to be an average of sign values of a plurality of AC coefficients of the current block. That is, the context value is used to determine a sign value of the DC coefficient of the current block based on the neighbor blocks. When the context value is zero, it means that the neighbor blocks do not indicate a likelihood of the sign value of the DC coefficient of the current block. In these cases, the sign value of the DC coefficient of the current block is calculated using data of the current block independently of data from the neighbor blocks. A sign value calculated independently of data from neighbor blocks can be signaled using a bit or compressed within the encoded bitstream (e.g., within a block or frame header, as part of a coefficient sign map, etc.).
- For simplicity of explanation, the
process 800 is depicted and described as a series of steps or operations. However, the steps or operations in accordance with this disclosure can occur in various orders and/or concurrently. Additionally, other steps or operations not presented and described herein may be used. Furthermore, not all illustrated steps or operations may be required to implement a method in accordance with the disclosed subject matter. - In some implementations, the sign value of the DC coefficient of a current block can be determined without using sign values of DC coefficients of neighbor blocks of the current block. For example, the
process 800 can include determining an average residual pixel value for respective neighbor blocks, wherein the average residual pixel value is a mean of the coefficients of the neighbor block resulting after the block is transformed. In some implementations, calculating an average residual pixel value for a neighbor block can include adding individual residual pixel values of the neighbor block and dividing the sum thereof by the total number of residual pixels within the neighbor block. The sign value of the calculated average residual pixel value may then be used to determine the sign value of the DC coefficient of the current block in place of the sign value of the DC coefficient of that neighbor block. - In some implementations, the
process 800 can be a process for determining a sign value of a non-DC coefficient of the current block using the neighbor blocks of the current block. For example, theprocess 800 can be performed to infer an average sign value for the residual pixels of the current block. The average sign value for the residual pixels of the current block can be calculated using average residual pixel values of neighbor blocks, for example, calculated as described above. - The
process 800 can be performed by an encoder, such as theencoder 400 shown inFIG. 4 , and/or a decoder, such as thedecoder 500 shown inFIG. 5 . When theprocess 800 is performed by an encoder, the sign value of the DC coefficient of the current block can be determined responsive or otherwise proximate to the transform operation (e.g., thetransform stage 404 shown inFIG. 4 ). For example, theprocess 800 can be performed using transform blocks comprising transformed residual pixel values, wherein the residual pixel values are determined via a prediction operation (e.g., the intra/inter prediction stage 402 shown inFIG. 4 ). - Separately, when the
process 800 is performed by a decoder, the sign value of the DC coefficient of the current block can be determined during or otherwise proximate to an inverse transform operation (e.g., theinverse transform stage 506 shown inFIG. 5 ). For example, theprocess 800 can be performed to decode the transformed residual pixel values of the current block by identifying the sign value of the DC coefficient of the current block using the sign values of the DC coefficients of the neighbor blocks of the current block. - In some implementations, such as where the
process 800 is performed by an encoder, theprocess 800 can include an operation for compressing the sign value of the DC coefficient of the current block. For example, the compressed sign value of the DC coefficient of the current block may be included within a block header corresponding to the current block within an encoded bitstream. In another example, the compressed sign value of the DC coefficient of the current block may be included within a frame header corresponding to a frame including the current block within an encoded bitstream. In yet another example, the compressed sign value of the DC coefficient of the current block may be encoded as part of a coefficient sign map for the current block, the frame that includes the current block, or another structure within the encoded bitstream. - In some implementations, such as where the
process 800 is performed by a decoder, theprocess 800 can include an operation for decompressing the compressed sign value of the DC coefficient of an encoded current block. For example, the decoder can receive the compressed sign value of the DC coefficient of the encoded current block from a block header corresponding to the encoded current block within an encoded bitstream. In another example, the decoder can receive the compressed sign value of the DC coefficient of the encoded current block from a frame header corresponding to an encoded frame including the encoded current block within the encoded bitstream. In yet another example, the decoder can receive the compressed sign value of the DC coefficient of the encoded current block from a coefficient sign map for the encoded current block, the encoded frame that includes the encoded current block, or another structure within the encoded bitstream. - The aspects of encoding and decoding described above illustrate some examples of encoding and decoding techniques. However, it is to be understood that encoding and decoding, as those terms are used in the claims, could mean compression, decompression, transformation, or any other processing or change of data.
- The word “example” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “example” is not necessarily to be construed as being preferred or advantageous over other aspects or designs. Rather, use of the word “example” is intended to present concepts in a concrete fashion. As used in this application, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or”. That is, unless specified otherwise or clearly indicated otherwise by the context, the statement “X includes A or B” is intended to mean any of the natural inclusive permutations thereof. That is, if X includes A; X includes B; or X includes both A and B, then “X includes A or B” is satisfied under any of the foregoing instances. In addition, the articles “a” and “an” as used in this application and the appended claims should generally be construed to mean “one or more,” unless specified otherwise or clearly indicated by the context to be directed to a singular form. Moreover, use of the term “an implementation” or the term “one implementation” throughout this disclosure is not intended to mean the same embodiment or implementation unless described as such.
- Implementations of the transmitting
station 102 and/or the receiving station 106 (and the algorithms, methods, instructions, etc., stored thereon and/or executed thereby, including by theencoder 400 and the decoder 500) can be realized in hardware, software, or any combination thereof. The hardware can include, for example, computers, intellectual property (IP) cores, application-specific integrated circuits (ASICs), programmable logic arrays, optical processors, programmable logic controllers, microcode, microcontrollers, servers, microprocessors, digital signal processors, or any other suitable circuit. In the claims, the term “processor” should be understood as encompassing any of the foregoing hardware, either singly or in combination. The terms “signal” and “data” are used interchangeably. Further, portions of the transmittingstation 102 and the receivingstation 106 do not necessarily have to be implemented in the same manner. - Further, in one aspect, for example, the transmitting
station 102 or the receivingstation 106 can be implemented using a general purpose computer or general purpose processor with a computer program that, when executed, carries out any of the respective methods, algorithms, and/or instructions described herein. In addition, or alternatively, for example, a special purpose computer/processor can be utilized which can contain other hardware for carrying out any of the methods, algorithms, or instructions described herein. - The transmitting
station 102 and the receivingstation 106 can, for example, be implemented on computers in a video conferencing system. Alternatively, the transmittingstation 102 can be implemented on a server, and the receivingstation 106 can be implemented on a device separate from the server, such as a handheld communications device. In this instance, the transmittingstation 102, using theencoder 400, can encode content into an encoded video signal and transmit the encoded video signal to the communications device. In turn, the communications device can then decode the encoded video signal using adecoder 500. Alternatively, the communications device can decode content stored locally on the communications device, for example, content that was not transmitted by the transmittingstation 102. Other suitable transmitting and receiving implementation schemes are available. For example, the receivingstation 106 can be a generally stationary personal computer rather than a portable communications device, and/or a device including anencoder 400 may also include adecoder 500. - Further, all or a portion of implementations of the present disclosure can take the form of a computer program product accessible from, for example, a computer-usable or computer-readable medium. A computer-usable or computer-readable medium can be any device that can, for example, tangibly contain, store, communicate, or transport the program for use by or in connection with any processor. The medium can be, for example, an electronic, magnetic, optical, electromagnetic, or semiconductor device. Other suitable mediums are also available.
- The above-described embodiments, implementations and aspects have been described in order to facilitate easy understanding of this disclosure and do not limit this disclosure. On the contrary, this disclosure is intended to cover various modifications and equivalent arrangements included within the scope of the appended claims, which scope is to be accorded the broadest interpretation as is permitted under the law so as to encompass all such modifications and equivalent arrangements.
Claims (20)
Priority Applications (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/409,862 US10194147B2 (en) | 2017-01-19 | 2017-01-19 | DC coefficient sign coding scheme |
EP17835739.8A EP3571841B1 (en) | 2017-01-19 | 2017-10-31 | Dc coefficient sign coding scheme |
CN202010294872.9A CN111614956B (en) | 2017-01-19 | 2017-10-31 | DC coefficient sign coding scheme |
PCT/US2017/059241 WO2018136128A1 (en) | 2017-01-19 | 2017-10-31 | Dc coefficient sign coding scheme |
CN201780082767.5A CN110169068B (en) | 2017-01-19 | 2017-10-31 | DC coefficient sign coding scheme |
US16/244,674 US10623731B2 (en) | 2017-01-19 | 2019-01-10 | DC coefficient sign coding scheme |
US16/838,544 US11102477B2 (en) | 2017-01-19 | 2020-04-02 | DC coefficient sign coding scheme |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/409,862 US10194147B2 (en) | 2017-01-19 | 2017-01-19 | DC coefficient sign coding scheme |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/244,674 Continuation US10623731B2 (en) | 2017-01-19 | 2019-01-10 | DC coefficient sign coding scheme |
Publications (2)
Publication Number | Publication Date |
---|---|
US20180205947A1 true US20180205947A1 (en) | 2018-07-19 |
US10194147B2 US10194147B2 (en) | 2019-01-29 |
Family
ID=61028162
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/409,862 Active 2037-03-27 US10194147B2 (en) | 2017-01-19 | 2017-01-19 | DC coefficient sign coding scheme |
US16/244,674 Active US10623731B2 (en) | 2017-01-19 | 2019-01-10 | DC coefficient sign coding scheme |
US16/838,544 Active US11102477B2 (en) | 2017-01-19 | 2020-04-02 | DC coefficient sign coding scheme |
Family Applications After (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/244,674 Active US10623731B2 (en) | 2017-01-19 | 2019-01-10 | DC coefficient sign coding scheme |
US16/838,544 Active US11102477B2 (en) | 2017-01-19 | 2020-04-02 | DC coefficient sign coding scheme |
Country Status (4)
Country | Link |
---|---|
US (3) | US10194147B2 (en) |
EP (1) | EP3571841B1 (en) |
CN (2) | CN110169068B (en) |
WO (1) | WO2018136128A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11431984B2 (en) | 2019-04-24 | 2022-08-30 | Bytedance Inc. | Constraints on quantized residual differential pulse code modulation representation of coded video |
US11431966B2 (en) | 2019-05-01 | 2022-08-30 | Bytedance Inc. | Intra coded video using quantized residual differential pulse code modulation coding |
US11438602B2 (en) | 2019-05-02 | 2022-09-06 | Bytedance Inc. | Coding mode based on a coding tree structure type |
US20220353547A1 (en) * | 2021-04-16 | 2022-11-03 | Tencent America LLC | Entropy coding of sign map for transform coefficients |
US20230012847A1 (en) * | 2019-04-19 | 2023-01-19 | Bytedance Inc. | Context Coding for Transform Skip Mode |
RU2817139C2 (en) * | 2019-04-19 | 2024-04-11 | Байтдэнс Инк. | Context-sensitive coding method for skip conversion mode |
US12075094B2 (en) | 2019-05-02 | 2024-08-27 | Bytedance Inc. | Signaling in transform skip mode |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114175653B (en) * | 2019-09-17 | 2023-07-25 | 北京达佳互联信息技术有限公司 | Method and apparatus for lossless codec mode in video codec |
US11677971B2 (en) | 2020-10-01 | 2023-06-13 | Tencent America LLC | Method and apparatus for video coding |
US20220312043A1 (en) * | 2021-03-29 | 2022-09-29 | Qualcomm Incorporated | Context modeling for sign prediction for video coding |
CN118338006A (en) * | 2023-01-11 | 2024-07-12 | 维沃移动通信有限公司 | Transform coefficient encoding method, transform coefficient decoding method and terminal |
Family Cites Families (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5301342A (en) * | 1990-12-20 | 1994-04-05 | Intel Corporation | Parallel processing computer for solving dense systems of linear equations by factoring rows, columns, and diagonal, inverting the diagonal, forward eliminating, and back substituting |
US6449392B1 (en) * | 1999-01-14 | 2002-09-10 | Mitsubishi Electric Research Laboratories, Inc. | Methods of scene change detection and fade detection for indexing of video sequences |
US6983079B2 (en) * | 2001-09-20 | 2006-01-03 | Seiko Epson Corporation | Reducing blocking and ringing artifacts in low-bit-rate coding |
US7519819B2 (en) * | 2002-05-29 | 2009-04-14 | Digimarc Corporatino | Layered security in digital watermarking |
US7738554B2 (en) * | 2003-07-18 | 2010-06-15 | Microsoft Corporation | DC coefficient signaling at small quantization step sizes |
KR100694093B1 (en) * | 2005-02-18 | 2007-03-12 | 삼성전자주식회사 | Apparatus for and method of predicting coefficients of video block |
US7873105B2 (en) * | 2005-04-01 | 2011-01-18 | Broadcom Corporation | Hardware implementation of optimized single inverse quantization engine for a plurality of standards |
KR100813258B1 (en) * | 2005-07-12 | 2008-03-13 | 삼성전자주식회사 | Apparatus and method for encoding and decoding of image data |
KR100873636B1 (en) * | 2005-11-14 | 2008-12-12 | 삼성전자주식회사 | Method and apparatus for encoding/decoding image using single coding mode |
US8126062B2 (en) * | 2007-01-16 | 2012-02-28 | Cisco Technology, Inc. | Per multi-block partition breakpoint determining for hybrid variable length coding |
JP2011510521A (en) * | 2007-09-12 | 2011-03-31 | ディジセンサリー・テクノロジーズ・プロプライアタリー・リミテッド | On-chip smart network camera system |
US8798137B2 (en) * | 2008-02-29 | 2014-08-05 | City University Of Hong Kong | Bit rate estimation in data or video compression |
KR20100136890A (en) * | 2009-06-19 | 2010-12-29 | 삼성전자주식회사 | Apparatus and method for arithmetic encoding and arithmetic decoding based context |
US8913666B2 (en) | 2010-10-01 | 2014-12-16 | Qualcomm Incorporated | Entropy coding coefficients using a joint context model |
US9106913B2 (en) | 2011-03-08 | 2015-08-11 | Qualcomm Incorporated | Coding of transform coefficients for video coding |
US9621894B2 (en) | 2012-01-13 | 2017-04-11 | Qualcomm Incorporated | Determining contexts for coding transform coefficient data in video coding |
MX370956B (en) * | 2012-01-20 | 2020-01-10 | Ge Video Compression Llc | Transform coefficient coding. |
US10085024B2 (en) * | 2012-04-13 | 2018-09-25 | Qualcomm Incorporated | Lookup table for rate distortion optimized quantization |
US9420289B2 (en) * | 2012-07-09 | 2016-08-16 | Qualcomm Incorporated | Most probable mode order extension for difference domain intra prediction |
WO2015051011A1 (en) * | 2013-10-02 | 2015-04-09 | Arris Enterprises, Inc. | Modified hevc transform tree syntax |
-
2017
- 2017-01-19 US US15/409,862 patent/US10194147B2/en active Active
- 2017-10-31 EP EP17835739.8A patent/EP3571841B1/en active Active
- 2017-10-31 CN CN201780082767.5A patent/CN110169068B/en active Active
- 2017-10-31 WO PCT/US2017/059241 patent/WO2018136128A1/en unknown
- 2017-10-31 CN CN202010294872.9A patent/CN111614956B/en active Active
-
2019
- 2019-01-10 US US16/244,674 patent/US10623731B2/en active Active
-
2020
- 2020-04-02 US US16/838,544 patent/US11102477B2/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230012847A1 (en) * | 2019-04-19 | 2023-01-19 | Bytedance Inc. | Context Coding for Transform Skip Mode |
RU2817139C2 (en) * | 2019-04-19 | 2024-04-11 | Байтдэнс Инк. | Context-sensitive coding method for skip conversion mode |
US11431984B2 (en) | 2019-04-24 | 2022-08-30 | Bytedance Inc. | Constraints on quantized residual differential pulse code modulation representation of coded video |
US11438597B2 (en) | 2019-04-24 | 2022-09-06 | Bytedance Inc. | Quantized residual differential pulse code modulation representation of coded video |
US11985323B2 (en) | 2019-04-24 | 2024-05-14 | Bytedance Inc. | Quantized residual differential pulse code modulation representation of coded video |
US11431966B2 (en) | 2019-05-01 | 2022-08-30 | Bytedance Inc. | Intra coded video using quantized residual differential pulse code modulation coding |
US11438602B2 (en) | 2019-05-02 | 2022-09-06 | Bytedance Inc. | Coding mode based on a coding tree structure type |
US12075094B2 (en) | 2019-05-02 | 2024-08-27 | Bytedance Inc. | Signaling in transform skip mode |
US20220353547A1 (en) * | 2021-04-16 | 2022-11-03 | Tencent America LLC | Entropy coding of sign map for transform coefficients |
Also Published As
Publication number | Publication date |
---|---|
CN110169068A (en) | 2019-08-23 |
US11102477B2 (en) | 2021-08-24 |
CN110169068B (en) | 2020-04-28 |
EP3571841A1 (en) | 2019-11-27 |
US10623731B2 (en) | 2020-04-14 |
WO2018136128A1 (en) | 2018-07-26 |
US20200236350A1 (en) | 2020-07-23 |
EP3571841B1 (en) | 2023-08-09 |
CN111614956A (en) | 2020-09-01 |
US10194147B2 (en) | 2019-01-29 |
CN111614956B (en) | 2022-04-05 |
US20190149816A1 (en) | 2019-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12047606B2 (en) | Transform kernel selection and entropy coding | |
US11102477B2 (en) | DC coefficient sign coding scheme | |
US10798408B2 (en) | Last frame motion vector partitioning | |
US9866862B2 (en) | Motion vector reference selection through reference frame buffer tracking | |
US9407915B2 (en) | Lossless video coding with sub-frame level optimal quantization values | |
US20190020888A1 (en) | Compound intra prediction for video coding | |
US20140098855A1 (en) | Lossless intra-prediction video coding | |
US20210021859A1 (en) | Same frame motion estimation and compensation | |
US10382767B2 (en) | Video coding using frame rotation | |
US20140098854A1 (en) | Lossless intra-prediction video coding | |
US10110914B1 (en) | Locally adaptive warped motion compensation in video coding | |
US10820014B2 (en) | Compound motion-compensated prediction | |
US10491923B2 (en) | Directional deblocking filter | |
US11870993B2 (en) | Transforms for large video and image blocks | |
US10448013B2 (en) | Multi-layer-multi-reference prediction using adaptive temporal filtering |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: GOOGLE INC., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:XU, YAOWU;HAN, JINGNING;CHIANG, CHING-HAN;SIGNING DATES FROM 20170117 TO 20170118;REEL/FRAME:041016/0635 |
|
AS | Assignment |
Owner name: GOOGLE LLC, CALIFORNIA Free format text: CHANGE OF NAME;ASSIGNOR:GOOGLE INC.;REEL/FRAME:044567/0001 Effective date: 20170929 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 4 |