WO2021114100A1 - Intra-frame prediction method, video encoding and decoding methods, and related device - Google Patents

Intra-frame prediction method, video encoding and decoding methods, and related device Download PDF

Info

Publication number
WO2021114100A1
WO2021114100A1 PCT/CN2019/124362 CN2019124362W WO2021114100A1 WO 2021114100 A1 WO2021114100 A1 WO 2021114100A1 CN 2019124362 W CN2019124362 W CN 2019124362W WO 2021114100 A1 WO2021114100 A1 WO 2021114100A1
Authority
WO
WIPO (PCT)
Prior art keywords
prediction
strategy
value
intra
coding block
Prior art date
Application number
PCT/CN2019/124362
Other languages
French (fr)
Chinese (zh)
Inventor
张云
朱林卫
皮金勇
Original Assignee
中国科学院深圳先进技术研究院
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国科学院深圳先进技术研究院 filed Critical 中国科学院深圳先进技术研究院
Priority to PCT/CN2019/124362 priority Critical patent/WO2021114100A1/en
Publication of WO2021114100A1 publication Critical patent/WO2021114100A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/147Data rate or code amount at the encoder output according to rate distortion criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Definitions

  • This application relates to the technical field of video processing, in particular to intra-frame prediction methods, video encoding and decoding methods and related equipment.
  • video plays an important role in people's lives and work, such as online learning, video entertainment, security monitoring, telemedicine, etc., and its data volume accounts for more than 80% of the entire Internet traffic.
  • the amount of video data has exploded.
  • the compression efficiency of video coding has never been able to keep up with the increase in the amount of video data. Therefore, more efficient video coding algorithms need to be studied.
  • Intra-frame prediction is an important part of video coding, and the parameters of existing intra-frame prediction methods are relatively fixed. However, video content is diverse, and fixed parameter prediction methods cannot achieve better coding performance.
  • the purpose of the embodiments of the present application is to provide an intra-frame prediction method, a video encoding and decoding method, and related equipment, so as to improve the encoding performance of video encoding.
  • the first aspect of the embodiments of the present application provides an intra-frame prediction method, including:
  • At least one first prediction value of the adjacent coding block for intra prediction of the current coding block is calculated, wherein each first prediction value is One prediction value corresponds to one intra prediction mode;
  • At least one mode combination is determined according to the mode matrix and a preset algorithm, and at least one of the intra-frame prediction of the current coding block by the neighboring coding block is calculated according to the image information of the neighboring coding block and the mode combination
  • the second prediction value where each second prediction value corresponds to a mode combination, and each mode combination includes at least one first prediction value and a weight coefficient corresponding to each first prediction value;
  • the second aspect of the embodiments of the present application provides a video encoding method, which is applied to a video encoder, and the video encoding method includes:
  • the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the intra-frame prediction method described in the first aspect;
  • Encoding is performed according to the target prediction strategy and the prediction residual, and a video code stream is generated according to the encoding result.
  • the third aspect of the embodiments of the present application provides a video decoding method, which is applied to a video decoder, and the video decoding method includes:
  • a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is the frame described in the first aspect above Intra-prediction method;
  • a fourth aspect of the embodiments of the present application provides an intra-frame prediction device, including:
  • the first acquisition module is configured to acquire image information of the current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded or decoded and reconstructed encoding blocks;
  • the first calculation module is configured to calculate at least one first prediction of intra prediction of the current coding block by the neighboring coding block according to the image information of the neighboring coding block and at least one preset intra prediction mode Value, where each first prediction value corresponds to an intra prediction mode;
  • a construction module configured to construct a mode matrix according to the at least one first predicted value
  • the first determining module is configured to determine at least one mode combination according to the mode matrix and a preset algorithm, and calculate the comparison between the adjacent coding block and the current coding block according to the image information of the adjacent coding block and the mode combination At least one second predicted value for intra-frame prediction, where each second predicted value corresponds to a mode combination, and each mode combination includes at least one first predicted value and a weight coefficient corresponding to each first predicted value;
  • the prediction module is configured to obtain the real value of the current coding block according to the image information of the current coding block, and use the second predicted value with the smallest difference from the real value as the prediction result of the current coding block.
  • a fifth aspect of the embodiments of the present application provides a video encoding device, including:
  • the second acquiring module is configured to acquire the image information of the current encoding block and the image information of the adjacent encoding block, wherein the adjacent encoding block is an encoded and reconstructed encoding block;
  • the second determining module is configured to perform intra-frame prediction on the current coding block according to the image information of the adjacent coding block and at least two prediction strategies, calculate the rate-distortion cost value of each prediction strategy, and replace the rate-distortion cost value
  • the smallest prediction strategy is used as the target prediction strategy, wherein the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the intra prediction method described in the first aspect;
  • a second calculation module configured to calculate a third prediction value for intra-frame prediction of the current coding block by the target prediction strategy
  • a third calculation module configured to obtain the true value of the current encoding block according to the image information of the current encoding block, and calculate a prediction residual according to the true value and the third predicted value;
  • the encoding module is used for encoding according to the target prediction strategy and the prediction residual, and generating a video code stream according to the encoding result.
  • a sixth aspect of the embodiments of the present application provides a video decoding device, including:
  • the third acquisition module is used to acquire the video code stream
  • the decoding module is used to decode the video code stream to obtain a strategy identifier and a prediction residual;
  • the third determining module is configured to determine a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is the above The intra-frame prediction method described in the first aspect;
  • the video reconstruction module is configured to perform video reconstruction according to the target prediction strategy and the prediction residual.
  • the seventh aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • a terminal device including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, Implement the method described in the first aspect above.
  • An eighth aspect of the embodiments of the present application provides a video encoder, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes The computer program implements the method described in the second aspect above.
  • a ninth aspect of the embodiments of the present application provides a video decoder, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program When realizing the method described in the third aspect above.
  • a tenth aspect of the embodiments of the present application provides a video processing system, including the video encoder described in the eighth aspect and the video decoder described in the ninth aspect.
  • the eleventh aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the first aspect, second aspect, or The third issue is the steps of the method.
  • the twelfth aspect of the embodiments of the present application provides a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the steps of the method described in the first aspect, the second aspect, or the third aspect.
  • the embodiment of this application has the following beneficial effects: by acquiring the image information of the current encoding block and the image information of the adjacent encoding block, according to the image information of the adjacent encoding block and at least one preset intra prediction
  • the mode calculates at least one first prediction value of the adjacent coding block for intra-frame prediction of the current coding block, constructs a mode matrix according to the at least one first prediction value, determines at least one mode combination according to the mode matrix and a preset algorithm, and determines the
  • the real value of the current coding block is obtained from the image information, and the second predicted value with the smallest difference from the real value is used as the prediction result of the current coding block. Since the residual error corresponding to the second predicted value with the smallest difference between the true value is the smallest, the bit rate can be saved in video encoding, therefore, the intra-frame prediction method provided in this application has better coding performance than the fixed-parameter prediction method.
  • Fig. 1 is a flowchart of an intra-frame prediction method provided by an embodiment of the present application
  • Fig. 2 is a schematic structural diagram of an intra-frame prediction apparatus provided by an embodiment of the present application.
  • Fig. 3 is a schematic diagram of a video processing system provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of a video encoding method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an encoding process of a video encoder provided by an embodiment of the present application.
  • Fig. 6 is a schematic diagram of a video encoding device provided by an embodiment of the present application.
  • Fig. 7 is a flowchart of a video decoding method provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a decoding process of a video decoder provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a video decoding device provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a video encoder provided by an embodiment of the present application.
  • Fig. 12 is a schematic diagram of a video decoder provided by an embodiment of the present application.
  • the term “if” can be interpreted as “when” or “once” or “in response to determination” or “in response to detection” depending on the context .
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • the intra-frame prediction method provided in the embodiment of the present application is applied to a terminal device. As shown in FIG. 1, the intra prediction method provided by the embodiment of the present application includes:
  • S101 Acquire image information of a current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded or decoded and reconstructed encoding blocks.
  • the terminal device divides the video data into several frames of images, each frame of image includes several coding blocks, and the adjacent coding block is adjacent to the current coding block and is located on the left or above the current coding block.
  • the adjacent coded block is a coded block that is coded or decoded and reconstructed using any intra-frame prediction method, and the image information is the pixel information of the coded block.
  • S102 Calculate at least one first prediction value of the neighboring coding block for intra prediction of the current coding block according to the image information of the neighboring coding block and at least one preset intra prediction mode, where each The first prediction values correspond to one intra prediction mode.
  • the intra prediction mode can be an existing intra prediction mode, for example, Planar mode, DC mode, horizontal mode, vertical mode, diagonal mode, etc., or it can be based on a dictionary learning algorithm and existing intra prediction
  • the intra-frame prediction mode formed by the dictionary base generated by the mode, and each intra-frame prediction mode predicts the image according to the preset texture.
  • the current coding block is predicted by the adjacent coding block, and a first prediction value is obtained.
  • S103 Construct a mode matrix according to the at least one first predicted value.
  • the mode matrix includes at least one first predicted value, and each first predicted value corresponds to an index identifier.
  • S104 Determine at least one mode combination according to the mode matrix and the preset algorithm, and calculate the intra-frame prediction of the current coding block by the neighboring coding block according to the image information of the neighboring coding block and the mode combination At least one second predicted value, wherein each second predicted value corresponds to a mode combination, and each mode combination includes at least one first predicted value and a weight coefficient corresponding to each first predicted value.
  • At least one first predicted value is selected from the mode matrix according to a preset algorithm, and a weight coefficient corresponding to the first predicted value is generated to form a mode combination.
  • adjacent coded blocks The second predicted value for the current coding block.
  • the second predicted value is calculated from the first predicted value and the weight coefficient corresponding to the mode combination, that is, the mode combination is an intra prediction method based on combined weighting.
  • a limitation condition is preset, and the limitation condition includes the number range of the first predicted value and/or the value range of the weight coefficient in the mode combination. For example, the number of first predicted values in the set mode combination is less than 5, the value range of the weight coefficient is -0.28-1, and the candidate coefficient retains two significant digits.
  • S105 Obtain the true value of the current encoding block according to the image information of the current encoding block, and use the second predicted value with the smallest difference from the true value as the prediction result of the current encoding block.
  • the optimization algorithm may be an orthogonal matching pursuit algorithm, and the orthogonal matching algorithm is used to calculate the second predicted value with the smallest difference from the real value of the video data.
  • the orthogonal matching pursuit algorithm is an existing technology, and will not be repeated here.
  • the adjacent encoding block is calculated based on the image information of the adjacent encoding block and at least one preset intra prediction mode.
  • At least one first predicted value of the intra-frame prediction a mode matrix is constructed according to the at least one first predicted value, at least one mode combination is determined according to the mode matrix and a preset algorithm, and the true value of the current coding block is obtained according to the image information of the current coding block, The second predicted value with the smallest difference from the true value is used as the prediction result of the current coding block, that is, the intra-frame prediction method based on combined weighting can save bit rate and improve coding performance in video coding.
  • FIG. 2 shows a structural block diagram of an intra prediction apparatus provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • the intra prediction device includes:
  • the first obtaining module 21 is configured to obtain image information of a current coding block and image information of adjacent coding blocks, where the adjacent coding blocks are coded or decoded and reconstructed coding blocks;
  • the first calculation module 22 is configured to calculate, according to the image information of the neighboring coding block and at least one preset intra prediction mode, at least one first step of the neighboring coding block for intra prediction of the current coding block. Predicted value, where each first predicted value corresponds to an intra-frame prediction mode;
  • the construction module 23 is configured to construct a mode matrix according to the at least one first predicted value
  • the first determining module 24 is configured to determine at least one mode combination according to the mode matrix and a preset algorithm, and calculate the current coding of the adjacent coding block according to the image information of the adjacent coding block and the mode combination At least one second predicted value for intra-frame prediction of the block, where each second predicted value corresponds to a mode combination, and each mode combination includes at least one first predicted value and a weight coefficient corresponding to each first predicted value;
  • the prediction module 25 is configured to obtain the real value of the current coding block according to the image information of the current coding block, and use the second predicted value with the smallest difference from the real value as the prediction result of the current coding block.
  • the second predicted value is calculated from the first predicted value and the weight coefficient corresponding to the mode combination.
  • the preset algorithm includes an optimization algorithm and a restriction condition
  • the restriction condition includes a quantity range of the first predicted value in the mode combination and/or a value range of the weight coefficient .
  • FIG. 3 a schematic diagram of a video processing system provided by an embodiment of this application.
  • the video processing system includes a video encoder 31 and a video decoder 32.
  • the intra-frame prediction method provided by the foregoing embodiment is applied to the video of the video encoder 31.
  • the encoding process and the video decoding process of the video decoder 32 are applied to the video of the video encoder 31.
  • the video encoding method provided by the embodiment of the present application includes:
  • S401 Acquire image information of a current encoding block and image information of adjacent encoding blocks, where the adjacent encoding block is an encoded and reconstructed encoding block.
  • the terminal device After the terminal device obtains the video data, it first divides the video data into a number of frames of images, each frame of image includes a number of coding blocks, and adjacent coding blocks are located on the left or above the current coding block and adjacent to the current coding block.
  • the adjacent coded blocks are coded blocks that are coded and reconstructed using any intra-frame prediction method.
  • S402 Perform intra-frame prediction on the current coding block according to the image information of the adjacent coding blocks and at least two prediction strategies, calculate the rate-distortion cost value of each prediction strategy, and use the prediction strategy with the least rate-distortion cost value as The target prediction strategy, wherein the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the aforementioned intra-frame prediction method.
  • the predicted value of the first prediction strategy is the second predicted value with the smallest difference from the true value obtained by using the intra-frame prediction method
  • the first prediction strategy is the second predicted value with the smallest difference from the true value.
  • the corresponding mode combination includes at least one first predicted value and a corresponding weight coefficient.
  • the second prediction strategy is a traditional intra-frame prediction method, including an intra-frame prediction method.
  • it may be the intra-frame prediction method corresponding to the above-mentioned first prediction value.
  • the rate-distortion cost value is a variable that characterizes the prediction residuals and the number of bits of the residual coding corresponding to the prediction residuals.
  • the prediction strategy with the least cost-effective rate-distortion is used as the target prediction strategy to reduce the bit rate of residual coding and improve coding performance .
  • S403 Calculate a third prediction value for performing intra-frame prediction of the current coding block by the target prediction strategy.
  • the mode combination corresponding to the second predicted value with the smallest difference between the real value is used as the first prediction strategy, that is, the intra prediction method based on combined weighting, will be the first prediction with the smallest difference from the real value
  • the intra prediction method corresponding to the value is used as the second prediction strategy, the rate-distortion cost values of the first prediction strategy and the second prediction strategy are calculated, and the prediction value corresponding to the prediction strategy with the smallest rate-distortion cost value is selected as the third prediction value.
  • S404 Obtain the real value of the current coding block according to the image information of the current coding block, and calculate a prediction residual according to the real value and the third predicted value.
  • the prediction residual is the difference between the third prediction value and the real value of the current coding block.
  • S405 Perform coding according to the target prediction strategy and the prediction residual, and generate a video code stream according to the coding result.
  • the encoding method is a binary encoding method. If the target prediction strategy is the first prediction strategy, the strategy identifier corresponding to the first prediction strategy and the strategy corresponding to the first prediction strategy are The index identifier of the first prediction value, the weight coefficient corresponding to the first prediction strategy, and the prediction residual are encoded. If the target prediction strategy is the second prediction strategy, the strategy identifier corresponding to the second prediction strategy, the index identifier of the first prediction value corresponding to the first prediction strategy, and the prediction residual are encoded.
  • the target prediction strategy is the first prediction strategy
  • the strategy identifier is 1, and if the target prediction strategy is the second prediction strategy, the strategy identifier is 0.
  • the number of the first predicted value is 35
  • the binary number corresponding to 0-34 is used to encode the index identifier.
  • the value range of the weight coefficient is -0.28-1
  • the weight coefficient is transformed so that -0.28-1 corresponds to 0-127 one-to-one, and the binary number corresponding to 0-127 is used to encode the weight coefficient.
  • Each coding block adopts the same coding method, which can generate the corresponding output code stream from the input video data.
  • the encoding process of a video encoder is taken as an example to describe the video encoding method provided in this embodiment.
  • the video data to be processed is input to the video encoder, and the video encoder executes the traditional intra-frame prediction method and the intra-frame prediction method based on combined weighting respectively, and predicts the current coding block according to the neighboring coding blocks.
  • the video encoder executes the traditional intra-frame prediction method and the intra-frame prediction method based on combined weighting respectively, and predicts the current coding block according to the neighboring coding blocks.
  • Rate-distortion cost value the prediction method with the smallest cost-distortion cost value is used as the target prediction strategy, and the first prediction strategy corresponding to the target prediction strategy corresponds to the strategy identification corresponding to the first prediction strategy, the index identification of the first prediction value corresponding to the first prediction strategy, and the first prediction strategy.
  • the weight coefficients and prediction residuals corresponding to the prediction strategy are coded to obtain the output code stream.
  • the current coding block is intra-predicted according to the image information of the adjacent coding block and at least two prediction strategies, and each prediction strategy is calculated.
  • the rate-distortion cost value of, the prediction strategy with the smallest rate-distortion cost value is the target prediction strategy. That is, by calculating the rate-distortion cost value, in the traditional intra-frame prediction method and the intra-frame prediction method based on combined weighting, the optimal method is selected as the target prediction strategy to minimize the rate-distortion cost value corresponding to the target prediction strategy.
  • FIG. 6 shows a structural block diagram of a video encoding device provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • the video encoding device includes:
  • the second acquiring module 61 is configured to acquire image information of the current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded and reconstructed encoding blocks;
  • the second determining module 62 is configured to perform intra-frame prediction on the current coding block according to the image information of the adjacent coding block and at least two prediction strategies, calculate the rate-distortion cost value of each prediction strategy, and replace the rate-distortion
  • the prediction strategy with the least value is used as the target prediction strategy, wherein the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the frame according to any one of claims 1-3.
  • Intra-prediction method Intra-prediction method
  • the second calculation module 63 is configured to calculate a third prediction value for performing intra-frame prediction of the current coding block by the target prediction strategy
  • the third calculation module 64 is configured to obtain the true value of the current encoding block according to the image information of the current encoding block, and calculate a prediction residual according to the true value and the third predicted value;
  • the encoding module 65 is used for encoding according to the target prediction strategy and the prediction residual, and generating a video code stream according to the encoding result.
  • the encoding module 65 is specifically configured to: if the target prediction strategy is the first prediction strategy, identify the strategy identifier corresponding to the first prediction strategy and the first prediction strategy The index identifier of the corresponding first prediction value, the weight coefficient corresponding to the first prediction strategy, and the prediction residual are encoded.
  • the video decoding method provided by the embodiment of the present application includes:
  • the video code stream is an output code stream generated after being encoded by a video encoder.
  • S702 Decode the video code stream to obtain a strategy identifier and a prediction residual.
  • the video decoder decodes the encoding corresponding to the policy identifier and the encoding performed on the prediction residual according to the encoding rules of the video encoder, and restores the data before encoding.
  • S703 Determine a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is the aforementioned intra prediction method .
  • the first prediction strategy is an intra prediction method based on combined weighting
  • the second prediction strategy is a traditional prediction strategy.
  • the intra-frame prediction method For example, if the strategy identification is 1, it means that the target prediction strategy is the first prediction strategy, and if the strategy identification is 0, it means that the target prediction strategy is the second prediction strategy.
  • S704 Perform video reconstruction according to the target prediction strategy and the prediction residual.
  • the video code stream is further decoded to obtain the index identification of the first prediction value corresponding to the first prediction strategy and the weight coefficient corresponding to the first prediction strategy; Perform video reconstruction according to the index identifier of the first prediction value corresponding to the first prediction strategy, the weight coefficient corresponding to the first prediction strategy, and the prediction residual.
  • the video code stream is further decoded to obtain the index identification of the first prediction value corresponding to the first prediction strategy; according to the first prediction strategy corresponding to the first prediction strategy A prediction value index identification and prediction residuals are used for video reconstruction.
  • the decoding process of a video decoder is taken as an example to describe the video decoding method provided in this embodiment.
  • the encoded video stream is input to the video encoder.
  • the video decoder first decodes according to the strategy identifier, and determines whether the target prediction strategy is a traditional intra-frame prediction method or a combined-weighted intra-frame based on the strategy identifier. method of prediction. After the target prediction strategy is determined, the code corresponding to the target prediction strategy is further decoded. If the target prediction strategy is an intra prediction method based on combined weighting, the index identification of the first prediction value and the weight corresponding to the first prediction strategy are obtained by decoding Coefficient; if the target prediction strategy is a traditional intra-frame prediction method, the index identifier of the first predicted value is obtained by decoding. According to the decoded target prediction strategy and the decoded prediction residual, the video can be reconstructed and the original video data can be restored.
  • the input code stream is acquired and the input code stream is decoded to obtain the strategy identifier and the prediction residual; according to the strategy identifier, it is determined whether the target prediction strategy is a traditional intra prediction method or a combined weighted intra prediction method, After determining the target prediction strategy, the target prediction strategy is further decoded, and the video is reconstructed according to the decoded target prediction strategy and the prediction residual.
  • FIG. 9 shows a structural block diagram of a video decoding device provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • the video decoding device includes:
  • the third obtaining module 91 is used to obtain a video code stream
  • the decoding module 92 is configured to decode the video code stream to obtain a strategy identifier and a prediction residual;
  • the third determining module 93 is configured to determine a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is The above-mentioned intra-frame prediction method;
  • the video reconstruction module 94 is configured to perform video reconstruction according to the target prediction strategy and the prediction residual.
  • the video reconstruction module 94 is specifically configured to: if the target prediction strategy is the first prediction strategy, further decode the video code stream to obtain the corresponding first prediction strategy According to the index identifier of the first prediction value corresponding to the first prediction strategy, the weight coefficient corresponding to the first prediction strategy; the index identifier of the first prediction value corresponding to the first prediction strategy, the weight coefficient corresponding to the first prediction strategy, and the The prediction residual is used for video reconstruction.
  • FIG. 10 is a schematic diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device of this embodiment includes: a processor 101, a memory 102, and a computer program 103 that is stored in the memory 102 and can run on the processor 101.
  • the processor 101 executes the computer program 103, the steps in the above embodiment of the intra prediction method are implemented, for example, steps S101 to S105 shown in FIG. 1.
  • the processor 101 executes the computer program 103
  • the function of each module/unit in the embodiment of the intra prediction apparatus described above, for example, the function of the modules 21 to 25 shown in FIG. 2 is realized.
  • the computer program 103 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 102 and executed by the processor 101 to complete This application.
  • the one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 103 in the terminal device.
  • the terminal device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • FIG. 10 is only an example of a terminal device, and does not constitute a limitation on the terminal device. It may include more or less components than those shown in the figure, or a combination of certain components, or different components, such as
  • the terminal device may also include input and output devices, network access devices, buses, and so on.
  • the processor 101 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 102 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device.
  • the memory 102 may also be an external storage device of the terminal device, for example, a plug-in hard disk equipped on the terminal device, a smart memory card (Smart Media Card, SMC), or a Secure Digital (SD) card, Flash Card, etc. Further, the memory 102 may also include both an internal storage unit of the terminal device and an external storage device.
  • the memory 102 is used to store the computer program and other programs and data required by the terminal device.
  • the memory 102 can also be used to temporarily store data that has been output or will be output.
  • Fig. 11 is a schematic diagram of a video encoder provided by an embodiment of the present application.
  • the video encoder of this embodiment includes: a processor 111, a memory 112, and a computer program 113 stored in the memory 112 and running on the processor 111.
  • the processor 111 executes the computer program 113
  • the steps in the foregoing embodiment of the video encoding method are implemented, for example, steps S401 to S405 shown in FIG. 4.
  • the processor 111 executes the computer program 113
  • the functions of the modules/units in the foregoing embodiment of the video encoding device are implemented, for example, the functions of the modules 61 to 65 shown in FIG. 6.
  • the computer program 113 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 112 and executed by the processor 111 to complete This application.
  • the one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 113 in the video encoder.
  • FIG. 11 is only an example of a video encoder, and does not constitute a limitation on the video encoder. It may include more or fewer components than those shown in the figure, or a combination of certain components, or different components.
  • the video encoder may also include input and output devices, network access devices, buses, and so on.
  • the processor 111 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 112 may be an internal storage unit of the video encoder, such as a hard disk or a memory of the video encoder.
  • the memory 112 may also be an external storage device of the video encoder, such as a plug-in hard disk equipped on the video encoder, a smart media card (SMC), or a secure digital (SD) Card, Flash Card, etc. Further, the memory 112 may also include both an internal storage unit of the video encoder and an external storage device.
  • the memory 112 is used to store the computer program and other programs and data required by the video encoder.
  • the memory 112 may also be used to temporarily store data that has been output or will be output.
  • Fig. 12 is a schematic diagram of a video decoder provided by an embodiment of the present application.
  • the video decoder of this embodiment includes: a processor 121, a memory 122, and a computer program 123 stored in the memory 122 and running on the processor 121.
  • the processor 121 executes the computer program 123
  • the steps in the foregoing embodiment of the video processing method are implemented, for example, steps S701 to S704 of the video decoding method shown in FIG. 7.
  • the processor 121 executes the computer program 123
  • the functions of the modules/units in the foregoing embodiment of the video decoding apparatus are implemented, for example, the functions of the modules 91 to 94 shown in FIG. 9.
  • the computer program 123 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 122 and executed by the processor 121 to complete This application.
  • the one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 123 in the video decoder.
  • FIG. 12 is only an example of a video decoder, and does not constitute a limitation on the video decoder. It may include more or fewer components than those shown in the figure, or a combination of certain components, or different components.
  • the video decoder may also include input and output devices, network access devices, buses, and so on.
  • the processor 121 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 122 may be an internal storage unit of the video decoder, such as a hard disk or a memory of the video decoder.
  • the memory 122 may also be an external storage device of the video decoder, such as a plug-in hard disk equipped on the video decoder, a smart memory card (Smart Media Card, SMC), or Secure Digital (SD). Card, Flash Card, etc.
  • the memory 122 may also include both an internal storage unit of the video decoder and an external storage device.
  • the memory 122 is used to store the computer program and other programs and data required by the video decoder.
  • the memory 122 can also be used to temporarily store data that has been output or will be output.
  • the disclosed device/terminal device and method may be implemented in other ways.
  • the device/terminal device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the present application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program.
  • the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc.

Abstract

An intra-frame prediction method, video encoding and decoding methods, and a related device, the intra-frame prediction method comprising: acquiring image information of a current coding block and image information of an adjacent coding block, the adjacent coding block being an encoded or decoded reconstructed coding block; on the basis of the image information of the adjacent coding block and at least one preset intra-frame prediction mode, calculating at least one first prediction value of the adjacent coding block for intra-frame prediction of the current coding block and, on the basis of the at least one first prediction value, constructing a mode matrix; on the basis of the mode matrix and a preset algorithm, determining at least one mode set; on the basis of the image information of the adjacent coding block and the mode set, calculating at least one second prediction value of the adjacent coding block for intra-frame prediction of the current coding block, and using the second prediction value with the smallest difference to the true value as the prediction result of the current coding block. The present intra-frame prediction method can improve encoding performance.

Description

帧内预测方法、视频编码、解码方法及相关设备Intra-frame prediction method, video encoding and decoding method and related equipment 技术领域Technical field
本申请涉及视频处理技术领域,具体涉及帧内预测方法、视频编码、解码方法及相关设备。This application relates to the technical field of video processing, in particular to intra-frame prediction methods, video encoding and decoding methods and related equipment.
背景技术Background technique
目前,视频在人们生活和工作中发挥着重要作用,如在线学习、视频娱乐、安防监控、远程医疗等,其数据量占了整个互联网流量的80%以上。伴随着用户对视频的更高需求,视频的数据量呈现爆炸式增长。然而,视频编码的压缩效率却始终赶不上视频数据量的增长。因此,需要研究更为高效的视频编码算法。At present, video plays an important role in people's lives and work, such as online learning, video entertainment, security monitoring, telemedicine, etc., and its data volume accounts for more than 80% of the entire Internet traffic. With the higher demand of users for video, the amount of video data has exploded. However, the compression efficiency of video coding has never been able to keep up with the increase in the amount of video data. Therefore, more efficient video coding algorithms need to be studied.
帧内预测是视频编码的重要组成部分,现有的帧内预测方法的参数比较固定。然而,视频内容多种多样,固定参数的预测方法不能获得更好的编码性能。Intra-frame prediction is an important part of video coding, and the parameters of existing intra-frame prediction methods are relatively fixed. However, video content is diverse, and fixed parameter prediction methods cannot achieve better coding performance.
发明概述Summary of the invention
技术问题technical problem
本申请实施例的目的在于:提供帧内预测方法、视频编码、解码方法及相关设备,旨在提高视频编码的编码性能。The purpose of the embodiments of the present application is to provide an intra-frame prediction method, a video encoding and decoding method, and related equipment, so as to improve the encoding performance of video encoding.
问题的解决方案The solution to the problem
技术解决方案Technical solutions
为解决上述技术问题,本申请实施例采用的技术方案是:In order to solve the above technical problems, the technical solutions adopted in the embodiments of this application are:
本申请实施例的第一方面提供了一种帧内预测方法,包括:The first aspect of the embodiments of the present application provides an intra-frame prediction method, including:
获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码或已解码重建的编码块;Acquiring image information of the current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded or decoded and reconstructed encoding blocks;
根据所述相邻编码块的图像信息及至少一个预设的帧内预测模式计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第一预测值,其中,每个第一预测值对应一个帧内预测模式;According to the image information of the adjacent coding block and at least one preset intra prediction mode, at least one first prediction value of the adjacent coding block for intra prediction of the current coding block is calculated, wherein each first prediction value is One prediction value corresponds to one intra prediction mode;
根据所述至少一个第一预测值构造模式矩阵;Constructing a mode matrix according to the at least one first predicted value;
根据所述模式矩阵及预设算法确定至少一个模式组合,根据所述相邻编码块的 图像信息及所述模式组合计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第二预测值,其中,每个第二预测值对应一个模式组合,每个模式组合包括至少一个第一预测值及与每个第一预测值对应的权重系数;At least one mode combination is determined according to the mode matrix and a preset algorithm, and at least one of the intra-frame prediction of the current coding block by the neighboring coding block is calculated according to the image information of the neighboring coding block and the mode combination The second prediction value, where each second prediction value corresponds to a mode combination, and each mode combination includes at least one first prediction value and a weight coefficient corresponding to each first prediction value;
根据所述当前编码块的图像信息得到所述当前编码块的真实值,将与所述真实值差异最小的第二预测值作为所述当前编码块的预测结果。Obtain the true value of the current encoding block according to the image information of the current encoding block, and use the second predicted value with the smallest difference from the true value as the prediction result of the current encoding block.
本申请实施例的第二方面提供了一种视频编码方法,应用于视频编码器,所述视频编码方法包括:The second aspect of the embodiments of the present application provides a video encoding method, which is applied to a video encoder, and the video encoding method includes:
获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码重建的编码块;Acquiring image information of a current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded and reconstructed encoding blocks;
根据所述相邻编码块的图像信息和至少两种预测策略对所述当前编码块进行帧内预测,计算每种预测策略的率失真代价值,将率失真代价值最小的预测策略作为目标预测策略,其中,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为上述第一方面所述的帧内预测方法;Perform intra-frame prediction on the current coding block according to the image information of the adjacent coding block and at least two prediction strategies, calculate the rate-distortion cost value of each prediction strategy, and use the prediction strategy with the least rate-distortion cost value as the target prediction Strategy, wherein the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the intra-frame prediction method described in the first aspect;
计算所述目标预测策略对所述当前编码块进行帧内预测的第三预测值;Calculating a third prediction value for performing intra-frame prediction of the current coding block by the target prediction strategy;
根据所述当前编码块的图像信息得到所述当前编码块的真实值,根据所述真实值与所述第三预测值计算预测残差;Obtaining the real value of the current coding block according to the image information of the current coding block, and calculating a prediction residual according to the real value and the third predicted value;
根据所述目标预测策略和所述预测残差进行编码,根据编码结果生成视频码流。Encoding is performed according to the target prediction strategy and the prediction residual, and a video code stream is generated according to the encoding result.
本申请实施例的第三方面提供了一种视频解码方法,应用于视频解码器,所述视频解码方法包括:The third aspect of the embodiments of the present application provides a video decoding method, which is applied to a video decoder, and the video decoding method includes:
获取视频码流;Obtain video stream;
对所述视频码流进行解码,得到策略标识和预测残差;Decoding the video code stream to obtain a strategy identifier and a prediction residual;
根据所述策略标识从至少两种预测策略中确定目标预测策略,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为上述第一方面所述的帧内预测方法;Determine a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is the frame described in the first aspect above Intra-prediction method;
根据所述目标预测策略和所述预测残差进行视频重建。Perform video reconstruction according to the target prediction strategy and the prediction residual.
本申请实施例的第四方面提供了一种帧内预测装置,包括:A fourth aspect of the embodiments of the present application provides an intra-frame prediction device, including:
第一获取模块,用于获取当前编码块的图像信息以及相邻编码块的图像信息, 其中,所述相邻编码块为已编码或已解码重建的编码块;The first acquisition module is configured to acquire image information of the current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded or decoded and reconstructed encoding blocks;
第一计算模块,用于根据所述相邻编码块的图像信息及至少一个预设的帧内预测模式计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第一预测值,其中,每个第一预测值对应一个帧内预测模式;The first calculation module is configured to calculate at least one first prediction of intra prediction of the current coding block by the neighboring coding block according to the image information of the neighboring coding block and at least one preset intra prediction mode Value, where each first prediction value corresponds to an intra prediction mode;
构造模块,用于根据所述至少一个第一预测值构造模式矩阵;A construction module, configured to construct a mode matrix according to the at least one first predicted value;
第一确定模块,用于根据所述模式矩阵及预设算法确定至少一个模式组合,根据所述相邻编码块的图像信息及所述模式组合计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第二预测值,其中,每个第二预测值对应一个模式组合,每个模式组合包括至少一个第一预测值及与每个第一预测值对应的权重系数;The first determining module is configured to determine at least one mode combination according to the mode matrix and a preset algorithm, and calculate the comparison between the adjacent coding block and the current coding block according to the image information of the adjacent coding block and the mode combination At least one second predicted value for intra-frame prediction, where each second predicted value corresponds to a mode combination, and each mode combination includes at least one first predicted value and a weight coefficient corresponding to each first predicted value;
预测模块,用于根据所述当前编码块的图像信息得到所述当前编码块的真实值,将与所述真实值差异最小的第二预测值作为所述当前编码块的预测结果。The prediction module is configured to obtain the real value of the current coding block according to the image information of the current coding block, and use the second predicted value with the smallest difference from the real value as the prediction result of the current coding block.
本申请实施例的第五方面提供了一种视频编码装置,包括:A fifth aspect of the embodiments of the present application provides a video encoding device, including:
第二获取模块,用于获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码重建的编码块;The second acquiring module is configured to acquire the image information of the current encoding block and the image information of the adjacent encoding block, wherein the adjacent encoding block is an encoded and reconstructed encoding block;
第二确定模块,用于根据所述相邻编码块的图像信息和至少两种预测策略对所述当前编码块进行帧内预测,计算每种预测策略的率失真代价值,将率失真代价值最小的预测策略作为目标预测策略,其中,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为上述第一方面所述的帧内预测方法;The second determining module is configured to perform intra-frame prediction on the current coding block according to the image information of the adjacent coding block and at least two prediction strategies, calculate the rate-distortion cost value of each prediction strategy, and replace the rate-distortion cost value The smallest prediction strategy is used as the target prediction strategy, wherein the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the intra prediction method described in the first aspect;
第二计算模块,用于计算所述目标预测策略对所述当前编码块进行帧内预测的第三预测值;A second calculation module, configured to calculate a third prediction value for intra-frame prediction of the current coding block by the target prediction strategy;
第三计算模块,用于根据所述当前编码块的图像信息得到所述当前编码块的真实值,根据所述真实值与所述第三预测值计算预测残差;A third calculation module, configured to obtain the true value of the current encoding block according to the image information of the current encoding block, and calculate a prediction residual according to the true value and the third predicted value;
编码模块,用于根据所述目标预测策略和所述预测残差进行编码,根据编码结果生成视频码流。The encoding module is used for encoding according to the target prediction strategy and the prediction residual, and generating a video code stream according to the encoding result.
本申请实施例的第六方面提供了一种视频解码装置,包括:A sixth aspect of the embodiments of the present application provides a video decoding device, including:
第三获取模块,用于获取视频码流;The third acquisition module is used to acquire the video code stream;
解码模块,用于对所述视频码流进行解码,得到策略标识和预测残差;The decoding module is used to decode the video code stream to obtain a strategy identifier and a prediction residual;
第三确定模块,用于根据所述策略标识从至少两种预测策略中确定目标预测策略,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为上述第一方面所述的帧内预测方法;The third determining module is configured to determine a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is the above The intra-frame prediction method described in the first aspect;
视频重建模块,用于根据所述目标预测策略和所述预测残差进行视频重建。The video reconstruction module is configured to perform video reconstruction according to the target prediction strategy and the prediction residual.
本申请实施例的第七方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的方法。The seventh aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, Implement the method described in the first aspect above.
本申请实施例的第八方面提供了一种视频编码器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现上述第二方面所述的方法。An eighth aspect of the embodiments of the present application provides a video encoder, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes The computer program implements the method described in the second aspect above.
本申请实施例的第九方面提供了一种视频解码器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第三方面所述的方法。A ninth aspect of the embodiments of the present application provides a video decoder, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program When realizing the method described in the third aspect above.
本申请实施例的第十方面提供了一种视频处理系统,包括上述第八方面所述的视频编码器和上述第九方面所述的视频解码器。A tenth aspect of the embodiments of the present application provides a video processing system, including the video encoder described in the eighth aspect and the video decoder described in the ninth aspect.
本申请实施例的第十一方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面、第二方面或第三发面所述方法的步骤。The eleventh aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the first aspect, second aspect, or The third issue is the steps of the method.
本申请实施例的第十二方面提供一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面、第二方面或第三发面所述方法的步骤。The twelfth aspect of the embodiments of the present application provides a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the steps of the method described in the first aspect, the second aspect, or the third aspect.
本申请实施例与现有技术相比存在的有益效果是:通过获取当前编码块的图像信息以及相邻编码块的图像信息,根据相邻编码块的图像信息及至少一个预设的帧内预测模式计算相邻编码块对当前编码块进行帧内预测的至少一个第一预测值,根据至少一个第一预测值构造模式矩阵,根据模式矩阵及预设算法确定至少一个模式组合,根据当前编码块的图像信息得到当前编码块的真实值,将与真实值差异最小的第二预测值作为当前编码块的预测结果。由于与真实值差 异最小的第二预测值对应的残差最小,在视频编码中可以节省比特率,因此,本申请提供的帧内预测方法相对于固定参数的预测方法,编码性能更好。Compared with the prior art, the embodiment of this application has the following beneficial effects: by acquiring the image information of the current encoding block and the image information of the adjacent encoding block, according to the image information of the adjacent encoding block and at least one preset intra prediction The mode calculates at least one first prediction value of the adjacent coding block for intra-frame prediction of the current coding block, constructs a mode matrix according to the at least one first prediction value, determines at least one mode combination according to the mode matrix and a preset algorithm, and determines the The real value of the current coding block is obtained from the image information, and the second predicted value with the smallest difference from the real value is used as the prediction result of the current coding block. Since the residual error corresponding to the second predicted value with the smallest difference between the true value is the smallest, the bit rate can be saved in video encoding, therefore, the intra-frame prediction method provided in this application has better coding performance than the fixed-parameter prediction method.
发明的有益效果The beneficial effects of the invention
对附图的简要说明Brief description of the drawings
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或示范性技术描述中所需要使用的附图作简单地介绍。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the embodiments or exemplary technical descriptions.
图1是本申请实施例提供的帧内预测方法的流程图;Fig. 1 is a flowchart of an intra-frame prediction method provided by an embodiment of the present application;
图2是本申请实施例提供的帧内预测装置的结构示意图;Fig. 2 is a schematic structural diagram of an intra-frame prediction apparatus provided by an embodiment of the present application;
图3是本申请实施例提供的视频处理系统的示意图;Fig. 3 is a schematic diagram of a video processing system provided by an embodiment of the present application;
图4是本申请实施例提供的视频编码方法的流程图;Figure 4 is a flowchart of a video encoding method provided by an embodiment of the present application;
图5是本申请实施例提供的视频编码器的编码流程示意图;FIG. 5 is a schematic diagram of an encoding process of a video encoder provided by an embodiment of the present application;
图6是本申请实施例提供的视频编码装置的示意图;Fig. 6 is a schematic diagram of a video encoding device provided by an embodiment of the present application;
图7是本申请实施例提供的视频解码方法的流程图;Fig. 7 is a flowchart of a video decoding method provided by an embodiment of the present application;
图8是本申请实施例提供的视频解码器的解码流程示意图;FIG. 8 is a schematic diagram of a decoding process of a video decoder provided by an embodiment of the present application;
图9是本申请实施例提供的视频解码装置的示意图;FIG. 9 is a schematic diagram of a video decoding device provided by an embodiment of the present application;
图10是本申请实施例提供的终端设备的示意图;FIG. 10 is a schematic diagram of a terminal device provided by an embodiment of the present application;
图11是本申请实施例提供的视频编码器的示意图;FIG. 11 is a schematic diagram of a video encoder provided by an embodiment of the present application;
图12是本申请实施例提供的视频解码器的示意图。Fig. 12 is a schematic diagram of a video decoder provided by an embodiment of the present application.
发明实施例Invention embodiment
本发明的实施方式Embodiments of the present invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in the present application, specific embodiments are used for description below.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other features , The existence or addition of a whole, a step, an operation, an element, a component, and/or a collection thereof.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in the specification of this application and the appended claims, unless the context clearly indicates other circumstances, the singular forms "a", "an" and "the" are intended to include plural forms.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should be further understood that the term "and/or" used in the specification and appended claims of this application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "once" or "in response to determination" or "in response to detection" depending on the context . Similarly, the phrase "if determined" or "if detected [described condition or event]" can be interpreted as meaning "once determined" or "in response to determination" or "once detected [described condition or event]" depending on the context ]" or "in response to detection of [condition or event described]".
另外,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
本申请实施例提供的帧内预测方法应用于终端设备。如图1所示,本申请实施例提供的帧内预测方法包括:The intra-frame prediction method provided in the embodiment of the present application is applied to a terminal device. As shown in FIG. 1, the intra prediction method provided by the embodiment of the present application includes:
S101:获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码或已解码重建的编码块。S101: Acquire image information of a current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded or decoded and reconstructed encoding blocks.
其中,终端设备将视频数据分成若干帧图像,每帧图像包括若干编码块,相邻编码块与当前编码块相邻,位于当前编码块的左侧或者上方。相邻编码块为采用任意帧内预测方法进行编码或解码重建的编码块,图像信息为编码块的像素信息。Wherein, the terminal device divides the video data into several frames of images, each frame of image includes several coding blocks, and the adjacent coding block is adjacent to the current coding block and is located on the left or above the current coding block. The adjacent coded block is a coded block that is coded or decoded and reconstructed using any intra-frame prediction method, and the image information is the pixel information of the coded block.
S102:根据所述相邻编码块的图像信息及至少一个预设的帧内预测模式计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第一预测值,其中,每个第一预测值对应一个帧内预测模式。S102: Calculate at least one first prediction value of the neighboring coding block for intra prediction of the current coding block according to the image information of the neighboring coding block and at least one preset intra prediction mode, where each The first prediction values correspond to one intra prediction mode.
其中,帧内预测模式可以是现有的帧内预测模式,例如,Planar模式、DC模式、水平模式、垂直模式、对角线模式等,也可以是根据字典学习算法和现有的帧内预测模式生成的由字典基构成的帧内预测模式,每个帧内预测模式按照预设纹理对图像进行预测。采用每种帧内预测模式,用相邻编码块预测当前编码块,均得到一个第一预测值。Among them, the intra prediction mode can be an existing intra prediction mode, for example, Planar mode, DC mode, horizontal mode, vertical mode, diagonal mode, etc., or it can be based on a dictionary learning algorithm and existing intra prediction The intra-frame prediction mode formed by the dictionary base generated by the mode, and each intra-frame prediction mode predicts the image according to the preset texture. In each intra-frame prediction mode, the current coding block is predicted by the adjacent coding block, and a first prediction value is obtained.
S103:根据所述至少一个第一预测值构造模式矩阵。S103: Construct a mode matrix according to the at least one first predicted value.
具体地,模式矩阵包括至少一个第一预测值,每个第一预测值对应一个索引标识。Specifically, the mode matrix includes at least one first predicted value, and each first predicted value corresponds to an index identifier.
S104:根据所述模式矩阵及预设算法确定至少一个模式组合,根据所述相邻编码块的图像信息及所述模式组合计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第二预测值,其中,每个第二预测值对应一个模式组合,每个模式组合包括至少一个第一预测值及与每个第一预测值对应的权重系数。S104: Determine at least one mode combination according to the mode matrix and the preset algorithm, and calculate the intra-frame prediction of the current coding block by the neighboring coding block according to the image information of the neighboring coding block and the mode combination At least one second predicted value, wherein each second predicted value corresponds to a mode combination, and each mode combination includes at least one first predicted value and a weight coefficient corresponding to each first predicted value.
具体地,按照预设算法从模式矩阵中选择至少一个第一预测值,并生成与第一预测值对应的权重系数,组成一个模式组合,计算采用模式组合对应的预测方法时,相邻编码块对当前编码块的第二预测值。Specifically, at least one first predicted value is selected from the mode matrix according to a preset algorithm, and a weight coefficient corresponding to the first predicted value is generated to form a mode combination. When calculating the prediction method corresponding to the mode combination, adjacent coded blocks The second predicted value for the current coding block.
在一种可能的实现方式中,第二预测值由模式组合对应的第一预测值及权重系数计算得到,即模式组合为基于组合加权的帧内预测方法。具体地,通过公式X’=Σ i=1-Nω iM i计算第二预测值,其中,M i和ω i分别表示第i个帧内预测模式对应的第一预测值及其对应的权重系数。X’表示第二预测值,N表示模式矩阵中第一预测值的数量,模式组合中包括的第一预测值对应的权重系数不为0,模式矩阵中的其余第一预测值对应的权重系数为0。 In a possible implementation manner, the second predicted value is calculated from the first predicted value and the weight coefficient corresponding to the mode combination, that is, the mode combination is an intra prediction method based on combined weighting. In particular, by the equation X '= Σ i = 1- N ω i M i calculates a second prediction value, where, [omega] i and M i denote the i-th first prediction value corresponding to the intra prediction modes and the corresponding Weight coefficient. X'represents the second predicted value, N represents the number of first predicted values in the mode matrix, the weight coefficient corresponding to the first predicted value included in the mode combination is not 0, and the weight coefficients corresponding to the remaining first predicted values in the mode matrix Is 0.
在一种可能的实现方式中,预先设定限定条件,限定条件包括模式组合中的第一预测值的数量范围和/或权重系数的取值范围。例如,设定模式组合内第一预测值的数量小于5,权重系数的取值范围为-0.28-1、候选系数保留两位有效数字等。In a possible implementation manner, a limitation condition is preset, and the limitation condition includes the number range of the first predicted value and/or the value range of the weight coefficient in the mode combination. For example, the number of first predicted values in the set mode combination is less than 5, the value range of the weight coefficient is -0.28-1, and the candidate coefficient retains two significant digits.
S105:根据所述当前编码块的图像信息得到所述当前编码块的真实值,将与所述真实值差异最小的第二预测值作为所述当前编码块的预测结果。S105: Obtain the true value of the current encoding block according to the image information of the current encoding block, and use the second predicted value with the smallest difference from the true value as the prediction result of the current encoding block.
在一种可能的实现方式中,第二预测值与视频数据的真实值之间的差异通过公 式E=arg min||X’-X|| 2计算,其中,X表示视频数据的真实值,E表示第二预测值与视频数据的真实值之间的差异。 In a possible implementation, the difference between the second predicted value and the real value of the video data is calculated by the formula E=arg min||X'-X|| 2 , where X represents the real value of the video data, E represents the difference between the second predicted value and the real value of the video data.
其中,优化算法可以是正交匹配追踪算法,采用正交匹配算法计算出与视频数据的真实值之间的差异最小的第二预测值。其中,正交匹配追踪算法为现有技术,在此不再赘述。Wherein, the optimization algorithm may be an orthogonal matching pursuit algorithm, and the orthogonal matching algorithm is used to calculate the second predicted value with the smallest difference from the real value of the video data. Among them, the orthogonal matching pursuit algorithm is an existing technology, and will not be repeated here.
上述实施例中,通过获取当前编码块的图像信息以及相邻编码块的图像信息,根据相邻编码块的图像信息及至少一个预设的帧内预测模式计算相邻编码块对当前编码块进行帧内预测的至少一个第一预测值,根据至少一个第一预测值构造模式矩阵,根据模式矩阵及预设算法确定至少一个模式组合,根据当前编码块的图像信息得到当前编码块的真实值,将与真实值差异最小的第二预测值作为当前编码块的预测结果,即基于组合加权的帧内预测方法,在视频编码中可以节省比特率,提高编码性能。In the above-mentioned embodiment, by acquiring the image information of the current encoding block and the image information of the adjacent encoding block, the adjacent encoding block is calculated based on the image information of the adjacent encoding block and at least one preset intra prediction mode. At least one first predicted value of the intra-frame prediction, a mode matrix is constructed according to the at least one first predicted value, at least one mode combination is determined according to the mode matrix and a preset algorithm, and the true value of the current coding block is obtained according to the image information of the current coding block, The second predicted value with the smallest difference from the true value is used as the prediction result of the current coding block, that is, the intra-frame prediction method based on combined weighting can save bit rate and improve coding performance in video coding.
对应于上文实施例所述的视频处理方法,图2示出了本申请实施例提供的帧内预测装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the video processing method described in the above embodiment, FIG. 2 shows a structural block diagram of an intra prediction apparatus provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
如图2所示,帧内预测装置包括,As shown in Figure 2, the intra prediction device includes:
第一获取模块21,用于获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码或已解码重建的编码块;The first obtaining module 21 is configured to obtain image information of a current coding block and image information of adjacent coding blocks, where the adjacent coding blocks are coded or decoded and reconstructed coding blocks;
第一计算模块22,用于根据所述相邻编码块的图像信息及至少一个预设的帧内预测模式计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第一预测值,其中,每个第一预测值对应一个帧内预测模式;The first calculation module 22 is configured to calculate, according to the image information of the neighboring coding block and at least one preset intra prediction mode, at least one first step of the neighboring coding block for intra prediction of the current coding block. Predicted value, where each first predicted value corresponds to an intra-frame prediction mode;
构造模块23,用于根据所述至少一个第一预测值构造模式矩阵;The construction module 23 is configured to construct a mode matrix according to the at least one first predicted value;
第一确定模块24,用于根据所述模式矩阵及预设算法确定至少一个模式组合,根据所述相邻编码块的图像信息及所述模式组合计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第二预测值,其中,每个第二预测值对应一个模式组合,每个模式组合包括至少一个第一预测值及与每个第一预测值对应的权重系数;The first determining module 24 is configured to determine at least one mode combination according to the mode matrix and a preset algorithm, and calculate the current coding of the adjacent coding block according to the image information of the adjacent coding block and the mode combination At least one second predicted value for intra-frame prediction of the block, where each second predicted value corresponds to a mode combination, and each mode combination includes at least one first predicted value and a weight coefficient corresponding to each first predicted value;
预测模块25,用于根据所述当前编码块的图像信息得到所述当前编码块的真实值,将与所述真实值差异最小的第二预测值作为所述当前编码块的预测结果。The prediction module 25 is configured to obtain the real value of the current coding block according to the image information of the current coding block, and use the second predicted value with the smallest difference from the real value as the prediction result of the current coding block.
在一种可能的实现方式中,所述第二预测值由所述模式组合对应的第一预测值及权重系数计算得到。In a possible implementation manner, the second predicted value is calculated from the first predicted value and the weight coefficient corresponding to the mode combination.
在一种可能的实现方式中,所述预设算法包括优化算法和限定条件,所述限定条件包括所述模式组合中的第一预测值的数量范围和/或所述权重系数的取值范围。In a possible implementation manner, the preset algorithm includes an optimization algorithm and a restriction condition, and the restriction condition includes a quantity range of the first predicted value in the mode combination and/or a value range of the weight coefficient .
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请的帧内预测方法的实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange and execution process among the above-mentioned devices/units are based on the same concept as the embodiment of the intra prediction method of this application. For specific functions and technical effects, please refer to the method The embodiment part will not be repeated here.
如图3所示,为本申请实施例提供的视频处理系统的示意图,视频处理系统包括视频编码器31和视频解码器32,上述实施例提供的帧内预测方法应用于视频编码器31的视频编码过程和视频解码器32的视频解码过程。As shown in FIG. 3, a schematic diagram of a video processing system provided by an embodiment of this application. The video processing system includes a video encoder 31 and a video decoder 32. The intra-frame prediction method provided by the foregoing embodiment is applied to the video of the video encoder 31. The encoding process and the video decoding process of the video decoder 32.
如图4所示,本申请实施例提供的视频编码方法包括:As shown in FIG. 4, the video encoding method provided by the embodiment of the present application includes:
S401:获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码重建的编码块。S401: Acquire image information of a current encoding block and image information of adjacent encoding blocks, where the adjacent encoding block is an encoded and reconstructed encoding block.
其中,终端设备获取视频数据后,先将视频数据分割为若干帧图像,每帧图像包括若干编码块,相邻编码块为位于当前编码块的左侧或上方,且与当前编码块相邻。相邻编码块为采用任意帧内预测方法进行编码重建的编码块。Wherein, after the terminal device obtains the video data, it first divides the video data into a number of frames of images, each frame of image includes a number of coding blocks, and adjacent coding blocks are located on the left or above the current coding block and adjacent to the current coding block. The adjacent coded blocks are coded blocks that are coded and reconstructed using any intra-frame prediction method.
S402:根据所述相邻编码块的图像信息和至少两种预测策略对所述当前编码块进行帧内预测,计算每种预测策略的率失真代价值,将率失真代价值最小的预测策略作为目标预测策略,其中,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为上述的帧内预测方法。S402: Perform intra-frame prediction on the current coding block according to the image information of the adjacent coding blocks and at least two prediction strategies, calculate the rate-distortion cost value of each prediction strategy, and use the prediction strategy with the least rate-distortion cost value as The target prediction strategy, wherein the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the aforementioned intra-frame prediction method.
具体地,第一预测策略的预测值为采用上述帧内预测方法得出的与所述真实值差异最小的第二预测值,第一预测策略为与所述真实值差异最小的第二预测值对应的模式组合,模式组合包括至少一个第一预测值及对应的权重系数。第二预测策略为传统的帧内预测方法,包括一种帧内预测方法,例如,可以是上述的第一预测值对应的帧内预测方法。率失真代价值为表征预测残差及与预测残差对应的残差编码的比特数的变量,将率失真代价值最小的预测策略作为目标预测策略,减少残差编码的比特率,提高编码性能。Specifically, the predicted value of the first prediction strategy is the second predicted value with the smallest difference from the true value obtained by using the intra-frame prediction method, and the first prediction strategy is the second predicted value with the smallest difference from the true value. The corresponding mode combination includes at least one first predicted value and a corresponding weight coefficient. The second prediction strategy is a traditional intra-frame prediction method, including an intra-frame prediction method. For example, it may be the intra-frame prediction method corresponding to the above-mentioned first prediction value. The rate-distortion cost value is a variable that characterizes the prediction residuals and the number of bits of the residual coding corresponding to the prediction residuals. The prediction strategy with the least cost-effective rate-distortion is used as the target prediction strategy to reduce the bit rate of residual coding and improve coding performance .
S403:计算所述目标预测策略对所述当前编码块进行帧内预测的第三预测值。S403: Calculate a third prediction value for performing intra-frame prediction of the current coding block by the target prediction strategy.
在一种可能的实现方式中,将与真实值差异最小的第二预测值对应的模式组合作为第一预测策略,即基于组合加权的帧内预测方法,将与真实值差异最小的第一预测值对应的帧内预测方法作为第二预测策略,计算第一预测策略和第二预测策略的率失真代价值,选择出率失真代价值最小预测策略对应的预测值作为第三预测值。In a possible implementation manner, the mode combination corresponding to the second predicted value with the smallest difference between the real value is used as the first prediction strategy, that is, the intra prediction method based on combined weighting, will be the first prediction with the smallest difference from the real value The intra prediction method corresponding to the value is used as the second prediction strategy, the rate-distortion cost values of the first prediction strategy and the second prediction strategy are calculated, and the prediction value corresponding to the prediction strategy with the smallest rate-distortion cost value is selected as the third prediction value.
S404:根据所述当前编码块的图像信息得到所述当前编码块的真实值,根据所述真实值与所述第三预测值计算预测残差。S404: Obtain the real value of the current coding block according to the image information of the current coding block, and calculate a prediction residual according to the real value and the third predicted value.
其中,预测残差为第三预测值与当前编码块的真实值之间的差异。Wherein, the prediction residual is the difference between the third prediction value and the real value of the current coding block.
S405:根据所述目标预测策略和所述预测残差进行编码,根据编码结果生成视频码流。S405: Perform coding according to the target prediction strategy and the prediction residual, and generate a video code stream according to the coding result.
在一种可能的实现方式中,编码方式为二进制编码方式,若所述目标预测策略为所述第一预测策略,对所述第一预测策略对应的策略标识、所述第一预测策略对应的第一预测值的索引标识、所述第一预测策略对应的权重系数及所述预测残差进行编码。若所述目标预测策略为所述第二预测策略,对所述第二预测策略对应的策略标识、所述第一预测策略对应的第一预测值的索引标识及所述预测残差进行编码。In a possible implementation manner, the encoding method is a binary encoding method. If the target prediction strategy is the first prediction strategy, the strategy identifier corresponding to the first prediction strategy and the strategy corresponding to the first prediction strategy are The index identifier of the first prediction value, the weight coefficient corresponding to the first prediction strategy, and the prediction residual are encoded. If the target prediction strategy is the second prediction strategy, the strategy identifier corresponding to the second prediction strategy, the index identifier of the first prediction value corresponding to the first prediction strategy, and the prediction residual are encoded.
例如,若所述目标预测策略为所述第一预测策略,策略标识为1,若所述目标预测策略为所述第二预测策略,策略标识为0。若第一预测值的数量为35个,则采用0-34对应的二进制数对索引标识进行编码。若权重系数的取值范围为-0.28-1,将权重系数进行变换,使-0.28-1与0-127一一对应,采用0-127对应的二进制数对权重系数编码。每个编码块均采用同样的编码方法,即可将输入的视频数据生成对应的输出码流。For example, if the target prediction strategy is the first prediction strategy, the strategy identifier is 1, and if the target prediction strategy is the second prediction strategy, the strategy identifier is 0. If the number of the first predicted value is 35, the binary number corresponding to 0-34 is used to encode the index identifier. If the value range of the weight coefficient is -0.28-1, the weight coefficient is transformed so that -0.28-1 corresponds to 0-127 one-to-one, and the binary number corresponding to 0-127 is used to encode the weight coefficient. Each coding block adopts the same coding method, which can generate the corresponding output code stream from the input video data.
为了更好的介绍本实施例提供的视频编码方法,以视频编码器的编码过程为例,对本实施例提供的视频编码方法进行说明。In order to better introduce the video encoding method provided in this embodiment, the encoding process of a video encoder is taken as an example to describe the video encoding method provided in this embodiment.
如图5所示,将待处理的视频数据输入视频编码器,视频编码器分别执行传统的帧内预测方法和基于组合加权的帧内预测方法,根据相邻编码块对当前编码块进行预测,首先从模式矩阵中得出与真实值差异最小的第二预测值对应的模 式组合,即基于组合加权的帧内预测方法,再计算基于组合加权的帧内预测方法和传统的帧内预测方法的率失真代价值,将率失真代价值最小的预测方法作为目标预测策略,根据目标预测策略对应的第一预测策略对应的策略标识、第一预测策略对应的第一预测值的索引标识、第一预测策略对应的权重系数及预测残差进行编码,得到输出码流。As shown in Figure 5, the video data to be processed is input to the video encoder, and the video encoder executes the traditional intra-frame prediction method and the intra-frame prediction method based on combined weighting respectively, and predicts the current coding block according to the neighboring coding blocks. First, obtain the mode combination corresponding to the second predicted value with the smallest difference between the real value from the mode matrix, that is, the intra prediction method based on combined weighting, and then calculate the combined weighted intra prediction method and the traditional intra prediction method. Rate-distortion cost value, the prediction method with the smallest cost-distortion cost value is used as the target prediction strategy, and the first prediction strategy corresponding to the target prediction strategy corresponds to the strategy identification corresponding to the first prediction strategy, the index identification of the first prediction value corresponding to the first prediction strategy, and the first prediction strategy. The weight coefficients and prediction residuals corresponding to the prediction strategy are coded to obtain the output code stream.
上述实施例中,通过获取当前编码块的图像信息以及相邻编码块的图像信息,根据相邻编码块的图像信息和至少两种预测策略对当前编码块进行帧内预测,计算每种预测策略的率失真代价值,将率失真代价值最小的预测策略作为目标预测策略。即通过计算率失真代价值,在传统的帧内预测方法和基于组合加权的帧内预测方法中,选择出最优的方法作为目标预测策略,使目标预测策略对应的率失真代价值最小,再根据真实值与第三预测值计算预测残差,根据目标预测策略和预测残差进行编码,根据编码结果生成视频码流,对每个编码块进行同样的处理后,实现对视频数据的编码处理,提高编码性能。In the above embodiment, by acquiring the image information of the current coding block and the image information of the adjacent coding block, the current coding block is intra-predicted according to the image information of the adjacent coding block and at least two prediction strategies, and each prediction strategy is calculated. The rate-distortion cost value of, the prediction strategy with the smallest rate-distortion cost value is the target prediction strategy. That is, by calculating the rate-distortion cost value, in the traditional intra-frame prediction method and the intra-frame prediction method based on combined weighting, the optimal method is selected as the target prediction strategy to minimize the rate-distortion cost value corresponding to the target prediction strategy. Calculate the prediction residuals according to the real value and the third predicted value, encode according to the target prediction strategy and the prediction residuals, generate a video code stream according to the coding results, and perform the same processing on each coding block to realize the coding processing of the video data , Improve coding performance.
对应于上文实施例所述的视频编码方法,图6示出了本申请实施例提供的视频编码装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the video encoding method described in the above embodiments, FIG. 6 shows a structural block diagram of a video encoding device provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
如图6所示,视频编码装置包括,As shown in Figure 6, the video encoding device includes:
第二获取模块61,用于获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码重建的编码块;The second acquiring module 61 is configured to acquire image information of the current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded and reconstructed encoding blocks;
第二确定模块62,用于根据所述相邻编码块的图像信息和至少两种预测策略对所述当前编码块进行帧内预测,计算每种预测策略的率失真代价值,将率失真代价值最小的预测策略作为目标预测策略,其中,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为如权利要求1-3任一项所述的帧内预测方法;The second determining module 62 is configured to perform intra-frame prediction on the current coding block according to the image information of the adjacent coding block and at least two prediction strategies, calculate the rate-distortion cost value of each prediction strategy, and replace the rate-distortion The prediction strategy with the least value is used as the target prediction strategy, wherein the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the frame according to any one of claims 1-3. Intra-prediction method;
第二计算模块63,用于计算所述目标预测策略对所述当前编码块进行帧内预测的第三预测值;The second calculation module 63 is configured to calculate a third prediction value for performing intra-frame prediction of the current coding block by the target prediction strategy;
第三计算模块64,用于根据所述当前编码块的图像信息得到所述当前编码块的真实值,根据所述真实值与所述第三预测值计算预测残差;The third calculation module 64 is configured to obtain the true value of the current encoding block according to the image information of the current encoding block, and calculate a prediction residual according to the true value and the third predicted value;
编码模块65,用于根据所述目标预测策略和所述预测残差进行编码,根据编码 结果生成视频码流。The encoding module 65 is used for encoding according to the target prediction strategy and the prediction residual, and generating a video code stream according to the encoding result.
在一种可能的实现方式中,所述编码模块65具体用于:若所述目标预测策略为所述第一预测策略,对所述第一预测策略对应的策略标识、所述第一预测策略对应的第一预测值的索引标识、所述第一预测策略对应的权重系数及所述预测残差进行编码。In a possible implementation manner, the encoding module 65 is specifically configured to: if the target prediction strategy is the first prediction strategy, identify the strategy identifier corresponding to the first prediction strategy and the first prediction strategy The index identifier of the corresponding first prediction value, the weight coefficient corresponding to the first prediction strategy, and the prediction residual are encoded.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请的视频编码方法的实施例基于同一构思,其具体功能及带来的技术效果,具体可参见视频编码方法的实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the embodiment of the video coding method of this application, and their specific functions and technical effects can be found in video coding. The embodiment part of the method will not be repeated here.
如图7所示,本申请实施例提供的视频解码方法包括:As shown in FIG. 7, the video decoding method provided by the embodiment of the present application includes:
S701:获取视频码流。S701: Obtain a video code stream.
具体地,视频码流为经过视频编码器编码后生成的输出码流。Specifically, the video code stream is an output code stream generated after being encoded by a video encoder.
S702:对所述视频码流进行解码,得到策略标识和预测残差。S702: Decode the video code stream to obtain a strategy identifier and a prediction residual.
具体地,视频解码器获取视频码流后,根据视频编码器的编码规则,对策略标识对应的编码和预测残差进行的编码分别进行解码,还原编码前的数据。Specifically, after obtaining the video code stream, the video decoder decodes the encoding corresponding to the policy identifier and the encoding performed on the prediction residual according to the encoding rules of the video encoder, and restores the data before encoding.
S703:根据所述策略标识从至少两种预测策略中确定目标预测策略,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为上述的帧内预测方法。S703: Determine a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is the aforementioned intra prediction method .
在一种可能的实现方式中,首先根据解码后得到的策略标识判断出是第一预测策略还是第二预测策略,第一预测策略为基于组合加权的帧内预测方法,第二预测策略为传统的帧内预测方法。例如,若策略标识为1,则说明目标预测策略为第一预测策略,若策略标识为0,则说明目标预测策略为第二预测策略。In a possible implementation, firstly determine whether it is the first prediction strategy or the second prediction strategy according to the strategy identifier obtained after decoding. The first prediction strategy is an intra prediction method based on combined weighting, and the second prediction strategy is a traditional prediction strategy. The intra-frame prediction method. For example, if the strategy identification is 1, it means that the target prediction strategy is the first prediction strategy, and if the strategy identification is 0, it means that the target prediction strategy is the second prediction strategy.
S704:根据所述目标预测策略和所述预测残差进行视频重建。S704: Perform video reconstruction according to the target prediction strategy and the prediction residual.
在一种可能的实现方式中,若目标预测策略为第一预测策略,对视频码流进一步解码,得到第一预测策略对应的第一预测值的索引标识、第一预测策略对应的权重系数;根据第一预测策略对应的第一预测值的索引标识、第一预测策略对应的权重系数和预测残差进行视频重建。In a possible implementation manner, if the target prediction strategy is the first prediction strategy, the video code stream is further decoded to obtain the index identification of the first prediction value corresponding to the first prediction strategy and the weight coefficient corresponding to the first prediction strategy; Perform video reconstruction according to the index identifier of the first prediction value corresponding to the first prediction strategy, the weight coefficient corresponding to the first prediction strategy, and the prediction residual.
在另一种可能的实现方式中,若目标预测策略为第二预测策略,对视频码流进一步解码,得到第一预测策略对应的第一预测值的索引标识;根据第一预测策 略对应的第一预测值的索引标识和预测残差进行视频重建。In another possible implementation manner, if the target prediction strategy is the second prediction strategy, the video code stream is further decoded to obtain the index identification of the first prediction value corresponding to the first prediction strategy; according to the first prediction strategy corresponding to the first prediction strategy A prediction value index identification and prediction residuals are used for video reconstruction.
为了更好的介绍本实施例提供的视频解码方法,以视频解码器的解码过程为例,对本实施例提供的视频解码方法进行说明。In order to better introduce the video decoding method provided in this embodiment, the decoding process of a video decoder is taken as an example to describe the video decoding method provided in this embodiment.
如图8所示,将经过编码处理的视频码流输入视频编码器,视频解码器首先根据策略标识解码,根据策略标识判断目标预测策略是传统的帧内预测方法,还是基于组合加权的帧内预测方法。确定出目标预测策略后,再进一步对目标预测策略对应的编码进行解码,若目标预测策略为基于组合加权的帧内预测方法,解码得到第一预测值的索引标识和第一预测策略对应的权重系数;若目标预测策略为传统的帧内预测方法,解码得到第一预测值的索引标识。根据解码后的目标预测策略和解码得到的预测残差,即可进行视频重建,恢复原始视频数据。As shown in Figure 8, the encoded video stream is input to the video encoder. The video decoder first decodes according to the strategy identifier, and determines whether the target prediction strategy is a traditional intra-frame prediction method or a combined-weighted intra-frame based on the strategy identifier. method of prediction. After the target prediction strategy is determined, the code corresponding to the target prediction strategy is further decoded. If the target prediction strategy is an intra prediction method based on combined weighting, the index identification of the first prediction value and the weight corresponding to the first prediction strategy are obtained by decoding Coefficient; if the target prediction strategy is a traditional intra-frame prediction method, the index identifier of the first predicted value is obtained by decoding. According to the decoded target prediction strategy and the decoded prediction residual, the video can be reconstructed and the original video data can be restored.
上述实施例中,通过获取输入码流,对输入码流进行解码,得到策略标识和预测残差;根据策略标识确定目标预测策略为传统的帧内预测方法还是基于组合加权的帧内预测方法,确定目标预测策略后,再进一步对目标预测策略进行解码,根据解码后的目标预测策略和预测残差进行视频重建。In the above embodiment, the input code stream is acquired and the input code stream is decoded to obtain the strategy identifier and the prediction residual; according to the strategy identifier, it is determined whether the target prediction strategy is a traditional intra prediction method or a combined weighted intra prediction method, After determining the target prediction strategy, the target prediction strategy is further decoded, and the video is reconstructed according to the decoded target prediction strategy and the prediction residual.
应理解,上述各实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiments does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. .
对应于上文实施例所述的视频解码方法,图9示出了本申请实施例提供的视频解码装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the video decoding method described in the above embodiment, FIG. 9 shows a structural block diagram of a video decoding device provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
如图9所示,视频解码装置包括,As shown in Figure 9, the video decoding device includes:
第三获取模块91,用于获取视频码流;The third obtaining module 91 is used to obtain a video code stream;
解码模块92,用于对所述视频码流进行解码,得到策略标识和预测残差;The decoding module 92 is configured to decode the video code stream to obtain a strategy identifier and a prediction residual;
第三确定模块93,用于根据所述策略标识从至少两种预测策略中确定目标预测策略,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为上述的帧内预测方法;The third determining module 93 is configured to determine a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is The above-mentioned intra-frame prediction method;
视频重建模块94,用于根据所述目标预测策略和所述预测残差进行视频重建。The video reconstruction module 94 is configured to perform video reconstruction according to the target prediction strategy and the prediction residual.
在一种可能的实现方式中,所述视频重建模块94具体用于:若所述目标预测策 略为所述第一预测策略,对所述视频码流进一步解码,得到所述第一预测策略对应的第一预测值的索引标识、所述第一预测策略对应的权重系数;根据所述第一预测策略对应的第一预测值的索引标识、所述第一预测策略对应的权重系数和所述预测残差进行视频重建。In a possible implementation manner, the video reconstruction module 94 is specifically configured to: if the target prediction strategy is the first prediction strategy, further decode the video code stream to obtain the corresponding first prediction strategy According to the index identifier of the first prediction value corresponding to the first prediction strategy, the weight coefficient corresponding to the first prediction strategy; the index identifier of the first prediction value corresponding to the first prediction strategy, the weight coefficient corresponding to the first prediction strategy, and the The prediction residual is used for video reconstruction.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见视频解码方法的实施例部分,此处不再赘述。It should be noted that the information exchange and execution process between the above-mentioned devices/units are based on the same concept as the method embodiments of this application, and their specific functions and technical effects can be found in the embodiments of the video decoding method. Part, I won’t repeat it here.
图10是本申请实施例提供的终端设备的示意图。如图10所示,该实施例的终端设备包括:处理器101、存储器102以及存储在所述存储器102中并可在所述处理器101上运行的计算机程序103。所述处理器101执行所述计算机程序103时实现上述帧内预测方法实施例中的步骤,例如图1所示的步骤S101至S105。或者,所述处理器101执行所述计算机程序103时实现上述帧内预测装置实施例中各模块/单元的功能,例如图2所示模块21至25的功能。FIG. 10 is a schematic diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 10, the terminal device of this embodiment includes: a processor 101, a memory 102, and a computer program 103 that is stored in the memory 102 and can run on the processor 101. When the processor 101 executes the computer program 103, the steps in the above embodiment of the intra prediction method are implemented, for example, steps S101 to S105 shown in FIG. 1. Alternatively, when the processor 101 executes the computer program 103, the function of each module/unit in the embodiment of the intra prediction apparatus described above, for example, the function of the modules 21 to 25 shown in FIG. 2 is realized.
示例性的,所述计算机程序103可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器102中,并由所述处理器101执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序103在所述终端设备中的执行过程。Exemplarily, the computer program 103 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 102 and executed by the processor 101 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 103 in the terminal device.
所述终端设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。本领域技术人员可以理解,图10仅仅是终端设备的示例,并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. Those skilled in the art can understand that FIG. 10 is only an example of a terminal device, and does not constitute a limitation on the terminal device. It may include more or less components than those shown in the figure, or a combination of certain components, or different components, such as The terminal device may also include input and output devices, network access devices, buses, and so on.
所述处理器101可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器 也可以是任何常规的处理器等。The processor 101 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器102可以是所述终端设备的内部存储单元,例如终端设备的硬盘或内存。所述存储器102也可以是所述终端设备的外部存储设备,例如所述终端设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器102还可以既包括所述终端设备的内部存储单元也包括外部存储设备。所述存储器102用于存储所述计算机程序以及所述终端设备所需的其他程序和数据。所述存储器102还可以用于暂时地存储已经输出或者将要输出的数据。The memory 102 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory 102 may also be an external storage device of the terminal device, for example, a plug-in hard disk equipped on the terminal device, a smart memory card (Smart Media Card, SMC), or a Secure Digital (SD) card, Flash Card, etc. Further, the memory 102 may also include both an internal storage unit of the terminal device and an external storage device. The memory 102 is used to store the computer program and other programs and data required by the terminal device. The memory 102 can also be used to temporarily store data that has been output or will be output.
图11是本申请实施例提供的视频编码器的示意图。如图11所示,该实施例的视频编码器包括:处理器111、存储器112以及存储在所述存储器112中并可在所述处理器111上运行的计算机程序113。所述处理器111执行所述计算机程序113时实现上述视频编码方法实施例中的步骤,例如图4所示的步骤S401至S405。或者,所述处理器111执行所述计算机程序113时实现上述视频编码装置实施例中各模块/单元的功能,例如图6所示模块61至65的功能。Fig. 11 is a schematic diagram of a video encoder provided by an embodiment of the present application. As shown in FIG. 11, the video encoder of this embodiment includes: a processor 111, a memory 112, and a computer program 113 stored in the memory 112 and running on the processor 111. When the processor 111 executes the computer program 113, the steps in the foregoing embodiment of the video encoding method are implemented, for example, steps S401 to S405 shown in FIG. 4. Alternatively, when the processor 111 executes the computer program 113, the functions of the modules/units in the foregoing embodiment of the video encoding device are implemented, for example, the functions of the modules 61 to 65 shown in FIG. 6.
示例性的,所述计算机程序113可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器112中,并由所述处理器111执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序113在所述视频编码器中的执行过程。Exemplarily, the computer program 113 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 112 and executed by the processor 111 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 113 in the video encoder.
本领域技术人员可以理解,图11仅仅是视频编码器的示例,并不构成对视频编码器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述视频编码器还可以包括输入输出设备、网络接入设备、总线等。Those skilled in the art can understand that FIG. 11 is only an example of a video encoder, and does not constitute a limitation on the video encoder. It may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, the video encoder may also include input and output devices, network access devices, buses, and so on.
所述处理器111可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者 晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 111 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器112可以是所述视频编码器的内部存储单元,例如视频编码器的硬盘或内存。所述存储器112也可以是所述视频编码器的外部存储设备,例如所述视频编码器上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器112还可以既包括所述视频编码器的内部存储单元也包括外部存储设备。所述存储器112用于存储所述计算机程序以及所述视频编码器所需的其他程序和数据。所述存储器112还可以用于暂时地存储已经输出或者将要输出的数据。The memory 112 may be an internal storage unit of the video encoder, such as a hard disk or a memory of the video encoder. The memory 112 may also be an external storage device of the video encoder, such as a plug-in hard disk equipped on the video encoder, a smart media card (SMC), or a secure digital (SD) Card, Flash Card, etc. Further, the memory 112 may also include both an internal storage unit of the video encoder and an external storage device. The memory 112 is used to store the computer program and other programs and data required by the video encoder. The memory 112 may also be used to temporarily store data that has been output or will be output.
图12是本申请实施例提供的视频解码器的示意图。如图12所示,该实施例的视频解码器包括:处理器121、存储器122以及存储在所述存储器122中并可在所述处理器121上运行的计算机程序123。所述处理器121执行所述计算机程序123时实现上述视频处理方法实施例中的步骤,例如图7所示的视频解码方法的步骤S701至S704。或者,所述处理器121执行所述计算机程序123时实现上述视频解码装置实施例中各模块/单元的功能,例如图9所示模块91至94的功能。Fig. 12 is a schematic diagram of a video decoder provided by an embodiment of the present application. As shown in FIG. 12, the video decoder of this embodiment includes: a processor 121, a memory 122, and a computer program 123 stored in the memory 122 and running on the processor 121. When the processor 121 executes the computer program 123, the steps in the foregoing embodiment of the video processing method are implemented, for example, steps S701 to S704 of the video decoding method shown in FIG. 7. Alternatively, when the processor 121 executes the computer program 123, the functions of the modules/units in the foregoing embodiment of the video decoding apparatus are implemented, for example, the functions of the modules 91 to 94 shown in FIG. 9.
示例性的,所述计算机程序123可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器122中,并由所述处理器121执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序123在所述视频解码器中的执行过程。Exemplarily, the computer program 123 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 122 and executed by the processor 121 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 123 in the video decoder.
本领域技术人员可以理解,图12仅仅是视频解码器示例,并不构成对视频解码器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述视频解码器还可以包括输入输出设备、网络接入设备、总线等。Those skilled in the art can understand that FIG. 12 is only an example of a video decoder, and does not constitute a limitation on the video decoder. It may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, the video decoder may also include input and output devices, network access devices, buses, and so on.
所述处理器121可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者 晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 121 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器122可以是所述视频解码器的内部存储单元,例如视频解码器的硬盘或内存。所述存储器122也可以是所述视频解码器的外部存储设备,例如所述视频解码器上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器122还可以既包括所述视频解码器的内部存储单元也包括外部存储设备。所述存储器122用于存储所述计算机程序以及所述视频解码器所需的其他程序和数据。所述存储器122还可以用于暂时地存储已经输出或者将要输出的数据。The memory 122 may be an internal storage unit of the video decoder, such as a hard disk or a memory of the video decoder. The memory 122 may also be an external storage device of the video decoder, such as a plug-in hard disk equipped on the video decoder, a smart memory card (Smart Media Card, SMC), or Secure Digital (SD). Card, Flash Card, etc. Further, the memory 122 may also include both an internal storage unit of the video decoder and an external storage device. The memory 122 is used to store the computer program and other programs and data required by the video decoder. The memory 122 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一 个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/terminal device and method may be implemented in other ways. For example, the device/terminal device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (15)

  1. 一种帧内预测方法,其特征在于,包括:An intra-frame prediction method is characterized in that it comprises:
    获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码或已解码重建的编码块;Acquiring image information of the current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded or decoded and reconstructed encoding blocks;
    根据所述相邻编码块的图像信息及至少一个预设的帧内预测模式计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第一预测值,其中,每个第一预测值对应一个帧内预测模式;According to the image information of the adjacent coding block and at least one preset intra prediction mode, at least one first prediction value of the adjacent coding block for intra prediction of the current coding block is calculated, wherein each first prediction value is One prediction value corresponds to one intra prediction mode;
    根据所述至少一个第一预测值构造模式矩阵;Constructing a mode matrix according to the at least one first predicted value;
    根据所述模式矩阵及预设算法确定至少一个模式组合,根据所述相邻编码块的图像信息及所述模式组合计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第二预测值,其中,每个第二预测值对应一个模式组合,每个模式组合包括至少一个第一预测值及与每个第一预测值对应的权重系数;At least one mode combination is determined according to the mode matrix and a preset algorithm, and at least one of the intra-frame prediction of the current coding block by the neighboring coding block is calculated according to the image information of the neighboring coding block and the mode combination The second prediction value, where each second prediction value corresponds to a mode combination, and each mode combination includes at least one first prediction value and a weight coefficient corresponding to each first prediction value;
    根据所述当前编码块的图像信息得到所述当前编码块的真实值,将与所述真实值差异最小的第二预测值作为所述当前编码块的预测结果。Obtain the true value of the current encoding block according to the image information of the current encoding block, and use the second predicted value with the smallest difference from the true value as the prediction result of the current encoding block.
  2. 如权利要求1所述的帧内预测方法,其特征在于,所述第二预测值由所述模式组合对应的第一预测值及权重系数计算得到。8. The intra-frame prediction method according to claim 1, wherein the second predicted value is calculated from the first predicted value and the weight coefficient corresponding to the mode combination.
  3. 如权利要求1所述的帧内预测方法,其特征在于,所述预设算法包括优化算法和限定条件,所述限定条件包括所述模式组合中的第一预测值的数量范围和/或所述权重系数的取值范围。The intra-frame prediction method according to claim 1, wherein the preset algorithm includes an optimization algorithm and a limited condition, and the limited condition includes the number range of the first predicted value in the mode combination and/or the The value range of the weight coefficient.
  4. 一种视频编码方法,应用于视频编码器,其特征在于,所述视频编码方法包括:A video encoding method applied to a video encoder, characterized in that the video encoding method includes:
    获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码重建的编码块;Acquiring image information of a current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded and reconstructed encoding blocks;
    根据所述相邻编码块的图像信息和至少两种预测策略对所述当前编码块进行帧内预测,计算每种预测策略的率失真代价值,将率失真代价值最小的预测策略作为目标预测策略,其中,所述至少 两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为如权利要求1-3任一项所述的帧内预测方法;Perform intra-frame prediction on the current coding block according to the image information of the adjacent coding block and at least two prediction strategies, calculate the rate-distortion cost value of each prediction strategy, and use the prediction strategy with the smallest rate-distortion cost value as the target prediction Strategy, wherein the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the intra prediction method according to any one of claims 1-3;
    计算所述目标预测策略对所述当前编码块进行帧内预测的第三预测值;Calculating a third prediction value for performing intra-frame prediction of the current coding block by the target prediction strategy;
    根据所述当前编码块的图像信息得到所述当前编码块的真实值,根据所述真实值与所述第三预测值计算预测残差;Obtaining the real value of the current coding block according to the image information of the current coding block, and calculating a prediction residual according to the real value and the third predicted value;
    根据所述目标预测策略和所述预测残差进行编码,根据编码结果生成视频码流。Encoding is performed according to the target prediction strategy and the prediction residual, and a video code stream is generated according to the encoding result.
  5. 如权利要求4所述的视频编码方法,其特征在于,所述根据所述目标预测策略和所述预测残差进行编码,具体包括:The video encoding method according to claim 4, wherein the encoding according to the target prediction strategy and the prediction residual specifically comprises:
    若所述目标预测策略为所述第一预测策略,对所述第一预测策略对应的策略标识、所述第一预测策略对应的第一预测值的索引标识、所述第一预测策略对应的权重系数及所述预测残差进行编码。If the target prediction strategy is the first prediction strategy, the strategy ID corresponding to the first prediction strategy, the index ID of the first prediction value corresponding to the first prediction strategy, and the index ID corresponding to the first prediction strategy are The weight coefficient and the prediction residual are encoded.
  6. 一种视频解码方法,应用于视频解码器,其特征在于,所述视频解码方法包括:A video decoding method applied to a video decoder, characterized in that the video decoding method includes:
    获取视频码流;Obtain video stream;
    对所述视频码流进行解码,得到策略标识和预测残差;Decoding the video code stream to obtain a strategy identifier and a prediction residual;
    根据所述策略标识从至少两种预测策略中确定目标预测策略,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为如权利要求1-3任一项所述的帧内预测方法;Determine a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is any one of claims 1-3 The intra-frame prediction method described in item;
    根据所述目标预测策略和所述预测残差进行视频重建。Perform video reconstruction according to the target prediction strategy and the prediction residual.
  7. 如权利要求6所述的视频解码方法,其特征在于,所述根据所述目标预测策略和所述预测残差进行视频重建,包括:8. The video decoding method according to claim 6, wherein said performing video reconstruction according to said target prediction strategy and said prediction residual comprises:
    若所述目标预测策略为所述第一预测策略,对所述视频码流进一步解码,得到所述第一预测策略对应的第一预测值的索引标识、所述第一预测策略对应的权重系数;If the target prediction strategy is the first prediction strategy, the video code stream is further decoded to obtain the index identifier of the first prediction value corresponding to the first prediction strategy and the weight coefficient corresponding to the first prediction strategy ;
    根据所述第一预测策略对应的第一预测值的索引标识、所述第一 预测策略对应的权重系数和所述预测残差进行视频重建。Perform video reconstruction according to the index identifier of the first prediction value corresponding to the first prediction strategy, the weight coefficient corresponding to the first prediction strategy, and the prediction residual.
  8. 一种帧内预测装置,其特征在于,包括:An intra-frame prediction device is characterized in that it comprises:
    第一获取模块,用于获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码或已解码重建的编码块;The first acquisition module is configured to acquire image information of the current encoding block and image information of adjacent encoding blocks, where the adjacent encoding blocks are encoded or decoded and reconstructed encoding blocks;
    第一计算模块,用于根据所述相邻编码块的图像信息及至少一个预设的帧内预测模式计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第一预测值,其中,每个第一预测值对应一个帧内预测模式;The first calculation module is configured to calculate at least one first prediction of intra prediction of the current coding block by the neighboring coding block according to the image information of the neighboring coding block and at least one preset intra prediction mode Value, where each first prediction value corresponds to an intra prediction mode;
    构造模块,用于根据所述至少一个第一预测值构造模式矩阵;A construction module, configured to construct a mode matrix according to the at least one first predicted value;
    第一确定模块,用于根据所述模式矩阵及预设算法确定至少一个模式组合,根据所述相邻编码块的图像信息及所述模式组合计算所述相邻编码块对所述当前编码块进行帧内预测的至少一个第二预测值,其中,每个第二预测值对应一个模式组合,每个模式组合包括至少一个第一预测值及与每个第一预测值对应的权重系数;The first determining module is configured to determine at least one mode combination according to the mode matrix and a preset algorithm, and calculate the comparison between the adjacent coding block and the current coding block according to the image information of the adjacent coding block and the mode combination At least one second predicted value for intra-frame prediction, where each second predicted value corresponds to a mode combination, and each mode combination includes at least one first predicted value and a weight coefficient corresponding to each first predicted value;
    预测模块,用于根据所述当前编码块的图像信息得到所述当前编码块的真实值,将与所述真实值差异最小的第二预测值作为所述当前编码块的预测结果。The prediction module is configured to obtain the real value of the current coding block according to the image information of the current coding block, and use the second predicted value with the smallest difference from the real value as the prediction result of the current coding block.
  9. 一种视频编码装置,其特征在于,包括:A video encoding device, characterized in that it comprises:
    第二获取模块,用于获取当前编码块的图像信息以及相邻编码块的图像信息,其中,所述相邻编码块为已编码重建的编码块;The second acquiring module is configured to acquire the image information of the current encoding block and the image information of the adjacent encoding block, wherein the adjacent encoding block is an encoded and reconstructed encoding block;
    第二确定模块,用于根据所述相邻编码块的图像信息和至少两种预测策略对所述当前编码块进行帧内预测,计算每种预测策略的率失真代价值,将率失真代价值最小的预测策略作为目标预测策略,其中,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为如权利要求1-3任一项所述的帧内预测方法;The second determining module is configured to perform intra-frame prediction on the current coding block according to the image information of the adjacent coding block and at least two prediction strategies, calculate the rate-distortion cost value of each prediction strategy, and replace the rate-distortion cost value The smallest prediction strategy is used as the target prediction strategy, wherein the at least two prediction strategies include a first prediction strategy and a second prediction strategy, and the first prediction strategy is the intraframe according to any one of claims 1 to 3 method of prediction;
    第二计算模块,用于计算所述目标预测策略对所述当前编码块进行帧内预测的第三预测值;A second calculation module, configured to calculate a third prediction value for intra-frame prediction of the current coding block by the target prediction strategy;
    第三计算模块,用于根据所述当前编码块的图像信息得到所述当前编码块的真实值,根据所述真实值与所述第三预测值计算预测残差;A third calculation module, configured to obtain the true value of the current encoding block according to the image information of the current encoding block, and calculate a prediction residual according to the true value and the third predicted value;
    编码模块,用于根据所述目标预测策略和所述预测残差进行编码,根据编码结果生成视频码流。The encoding module is used for encoding according to the target prediction strategy and the prediction residual, and generating a video code stream according to the encoding result.
  10. 一种视频解码装置,其特征在于,包括:A video decoding device, characterized in that it comprises:
    第三获取模块,用于获取视频码流;The third acquisition module is used to acquire the video code stream;
    解码模块,用于对所述视频码流进行解码,得到策略标识和预测残差;The decoding module is used to decode the video code stream to obtain a strategy identifier and a prediction residual;
    第三确定模块,用于根据所述策略标识从至少两种预测策略中确定目标预测策略,所述至少两种预测策略包括第一预测策略和第二预测策略,所述第一预测策略为如权利要求1-3任一项所述的帧内预测方法;The third determining module is configured to determine a target prediction strategy from at least two prediction strategies according to the strategy identifier, the at least two prediction strategies including a first prediction strategy and a second prediction strategy, and the first prediction strategy is as The intra-frame prediction method according to any one of claims 1-3;
    视频重建模块,用于根据所述目标预测策略和所述预测残差进行视频重建。The video reconstruction module is configured to perform video reconstruction according to the target prediction strategy and the prediction residual.
  11. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至3任一项所述的方法。A terminal device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program as claimed in claims 1 to 3. The method of any one of.
  12. 一种视频编码器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求4至5任一项所述的方法。A video encoder, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program as claimed in claim 4 To the method of any one of 5.
  13. 一种视频解码器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求6至7任一项所述的方法。A video decoder, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program as claimed in claim 6 To the method of any one of 7.
  14. 一种视频处理系统,包括如权利要求12所述的视频编码器和如权利要求13所述的视频解码器。A video processing system, comprising the video encoder according to claim 12 and the video decoder according to claim 13.
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至3或4至5或6至7任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it realizes any one of claims 1 to 3 or 4 to 5 or 6 to 7. The method described in the item.
PCT/CN2019/124362 2019-12-10 2019-12-10 Intra-frame prediction method, video encoding and decoding methods, and related device WO2021114100A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/124362 WO2021114100A1 (en) 2019-12-10 2019-12-10 Intra-frame prediction method, video encoding and decoding methods, and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/124362 WO2021114100A1 (en) 2019-12-10 2019-12-10 Intra-frame prediction method, video encoding and decoding methods, and related device

Publications (1)

Publication Number Publication Date
WO2021114100A1 true WO2021114100A1 (en) 2021-06-17

Family

ID=76329177

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124362 WO2021114100A1 (en) 2019-12-10 2019-12-10 Intra-frame prediction method, video encoding and decoding methods, and related device

Country Status (1)

Country Link
WO (1) WO2021114100A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113901909A (en) * 2021-09-30 2022-01-07 北京百度网讯科技有限公司 Video-based target detection method and device, electronic equipment and storage medium
CN117295207A (en) * 2023-11-24 2023-12-26 深圳市千岩科技有限公司 Atmosphere lamp equipment, instruction transmission and application methods thereof, and corresponding devices and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014125A (en) * 2006-02-02 2007-08-08 三星电子株式会社 Method of and apparatus for deciding intraprediction mode
CN101350927A (en) * 2008-07-29 2009-01-21 北京中星微电子有限公司 Method and apparatus for forecasting and selecting optimum estimation mode in a frame
CN105491390A (en) * 2015-11-30 2016-04-13 哈尔滨工业大学 Intra-frame prediction method in hybrid video coding standard
CN107113425A (en) * 2014-11-06 2017-08-29 三星电子株式会社 Method for video coding and equipment and video encoding/decoding method and equipment
EP3396951A1 (en) * 2016-02-16 2018-10-31 Samsung Electronics Co., Ltd. Video decoding method and device for same and video encoding method and device for same
CN108781283A (en) * 2016-01-12 2018-11-09 瑞典爱立信有限公司 Use the Video coding of mixing intra prediction
US20190306526A1 (en) * 2018-04-03 2019-10-03 Electronics And Telecommunications Research Institute Inter-prediction method and apparatus using reference frame generated based on deep learning

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014125A (en) * 2006-02-02 2007-08-08 三星电子株式会社 Method of and apparatus for deciding intraprediction mode
CN101350927A (en) * 2008-07-29 2009-01-21 北京中星微电子有限公司 Method and apparatus for forecasting and selecting optimum estimation mode in a frame
CN107113425A (en) * 2014-11-06 2017-08-29 三星电子株式会社 Method for video coding and equipment and video encoding/decoding method and equipment
CN105491390A (en) * 2015-11-30 2016-04-13 哈尔滨工业大学 Intra-frame prediction method in hybrid video coding standard
CN108781283A (en) * 2016-01-12 2018-11-09 瑞典爱立信有限公司 Use the Video coding of mixing intra prediction
EP3396951A1 (en) * 2016-02-16 2018-10-31 Samsung Electronics Co., Ltd. Video decoding method and device for same and video encoding method and device for same
US20190306526A1 (en) * 2018-04-03 2019-10-03 Electronics And Telecommunications Research Institute Inter-prediction method and apparatus using reference frame generated based on deep learning

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113901909A (en) * 2021-09-30 2022-01-07 北京百度网讯科技有限公司 Video-based target detection method and device, electronic equipment and storage medium
CN113901909B (en) * 2021-09-30 2023-10-27 北京百度网讯科技有限公司 Video-based target detection method and device, electronic equipment and storage medium
CN117295207A (en) * 2023-11-24 2023-12-26 深圳市千岩科技有限公司 Atmosphere lamp equipment, instruction transmission and application methods thereof, and corresponding devices and medium
CN117295207B (en) * 2023-11-24 2024-03-01 深圳市千岩科技有限公司 Atmosphere lamp equipment, instruction transmission and application methods thereof, and corresponding devices and medium

Similar Documents

Publication Publication Date Title
Liu et al. Parallel fractal compression method for big video data
AU2016390979B2 (en) Image encoding method and apparatus, and image decoding method and apparatus
CN107809642B (en) Method for encoding and decoding video image, encoding device and decoding device
CN110881125B (en) Intra-frame prediction method, video coding method, video decoding method and related equipment
EP3509305B1 (en) Intra-prediction video coding method and device
WO2016065872A1 (en) Image prediction method and relevant device
WO2016180129A1 (en) Prediction mode selection method, apparatus and device
WO2021114100A1 (en) Intra-frame prediction method, video encoding and decoding methods, and related device
CN110019865B (en) Mass image processing method and device, electronic equipment and storage medium
WO2019027523A1 (en) Scan order adaptation for entropy coding of blocks of image data
US20210360246A1 (en) Shape adaptive discrete cosine transform for geometric partitioning with an adaptive number of regions
US20230232004A1 (en) Point cloud encoding and decoding method and system, and point cloud encoder and point cloud decoder
CA2770799A1 (en) Method and system using prediction and error correction for the compact representation of quantization matrices in video compression
Zhang et al. Distilling the essence of raw video to reduce memory usage and energy at edge devices
WO2018040869A1 (en) Interframe predictive coding method and device
CN108574849A (en) DCT inverse transformation methods, inverter, electronic equipment and storage medium
WO2019184489A1 (en) Method for transformation in image block coding, and method and apparatus for inverse transformation in image block decoding
EP3761646A1 (en) Context modelling method and device for partition flag bit
CN116600119B (en) Video encoding method, video decoding method, video encoding device, video decoding device, computer equipment and storage medium
WO2021162723A1 (en) Intra prediction for image and video compression
US20190313101A1 (en) Adaptation of scan order for entropy coding
CN109474826B (en) Picture compression method and device, electronic equipment and storage medium
CN116170596A (en) Encoding and decoding method and electronic equipment
US10397609B2 (en) Method and apparatus for predicting residual
CN116828184B (en) Video encoding method, video decoding method, video encoding device, video decoding device, computer equipment and storage medium

Legal Events

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

Ref document number: 19955813

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19955813

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/01/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 19955813

Country of ref document: EP

Kind code of ref document: A1