CN101742295B - Image adaptive strip division-based adaptive frame/field encoding method and device - Google Patents

Image adaptive strip division-based adaptive frame/field encoding method and device Download PDF

Info

Publication number
CN101742295B
CN101742295B CN 200810226586 CN200810226586A CN101742295B CN 101742295 B CN101742295 B CN 101742295B CN 200810226586 CN200810226586 CN 200810226586 CN 200810226586 A CN200810226586 A CN 200810226586A CN 101742295 B CN101742295 B CN 101742295B
Authority
CN
China
Prior art keywords
band
macro block
motion
macro
current
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.)
Active
Application number
CN 200810226586
Other languages
Chinese (zh)
Other versions
CN101742295A (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.)
Mid Star Technology Ltd By Share Ltd
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CN 200810226586 priority Critical patent/CN101742295B/en
Publication of CN101742295A publication Critical patent/CN101742295A/en
Application granted granted Critical
Publication of CN101742295B publication Critical patent/CN101742295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to an image adaptive strip division-based adaptive frame/field encoding method and an image adaptive strip division-based adaptive frame/field encoding device. The method comprises the following steps: a, judging whether a current frame is the first frame of the video or at a scene switch position; b, under the condition that a judging result of the step a is negative, performing strip division on the current frame according to image motion characteristics, and dividing the current frame into strips in which the macroblock pair is in acute motion and chronic motion; and c, performing frame encoding or field encoding on the current frame according to a division result of the step b. By analyzing content details and the motion characteristics of the video, each frame of image of the video is divided into the strips with similar content characteristics, the video is encoded by adopting the image strip-based adaptive frame/field encoding method, and the encoding efficiency of the conventional image strip-based adaptive frame/field encoding method is improved.

Description

Adaptive frame/field encoding method and equipment based on the division of image adaptive band
Technical field
The present invention relates to a kind of adaptive frame/field encoding method and equipment of dividing based on the image adaptive band.
Background technology
Adaptive frame/field encoding method based on the image band had both overcome the not enough shortcoming of entire image adaptive frame/field encoding scheme flexibility, had overcome again based on the right shortcoming that adaptive frame/field encoding scheme operand is too big, complexity is too big of macro block.But the adaptive frame/field encoding method based on the image band lacks the research for the band partitioning technology at present, can not give full play to the advantage of adaptive frame/field coding techniques, thereby can't obtain good code efficiency.
Therefore, need a kind of band to divide more reasonably adaptive frame/field encoding method, so that improve code efficiency based on the adaptive frame/field coding of image band.
Summary of the invention
The invention provides a kind of adaptive frame/field encoding method based on the division of image adaptive band that can overcome the above problems.
In first aspect, the invention provides a kind of adaptive frame/field encoding method based on image adaptive band partitioning technology, it is characterized in that comprising the following steps:
A. judge whether present frame is first frame of video or is in scene switching place;
B. the judged result of step a for the situation of negating under, according to the image motion characteristic present frame is carried out band and divides, present frame is divided into wherein macro block to being the violent band of releiving with motion of motion;
C. according to the results of step b present frame is carried out a frame coding or a coding,, then current band is carried out field and encode if the right motion feature of the macro block in band is violent for motion; If the right motion feature of the macro block in band is releived for motion, then current band is carried out the frame coding.
In first aspect of the present invention, preferably, step b comprises the following steps:
B1. present frame is carried out slice-group and divide, obtain the right motion feature of macro block in the present frame, the macro block that will have the same movement characteristic is to being divided into a slice-group;
B2. according to said motion feature said slice-group is divided into band.
In first aspect of the present invention, preferably, step b1 comprises:
Calculate the right gray variance value of current macro;
Releive for motion if said gray variance value, is then judged the right motion feature of current macro less than first threshold, said first threshold is for preestablishing;
If said gray variance value is greater than first threshold; Then to mate most macro block right to seeking for current macro in the former frame image; Current macro is compared mate most the right motion excursion amount of macro block and second threshold value with respect to it, judge the right motion feature of current macro according to comparative result, said second threshold value is for preestablishing; If it is violent for motion that said motion excursion amount, is then judged the right motion feature of current macro greater than second threshold value; If said motion excursion amount, is then judged the right motion feature of current macro less than second threshold value and is releived for motion.
In first aspect of the present invention, preferably, step b2 comprises the following steps:
If b2.1. current macro gets into step b2.3 to being that first macro block in the present frame upper left corner is right; Otherwise get into step b2.2;
If the right motion feature of the motion feature that b2.2. current macro is right and last macro block is identical, then they are classified as same band, otherwise with current macro to right as first macro block of new band, get into step 4 then;
B2.3. current macro is right to first macro block as first band in the present frame, get into step b2.4; If b2.4. current macro is then got next macro block to right as current macro to not being that last macro block in the present frame lower right corner is right, get into step b2.1, finish otherwise divide for the band of present frame.
In first aspect of the present invention, preferably, also comprise step:
F. after step b or d, the band that marks off is merged,
If the macro block in band to quantity less than a threshold value; Then incorporate it into last band or back one band according to similitude; Wherein, Said threshold value is provided with in advance, represents the minimum macro block that need comprise in the band to quantity, and said similitude is right motion feature of the macro block in the band or content information.
In second aspect, the invention provides a kind of adaptive frame/field encoding device based on image adaptive band partitioning technology, it is characterized in that comprising:
Judge module is used to judge whether present frame is first frame of video or whether is in scene switching place;
Band is divided module, said judged result for the situation of negating under, according to the image motion characteristic present frame is carried out band and divides, present frame is divided into wherein macro block to being the violent band of releiving with motion of motion;
Coding module is used for according to said band results present frame being carried out a frame coding or a coding, if the right motion feature of the macro block in band is violent for motion, then current band is carried out field and encodes; If the right motion feature of the macro block in band is releived for motion, then current band is carried out the frame coding.
In second aspect of the present invention, preferably, band is divided module and is comprised:
Present frame is carried out slice-group divide, obtain the right motion feature of macro block in the present frame, the macro block that will have the same movement characteristic is to being divided into the module of a slice-group;
Said slice-group is divided into the module of band according to said motion feature.
In second aspect of the present invention, preferably, also comprise: the module that after said band is divided, the band that marks off is merged; If the macro block in band to quantity less than a threshold value; Then incorporate it into last band or back one band according to similitude, wherein, said threshold value is provided with in advance; Represent the minimum macro block that need comprise in the band to quantity, said similitude is right motion feature of the macro block in the band or content information.
In the third aspect, the invention provides a kind of adaptive frame/field encoding method based on image adaptive band partitioning technology, it is characterized in that comprising the following steps:
A. judge whether present frame is first frame of video or is in scene switching place;
B. the judged result of step a for the situation of negating under, according to the image motion characteristic present frame is carried out band and divides, present frame is divided into wherein macro block to being the violent band of releiving with motion of motion;
C. according to the results of step b present frame is carried out a frame coding or a coding,, then current band is carried out field and encode if the right motion feature of the macro block in band is violent for motion; If the right motion feature of the macro block in band is releived for motion, then current band is carried out the frame coding;
D. under the judged result of step a is sure situation, carries out band according to image content information and divide;
E. according to the results of step b the band in the present frame is carried out a frame coding and a coding respectively, select a wherein less coding mode of coding distortion cost as current band.
The present invention is through to the content detail of video and the analysis of motion feature, and every two field picture of video is divided into the similar band of content character, takes based on the adaptive frame/field encoding method of image band video to be encoded again.Owing to adopted the image adaptive band to divide, make to have more unified content characteristic in the band, have code efficiency now thereby further improved based on the adaptive frame/field encoding method of image band.
Description of drawings
Below with reference to accompanying drawings specific embodiments of the present invention is explained in more detail, in the accompanying drawings:
Fig. 1 is according to the flow chart of the adaptive frame/field encoding method based on video content adaptive band partitioning technology of the present invention.
Embodiment
Through in practical application, a frame coding and an analysis of experiments of the encoding characteristics of coding being drawn, it is less that frame encoding mode is suitable for use in amount of exercise, the big video area of spatial coherence between the adjacent row; And that coding mode is suitable for use in amount of exercise is bigger, the big video area of temporal correlation between the adjacent row.Hence one can see that, in the middle of the less video of mobility, frame encoding mode than the field coding mode more efficient; Otherwise in the middle of the bigger video of mobility, a coding mode is more efficient than frame encoding mode.In the two field picture in the middle of video, the amount of exercise of some content is big usually, and the amount of exercise of a part of content is little.
The present invention propose based on the adaptive frame/field encoding method of video content adaptive band partitioning technology moving situation according to video; The content detail characteristic; Every two field picture is divided into the similar band of motion feature, adopts again based on the adaptive frame/field encoding method of image band video is encoded.The present invention is according to the moving situation characteristic of macro block in the known strips, adopts the fast algorithm of adaptive frame/field coding, under the prerequisite that guarantees encoding compression efficient, can further reduce the operand and the complexity of encoding, and improves coding rate.
In addition, the video standard of some such as h.264 is supported the slice-group partitioning technology.Slice-group is by the macro block in the two field picture or the macro block sub-set to the whole two field picture formed, and it also is a kind of image segmentation that image is divided into slice-group.A band is macro block or the macro block right set of particular bands group inside according to the integer amount of raster scan order arrangement.Even so, but macro block that is comprised in band or macro block to arranging continuously according to raster scan order in image inside.Therefore, the employing of slice-group technology can be more flexibly be divided into several regions with a frame of image.
Owing to need to use the adaptive frame/field coding techniques, band of dividing among the present invention and slice-group zone all by macro block to forming.The adaptive frame/field encoding method based on video content adaptive band partitioning technology that the present invention proposes can be according to the moving situation of video; Content characteristic etc.; More every two field picture is divided into similar slice-group zone; Be several strips with each slice-group area dividing then, adopt again based on the adaptive frame/field encoding method of image band video is encoded that code efficiency can be significantly improved.
Fig. 1 is the flow chart according to the adaptive frame/field encoding method based on video content adaptive band partitioning technology of the present invention.
As shown in Figure 1, in step 101, judge at first whether the video data of input is first frame of video or the frame data of scene switching place.At present, video scene switches and to mainly contain following several types: the sudden change scene is switched, melts and is fade-in fade-out etc.
Switch to above-mentioned several kinds of main video scenes, can adopt various existing video scene detection methods to judge whether current frame image is in scene switching place.Existing scene change detection algorithm is divided three classes, and is based on gray value respectively and detects, detects and detect based on edge contour based on motion search.The two types of detection algorithms in back have relative preferable performance, but the high complexity of its algorithm has greatly limited their application, especially to the requirement of real-time than higher application in.Preferably, consider the requirement of computational complexity, we have selected first kind edge detection algorithm, the algorithm that promptly detects based on gray value.In concrete the application, according to selecting different scene change detection algorithm for different requirement such as real-time coding qualities.
Under the situation of the scene detection that adopts the first kind to detect based on gray value, find through the statistical analysis to video sequence: when scene was switched, present frame and its reference frame had very big difference on gray scale and color information; And when not having scene to switch, the gray scale of whole sequence and color are in steadily perhaps gradual state basically.Specifically, in scene switching place, all or part of appearance sudden change in 3 components (Y is a luminance component, and U, V are chromatic component) average.Adopt present frame and reference frame 3 component averages absolute difference as judge current frame image whether have the difference function of scene switching be Dx (F, Fp)=| mean (F, x)-mean (Fp, x) |.Wherein, mean () is a mean value function, and F and Fp represent present image and reference frame image, and x represents three component Y, U, V.According to this difference function, judged whether the scene switching
D Y(F,Fp)/mean(Y)+D U(F,Fp)/mean(U)+D V(F,Fp)/mean(V)≥t 1h
D Y(F,Fp)+D U(F,Fp)+D V(F,Fp)≥t 2h
When last two formulas satisfy simultaneously, can judge that present frame has scene to switch and takes place.In the following formula: mean (Y), mean (U) and mean (V) are respectively in the current N frame, each component mean of mean of all frames before the present frame; t 1hAnd t 2hBe decision threshold, describe the relative different and the antipode of brightness and colourity average between present frame and the reference frame respectively, and in a given empirical value scope of gray value detection method, choose.Above-mentioned algorithm only need calculate the average of three components in each two field picture, and its algorithm complex is low, is well suited in real-time demanding application.Be almost 0 through emulation experiment proof false drop rate.
After step 101 is made judgement, next adopt content-adaptive band partitioning technology that current video frame is divided.
Be first frame of video or be in scene switching place that then flow process proceeds to step 103 if judge the video data of input in step 101.
In step 103, according to image content information present frame is carried out band and divide.
The macro block that at first, will have identical content information is a slice-group to incorporating into.Because the data of video first frame lack the former frame data; And be in the video data of scene switching place because lower with the former frame correlation of data; So they are adopted the analysis of image content method such as rim detection, extract the right detail textures information of each macro block in the image, use the number of macro block centering details pixel to characterize the right detailed information of macro block; Set a certain threshold value T1, with all macro blocks in the two field picture to being divided into two types of smooth and details.If the number of macro block centering details pixel is greater than T1, then with this macro block to being included into the type of details; If the data of macro block centering details pixel are less than T1, then with this macro block to being included into smooth type.Like this, just will put in order two field picture and be divided into two slice-group, the macro block (mb) type that comprises in one of them is a details, and the right type of the macro block that comprises in another is smooth.For the ease of understanding, we can claim wherein to comprise macro block (mb) type is that the slice-group of details is the details slice-group, and claims that another is the flat band group.
Then, be divided into band with smooth with this slice-group of two types of details again, detailed process will detail hereinafter.
Not first frame of video or be not in scene switching place that then flow process proceeds to step 102 if judge the video data of input in step 101.
In step 102, according to the right moving situation information of macro block in the image present frame is carried out band and divide.
Divide in order in step 102, to carry out band, at first will obtain the right moving situation information of macro block, the i.e. right motion feature of macro block in the image according to the right motion feature of macro block.The right motion feature of macro block can obtain through following method.
The macro block that at first, will have a same movement characteristic is a slice-group to incorporating into.Consider that because The noise in the image, the offset value of the match block of static flat site also maybe be very big.Therefore, at first use macro block that half-tone information will be in smooth region to separating.Vgray is the right gray variance value of current macro, as Vgray during less than a certain threshold value T2, judges macro block to being in smooth region, and its type of sports is releived for motion; As Vgray during greater than threshold value T2; It is right to the coupling macro block in the former frame image to use the method for piece match search to obtain current macro, uses current macro to mating most macro block to the x of position, the severe side-play amount absolute value and that represent the motion that current macro is right of y coordinate figure with it.Then, for above-mentioned side-play amount absolute value with set a certain threshold value T3, can the type of sports that current macro is right be judged as the violent or motion of motion and releive.Particularly, if motion excursion amount absolute value and greater than T3, judge that then the right motion feature of current macro is violent for motion; If motion excursion amount absolute value and less than T3, then judge the right motion feature of current macro for the motion releive.Like this, just will put in order two field picture and be divided into two slice-group, the macro block (mb) type that comprises in one of them is violent for motion, and the right type of the macro block that comprises in another is releived for motion.For the ease of understanding, we can claim wherein to comprise macro block (mb) type and be the violent slice-group of motion for the violent slice-group of motion, and claim that another is the slice-group of releiving of moving.
Then, will move again violent and motion this slice-group of two types of releiving is divided into band, and detailed process will detail hereinafter.
It will be appreciated by those skilled in the art that according to the method described above macro block is actually the process that a two field picture is divided into slice-group to the process of classifying.Next, should slice-group be divided into band, so that carry out frame field coding based on band.As stated; First frame or the Frame that is in scene switching place are divided into flat band group and details slice-group; And other Frames are divided into the violent and motion of the motion slice-group of releiving; And no matter be that which kind of frame data is divided the slice-group that forms, can adopt following two kinds of methods again it to be divided into band.
On the one hand, the present invention adopts following method that one two field picture is divided into band:
1. if current macro gets into step 3 to being that first macro block in the present frame upper left corner is right; Otherwise get into step 2;
If current macro to type and last macro block to type identical (belong to together smooth or details in one type; Perhaps belong to one type that moves acutely or move in releiving together); Then they are classified as same band, otherwise with current macro to right as first macro block of new band, get into step 4
Current macro is right to first macro block as first band in the present frame 3., get into step 4
4. if current macro is then got next macro block to right as current macro to not being that last macro block in the lower right corner is right in the present frame, flow process gets into step 1, otherwise divides end for the band of present frame.
Note that in the band that finally marks off in the said process macro block in a two field picture from the upper left corner to the lower right corner according to the sequence arrangement of raster scan.
On the other hand, also can according to real needs directly with slice-group be divided into one or a plurality of bands encode.Note that if directly slice-group is divided, the macro block in the band that so finally marks off in a two field picture from the upper left corner to the lower right corner not necessarily according to the sequence arrangement of raster scan.
After present frame is divided into band, can directly carry out encoding based on the adaptive frame/field encoding method of image band.Yet, band divide finish after only to comprise a spot of macro block right owing to each band the inside in practical application, might occur, thereby can cause the decline of code efficiency.For fear of the generation of this situation, the band that needs to have divided merges.
The concrete grammar that merges band is that a parameter Qmin is set, and represents the minimum macro block that need comprise in each band to number.If using content-adaptive band partitioning technology to carry out band to the frame data in the video divides; The macro block that resultant a certain strips S comprises to number less than Qmin; Then according to similitude it is incorporated among last strips S p or the back one strips S f, said similitude is right motion feature of the macro block in the band or content information.
Judge a band needs merging according to parameter Qmin after; Can and be in the frame data of scene switching place for first frame, and not be that first frame and the true data that is not in scene switching place adopt the merging method based on similitude that is described below respectively.
So to first frame or be in the frame data of scene switching place, the concrete grammar that merges band is:
Relatively among S, Sp and the Sf each macro block to the difference of comprising of details pixel mean value, with S incorporate into the little band of current band difference in.If the difference of S, Sp and Sf is identical, then S is incorporated into and comprise macro block among Sp, the Sf in the less band of number.
For not being first frame or the frame data that are not in scene switching place, the concrete grammar that merges band is:
1. be motion during violent band as S, if the macro block of the level and smooth type that comprises among the Sp to number greater than Sf, then incorporate S into Sf, otherwise then incorporate Sp into; If the macroblock number of the level and smooth type that comprises among Sp, the Sf is identical, then the mean value of the right match block offset value of the macro block of Sp, Sf non-flat type is relatively incorporated S in the big band of deviant mean value into;
2. be motion when releiving band as S, relatively the mean value of the right match block offset value of the macro block of Sp, Sf non-flat type is incorporated S in the little band of deviant mean value into;
3. when current step 1 and step 2 can't determine the ownership of S, with S incorporate Sp into, Sf comprises macro block in the less band of number.
So far, content-adaptive band of the present invention is divided and is finished.Should be appreciated that various types of slice-group are divided into band that again or through after the bar tape merge, last results can correspondingly be referred to as: details band, flat band, and the motion band of releiving, violent band moves.
Then, in step 104, use and encode based on the adaptive frame/field encoding method of image band.
At step 104-1, so to video first frame or be in scene and switch the video data that, selects traditional adaptive frame/field encoding method:, carry out the frame coding respectively and encode for each image band based on the image band; Select a less coding mode of cost as the image band.
At step 104-2; For not being video first frame or the video data that is not in scene switching place; Utilize the moving situation information of macro block in the image band that obtains to adopt adaptive frame/field coding fast algorithm:, then to select a coding as its coding mode for the violent band of motion based on the image band; For the motion band of releiving, select the frame coding as its coding mode.
The adaptive frame/field encoding method that the present invention proposes based on video content adaptive band partitioning technology; Through for the content of video own; The abundant analysis of motion feature; Every two field picture of video is divided into the similar band of moving situation characteristic, takes again video to be encoded based on the adaptive frame/field encoding method of image band.The feasible video band that uses based on the adaptive frame/field encoding method of image band of the image adaptive band partitioning technology of our design has more unified motion feature; The advantage of adaptive frame/field encoding method can better be used, thereby higher encoding compression efficient can be obtained.In addition; Utilize the motion feature of the image band that obtains, the present invention proposes adaptive frame/field coding fast algorithm, in the encoding compression gain that guarantees to obtain based on the image band; Can also further improve speed of coding, reduce the computational complexity of coding.
Obviously, under the prerequisite that does not depart from true spirit of the present invention and scope, the present invention described here can have many variations.Therefore, the change that all it will be apparent to those skilled in the art that all should be included within the scope that these claims contain.The present invention's scope required for protection is only limited described claims.

Claims (18)

1. the adaptive frame/field encoding method based on image adaptive band partitioning technology is characterized in that comprising the following steps:
A. judge whether present frame is first frame of video or is in scene switching place;
B. the judged result of step a for the situation of negating under, according to the image motion characteristic present frame is carried out band and divides, present frame is divided into wherein macro block to being the violent band of releiving with motion of motion;
C. according to the results of step b present frame is carried out a frame coding or a coding,, then current band is carried out field and encode if the right motion feature of the macro block in band is violent for motion; If the right motion feature of the macro block in band is releived for motion, then current band is carried out the frame coding;
Said step b comprises the following steps:
B1. present frame is carried out slice-group and divide, obtain the right motion feature of macro block in the present frame, the macro block that will have the same movement characteristic is to being divided into a slice-group;
B2. according to said motion feature said slice-group is divided into band;
Said step b1 comprises the following steps:
Calculate the right gray variance value of current macro;
Releive for motion if said gray variance value, is then judged the right motion feature of current macro less than first threshold, said first threshold is for preestablishing;
If said gray variance value is greater than first threshold; Then to mate most macro block right to seeking for current macro in the former frame image; Current macro is compared mate most the right motion excursion amount of macro block and second threshold value with respect to it, judge the right motion feature of current macro according to comparative result, said second threshold value is for preestablishing; If it is violent for motion that said motion excursion amount, is then judged the right motion feature of current macro greater than second threshold value; If said motion excursion amount, is then judged the right motion feature of current macro less than second threshold value and is releived for motion.
2. according to the method for claim 1, it is characterized in that:
The right motion excursion amount that makes current macro is that current macro pair is mated the absolute value sum of the relative displacement of the right x of macro block, y position most with it, and said x, y are to the horizontal ordinate under the same coordinate system at macro block.
3. according to the method for claim 1, it is characterized in that step b2 comprises the following steps:
If b2.1. current macro gets into step b2.3 to being that first macro block in the present frame upper left corner is right; Otherwise get into step b2.2;
If the right motion feature of the motion feature that b2.2. current macro is right and last macro block is identical, then they are classified as same band, otherwise with current macro to right as first macro block of new band, get into step b2.4 then;
B2.3. current macro is right to first macro block as first band in the present frame, get into step b2.4;
If b2.4. current macro is then got next macro block to right as current macro to not being that last macro block in the present frame lower right corner is right, get into step b2.1, finish otherwise divide for the band of present frame.
4. according to the method for claim 1, it is characterized in that also comprising step:
D. under the judged result of step a is sure situation, carries out band according to image content information and divide.
5. according to the method for claim 4, it is characterized in that steps d comprises:
Extract the right detail textures information of each macro block in the present frame;
Detail textures information and a threshold value that each macro block is right compare, and wherein said threshold value is for preestablishing;
According to comparative result with all macro blocks in the present frame to being divided into two types of smooth and details, every type macro block is to being included into a slice-group;
Said slice-group directly is divided into several strips.
6. according to the method for claim 4, it is characterized in that after steps d, also comprising step:
E. the band in the present frame is carried out a frame coding and a coding respectively, select a wherein less coding mode of coding distortion cost as current band.
7. according to the method for claim 5, it is characterized in that:
The number of the details pixel that said detail textures information is macro block centering.
8. according to the method for claim 1, it is characterized in that also comprising step:
F. after step b, the band that marks off is merged,
If the macro block in band to quantity less than a threshold value; Then incorporate it into last band or back one band according to similitude; Wherein, Said threshold value is provided with in advance, represents the minimum macro block that need comprise in the band to quantity, and said similitude is right motion feature of the macro block in the band or content information.
9. according to the method for claim 4, it is characterized in that also comprising step:
F. after steps d, the band that marks off is merged,
If the macro block in band to quantity less than a threshold value; Then incorporate it into last band or back one band according to similitude; Wherein, Said threshold value is provided with in advance, represents the minimum macro block that need comprise in the band to quantity, and said similitude is right motion feature of the macro block in the band or content information.
10. according to Claim 8 or 9 method, it is characterized in that the step that merges band according to similitude comprises:
Motion feature at current band is under the violent situation of motion,
If the macro block that motion is releived in the last band greater than back one band, is then incorporated current band into back one band to number,
If the macro block that motion is releived in the last band less than back one band, is then incorporated current band into last band to number,
If the motion macro block of releiving is identical to number in last band and back one band; The right mean value that matees the right offset value of macro block most of macro block that non-motion is releived in then more last band and back one band is incorporated current band in the relatively large band of deviant mean value into;
Under the situation that the motion feature of current band is releived for motion,
The right mean value that matees the right offset value of macro block most of macro block that non-motion is releived in more last band and back one band is incorporated current band in the less relatively band of deviant mean value into;
Above-mentioned either way can't determine the ownership of current band the time, current band incorporated in last band and back one band comprise macro block in the less band of number.
11. the adaptive frame/field encoding device based on image adaptive band partitioning technology is characterized in that comprising:
Judge module is used to judge whether present frame is first frame of video or whether is in scene switching place;
Band is divided module, said judged result for the situation of negating under, according to the image motion characteristic present frame is carried out band and divides, present frame is divided into wherein macro block to being the violent band of releiving with motion of motion;
Coding module is used for according to said band results present frame being carried out a frame coding or a coding, if the right motion feature of the macro block in band is violent for motion, then current band is carried out field and encodes; If the right motion feature of the macro block in band is releived for motion, then current band is carried out the frame coding;
Said band is divided module and is comprised:
Present frame is carried out slice-group divide, obtain the right motion feature of macro block in the present frame, the macro block that will have the same movement characteristic is to being divided into the module of a slice-group;
Said slice-group is divided into the module of band according to said motion feature;
Divide for present frame being carried out slice-group, obtain the right motion feature of macro block in the present frame, the macro block that will have a same movement characteristic is specially the processing of the module that is divided into a slice-group:
Calculate the right gray variance value of current macro;
Releive for motion if said gray variance value, is then judged the right motion feature of current macro less than first threshold, said first threshold is for preestablishing;
If said gray variance value is greater than first threshold; Then to mate most macro block right to seeking for current macro in the former frame image; Current macro is compared mate most the right motion excursion amount of macro block and second threshold value with respect to it, judge the right motion feature of current macro according to comparative result, said second threshold value is for preestablishing; If it is violent for motion that said motion excursion amount, is then judged the right motion feature of current macro greater than second threshold value; If said motion excursion amount, is then judged the right motion feature of current macro less than second threshold value and is releived for motion.
12., it is characterized in that also comprising according to the equipment of claim 11:
The module that after said band is divided, the band that marks off is merged,
If the macro block in band to quantity less than a threshold value; Then incorporate it into last band or back one band according to similitude; Wherein, Said threshold value is provided with in advance, represents the minimum macro block that need comprise in the band to quantity, and said similitude is right motion feature of the macro block in the band or content information.
13. the adaptive frame/field encoding method based on image adaptive band partitioning technology is characterized in that comprising the following steps:
A. judge whether present frame is first frame of video or is in scene switching place;
B. the judged result of step a for the situation of negating under, according to the image motion characteristic present frame is carried out band and divides, present frame is divided into wherein macro block to being the violent band of releiving with motion of motion;
C. according to the results of step b present frame is carried out a frame coding or a coding,, then current band is carried out field and encode if the right motion feature of the macro block in band is violent for motion; If the right motion feature of the macro block in band is releived for motion, then current band is carried out the frame coding;
D. under the judged result of step a is sure situation, carries out band according to image content information and divide;
E. according to the results of step b the band in the present frame is carried out a frame coding and a coding respectively, select a wherein less coding mode of coding distortion cost as current band;
Said step b comprises the following steps:
B1. present frame is carried out slice-group and divide, obtain the right motion feature of macro block in the present frame, the macro block that will have the same movement characteristic is to being divided into a slice-group;
B2. according to said motion feature said slice-group is divided into band;
Said step b1 comprises the following steps:
Calculate the right gray variance value of current macro;
Releive for motion if said gray variance value, is then judged the right motion feature of current macro less than first threshold, said first threshold is for preestablishing;
If said gray variance value is greater than first threshold; Then to mate most macro block right to seeking for current macro in the former frame image; Current macro is compared mate most the right motion excursion amount of macro block and second threshold value with respect to it, judge the right motion feature of current macro according to comparative result, said second threshold value is for preestablishing; If it is violent for motion that said motion excursion amount, is then judged the right motion feature of current macro greater than second threshold value; If said motion excursion amount, is then judged the right motion feature of current macro less than second threshold value and is releived for motion.
14., it is characterized in that also comprising step according to the method for claim 13:
F. after step b or d, the band that marks off is merged.
15., it is characterized in that step f comprises according to the method for claim 14:
If the macro block in band to quantity less than a threshold value; Then incorporate it into last band or back one band according to similitude; Wherein, Said threshold value is provided with in advance, represents the minimum macro block that need comprise in the band to quantity, and said similitude is right motion feature of the macro block in the band or content information.
16. the method according to claim 13 is characterized in that:
The right motion excursion amount that makes current macro is that current macro pair is mated the absolute value sum of the relative displacement of the right x of macro block, y position most with it, and said x, y are to the horizontal ordinate under the same coordinate system at macro block.
17., it is characterized in that step b2 comprises the following steps: according to the method for claim 13
If b2.1. current macro gets into step b2.3 to being that first macro block in the present frame upper left corner is right; Otherwise get into step b2.2;
If the right motion feature of the motion feature that b2.2. current macro is right and last macro block is identical, then they are classified as same band, otherwise with current macro to right as first macro block of new band, get into step b2.4 then;
B2.3. current macro is right to first macro block as first band in the present frame, get into step b2.4;
If b2.4. current macro is then got next macro block to right as current macro to not being that last macro block in the present frame lower right corner is right, get into step b2.1, finish otherwise divide for the band of present frame.
18., it is characterized in that steps d comprises according to the method for claim 13:
Extract the right detail textures information of each macro block in the present frame;
Detail textures information and a threshold value that each macro block is right compare, and wherein said threshold value is for preestablishing;
According to comparative result with all macro blocks in the present frame to being divided into two types of smooth and details, every type macro block is to being included into a slice-group;
Said slice-group directly is divided into several strips.
CN 200810226586 2008-11-14 2008-11-14 Image adaptive strip division-based adaptive frame/field encoding method and device Active CN101742295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810226586 CN101742295B (en) 2008-11-14 2008-11-14 Image adaptive strip division-based adaptive frame/field encoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810226586 CN101742295B (en) 2008-11-14 2008-11-14 Image adaptive strip division-based adaptive frame/field encoding method and device

Publications (2)

Publication Number Publication Date
CN101742295A CN101742295A (en) 2010-06-16
CN101742295B true CN101742295B (en) 2012-11-28

Family

ID=42465075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810226586 Active CN101742295B (en) 2008-11-14 2008-11-14 Image adaptive strip division-based adaptive frame/field encoding method and device

Country Status (1)

Country Link
CN (1) CN101742295B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595123B (en) * 2011-01-14 2014-06-04 华为技术有限公司 Stripe coding method and device thereof as well as stripe decoding method and device thereof
CN103152580B (en) * 2013-03-15 2016-04-13 浙江大学 A kind of fault-tolerant coding method based on frame field adaptive
CN104113754B (en) * 2014-07-17 2017-02-15 四川大学 Method for high-performance video interframe coding based on time domain relevance and transcoder thereof
CN110996127B (en) * 2019-11-25 2022-12-09 西安万像电子科技有限公司 Image encoding and decoding method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738431A (en) * 2005-09-08 2006-02-22 上海广电(集团)有限公司中央研究院 Frame field self-adaptive detection method
CN1870748A (en) * 2005-04-27 2006-11-29 王云川 Internet protocol TV.
CN1925616A (en) * 2006-09-14 2007-03-07 清华大学 Macro block pair class frame field adaptive coding/decoding method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870748A (en) * 2005-04-27 2006-11-29 王云川 Internet protocol TV.
CN1738431A (en) * 2005-09-08 2006-02-22 上海广电(集团)有限公司中央研究院 Frame field self-adaptive detection method
CN1925616A (en) * 2006-09-14 2007-03-07 清华大学 Macro block pair class frame field adaptive coding/decoding method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Thomas Wiegnad.Overview of H264/AVC Video Coding Standard.《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIEDO TECHNOLOGY》.2003,正文第565页右栏最后一段至第566页左栏第2段,第566页右栏倒数第二段至第568页第左栏第3段. *
朱红.基于视觉感知片组的多描述视频编码.《计算机学报》.2007,正文第864页左栏第22行至右栏第5行. *

Also Published As

Publication number Publication date
CN101742295A (en) 2010-06-16

Similar Documents

Publication Publication Date Title
CN110087087B (en) VVC inter-frame coding unit prediction mode early decision and block division early termination method
US5751378A (en) Scene change detector for digital video
CN101379830B (en) Derivation of frame/field encoding mode for a pair of video macroblocks
CN106134191B (en) For the processing of low latency luminance compensation and the method for the coding based on depth look-up table
CN111355956B (en) Deep learning-based rate distortion optimization rapid decision system and method in HEVC intra-frame coding
CN103618900B (en) Video area-of-interest exacting method based on coding information
CN107534767A (en) For handling the method and its device of vision signal
TWI538487B (en) Method and system of coding prediction for screen video
CN105324996A (en) Method and apparatus of inter-view candidate derivation for three-dimensional video coding
CN100428801C (en) Switching detection method of video scene
CN101742295B (en) Image adaptive strip division-based adaptive frame/field encoding method and device
CN104798375A (en) Method and apparatus of constrained disparity vector derivation in 3d video coding
CN108833925B (en) Inter-frame prediction method based on deep neural network
US9838712B2 (en) Method of signaling for depth-based block partitioning
CN104602028A (en) Entire frame loss error concealment method for B frame of stereoscopic video
US20170257631A1 (en) Block size determining method and program recording medium
CN106878754B (en) A kind of 3D video depth image method for choosing frame inner forecast mode
CN105637869A (en) A method for determining a corner video part of a partition of a video coding block
CN109547798B (en) Rapid HEVC inter-frame mode selection method
KR100816013B1 (en) Apparatus and method for detecting scene change from compressed moving picture
CN104618725A (en) Multi-view video coding algorithm combining quick search and mode optimization
CN114885172A (en) Fast coding unit dividing method for H.266/VVC intra-frame prediction coding
CN101977317B (en) Intra-frame prediction method and device
CN104935921A (en) A method and device for transmitting one or more encoding modes selected from a mode group
CN111246218B (en) CU segmentation prediction and mode decision texture coding method based on JND model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171221

Address after: 100083 Haidian District, Xueyuan Road, No. 35, the world building, the second floor of the building on the ground floor, No. 16

Co-patentee after: Vimicro Electronics Co., Ltd.

Patentee after: Zhongxing Technology Co., Ltd.

Address before: 100083 Haidian District, Xueyuan Road, No. 35, the world building, the second floor of the building on the ground floor, No. 16

Co-patentee before: Vimicro Electronics Co., Ltd.

Patentee before: Beijing Vimicro Corporation

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100083 Haidian District, Xueyuan Road, No. 35, the world building, the second floor of the building on the ground floor, No. 16

Co-patentee after: Vimicro Electronics Co., Ltd.

Patentee after: Mid Star Technology Limited by Share Ltd

Address before: 100083 Haidian District, Xueyuan Road, No. 35, the world building, the second floor of the building on the ground floor, No. 16

Co-patentee before: Vimicro Electronics Co., Ltd.

Patentee before: Zhongxing Technology Co., Ltd.