Patent classifications
H04N19/124
METHOD AND APPARATUS FOR ENCODING VIDEO, AND STORAGE MEDIUM
Provided are a method and apparatus for encoding a video, and a storage medium, which relate to the field of cloud computing, in particular to the video encoding technology. The method includes: acquiring an actual encoding data amount and an encoding frame number of an encoder in a historical time period; calculating a desired encoding data amount in the historical time period according to a code rate of the encoder and the encoding frame number; and comparing the actual encoding data amount and the desired encoding data amount, and adjusting a quantization parameter of the encoder according to a comparison result to instruct the encoder to continue encoding using the adjusted quantization parameter.
VIDEO DECODING METHOD, VIDEO CODING METHOD, AND RELATED APPARATUS
A video decoding method includes: performing entropy decoding on a coding block of a video image frame to obtain a quantization coefficient block of residual data corresponding to the coding block; inversely quantizing the quantization coefficient block to obtain an inverse quantization coefficient matrix; inversely rearranging the inverse quantization coefficient matrix to obtain a processed coefficient matrix, non-zero coefficients in the processed coefficient matrix being concentrated in left, upper and upper left regions of the coefficient matrix; and generating the residual data according to the processed coefficient matrix.
VIDEO DECODING METHOD, VIDEO CODING METHOD, AND RELATED APPARATUS
A video decoding method includes: performing entropy decoding on a coding block of a video image frame to obtain a quantization coefficient block of residual data corresponding to the coding block; inversely quantizing the quantization coefficient block to obtain an inverse quantization coefficient matrix; inversely rearranging the inverse quantization coefficient matrix to obtain a processed coefficient matrix, non-zero coefficients in the processed coefficient matrix being concentrated in left, upper and upper left regions of the coefficient matrix; and generating the residual data according to the processed coefficient matrix.
VIDEO ENCODING METHOD AND APPARATUS, VIDEO DECODING METHOD AND APPARATUS, AND DEVICE
A video encoding method includes: decoding a target coding unit to obtain a quantization coefficient matrix corresponding to the target coding unit; determining first reference information according to a quantization coefficient in the quantization coefficient matrix; obtaining a value of a target flag bit corresponding to the first reference information, the target flag bit being a flag bit of a target sub-block position, the target sub-block position being a position of a sub-block that requires processing of residual data in a coding unit; and determining the target sub-block position of the target coding unit according to the value of the target flag bit. A flag bit of a sub-block transform position or a transform skip sub-block position in a target coding unit is implicitly indicated using a quantization coefficient in a quantization coefficient matrix corresponding to a coding unit.
VIDEO ENCODING METHOD AND APPARATUS, VIDEO DECODING METHOD AND APPARATUS, AND DEVICE
A video encoding method includes: decoding a target coding unit to obtain a quantization coefficient matrix corresponding to the target coding unit; determining first reference information according to a quantization coefficient in the quantization coefficient matrix; obtaining a value of a target flag bit corresponding to the first reference information, the target flag bit being a flag bit of a target sub-block position, the target sub-block position being a position of a sub-block that requires processing of residual data in a coding unit; and determining the target sub-block position of the target coding unit according to the value of the target flag bit. A flag bit of a sub-block transform position or a transform skip sub-block position in a target coding unit is implicitly indicated using a quantization coefficient in a quantization coefficient matrix corresponding to a coding unit.
HARDWARE PIPELINES FOR RATE-DISTORTION OPTIMIZATION (RDO) THAT SUPPORT MULTIPLE CODECS
A disclosed system may include a hardware distortion data pipeline that may include (1) a quantization module that generates a quantized data set, (2) an inverse quantization module that generates, from the quantized data set, an inverse quantized data set by executing an inverse quantization of the quantized data set, and (3) an inverse transformation module that generates an inversely transformed data set by executing an inverse transformation of the inverse quantized data set. The system may also include a hardware determination pipeline that determines a distortion metric based on the inversely transformed data set and the residual frame data set, and a hardware token rate pipeline that determines, based on the quantized data set, a token rate for an encoding of the residual frame data set via a video encoding pipeline. Various other methods, systems, and computer-readable media are also disclosed.
HARDWARE PIPELINES FOR RATE-DISTORTION OPTIMIZATION (RDO) THAT SUPPORT MULTIPLE CODECS
A disclosed system may include a hardware distortion data pipeline that may include (1) a quantization module that generates a quantized data set, (2) an inverse quantization module that generates, from the quantized data set, an inverse quantized data set by executing an inverse quantization of the quantized data set, and (3) an inverse transformation module that generates an inversely transformed data set by executing an inverse transformation of the inverse quantized data set. The system may also include a hardware determination pipeline that determines a distortion metric based on the inversely transformed data set and the residual frame data set, and a hardware token rate pipeline that determines, based on the quantized data set, a token rate for an encoding of the residual frame data set via a video encoding pipeline. Various other methods, systems, and computer-readable media are also disclosed.
Constraint-modified selection of video encoding configurations
A video to be encoded to a plurality of different target encodings for bandwidth adaptive serving is received. The video is encoded into a plurality of different candidate encodings using different candidate encoding parameters. A quality metric is determined for each of the plurality of different candidate encodings. One or more different target quality metrics are selected for a first portion of the different target encodings based at least in part on one or more specified constraints for one or more target devices. One or more different target quality metrics are selected for a second portion of the different target encodings based at least in part on the determined quality metrics of the different candidate encodings. Based at least in part on the selected different target quality metrics for the first portion and the second portion, the plurality of different target encodings of the video is generated.
Image signal processing pipelines for high dynamic range sensors
Apparatuses, systems, and techniques to receive, at one or more processor associated with an image signal processing (ISP) pipeline, a compressed image generated by an image sensor, wherein the compressed image is captured at a first bit-depth associated with the image sensor and is compressed to a second bit-depth that is lower than the first bit-depth, and wherein the ISP is associated with a third bit-depth that is lower than the first bit-depth and higher than the second bit-depth; and decompress the compressed image according to a power curve to generate a partially decompressed image having the third bit-depth, wherein a plurality of regions of the partially decompressed image are decompressed at separate decompression amounts based on a corresponding pixel value of each region of the plurality of regions.
Apparatus of decoding video data
An apparatus can include a prediction mode decoding module configured to derive a luma intra prediction mode and a chroma intra prediction mode; a prediction size determining module configured to determine a size of a luma transform unit and a size of a chroma transform unit using transform size information; a reference pixel generating module configured to generate referential pixels if at least one reference pixel is unavailable; a reference pixel filtering module configured to adaptively filter the reference pixels of a current luma block based on the luma intra prediction mode and the size of the luma transform unit, and not to filter the reference pixels of a current chroma block; a prediction block generating module configured to generate prediction blocks of the current luma block and the current chroma block; a residual bock generating module configured to generate a luma residual block and a chroma residual block; and an adder.