CN112019848A - Method, system and equipment for rapidly analyzing prediction mode - Google Patents

Method, system and equipment for rapidly analyzing prediction mode Download PDF

Info

Publication number
CN112019848A
CN112019848A CN202010953859.XA CN202010953859A CN112019848A CN 112019848 A CN112019848 A CN 112019848A CN 202010953859 A CN202010953859 A CN 202010953859A CN 112019848 A CN112019848 A CN 112019848A
Authority
CN
China
Prior art keywords
frame
current
coding
current frame
coded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010953859.XA
Other languages
Chinese (zh)
Other versions
CN112019848B (en
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.)
Shenzhen Mengwang Video Co ltd
Original Assignee
Shenzhen Mengwang Video Co 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 Shenzhen Mengwang Video Co ltd filed Critical Shenzhen Mengwang Video Co ltd
Priority to CN202010953859.XA priority Critical patent/CN112019848B/en
Publication of CN112019848A publication Critical patent/CN112019848A/en
Application granted granted Critical
Publication of CN112019848B publication Critical patent/CN112019848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/136Incoming video signal characteristics or properties
    • 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/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding

Landscapes

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

Abstract

The invention provides a method, a system and equipment for rapidly analyzing a prediction mode. On one hand, the method is based on the secondary multiplexing of the coded information, and the calculated amount of image analysis is not additionally increased; on the other hand, the method designs a background characteristic detection starting mechanism based on the accumulation of the intra-frame prediction block, and further avoids the problem of calculation quantity waste of prediction mode judgment block by block under the condition of not improving the rate distortion performance greatly by directly deleting the low-probability inter-frame mode from all the subsequent blocks when the intra-frame prediction block exceeds a certain proportion in the scene of unchanged background.

Description

Method, system and equipment for rapidly analyzing prediction mode
Technical Field
The present invention relates to the field of video coding technologies, and in particular, to a method, a system, and a device for fast analyzing a prediction mode.
Background
The traversal operation of the conventional coding technique on the prediction mode, although the best prediction mode can be found, is also huge in the amount of calculation. Especially, under the mechanism of encoding structure presetting, when the type of the preset image frame is completely inconsistent with the actual best prediction mode thereof, the largest waste of the calculation amount is caused, and at this time, the improvement of the rate distortion performance is not helpful. Although the scene detection method is adopted, the problem can be solved, the improvement of the time efficiency performance of the prediction mode selection in the coding completely depends on the calculation amount of the detection algorithm. When the scene detection algorithm has a large calculation amount, the performance of the rapid prediction mode selection algorithm in the coding based on the scene detection is sharply reduced.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a system and equipment for rapidly analyzing a prediction mode, and aims to solve the problems that the conventional coding technology has large calculation amount of traversal operation on the prediction mode or the timeliness of prediction mode selection in a conventional scene detection method is low.
A first objective of an embodiment of the present invention is to provide a method for rapidly analyzing a prediction mode, where the method includes:
step 1: enabling the current frame to be the next frame to be coded of the current frame and coding;
step 2: judging whether the background of the current scene is unchanged, if the background of the current scene is unchanged, setting the current frame as a next frame to be coded, and adopting a first coding mode for the current frame; otherwise, go to Step 3;
step 3: if the next two frames to be coded of the current frame do not exist, coding the rest frames to be coded of the current video according to a conventional method, and ending; otherwise, entering Step 4;
step 4: if the preset frame mode of the next frame to be coded of the current frame is an I frame, adopting a second coding mode; otherwise, if the preset frame mode of the next frame to be coded of the current frame is a P frame, adopting a third coding mode; otherwise, adopting a fourth coding mode.
A second objective of the embodiments of the present invention is to provide a system for rapidly analyzing a prediction mode. The system comprises:
the first current frame setting and coding module is used for enabling the current frame to be the next frame to be coded of the current frame and coding the current frame;
the background change judging and processing device is used for judging whether the background of the current scene is unchanged, if the background of the current scene is unchanged, setting the current frame as a next frame to be coded, and entering the first coding module, otherwise, entering the first judging and processing module;
the first judgment processing module is used for judging whether the next two frames to be coded of the current frame do not exist, and entering the conventional coding module; otherwise, entering an I frame preset frame mode judging and processing module;
the I frame preset frame mode judging and processing module is used for judging whether the preset frame mode of the next frame to be coded of the current frame is an I frame or not, and entering a second coding module; otherwise, entering a P frame preset frame mode judging and processing module;
the P frame preset frame mode judging and processing module is used for judging whether the preset frame mode of the next frame to be coded of the current frame is a P frame or not, and entering a third coding module; otherwise, entering a fourth coding module;
the first coding module is used for coding the current frame by adopting a first coding mode;
the conventional coding module is used for coding the remaining frames to be coded of the current video according to a conventional coding method;
the second coding module is used for coding by adopting a second coding mode;
the third coding module is used for coding by adopting a third coding mode;
and the fourth coding module is used for coding by adopting a fourth coding mode.
It is a third object of embodiments of the present invention to provide an apparatus, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the prediction mode fast analysis method when executing the computer program.
The invention has the advantages of
The invention provides a method, a system and equipment for rapidly analyzing a prediction mode. On one hand, the method is based on the secondary multiplexing of the coded information, and the calculated amount of image analysis is not additionally increased; on the other hand, the method designs a background characteristic detection starting mechanism based on the accumulation of the intra-frame prediction block, and further avoids the problem of calculation quantity waste of prediction mode judgment block by block under the condition of not improving the rate distortion performance greatly by directly deleting the low-probability inter-frame mode from all the subsequent blocks when the intra-frame prediction block exceeds a certain proportion in the scene of unchanged background.
Drawings
Fig. 1 is a flowchart of a method for rapid analysis of a prediction mode according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for determining whether a current scene has a constant background according to an embodiment of the present invention;
fig. 3 is a structural diagram of a rapid prediction mode analysis system according to an embodiment of the present invention;
fig. 4 is a block diagram of a background change determination module according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and examples, and for convenience of description, only parts related to the examples of the present invention are shown. It is to be understood that the specific embodiments described herein are for purposes of illustration only and not for purposes of limitation, as other equivalent embodiments may be devised in accordance with the embodiments of the present invention by those of ordinary skill in the art without the use of inventive faculty.
The invention provides a method, a system and equipment for rapidly analyzing a prediction mode. On one hand, the method is based on the secondary multiplexing of the coded information, and the calculated amount of image analysis is not additionally increased; on the other hand, the method designs a background characteristic detection starting mechanism based on the accumulation of the intra-frame prediction block, and further avoids the problem of calculation quantity waste of prediction mode judgment block by block under the condition of not improving the rate distortion performance greatly by directly deleting the low-probability inter-frame mode from all the subsequent blocks when the intra-frame prediction block exceeds a certain proportion in the scene of unchanged background.
Fig. 1 is a flowchart of a method for rapid analysis of a prediction mode according to an embodiment of the present invention; the method comprises the following steps:
step 1: enabling the current frame to be the next frame to be coded of the current frame and coding;
optionally, in the embodiment of the present invention, Step1 further includes Step 0: setting the current frame as the first frame of the current video, and then coding the current frame.
Step 2: judging whether the background of the current scene is unchanged, if the background of the current scene is unchanged, setting the current frame as a next frame to be coded, and adopting a first coding mode for the current frame; otherwise, go to Step 3;
fig. 2 is a flowchart of a method for determining whether a current scene has a constant background according to an embodiment of the present invention; the method comprises the following steps:
step A0: creating a first set and assigning initial values;
specifically, the first set is initialized to be a null set;
step A1: defining a central area and a boundary area of a current scene;
the central region and the boundary region can be defined by selecting a rectangular region with the center of the image as the central region and the rest regions as the boundary regions, and the area of the central region does not exceed 9/16 of the area of the image;
step A2: dividing all Skip blocks of the current frame into a first set;
step A3: carrying out background classification identification on the current scene according to the position distribution of the blocks in the first set in the central area and the boundary area of the current scene;
i.e. if numb > numc Thres1And numb > sizeb Thres2If yes, judging that the current scene is the background and not changing; otherwise, judging that the current scene is non-background unchanged;
numc and numb respectively represent the number of blocks located in the central area and the boundary area in the first set; sizeb denotes the number of boundary region blocks; thres1、Thres2Respectively, first and second threshold values, typically Thres1≥2,Thres2>0.9;
The first encoding method includes:
step B1: carrying out assignment operation: let the first and second cumulative variables num1、num20, class identifier note 0, second set empty set, and sets the current block as the block of the first row and the first column of the current frame.
Step B2: encoding a current block; then num if the best prediction mode of the current block is intra prediction1=num1+1、num2=num2+1, and dividing the current block into a second set; else num1=num1+1。
Step B3: if num2>Thres3*num1Only the intra-frame prediction mode is reserved for the current frame residual block to be coded, all other prediction modes are deleted, then coding is carried out, then note is made to be 1, and Step3 is entered; otherwise, go to step B4.
Step B4: if the next block to be encoded exists in the current frame and all blocks with the row number smaller than Hb/2 in the central area are not encoded, setting the current block as the next block to be encoded in the current frame, and returning to the step B2; otherwise, if the next block to be coded exists in the current frame and the blocks with the row number smaller than Hb/2 in the central area are coded, coding all the remaining blocks to be coded in the current frame, and then entering Step 3; otherwise (if the next block to be coded for the current frame does not exist), Step3 is entered.
Wherein Hb denotes a line height of an image in units of blocks; thres3Respectively, a third threshold, typically Thres, is preferred3≥0.8。
Step 3: if the next two frames to be coded of the current frame do not exist, coding the rest frames to be coded of the current video according to a conventional method, and ending; otherwise, entering Step 4;
step 4: if the preset frame mode of the next frame to be coded of the current frame is an I frame, adopting a second coding mode; otherwise, if the preset frame mode of the next frame to be coded of the current frame is a P frame, adopting a third coding mode; otherwise, adopting a fourth coding mode.
The second encoding method: firstly, setting the current frame as the next frame to be coded, coding the current frame, and then entering Step 1.
The third encoding method: if the current scene is a background unchanged scene and note is 0, setting the current frame as a next frame to be coded, and entering a first coding mode; otherwise, if note is equal to 1, returning to Step 1; otherwise, setting the current frame as the next frame to be codedThe method comprises the steps of coding a current frame, counting the number numI of intra-frame prediction blocks contained in the current frame, and judging whether numI is more than Thres or not2If yes, returning to Step1, and if not, returning to Step 3;
the fourth encoding method: if the current scene is the background is not changed and note is 0, the process goes to step C1; otherwise, if note is 1, go to step C2; otherwise, setting the current frame as the next frame to be coded, and coding the current frame into Step 3.
Step C1: setting the current frame as the next frame to be coded, then deleting the second type of low probability prediction mode, coding, and entering Step 3.
The "deletion of the second-class low-probability prediction mode" is specifically: only preserving the Skip prediction mode for the first type of current block, and deleting all other prediction modes; deleting the prediction mode of the frame where the playing sequence number is greater than or equal to the second set as a reference frame for the second type current block; otherwise, the current block of the type is not deleted in the prediction mode.
A first type of current block: a current block of the corresponding block can be found in the first set;
second type current block: a current block of the corresponding block can be found in the second set;
step C2: setting the current frame as the next frame to be coded, deleting the prediction mode which takes the frame with the playing sequence number being more than or equal to that of the second set as the reference frame, coding, and entering Step 3.
Fig. 3 is a structural diagram of a rapid prediction mode analysis system according to an embodiment of the present invention, which corresponds to the rapid prediction mode analysis method according to the above embodiment. The system comprises:
the first current frame setting and coding module is used for enabling the current frame to be the next frame to be coded of the current frame and coding the current frame;
the background change judging and processing device is used for judging whether the background of the current scene is unchanged, if the background of the current scene is unchanged, setting the current frame as a next frame to be coded, and entering the first coding module, otherwise, entering the first judging and processing module;
the first judgment processing module is used for judging whether the next two frames to be coded of the current frame do not exist, and entering the conventional coding module; otherwise, entering an I frame preset frame mode judging and processing module;
the I frame preset frame mode judging and processing module is used for judging whether the preset frame mode of the next frame to be coded of the current frame is an I frame or not, and entering a second coding module; otherwise, entering a P frame preset frame mode judging and processing module;
the P frame preset frame mode judging and processing module is used for judging whether the preset frame mode of the next frame to be coded of the current frame is a P frame or not, and entering a third coding module; otherwise, entering a fourth coding module;
the first coding module is used for coding the current frame by adopting a first coding mode;
the conventional coding module is used for coding the remaining frames to be coded of the current video according to a conventional coding method;
the second coding module is used for coding by adopting a second coding mode;
the third coding module is used for coding by adopting a third coding mode;
the fourth coding module is used for coding by adopting a fourth coding mode;
further, the system further comprises:
the second current frame setting and coding module is connected with the first current frame setting and coding module and is used for setting the current frame as a first frame of a current video and then coding the current frame;
further, the background change determination processing apparatus further includes: the background change judging module is used for judging whether the background of the current scene is unchanged;
fig. 4 is a structural diagram of a background change determination module according to an embodiment of the present invention, where the background change determination module includes:
the first set creating and initializing module is used for creating a first set and assigning an initial value;
the central area and boundary area demarcation module is used for demarcating a central area and a boundary area of the current scene;
the central region and the boundary region can be defined by selecting a rectangular region with the center of the image as the central region and the rest regions as the boundary regions, and the area of the central region does not exceed 9/16 of the area of the image;
the first set dividing module is used for dividing all Skip blocks of the current frame into a first set;
the background classification identification module is used for carrying out background classification identification on the current scene according to the position distribution of the blocks in the first set in the central area and the boundary area of the current scene;
i.e. if numb > numc Thres1And numb > sizeb Thres2If yes, judging that the current scene is the background and not changing; otherwise, judging that the current scene is non-background unchanged;
numc and numb respectively represent the number of blocks located in the central area and the boundary area in the first set; sizeb denotes the number of boundary region blocks; thres1、Thres2Respectively, first and second threshold values, typically Thres1≥2,Thres2>0.9;
The first encoding module includes:
the assignment module is used for carrying out assignment operation: let the first and second cumulative variables num1、num2The current block is set to be a block of a first row and a first column of the current frame;
a second set partitioning module for encoding the current block and then making num if the best prediction mode of the current block is intra-frame prediction1=num1+1、num2=num2+1, and dividing the current block into a second set; otherwise make num1=num1+1;
A second judgment processing module for judging if num2>Thres3*num1Only the intra-frame prediction mode is reserved for the remaining blocks to be coded of the current frame, all other prediction modes are deleted, then coding is carried out, then note is made to be 1, and the coding enters a first judgment processing module; otherwise, entering a third judgment processing module;
a third judgment processing module, configured to judge that, if a block to be encoded next to the current frame exists and all blocks whose center area row numbers are smaller than Hb/2 are not encoded, set the current block as the block to be encoded next to the current frame, and return to the second set dividing module; otherwise, if the next block to be coded exists in the current frame and the blocks with the row number smaller than Hb/2 in the central area are coded completely, coding all the remaining blocks to be coded in the current frame, and then entering a first judgment processing module; if not (if the next block to be coded of the current frame does not exist), entering a first judgment processing module;
wherein Hb denotes a line height of an image in units of blocks; thres3Respectively, a third threshold, typically Thres, is preferred3≥0.8。
And the second coding module is used for firstly setting the current frame as the next frame to be coded, coding the current frame and then entering the first current frame setting and coding module.
The third coding module is used for judging that if the current scene is a background unchanged scene and note is 0, setting the current frame as a next frame to be coded and entering the first coding module; otherwise, if note is 1, returning to the first current frame setting and encoding module; otherwise, setting the current frame as the next frame to be coded, coding the current frame and counting the number numI of intra-frame prediction blocks contained in the current frame, and then judging whether numI is more than Thres or not2If the current frame is not satisfied, the first judgment processing module is returned;
the fourth coding module is used for judging whether the current scene is a background unchanged scene and note is 0 or not, and entering a second current frame setting and second-class low-probability prediction mode deleting module; otherwise, if note is 1, entering a third current frame setting and prediction mode deleting module; otherwise, setting the current frame as the next frame to be coded, coding the current frame and entering a first judgment processing module.
A second current frame setting and second-class low-probability prediction mode deleting module, which is used for setting the current frame as the next frame to be coded, then deleting the second-class low-probability prediction mode, coding and entering the first judgment processing module;
the "deletion of the second-class low-probability prediction mode" is specifically: only preserving the Skip prediction mode for the first type of current block, and deleting all other prediction modes; deleting the prediction mode of the frame where the playing sequence number is greater than or equal to the second set as a reference frame for the second type current block; otherwise, the current block of the type is not deleted in the prediction mode.
A first type of current block: a current block of the corresponding block can be found in the first set;
second type current block: a current block of the corresponding block can be found in the second set;
and the third current frame setting and prediction mode deleting module is used for setting the current frame as the next frame to be coded, deleting the prediction mode which takes the frame with the playing sequence number being more than or equal to that of the second set as the reference frame, coding and entering the first judgment processing module.
An embodiment of the present invention further provides a terminal device, where the terminal device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. The processor implements the steps in the above described embodiments of the method for rapid analysis of prediction modes when executing the computer program. Alternatively, the processor implements the functions of the units in the system embodiments when executing the computer program.
It will be understood by those skilled in the art that all or part of the steps in the method according to the above embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, such as ROM, RAM, magnetic disk, optical disk, etc.
The sequence number of each step in the foregoing embodiments does not mean the execution sequence, and the execution sequence of each process should be determined by the function and the internal logic of the process, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method for rapid analysis of prediction modes, the method comprising:
step 1: enabling the current frame to be the next frame to be coded of the current frame and coding;
step 2: judging whether the background of the current scene is unchanged, if the background of the current scene is unchanged, setting the current frame as a next frame to be coded, and adopting a first coding mode for the current frame; otherwise, go to Step 3;
step 3: if the next two frames to be coded of the current frame do not exist, coding the rest frames to be coded of the current video according to a conventional method, and ending; otherwise, entering Step 4;
step 4: if the preset frame mode of the next frame to be coded of the current frame is an I frame, adopting a second coding mode; otherwise, if the preset frame mode of the next frame to be coded of the current frame is a P frame, adopting a third coding mode; otherwise, adopting a fourth coding mode.
2. The rapid prediction mode analysis method according to claim 1,
step1 is preceded by Step 0: setting the current frame as the first frame of the current video, and then coding the current frame.
3. The rapid prediction mode analysis method according to claim 2, wherein the determining whether the current scene is background-invariant comprises:
step A0: creating a first set and assigning initial values;
the first set is assigned with an initial value as a null set;
step A1: defining a central area and a boundary area of a current scene;
the method specifically comprises the following steps: 9/16, defining a rectangular region with the center of the image as the midpoint as a central region, and defining the rest as boundary regions, wherein the area of the central region does not exceed the area of the image;
step A2: dividing all Skip blocks of the current frame into a first set;
step A3: carrying out background classification identification on the current scene according to the position distribution of the blocks in the first set in the central area and the boundary area of the current scene;
the method specifically comprises the following steps: numb > numc Thres1And numb > sizeb Thres2If yes, judging that the current scene is the background and not changing; otherwise, judging that the current scene is non-background unchanged;
numc and numb respectively represent the number of blocks located in the central area and the boundary area in the first set; sizeb denotes the number of boundary region blocks; thres1、Thres2Respectively representing a first and a second threshold, Thres1≥2,Thres2>0.9。
4. The rapid prediction mode analysis method according to claim 3,
the first encoding method includes:
step B1: carrying out assignment operation: let the first and second cumulative variables num1、num2The current block is set to be a block of a first row and a first column of the current frame;
step B2: encoding a current block; then, if the best prediction mode of the current block is intra prediction, num is set1=num1+1、num2=num2+1, and dividing the current block into a second set; else num1=num1+1;
Step B3: if num2>Thres3*num1Only the intra-frame prediction mode is reserved for the current frame residual block to be coded, all other prediction modes are deleted, then coding is carried out, then note is made to be 1, and Step3 is entered; otherwise, go to step B4;
step B4: if the next block to be encoded exists in the current frame and all blocks with the row number smaller than Hb/2 in the central area are not encoded, setting the current block as the next block to be encoded in the current frame, and returning to the step B2; otherwise, if the next block to be coded exists in the current frame and the blocks with the row number smaller than Hb/2 in the central area are coded, coding all the remaining blocks to be coded in the current frame, and then entering Step 3; otherwise, go to Step 3;
wherein Hb denotes a line height of an image in units of blocks; thres3Respectively, a third threshold value, Thres3≥0.8。
5. The rapid prediction mode analysis method according to claim 4,
the second encoding method: firstly, setting a current frame as a next frame to be coded, coding the current frame, and then entering Step 1;
the third encoding method: if the current scene is a background unchanged scene and note is 0, setting the current frame as a next frame to be coded, and entering a first coding mode; otherwise, if note is equal to 1, returning to Step 1; otherwise, setting the current frame as the next frame to be coded, coding the current frame and counting the number numI of intra-frame prediction blocks contained in the current frame, and then judging whether numI is more than Thres or not2If yes, returning to Step1, and if not, returning to Step 3;
the fourth encoding method: if the current scene is the background is not changed and note is 0, the process goes to step C1; otherwise, if note is 1, go to step C2; otherwise, setting the current frame as the next frame to be coded, and coding the current frame to enter Step 3;
step C1: setting the current frame as the next frame to be coded, then deleting the second type of low probability prediction mode, coding, and entering Step 3;
the "deletion of the second-class low-probability prediction mode" is specifically: only preserving the Skip prediction mode for the first type of current block, and deleting all other prediction modes; deleting the prediction mode of the frame where the playing sequence number is greater than or equal to the second set as a reference frame for the second type current block; otherwise, deleting the current block in the prediction mode;
a first type of current block: a current block of the corresponding block can be found in the first set;
second type current block: a current block of the corresponding block can be found in the second set;
step C2: setting the current frame as the next frame to be coded, deleting the prediction mode which takes the frame with the playing sequence number being more than or equal to that of the second set as the reference frame, coding, and entering Step 3.
6. A rapid predictive pattern analysis system, the system comprising:
the first current frame setting and coding module is used for enabling the current frame to be the next frame to be coded of the current frame and coding the current frame;
the background change judging and processing device is used for judging whether the background of the current scene is unchanged, if the background of the current scene is unchanged, setting the current frame as a next frame to be coded, and entering the first coding module, otherwise, entering the first judging and processing module;
the first judgment processing module is used for judging whether the next two frames to be coded of the current frame do not exist, and entering the conventional coding module; otherwise, entering an I frame preset frame mode judging and processing module;
the I frame preset frame mode judging and processing module is used for judging whether the preset frame mode of the next frame to be coded of the current frame is an I frame or not, and entering a second coding module; otherwise, entering a P frame preset frame mode judging and processing module;
the P frame preset frame mode judging and processing module is used for judging whether the preset frame mode of the next frame to be coded of the current frame is a P frame or not, and entering a third coding module; otherwise, entering a fourth coding module;
the first coding module is used for coding the current frame by adopting a first coding mode;
the conventional coding module is used for coding the remaining frames to be coded of the current video according to a conventional coding method;
the second coding module is used for coding by adopting a second coding mode;
the third coding module is used for coding by adopting a third coding mode;
and the fourth coding module is used for coding by adopting a fourth coding mode.
7. The rapid predictive pattern analysis system of claim 6, further comprising:
and the second current frame setting and coding module is connected with the first current frame setting and coding module and is used for setting the current frame as the first frame of the current video and then coding the current frame.
8. The prediction mode rapid analysis system according to claim 7, wherein the background change judgment processing means further comprises: the background change judging module is used for judging whether the background of the current scene is unchanged; the background change judgment module comprises:
the first set creating and initializing module is used for creating a first set and assigning an initial value;
the central area and boundary area demarcation module is used for demarcating a central area and a boundary area of the current scene;
the method specifically comprises the following steps: 9/16, defining a rectangular region with the center of the image as the midpoint as a central region, and defining the rest as boundary regions, wherein the area of the central region does not exceed the area of the image;
the first set dividing module is used for dividing all Skip blocks of the current frame into a first set;
the background classification identification module is used for carrying out background classification identification on the current scene according to the position distribution of the blocks in the first set in the central area and the boundary area of the current scene;
the method specifically comprises the following steps: if numb > numc Thres1And numb > sizeb Thres2If yes, judging that the current scene is the background and not changing; otherwise, judging that the current scene is non-background unchanged;
numc and numb respectively represent the number of blocks located in the central area and the boundary area in the first set; sizeb denotes the number of boundary region blocks; thres1、Thres2Respectively representing a first and a second threshold, Thres1≥2,Thres2>0.9。
9. The prediction mode fast analysis system of claim 8, wherein the first encoding module comprises:
the assignment module is used for carrying out assignment operation: let the first and second cumulative variables num1、num2The current block is set to be a block of a first row and a first column of the current frame;
a second set partitioning module for encoding the current block and then making num if the best prediction mode of the current block is intra-frame prediction1=num1+1、num2=num2+1, and dividing the current block into a second set; otherwise make num1=num1+1;
A second judgment processing module for judging if num2>Thres3*num1Only the intra-frame prediction mode is reserved for the remaining blocks to be coded of the current frame, all other prediction modes are deleted, then coding is carried out, then note is made to be 1, and the coding enters a first judgment processing module; otherwise, entering a third judgment processing module;
a third judgment processing module, configured to judge that, if a block to be encoded next to the current frame exists and all blocks whose center area row numbers are smaller than Hb/2 are not encoded, set the current block as the block to be encoded next to the current frame, and return to the second set dividing module; otherwise, if the next block to be coded exists in the current frame and the blocks with the row number smaller than Hb/2 in the central area are coded completely, coding all the remaining blocks to be coded in the current frame, and then entering a first judgment processing module; otherwise, entering a first judgment processing module;
wherein Hb denotes a line height of an image in units of blocks; thres3Respectively, a third threshold value, Thres3≥0.8;
The second coding module is used for firstly setting the current frame as the next frame to be coded, coding the current frame and then entering the first current frame setting and coding module;
the third coding module is used for judging that if the current scene is a background unchanged scene and note is 0, setting the current frame as a next frame to be coded and entering the first coding module; otherwise, if note is 1, returning to the first current frame setting and encoding module; otherwise, setting the current frame as the next frame to be coded, coding the current frame and counting the number numI of intra-frame prediction blocks contained in the current frame, and then judging whether the numI is more than Thres2If the current frame is not satisfied, the first judgment processing module is returned;
the fourth coding module is used for judging whether the current scene is a background unchanged scene and note is 0 or not, and entering a second current frame setting and second-class low-probability prediction mode deleting module; otherwise, if note is 1, entering a third current frame setting and prediction mode deleting module; otherwise, setting the current frame as the next frame to be coded, coding the current frame and entering a first judgment processing module;
a second current frame setting and second-class low-probability prediction mode deleting module, which is used for setting the current frame as the next frame to be coded, then deleting the second-class low-probability prediction mode, coding and entering the first judgment processing module;
the "deletion of the second-class low-probability prediction mode" is specifically: only preserving the Skip prediction mode for the first type of current block, and deleting all other prediction modes; deleting the prediction mode of the frame where the playing sequence number is greater than or equal to the second set as a reference frame for the second type current block; otherwise, deleting the current block in the prediction mode;
a first type of current block: a current block of the corresponding block can be found in the first set;
second type current block: a current block of the corresponding block can be found in the second set;
and the third current frame setting and prediction mode deleting module is used for setting the current frame as the next frame to be coded, deleting the prediction mode which takes the frame with the playing sequence number being more than or equal to that of the second set as the reference frame, coding and entering the first judgment processing module.
10. An apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the prediction mode fast analysis method according to any one of claims 1 to 5 when executing the computer program.
CN202010953859.XA 2020-09-11 2020-09-11 Method, system and equipment for rapidly analyzing prediction mode Active CN112019848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010953859.XA CN112019848B (en) 2020-09-11 2020-09-11 Method, system and equipment for rapidly analyzing prediction mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010953859.XA CN112019848B (en) 2020-09-11 2020-09-11 Method, system and equipment for rapidly analyzing prediction mode

Publications (2)

Publication Number Publication Date
CN112019848A true CN112019848A (en) 2020-12-01
CN112019848B CN112019848B (en) 2022-09-16

Family

ID=73522261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010953859.XA Active CN112019848B (en) 2020-09-11 2020-09-11 Method, system and equipment for rapidly analyzing prediction mode

Country Status (1)

Country Link
CN (1) CN112019848B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167288A (en) * 2013-02-28 2013-06-19 深圳市云宙多媒体技术有限公司 Method and device of P frame interframe prediction block partition
CN103517077A (en) * 2012-12-14 2014-01-15 深圳百科信息技术有限公司 Method and device for rapidly selecting prediction mode
US20160269734A1 (en) * 2015-03-10 2016-09-15 Hangzhou Hikvision Digital Technology Co., Ltd. Systems and Methods for Hybrid Video Encoding
CN106303528A (en) * 2015-06-04 2017-01-04 北京中传视讯科技有限公司 A kind of code stream translation scene detection method and system
CN109194955A (en) * 2018-11-16 2019-01-11 深圳市梦网百科信息技术有限公司 A kind of scene change detection method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517077A (en) * 2012-12-14 2014-01-15 深圳百科信息技术有限公司 Method and device for rapidly selecting prediction mode
CN103167288A (en) * 2013-02-28 2013-06-19 深圳市云宙多媒体技术有限公司 Method and device of P frame interframe prediction block partition
US20160269734A1 (en) * 2015-03-10 2016-09-15 Hangzhou Hikvision Digital Technology Co., Ltd. Systems and Methods for Hybrid Video Encoding
CN106303528A (en) * 2015-06-04 2017-01-04 北京中传视讯科技有限公司 A kind of code stream translation scene detection method and system
CN109194955A (en) * 2018-11-16 2019-01-11 深圳市梦网百科信息技术有限公司 A kind of scene change detection method and system

Also Published As

Publication number Publication date
CN112019848B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN109446967B (en) Face detection method and system based on compressed information
JP2016526336A (en) System and method for encoding multiple video streams using adaptive quantization for adaptive bitrate streaming
CN109688407B (en) Reference block selection method and device for coding unit, electronic equipment and storage medium
CN109194955B (en) Scene switching detection method and system
WO2019072248A1 (en) Motion estimation method and device, electronic apparatus and computer readable storage medium
CN107820095B (en) Long-term reference image selection method and device
CN111669593B (en) Video encoding method, video encoding device, electronic equipment and storage medium
WO2020248715A1 (en) Coding management method and apparatus based on high efficiency video coding
CN109218722B (en) Video coding method, device and equipment
JP7391456B2 (en) Image processing method, device, terminal and computer program
CN112019848B (en) Method, system and equipment for rapidly analyzing prediction mode
CN113556544B (en) Video coding method, device, equipment and storage medium based on scene self-adaption
CN113079375B (en) Method and device for determining video coding and decoding priority order based on correlation comparison
CN101518091B (en) Decoding device, decoding method, decoding program, and integrated circuit
CN103517077B (en) Method and device for rapidly selecting prediction mode
US20220239900A1 (en) Video decoding method and device, and video encoding method and device
CN112073733A (en) Video coding and decoding method and device based on motion vector angle prediction
CN111541898B (en) Method, device, server and storage medium for determining coding mode
WO2021175108A1 (en) Inter-frame prediction method, encoder, decoder, and computer readable storage medium
CN112019849B (en) Method, system and equipment for rapidly analyzing prediction mode
CN109274970B (en) Rapid scene switching detection method and system
CN109618152B (en) Depth division coding method and device and electronic equipment
CN113784147A (en) Efficient video coding method and system based on convolutional neural network
CN113099269A (en) String matching prediction method, encoding and decoding method, related equipment and device
WO2019113903A1 (en) Coding unit division decision method and device, encoder, and 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
GR01 Patent grant
GR01 Patent grant