CN109089116A - A kind of determination method, device, equipment and the medium of Skip type of mb - Google Patents

A kind of determination method, device, equipment and the medium of Skip type of mb Download PDF

Info

Publication number
CN109089116A
CN109089116A CN201811124567.4A CN201811124567A CN109089116A CN 109089116 A CN109089116 A CN 109089116A CN 201811124567 A CN201811124567 A CN 201811124567A CN 109089116 A CN109089116 A CN 109089116A
Authority
CN
China
Prior art keywords
encoded
macroblock
motion vector
transformation results
skip type
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
CN201811124567.4A
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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology 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 Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201811124567.4A priority Critical patent/CN109089116A/en
Publication of CN109089116A publication Critical patent/CN109089116A/en
Pending legal-status Critical Current

Links

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/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/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/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • 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/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/573Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses determination method, device, equipment and the medium of a kind of Skip type of mb, the step of this method includes: the motion vector according to the encoded macro block adjacent with macroblock to be encoded, calculates the motion vector predictor of macroblock to be encoded;Transform operation is carried out to macroblock to be encoded according to motion vector predictor, and carries out the judgement of Skip type of mb to macroblock to be encoded according to operation result.Possessed relevance between macro block is utilized in this method, the prediction carried out according to the motion vector of the motion vector of the encoded macro block macroblock to be encoded adjacent to its, a large amount of reference macroblock in reference frame is traversed compared to by motion search, and then for macroblock to be encoded carries out matching and cost operation to obtain the corresponding motion vector of macroblock to be encoded, this method can reduce the execution pressure of hardware platform.In addition, the present invention also provides decision maker, equipment and the medium of a kind of Skip type of mb, beneficial effect is same as above.

Description

A kind of determination method, device, equipment and the medium of Skip type of mb
Technical field
The present invention relates to field of video encoding, determination method, device, equipment more particularly to a kind of Skip type of mb And medium.
Background technique
Prediction is one of the function of a core of video compression coding, including the H.264 encoder of current main-stream Video encoder used by prediction mode there are two main classes, first is that intra prediction, another is inter-prediction.
Inter-prediction is the correlation using video image interframe, i.e. temporal correlation, to achieve the purpose that compression of images, It is widely used in the compressed encoding of common TV, video conferencing, visual telephone, high-definition television.Due to past in the video frame Toward there are the Skip type of mb without carrying out compressed encoding operation, therefore in inter-prediction, generally require to be encoded Skip type of mb in frame is determined.It is traditional Skip type of mb is determined used by universal way be to lead to It crosses motion search and successively calculates the motion vector to match with each macroblock to be encoded in reference frame, and then respectively according to each movement Whether vector converts corresponding macroblock to be encoded, be finally that Skip type is macro to the macroblock to be encoded according to transformation results Block is determined.But due to being required to reference frame certain area when carrying out motion search to each macroblock to be encoded In each reference macroblock carry out with the matching and cost operation of macroblock to be encoded, therefore when carrying out motion search each time all Relatively cumbersome operation content can be executed, and then causes the calculation resources occupied required for determining Skip type of mb more, phase To the execution pressure for exacerbating hardware platform.
It can be seen that a kind of determination method of Skip type of mb is provided, to reduce required for determining Skip type of mb The calculation resources of occupancy, and then mitigate the execution pressure of hardware platform, it is those skilled in the art's urgent problem to be solved.
Summary of the invention
The object of the present invention is to provide determination method, device, equipment and the media of a kind of Skip type of mb, in interframe The Skip type of mb treated in coded frame before prediction is determined, and then avoids inter-prediction that from may making to calculation resources relatively At waste.
In order to solve the above technical problems, the present invention provides a kind of determination method of Skip type of mb, comprising:
According to the motion vector of the encoded macro block adjacent with macroblock to be encoded, the motion vector for calculating macroblock to be encoded is pre- Measured value;
Transform operation is carried out to macroblock to be encoded according to motion vector predictor, and according to operation result to macroblock to be encoded Carry out the judgement of Skip type of mb.
Preferably, transform operation is carried out to macroblock to be encoded according to motion vector predictor, and is treated according to operation result The judgement that coded macroblocks carries out Skip type of mb specifically includes:
Motion compensation is carried out to macroblock to be encoded using motion vector predictor, generates predicted macroblock;
The prediction residual between predicted macroblock and macroblock to be encoded is calculated, and dct transform is carried out to prediction residual, obtains and becomes Change Fruiting coefficient;
When transformation results coefficient is in predetermined threshold value, then determine macroblock to be encoded for Skip type of mb.
Preferably, the prediction residual between predicted macroblock and macroblock to be encoded is calculated, and DCT change is carried out to prediction residual It changes, obtains transformation results coefficient and specifically include:
Calculate separately the Y-component prediction residual between predicted macroblock and macroblock to be encoded on tri- components of Y, U, V, U divides Measure prediction residual and V component prediction residual;
Dct transform is carried out to Y-component prediction residual, U component prediction residual and V component prediction residual respectively, generates Y points Change of variable Fruiting coefficient, U component transformation results coefficient and V component transformation results coefficient;
Correspondingly, then determining macroblock to be encoded for Skip type of mb when transformation results coefficient is in predetermined threshold value Specifically:
When Y-component transformation results coefficient, U component transformation results coefficient and V component transformation results coefficient are corresponding When in predetermined threshold value, then determine macroblock to be encoded for Skip type of mb.
Preferably, Y-component transformation results coefficient, U component transformation results coefficient and V component transformation results coefficient are being generated Afterwards, this method further comprises:
When Y-component transformation results coefficient and/or U component transformation results coefficient and/or V component transformation results coefficient, do not exist When in corresponding predetermined threshold value, inter-prediction is carried out to macroblock to be encoded.
Preferably, the calculating process of motion vector predictor includes:
Judge whether that encoded macro block is unavailable and/or the call number of encoded macro block is the movement of 0 and encoded macro block Vector is 0;
If it is, the motion vector of regulation macroblock to be encoded is 0;
Otherwise, the intermediate value of the motion vector of each adjacent macroblocks and the motion vector as macroblock to be encoded are calculated.
Preferably, the prediction residual between predicted macroblock and macroblock to be encoded is calculated, and DCT change is carried out to prediction residual It changes, obtains transformation results coefficient and specifically include:
Operating region is set according to macroblock size;
The pixel mean value under the co-located region of predicted macroblock and macroblock to be encoded in operating region is calculated separately, Obtain the first mean value and the second mean value;
First mean value and the second mean value are carried out to make difference operation, generate residual error mean value, and according to each in operating region The plane of residual error average generation down-sampling, using as residual image;
The dct transform of down-sampling resolution ratio is carried out to residual image, obtains transformation results coefficient.
Preferably, the motion vector predictor of macroblock to be encoded is calculated specifically:
The motion vector predictor of macroblock to be encoded is calculated by H.264 encoder.
In addition, the present invention also provides a kind of decision makers of Skip type of mb, comprising:
Predictor calculation module, for according to the motion vector of the encoded macro block adjacent with macroblock to be encoded, calculate to The motion vector predictor of coded macroblocks;
Determination module is converted, for carrying out transform operation to macroblock to be encoded according to motion vector predictor, and according to fortune Calculate the judgement that result carries out Skip type of mb to macroblock to be encoded.
In addition, the present invention also provides a kind of judgement equipment of Skip type of mb, comprising:
Memory, for storing computer program;
Processor, when for executing computer program the step of the realization such as determination method of above-mentioned Skip type of mb.
In addition, being stored with meter on computer readable storage medium the present invention also provides a kind of computer readable storage medium Calculation machine program, when computer program is executed by processor the step of the realization such as determination method of above-mentioned Skip type of mb.
The determination method of Skip type of mb provided by the present invention, according to the encoded macro block adjacent with macroblock to be encoded Corresponding motion vector calculates the motion vector predictor of macroblock to be encoded, and then using motion vector predictor as subsequent The execution parameter of judgment step carries out corresponding transform operation to macroblock to be encoded, finally according to operation result to be encoded macro Whether block is that Skip type of mb is determined.Possessed relevance between macro block is utilized in this method, according to encoded macro The prediction that the motion vector of the motion vector of the block macroblock to be encoded adjacent to its carries out, thus generate motion vector predictor with Largely join for carrying out the decision of subsequent Skip type of mb, and compared to being traversed in reference frame by motion search Examine macro block, so matching and cost operation are carried out to macroblock to be encoded to obtain the corresponding motion vector of macroblock to be encoded and Speech, this method is when obtaining the motion vector of macro block to be measured, it is only necessary to which it is smaller to carry out operand to each adjacent encoded macro block Motion vector predictor operation can obtain and carry out subsequent decision, therefore this method can relative reduction determine Skip The calculation resources occupied required for type of mb, and then alleviate the execution pressure of hardware platform.In addition, the present invention also provides one Decision maker, equipment and the medium of kind Skip type of mb, beneficial effect are same as above.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the determination method of Skip type of mb provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the determination method of another kind Skip type of mb provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the determination method of another kind Skip type of mb provided in an embodiment of the present invention;
Fig. 4 is macro block schematic diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of structure chart of the decision maker of Skip type of mb provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other Embodiment belongs to the scope of the present invention.
Core of the invention is to provide a kind of determination method of Skip type of mb, to treat coded frame before inter-prediction In Skip type of mb determined, and then opposite avoid inter-prediction waste caused by calculation resources.The present invention Another core be to provide decision maker, equipment and the medium of a kind of Skip type of mb.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Embodiment one
Fig. 1 is a kind of flow chart of the determination method of Skip type of mb provided in an embodiment of the present invention.Referring to FIG. 1, The specific steps of the determination method of Skip type of mb include:
Step S10: according to the motion vector of the encoded macro block adjacent with macroblock to be encoded, the fortune of macroblock to be encoded is calculated Dynamic vector predicted value.
It should be noted that the macroblock to be encoded and encoded macro block in this step are in the same video frame, and And the precondition of this step be it is existing have an encoded macro block, and since encoded macro block is compiled as uncoded frame During code, the motion vector of its own is calculated, therefore encoded macro block can be directly obtained in this step Motion vector.In addition, and due in same video frame, having the correlation in space, therefore energy between adjacent macro block Enough movements for more efficiently calculating macroblock to be encoded according to the motion vector of the adjacent encoded macro block of macroblock to be encoded are sweared Measure predicted value, and then this step the moving-mass predicted value of macroblock to be encoded is executed as its motion vector it is subsequent right The decision of Skip type of mb.According to the motion vector of the encoded macro block adjacent with macroblock to be encoded, meter in this step The basic principle for calculating the motion vector predictor of macroblock to be encoded, is to carry out taking intermediate value to the motion vector of each encoded macro block Calculate, as a result the as motion vector predictor of macroblock to be encoded, due to the predicted value of motion vector calculation method it is detailed Content is content known to those skilled in the art, and this will not be repeated here.
Step S11: transform operation is carried out to macroblock to be encoded according to motion vector predictor, and is treated according to operation result The judgement of coded macroblocks progress Skip type of mb.
It should be noted that the concrete operations of this step in general may include: to motion vector predictor into Row motion compensation obtains predicted macroblock, and then calculates the prediction residual between predicted macroblock and macroblock to be encoded;To prediction residual Tri- components of YUV carry out dct transform respectively, then quantify, obtain its final transformation results coefficient;It is finally corresponding to YUV Residual error plane carry out zigzag scanning respectively, and then transformation results coefficient is determined, if transformation results coefficient is all 0, then determine the macroblock to be encoded for skip block.
The determination method of Skip type of mb provided by the present embodiment, according to adjacent with macroblock to be encoded encoded macro Motion vector corresponding to block, calculates the motion vector predictor of macroblock to be encoded, and then after motion vector predictor is used as The execution parameter of continuous judgment step carries out corresponding transform operation to macroblock to be encoded, finally according to operation result to be encoded Whether macro block is that Skip type of mb is determined.Possessed relevance between macro block is utilized in this method, according to encoded The prediction that the motion vector of the motion vector of the macro block macroblock to be encoded adjacent to its carries out, to generate motion vector predictor With the decision for carrying out subsequent Skip type of mb, and it is a large amount of in reference frame compared to being traversed by motion search Reference macroblock, so matching and cost operation are carried out to obtain the corresponding motion vector of macroblock to be encoded to macroblock to be encoded and Speech, this method is when obtaining the motion vector of macro block to be measured, it is only necessary to which it is smaller to carry out operand to each adjacent encoded macro block Motion vector predictor operation can obtain and carry out subsequent decision, therefore this method can relative reduction determine Skip The calculation resources occupied required for type of mb, and then alleviate the execution pressure of hardware platform.
Embodiment two
On the basis of the above embodiments, the present invention also provides a series of preferred embodiments.
Fig. 2 is the flow chart of the determination method of another kind Skip type of mb provided in an embodiment of the present invention.Step in Fig. 2 S10 is identical as Fig. 1, and details are not described herein.
As shown in Fig. 2, as a preferred embodiment, step S11 is specifically included:
Step S20: motion compensation is carried out to macroblock to be encoded using motion vector predictor, generates predicted macroblock.
It should be noted that this step is using the motion vector predictor of macroblock to be encoded itself as macroblock to be encoded Motion vector participates in subsequent operation.It and is that current macro is macro with the best match in reference frame to the definition of motion vector Relative displacement between block, and motion compensation is poor method for distinguishing between a kind of description adjacent video frames, is specifically described How each macro block of one frame of front is moved to some position in present frame, therefore this step utilizes motion vector predictor Motion compensation is carried out to macroblock to be encoded, is equivalent to and macroblock to be encoded is moved in reference frame where the macro block of best match Position, and then generate predicted macroblock.The reference frame that this place refers to can be adjacent with the frame to be encoded where macroblock to be encoded Encoded video frame, be also possible to the pre-set video frame of user, should according to the actual situation depending on, do not do specific limit herein It is fixed.Functioning as this step predicted macroblock generated is changed pre- in next video frame institute to macroblock to be encoded Estimate.
Step S21: the prediction residual between predicted macroblock and macroblock to be encoded is calculated, and DCT change is carried out to prediction residual It changes, obtains transformation results coefficient.
It should be noted that prediction residual refers to the difference between predicted value and actual value, if predicted value and current Actual value very close to then the difference between them (referred to as prediction residual) will be sufficiently small, so as to press encoder It is condensed to very short data encoding.The predicted macroblock of this step is above-mentioned predicted value, and macroblock to be encoded is above-mentioned reality Value.In addition, dct transform (discrete cosine transform, Discrete Cosine Transform) is that video compress needs common one A transform coding method.Dct transform is that general image is first divided into N*N block of pixels, then carries out DCT one by one to N*N block of pixels Transformation.Each component of prediction residual, i.e. the transformation results system of this step can be got by carrying out dct transform to prediction residual Number, so can be more accurate and careful by transformation results coefficient quantitative prediction macro block and macroblock to be encoded between difference It is different.
Step S22: when transformation results coefficient is in predetermined threshold value, then determine that macroblock to be encoded is macro for Skip type Block.
It is understood that this step is that predetermined threshold value is compared with transformation results coefficient, when transformation results system When number is in predetermined threshold value, illustrate that the difference between macroblock to be encoded and predicted macroblock can be received, due to predicted macroblock It is to be obtained by macroblock to be encoded by motion compensation, therefore predicted macroblock is that encoded macro block is obtained by standardization processing It arrives, and then when the difference between macroblock to be encoded and predicted macroblock can be received, macroblock to be encoded and encoded macro block Between difference can also be received, and then macroblock to be encoded can be determined as to Skip type of mb, without being pressed again Reduce the staff code.
Due to carry out in the present embodiment operation macroblock to be encoded motion vector indeed through the side estimated The motion vector predictor that formula obtains, therefore there are certain errors between motion vector predictor and motion vector, therefore to pre- The setting of gating limit value should be taken into account the margin of error that may be present.
Embodiment three
On the basis of the above embodiments, the present invention also provides a series of preferred embodiments.
Fig. 3 is the flow chart of the determination method of another kind Skip type of mb provided in an embodiment of the present invention.Step in Fig. 3 S10 and S20 are identical as Fig. 2, and details are not described herein.
As shown in figure 3, as a preferred embodiment, step S21 is specifically included:
Step S30: the Y-component prediction between predicted macroblock and macroblock to be encoded on tri- components of Y, U, V is calculated separately Residual error, U component prediction residual and V component prediction residual.
Step S31: DCT change is carried out respectively to Y-component prediction residual, U component prediction residual and V component prediction residual It changes, generates Y-component transformation results coefficient, U component transformation results coefficient and V component transformation results coefficient.
It should be noted that YUV, is a kind of colour coding method, is often used in each video output component.YUV is Compile true-color color space (color space) type, " Y " indicate brightness (Luminance, Luma), " U " and " V " is then coloration (Chrominance) and concentration (Chroma).
Prediction residual between predicted macroblock and macroblock to be encoded is limited on tri- components of Y, U, V by present embodiment Corresponding prediction residual.
Correspondingly, step S22 specifically:
Step S32: when Y-component transformation results coefficient, U component transformation results coefficient and V component transformation results coefficient are equal When in corresponding predetermined threshold value, then determine macroblock to be encoded for Skip type of mb.
It is understood that the Y-component transformation results coefficient, U component transformation results coefficient and V component in this step become Changing Fruiting coefficient respectively is to be carried out dct transform by Y-component prediction residual, U component prediction residual and V component prediction residual and obtained It arrives, present embodiment is further improved by the refinement to prediction residual progress component through transformation results coefficient pair The judgement accuracy of Skip type of mb.
On the basis of the above embodiment, as a preferred embodiment, generating Y-component transformation results system After number, U component transformation results coefficient and V component transformation results coefficient, this method further comprises:
When Y-component transformation results coefficient and/or U component transformation results coefficient and/or V component transformation results coefficient, do not exist When in corresponding predetermined threshold value, inter-prediction is carried out to macroblock to be encoded.
It should be noted that due to consideration that not only there are Skip type of mb in frame to be encoded, but also exist The common macro block in need for carrying out compressed encoding, therefore in order to which the common macro block further ensured in frame to be encoded can be by just Normal pressure contracting, present embodiment is when Y-component transformation results coefficient and/or U component transformation results coefficient and/or V component transformation knot When fruit coefficient is not in corresponding predetermined threshold value, i.e., judgement macroblock to be encoded non-Skip type of mb when, searched to by movement Suo Fangfa carries out inter-prediction to macroblock to be encoded, and then corresponding Compression Strategies is taken to compress the macroblock to be encoded, Present embodiment further ensures the integrality of scheme.
In addition, as a preferred embodiment, the calculating process of motion vector predictor includes:
Judge whether that encoded macro block is unavailable and/or the call number of encoded macro block is the movement of 0 and encoded macro block Vector is 0;
If it is, the motion vector of regulation macroblock to be encoded is 0;
Otherwise, the intermediate value of the motion vector of each adjacent macroblocks and the motion vector as macroblock to be encoded are calculated.
It is please macro block provided in an embodiment of the present invention signal with specific reference to Fig. 4, Fig. 4 when understanding present embodiment Figure.As shown in figure 4, E is current macroblock to be encoded, A is left adjacent macroblocks, B is top neighboring macroblock, C is that upper right is adjacent macro Block.Specifically, the calculating of motion vector is divided into two major classes:
One of one is by the judgement of the motion vector of macroblock to be encoded being directly 0, it is necessary to meet following condition:
1) macro block A is unavailable;
2) macro block B is unavailable;
3) reference key number of macro block A is 0, and each component of the motion vector of macro block A is all 0;
4) reference key number of macro block B is 0, and each component of the motion vector of macro block B is all 0;
Another kind be when be unsatisfactory for it is above-mentioned be directly 0 by the judgement of the motion vector of macroblock to be encoded the case where when, need by The motion vector of macroblock to be encoded is calculated according to the calculation of predicted motion quality, the method for calculating is to take macro block A, macro block B And the intermediate value of the motion vector of macro block C three.Present embodiment can meet centainly in the adjacent macroblocks of macroblock to be encoded When condition, quickly determine that the motion vector of macroblock to be encoded is 0, the opposite calculating improved to the motion vector of macroblock to be encoded Efficiency.
In addition, as a preferred embodiment, calculate the prediction residual between predicted macroblock and macroblock to be encoded, and Dct transform is carried out to prediction residual, transformation results coefficient is obtained and specifically includes:
Operating region is set according to macroblock size;
The pixel mean value under the co-located region of predicted macroblock and macroblock to be encoded in operating region is calculated separately, Obtain the first mean value and the second mean value;
First mean value and the second mean value are carried out to make difference operation, generate residual error mean value, and according to each in operating region The plane of residual error average generation down-sampling, using as residual image;
The dct transform of down-sampling resolution ratio is carried out to residual image, obtains transformation results coefficient.
It should be noted that the prespecified default operating region less than or equal to macroblock size of present embodiment, and point Not Ji Suan the pixel mean value of predicted macroblock and corresponding macroblock to be encoded in operating region under the identical band of position, obtain First mean value and the second mean value, and then make difference operation to the first mean value and the second mean value, generate residual error mean value, and according to The plane of each residual error average generation down-sampling in operating region carries out down-sampling as residual image, and then to residual image The dct transform of resolution ratio, it is final to obtain transformation results coefficient.Present embodiment is by carrying out down-sampling resolution ratio to residual image Dct transform can carry out a degree of scaling to residual image, the size of display area is met convenient for image.
On the basis of the above embodiment, as a preferred embodiment, macroblock size is 16*16 pixel;Fortune The size for calculating region is 8*8 pixel;The size of the band of position is 2*2 pixel.
It should be noted that macroblock size is 16*16 pixel, the size of operating region is 8*8 pixel, the ruler of the band of position Very little is 2*2 pixel, and carry out residual image generates the accuracy that opposite can ensure residual image.
In addition, as a preferred embodiment, calculating the motion vector predictor of macroblock to be encoded specifically:
The motion vector predictor of macroblock to be encoded is calculated by H.264 encoder.
It should be noted that H.264 the maximum advantage of encoder is that have very high data compression ratio, in same image Under conditions of quality, H.264 the compression ratio of encoder is the 2 times or more of MPEG-2, is 1.5-2 times of MPEG-4, with MPEG-2 And the compress techniques such as MPEG-4ASP are compared, H.264 compress technique can greatly save user's foradownloaded video frame time and Generate data traffic expense.
Example IV
Hereinbefore the embodiment of the determination method of Skip type of mb is described in detail, the present invention also mentions For a kind of decision maker of Skip type of mb corresponding with this method, due to the embodiment of device part and the reality of method part Example reciprocal correspondence is applied, therefore the embodiment of device part refers to the description of the embodiment of method part, wouldn't repeat here.
Fig. 5 is a kind of structure chart of the decision maker of Skip type of mb provided in an embodiment of the present invention.The present invention is implemented The decision maker for the Skip type of mb that example provides, comprising:
Predictor calculation module 10 is calculated for the motion vector according to the encoded macro block adjacent with macroblock to be encoded The motion vector predictor of macroblock to be encoded.
Determination module 11 is converted, is used for according to motion vector predictor to macroblock to be encoded progress transform operation, and according to Operation result carries out the judgement of Skip type of mb to macroblock to be encoded.
The decision maker of Skip type of mb provided by the present invention, according to the encoded macro block adjacent with macroblock to be encoded Corresponding motion vector calculates the motion vector predictor of macroblock to be encoded, and then using motion vector predictor as subsequent The execution parameter of judgment step carries out corresponding transform operation to macroblock to be encoded, finally according to operation result to be encoded macro Whether block is that Skip type of mb is determined.Possessed relevance between macro block is utilized in the present apparatus, according to encoded macro The prediction that the motion vector of the motion vector of the block macroblock to be encoded adjacent to its carries out, thus generate motion vector predictor with Largely join for carrying out the decision of subsequent Skip type of mb, and compared to being traversed in reference frame by motion search Examine macro block, so matching and cost operation are carried out to macroblock to be encoded to obtain the corresponding motion vector of macroblock to be encoded and Speech, the present apparatus is when obtaining the motion vector of macro block to be measured, it is only necessary to which it is smaller to carry out operand to each adjacent encoded macro block Motion vector predictor operation can obtain and carry out subsequent decision, therefore the present apparatus can relative reduction determine Skip The calculation resources occupied required for type of mb, and then alleviate the execution pressure of hardware platform.
Embodiment five
The present invention also provides a kind of judgement equipment of Skip type of mb, comprising:
Memory, for storing computer program;
Processor, when for executing computer program the step of the realization such as determination method of above-mentioned Skip type of mb.
The judgement equipment of Skip type of mb provided by the present embodiment, according to adjacent with macroblock to be encoded encoded macro Motion vector corresponding to block, calculates the motion vector predictor of macroblock to be encoded, and then after motion vector predictor is used as The execution parameter of continuous judgment step carries out corresponding transform operation to macroblock to be encoded, finally according to operation result to be encoded Whether macro block is that Skip type of mb is determined.Possessed relevance between this equipment utilization macro block, according to encoded The prediction that the motion vector of the motion vector of the macro block macroblock to be encoded adjacent to its carries out, to generate motion vector predictor With the decision for carrying out subsequent Skip type of mb, and it is a large amount of in reference frame compared to being traversed by motion search Reference macroblock, so matching and cost operation are carried out to obtain the corresponding motion vector of macroblock to be encoded to macroblock to be encoded and Speech, this equipment is when obtaining the motion vector of macro block to be measured, it is only necessary to which it is smaller to carry out operand to each adjacent encoded macro block Motion vector predictor operation can obtain and carry out subsequent decision, therefore this equipment can relative reduction determine Skip The calculation resources occupied required for type of mb, and then alleviate the execution pressure of hardware platform.
The judgement equipment of Skip type of mb provided in this embodiment, can be used as the node device of CDN, can also be used as The node device of block chain.
The present invention also provides a kind of computer readable storage medium, computer journey is stored on computer readable storage medium Sequence, when computer program is executed by processor the step of the realization such as determination method of above-mentioned Skip type of mb.
Computer readable storage medium provided by the present invention, it is right according to the encoded macro block institute adjacent with macroblock to be encoded The motion vector answered calculates the motion vector predictor of macroblock to be encoded, and then using motion vector predictor as subsequent judgement The execution parameter of step carries out corresponding transform operation to macroblock to be encoded, is to macroblock to be encoded according to operation result finally It is no to be determined for Skip type of mb.Possessed relevance, root between macro block is utilized in this computer readable storage medium According to the prediction that the motion vector of the motion vector of the encoded macro block macroblock to be encoded adjacent to its carries out, to generate movement arrow Predicted value is measured with the decision for carrying out subsequent Skip type of mb, and traverses reference frame compared to by motion search In a large amount of reference macroblock, and then to macroblock to be encoded carry out matching and cost operation to obtain the corresponding fortune of macroblock to be encoded For dynamic vector, this computer readable storage medium is when obtaining the motion vector of macro block to be measured, it is only necessary to it is each it is adjacent Coded macroblocks, which carries out the lesser motion vector predictor operation of operand, can obtain and carry out subsequent decision, therefore this meter Calculation machine readable storage medium storing program for executing is capable of the calculation resources of the required occupancy of relative reduction judgement Skip type of mb, and then alleviates hard The execution pressure of part platform.
A kind of determination method, device, equipment and the medium of Skip type of mb provided by the present invention are carried out above It is discussed in detail.Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment, For equipment and medium, since it is corresponded to the methods disclosed in the examples, so be described relatively simple, related place referring to Method part illustration.It should be pointed out that for those skilled in the art, not departing from the principle of the invention Under the premise of, it can be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the claims in the present invention Protection scope in.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

Claims (10)

1. a kind of determination method of Skip type of mb characterized by comprising
According to the motion vector of the encoded macro block adjacent with macroblock to be encoded, the motion vector for calculating the macroblock to be encoded is pre- Measured value;
According to the motion vector predictor to the macroblock to be encoded carry out transform operation, and according to operation result to it is described to The judgement of coded macroblocks progress Skip type of mb.
2. according to the method described in claim 1, its feature is being, it is described according to the motion vector predictor to it is described to Coded macroblocks carries out transform operation, and specific according to the judgement that operation result carries out Skip type of mb to the macroblock to be encoded Include:
Motion compensation is carried out to the macroblock to be encoded using the motion vector predictor, generates predicted macroblock;
The prediction residual between the predicted macroblock and the macroblock to be encoded is calculated, and DCT change is carried out to the prediction residual It changes, obtains transformation results coefficient;
When the transformation results coefficient is in predetermined threshold value, then determine the macroblock to be encoded for Skip type of mb.
3. according to the method described in claim 2, it is characterized in that, described calculate the predicted macroblock and the macroblock to be encoded Between prediction residual, and to the prediction residual carry out dct transform, obtain transformation results coefficient specifically include:
Calculate separately Y-component prediction residual between the predicted macroblock and the macroblock to be encoded on tri- components of Y, U, V, U component prediction residual and V component prediction residual;
The DCT is carried out respectively to the Y-component prediction residual, the U component prediction residual and the V component prediction residual Transformation generates Y-component transformation results coefficient, U component transformation results coefficient and V component transformation results coefficient;
Correspondingly, it is described when the transformation results coefficient is in predetermined threshold value, then determine the macroblock to be encoded for Skip Type of mb specifically:
When the Y-component transformation results coefficient, the U component transformation results coefficient and the V component transformation results coefficient are equal When in the corresponding predetermined threshold value, then determine that the macroblock to be encoded is the Skip type of mb.
4. according to the method described in claim 3, it is characterized in that, becoming in the generation Y-component transformation results coefficient, U component After changing Fruiting coefficient and V component transformation results coefficient, this method further comprises:
When the Y-component transformation results coefficient and/or the U component transformation results coefficient and/or V component transformation results system Number, not in the corresponding predetermined threshold value when, inter-prediction is carried out to the macroblock to be encoded.
5. the method according to claim 1, wherein the calculating process of the motion vector predictor includes:
Judge whether that the encoded macro block is unavailable and/or the call number of the encoded macro block is 0 and described encoded macro The motion vector of block is 0;
If it is, providing that the motion vector of the macroblock to be encoded is 0;
Otherwise, the intermediate value of the motion vector of each adjacent macroblocks and the motion vector as the macroblock to be encoded are calculated.
6. according to the method described in claim 2, it is characterized in that, described calculate the predicted macroblock and the macroblock to be encoded Between prediction residual, and to the prediction residual carry out dct transform, obtain transformation results coefficient specifically include:
Operating region is set according to macroblock size;
Calculate separately the picture of the predicted macroblock and the macroblock to be encoded under the co-located region in the operating region Vegetarian refreshments mean value obtains the first mean value and the second mean value;
First mean value and the second mean value are carried out to make difference operation, generate residual error mean value, and according in the operating region Each residual error average generation down-sampling plane, using as residual image;
The dct transform of down-sampling resolution ratio is carried out to the residual image, obtains transformation results coefficient.
7. according to method described in claim 2 to 6 any one, which is characterized in that the calculating macroblock to be encoded Motion vector predictor specifically:
The motion vector predictor of the macroblock to be encoded is calculated by H.264 encoder.
8. a kind of decision maker of Skip type of mb characterized by comprising
Predictor calculation module, for according to the motion vector of the encoded macro block adjacent with macroblock to be encoded, calculate it is described to The motion vector predictor of coded macroblocks;
Determination module is converted, for carrying out transform operation, and root to the macroblock to be encoded according to the motion vector predictor The judgement of Skip type of mb is carried out to the macroblock to be encoded according to operation result.
9. a kind of judgement equipment of Skip type of mb characterized by comprising
Memory, for storing computer program;
Processor realizes Skip type of mb as described in any one of claim 1 to 7 when for executing the computer program Determination method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize Skip type of mb as described in any one of claim 1 to 7 when being executed by processor The step of determination method.
CN201811124567.4A 2018-09-26 2018-09-26 A kind of determination method, device, equipment and the medium of Skip type of mb Pending CN109089116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811124567.4A CN109089116A (en) 2018-09-26 2018-09-26 A kind of determination method, device, equipment and the medium of Skip type of mb

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811124567.4A CN109089116A (en) 2018-09-26 2018-09-26 A kind of determination method, device, equipment and the medium of Skip type of mb

Publications (1)

Publication Number Publication Date
CN109089116A true CN109089116A (en) 2018-12-25

Family

ID=64842566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811124567.4A Pending CN109089116A (en) 2018-09-26 2018-09-26 A kind of determination method, device, equipment and the medium of Skip type of mb

Country Status (1)

Country Link
CN (1) CN109089116A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587496A (en) * 2019-01-04 2019-04-05 深圳市网心科技有限公司 A kind of Skip block method of discrimination, encoder, electronic equipment and readable storage medium storing program for executing
CN111917558A (en) * 2020-08-13 2020-11-10 南开大学 Video frame data double-authentication and hierarchical encryption method based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080069211A1 (en) * 2006-09-14 2008-03-20 Kim Byung Gyu Apparatus and method for encoding moving picture
US20090232217A1 (en) * 2008-03-17 2009-09-17 Samsung Electronics Co., Ltd. Method and apparatus for encoding and decoding image
CN103237224A (en) * 2013-04-01 2013-08-07 深圳市云宙多媒体技术有限公司 P_skip block advanced judgment method based on threshold
CN104041048A (en) * 2011-11-09 2014-09-10 Sk电信有限公司 Method And Apparatus Video Encoding And Decoding Using Skip Mode
CN106341689A (en) * 2016-09-07 2017-01-18 中山大学 Method and system for optimizing AVS2 quantization module and inverse quantization module
CN107566846A (en) * 2017-09-20 2018-01-09 北京维境视讯信息技术有限公司 Video coding skip mode decision-making technique, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080069211A1 (en) * 2006-09-14 2008-03-20 Kim Byung Gyu Apparatus and method for encoding moving picture
US20090232217A1 (en) * 2008-03-17 2009-09-17 Samsung Electronics Co., Ltd. Method and apparatus for encoding and decoding image
CN104041048A (en) * 2011-11-09 2014-09-10 Sk电信有限公司 Method And Apparatus Video Encoding And Decoding Using Skip Mode
CN103237224A (en) * 2013-04-01 2013-08-07 深圳市云宙多媒体技术有限公司 P_skip block advanced judgment method based on threshold
CN106341689A (en) * 2016-09-07 2017-01-18 中山大学 Method and system for optimizing AVS2 quantization module and inverse quantization module
CN107566846A (en) * 2017-09-20 2018-01-09 北京维境视讯信息技术有限公司 Video coding skip mode decision-making technique, device, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587496A (en) * 2019-01-04 2019-04-05 深圳市网心科技有限公司 A kind of Skip block method of discrimination, encoder, electronic equipment and readable storage medium storing program for executing
CN109587496B (en) * 2019-01-04 2022-09-09 深圳市网心科技有限公司 Skip block distinguishing method, encoder, electronic device and readable storage medium
CN111917558A (en) * 2020-08-13 2020-11-10 南开大学 Video frame data double-authentication and hierarchical encryption method based on block chain
CN111917558B (en) * 2020-08-13 2021-03-23 南开大学 Video frame data double-authentication and hierarchical encryption method based on block chain

Similar Documents

Publication Publication Date Title
US9860554B2 (en) Motion estimation for uncovered frame regions
US11206405B2 (en) Video encoding method and apparatus, video decoding method and apparatus, computer device, and storage medium
KR100772576B1 (en) Method for encoding and decoding video information, a motion compensated video encoder and a corresponding decoder
RU2682859C1 (en) Selection of motion vector precision
RU2377737C2 (en) Method and apparatus for encoder assisted frame rate up conversion (ea-fruc) for video compression
EP2039171B1 (en) Weighted prediction for video coding
US9247250B2 (en) Method and system for motion compensated picture rate up-conversion of digital video using picture boundary processing
CN104301724B (en) Method for processing video frequency, encoding device and decoding device
CN109379594B (en) Video coding compression method, device, equipment and medium
CN104125466B (en) A kind of HEVC parallel decoding methods based on GPU
CN107087200B (en) Skip coding mode advanced decision method for high-efficiency video coding standard
CN101640802A (en) Video inter-frame compression coding method based on macroblock features and statistical properties
CN106060539B (en) A kind of method for video coding of low transmission bandwidth
CN105578181B (en) The fast intra mode decision and block matching method of screen content compression in a kind of HEVC
CN101710993A (en) Block-based self-adaptive super-resolution video processing method and system
CN101507277A (en) Image encoding/decoding method and apparatus
CN101888546B (en) A kind of method of estimation and device
CN103188496A (en) Fast motion estimation video encoding method based on motion vector distribution forecast
CN102158729A (en) Method for objectively evaluating encoding quality of video sequence without reference
CN103596004A (en) Intra-frame prediction method and device based on mathematical statistics and classification training in HEVC
CN108713318A (en) A kind of processing method and equipment of video frame
CN109089116A (en) A kind of determination method, device, equipment and the medium of Skip type of mb
CN115118964A (en) Video encoding method, video encoding device, electronic equipment and computer-readable storage medium
CN108401185B (en) Reference frame selection method, video transcoding method, electronic device and storage medium
CN113489976A (en) Predictive coding method and device and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181225

RJ01 Rejection of invention patent application after publication