CN105163117A - Image coding and processing methods and devices - Google Patents

Image coding and processing methods and devices Download PDF

Info

Publication number
CN105163117A
CN105163117A CN201510532058.5A CN201510532058A CN105163117A CN 105163117 A CN105163117 A CN 105163117A CN 201510532058 A CN201510532058 A CN 201510532058A CN 105163117 A CN105163117 A CN 105163117A
Authority
CN
China
Prior art keywords
frame
macro block
predictive coding
intraframe predictive
coding macro
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510532058.5A
Other languages
Chinese (zh)
Other versions
CN105163117B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510532058.5A priority Critical patent/CN105163117B/en
Publication of CN105163117A publication Critical patent/CN105163117A/en
Application granted granted Critical
Publication of CN105163117B publication Critical patent/CN105163117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses image coding and processing methods and devices. The image coding method comprises a step that at least two P frames comprising intra-frame predictive encoding macro blocks in a group of pictures are encoded in sequence, so that the intra-frame predictive encoding macro blocks of the at least two encoded P frames cover a complete frame image by rows. By utilizing the methods and the devices, a large impact on wireless channel transmission can be avoided, and meanwhile, when a transmission error or frame loss occurs, the whole image can return to normal through utilizing the intra-frame predictive encoding macro blocks by continuous multiple frames.

Description

A kind of Image Coding, processing method and device
Technical field
The present invention relates to technical field of video processing, particularly relate in coded video sequence about the Image Coding of P frame, processing method and device.
Background technology
Along with popularizing of mobile Internet 3G, 4G and WIFI, more and more Video coding product starts coded video bitstream to be flowed through radio channel transmission and program request, preview and playback on mobile device or program request platform.The feature of wireless channel is that bandwidth is smaller, network fluctuation is larger, network packet loss rate is higher, now how to solve the smooth playing of carrying out video on unstable, band-limited wireless network, is a problem in the urgent need to address.
Because code error rate of wireless channel is general higher, current Video Coding Scheme is all generally the mode adopting GOP (groupofpicture), by video sequence block encoding, the group of a GOP=N comprises an every IDR frame and N-1 P frame, as shown in Figure 1.The effect of regular insertion every IDR frame is: when error code and frame losing occur in video code flow transmission, can recovery in interval at a fixed time.
Because every IDR frame can not use inter prediction encoding, compression performance has obvious gap compared with P frame, and the size of every IDR frame all can be larger than P frame under normal circumstances, in static and details than under more rich scene, and the size of ISR frame or even tens times of P frame.In wireless channel, the bit number rising of every IDR frame can cause the moment of channel to block up, and cause the error rate to rise and Internet Transmission time delay increase, Consumer's Experience is deteriorated.
In prior art, usually solving the problem by the following two kinds of programs: scheme one, by regulating every IDR frame quantization parameter, increasing quantization step, the coding quality reducing every IDR frame meets the requirement of channel; Scheme two, increases buffering area at network transmitting terminal, increases every IDR frame network transmitting time, reduces the temporary impact to network by the method increasing network delay.
But, above-described two schemes has following shortcoming: scheme one, under same sequence, the picture quality of every IDR frame can be starkly lower than the picture quality of P frame, cause I frame fuzzyyer, P frame is relatively clear, brings cell breath, and for complicated static scene, only can play the effect of alleviation, every IDR frame still can be larger.Scheme two, network delay increases, and transmitting terminal and rx-side buffering district all will increase, and increases internal memory and uses.
Summary of the invention
In view of this, the invention provides a kind of Image Coding, processing method and device, to solve the technical problem of carrying out the smooth playing of video in prior art on instability, band-limited wireless network.
For solving the problem, the application's first aspect provides a kind of method for encoding images, the method comprises: the P frame at least two in a picture group GOP being comprised to intraframe predictive coding macro block is encoded successively, makes the intraframe predictive coding macro block line number of these at least two P frames through coding cover a complete two field picture.
In conjunction with first aspect, in the implementation that the first is possible, these at least two P frames comprise a P frame and the 2nd P frame, and the step that this P frame comprising intraframe predictive coding macro block at least two in a picture group GOP is encoded successively comprises: encode to the P frame in a picture group GOP.Wherein, any frame in this GOP comprises the capable macro block of L, and a P frame comprises the capable intraframe predictive coding macro block of a, and L is positive integer, 0<a<L.The 2nd P frame in this GOP is encoded.Wherein, 2nd P frame or centre adjacent with a P frame at least only comprises the P frame of inter prediction encoding macro block in one, interval, 2nd P frame comprises the capable intraframe predictive coding macro block of b, and the b capable intraframe predictive coding macro block that a capable intraframe predictive coding macro block that a P frame comprises and the 2nd P frame comprise exists the macro block of identical line order number.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, a capable intraframe predictive coding macro block many m that the b capable intraframe predictive coding macro block that the 2nd P frame comprises comprises than a P frame are capable, and m is natural number.
In conjunction with the implementation that the first or the second of first aspect are possible, in the implementation that the third is possible, the number of macroblocks N of the identical line order of b capable intraframe predictive coding macro block that a capable intraframe predictive coding macro block and the 2nd P frame that a P frame comprises comprise number meets following relation: N × X >=G.Wherein, X is the basic coding cell height of encoder, and G is the maximum perpendicular hunting zone of encoder searches window, and N, X, G are natural number.
In conjunction with the implementation that the first or the second of first aspect are possible, in the 4th kind of possible implementation, the step that the 2nd P frame in this GOP is encoded is comprised: it is capable of the first row of the intraframe predictive coding macro block determining the 2nd P frame that the first row of a capable intraframe predictive coding macro block comprised by a P frame moves down y.Wherein, 0<y<L-a.And determine the capable intraframe predictive coding macro block of the b of the 2nd P frame, to encode to the 2nd P frame.
In conjunction with the implementation that the first or the second of first aspect are possible, in the 5th kind of possible implementation, the step that the 2nd P frame in this GOP is encoded is comprised: last column of a capable intraframe predictive coding macro block comprised by P frame z that moves up is capable of the last column determining the 2nd P frame intraframe predictive coding macro block.Wherein, 0<z<L-a.And determine the capable intraframe predictive coding macro block of the b of the 2nd P frame, to encode to the 2nd P frame.
For solving the problem, the application's second aspect provides a kind of picture coding device, this device comprises: coding module, P frame for comprising intraframe predictive coding macro block at least two in a picture group GOP is encoded successively, makes the intraframe predictive coding macro block line number of these at least two P frames through coding cover a complete two field picture.
In conjunction with second aspect, in the implementation that the first is possible, these at least two P frames comprise a P frame and the 2nd P frame, and this coding module comprises: the first encoding submodule, for encoding to the P frame in a picture group GOP.Wherein, any frame in this GOP comprises the capable macro block of L, and a P frame comprises the capable intraframe predictive coding macro block of a, and L is positive integer, and 0<a<L.Second encoding submodule, encodes to the 2nd P frame in this GOP.Wherein, 2nd P frame or centre adjacent with a P frame at least only comprises the P frame of inter prediction encoding macro block in one, interval, 2nd P frame comprises the capable intraframe predictive coding macro block of b, and the b capable intraframe predictive coding macro block that a capable intraframe predictive coding macro block that a P frame comprises and the 2nd P frame comprise exists the macro block of identical line order number.
In conjunction with in the first possible implementation of second aspect, in the implementation that the second is possible, it is capable of the first row of the intraframe predictive coding macro block determining the 2nd P frame that this second encoding submodule also moves down y for the first row of a capable intraframe predictive coding macro block comprised by a P frame, and determine the capable intraframe predictive coding macro block of the b of the 2nd P frame, to encode to the 2nd P frame.Wherein, 0<y<L-a.
In conjunction with the first possible implementation of second aspect, in the implementation that the third is possible, this second encoding submodule is also capable with the last column determining the 2nd P frame intraframe predictive coding macro block and determine the capable intraframe predictive coding macro block of the b of the 2nd P frame, to encode to the 2nd P frame for last column of a capable intraframe predictive coding macro block comprised by P frame z that moves up.Wherein, 0<z<L-a.
In above scheme, encoded successively by the P frame comprising intraframe predictive coding macro block at least two in GOP, make the line number of intraframe predictive coding macro block through at least two P frames of coding cover a complete two field picture, thus complete the Image Coding of a GOP.In P frame, carry out intraframe predictive coding, because the macro block line number of every frame refreshing can control, make the size of P frame may be limited to smaller scope and can not bring and impact greatly wireless channel transmission.Simultaneously, because intraframe predictive coding macro block does not need reference frame just can decode, therefore when there is mistake or frame losing in bit stream process, intraframe predictive coding macro block can make the Postprocessing technique of corresponding region normal, and is further advanced by the some frames of continuous print and uses intraframe predictive coding to make Postprocessing technique normal.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method for encoding images in first embodiment of the invention;
Fig. 2 is the schematic flow sheet of method for encoding images in second embodiment of the invention;
Fig. 3 is to the schematic flow sheet that the 2nd P frame in GOP is encoded in first embodiment of the invention;
Fig. 4 utilizes method for encoding images of the present invention to the schematic diagram of each P frame coding in GOP;
Fig. 5 is the structural representation of P0 frame of the present invention and P1 frame;
Fig. 6 is to the schematic flow sheet that the 2nd P frame in GOP is encoded in second embodiment of the invention;
Fig. 7 is the structural representation of picture coding device in first embodiment of the invention;
Fig. 8 is the structural representation of coding module in the picture coding device of embodiment of the present invention.
Embodiment
Below to involved in the present invention to technical term make an explanation.
P frame: when for continuous moving picture encoding, continuous some width images are divided into P, B, I three types, P frame is predicted by the P frame before it or I frame, and it compares and P frame before it or the identical information between I frame or data, also namely considers that the characteristic of motion carries out interframe compression.
I frame: intracoded frame is a kind of independent frame carrying full detail, without the need to just can independently decode with reference to other image, first frame in video sequence is all I frame all the time.
Every IDR frame: InstantaneousDecodingRefresh, instantaneous decoding refresh.In Code And Decode conveniently, first I frame and other I frames to differentiate, so first I frame is called every IDR frame, facilitate control coding and decoding process.The effect of every IDR frame refreshes at once, makes wrong unlikely propagation, again calculates a new sequence and start coding from every IDR frame.Every IDR frame has the ability of random access, and DPB (DecodedPictureBuffer, reference frame lists) also can be caused to empty.All frames after every IDR frame all can not quote the content of the frame before any every IDR frame, and from random-access video flowing, player can be play, because the frame before quoting without any frame after it from an every IDR frame forever.But, can have to play from arbitrfary point in the video of every IDR frame, because frame below always can quote frame above at one.
Inter prediction encoding: the correlation utilizing video image interframe, i.e. temporal correlation, reaches the object of image compression, is widely used in the compressed encoding of common TV, video conferencing, visual telephone, high definition TV.The temporal image sequence that live image is made up of the successive image frame with frame period being interval the time, it is in time than spatially having larger correlation.Between most of television image consecutive frame, variations in detail is very little, and namely video image interframe has very strong correlation, and the feature of the correlation utilizing frame to have carries out interframe encode, can obtain the compression ratio more much higher than intraframe coding.For rest image or the very slow image of activity, can pass some frames less, as every frame transmission, the frame do not transmitted, utilizes the data of former frame in the frame memory of receiving terminal as these frame data, does not have anything to affect on vision.
Intraframe predictive coding: a kind of new technology H.264 adopted, can use infra-frame prediction when coding Intra image.For each 4 × 4 pieces (except edge block is disposed especially), each pixel can be predicted with the different weights of 17 immediate previously encoded pixels and (weights had can be 0), i.e. 17 pixels in the upper left corner of this pixel place block.Obviously, this infra-frame prediction is not in time, but the predictive coding algorithm carried out in spatial domain, the spatial redundancies between adjacent block can be removed, obtain more efficiently compression.
Macro block: Macroblock is a basic conception in video coding technique.In Video coding, a coded image is divided into some macro blocks composition usually, and a macro block is made up of a luminance pixel block and two additional chroma pixel blocks.In general, luminance block is the block of pixels of 16 × 16 sizes, and the size of two colourity block of image pixels is determined according to the sample format of its image.In each image, some macro blocks are arranged form in blocks, and video coding algorithm is in units of macro block, and macro block is encoded one by one, are organized into continuous print video code flow.
Below in conjunction with accompanying drawing, embodiment of the present invention is described in detail.
Refer to Fig. 1, be the schematic flow sheet of method for encoding images first execution mode of the present invention, the method for encoding images of present embodiment includes but not limited to following steps.
Step S10, the P frame at least two in a picture group GOP being comprised to intraframe predictive coding macro block is encoded successively, makes the intraframe predictive coding macro block line number of at least two P frames through coding cover a complete two field picture.
In the present embodiment, the first frame in this GOP is encoded to instantaneous decoding refresh every IDR frame.In step slo, when initiating program request, the first frame in GOP is encoded to every IDR frame by encoder, and all frames afterwards are all encoded to P frame.Every IDR frame can use normal original image to encode, and also can select a virtual image coding, such as, can use entirely black Image Coding.
First frame adopts every IDR frame coding, is the compatibility in order to display end of decoding.The picture quality of this frame itself does not have anything to affect on netcast.
Further, these at least two P frames comprise a P frame and the 2nd P frame, refer to Fig. 2, and the P frame comprising intraframe predictive coding macro block at least two in a picture group GOP is encoded successively and to be realized especially by following steps:
Step S20, encodes to the P frame in a picture group GOP.Wherein, any frame in this GOP comprises the capable macro block of L, and a P frame comprises the capable intraframe predictive coding macro block of a, and L is positive integer, and 0<a<L.
Particularly, each P frame in a GOP includes the capable macro block of L, a behavior intraframe predictive coding macro block wherein, L-a behavior inter prediction encoding macro block.
Step S21, encodes to the 2nd P frame in this GOP.
Wherein, the 2nd P frame or centre adjacent with a P frame at least only comprises the P frame of inter prediction encoding macro block in one, interval.And, 2nd P frame comprises the capable intraframe predictive coding macro block of b, there is the macro block of identical line order number in the b capable intraframe predictive coding macro block that a capable intraframe predictive coding macro block and the 2nd P frame that the one P frame comprises comprise, 0<b<L.
Further, a capable intraframe predictive coding macro block many m that the b capable intraframe predictive coding macro block that the 2nd P frame comprises comprises than a P frame are capable, and m is natural number.
The number of macroblocks N of the identical line order of b capable intraframe predictive coding macro block that a capable intraframe predictive coding macro block and the 2nd P frame that the one P frame comprises comprise number meets following relation:
N×X≥G;
Wherein, X is the basic coding cell height of encoder, and G is the maximum perpendicular hunting zone of encoder searches window, and N, X, G are natural number.
Parameter a can regulate according to the needs of transmission channel, and the value of a is larger, and the speed of intraframe predictive coding is faster, and the P frame maximum number bits containing intraframe predictive coding macro block is larger.
Refer to Fig. 3, in one embodiment, the 2nd P frame in this GOP encoded and to realize especially by following steps:
Step S30, it is capable of the first row of the intraframe predictive coding macro block determining the 2nd P frame that the first row of a capable intraframe predictive coding macro block comprised by a P frame moves down y.Wherein, 0<y<L-a.
Step S31, determines the b capable frame predictive coding macro block of the 2nd P frame, to encode to the 2nd P frame.
Please refer to Fig. 4, to comprise several P frames in a GOP, present embodiment is described below.Particularly, several P frames comprised in a GOP are numbered, are labeled as P0, P1, P2 respectively ... Pk, k are natural number.A P frame as above can be first P frame in several P frames of comprising of GOP, that is, P0 frame, but also can be the P frame be positioned on other positions.2nd P frame as above can be positioned at the P1 frame on a P frame adjacent position, also can be to be positioned at and P frame on one or more position only including inter prediction encoding macro block P frame, a P frame (P0 frame) interval.
In the present embodiment, a capable intraframe predictive coding macro block many m that the b capable intraframe predictive coding macro block that the 2nd P frame (P1 frame) comprises comprises than a P frame (P0 frame) are capable, and m is natural number.Further, the first row of a capable intraframe predictive coding macro block that the first behavior the one P frame of the b capable intraframe predictive coding macro block that the 2nd P frame comprises comprises move down y capable after obtain, y is natural number.That is, when encoding to the intra-frame macro block of P frame, top-down mode is taked to encode.
Please refer to Fig. 5, particularly, for P0 frame and P1 frame, the dash area of each frame represents intraframe predictive coding macro block, and the blank parts of each frame then represents inter prediction encoding macro block.The intraframe predictive coding macro block of P0 frame is that the 0th to walk to a-1 capable, and a walks to L-1 behavior inter prediction encoding macro block.The 0th of P1 frame walks to (y-2) behavior inter prediction encoding macro block, and y-1 walks to (b+y-2) behavior intraframe predictive coding macro block, and (b+y-1) walks to (L-1) behavior inter prediction encoding macro block.Wherein, the line order that (y-1) that P1 frame comprises walks to intraframe predictive coding macro block of (N+y-2) row and intraframe predictive coding macro block that P0 frame comprises is number identical, that is, there is the line order of the line order of the capable macro block of N number and the intraframe predictive coding macro block that P0 frame comprises number identical in the b capable intraframe predictive coding macro block that P1 frame comprises.
The rest may be inferred, continue to encode according to the method described above for comprising several P frames in this GOP: line number amount many m of the intraframe predictive coding macro block that the row number ratio P1 frame of the intraframe predictive coding macro block that P2 frame comprises comprises are capable, and the line order of P2 frame and the capable macro block of P1 frame N is wherein number identical.Until, last column that last column of the intraframe predictive coding macro block that Pi frame comprises is the capable macro block of its L comprised, now show that several the P frames comprising intraframe predictive coding macro block existed in this GOP complete coding, thus make the line number of whole intraframe predictive coding macro blocks cover a complete two field picture.Wherein, i is natural number, and 0<i≤k.
Refer to Fig. 6, in another embodiment, the 2nd P frame in this GOP encoded and to realize especially by following steps:
Step S40, last column of a capable intraframe predictive coding macro block comprised by P frame z that moves up is capable of the last column of the intraframe predictive coding macro block determining the 2nd P frame.Wherein, 0<z<L-a.
Step S41, determines the capable intraframe predictive coding macro block of the b of the 2nd P frame, to encode to the 2nd P frame.
In the present embodiment, last column of a capable intraframe predictive coding macro block that last column of b capable intraframe predictive coding macro block that the 2nd P frame comprises comprises for a P frame move up z capable after obtain.That is, when encoding to the intra-frame macro block of P frame, mode is from bottom to top taked to encode.Coding principle and top-down coding principle as above similar, do not add at this and repeat.
Coded system as described above, when encoding to the intra-frame macro block of P frame, the intraframe predictive coding macro block of a rear P frame is all capable than intraframe predictive coding macro block many m of last P frame.In another embodiment, when encoding to the intra-frame macro block of several P frames in GOP, the line number amount that can also set the intraframe predictive coding macro block of each P frame is identical.Or, the line number amount that the intraframe predictive coding macro block of a rear P frame has more than the intraframe predictive coding macro block of last P frame is different from each other, such as, the intraframe predictive coding macro block of P1 frame is more capable than intraframe predictive coding macro block many m of P0 frame, the intraframe predictive coding macro block of P2 frame is more capable than intraframe predictive coding macro block many n of P1 frame, wherein, m ≠ n.Therefore, when the intra-frame macro block of P frame is encoded, the present invention's execution mode as above is not limited in the mode of choosing of the intraframe predictive coding macro block of P frame.
Similarly, when carrying out coded treatment to one section of image, this section of image comprises several GOP, encodes as above to each GOP, to complete the coding of this section of image.
Method for encoding images as above, encoded successively by the P frame comprising intraframe predictive coding macro block at least two in GOP, make the line number of intraframe predictive coding macro block through at least two P frames of coding cover a complete two field picture, thus complete the Image Coding of a GOP.In P frame, carry out intraframe predictive coding, because the macro block line number of every frame refreshing can control, make the size of P frame may be limited to smaller scope and can not bring and impact greatly wireless channel transmission.Simultaneously, because intraframe predictive coding macro block does not need reference frame just can decode, therefore when there is mistake or frame losing in bit stream process, intraframe predictive coding macro block can make the Postprocessing technique of corresponding region normal, and is further advanced by the some frames of continuous print and uses intraframe predictive coding to make Postprocessing technique normal.
Further, when needing to show the image through encoding as mentioned above, receiving and preserving the every IDR frame through coding in a GOP.Wherein, this every IDR frame is encode to the first frame in this picture to obtain.Particularly, when program request receiving terminal receives first every IDR frame, need every IDR frame to preserve separately.Then, the P frame through coding in this GOP is received.Wherein, the line number that the P frame of this process coding comprises whole intraframe predictive coding macro blocks of the P frame of intraframe predictive coding macro block covers a complete two field picture, and it is number identical to comprise the intraframe predictive coding macro block that the rear P frame in the P frame of intraframe predictive coding macro block comprises and at least part of line order of intraframe predictive coding macro block that last P frame comprises.Further, the image playing GOP is decoded to the every IDR frame received and P frame.
When program request end needs video recording or preserves code stream, first store every IDR frame, from the initial P frame of next GOP, store P frame in order more afterwards, and form a file.
When program request end needs playback to record a video, first from file, obtain every IDR frame, and every IDR frame is preserved separately.Then every IDR frame and follow-up P frame are carried out decoding and showing in order.When player need from the middle of file sometime play time, first find the position of the initial P frame of that moment place GOP, then the P frame code stream that every IDR frame and this position start carried out decoding and showing in order.
Refer to Fig. 7, be the structural representation of picture coding device first execution mode of the present invention, the picture coding device of present embodiment includes but not limited to coding module 51.
This coding module 51 is encoded successively for the P frame at least two in a picture group GOP being comprised to intraframe predictive coding macro block, makes the intraframe predictive coding macro block line number of at least two P frames through coding cover a complete two field picture.
Refer to Fig. 8, further, these at least two P frames comprise a P frame and the 2nd P frame.This coding module 51 comprises the first encoding submodule 510 and the second encoding submodule 511.
This first encoding submodule 510 is for encoding to the P frame in GOP.Wherein, any frame in this GOP comprises the capable macro block of L, and a P frame comprises the capable intraframe predictive coding macro block of a, and L is positive integer, and 0<a<L.Particularly, each P frame in a GOP includes the capable macro block of L, a behavior intraframe predictive coding macro block wherein, L-a behavior inter prediction encoding macro block.
This second encoding submodule 511 is for encoding to the 2nd P frame in this GOP.Wherein, the 2nd P frame or centre adjacent with a P frame at least only comprises the P frame of inter prediction encoding macro block in one, interval.And, 2nd P frame comprises the capable intraframe predictive coding macro block of b, there is the macro block of identical line order number in the b capable intraframe predictive coding macro block that a capable intraframe predictive coding macro block and the 2nd P frame that the one P frame comprises comprise, 0<b<L.
Further, a capable intraframe predictive coding macro block many m that the b capable intraframe predictive coding macro block that the 2nd P frame comprises comprises than a P frame are capable, and m is natural number.
The number of macroblocks N of the identical line order of b capable intraframe predictive coding macro block that a capable intraframe predictive coding macro block and the 2nd P frame that the one P frame comprises comprise number meets following relation:
N×X≥G;
Wherein, X is the basic coding cell height of encoder, and G is the maximum perpendicular hunting zone of encoder searches window, and N, X, G are natural number.
In one embodiment, it is capable of the first row of the intraframe predictive coding macro block determining the 2nd P frame that this second encoding submodule 511 also moves down y for the first row of a capable intraframe predictive coding macro block comprised by a P frame, and determine the b capable frame predictive coding macro block of the 2nd P frame, to encode to the 2nd P frame.Wherein, 0<y<L-a.
The first row of a capable intraframe predictive coding macro block that the one P frame is comprised by this second encoding submodule 511 by the first row of the b capable intraframe predictive coding macro block that the 2nd P frame comprises move down y capable after obtain.That is, when the intra-frame macro block of this second encoding submodule 511 pairs of P frames is encoded, top-down mode is taked to encode.
In another embodiment, this second encoding submodule 511 is also capable of the last column of the intraframe predictive coding macro block determining the 2nd P frame for last column of a capable intraframe predictive coding macro block comprised by P frame z that moves up, and determine the capable intraframe predictive coding macro block of the b of the 2nd P frame, to encode to the 2nd P frame.Wherein, 0<z<L-a.
Last column of a capable intraframe predictive coding macro block that one P frame is comprised by this second encoding submodule 511 by last column of the b capable intraframe predictive coding macro block that the 2nd P frame comprises move up z capable after obtain.That is, when the intra-frame macro block of this second encoding submodule 511 pairs of P frames is encoded, mode is from bottom to top taked to encode.
Similarly, when carrying out coded treatment to one section of image, this section of image comprises several GOP, encodes as above to each GOP, to complete the coding of this section of image.
Method for encoding images as above and device, encoded successively by the P frame comprising intraframe predictive coding macro block at least two in GOP, make the line number of intraframe predictive coding macro block through at least two P frames of coding cover a complete two field picture, thus complete the Image Coding of a GOP.In P frame, carry out intraframe predictive coding, because the macro block line number of every frame refreshing can control, make the size of P frame may be limited to smaller scope and can not bring and impact greatly wireless channel transmission.Simultaneously, because intraframe predictive coding macro block does not need reference frame just can decode, therefore when there is mistake or frame losing in bit stream process, intraframe predictive coding macro block can make the Postprocessing technique of corresponding region normal, and is further advanced by the some frames of continuous print and uses intraframe predictive coding to make Postprocessing technique normal.
In several execution mode provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiments described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, it can be by some interfaces that shown or discussed coupling each other or direct-coupling or communication connect, and the indirect coupling of device or unit or communication connect, and can be electrical, machinery or other form.
The foregoing is only embodiments of the present invention; not thereby limit the scope of the invention; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a method for encoding images, is characterized in that, described method comprises:
The P frame that in a picture group GOP at least two comprise intraframe predictive coding macro block is encoded successively, makes to cover a complete two field picture through the intraframe predictive coding macro block line number of at least two P frames described in coding.
2. method for encoding images according to claim 1, it is characterized in that, described at least two P frames comprise a P frame and the 2nd P frame, and the step that the described P frame comprising intraframe predictive coding macro block at least two in a picture group GOP is encoded successively comprises:
A P frame in a picture group GOP is encoded; Wherein, any frame in described GOP comprises the capable macro block of L, and a described P frame comprises the capable intraframe predictive coding macro block of a, and L is positive integer, 0<a<L;
The 2nd P frame in described GOP is encoded; Wherein, described 2nd P frame or centre adjacent with a described P frame at least only comprises the P frame of inter prediction encoding macro block in one, interval, described 2nd P frame comprises the capable intraframe predictive coding macro block of b, there is the macro block of identical line order number in a capable intraframe predictive coding macro block that a described P frame comprises and the b capable intraframe predictive coding macro block that described 2nd P frame comprises, 0<b<L.
3. method for encoding images according to claim 2, is characterized in that, a capable intraframe predictive coding macro block many m that the b capable intraframe predictive coding macro block that described 2nd P frame comprises comprises than a described P frame are capable, and m is natural number.
4. the method for encoding images according to Claims 2 or 3, is characterized in that, the number of macroblocks N of the identical line order of b capable intraframe predictive coding macro block that a capable intraframe predictive coding macro block that a described P frame comprises and described 2nd P frame comprise number meets following relation:
N×X≥G;
Wherein, X is the basic coding cell height of encoder, and G is the maximum perpendicular hunting zone of encoder searches window, and N, X, G are natural number.
5. the method for encoding images according to Claims 2 or 3, is characterized in that, comprises the step that the 2nd P frame in described GOP is encoded:
It is capable of the first row of the intraframe predictive coding macro block determining described 2nd P frame that the first row of a capable intraframe predictive coding macro block comprised by a described P frame moves down y; Wherein, 0<y<L-a; And
Determine the capable intraframe predictive coding macro block of b of described 2nd P frame, to encode to described 2nd P frame.
6. the method for encoding images according to Claims 2 or 3, is characterized in that, comprises the step that the 2nd P frame in described GOP is encoded:
Last column of a capable intraframe predictive coding macro block comprised by described P frame z that moves up is capable of the last column determining described 2nd P frame intraframe predictive coding macro block; Wherein, 0<z<L-a; And
Determine the capable intraframe predictive coding macro block of b of described 2nd P frame, to encode to described 2nd P frame.
7. a picture coding device, is characterized in that, described device comprises:
Coding module, encodes successively for the P frame at least two in a picture group GOP being comprised to intraframe predictive coding macro block, makes to cover a complete two field picture through the intraframe predictive coding macro block line number of at least two P frames described in coding.
8. picture coding device according to claim 7, is characterized in that, described at least two P frames comprise a P frame and the 2nd P frame, and described coding module comprises:
First encoding submodule, for encoding to the P frame in a picture group GOP; Wherein, any frame in described GOP comprises the capable macro block of L, and a described P frame comprises the capable intraframe predictive coding macro block of a, and L is positive integer, and 0<a<L;
Second encoding submodule, encodes to the 2nd P frame in described GOP; Wherein, described 2nd P frame or centre adjacent with a described P frame at least only comprises the P frame of inter prediction encoding macro block in one, interval, described 2nd P frame comprises the capable intraframe predictive coding macro block of b, and a capable intraframe predictive coding macro block that a described P frame comprises and the b capable intraframe predictive coding macro block that described 2nd P frame comprises exist the macro block of identical line order number.
9. picture coding device according to claim 8, it is characterized in that, it is capable of the first row of the intraframe predictive coding macro block determining described 2nd P frame that described second encoding submodule also moves down y for the first row of a capable intraframe predictive coding macro block comprised by a described P frame, and determine the capable intraframe predictive coding macro block of b of described 2nd P frame, to encode to described 2nd P frame; Wherein, 0<y<L-a.
10. picture coding device according to claim 8, it is characterized in that, described second encoding submodule is also capable of to determine last column of described 2nd P frame intraframe predictive coding macro block and to determine the capable intraframe predictive coding macro block of b of described 2nd P frame, to encode to described 2nd P frame for last column of a capable intraframe predictive coding macro block comprised by described P frame z that moves up; Wherein, 0<z<L-a.
CN201510532058.5A 2015-08-26 2015-08-26 A kind of image encoding method and device Active CN105163117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510532058.5A CN105163117B (en) 2015-08-26 2015-08-26 A kind of image encoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510532058.5A CN105163117B (en) 2015-08-26 2015-08-26 A kind of image encoding method and device

Publications (2)

Publication Number Publication Date
CN105163117A true CN105163117A (en) 2015-12-16
CN105163117B CN105163117B (en) 2019-08-16

Family

ID=54803858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510532058.5A Active CN105163117B (en) 2015-08-26 2015-08-26 A kind of image encoding method and device

Country Status (1)

Country Link
CN (1) CN105163117B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017219896A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Method and device for transmitting video stream
CN109982069A (en) * 2017-12-28 2019-07-05 浙江宇视科技有限公司 The measurement method and system of cell breath
WO2020042191A1 (en) * 2018-08-31 2020-03-05 深圳市大疆创新科技有限公司 Encoding method, decoding method, encoding apparatus, and decoding apparatus
CN112929667A (en) * 2021-03-26 2021-06-08 咪咕文化科技有限公司 Encoding and decoding method, device and equipment and readable storage medium
CN115580723A (en) * 2022-12-09 2023-01-06 中南大学 Method, system, device and medium for encoding and optimizing screen content image
WO2024007802A1 (en) * 2022-07-08 2024-01-11 中兴通讯股份有限公司 Video encoding method and apparatus, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007020213A (en) * 1996-09-20 2007-01-25 At & T Corp Video coder providing implicit coefficient prediction and scan adaptation for image coding and intra coding of video
CN102186079A (en) * 2011-05-11 2011-09-14 北京航空航天大学 Motion-vector-based H.264 baseline profile intra mode decision method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007020213A (en) * 1996-09-20 2007-01-25 At & T Corp Video coder providing implicit coefficient prediction and scan adaptation for image coding and intra coding of video
CN102186079A (en) * 2011-05-11 2011-09-14 北京航空航天大学 Motion-vector-based H.264 baseline profile intra mode decision method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017219896A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Method and device for transmitting video stream
CN109982069A (en) * 2017-12-28 2019-07-05 浙江宇视科技有限公司 The measurement method and system of cell breath
CN109982069B (en) * 2017-12-28 2020-12-29 浙江宇视科技有限公司 Method and system for measuring respiratory effect
WO2020042191A1 (en) * 2018-08-31 2020-03-05 深圳市大疆创新科技有限公司 Encoding method, decoding method, encoding apparatus, and decoding apparatus
US11368679B2 (en) 2018-08-31 2022-06-21 SZ DJI Technology Co., Ltd. Encoding method, decoding method, encoding apparatus, and decoding apparatus
CN112929667A (en) * 2021-03-26 2021-06-08 咪咕文化科技有限公司 Encoding and decoding method, device and equipment and readable storage medium
CN112929667B (en) * 2021-03-26 2023-04-28 咪咕文化科技有限公司 Encoding and decoding method, device, equipment and readable storage medium
WO2024007802A1 (en) * 2022-07-08 2024-01-11 中兴通讯股份有限公司 Video encoding method and apparatus, electronic device and storage medium
CN115580723A (en) * 2022-12-09 2023-01-06 中南大学 Method, system, device and medium for encoding and optimizing screen content image
CN115580723B (en) * 2022-12-09 2023-06-09 中南大学 Method, system, equipment and medium for optimizing coding of screen content image

Also Published As

Publication number Publication date
CN105163117B (en) 2019-08-16

Similar Documents

Publication Publication Date Title
US11902567B2 (en) Method, system and apparatus for intra-refresh in video signal processing
CN105163117A (en) Image coding and processing methods and devices
US10264254B2 (en) Image coding and decoding method, image data processing method, and devices thereof
KR101811090B1 (en) Image coding device and image decoding device
CN101341757B (en) Local macroblock information buffer
CN101715138B (en) Method and apparatus of encoding image sequence with plurality of images
JP2001285876A (en) Image encoding device, its method, video camera, image recording device and image transmitting device
CN105187824A (en) Image coding method and device, and image decoding method and device
CN103918258A (en) Reducing amount of data in video encoding
KR101678138B1 (en) Video encoding method, device, and program
US20080049836A1 (en) Method and System for a Fast Video Transcoder
CN116760976B (en) Affine prediction decision method, affine prediction decision device, affine prediction decision equipment and affine prediction decision storage medium
JP5240230B2 (en) Transcoder, recording apparatus, and transcoding method
AU2015268694B2 (en) Image coding and decoding method, image data processing method, and devices thereof
CN117812268A (en) Video transcoding method, device, equipment and medium
KR20110098397A (en) Apparatus and method for high-speed multi-pass encoding
CN118786662A (en) Multiparameter cross-component intra prediction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant