CN114584768A - Video coding control method, device, equipment and storage medium - Google Patents

Video coding control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114584768A
CN114584768A CN202210147152.9A CN202210147152A CN114584768A CN 114584768 A CN114584768 A CN 114584768A CN 202210147152 A CN202210147152 A CN 202210147152A CN 114584768 A CN114584768 A CN 114584768A
Authority
CN
China
Prior art keywords
coding block
inter
current coding
frame
prediction mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210147152.9A
Other languages
Chinese (zh)
Inventor
刘杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bigo Technology Singapore Pte Ltd
Original Assignee
Bigo Technology Singapore Pte Ltd
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 Bigo Technology Singapore Pte Ltd filed Critical Bigo Technology Singapore Pte Ltd
Priority to CN202210147152.9A priority Critical patent/CN114584768A/en
Publication of CN114584768A publication Critical patent/CN114584768A/en
Priority to PCT/CN2023/075688 priority patent/WO2023155751A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Landscapes

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

Abstract

The embodiment of the invention discloses a video coding control method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block; when the interframe preprocessing cost is larger than the intraframe preprocessing cost, determining an adjacent coding block related to the current coding block according to the position of the current coding block; and determining whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding blocks, and skipping the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block. According to the scheme, the video coding efficiency is obviously improved by reasonably skipping the inter-frame prediction mode.

Description

Video coding control method, device, equipment and storage medium
Technical Field
The present application relates to the field of video processing technologies, and in particular, to a video coding control method, apparatus, device, and storage medium.
Background
In order to improve the storage and transmission efficiency of video, a common method is to compress video data, and the compression process involves encoding video images. Because the content of continuous multi-frame images in the video images has similarity, the video image sequence can be coded by an intra-frame prediction technology and an inter-frame prediction technology, and the video compression efficiency can be greatly improved.
In the related technology, an encoder first performs preprocessing on an input video image sequence, and performs intra-frame prediction coding and inter-frame prediction coding on coding blocks divided in each frame of image after the preprocessing is completed. When performing inter-frame prediction coding, selection of multiple inter modes is usually involved to perform coding using a type of inter mode with the least coding loss. The decision process for different inter modes tends to have a large impact on the efficiency of the encoder. For example, when an encoder performs inter-frame prediction encoding with adaptive motion vector accuracy and advanced motion vector prediction, a large number of operations such as motion estimation, motion compensation, cost calculation, transformation, and quantization processing need to be performed, which significantly increases the encoding complexity and encoding time of the encoder and requires reasonable skipping.
Disclosure of Invention
Embodiments of the present invention provide a video coding control method, apparatus, device, and storage medium, which solve the problems of coding complexity increase and coding time consumption increase caused by an inter-frame prediction mode during video coding, and significantly improve video coding efficiency by reasonably skipping the inter-frame prediction mode.
In a first aspect, an embodiment of the present invention provides a video coding control method, where the method includes:
acquiring the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block;
when the interframe preprocessing cost is larger than the intraframe preprocessing cost, determining an adjacent coding block related to the current coding block according to the position of the current coding block;
and determining whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding blocks, and skipping the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block.
In a second aspect, an embodiment of the present invention further provides a video coding control apparatus, including:
the preprocessing cost acquisition module is configured to acquire the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block;
the coding block determining module is configured to determine an adjacent coding block associated with the current coding block according to the position of the current coding block when the interframe preprocessing cost is greater than the intraframe preprocessing cost;
and the inter-frame mode skipping module is configured to determine whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding block, and skip the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block.
In a third aspect, an embodiment of the present invention further provides a video coding control apparatus, where the apparatus includes:
one or more processors;
a storage device to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the video coding control method according to the embodiment of the present invention.
In a fourth aspect, the present invention further provides a storage medium storing computer-executable instructions, which when executed by a computer processor, are configured to perform the video coding control method according to the present invention.
In the embodiment of the invention, by acquiring the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block, when the inter-frame preprocessing cost is greater than the intra-frame preprocessing cost, the adjacent coding block associated with the current coding block is determined according to the position of the current coding block, whether the inter-frame prediction mode of the current coding block is skipped is determined according to the coding condition of the adjacent coding block, and the inter-frame prediction mode of the current coding block is skipped in response to the judgment result of the inter-frame prediction mode of the current coding block, so that the reasonable skipping of the inter-frame prediction mode is realized while the video coding efficiency is ensured, the coding efficiency of an encoder is improved, and the processing time consumption of the encoder is obviously reduced.
Drawings
Fig. 1 is a flowchart of a video coding control method according to an embodiment of the present invention;
fig. 2 is a flowchart of another video encoding control method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of determining an adjacent coding block associated with a current coding block according to an embodiment of the present invention;
fig. 4 is a flowchart of another video encoding control method according to an embodiment of the present invention;
fig. 5 is a flowchart of another video encoding control method according to an embodiment of the present invention;
fig. 6 is a block diagram of a video coding control apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a video encoding control apparatus according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and do not delimit the embodiments. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
Fig. 1 is a flowchart of a video encoding control method provided in an embodiment of the present invention, which may be implemented by a computing device related to video encoding, such as a server, an intelligent terminal, a notebook, a tablet computer, and the like, and specifically includes the following steps:
step S101, obtaining the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block.
In one embodiment, in encoding video data, the encoding of each frame image is performed for a sequence of input video image frames. Optionally, in the encoding process, the video image frame is first preprocessed, where the preprocessing includes downsampling the video image frame and dividing the video image frame into coding blocks of a preset size, for example, dividing the video image frame into a plurality of coding blocks of 8 × 8 pixel area size. Video encoding, such as inter-prediction encoding or intra-prediction encoding, is performed for each divided encoding block.
In one embodiment, a determination is made as to whether to skip an inter prediction mode for a currently selected coding block, and whether to skip the inter prediction mode or not based on the determination result. In the judgment process, firstly, the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block are obtained. The intra-frame preprocessing cost and the inter-frame preprocessing cost may be calculated and generated in a preprocessing process of an encoder, and are respectively used for representing cost loss conditions when intra-frame prediction encoding and inter-frame prediction encoding of an image are performed, where the higher the cost loss is, the greater the distortion degree when the image is encoded is, and the lower the encoding efficiency is. Conversely, the lower the cost loss, the smaller the degree of distortion in image encoding, and the higher the encoding efficiency.
In an embodiment, for a current coding block, if the obtained intra-frame preprocessing cost and inter-frame preprocessing cost are the intra-frame preprocessing cost and inter-frame preprocessing cost of each sub-coding block included therein, the intra-frame preprocessing cost and the inter-frame preprocessing cost of each internally included sub-coding block are respectively summed to obtain the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block.
And step S102, when the interframe preprocessing cost is larger than the intraframe preprocessing cost, determining an adjacent coding block associated with the current coding block according to the position of the current coding block.
In one embodiment, after the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block are obtained, whether a step of determining an adjacent coding block associated with the current coding block according to the position of the current coding block is further triggered is judged based on the intra-frame preprocessing cost and the inter-frame preprocessing cost. If the inter-frame preprocessing cost of the current coding block is greater than the intra-frame preprocessing cost, judging that the triggering condition is met, namely further determining an adjacent coding block associated with the current coding block according to the position of the current coding block.
In one embodiment, the judgment condition that the inter-frame preprocessing cost is greater than the intra-frame preprocessing cost may be: and the difference value of the interframe preprocessing cost and the intraframe preprocessing cost is greater than a preset value. Illustratively, by using preInterCost to represent inter-frame preprocessing cost, preInterCost to represent intra-frame preprocessing cost, and the preset value is denoted as H, the determination condition may be represented as: preInterCost > preincast + H. Illustratively, the inter-frame preprocessing cost and the intra-frame preprocessing cost are different in different coding standards or results calculated based on different processing algorithms, and taking the value range of the inter-frame preprocessing cost and the intra-frame preprocessing cost as 0 to 1000 as an example, the preset value H is illustratively 300.
In one embodiment, when encoding a video frame image, a frame image is divided into a plurality of encoding blocks of the same size, for example, into a plurality of pixel regions of 16 × 16 size, each pixel region of 16 × 16 size is an encoding block, and the encoding blocks are adjacent in sequence. For the current coding block, adjacent coding blocks are respectively a coding block positioned above the current coding block, a coding block positioned below the current coding block, a coding block positioned on the left side and a coding block positioned on the right side. And determining the coding block which has finished coding as the adjacent coding block associated with the current coding block in the adjacent coding blocks of the current coding block according to the coding sequence of the coding blocks. For example, the coding block above and the coding block on the left side of the current coding block are adjacent to the current coding block and are already coded, and then the coding block above and the coding block on the left side of the current coding block are determined as the adjacent coding block associated with the current coding block.
Step S103, determining whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding blocks, and skipping the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block.
In one embodiment, after determining the adjacent coding block associated with the current coding block, whether to skip the inter prediction mode of the current coding block is determined based on the coding information of the adjacent coding block. The coding information of adjacent coding blocks records the coding condition used by the adjacent coding blocks, such as whether the adjacent coding blocks are coded by using an intra-frame prediction mode or an inter-frame prediction mode. Optionally, if the adjacent coding blocks are all encoded by using the intra-frame prediction mode, the inter-frame prediction mode of the current coding block is skipped, that is, the inter-frame prediction mode is processed.
According to the scheme, the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block are obtained, when the intra-frame preprocessing cost is larger than the intra-frame preprocessing cost, the adjacent coding block associated with the current coding block is determined according to the position of the current coding block, whether the inter-frame prediction mode of the current coding block is skipped is determined according to the coding condition of the adjacent coding block, and the inter-frame prediction mode of the current coding block is skipped in response to the judgment result of the inter-frame prediction mode of the skipped current coding block, so that the video coding efficiency is guaranteed, the inter-frame prediction mode is reasonably skipped, the coding efficiency of a coder is improved, and the processing time consumption of the coder is remarkably reduced.
Fig. 2 is a flowchart of another video coding control method according to an embodiment of the present invention, which shows a specific method for determining an adjacent coding block associated with a current coding block according to a position of the current coding block, as shown in fig. 2, including:
step S201, obtaining an intra-frame preprocessing cost and an inter-frame preprocessing cost of a current coding block.
Step S202, when the inter-frame preprocessing cost is larger than the intra-frame preprocessing cost, determining an adjacent coding block associated with the current coding block according to the position of the current coding block and the coding sequence of each coding block.
In one embodiment, after the division of the coding blocks is performed, the coding is sequentially performed according to the set coding order. When the adjacent coding block associated with the current coding block is determined, the adjacent coding block associated with the current coding block is determined according to the position of the current coding block and the coding sequence of each coding block. Specifically, as shown in fig. 3, fig. 3 is a schematic diagram of determining adjacent coding blocks associated with a current coding block according to an embodiment of the present invention, an exemplary image is divided into 16 coding blocks with 4 rows and 4 columns, and a coding order of each coding block includes sequentially coding the coding blocks from top to bottom row by row and from left to right, that is, sequentially coding the coding blocks from 1 to 16 according to sequence numbers of each coding block in fig. 3. Of course, other sequences may be used for encoding, and the specific encoding sequence of each encoding block is not limited. In another embodiment, the coding sequence of each coding block may also be that the coding is performed sequentially from top to bottom and from right to left line by line according to the position of each coding block, and then according to the coding sequence, it is determined that the adjacent coding blocks associated with the current coding block are the adjacent upper coding block and the adjacent right coding block. In another embodiment, the coding sequence of each coding block may also be that the coding is performed sequentially from left to right and from top to bottom according to the position of each coding block, and then according to the coding sequence, it is determined that the adjacent coding block associated with the current coding block is the same as the case of performing coding sequentially from left to right and from row to row, and the adjacent upper coding block and the adjacent left coding block of the current coding block are determined as the associated adjacent coding blocks. Similarly, the coding sequence of each coding block may also be that the coding is performed sequentially from right to left and from top to bottom according to the position of each coding block, and then it is determined that the adjacent coding block associated with the current coding block is the same as the case of performing the coding sequentially from row to row and from right to left according to the coding sequence, and the adjacent upper coding block and the adjacent right coding block of the current coding block are determined as the associated adjacent coding blocks.
Taking fig. 3 as an example, assuming that the current coding block is coding block 6, and the coding blocks adjacent to coding block 6 are coding blocks 2, 5, 7 and 10, according to the sequence that each coding block sequentially performs coding from top to bottom row by row and from left to right, the adjacent upper coding block 2 and the adjacent left coding block 5 of the current coding block are selected to be determined as the adjacent coding block associated with the current coding block. Taking the coding block 2 as an example, the coding blocks 1, 3 and 6 adjacent to each other are known to be sequentially coded from left to right line by line according to the sequence in which each coding block is sequentially coded from left to right, and only the coding block 1 on the adjacent left side exists and the coding block above the adjacent left side does not exist.
Step S203, determining whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding block, and skipping the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block.
As can be seen from the above, by obtaining the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block, when the inter-frame preprocessing cost is greater than the intra-frame preprocessing cost, determining adjacent coding blocks related to the current coding block according to the position of the current coding block and the coding sequence of each coding block, determining whether to skip the inter-frame prediction mode of the current coding block according to the coding condition of the adjacent coding blocks, skipping the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block, that is, when determining whether a current coding block skips an inter prediction mode, a decision is made with reference to coding information of an adjacent coding block, thereby achieving, and reasonably skipping the inter-frame prediction mode, improving the coding efficiency of the coder and obviously reducing the time consumption of the coder.
Fig. 4 is a flowchart of another video coding control method according to an embodiment of the present invention, which provides a specific manner for determining whether to skip an inter prediction mode of a current coding block according to coding information of adjacent coding blocks, and as shown in fig. 4, the specific manner includes:
step S301, acquiring the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block.
Step S302, when the interframe preprocessing cost is larger than the intraframe preprocessing cost, determining an adjacent coding block associated with the current coding block according to the position of the current coding block.
Step S303, determining whether to skip the inter-frame prediction mode of the current coding block according to the condition of whether the adjacent coding block exists and the coding mode of the adjacent coding block, and skipping the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block.
In one embodiment, the encoding mode of the adjacent encoding block may be determined by encoding information of the adjacent encoding block, by which the encoding mode of the adjacent encoding block is determined, the encoding mode including an inter prediction mode and an intra prediction mode. Optionally, whether to skip the inter prediction mode of the current coding block is determined according to the presence or absence of the adjacent coding block and the coding mode of the adjacent coding block. Specifically, the set judgment condition may be: and if the adjacent coding blocks do not exist or the coding modes of the adjacent coding blocks are all intra-frame prediction modes, skipping the inter-frame prediction mode of the current coding block and directly carrying out prediction coding of the intra-frame prediction mode.
From the above, by obtaining the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block, when the inter-frame preprocessing cost is greater than the intra-frame preprocessing cost, determining the adjacent coding block associated with the current coding block according to the position of the current coding block, then determining whether to skip the inter-frame prediction mode of the current coding block according to the existence condition of the adjacent coding block and the coding mode of the adjacent coding block, skipping the inter-frame prediction mode of the current coding block in response to the judgment result of the inter-frame prediction mode of skipping the current coding block, and skipping the inter-frame prediction mode of the current coding block by referring to the specific condition of the adjacent coding block of the current coding block if the adjacent coding blocks are the intra-frame prediction modes, thereby realizing reasonable skipping of the inter-frame prediction mode while ensuring the video coding efficiency and improving the coding efficiency of the encoder, the encoder processing time is significantly reduced.
Fig. 5 is a flowchart of another video coding control method according to an embodiment of the present invention, where when obtaining an intra-frame preprocessing cost and an inter-frame preprocessing cost of a current coding block, the method further includes: setting an inter-frame prediction mode of a current coding block to be in an unavailable state; correspondingly, in response to the result of determining that the inter prediction mode of the current coding block is not skipped, setting the inter prediction mode of the current coding block to be in an available state, and performing prediction coding of the intra prediction mode of the current coding block, as shown in fig. 5, specifically including:
step S401, obtaining the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block, and setting the inter-frame prediction mode of the current coding block to be in an unavailable state.
In one embodiment, the skip flag is set to characterize the skip inter prediction mode of the current coding block, for example, the skip flag is set to false, which indicates that the inter prediction mode of the current coding block is unavailable. Illustratively, when determining whether to skip the inter-frame prediction mode for each coding block, the skip flag is initialized to false in the process of obtaining the intra-frame preprocessing cost and the inter-frame preprocessing cost.
Step S402, when the inter-frame preprocessing cost is larger than the intra-frame preprocessing cost, determining an adjacent coding block associated with the current coding block according to the position of the current coding block, and determining whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding block.
And S403, responding to the judgment result of skipping the inter-frame prediction mode of the current coding block, and skipping the inter-frame prediction mode of the current coding block.
Step S404, responding to the judgment result of the inter-frame prediction mode of the current coding block, setting the inter-frame prediction mode of the current coding block to be in an available state, and performing prediction coding of the inter-frame prediction mode of the current coding block.
In one embodiment, if it is determined that the inter prediction mode is not skipped, the inter prediction mode of the current coding block is set to be available, and the intra prediction mode of the current coding block is predicted.
It can be known from the above that, by obtaining the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block, setting the inter-frame prediction mode of the current coding block to be in an unavailable state, when the inter-frame preprocessing cost is greater than the intra-frame preprocessing cost, determining the adjacent coding block associated with the current coding block according to the position of the current coding block, then determining whether to skip the inter-frame prediction mode of the current coding block according to the coding condition of the adjacent coding block, skipping the inter-frame prediction mode of the current coding block in response to the determination result of the inter-frame prediction mode of the current coding block, setting the inter-frame prediction mode of the current coding block to be in an available state in response to the determination result of the inter-frame prediction mode of the current coding block, and performing the prediction coding of the inter-frame prediction mode of the current coding block, thereby making a determination whether to skip the inter-frame prediction mode of the current coding block according to the coding condition of the adjacent coding block of the current coding block, if the skipping condition is met, skipping is carried out, and if the skipping condition is not met, skipping is not carried out, so that reasonable skipping of the inter-frame prediction mode is realized while video coding efficiency is guaranteed, the coding efficiency of the coder is improved, and the time consumption of the coder in processing is obviously reduced.
Fig. 6 is a block diagram of a video coding control apparatus according to an embodiment of the present invention, which is used for executing the video coding control method according to the foregoing embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 6, the apparatus specifically includes: a preprocessing cost acquisition module 101, an encoded block determination module 102, and an inter mode skip module 103, wherein,
the preprocessing cost acquisition module is configured to acquire the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block;
the coding block determining module is configured to determine an adjacent coding block associated with the current coding block according to the position of the current coding block when the interframe preprocessing cost is greater than the intraframe preprocessing cost;
and the inter-frame mode skipping module is configured to determine whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding block, and skip the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block.
According to the scheme, the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block are obtained, when the inter-frame preprocessing cost is larger than the intra-frame preprocessing cost, the adjacent coding block associated with the current coding block is determined according to the position of the current coding block, whether the inter-frame prediction mode of the current coding block is skipped is determined according to the coding condition of the adjacent coding block, and the inter-frame prediction mode of the current coding block is skipped in response to the judgment result of the inter-frame prediction mode of the current coding block, so that the video coding efficiency is guaranteed, meanwhile, the inter-frame prediction mode is reasonably skipped, the coding efficiency of the coder is improved, and the processing time consumption of the coder is remarkably reduced.
In one possible embodiment, the inter-frame preprocessing cost is greater than the intra-frame preprocessing cost, including:
and the difference value between the interframe preprocessing cost and the intraframe preprocessing cost is greater than a preset value.
In one possible embodiment, the encoded block determination module 102 is configured to:
and determining an adjacent coding block associated with the current coding block according to the position of the current coding block and the coding sequence of each coding block.
In a possible embodiment, the encoding order of each encoding block includes encoding from top to bottom line by line and from left to right in sequence according to the position of each encoding block, and the encoding block determining module 102 is configured to:
and determining the adjacent upper coding block and the adjacent left coding block of the current coding block as the adjacent coding blocks associated with the current coding block.
In one possible embodiment, the inter mode skip module 103 is configured to:
and determining whether to skip the inter-frame prediction mode of the current coding block according to the condition whether the adjacent coding block exists and the coding mode of the adjacent coding block.
In one possible embodiment, the inter mode skip module 103 is configured to:
and if the adjacent coding blocks do not exist or the coding modes of the adjacent coding blocks are all intra-frame prediction modes, skipping the inter-frame prediction mode of the current coding block and directly carrying out prediction coding of the intra-frame prediction mode.
In one possible embodiment, the inter-mode skip module 103 is further configured to:
when the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block are obtained, setting the inter-frame prediction mode of the current coding block to be in an unavailable state;
and responding to the judgment result of the inter-frame prediction mode of the current coding block, setting the inter-frame prediction mode of the current coding block to be in an available state, and performing prediction coding of the inter-frame prediction mode of the current coding block.
Fig. 7 is a schematic structural diagram of a video encoding control apparatus according to an embodiment of the present invention, as shown in fig. 7, the apparatus includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of the processors 201 in the device may be one or more, and one processor 201 is taken as an example in fig. 7; the processor 201, the memory 202, the input device 203 and the output device 204 in the apparatus may be connected by a bus or other means, and fig. 7 illustrates the example of connection by a bus. The memory 202 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the video coding control method in the embodiment of the present invention. The processor 201 executes various functional applications of the device and data processing by running software programs, instructions, and modules stored in the memory 202, that is, implements the video encoding control method described above. The input device 203 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the apparatus. The output device 204 may include a display device such as a display screen.
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a video encoding control method described in the foregoing embodiment, and specifically include:
acquiring the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block;
when the interframe preprocessing cost is larger than the intraframe preprocessing cost, determining an adjacent coding block related to the current coding block according to the position of the current coding block;
and determining whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding blocks, and skipping the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block.
It should be noted that, in the embodiment of the video coding control apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will appreciate that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A video encoding control method, comprising:
acquiring the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block;
when the interframe preprocessing cost is larger than the intraframe preprocessing cost, determining an adjacent coding block related to the current coding block according to the position of the current coding block;
and determining whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding blocks, and skipping the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block.
2. The video coding control method of claim 1, wherein the inter-frame pre-processing cost is greater than the intra-frame pre-processing cost, and comprises:
and the difference value between the interframe preprocessing cost and the intraframe preprocessing cost is greater than a preset value.
3. The video coding control method of claim 1, wherein the determining the neighboring coding block associated with the current coding block according to the position of the current coding block comprises:
and determining an adjacent coding block associated with the current coding block according to the position of the current coding block and the coding sequence of each coding block.
4. The video coding control method of claim 3, wherein the coding order of the coding blocks comprises coding sequentially from top to bottom line by line and from left to right according to the positions of the coding blocks, and wherein the determining the adjacent coding blocks associated with the current coding block comprises:
and determining an adjacent upper coding block and an adjacent left coding block of the current coding block as adjacent coding blocks associated with the current coding block.
5. The video coding control method of claim 1, wherein the determining whether to skip the inter prediction mode of the current coding block according to the coding information of the neighboring coding blocks comprises:
and determining whether to skip the inter-frame prediction mode of the current coding block according to the condition whether the adjacent coding block exists and the coding mode of the adjacent coding block.
6. The video coding control method of claim 5, wherein the determining whether to skip the inter prediction mode of the current coding block according to whether the neighboring coding block exists and the coding mode of the neighboring coding block comprises:
and if the adjacent coding blocks do not exist or the coding modes of the adjacent coding blocks are all intra-frame prediction modes, skipping the inter-frame prediction mode of the current coding block and directly carrying out prediction coding of the intra-frame prediction mode.
7. The video coding control method according to any one of claims 1 to 6, wherein when obtaining the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block, the method further comprises:
setting an inter-frame prediction mode of a current coding block to be in an unavailable state;
correspondingly, responding to the judgment result of the inter-frame prediction mode of the current coding block, setting the inter-frame prediction mode of the current coding block to be in an available state, and performing prediction coding of the inter-frame prediction mode of the current coding block.
8. A video encoding control apparatus, comprising:
the preprocessing cost acquisition module is configured to acquire the intra-frame preprocessing cost and the inter-frame preprocessing cost of the current coding block;
the coding block determining module is configured to determine an adjacent coding block associated with the current coding block according to the position of the current coding block when the interframe preprocessing cost is greater than the intraframe preprocessing cost;
and the inter-frame mode skipping module is configured to determine whether to skip the inter-frame prediction mode of the current coding block according to the coding information of the adjacent coding block, and skip the inter-frame prediction mode of the current coding block in response to the judgment result of skipping the inter-frame prediction mode of the current coding block.
9. A video encoding control apparatus, the apparatus comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the video encoding control method of any of claims 1-7.
10. A storage medium storing computer-executable instructions for performing the video encoding control method of any one of claims 1-7 when executed by a computer processor.
CN202210147152.9A 2022-02-17 2022-02-17 Video coding control method, device, equipment and storage medium Pending CN114584768A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210147152.9A CN114584768A (en) 2022-02-17 2022-02-17 Video coding control method, device, equipment and storage medium
PCT/CN2023/075688 WO2023155751A1 (en) 2022-02-17 2023-02-13 Video coding control method, apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210147152.9A CN114584768A (en) 2022-02-17 2022-02-17 Video coding control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114584768A true CN114584768A (en) 2022-06-03

Family

ID=81770566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210147152.9A Pending CN114584768A (en) 2022-02-17 2022-02-17 Video coding control method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114584768A (en)
WO (1) WO2023155751A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023155751A1 (en) * 2022-02-17 2023-08-24 百果园技术(新加坡)有限公司 Video coding control method, apparatus, device, and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8379718B2 (en) * 2009-09-02 2013-02-19 Sony Computer Entertainment Inc. Parallel digital picture encoding
US10652570B2 (en) * 2016-01-15 2020-05-12 Nec Corporation Moving image encoding device, moving image encoding method, and recording medium for recording moving image encoding program
CN108810531B (en) * 2017-05-03 2019-11-19 腾讯科技(深圳)有限公司 Video coding processing method, device and electronic equipment
CN110300302B (en) * 2019-06-05 2021-11-12 锐捷网络股份有限公司 Video coding method, device and storage medium
CN113542737A (en) * 2020-04-21 2021-10-22 腾讯科技(深圳)有限公司 Encoding mode determining method and device, electronic equipment and storage medium
CN111586406B (en) * 2020-04-26 2021-10-15 中南大学 VVC intra-frame inter-frame skipping method, system, equipment and storage medium
CN112637592A (en) * 2020-12-11 2021-04-09 百果园技术(新加坡)有限公司 Method and device for video predictive coding
CN113573066A (en) * 2021-07-07 2021-10-29 网宿科技股份有限公司 Video coding method and device
CN114584768A (en) * 2022-02-17 2022-06-03 百果园技术(新加坡)有限公司 Video coding control method, device, equipment and storage medium
CN114449262A (en) * 2022-03-02 2022-05-06 百果园技术(新加坡)有限公司 Video coding control method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023155751A1 (en) * 2022-02-17 2023-08-24 百果园技术(新加坡)有限公司 Video coding control method, apparatus, device, and storage medium

Also Published As

Publication number Publication date
WO2023155751A1 (en) 2023-08-24

Similar Documents

Publication Publication Date Title
US11076168B2 (en) Inter-prediction method and apparatus, and storage medium
JP2006246431A (en) Image coding apparatus and method
US8867606B2 (en) Multi-core image encoding processing device and image filtering method thereof
CN114449262A (en) Video coding control method, device, equipment and storage medium
CN111669589B (en) Image encoding method, image encoding device, computer device, and storage medium
US20240031576A1 (en) Method and apparatus for video predictive coding
US20240098248A1 (en) Video predictive coding method and apparatus
CN110719467B (en) Prediction method of chrominance block, encoder and storage medium
CN114584768A (en) Video coding control method, device, equipment and storage medium
CN114363632B (en) Intra-frame prediction method, encoding and decoding method, encoder and decoder, system, electronic device, and storage medium
JP3531532B2 (en) Video encoding apparatus and method
CN111246212A (en) Geometric partition mode prediction method and device based on encoding and decoding end, storage medium and terminal
CN101383971A (en) Intra-frame prediction processing method based on image encoding and decoding
US6370195B1 (en) Method and apparatus for detecting motion
CN101309409A (en) Decoding method and device
JP5748225B2 (en) Moving picture coding method, moving picture coding apparatus, and moving picture coding program
CN105100799A (en) Method for reducing intraframe coding time delay in HEVC encoder
CN110149512A (en) Inter-prediction accelerated method, control device, electronic device, computer storage medium and equipment
WO2021196035A1 (en) Video coding method and apparatus
CN1739297A (en) Method of motion vector prediction and system thereof
EP3742734A1 (en) Method and device for selecting prediction direction in image encoding, and storage medium
CN114422779A (en) Method, apparatus, electronic device and medium for predicting cell size decision
RU2137194C1 (en) Method for analysis of movement vectors of elements in dynamic images
CN101977317A (en) Intra-frame prediction method and device
CN114697662A (en) Method, device and equipment for selecting intra-frame prediction mode and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination