CN104038759B - Method for video coding and coding/decoding method and relevant apparatus - Google Patents
Method for video coding and coding/decoding method and relevant apparatus Download PDFInfo
- Publication number
- CN104038759B CN104038759B CN201410253649.4A CN201410253649A CN104038759B CN 104038759 B CN104038759 B CN 104038759B CN 201410253649 A CN201410253649 A CN 201410253649A CN 104038759 B CN104038759 B CN 104038759B
- Authority
- CN
- China
- Prior art keywords
- frame
- coding
- video
- mentioned
- data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The embodiment of the invention discloses a kind of method for video coding and video encoding/decoding method and relevant apparatus.A kind of method for video coding, it may include:Obtain image;Video coding is carried out to obtain the first Video coding frame to the first field picture data of described image;Video coding is carried out to obtain the second Video coding frame to the second field picture data of described image;By the first Video coding frame and the second Video coding frame write-in video code flow;First coding instruction also indicates the sequencing that the first Video coding frame and the second Video coding frame occur in the video code flow;The present invention program is advantageous to video decoder and the different field picture data for decoding obtained same image correctly is carried out into image blending.
Description
Technical field
The present invention relates to video coding and decoding technology field, and in particular to method for video coding and video encoding/decoding method and related
Device.
Background technology
In coding and decoding video, in order to reduce bandwidth needed for transmission video data as far as possible, it is therefore possible to use various video is compressed
Method is compressed to video data.Field coding techniques is a kind of coding skill that can effectively improve video data compression efficiency
Art.
In coding techniques on the scene, piece image is subjected to field division to obtain pushing up field picture data and push up field picture data.
Top field picture data are obtained by scanning the odd-line pixels point data in piece image, and bottom field data is by scanning piece image
In even rows point data obtain.
During coding on the scene in piece image the view data of each field (top field or bottom field) as an independent frame of video
Data are coded and decoded, but two coded datas of piece image are encapsulated in into one in traditional video coding and decoding technology
In coded frame.Because top field and bottom field represent the odd-numbered line and even number line view data of image respectively, but coded data be by
Each independent mode stores, and therefore, this coded system can complicate the acquisition methods of coded data.Further, since field
Each field data during coding in piece image is effectively equivalent to an independent image, therefore, in reference frame management technology
In each field picture be managed as independent image.Such as in hierarchical B frame technique, top field picture in piece image and
Bottom field picture can be endowed different priority.Therefore, if still sealed by traditional method Jiang Dingchang and bottom field picture data
Loaded on the implementation complexity that can increase reference frame management technology among a coded frame.
In view of the above-mentioned problems, propose the top field of piece image and bottom field data in the prior art as an independent figure
As being encoded and carrying out individual packages into a separately encoded frame to this coded data.This kind of technology can effectively reduce volume
Code data management and the complexity of reference frame management, but this can introduce a new technology problem again, i.e. and video decoder decodes
Isolated each other between each single game view data obtained so that decoding is difficult to determine how each single game image that will correctly obtain
Data carry out image blending.
The content of the invention
The embodiment of the present invention provides method for video coding and video encoding/decoding method and relevant apparatus.
A kind of in a first aspect, method for video coding, it may include:
Obtain image;
Video coding is carried out to obtain the first Video coding frame to the first field picture data of described image;
Video coding is carried out to obtain the second Video coding frame to the second field picture data of described image;
By the first Video coding frame and the second Video coding frame write-in video code flow;
Wherein, the first Video coding frame includes first coding and indicated, described in first coding instruction instruction
First Video coding frame is Video coding frame corresponding to single game view data, and first coding instruction also indicates described first
The single game view data that Video coding frame includes is top field picture data or bottom field picture data, and first coding indicates
Also indicate the sequencing that the first Video coding frame and the second Video coding frame occur in the video code flow;
Wherein, the first field picture data are top field picture data, and the second field picture data are bottom field picture
Data, or the second field picture data are top field picture data, and the first field picture data are bottom field picture data.
With reference in a first aspect, in the first possible embodiment of first aspect,
First coding instruction includes the first instruction parameter and the second instruction parameter;
Wherein, the first instruction parameter indicates that the first Video coding frame is that video corresponding to single game view data is compiled
Code frame, the first instruction parameter also indicate that the single game view data that the first Video coding frame includes is top field picture data
Or bottom field picture data;
The second instruction parameter indicates that the first Video coding frame and the second Video coding frame regard described
The sequencing occurred in frequency code stream.
With reference in a first aspect, in second of possible embodiment of first aspect, first coding instruction is wrapped
Containing the 3rd instruction parameter, the 4th instruction parameter and the second instruction parameter;
Wherein, the 3rd instruction parameter indicates that the first Video coding frame is that video corresponding to single game view data is compiled
Code frame;
The 4th instruction parameter indicates that the single game view data that the first Video coding frame includes is top field picture number
According to or bottom field picture data;
The second instruction parameter indicates that the first Video coding frame and the second Video coding frame regard described
The sequencing occurred in frequency code stream.
Second with reference to the possible embodiment of the first of first aspect or first aspect or first aspect is possible
Embodiment, in the third possible embodiment of first aspect, the second Video coding frame includes second coding
Instruction, second coding instruction indicate that the second Video coding frame is Video coding frame corresponding to single game view data,
Second coding instruction also indicate single game view data that the second Video coding frame includes for bottom field picture data or
Person pushes up field picture data, and second coding instruction also indicates the second Video coding frame and first Video coding
The sequencing that frame occurs in the video code flow.
Second aspect, a kind of video encoding/decoding method, including:
Video decoding is carried out to the first decoded video frame in video code flow to obtain the first image decoding data;
Video decoding is carried out to the second decoded video frame in the video code flow to obtain the second image decoding data;
Wherein, first decoded video frame includes first coding and indicated, first coding instruction indicates the
One decoded video frame is decoded video frame corresponding to single game view data, and first coding instruction also indicates described the
The single game view data that one decoded video frame includes is top field picture data or bottom field picture data, and described first encodes
The homologous decoded video frame for indicating also to indicate first decoded video frame and first decoded video frame is in the video codes
Appearance order in stream;Wherein, first decoded video frame and the difference of the homologous decoded video frame based on same image
The view data of field obtains;
Described first image decoding data and the second image decoding data are entered according to described first coding instruction
Row blending obtains the image that blends.
With reference to second aspect, in the first possible embodiment of second aspect,
First coding instruction includes the first instruction parameter and the second instruction parameter;
Wherein, the first instruction parameter indicates that the first decoded video frame is video corresponding to single game view data
Decoding frame, and the first instruction parameter also indicates that the single game view data that first decoded video frame includes is top field figure
As data or bottom field picture data;
The second instruction parameter indicates that first decoded video frame and the homologous of the first decoded video frame regard
Appearance order of the frequency decoding frame in the video code flow.
With reference to second aspect, in second of possible embodiment of second aspect, first coding instruction bag
Containing the 3rd instruction parameter, the 4th instruction parameter and the second instruction parameter;
Wherein, the 3rd instruction parameter indicates that the first decoded video frame is that video corresponding to single game view data decodes
Frame;
The 4th instruction parameter indicates that the single game view data that first decoded video frame includes is top field picture number
According to or bottom field picture data;
The second instruction parameter indicates that first decoded video frame and the homologous of the first decoded video frame regard
Appearance order of the frequency decoding frame in the video code flow.
Second with reference to the possible embodiment of the first of second aspect or second aspect or second aspect is possible
Embodiment, in the third possible embodiment of second aspect, it is described to be indicated according to described first coding by described in
First image decoding data and the second image decoding data are blended to obtain blending image, including:
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
In code stream after first decoded video frame occur, and second decoded video frame in the video code flow after described
First decoded video frame occurs, and is exported after the decoding of described first image decoding data and the second image decoding data
It is sequentially adjacent, described first image decoding data and the second image decoding data are blended to obtain blending image;
Or;
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
In code stream prior to first decoded video frame occur, and second decoded video frame in the video code flow prior to described
First decoded video frame occurs, and is exported after the decoding of described first image decoding data and the second image decoding data
It is sequentially adjacent, described first image decoding data and the second image decoding data are blended to obtain blending image.
Second with reference to the possible embodiment of the first of second aspect or second aspect or second aspect is possible
Embodiment, in the 4th kind of possible embodiment of second aspect,
Second decoded video frame includes second coding and indicated, second coding instruction indicates the second video
Decoding frame is decoded video frame corresponding to single game view data, and second coding instruction also indicates second video
The single game view data that decoding frame includes is top field picture data or bottom field picture data, and second coding instruction is also
Indicate the homologous decoded video frame of second decoded video frame and second decoded video frame in the video code flow
Appearance order;
It is described to be indicated according to described first coding by described first image decoding data and the second image decoding number
According to being blended to obtain blending image, including:Instruction is encoded according to described first and described second coding indicates, by described in
First image decoding data and the second image decoding data are blended to obtain blending image.
With reference to the 4th kind of possible embodiment of second aspect, in the 5th kind of possible embodiment of second aspect
In, it is described to be indicated according to described first coding instruction and described second coding, by described first image decoding data and institute
The second image decoding data are stated to be blended to obtain blending image, including:
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
Occur in code stream after first decoded video frame, and first coding instruction also indicates first decoded video frame
Comprising single game view data be top field picture data, and second coding instruction indicates second decoded video frame
Homologous decoded video frame occurs in the video code flow prior to second decoded video frame, and second coding instruction
Also indicate that single game view data that second decoded video frame includes is bottom field picture data, and second decoded video frame
Occur in the video code flow after first decoded video frame, and described first image decoding data and described second
Output order is adjacent after the decoding of image decoding data, by described first image decoding data and the second image decoding data
Blended to obtain blending image;
Or;
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
Occur in code stream prior to first decoded video frame, and first coding instruction also indicates first decoded video frame
Comprising single game view data be top field picture data, and second coding instruction indicates second decoded video frame
Homologous decoded video frame occurs in the video code flow after second decoded video frame, and second coding instruction
Also indicate that single game view data that second decoded video frame includes is bottom field picture data, and second decoded video frame
Occur in the video code flow prior to first decoded video frame, and described first image decoding data and described second
Output order is adjacent after the decoding of image decoding data, by described first image decoding data and the second image decoding data
Blended to obtain blending image;
Or;
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
Occur in code stream after first decoded video frame, and first coding instruction also indicates first decoded video frame
Comprising single game view data be bottom field picture data, and second coding instruction indicates second decoded video frame
Homologous decoded video frame occurs in the video code flow prior to second decoded video frame, and second coding instruction
Also indicate that the single game view data that second decoded video frame includes is to push up field picture data, and second decoded video frame
Occur in the video code flow after first decoded video frame, and described first image decoding data and described second
Output order is adjacent after the decoding of image decoding data, by described first image decoding data and the second image decoding data
Blended to obtain blending image;
Or;
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
Occur in code stream prior to first decoded video frame, and first coding instruction also indicates first decoded video frame
Comprising single game view data be bottom field picture data, and second coding instruction indicates second decoded video frame
Homologous decoded video frame occurs in the video code flow after second decoded video frame, and second coding instruction
Also indicate that the single game view data that second decoded video frame includes is to push up field picture data, and second decoded video frame
Occur in the video code flow prior to first decoded video frame, and described first image decoding data and described second
Output order is adjacent after the decoding of image decoding data, by described first image decoding data and the second image decoding data
Blended to obtain blending image.
The third aspect, a kind of video coding apparatus, including:
Acquiring unit, for obtaining image;
Coding unit, for carrying out Video coding to the first field picture data of described image to obtain the first Video coding
Frame;Video coding is carried out to obtain the second Video coding frame to the second field picture data of described image;
Writing unit, for the first Video coding frame and the second Video coding frame to be write into video code flow;
Wherein, the first Video coding frame includes first coding and indicated, described in first coding instruction instruction
First Video coding frame is Video coding frame corresponding to single game view data, and first coding instruction also indicates described first
The single game view data that Video coding frame includes is top field picture data or bottom field picture data, and first coding indicates
Also indicate the sequencing that the first Video coding frame and the second Video coding frame occur in the video code flow;
Wherein, the first field picture data are top field picture data, and the second field picture data are bottom field picture
Data, or the second field picture data are top field picture data, and the first field picture data are bottom field picture data.
With reference to the third aspect, in the first possible embodiment of the third aspect,
First coding instruction includes the first instruction parameter and the second instruction parameter;
Wherein, the first instruction parameter indicates that the first Video coding frame is that video corresponding to single game view data is compiled
Code frame, the first instruction parameter also indicate that the single game view data that the first Video coding frame includes is top field picture data
Or bottom field picture data;
The second instruction parameter indicates that the first Video coding frame and the second Video coding frame regard described
The sequencing occurred in frequency code stream.
With reference to the third aspect, in second of possible embodiment of the third aspect, first coding instruction bag
Containing the 3rd instruction parameter, the 4th instruction parameter and the second instruction parameter;
Wherein, the 3rd instruction parameter indicates that the first Video coding frame is that video corresponding to single game view data is compiled
Code frame;
The 4th instruction parameter indicates that the single game view data that the first Video coding frame includes is top field picture number
According to or bottom field picture data;
The second instruction parameter indicates that the first Video coding frame and the second Video coding frame regard described
The sequencing occurred in frequency code stream.
Second with reference to the possible embodiment of the first of the third aspect or the third aspect or the third aspect is possible
Embodiment, in the third possible embodiment of the third aspect, the second Video coding frame includes second coding
Instruction, second coding instruction indicate that the second Video coding frame is Video coding frame corresponding to single game view data,
Second coding instruction also indicate single game view data that the second Video coding frame includes for bottom field picture data or
Person pushes up field picture data, and second coding instruction also indicates the second Video coding frame and first Video coding
The sequencing that frame occurs in the video code flow.
Fourth aspect, a kind of video decoder, it may include:
Decoding unit, decoded for carrying out video to the first decoded video frame in video code flow to obtain the first image solution
Code data;Video decoding is carried out to the second decoded video frame in the video code flow to obtain the second image decoding data;Its
In, first decoded video frame includes first coding and indicated, first coding instruction indicates that the first video decodes
Frame is decoded video frame corresponding to single game view data, and first coding instruction also indicates the first video decoding
The single game view data that frame includes is top field picture data or bottom field picture data, and first coding instruction also indicates
Appearance of the homologous decoded video frame of first decoded video frame and first decoded video frame in the video code flow
Sequentially;Wherein, the picture number of the different fields of first decoded video frame and the homologous decoded video frame based on same image
According to obtaining;
Blend unit, for being indicated according to described first coding by described first image decoding data and second figure
As decoding data is blended to obtain blending image.
With reference to fourth aspect, in the first possible embodiment of fourth aspect,
First coding instruction includes the 3rd instruction parameter, the 4th instruction parameter and the second instruction parameter;
Wherein, the 3rd instruction parameter indicates that the first decoded video frame is that video corresponding to single game view data decodes
Frame;
The 4th instruction parameter indicates that the single game view data that first decoded video frame includes is top field picture number
According to or bottom field picture data;
The second instruction parameter indicates that first decoded video frame and the homologous of the first decoded video frame regard
Appearance order of the frequency decoding frame in the video code flow.
With reference to fourth aspect, in second of possible embodiment of fourth aspect,
First coding instruction includes the 3rd instruction parameter, the 4th instruction parameter and the second instruction parameter;
Wherein, the 3rd instruction parameter indicates that the first decoded video frame is that video corresponding to single game view data decodes
Frame;
The 4th instruction parameter indicates that the single game view data that first decoded video frame includes is top field picture number
According to or bottom field picture data;
The second instruction parameter indicates the homologous decoded video frame of first decoded video frame in the video codes
Occur in stream prior to first decoded video frame.
Second with reference to the possible embodiment of the first of fourth aspect or fourth aspect or fourth aspect is possible
Embodiment, in the third possible embodiment of fourth aspect,
The blending unit is specifically used for, if first coding instruction indicates the homologous of first decoded video frame
Decoded video frame occurs in the video code flow after first decoded video frame, and second decoded video frame is in institute
State in video code flow and occur after first decoded video frame, and described first image decoding data and second image
Output order is adjacent after the decoding of decoding data, and described first image decoding data and the second image decoding data are carried out
Blending obtains the image that blends;
Or;
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
In code stream prior to first decoded video frame occur, and second decoded video frame in the video code flow prior to described
First decoded video frame occurs, and is exported after the decoding of described first image decoding data and the second image decoding data
It is sequentially adjacent, described first image decoding data and the second image decoding data are blended to obtain blending image.
Second with reference to the possible embodiment of the first of fourth aspect or fourth aspect or fourth aspect is possible
Embodiment, in the 4th kind of possible embodiment of fourth aspect,
Second decoded video frame includes second coding and indicated, second coding instruction indicates the second video
Decoding frame is decoded video frame corresponding to single game view data, and second coding instruction also indicates second video
The single game view data that decoding frame includes is top field picture data or bottom field picture data, and second coding instruction is also
Indicate the homologous decoded video frame of second decoded video frame and second decoded video frame in the video code flow
Appearance order;
Wherein, the blending unit is specifically used for, and is indicated according to described first coding instruction and described second coding,
Described first image decoding data and the second image decoding data are blended to obtain blending image.
With reference to the 4th kind of possible embodiment of fourth aspect, in the 5th kind of possible embodiment of fourth aspect
In,
The blending unit is specifically used for, if first coding instruction indicates the homologous of first decoded video frame
Decoded video frame occurs in the video code flow after first decoded video frame, and first coding instruction also refers to
Show that the single game view data that first decoded video frame includes is top field picture data, and second coding instruction indicates
The homologous decoded video frame of second decoded video frame occurs in the video code flow prior to second decoded video frame,
And second coding instruction also indicates that the single game view data that second decoded video frame includes is bottom field picture data,
And second decoded video frame occurs in the video code flow after first decoded video frame, and first figure
As decoding data and the second image decoding data decoding after output order it is adjacent, by described first image decoding data and
The second image decoding data are blended to obtain blending image;
Or;
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
Occur in code stream prior to first decoded video frame, and first coding instruction also indicates first decoded video frame
Comprising single game view data be top field picture data, and second coding instruction indicates second decoded video frame
Homologous decoded video frame occurs in the video code flow after second decoded video frame, and second coding instruction
Also indicate that single game view data that second decoded video frame includes is bottom field picture data, and second decoded video frame
Occur in the video code flow prior to first decoded video frame, and described first image decoding data and described second
Output order is adjacent after the decoding of image decoding data, by described first image decoding data and the second image decoding data
Blended to obtain blending image;
Or;
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
Occur in code stream after first decoded video frame, and first coding instruction also indicates first decoded video frame
Comprising single game view data be bottom field picture data, and second coding instruction indicates second decoded video frame
Homologous decoded video frame occurs in the video code flow prior to second decoded video frame, and second coding instruction
Also indicate that the single game view data that second decoded video frame includes is to push up field picture data, and second decoded video frame
Occur in the video code flow after first decoded video frame, and described first image decoding data and described second
Output order is adjacent after the decoding of image decoding data, by described first image decoding data and the second image decoding data
Blended to obtain blending image;
Or;
If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video
Occur in code stream prior to first decoded video frame, and first coding instruction also indicates first decoded video frame
Comprising single game view data be bottom field picture data, and second coding instruction indicates second decoded video frame
Homologous decoded video frame occurs in the video code flow after second decoded video frame, and second coding instruction
Also indicate that the single game view data that second decoded video frame includes is to push up field picture data, and second decoded video frame
Occur in the video code flow prior to first decoded video frame, and described first image decoding data and described second
Output order is adjacent after the decoding of image decoding data, by described first image decoding data and the second image decoding data
Blended to obtain blending image.
As can be seen that in some Video Coding Schemes of the invention, to the first field picture data of image and the second field picture
Data carry out Video coding to obtain the first Video coding frame and the second Video coding frame respectively;By the first Video coding frame and
Two Video coding frames write video code flow.Wherein, indicated because the first Video coding frame includes first coding, above-mentioned first
Coding instruction indicates that above-mentioned first Video coding frame is Video coding frame corresponding to single game view data, and above-mentioned first encodes
Indicate also to indicate that the single game view data that above-mentioned first Video coding frame includes is to push up field picture data or bottom field picture data,
And first coding instruction also indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame in above-mentioned video code flow
The sequencing of middle appearance.Wherein, due to clearly being indicated using the first Video coding frame, the different fields based on same image
The sequencing that occurs in video code flow of the obtained homologous Video coding frame of view data, this is advantageous to video decoder
Clearly know that homologous Video coding frame that the view data of the different fields based on same image obtains occurs in video code flow
Sequencing, and then be advantageous to video decoder and correctly carry out the different field picture data for decoding obtained same image
Image blends.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of method for video coding provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of video encoding/decoding method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of video coding apparatus provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of video decoder provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of another video coding apparatus provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of another video coding apparatus provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of another video decoder provided in an embodiment of the present invention;
Fig. 8 is the schematic diagram of another video decoder provided in an embodiment of the present invention.
Embodiment
The embodiment of the present invention provides method for video coding and video encoding/decoding method and relevant apparatus.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It is described in detail individually below.
Term " first ", " second ", " the 3rd " " in description and claims of this specification and above-mentioned accompanying drawing
Four " etc. be for distinguishing different objects, rather than for describing particular order.In addition, term " comprising " and " having " and
Their any deformations, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, method,
The step of system, product or equipment are not limited to list or unit, but alternatively also include the step of not listing or
Unit, or alternatively also include for the intrinsic other steps of these processes, method, product or equipment or unit.
It is described in detail individually below.
Method for video coding provided in an embodiment of the present invention is first introduced, method for video coding provided in an embodiment of the present invention
Executive agent is video coding apparatus, wherein, the video coding apparatus can be any required output, store the device of video,
Such as equipment such as mobile phone, notebook computer, tablet personal computer, PCs.
One embodiment of method for video coding of the present invention, wherein, a kind of method for video coding includes:Obtain image;To upper
The the first field picture data for stating image carry out Video coding to obtain the first Video coding frame;To the second field picture of above-mentioned image
Data carry out Video coding to obtain the second Video coding frame;By above-mentioned first Video coding frame and above-mentioned second Video coding frame
Write video code flow;Wherein, above-mentioned first Video coding frame includes first coding and indicated, above-mentioned first coding instruction instruction
Above-mentioned first Video coding frame is Video coding frame corresponding to single game view data, and above-mentioned first coding instruction also indicates above-mentioned
The single game view data that first Video coding frame includes is top field picture data or bottom field picture data, and above-mentioned first encodes
Indicate also to indicate the priority that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow
Sequentially;Wherein, above-mentioned first field picture data are top field picture data, and above-mentioned second field picture data are bottom field picture number
According to, or above-mentioned second field picture data are top field picture data, and above-mentioned first field picture data are bottom field picture data.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet for method for video coding that one embodiment of the present of invention provides.Such as
Shown in Fig. 1, a kind of method for video coding that one embodiment of the present of invention provides may include herein below:
101st, image is obtained.
102nd, Video coding is carried out to obtain the first Video coding frame to the first field picture data of above-mentioned image.
103rd, Video coding is carried out to obtain the second Video coding frame to the second field picture data of above-mentioned image.
Wherein, above-mentioned first field picture data can be that (the first field picture data of i.e. above-mentioned image can for top field picture data
For the top field picture data of above-mentioned image), and above-mentioned second field picture data can be bottom field picture data (i.e. above-mentioned image
Second field picture data can be the bottom field picture data of above-mentioned image).Or above-mentioned second field picture data can be top field picture
Data (that is, the second field picture data of above-mentioned image can be the top field picture data of above-mentioned image), and above-mentioned first field picture
Data can be bottom field picture data (the first field picture data of i.e. above-mentioned image can be the bottom field picture data of above-mentioned image).
Wherein, inevitable execution sequencing useless between step 102 and step 103, for example, step 202 can prior to or evening
Performed in step 103, either step 102 and step 103 also can be performed synchronously or step 102 and step 103 are also interted and held
OK.
104th, above-mentioned first Video coding frame and above-mentioned second Video coding frame are write into video code flow.
Wherein, above-mentioned first Video coding frame includes first coding and indicates that (first coding instruction for example may be included in
The frame head and/or other positions of above-mentioned first Video coding frame), above-mentioned first coding instruction indicates above-mentioned first Video coding
Frame is Video coding frame corresponding to single game view data.That is, above-mentioned first coding instruction may indicate that above-mentioned first regards
Frequency coded frame includes the single game view data of piece image, and does not include the two field picture data of piece image.
Wherein, above-mentioned first coding instruction also indicates that the single game view data that above-mentioned first Video coding frame includes is top
Field picture data or bottom field picture data.For example, it is assumed that be the top field picture data of above-mentioned image are carried out Video coding with
The first Video coding frame is obtained, then above-mentioned first coding instruction indicates the single game picture number that above-mentioned first Video coding frame includes
According to push up field picture data, it is assumed that be to carry out Video coding to the bottom field picture data of above-mentioned image to obtain the first Video coding
Frame, then above-mentioned first coding instruction indicate that the single game view data that above-mentioned first Video coding frame includes is bottom field picture number
According to.
Wherein, above-mentioned first coding instruction also indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame
The sequencing occurred in above-mentioned video code flow.For example, if above-mentioned first Video coding frame is prior to upper in above-mentioned video code flow
The appearance of the second Video coding frame is stated, then above-mentioned first coding instruction indicates that above-mentioned first Video coding frame and above-mentioned second regards
The sequencing that frequency coded frame occurs in above-mentioned video code flow is that above-mentioned first Video coding frame is compiled prior to above-mentioned second video
Code frame occurs.Conversely, if above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame in above-mentioned video code flow,
Above-mentioned first coding instruction indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame in above-mentioned video code flow
The sequencing of middle appearance is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
As can be seen that in the Video Coding Scheme of the present embodiment, to the first field picture data of image and the second field picture
Data carry out Video coding to obtain the first Video coding frame and the second Video coding frame respectively;By the first Video coding frame and
Two Video coding frames write video code flow.Wherein, indicated because the first Video coding frame includes first coding, above-mentioned first
Coding instruction indicates that above-mentioned first Video coding frame is Video coding frame corresponding to single game view data, and above-mentioned first encodes
Indicate also to indicate that the single game view data that above-mentioned first Video coding frame includes is to push up field picture data or bottom field picture data,
And first coding instruction also indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame in above-mentioned video code flow
The sequencing of middle appearance.Wherein, due to clearly being indicated using the first Video coding frame, the different fields based on same image
The sequencing that occurs in video code flow of the obtained homologous Video coding frame of view data, this is advantageous to video decoder
Clearly know that homologous Video coding frame that the view data of the different fields based on same image obtains occurs in video code flow
Sequencing, and then be advantageous to video decoder and correctly carry out the different field picture data for decoding obtained same image
Image blends.
Wherein, Video coding is carried out respectively to the top field picture data and bottom field picture data of image and obtains two videos
Coded frame each other " homologous Video coding frame " because the field picture data that the two Video coding frames are included come from same figure
Picture.Such as.Above-mentioned first Video coding frame is the homologous Video coding frame of above-mentioned second Video coding frame, similarly, above-mentioned second
Video coding frame is also the homologous Video coding frame of above-mentioned first Video coding frame.Similar, the top field picture data of certain image
With bottom field picture data each other " homologous field picture data ", because the two field picture data come from same image.Such as.It is above-mentioned
The top field picture data of image are the homologous field picture data of the bottom field picture data of above-mentioned image, similarly, the bottom of above-mentioned image
Field picture data are the homologous field picture data of the top field picture data of above-mentioned image.
The present invention some possible embodiments in, it is above-mentioned first coding instruction can include first instruction parameter and
Second instruction parameter.Wherein, above-mentioned first instruction parameter indicates above-mentioned first Video coding frame corresponding to single game view data
Video coding frame (that is, the first instruction parameter may indicate that the single game view data that above-mentioned first Video coding frame includes piece image,
And the two field picture data not comprising piece image), above-mentioned first instruction parameter also indicates that above-mentioned first Video coding frame includes
Single game view data for top field picture data or bottom field picture data (for example, it is assumed that being the top field picture number to above-mentioned image
According to Video coding is carried out to obtain the first Video coding frame, then the first instruction parameter indicates what above-mentioned first Video coding frame included
Single game view data is top field picture data, it is assumed that is to carry out Video coding to the bottom field picture data of above-mentioned image to obtain the
One Video coding frame, then the single game view data that the first above-mentioned first Video coding frame of instruction parameter instruction includes is bottom field picture
Data).Wherein, above-mentioned second instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame above-mentioned
The sequencing occurred in video code flow.For example, if above-mentioned first Video coding frame is prior to above-mentioned second in above-mentioned video code flow
Video coding frame occurs, then the second instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame upper
The sequencing occurred in video code flow is stated for above-mentioned first Video coding frame prior to above-mentioned second Video coding frame to occur.Instead
It, is if above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame in above-mentioned video code flow, the second instruction ginseng
Number can indicate that the priority that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow is suitable
Sequence is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
In other possible embodiments of the present invention, above-mentioned first coding instruction can for example include the 3rd instruction
Parameter, the 4th instruction parameter and the second instruction parameter.Wherein, above-mentioned 3rd instruction parameter may indicate that above-mentioned first Video coding frame
For Video coding frame corresponding to single game view data, (that is, the 3rd instruction parameter may indicate that above-mentioned first Video coding frame includes one
The single game view data of width image, and the two field picture data not comprising piece image).Above-mentioned 4th instruction parameter may indicate that
It is to push up field picture data or bottom field picture data (for example, it is assumed that being to state the single game view data that the first Video coding frame includes
Video coding is carried out to obtain the first Video coding frame to the top field picture data of above-mentioned image, then in the 4th instruction parameter instruction
It is top field picture data to state the single game view data that the first Video coding frame includes, it is assumed that is the bottom field picture number to above-mentioned image
According to Video coding is carried out to obtain the first Video coding frame, then the 4th instruction parameter indicates what above-mentioned first Video coding frame included
Single game view data is bottom field picture data).Wherein, above-mentioned second instruction parameter indicates above-mentioned first Video coding frame and upper
State the sequencing that the second Video coding frame occurs in above-mentioned video code flow.
Wherein, the first instruction parameter for example may include at least two bits, wherein, the first instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.Second instruction parameter is for example including at least one bit.Second instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
Optionally, above-mentioned second Video coding frame can include second coding and indicate that (second coding instruction can for example wrap
It is contained in the frame head and/other positions of above-mentioned second Video coding frame), above-mentioned second coding instruction may indicate that above-mentioned second video
Coded frame is Video coding frame corresponding to single game view data, i.e. above-mentioned second coding instruction may indicate that above-mentioned second video
Coded frame includes the single game view data of piece image, and does not include the two field picture data of piece image.
Optionally, above-mentioned second coding instruction may further indicate that the single game view data that above-mentioned second Video coding frame includes
For bottom field picture data or top field picture data.For example, it is assumed that it is that video volume is carried out to the top field picture data of above-mentioned image
For code to obtain the second Video coding frame, then above-mentioned second coding instruction may indicate that the single game that above-mentioned second Video coding frame includes
View data is top field picture data, it is assumed that is to carry out Video coding to the bottom field picture data of above-mentioned image to regard to obtain second
Frequency coded frame, then above-mentioned second coding instruction indicate that the single game view data that above-mentioned second Video coding frame includes is bottom field figure
As data.
Optionally, above-mentioned second coding instruction may also indicate above-mentioned second Video coding frame and above-mentioned first video is compiled
The sequencing that code frame occurs in above-mentioned video code flow.For example, if above-mentioned first Video coding frame is first in above-mentioned video code flow
Occur in above-mentioned second Video coding frame, then above-mentioned second coding instruction can indicate that above-mentioned first Video coding frame and above-mentioned
The sequencing that second Video coding frame occurs in above-mentioned video code flow is above-mentioned first Video coding frame prior to above-mentioned second
Video coding frame occurs.Conversely, if above-mentioned first Video coding frame is after above-mentioned second Video coding frame in above-mentioned video code flow
Occur, then above-mentioned second coding instruction can indicate that above-mentioned first Video coding frame and above-mentioned second Video coding frame above-mentioned
The sequencing occurred in video code flow is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
The present invention some possible embodiments in, it is above-mentioned second coding instruction can include the 5th instruction parameter and
5th instruction parameter.Wherein, above-mentioned 5th instruction parameter indicates above-mentioned second Video coding frame corresponding to single game view data
Video coding frame (that is, the 5th instruction parameter may indicate that the single game view data that above-mentioned second Video coding frame includes piece image,
And the two field picture data not comprising piece image), above-mentioned 5th instruction parameter also indicates that above-mentioned second Video coding frame includes
Single game view data for top field picture data or bottom field picture data (for example, it is assumed that being the top field picture number to above-mentioned image
According to Video coding is carried out to obtain the second Video coding frame, then the 5th instruction parameter indicates what above-mentioned second Video coding frame included
Single game view data is top field picture data, it is assumed that is to carry out Video coding to the bottom field picture data of above-mentioned image to obtain the
Two Video coding frames, then the single game view data that the 5th above-mentioned second Video coding frame of instruction parameter instruction includes is bottom field picture
Data).Wherein, above-mentioned 6th instruction parameter indicates above-mentioned second Video coding frame and above-mentioned second Video coding frame above-mentioned
The sequencing occurred in video code flow.For example, if above-mentioned first Video coding frame is prior to above-mentioned second in above-mentioned video code flow
Video coding frame occurs, then the 6th instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame upper
The sequencing occurred in video code flow is stated for above-mentioned first Video coding frame prior to above-mentioned second Video coding frame to occur.Instead
It, is if above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame in above-mentioned video code flow, the 6th instruction ginseng
Number can indicate that the priority that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow is suitable
Sequence is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
In other possible embodiments of the present invention, above-mentioned second coding instruction can for example include the 7th instruction
Parameter, the 8th instruction parameter and the 6th instruction parameter.Wherein, above-mentioned 7th instruction parameter may indicate that above-mentioned second Video coding frame
For Video coding frame corresponding to single game view data, (that is, the 7th instruction parameter may indicate that above-mentioned second Video coding frame includes one
The single game view data of width image, and the two field picture data not comprising piece image).Above-mentioned 8th instruction parameter may indicate that
It is to push up field picture data or bottom field picture data (for example, it is assumed that being to state the single game view data that the second Video coding frame includes
Video coding is carried out to obtain the second Video coding frame to the top field picture data of above-mentioned image, then in the 8th instruction parameter instruction
It is top field picture data to state the single game view data that the second Video coding frame includes, it is assumed that is the bottom field picture number to above-mentioned image
According to Video coding is carried out to obtain the second Video coding frame, then the 8th instruction parameter indicates what above-mentioned second Video coding frame included
Single game view data is bottom field picture data).Wherein, above-mentioned 6th instruction parameter indicates above-mentioned second Video coding frame and upper
State the sequencing that the second Video coding frame occurs in above-mentioned video code flow.
Wherein, the 5th instruction parameter for example may include at least two bits, wherein, the 5th instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.6th instruction parameter is for example including at least one bit.6th instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
It is appreciated that because second coding instruction and first encode the second Video coding frame for indicating and the
The sequencing that one Video coding frame occurs in video code flow substantially should be identical, and therefore, video decoder also can root
According to second coding instruction and first coding instruction meaning shown in the second Video coding frame and the first Video coding frame regarding
Whether the sequencing occurred in frequency code stream is identical, and frame or error condition etc. are abandoned to determine whether there is.Certainly, it is also due to
The second Video coding frame and the first Video coding frame shown in second coding instruction and first coding instruction meaning is in video
The sequencing occurred in code stream substantially should be identical, therefore second coding instruction can also omit.
Wherein, so-called " sequencing that Video coding frame occurs in video code flow ", it will be appreciated that to be that coding is regarded
The sequencing of frequency coded frame, for example, the first Video coding frame occurs prior to the second Video coding frame in code stream, it is possible to understand that
For be coding obtain the first Video coding frame prior to coding obtain the second Video coding frame.In another example after the first Video coding frame
Occur in the second Video coding frame in code stream, it will be appreciated that to be that coding obtains the first Video coding frame and obtains second after coding
Video coding frame.
Wherein, so-called " output order after the decoding of decoding view data ", it will be appreciated that to be corresponding to decoding view data
Decoded video frame it is decoded and sequence after decoding view data display order.First decoded video frame and the second video solution
The sequencing that occurs in video code flow of code frame, likely differ from the corresponding decoding view data of the first decoded video frame and the
Output order after the decoding of the corresponding decoding view data of two decoded video frames.
Wherein, for video decoder, the Video coding frame in video code flow can also be referred to as to video decoding
Frame.
Video encoding/decoding method provided in an embodiment of the present invention, video encoding/decoding method provided in an embodiment of the present invention is described below
Executive agent be video decoder, wherein, the video decoder can be any required output, play the dress of video
Put, such as equipment such as mobile phone, notebook computer, tablet personal computer, PCs.
Another embodiment of video encoding/decoding method of the present invention, wherein, a kind of video encoding/decoding method includes:To in video code flow
The first decoded video frame carry out video decoding to obtain the first image decoding data;To the second video in above-mentioned video code flow
Decoding frame carries out video decoding to obtain the second image decoding data;Wherein, above-mentioned first decoded video frame includes first volume
Code instruction, above-mentioned first coding instruction indicate that the first decoded video frame is decoded video frame corresponding to single game view data,
And above-mentioned first coding instruction also indicates that the single game view data that above-mentioned first decoded video frame includes is top field picture number
According to or bottom field picture data, and it is above-mentioned first coding instruction also indicate above-mentioned first decoded video frame and above-mentioned first video
Appearance order of the homologous decoded video frame of decoding frame in above-mentioned video code flow;Wherein, above-mentioned first decoded video frame and upper
The view data for stating different fields of the homologous decoded video frame based on same image obtains;Will be upper according to above-mentioned first coding instruction
State the first image decoding data and above-mentioned second image decoding data are blended to obtain blending image.
Fig. 2 is referred to, Fig. 2 is a kind of flow signal for video encoding/decoding method that an alternative embodiment of the invention provides
Figure.As shown in Fig. 2 a kind of video encoding/decoding method that an alternative embodiment of the invention provides may include herein below:
201st, video decoding is carried out to the first decoded video frame in video code flow to obtain the first image decoding data.
202nd, video decoding is carried out to the second decoded video frame in above-mentioned video code flow to obtain the second image decoding number
According to.
Wherein, inevitable execution sequencing useless between step 201 and step 202, for example, step 201 can prior to or evening
Performed in step 202, either step 201 and step 202 also can be performed synchronously or step 201 and step 202 are also interted and held
OK.
Wherein, above-mentioned first decoded video frame includes first coding and indicated, above-mentioned first coding instruction indicates the
One decoded video frame is decoded video frame corresponding to single game view data, and above-mentioned first coding instruction also indicates above-mentioned the
The single game view data that one decoded video frame includes is top field picture data or bottom field picture data, and above-mentioned first encodes
The homologous decoded video frame for indicating also to indicate above-mentioned first decoded video frame and above-mentioned first decoded video frame is in above-mentioned video codes
Appearance order in stream;Wherein, above-mentioned first decoded video frame and above-mentioned difference of the homologous decoded video frame based on same image
The view data of field obtains.
203rd, indicated according to above-mentioned first coding by above-mentioned first image decoding data and above-mentioned second image decoding number
According to being blended to obtain blending image.
Wherein, the above-mentioned homologous decoded video frame of above-mentioned first decoded video frame and above-mentioned first decoded video frame is based on same
The view data of the different fields of one image obtains.Obtained namely based on the view data of the different fields of same image two regard
Frequency decoding frame is each other " homologous decoded video frame ".Similar, the top field picture data and bottom field picture data of certain image are " same each other
Source field picture data ", because the two field picture data come from same image.Such as.The top field picture data of certain sub-picture are
The homologous field picture data of the bottom field picture data of the image, similarly, the bottom field picture data of certain image are the top field of the image
The homologous field picture data of view data.
As can be seen that in the video decoding project of the present embodiment, the first decoded video frame in video code flow and
After two decoded video frames carry out video decoding to obtain the first image decoding data and the second image decoding data, due to being root
The instruction of the first coding instruction included according to the first decoded video frame, and the second decoded video frame decode with above-mentioned first video
Appearance order of the frame in above-mentioned video code flow, and after the decoding of the first image decoding data and above-mentioned second image decoding data
Output order, is handed over to determine whether to be blended above-mentioned first image decoding data and above-mentioned second image decoding data
Melt image.Wherein, because the first decoded video frame clearly indicates, the first decoded video frame and its homologous decoded video frame exist
The sequencing occurred in video code flow, this is advantageous to the figure that video decoder clearly knows the different fields based on same image
As the sequencing that the homologous decoded video frame that data obtain occurs in video code flow, and then be advantageous to video decoder just
True carries out image blending by the different field picture data for decoding obtained same image.
In some of the invention possible embodiments, above-mentioned first coding instruction can include the first instruction parameter and the
Two instruction parameters;Wherein, above-mentioned first instruction parameter instruction can indicate that the first decoded video frame is corresponding for single game view data
Decoded video frame (that is, first instruction parameter may indicate that above-mentioned first decoded video frame includes the single game picture number of piece image
According to, and the two field picture data not comprising piece image), and above-mentioned first instruction parameter also can indicate that above-mentioned first video
The single game view data that decoding frame includes is top field picture data or bottom field picture data (for example, it is assumed that above-mentioned first video solution
The single game view data that code frame includes is top field picture data, then the first instruction parameter indicates that above-mentioned first decoded video frame includes
Single game view data for top field picture data, the single game view data that above-mentioned first decoded video frame includes is bottom field picture number
According to then the first instruction parameter indicates that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data).It is above-mentioned
Second instruction parameter can indicate that above-mentioned first decoded video frame and the homologous decoded video frame of above-mentioned first decoded video frame exist
Appearance sequencing in above-mentioned video code flow.
In other of the invention possible embodiments, above-mentioned first coding instruction can include the 3rd instruction parameter,
4th instruction parameter and the second instruction parameter;Wherein, above-mentioned 3rd instruction parameter indicates that the first decoded video frame is single game figure
The decoded video frame as corresponding to data.Above-mentioned 4th instruction parameter indicates the single game picture number that above-mentioned first decoded video frame includes
According to be top field picture data or bottom field picture data (for example, it is assumed that the single game view data that above-mentioned first decoded video frame includes
To push up field picture data, then the 4th instruction parameter indicates that the single game view data that above-mentioned first decoded video frame includes is top field figure
As data, the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, then the 4th instruction parameter instruction
The single game view data that above-mentioned first decoded video frame includes is bottom field picture data).Above-mentioned second instruction parameter can indicate that
Appearance of the homologous decoded video frame of above-mentioned first decoded video frame and above-mentioned first decoded video frame in above-mentioned video code flow
Sequencing.
Wherein, the first instruction parameter for example may include at least two bits, wherein, the first instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.Second instruction parameter is for example including at least one bit.Second instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
In some possible embodiments of the present invention, indicated according to above-mentioned first coding by above-mentioned first image solution
Code data and above-mentioned second image decoding data are blended to obtain blending image, it may include:If above-mentioned first coding instruction
Indicate the homologous decoded video frame of above-mentioned first decoded video frame in above-mentioned video code flow after above-mentioned first decoded video frame
Occur, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and it is above-mentioned
Output order is adjacent after the decoding of first image decoding data and above-mentioned second image decoding data, by above-mentioned first image decoding
Data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
If above-mentioned first coding instruction indicates the homologous decoded video frame of above-mentioned first decoded video frame in above-mentioned video
In code stream prior to above-mentioned first decoded video frame occur, and above-mentioned second decoded video frame in above-mentioned video code flow prior to above-mentioned
First decoded video frame occurs, and is exported after the decoding of above-mentioned first image decoding data and above-mentioned second image decoding data
It is sequentially adjacent, above-mentioned first image decoding data and above-mentioned second image decoding data are blended to obtain blending image.
In other possible embodiments of the present invention, above-mentioned second decoded video frame can refer to comprising second coding
To show, above-mentioned second coding instruction indicates that the second decoded video frame is decoded video frame corresponding to single game view data, and
Above-mentioned second coding instruction also indicate single game view data that above-mentioned second decoded video frame includes for top field picture data or
Bottom field picture data, and above-mentioned second coding instruction also indicates above-mentioned second decoded video frame and the decoding of above-mentioned second video
Appearance order of the homologous decoded video frame of frame in above-mentioned video code flow;
It is above-mentioned to be indicated according to above-mentioned first coding by above-mentioned first image decoding data and above-mentioned second image decoding number
According to being blended to obtain blending image, including:Indicated according to above-mentioned first coding instruction and above-mentioned second coding, will be above-mentioned
First image decoding data and above-mentioned second image decoding data are blended to obtain blending image.
For example, indicated according to above-mentioned first coding instruction and above-mentioned second coding, by above-mentioned first image decoding number
Blended to obtain blending image according to above-mentioned second image decoding data, including:
If above-mentioned first coding instruction indicates the homologous decoded video frame of above-mentioned first decoded video frame in above-mentioned video
Occur in code stream after above-mentioned first decoded video frame, and above-mentioned first coding instruction also indicates above-mentioned first decoded video frame
Comprising single game view data be top field picture data, and above-mentioned second coding instruction indicates above-mentioned second decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow prior to above-mentioned second decoded video frame, and above-mentioned second coding instruction
Also indicate that single game view data that above-mentioned second decoded video frame includes is bottom field picture data, and above-mentioned second decoded video frame
Occur in above-mentioned video code flow after above-mentioned first decoded video frame, and above-mentioned first image decoding data and above-mentioned second
Output order is adjacent after the decoding of image decoding data, by above-mentioned first image decoding data and above-mentioned second image decoding data
Blended to obtain blending image;
Or;
If above-mentioned first coding instruction indicates the homologous decoded video frame of above-mentioned first decoded video frame in above-mentioned video
Occur in code stream prior to above-mentioned first decoded video frame, and above-mentioned first coding instruction also indicates above-mentioned first decoded video frame
Comprising single game view data be top field picture data, and above-mentioned second coding instruction indicates above-mentioned second decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow after above-mentioned second decoded video frame, and above-mentioned second coding instruction
Also indicate that single game view data that above-mentioned second decoded video frame includes is bottom field picture data, and above-mentioned second decoded video frame
Occur in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first image decoding data and above-mentioned second
Output order is adjacent after the decoding of image decoding data, by above-mentioned first image decoding data and above-mentioned second image decoding data
Blended to obtain blending image;
Or;
If above-mentioned first coding instruction indicates the homologous decoded video frame of above-mentioned first decoded video frame in above-mentioned video
Occur in code stream after above-mentioned first decoded video frame, and above-mentioned first coding instruction also indicates above-mentioned first decoded video frame
Comprising single game view data be bottom field picture data, and above-mentioned second coding instruction indicates above-mentioned second decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow prior to above-mentioned second decoded video frame, and above-mentioned second coding instruction
Also indicate that the single game view data that above-mentioned second decoded video frame includes is to push up field picture data, and above-mentioned second decoded video frame
Occur in above-mentioned video code flow after above-mentioned first decoded video frame, and above-mentioned first image decoding data and above-mentioned second
Output order is adjacent after the decoding of image decoding data, by above-mentioned first image decoding data and above-mentioned second image decoding data
Blended to obtain blending image;
Or;
If above-mentioned first coding instruction indicates the homologous decoded video frame of above-mentioned first decoded video frame in above-mentioned video
Occur in code stream prior to above-mentioned first decoded video frame, and above-mentioned first coding instruction also indicates above-mentioned first decoded video frame
Comprising single game view data be bottom field picture data, and above-mentioned second coding instruction indicates above-mentioned second decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow after above-mentioned second decoded video frame, and above-mentioned second coding instruction
Also indicate that the single game view data that above-mentioned second decoded video frame includes is to push up field picture data, and above-mentioned second decoded video frame
Occur in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first image decoding data and above-mentioned second
Output order is adjacent after the decoding of image decoding data, by above-mentioned first image decoding data and above-mentioned second image decoding data
Blended to obtain blending image.
In some of the invention possible embodiments, above-mentioned second coding instruction can include the 5th instruction parameter and the
Six instruction parameters;Wherein, above-mentioned 5th instruction parameter instruction can indicate that the second decoded video frame is corresponding for single game view data
Decoded video frame (that is, the 5th instruction parameter may indicate that above-mentioned second decoded video frame includes the single game picture number of piece image
According to, and the two field picture data not comprising piece image), and above-mentioned 5th instruction parameter also can indicate that above-mentioned second video
The single game view data that decoding frame includes is top field picture data or bottom field picture data (for example, it is assumed that above-mentioned second video solution
The single game view data that code frame includes is top field picture data, then the 5th instruction parameter indicates that above-mentioned second decoded video frame includes
Single game view data for top field picture data, the single game view data that above-mentioned second decoded video frame includes is bottom field picture number
According to then the 5th instruction parameter indicates that the single game view data that above-mentioned second decoded video frame includes is bottom field picture data).It is above-mentioned
6th instruction parameter can indicate that above-mentioned second decoded video frame and the homologous decoded video frame of above-mentioned second decoded video frame exist
Appearance order in above-mentioned video code flow.
In other of the invention possible embodiments, above-mentioned second coding instruction can include the 7th instruction parameter,
8th instruction parameter and the 6th instruction parameter;Wherein, above-mentioned 7th instruction parameter indicates that the second decoded video frame is single game figure
The decoded video frame as corresponding to data.Above-mentioned 8th instruction parameter indicates the single game picture number that above-mentioned second decoded video frame includes
According to be top field picture data or bottom field picture data (for example, it is assumed that the single game view data that above-mentioned second decoded video frame includes
To push up field picture data, then the 8th instruction parameter indicates that the single game view data that above-mentioned second decoded video frame includes is top field figure
As data, if the single game view data that above-mentioned second decoded video frame includes is bottom field picture data, the 8th instruction parameter refers to
Show that the single game view data that above-mentioned second decoded video frame includes is bottom field picture data).Above-mentioned 6th instruction parameter may indicate that
Go out homologous decoded video frame the going out in above-mentioned video code flow of above-mentioned second decoded video frame and above-mentioned second decoded video frame
Now order.
Wherein, the 5th instruction parameter for example may include at least two bits, wherein, the 5th instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.6th instruction parameter is for example including at least one bit.6th instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
Wherein, it is above-mentioned that above-mentioned first image decoding data and above-mentioned second image decoding data are blended
Image, such as may include:If the first image decoding data are top field picture decoding data, the second image decoding data are bottom field figure
As decoding data, the top field picture data using the first image decoding data as blending image, the second image decoding data are made
For the bottom field picture data for the image that blends.It is or, above-mentioned by above-mentioned first image decoding data and above-mentioned second image decoding data
Being blended to obtain blending image may include:If the second image decoding data are top field picture decoding data, the first image decoding
Data are bottom field picture decoding data, the top field picture data using the second image decoding data as blending image, by the first figure
As bottom field picture data of the decoding data as blending image.
For ease of being better understood from and implementing the above-mentioned technical proposal of the embodiment of the present invention, specifically should below by some
It is illustrated with scene.
Some embodiments of the invention, by the field syntax elements encoded implication of extension standards protocol definition, it is advantageously implemented
More flexible field encoding and decoding.
For example, picture structure (picture_structure) indicating bit:When present image is horizontally interlaced image, refer to
Show that present image encodes in a row by row fashion or interlace mode encodes.
For example, can represent that two field picture data occur successively when the value of picture_structure indicating bits is 0,
I.e. present image is encoded in an interleaved manner, is first encoded or is decoded field picture data re-encoding or decode another field picture number
According to;It can represent that the two field picture data blending of present image occurs when picture_structure indicating bits value is 1, i.e.
Present image is encoded or decoded in a row by row fashion, that is, it is top field not distinguish two field picture data when encoding or decoding deliberately
View data or bottom field picture data.
Such as the implication of expansible progressive_frame indicating bits.Wherein, progressive_ in standard agreement
Frame indicating bits are served only for one frame of video of instruction and include progressive scanning picture data or comprising horizontally interlaced image data.This
The instruction implication of some embodiments extension progressive_frame indicating bits is invented, for example, progressive_frame refers to
Show position except may indicate that in video code flow that a frame of video includes progressive scanning picture data or comprising horizontally interlaced image data,
Also can indicate that when frame of video includes single game view data, indicate the single game view data be image top field picture data or
It is bottom field picture data.
Wherein, be specifically defined for example can be as follows for progressive_frame indicating bits:
For example, when the value of progressive_frame indicating bits is 0, the two field picture that frame of video includes may indicate that
Data are that i.e. image is horizontally interlaced image from field picture data at different moments.Now the frame of video can be with side line by line
Formula encodes/decodes (such as picture_structure indicating bits value is 1) or can carry out encoding/solving in an interleaved manner
Code (picture_structure indicating bits value is 0).
When the value of progressive_frame indicating bits is 1, it may indicate that the two field picture data of image blend
Existing, i.e., present image is encoded or decoded in a row by row fashion, that is, does not distinguish the two field picture of image when encoding or decoding deliberately
Data are top field picture data or bottom field picture data.Now, the frame of video encodes/decodes in a row by row fashion.
When progressive_frame indicating bits value be 2 when, can indicate frame of video include single game view data and
Not comprising two field picture data, also, the single game view data that the frame of video includes is top field picture data.
When progressive_frame indicating bits value be 3 when, can indicate frame of video include single game view data and
Not comprising two field picture data, also, the single game view data that the frame of video includes is bottom field picture data.
It is appreciated that because the progressive_frame indicating bits after extension implication have four kinds of possible values,
Therefore progressive_frame indicating bits include at least two bits.Progressive_frame indicating bits can look at above-mentioned
A kind of specific implementation of the first instruction parameter in embodiment.
Wherein, in the extension of above-mentioned progressive_frame indicating bits, when progressive_frame indicating bits
A frame of video includes single game view data and does not include two field picture data during value 2 or 3, therefore need not now pass through
Picture_structure indicating bits indicate the code encoding/decoding mode of the two field picture data in frame of video, therefore, now
The value of picture_structure indicating bits is set to fixed value, can such as fix being set to 1 or 0.
As can be seen that by the implication of extension syntax element progressive_frame indicating bits, be advantageous to effectively support
One frame of video is individually encoded in a manner of single game, to coded data management and reference during so as to be advantageous to simplify coding on the scene
The complexity of frame management.
In addition, the implication of also expansible syntactic element top_field_first indicating bits, top_field_first instructions
Position may be used to indicate the sequencing that the homologous frame of video of a frame of video and the frame of video occurs in video code flow.top_
Being specifically defined for field_first indicating bits for example can be as follows:
For example, when the value of top_field_first indicating bits is 1, may indicate that in the field picture data correspondence image
Top field picture data occur in video code flow prior to bottom field picture data, i.e. the homologous frame of video of frame of video and the frame of video
The sequencing occurred in video code flow is that the frame of video comprising bottom field picture data is in video code flow prior to the frame of video
Homologous frame of video (i.e. comprising top field picture data frame of video) occur.
Such as when the value of top_field_first indicating bits is 0, it may indicate that in the field picture data correspondence image
Push up field picture data in video code flow after bottom field picture data to occur, i.e. the homologous frame of video of frame of video and the frame of video exists
Occur in video code flow it is rear be sequentially, comprising top field picture data frame of video in video code flow prior to the frame of video
Homologous frame of video (frame of video for including bottom field picture data) occurs.
Wherein, by the instruction implication of extension syntax element top_field_first indicating bits, video decoding dress is advantageous to
Put and clearly know how each field picture data for decoding output and opposite field view data are blended to obtain blending figure
Picture.Wherein, top_field_first indicating bits can look at a kind of specific implementation of the second instruction parameter in above-described embodiment.
Below by some specific examples, to illustrate syntactic element progressive_frame indicating bits and top_
Some occupation modes of field_first indicating bits.
First illustrated below with reference to method for video coding.
The embodiment of the present invention also provides a kind of method for video coding, it may include:Image P1 is obtained, to above-mentioned image P1 top
Field picture data carry out Video coding to obtain the first Video coding frame.Video is carried out to above-mentioned image P1 bottom field picture data
Encode to obtain the second Video coding frame.By above-mentioned first Video coding frame and above-mentioned second Video coding frame write-in video codes
Stream.Wherein, above-mentioned first Video coding frame includes first coding and indicates that (first coding instruction for example may be included in above-mentioned the
The frame head and/or other positions of one Video coding frame), first coding instruction include progressive_frame indicating bits with
Top_field_first indicating bits, wherein, the value of progressive_frame indicating bits is 2 (i.e. progressive_
Frame indicating bits indicate that above-mentioned first Video coding frame is Video coding frame corresponding to single game view data, and may further indicate that
It is top field picture data to state the single game view data that the first Video coding frame includes).The value of top_field_first indicating bits
For 1, (i.e. top_field_first indicating bits instruction first Video coding frame in video code flow goes out prior to the second Video coding frame
It is existing).Wherein, above-mentioned second Video coding frame includes second coding and indicates that (second coding instruction for example may be included in above-mentioned
The frame head and/or other positions of second Video coding frame), second coding instruction includes progressive_frame indicating bits
With top_field_first indicating bits, wherein, the progressive_frame indicating bits that second coding instruction includes take
It is worth that (the progressive_frame indicating bits that i.e. second coding instruction includes indicate that above-mentioned second Video coding frame be singly for 3
Video coding frame corresponding to field picture data, and the progressive_frame indicating bits that second coding instruction includes are also
It may indicate that the single game view data that above-mentioned second Video coding frame includes is bottom field picture data).Wherein, second coding instruction
Comprising the values of top_field_first indicating bits (i.e. top_field_first indicating bits instruction is in video code flow for 1
First Video coding frame occurs prior to the second Video coding frame).
The embodiment of the present invention also provides a kind of method for video coding, it may include:Image P2 is obtained, to above-mentioned image P2 top
Field picture data carry out Video coding to obtain the first Video coding frame.Video is carried out to above-mentioned image P2 bottom field picture data
Encode to obtain the second Video coding frame.By above-mentioned first Video coding frame and above-mentioned second Video coding frame write-in video codes
Stream.Wherein, above-mentioned first Video coding frame includes first coding and indicates that (first coding instruction for example may be included in above-mentioned the
The frame head and/or other positions of one Video coding frame), first coding instruction include progressive_frame indicating bits with
Top_field_first indicating bits, wherein, the value of progressive_frame indicating bits is 2 (i.e. progressive_
Frame indicating bits indicate that above-mentioned first Video coding frame is Video coding frame corresponding to single game view data, and may further indicate that
It is top field picture data to state the single game view data that the first Video coding frame includes).The value of top_field_first indicating bits
For 0, (i.e. top_field_first indicating bits instruction first Video coding frame in video code flow goes out after the second Video coding frame
It is existing).Wherein, above-mentioned second Video coding frame includes second coding and indicates that (second coding instruction for example may be included in above-mentioned
The frame head and/or other positions of second Video coding frame), second coding instruction includes progressive_frame indicating bits
With top_field_first indicating bits, wherein, the progressive_frame indicating bits that second coding instruction includes take
It is worth that (the progressive_frame indicating bits that i.e. second coding instruction includes indicate that above-mentioned second Video coding frame be singly for 3
Video coding frame corresponding to field picture data, and the progressive_frame indicating bits that second coding instruction includes may be used also
Indicate that the single game view data that above-mentioned second Video coding frame includes is bottom field picture data).What second coding instruction included
The value of top_field_first indicating bits is that 0 (i.e. top_field_first indicating bits indicate first to regard in video code flow
Frequency coded frame occurs after the second Video coding frame).
As can be seen that in above-mentioned several citing Video Coding Schemes, to the top field picture data and bottom field picture number of image
According to carrying out Video coding respectively to obtain the first Video coding frame and the second Video coding frame;By the first Video coding frame and second
Video coding frame writes video code flow.Wherein, indicate that first coding refers to because the first Video coding frame includes first coding
Show including progressive_frame indicating bits and top_field_first indicating bits, progressive_frame indicating bits
It is Video coding frame corresponding to single game view data to indicate above-mentioned first Video coding frame, and progressive_frame is indicated
Position also indicates that the single game view data that the first Video coding frame includes is top field picture data, and top_field_first is indicated
Position indicates the sequencing that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow.
Due to clearly being indicated using the first Video coding frame, what the view data of the different fields based on same image obtained homologous regards
The sequencing that frequency coded frame occurs in video code flow, this is advantageous to video decoder and clearly known based on same image
The sequencing that the homologous Video coding frame that the view data of different fields obtains occurs in video code flow, and then be advantageous to video
The different field picture data for decoding obtained same image are correctly carried out image blending by decoding apparatus.
First illustrated below with reference to video encoding/decoding method.
It is assumed that being decoded to the decoded video frame in video code flow, the field picture data sequence exported after decoding is successively
It is as follows:Bot1, top2, bot3, top4, bot5 ....
Wherein, bot represents that bottom field picture data, top represent top field picture data.Wherein, the numbering behind bot and top
(i.e. 1,2,3,4,5 ...) output order after expression code stream decoding.The progressive_ of decoded video frame in video code flow
The value of frame indicating bits is 2, and (that is, it be to push up field picture that decoded video frame, which includes single game view data and the single game view data,
Data) or 3 (that is, it is bottom field picture data that decoded video frame, which includes single game view data and the single game view data).Also, institute
The value for having the top_field_first indicating bits of coded frame is 1.In the present example, due to the top_ of all coded frames
The value of field_first indicating bits is 1, therefore, in code stream in image corresponding to all field picture data be top field figure
As data occur in video code flow prior to bottom field picture data.Therefore, it can be seen from above-mentioned code flow structure, bot1 top2 it
Preceding appearance, because the top field picture data of syntactic element top_field_first indicating bits instruction image are all the time prior to Di Changding
Field picture data occur in video code flow, and therefore, bot1 and top2 can not blend to blend into a width in video decoder to scheme
Picture, bot3 occur after top2 in code stream, and after bot3 and top2 decoding output order it is adjacent, therefore, can by top2 with
Bot3 blendings are into piece image, and similarly, top4 and bot5 blends into piece image.Other can be by that analogy.
Similarly, it is assumed that the value of the top_field_first indicating bits of all decoded video frames is in above-mentioned code flow structure
0, then video decoder bot1 and top2 can be blended into piece image, similarly, bot3 and top4 can be blended into a width figure
Picture.Other can be by that analogy.
In addition, field can also be increased according to the combination of progressive_frame and top_field_first syntactic elements
The anti-error code capacity of video decoder during coding.
It is assumed that being decoded to the decoded video frame in video code flow, the field picture data sequence exported after decoding is successively
It is as follows:Bot1, top2, top3, bot4, bot5 ....The progressive_frame of decoded video frame in video code flow refers to
The value for showing position is 2 (that is, decoded video frame includes single game view data and the single game view data is top field picture data) or 3
(that is, it is bottom field picture data that decoded video frame, which includes single game view data and the single game view data).It is different from previous example
, the value of top_field_first indicating bits is not quite similar corresponding to decoded video frame, such as bot1, top2, top3,
The value of the corresponding top_field_first indicating bits of bot4, bot5 ... is as follows successively:0,0,1,1,1 ....
Wherein, because the value of top_field_first indicating bits corresponding to bot1 and top2 is 0, therefore this two figures
It is that top field picture data occur in video code flow after bottom field picture data in the image as corresponding to data, therefore, video solution
Code device can blend bot1 and top2 into piece image.Due to top_field_first indicating bits corresponding to top3 and bot4
Value be 1, therefore, in image corresponding to this two field picture data be top field picture data in video code flow prior to bottom field figure
As data appearance, video decoder can blend top3 and bot4 into piece image.Other can be by that analogy.It can now recognize
Missing image or error of transmission does not occur for this section of video code flow.
Again it is assumed that decoded to the decoded video frame in video code flow, the field picture data sequence exported after decoding according to
It is secondary as follows:Bot1, top2, top3, bot4, bot5 ....The progressive_frame of decoded video frame in video code flow
The value of indicating bit is 2 or 3.Wherein, the value of top_field_first indicating bits is not quite similar corresponding to decoded video frame,
The value of the corresponding top_field_first indicating bits of such as bot1, top2, top3, bot4, top5 ... is as follows successively:0,
0,0,1,1 ....
Because the value of top_field_first indicating bits corresponding to bot1 and top2 is 0, therefore this two field picture data
It is that top field picture data occur in video code flow after bottom field picture data in corresponding image, therefore video decoder can
Bot1 and top2 is blended into piece image.Because the value of top_field_first indicating bits corresponding to top3 is 0, therefore,
It is that top field picture data occur in video code flow after bottom field picture data in image corresponding to this single game view data, and
Be before top3 close to top2, because piece image can not possibly include two top field picture data, it is possible thereby to deduce, top2
A width bottom field picture data are lost between top3, or error code occurs in transmitting procedure and causes some top_ for video code flow
Field_first indicating bits and/or progressive_frame instruction bit-errors.Video decoder is according in video code flow
The syntactic elements such as progressive_frame indicating bits and top_field_first indicating bits that decoded video frame includes take
Value, after judging that frame losing or error condition occurs in video video code stream, can according to setting strategy decision how to handle frame losing or
Error condition.
It following is a brief introduction of to the video-frequency compression method of video coding apparatus.Video-frequency compression method may include frame internal pressure
Contracting and interframe compression, video coding apparatus now more uses the interframe compression method based on estimation.For example, Video coding fills
Put may include using interframe compression method to the process of compression of images and coding:Video coding apparatus divides image block to be encoded
Into several equal-sized subimage blocks, then for each subimage block, search for and current subgraph in a reference image
Then the respective pixel values of the subimage block and prediction block are subtracted each other to obtain residual error as prediction block by the image block that block most matches,
By the transformed value progress entropy code with being obtained after quantifying of the residual error, the bit stream for finally obtaining entropy code and motion vector letter
The coded datas such as breath coding.Accordingly, progress entropy decoding obtains accordingly after video decoder obtains entropy code bit stream first
Residual error and the coded data such as corresponding motion vector information;Then obtained in a reference image according to motion vector information
Corresponding matching image block (i.e. above-mentioned prediction block), picture is corresponded in the value and residual values of each pixel further according to matching in image block
The value of vegetarian refreshments is added to obtain the value of each pixel in current subimage block.Infra-frame prediction refers to utilize the information pair in this view picture
Image block is predicted to obtain prediction block, and video coding apparatus is according to the picture around predictive mode, prediction direction, current image block
Element is worth to pixel corresponding to prediction block, subtracts each other to obtain residual error by current image block pixel and prediction block pixel, residual error is transformed,
Quantify to write in code stream with after entropy code;Video decoder parses code stream, and entropy decoding, inverse quantization, inverse transformation are carried out to code stream
After obtain residual block, video decoder is worth to prediction block according to the pixel around predictive mode, prediction direction and image block,
Residual block pixel is added with prediction block pixel to obtain reconstructed image block.
Inter prediction encoding is mainly used for eliminating the redundancy of video sequence in time, and its concrete processing procedure is main
Including:When video coding apparatus encodes some image block in present image, enter in all reference frames of the image block
Row search, obtains a prediction block corresponding with the image block in each reference frame respectively, and according to one group got
Prediction block carries out coded treatment to the image block.In order to improve the efficiency of inter prediction encoding, inter prediction image can also enter
One step is subdivided into preceding to interframe prognostic chart picture, i.e., the P frames being commonly called as in video coding and decoding technology, and bidirectional interframe predictive image,
The B frames being commonly called as in video coding and decoding technology.Wherein, preceding paragraph inter prediction image uses the figure before currently treating encoding and decoding image
As carrying out coding-decoding operation, bidirectional interframe predictive image carries out volume solution using image before currently treating encoding and decoding image and afterwards
Code operation.Because bidirectional interframe predictive image needs to use the current image treated after encoding and decoding image to carry out coding-decoding operation,
Image after the first encoding and decoding bidirectional interframe predictive image is needed before treating encoding and decoding bidirectional interframe predictive image.
Because bidirectional interframe predictive image has used coding information before present image and afterwards, bidirectional interframe predictive figure
As code efficiency can be improved compared to forward direction interframe prognostic chart picture.In order to further improve the coding of bidirectional interframe predictive image
Efficiency, hierarchical B frame (Hierarchical B) technology are applied to the encoding and decoding of bidirectional interframe predictive image.Wherein, in level B frames
In technology, bidirectional interframe predictive image can act also as reference picture use.The B frames of different levels have different priority, excellent
The high B frames of first level can be low as priority B frames reference frame.The priority of above-mentioned B frames can be used for by some syntactic elements
Mark.
For ease of being better understood from and implementing the above-mentioned technical proposal that the present invention is implemented, it is also provided below above-mentioned for implementing
The relevant apparatus of scheme.
Referring to Fig. 3, the present invention implements a kind of video coding apparatus provided, it may include:
Acquiring unit 310, for obtaining image.
Coding unit 320, for carrying out Video coding to the first field picture data of above-mentioned image to obtain the first video
Coded frame;Video coding is carried out to obtain the second Video coding frame to the second field picture data of above-mentioned image.
Writing unit 330, for above-mentioned first Video coding frame and above-mentioned second Video coding frame to be write into video code flow.
Wherein, above-mentioned first Video coding frame includes first coding and indicated, above-mentioned first coding instruction instruction is above-mentioned
First Video coding frame is Video coding frame corresponding to single game view data, and above-mentioned first coding instruction also indicates above-mentioned first
The single game view data that Video coding frame includes is top field picture data or bottom field picture data, and above-mentioned first coding indicates
Also indicate the sequencing that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow.
Wherein, above-mentioned first field picture data are top field picture data, and above-mentioned second field picture data are bottom field picture
Data, or above-mentioned second field picture data are top field picture data, and above-mentioned first field picture data are bottom field picture data.
The present invention some possible embodiments in, it is above-mentioned first coding instruction can include first instruction parameter and
Second instruction parameter.Wherein, above-mentioned first instruction parameter indicates above-mentioned first Video coding frame corresponding to single game view data
Video coding frame (that is, the first instruction parameter may indicate that the single game view data that above-mentioned first Video coding frame includes piece image,
And the two field picture data not comprising piece image), above-mentioned first instruction parameter also indicates that above-mentioned first Video coding frame includes
Single game view data for top field picture data or bottom field picture data (for example, it is assumed that being the top field picture number to above-mentioned image
According to Video coding is carried out to obtain the first Video coding frame, then the first instruction parameter indicates what above-mentioned first Video coding frame included
Single game view data is top field picture data, it is assumed that is to carry out Video coding to the bottom field picture data of above-mentioned image to obtain the
One Video coding frame, then the single game view data that the first above-mentioned first Video coding frame of instruction parameter instruction includes is bottom field picture
Data).Wherein, above-mentioned second instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame above-mentioned
The sequencing occurred in video code flow.For example, if above-mentioned first Video coding frame is prior to above-mentioned second in above-mentioned video code flow
Video coding frame occurs, then the second instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame upper
The sequencing occurred in video code flow is stated for above-mentioned first Video coding frame prior to above-mentioned second Video coding frame to occur.Instead
It, is if above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame in above-mentioned video code flow, the second instruction ginseng
Number can indicate that the priority that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow is suitable
Sequence is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
In other possible embodiments of the present invention, above-mentioned first coding instruction can for example include the 3rd instruction
Parameter, the 4th instruction parameter and the second instruction parameter.Wherein, above-mentioned 3rd instruction parameter may indicate that above-mentioned first Video coding frame
For Video coding frame corresponding to single game view data, (that is, the 3rd instruction parameter may indicate that above-mentioned first Video coding frame includes one
The single game view data of width image, and the two field picture data not comprising piece image).Above-mentioned 4th instruction parameter may indicate that
It is to push up field picture data or bottom field picture data (for example, it is assumed that being to state the single game view data that the first Video coding frame includes
Video coding is carried out to obtain the first Video coding frame to the top field picture data of above-mentioned image, then in the 4th instruction parameter instruction
It is top field picture data to state the single game view data that the first Video coding frame includes, it is assumed that is the bottom field picture number to above-mentioned image
According to Video coding is carried out to obtain the first Video coding frame, then the 4th instruction parameter indicates what above-mentioned first Video coding frame included
Single game view data is bottom field picture data).Wherein, above-mentioned second instruction parameter indicates above-mentioned first Video coding frame and upper
State the sequencing that the second Video coding frame occurs in above-mentioned video code flow.
Wherein, the first instruction parameter for example may include at least two bits, wherein, the first instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.Second instruction parameter is for example including at least one bit.Second instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
In some embodiments of the invention, above-mentioned second Video coding frame includes second coding and indicated, and above-mentioned second
Field coding instruction indicates that above-mentioned second Video coding frame is Video coding frame corresponding to single game view data, above-mentioned second coding
Indicate also to indicate that the single game view data that above-mentioned second Video coding frame includes is bottom field picture data or pushes up field picture data,
Above-mentioned second coding instruction also indicates above-mentioned second Video coding frame and above-mentioned first Video coding frame in above-mentioned video codes
The sequencing occurred in stream.
The present invention some possible embodiments in, it is above-mentioned second coding instruction can include the 5th instruction parameter and
5th instruction parameter.Wherein, above-mentioned 5th instruction parameter indicates above-mentioned second Video coding frame corresponding to single game view data
Video coding frame (that is, the 5th instruction parameter may indicate that the single game view data that above-mentioned second Video coding frame includes piece image,
And the two field picture data not comprising piece image), above-mentioned 5th instruction parameter also indicates that above-mentioned second Video coding frame includes
Single game view data for top field picture data or bottom field picture data (for example, it is assumed that being the top field picture number to above-mentioned image
According to Video coding is carried out to obtain the second Video coding frame, then the 5th instruction parameter indicates what above-mentioned second Video coding frame included
Single game view data is top field picture data, it is assumed that is to carry out Video coding to the bottom field picture data of above-mentioned image to obtain the
Two Video coding frames, then the single game view data that the 5th above-mentioned second Video coding frame of instruction parameter instruction includes is bottom field picture
Data).Wherein, above-mentioned 6th instruction parameter indicates above-mentioned second Video coding frame and above-mentioned second Video coding frame above-mentioned
The sequencing occurred in video code flow.For example, if above-mentioned first Video coding frame is prior to above-mentioned second in above-mentioned video code flow
Video coding frame occurs, then the 6th instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame upper
The sequencing occurred in video code flow is stated for above-mentioned first Video coding frame prior to above-mentioned second Video coding frame to occur.Instead
It, is if above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame in above-mentioned video code flow, the 6th instruction ginseng
Number can indicate that the priority that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow is suitable
Sequence is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
In other possible embodiments of the present invention, above-mentioned second coding instruction can for example include the 7th instruction
Parameter, the 8th instruction parameter and the 6th instruction parameter.Wherein, above-mentioned 7th instruction parameter may indicate that above-mentioned second Video coding frame
For Video coding frame corresponding to single game view data, (that is, the 7th instruction parameter may indicate that above-mentioned second Video coding frame includes one
The single game view data of width image, and the two field picture data not comprising piece image).Above-mentioned 8th instruction parameter may indicate that
It is to push up field picture data or bottom field picture data (for example, it is assumed that being to state the single game view data that the second Video coding frame includes
Video coding is carried out to obtain the second Video coding frame to the top field picture data of above-mentioned image, then in the 8th instruction parameter instruction
It is top field picture data to state the single game view data that the second Video coding frame includes, it is assumed that is the bottom field picture number to above-mentioned image
According to Video coding is carried out to obtain the second Video coding frame, then the 8th instruction parameter indicates what above-mentioned second Video coding frame included
Single game view data is bottom field picture data).Wherein, above-mentioned 6th instruction parameter indicates above-mentioned second Video coding frame and upper
State the sequencing that the second Video coding frame occurs in above-mentioned video code flow.
Wherein, the 5th instruction parameter for example may include at least two bits, wherein, the 5th instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.6th instruction parameter is for example including at least one bit.6th instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
It is understood that the function of each functional module of the video coding apparatus 300 of the present embodiment can be according to above-mentioned side
Method specific implementation in method embodiment, its specific implementation process are referred to the associated description of above method embodiment, herein
Repeat no more.Video coding apparatus 300 can be any required output, the device of storage video, such as notebook computer, flat board electricity
The equipment such as brain, PC, mobile phone.
As can be seen that the video coding apparatus 300 of the present embodiment is to the first field picture data of image and the second field picture
Data carry out Video coding to obtain the first Video coding frame and the second Video coding frame respectively;By the first Video coding frame and
Two Video coding frames write video code flow.Wherein, indicated because the first Video coding frame includes first coding, above-mentioned first
Coding instruction indicates that above-mentioned first Video coding frame is Video coding frame corresponding to single game view data, and above-mentioned first encodes
Indicate also to indicate that the single game view data that above-mentioned first Video coding frame includes is to push up field picture data or bottom field picture data,
And first coding instruction also indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame in above-mentioned video code flow
The sequencing of middle appearance.Wherein, due to clearly being indicated using the first Video coding frame, the different fields based on same image
The sequencing that occurs in video code flow of the obtained homologous Video coding frame of view data, this is advantageous to video decoder
Clearly know that homologous Video coding frame that the view data of the different fields based on same image obtains occurs in video code flow
Sequencing, and then be advantageous to video decoder and correctly carry out the different field picture data for decoding obtained same image
Image blends.
Referring to Fig. 4, the embodiment of the present invention also provides a kind of video decoder 400, it may include:Decoding unit 410 and friendship
Melt unit 420.
Wherein, decoding unit 410, for carrying out video decoding to the first decoded video frame in video code flow to obtain the
One image decoding data;Video decoding is carried out to the second decoded video frame in above-mentioned video code flow to obtain the second image decoding
Data.Wherein, above-mentioned first decoded video frame includes first coding and indicated, above-mentioned first coding instruction indicates that first regards
Frequency decoding frame is decoded video frame corresponding to single game view data, and above-mentioned first coding instruction also indicates that above-mentioned first regards
The single game view data that frequency decoding frame includes is top field picture data or bottom field picture data, and above-mentioned first coding indicates
Also indicate the homologous decoded video frame of above-mentioned first decoded video frame and above-mentioned first decoded video frame in above-mentioned video code flow
Appearance order;Wherein, the different fields of above-mentioned first decoded video frame and above-mentioned homologous decoded video frame based on same image
View data obtains.
Blend unit 420, for according to above-mentioned first coding instruction by above-mentioned first image decoding data and above-mentioned the
Two image decoding data are blended to obtain blending image.
In some of the invention possible embodiments, above-mentioned first coding instruction can include the first instruction parameter and the
Two instruction parameters;Wherein, above-mentioned first instruction parameter instruction can indicate that the first decoded video frame is corresponding for single game view data
Decoded video frame (that is, first instruction parameter may indicate that above-mentioned first decoded video frame includes the single game picture number of piece image
According to, and the two field picture data not comprising piece image), and above-mentioned first instruction parameter also can indicate that above-mentioned first video
The single game view data that decoding frame includes is top field picture data or bottom field picture data (for example, it is assumed that above-mentioned first video solution
The single game view data that code frame includes is top field picture data, then the first instruction parameter indicates that above-mentioned first decoded video frame includes
Single game view data for top field picture data, the single game view data that above-mentioned first decoded video frame includes is bottom field picture number
According to then the first instruction parameter indicates that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data).It is above-mentioned
Second instruction parameter can indicate that above-mentioned first decoded video frame and the homologous decoded video frame of above-mentioned first decoded video frame exist
Appearance order in above-mentioned video code flow.
In other of the invention possible embodiments, above-mentioned first coding instruction can include the 3rd instruction parameter,
4th instruction parameter and the second instruction parameter;Wherein, above-mentioned 3rd instruction parameter indicates that the first decoded video frame is single game figure
The decoded video frame as corresponding to data.Above-mentioned 4th instruction parameter indicates the single game picture number that above-mentioned first decoded video frame includes
According to be top field picture data or bottom field picture data (for example, it is assumed that the single game view data that above-mentioned first decoded video frame includes
To push up field picture data, then the 4th instruction parameter indicates that the single game view data that above-mentioned first decoded video frame includes is top field figure
As data, the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, then the 4th instruction parameter instruction
The single game view data that above-mentioned first decoded video frame includes is bottom field picture data).Above-mentioned second instruction parameter can indicate that
Appearance of the homologous decoded video frame of above-mentioned first decoded video frame and above-mentioned first decoded video frame in above-mentioned video code flow
Sequentially.
Wherein, the first instruction parameter for example may include at least two bits, wherein, the first instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.Second instruction parameter is for example including at least one bit.Second instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
In some possible embodiments of the present invention, above-mentioned blending unit specific 420 can be used for, if above-mentioned first
Coding instruction indicates that the homologous decoded video frame of above-mentioned first decoded video frame regards in above-mentioned video code flow after above-mentioned first
Frequency decoding frame occurs, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame,
And output order is adjacent after the decoding of above-mentioned first image decoding data and above-mentioned second image decoding data, by above-mentioned first
Image decoding data and above-mentioned second image decoding data are blended to obtain blending image;
Or;Above-mentioned blending unit specific 420 can be used for, if above-mentioned first coding instruction indicates above-mentioned first video
The homologous decoded video frame of decoding frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned second
Decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first image decoding data
Output order is adjacent after decoding with above-mentioned second image decoding data, can be by above-mentioned first image decoding data and above-mentioned second
Image decoding data are blended to obtain blending image.
For example, above-mentioned blending unit 420 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first video solution
The homologous decoded video frame of code frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and above-mentioned first volume
Code instruction also indicates that the single game view data that above-mentioned first decoded video frame includes is top field picture data, and above-mentioned second is compiled
The homologous decoded video frame of above-mentioned second decoded video frame of code instruction instruction is in above-mentioned video code flow prior to above-mentioned second video
Decoding frame occurs, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is bottom
Field picture data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and
And output order is adjacent after the decoding of above-mentioned first image decoding data and above-mentioned second image decoding data, by above-mentioned first figure
As decoding data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned blending unit 420 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first decoded video frame
Homologous decoded video frame occur in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first coding refers to
Show and also indicate that the single game view data that above-mentioned first decoded video frame includes is top field picture data, and above-mentioned second coding refers to
Show that the homologous decoded video frame for indicating above-mentioned second decoded video frame decodes in above-mentioned video code flow after above-mentioned second video
Frame occurs, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is bottom field figure
As data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and on
Output order is adjacent after stating the decoding of the first image decoding data and above-mentioned second image decoding data, by above-mentioned first image solution
Code data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned blending unit 420 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first decoded video frame
Homologous decoded video frame occur in above-mentioned video code flow after above-mentioned first decoded video frame, and above-mentioned first coding refers to
Show and also indicate that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, and above-mentioned second coding refers to
Show that the homologous decoded video frame for indicating above-mentioned second decoded video frame decodes in above-mentioned video code flow prior to above-mentioned second video
Frame occurs, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is top field figure
As data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and on
Output order is adjacent after stating the decoding of the first image decoding data and above-mentioned second image decoding data, by above-mentioned first image solution
Code data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned blending unit 420 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first decoded video frame
Homologous decoded video frame occur in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first coding refers to
Show and also indicate that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, and above-mentioned second coding refers to
Show that the homologous decoded video frame for indicating above-mentioned second decoded video frame decodes in above-mentioned video code flow after above-mentioned second video
Frame occurs, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is top field figure
As data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and on
Output order is adjacent after stating the decoding of the first image decoding data and above-mentioned second image decoding data, by above-mentioned first image solution
Code data and above-mentioned second image decoding data are blended to obtain blending image.
In some of the invention possible embodiments, above-mentioned second coding instruction can include the 5th instruction parameter and the
Six instruction parameters;Wherein, above-mentioned 5th instruction parameter instruction can indicate that the second decoded video frame is corresponding for single game view data
Decoded video frame (that is, the 5th instruction parameter may indicate that above-mentioned second decoded video frame includes the single game picture number of piece image
According to, and the two field picture data not comprising piece image), and above-mentioned 5th instruction parameter also can indicate that above-mentioned second video
The single game view data that decoding frame includes is top field picture data or bottom field picture data (for example, it is assumed that above-mentioned second video solution
The single game view data that code frame includes is top field picture data, then the 5th instruction parameter indicates that above-mentioned second decoded video frame includes
Single game view data for top field picture data, the single game view data that above-mentioned second decoded video frame includes is bottom field picture number
According to then the 5th instruction parameter indicates that the single game view data that above-mentioned second decoded video frame includes is bottom field picture data).It is above-mentioned
6th instruction parameter can indicate that above-mentioned second decoded video frame and the homologous decoded video frame of above-mentioned second decoded video frame exist
Appearance order in above-mentioned video code flow.
In other of the invention possible embodiments, above-mentioned second coding instruction can include the 7th instruction parameter,
8th instruction parameter and the 6th instruction parameter;Wherein, above-mentioned 7th instruction parameter indicates that the second decoded video frame is single game figure
The decoded video frame as corresponding to data.Above-mentioned 8th instruction parameter indicates the single game picture number that above-mentioned second decoded video frame includes
According to be top field picture data or bottom field picture data (for example, it is assumed that the single game view data that above-mentioned second decoded video frame includes
To push up field picture data, then the 8th instruction parameter indicates that the single game view data that above-mentioned second decoded video frame includes is top field figure
As data, if the single game view data that above-mentioned second decoded video frame includes is bottom field picture data, the 8th instruction parameter refers to
Show that the single game view data that above-mentioned second decoded video frame includes is bottom field picture data).Above-mentioned 6th instruction parameter may indicate that
Go out homologous decoded video frame the going out in above-mentioned video code flow of above-mentioned second decoded video frame and above-mentioned second decoded video frame
Now order.
Wherein, the 5th instruction parameter for example may include at least two bits, wherein, the 5th instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.6th instruction parameter is for example including at least one bit.6th instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
It is understood that the function of each functional module of the video decoder 400 of the present embodiment can be according to above-mentioned side
Method specific implementation in method embodiment, its specific implementation process are referred to the associated description of above method embodiment, herein
Repeat no more.Video decoder 400 can be any required output, the device of broadcasting video, such as notebook computer, flat board electricity
The equipment such as brain, PC, mobile phone.
As can be seen that first decoded video frame and of the video decoder 400 of the present embodiment in video code flow
After two decoded video frames carry out video decoding to obtain the first image decoding data and the second image decoding data, due to being root
The instruction of the first coding instruction included according to the first decoded video frame, and the second decoded video frame decode with above-mentioned first video
Appearance order of the frame in above-mentioned video code flow, and after the decoding of the first image decoding data and above-mentioned second image decoding data
Output order, is handed over to determine whether to be blended above-mentioned first image decoding data and above-mentioned second image decoding data
Melt image.Wherein, because the first decoded video frame clearly indicates, the first decoded video frame and its homologous decoded video frame exist
The sequencing occurred in video code flow, this is advantageous to the figure that video decoder clearly knows the different fields based on same image
As the sequencing that the homologous decoded video frame that data obtain occurs in video code flow, and then be advantageous to video decoder just
True carries out image blending by the different field picture data for decoding obtained same image.
Referring to Fig. 5, Fig. 5 be video coding apparatus 500 provided in an embodiment of the present invention schematic diagram, video coding apparatus
500 may include at least one bus 501, at least one processor 502 being connected with bus 501 and be connected with bus 501
At least one memory 503.
Wherein, processor 502 calls the code stored in memory 503 for obtaining image by bus 501;It is right
First field picture data of above-mentioned image carry out Video coding to obtain the first Video coding frame;To second figure of above-mentioned image
As data carry out Video coding to obtain the second Video coding frame;By above-mentioned first Video coding frame and above-mentioned second Video coding
Frame writes video code flow.
Wherein, above-mentioned first Video coding frame includes first coding and indicated, above-mentioned first coding instruction instruction is above-mentioned
First Video coding frame is Video coding frame corresponding to single game view data, and above-mentioned first coding instruction also indicates above-mentioned first
The single game view data that Video coding frame includes is top field picture data or bottom field picture data, and above-mentioned first coding indicates
Also indicate the sequencing that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow.
Wherein, above-mentioned first field picture data are top field picture data, and above-mentioned second field picture data are bottom field picture
Data, or above-mentioned second field picture data are top field picture data, and above-mentioned first field picture data are bottom field picture data.
The present invention some possible embodiments in, it is above-mentioned first coding instruction can include first instruction parameter and
Second instruction parameter.Wherein, above-mentioned first instruction parameter indicates above-mentioned first Video coding frame corresponding to single game view data
Video coding frame (that is, the first instruction parameter may indicate that the single game view data that above-mentioned first Video coding frame includes piece image,
And the two field picture data not comprising piece image), above-mentioned first instruction parameter also indicates that above-mentioned first Video coding frame includes
Single game view data for top field picture data or bottom field picture data (for example, it is assumed that being the top field picture number to above-mentioned image
According to Video coding is carried out to obtain the first Video coding frame, then the first instruction parameter indicates what above-mentioned first Video coding frame included
Single game view data is top field picture data, it is assumed that is to carry out Video coding to the bottom field picture data of above-mentioned image to obtain the
One Video coding frame, then the single game view data that the first above-mentioned first Video coding frame of instruction parameter instruction includes is bottom field picture
Data).Wherein, above-mentioned second instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame above-mentioned
The sequencing occurred in video code flow.For example, if above-mentioned first Video coding frame is prior to above-mentioned second in above-mentioned video code flow
Video coding frame occurs, then the second instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame upper
The sequencing occurred in video code flow is stated for above-mentioned first Video coding frame prior to above-mentioned second Video coding frame to occur.Instead
It, is if above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame in above-mentioned video code flow, the second instruction ginseng
Number can indicate that the priority that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow is suitable
Sequence is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
In other possible embodiments of the present invention, above-mentioned first coding instruction can for example include the 3rd instruction
Parameter, the 4th instruction parameter and the second instruction parameter.Wherein, above-mentioned 3rd instruction parameter may indicate that above-mentioned first Video coding frame
For Video coding frame corresponding to single game view data, (that is, the 3rd instruction parameter may indicate that above-mentioned first Video coding frame includes one
The single game view data of width image, and the two field picture data not comprising piece image).Above-mentioned 4th instruction parameter may indicate that
It is to push up field picture data or bottom field picture data (for example, it is assumed that being to state the single game view data that the first Video coding frame includes
Video coding is carried out to obtain the first Video coding frame to the top field picture data of above-mentioned image, then in the 4th instruction parameter instruction
It is top field picture data to state the single game view data that the first Video coding frame includes, it is assumed that is the bottom field picture number to above-mentioned image
According to Video coding is carried out to obtain the first Video coding frame, then the 4th instruction parameter indicates what above-mentioned first Video coding frame included
Single game view data is bottom field picture data).Wherein, above-mentioned second instruction parameter indicates above-mentioned first Video coding frame and upper
State the sequencing that the second Video coding frame occurs in above-mentioned video code flow.
Wherein, the first instruction parameter for example may include at least two bits, wherein, the first instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.Second instruction parameter is for example including at least one bit.Second instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
In some embodiments of the invention, above-mentioned second Video coding frame includes second coding and indicated, and above-mentioned second
Field coding instruction indicates that above-mentioned second Video coding frame is Video coding frame corresponding to single game view data, above-mentioned second coding
Indicate also to indicate that the single game view data that above-mentioned second Video coding frame includes is bottom field picture data or pushes up field picture data,
Above-mentioned second coding instruction also indicates above-mentioned second Video coding frame and above-mentioned first Video coding frame in above-mentioned video codes
The sequencing occurred in stream.
The present invention some possible embodiments in, it is above-mentioned second coding instruction can include the 5th instruction parameter and
5th instruction parameter.Wherein, above-mentioned 5th instruction parameter indicates above-mentioned second Video coding frame corresponding to single game view data
Video coding frame (that is, the 5th instruction parameter may indicate that the single game view data that above-mentioned second Video coding frame includes piece image,
And the two field picture data not comprising piece image), above-mentioned 5th instruction parameter also indicates that above-mentioned second Video coding frame includes
Single game view data for top field picture data or bottom field picture data (for example, it is assumed that being the top field picture number to above-mentioned image
According to Video coding is carried out to obtain the second Video coding frame, then the 5th instruction parameter indicates what above-mentioned second Video coding frame included
Single game view data is top field picture data, it is assumed that is to carry out Video coding to the bottom field picture data of above-mentioned image to obtain the
Two Video coding frames, then the single game view data that the 5th above-mentioned second Video coding frame of instruction parameter instruction includes is bottom field picture
Data).Wherein, above-mentioned 6th instruction parameter indicates above-mentioned second Video coding frame and above-mentioned second Video coding frame above-mentioned
The sequencing occurred in video code flow.For example, if above-mentioned first Video coding frame is prior to above-mentioned second in above-mentioned video code flow
Video coding frame occurs, then the 6th instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame upper
The sequencing occurred in video code flow is stated for above-mentioned first Video coding frame prior to above-mentioned second Video coding frame to occur.Instead
It, is if above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame in above-mentioned video code flow, the 6th instruction ginseng
Number can indicate that the priority that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow is suitable
Sequence is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
In other possible embodiments of the present invention, above-mentioned second coding instruction can for example include the 7th instruction
Parameter, the 8th instruction parameter and the 6th instruction parameter.Wherein, above-mentioned 7th instruction parameter may indicate that above-mentioned second Video coding frame
For Video coding frame corresponding to single game view data, (that is, the 7th instruction parameter may indicate that above-mentioned second Video coding frame includes one
The single game view data of width image, and the two field picture data not comprising piece image).Above-mentioned 8th instruction parameter may indicate that
It is to push up field picture data or bottom field picture data (for example, it is assumed that being to state the single game view data that the second Video coding frame includes
Video coding is carried out to obtain the second Video coding frame to the top field picture data of above-mentioned image, then in the 8th instruction parameter instruction
It is top field picture data to state the single game view data that the second Video coding frame includes, it is assumed that is the bottom field picture number to above-mentioned image
According to Video coding is carried out to obtain the second Video coding frame, then the 8th instruction parameter indicates what above-mentioned second Video coding frame included
Single game view data is bottom field picture data).Wherein, above-mentioned 6th instruction parameter indicates above-mentioned second Video coding frame and upper
State the sequencing that the second Video coding frame occurs in above-mentioned video code flow.
Wherein, the 5th instruction parameter for example may include at least two bits, wherein, the 5th instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.6th instruction parameter is for example including at least one bit.6th instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
It is understood that the function of each functional module of the video coding apparatus 500 of the present embodiment can be according to above-mentioned side
Method specific implementation in method embodiment, its specific implementation process are referred to the associated description of above method embodiment, herein
Repeat no more.Video coding apparatus 500 can be any required output, the device of storage video, such as notebook computer, flat board electricity
The equipment such as brain, PC, mobile phone.
As can be seen that the video coding apparatus 500 of the present embodiment is to the first field picture data of image and the second field picture
Data carry out Video coding to obtain the first Video coding frame and the second Video coding frame respectively;By the first Video coding frame and
Two Video coding frames write video code flow.Wherein, indicated because the first Video coding frame includes first coding, above-mentioned first
Coding instruction indicates that above-mentioned first Video coding frame is Video coding frame corresponding to single game view data, and above-mentioned first encodes
Indicate also to indicate that the single game view data that above-mentioned first Video coding frame includes is to push up field picture data or bottom field picture data,
And first coding instruction also indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame in above-mentioned video code flow
The sequencing of middle appearance.Wherein, due to clearly being indicated using the first Video coding frame, the different fields based on same image
The sequencing that occurs in video code flow of the obtained homologous Video coding frame of view data, this is advantageous to video decoder
Clearly know that homologous Video coding frame that the view data of the different fields based on same image obtains occurs in video code flow
Sequencing, and then be advantageous to video decoder and correctly carry out the different field picture data for decoding obtained same image
Image blends.
Referring to Fig. 6, Fig. 6 is the structured flowchart for the video coding apparatus 600 that another embodiment of the present invention provides.Wherein,
Video coding apparatus 600 can include:At least one processor 601, at least one network interface 604 or other users interface 603,
Memory 606, at least one communication bus 602.Communication bus 602 is used to realize the connection communication between these components.Wherein,
The video coding apparatus 600 can optionally include user interface 603, including display is (for example, touch-screen, LCD, CRT, complete
Breath imaging (Holographic) or projection (Projector) etc.), pointing device (such as mouse, trace ball (trackball)
Touch-sensitive plate or touch-screen etc.), camera and/or sound pick up equipment etc..
Wherein, memory 602 can include read-only storage and random access memory, and provide and refer to processor 601
Order and data.A part of in memory 602 can also include nonvolatile RAM (NVRAM).
In some embodiments, memory 606 stores following element, can perform module or data structure, or
Their subset of person, or their superset:
Operating system 6061, comprising various system programs, for realizing that various basic businesses and processing are hardware based
Task.
Application program module 6062, comprising various application programs, for realizing various applied business.
In an embodiment of the present invention, by calling program or the instruction of the storage of memory 606, processor 601 obtains figure
Picture;Video coding is carried out to obtain the first Video coding frame to the first field picture data of above-mentioned image;To the of above-mentioned image
Two field picture data carry out Video coding to obtain the second Video coding frame;Above-mentioned first Video coding frame and above-mentioned second are regarded
Frequency coded frame writes video code flow.
Wherein, above-mentioned first Video coding frame includes first coding and indicated, above-mentioned first coding instruction instruction is above-mentioned
First Video coding frame is Video coding frame corresponding to single game view data, and above-mentioned first coding instruction also indicates above-mentioned first
The single game view data that Video coding frame includes is top field picture data or bottom field picture data, and above-mentioned first coding indicates
Also indicate the sequencing that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow.
Wherein, above-mentioned first field picture data are top field picture data, and above-mentioned second field picture data are bottom field picture
Data, or above-mentioned second field picture data are top field picture data, and above-mentioned first field picture data are bottom field picture data.
The present invention some possible embodiments in, it is above-mentioned first coding instruction can include first instruction parameter and
Second instruction parameter.Wherein, above-mentioned first instruction parameter indicates above-mentioned first Video coding frame corresponding to single game view data
Video coding frame (that is, the first instruction parameter may indicate that the single game view data that above-mentioned first Video coding frame includes piece image,
And the two field picture data not comprising piece image), above-mentioned first instruction parameter also indicates that above-mentioned first Video coding frame includes
Single game view data for top field picture data or bottom field picture data (for example, it is assumed that being the top field picture number to above-mentioned image
According to Video coding is carried out to obtain the first Video coding frame, then the first instruction parameter indicates what above-mentioned first Video coding frame included
Single game view data is top field picture data, it is assumed that is to carry out Video coding to the bottom field picture data of above-mentioned image to obtain the
One Video coding frame, then the single game view data that the first above-mentioned first Video coding frame of instruction parameter instruction includes is bottom field picture
Data).Wherein, above-mentioned second instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame above-mentioned
The sequencing occurred in video code flow.For example, if above-mentioned first Video coding frame is prior to above-mentioned second in above-mentioned video code flow
Video coding frame occurs, then the second instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame upper
The sequencing occurred in video code flow is stated for above-mentioned first Video coding frame prior to above-mentioned second Video coding frame to occur.Instead
It, is if above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame in above-mentioned video code flow, the second instruction ginseng
Number can indicate that the priority that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow is suitable
Sequence is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
In other possible embodiments of the present invention, above-mentioned first coding instruction can for example include the 3rd instruction
Parameter, the 4th instruction parameter and the second instruction parameter.Wherein, above-mentioned 3rd instruction parameter may indicate that above-mentioned first Video coding frame
For Video coding frame corresponding to single game view data, (that is, the 3rd instruction parameter may indicate that above-mentioned first Video coding frame includes one
The single game view data of width image, and the two field picture data not comprising piece image).Above-mentioned 4th instruction parameter may indicate that
It is to push up field picture data or bottom field picture data (for example, it is assumed that being to state the single game view data that the first Video coding frame includes
Video coding is carried out to obtain the first Video coding frame to the top field picture data of above-mentioned image, then in the 4th instruction parameter instruction
It is top field picture data to state the single game view data that the first Video coding frame includes, it is assumed that is the bottom field picture number to above-mentioned image
According to Video coding is carried out to obtain the first Video coding frame, then the 4th instruction parameter indicates what above-mentioned first Video coding frame included
Single game view data is bottom field picture data).Wherein, above-mentioned second instruction parameter indicates above-mentioned first Video coding frame and upper
State the sequencing that the second Video coding frame occurs in above-mentioned video code flow.
Wherein, the first instruction parameter for example may include at least two bits, wherein, the first instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.Second instruction parameter is for example including at least one bit.Second instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
In some embodiments of the invention, above-mentioned second Video coding frame includes second coding and indicated, and above-mentioned second
Field coding instruction indicates that above-mentioned second Video coding frame is Video coding frame corresponding to single game view data, above-mentioned second coding
Indicate also to indicate that the single game view data that above-mentioned second Video coding frame includes is bottom field picture data or pushes up field picture data,
Above-mentioned second coding instruction also indicates above-mentioned second Video coding frame and above-mentioned first Video coding frame in above-mentioned video codes
The sequencing occurred in stream.
The present invention some possible embodiments in, it is above-mentioned second coding instruction can include the 5th instruction parameter and
5th instruction parameter.Wherein, above-mentioned 5th instruction parameter indicates above-mentioned second Video coding frame corresponding to single game view data
Video coding frame (that is, the 5th instruction parameter may indicate that the single game view data that above-mentioned second Video coding frame includes piece image,
And the two field picture data not comprising piece image), above-mentioned 5th instruction parameter also indicates that above-mentioned second Video coding frame includes
Single game view data for top field picture data or bottom field picture data (for example, it is assumed that being the top field picture number to above-mentioned image
According to Video coding is carried out to obtain the second Video coding frame, then the 5th instruction parameter indicates what above-mentioned second Video coding frame included
Single game view data is top field picture data, it is assumed that is to carry out Video coding to the bottom field picture data of above-mentioned image to obtain the
Two Video coding frames, then the single game view data that the 5th above-mentioned second Video coding frame of instruction parameter instruction includes is bottom field picture
Data).Wherein, above-mentioned 6th instruction parameter indicates above-mentioned second Video coding frame and above-mentioned second Video coding frame above-mentioned
The sequencing occurred in video code flow.For example, if above-mentioned first Video coding frame is prior to above-mentioned second in above-mentioned video code flow
Video coding frame occurs, then the 6th instruction parameter indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame upper
The sequencing occurred in video code flow is stated for above-mentioned first Video coding frame prior to above-mentioned second Video coding frame to occur.Instead
It, is if above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame in above-mentioned video code flow, the 6th instruction ginseng
Number can indicate that the priority that above-mentioned first Video coding frame and above-mentioned second Video coding frame occur in above-mentioned video code flow is suitable
Sequence is that above-mentioned first Video coding frame occurs after above-mentioned second Video coding frame.
In other possible embodiments of the present invention, above-mentioned second coding instruction can for example include the 7th instruction
Parameter, the 8th instruction parameter and the 6th instruction parameter.Wherein, above-mentioned 7th instruction parameter may indicate that above-mentioned second Video coding frame
For Video coding frame corresponding to single game view data, (that is, the 7th instruction parameter may indicate that above-mentioned second Video coding frame includes one
The single game view data of width image, and the two field picture data not comprising piece image).Above-mentioned 8th instruction parameter may indicate that
It is to push up field picture data or bottom field picture data (for example, it is assumed that being to state the single game view data that the second Video coding frame includes
Video coding is carried out to obtain the second Video coding frame to the top field picture data of above-mentioned image, then in the 8th instruction parameter instruction
It is top field picture data to state the single game view data that the second Video coding frame includes, it is assumed that is the bottom field picture number to above-mentioned image
According to Video coding is carried out to obtain the second Video coding frame, then the 8th instruction parameter indicates what above-mentioned second Video coding frame included
Single game view data is bottom field picture data).Wherein, above-mentioned 6th instruction parameter indicates above-mentioned second Video coding frame and upper
State the sequencing that the second Video coding frame occurs in above-mentioned video code flow.
Wherein, the 5th instruction parameter for example may include at least two bits, wherein, the 5th instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.6th instruction parameter is for example including at least one bit.6th instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
It is understood that the function of each functional module of the video coding apparatus 600 of the present embodiment can be according to above-mentioned side
Method specific implementation in method embodiment, its specific implementation process are referred to the associated description of above method embodiment, herein
Repeat no more.Video coding apparatus 600 can be any required output, the device of storage video, such as notebook computer, flat board electricity
The equipment such as brain, PC, mobile phone.
As can be seen that the video coding apparatus 600 of the present embodiment is to the first field picture data of image and the second field picture
Data carry out Video coding to obtain the first Video coding frame and the second Video coding frame respectively;By the first Video coding frame and
Two Video coding frames write video code flow.Wherein, indicated because the first Video coding frame includes first coding, above-mentioned first
Coding instruction indicates that above-mentioned first Video coding frame is Video coding frame corresponding to single game view data, and above-mentioned first encodes
Indicate also to indicate that the single game view data that above-mentioned first Video coding frame includes is to push up field picture data or bottom field picture data,
And first coding instruction also indicates above-mentioned first Video coding frame and above-mentioned second Video coding frame in above-mentioned video code flow
The sequencing of middle appearance.Wherein, due to clearly being indicated using the first Video coding frame, the different fields based on same image
The sequencing that occurs in video code flow of the obtained homologous Video coding frame of view data, this is advantageous to video decoder
Clearly know that homologous Video coding frame that the view data of the different fields based on same image obtains occurs in video code flow
Sequencing, and then be advantageous to video decoder and correctly carry out the different field picture data for decoding obtained same image
Image blends.
Referring to Fig. 7, Fig. 7 be video decoder 700 provided in an embodiment of the present invention schematic diagram, video decoder
700 may include at least one bus 701, at least one processor 702 being connected with bus 701 and be connected with bus 701
At least one memory 703.
Wherein, processor 702 calls the code stored in memory 703 in video code flow by bus 701
The first decoded video frame carry out video decoding to obtain the first image decoding data;To the second video in above-mentioned video code flow
Decoding frame carries out video decoding to obtain the second image decoding data.Wherein, above-mentioned first decoded video frame includes first volume
Code instruction, above-mentioned first coding instruction indicate that the first decoded video frame is decoded video frame corresponding to single game view data,
And above-mentioned first coding instruction also indicates that the single game view data that above-mentioned first decoded video frame includes is top field picture number
According to or bottom field picture data, and it is above-mentioned first coding instruction also indicate above-mentioned first decoded video frame and above-mentioned first video
Appearance order of the homologous decoded video frame of decoding frame in above-mentioned video code flow;Wherein, above-mentioned first decoded video frame and upper
The view data for stating different fields of the homologous decoded video frame based on same image obtains;Will be upper according to above-mentioned first coding instruction
State the first image decoding data and above-mentioned second image decoding data are blended to obtain blending image.
In some of the invention possible embodiments, above-mentioned first coding instruction can include the first instruction parameter and the
Two instruction parameters;Wherein, above-mentioned first instruction parameter instruction can indicate that the first decoded video frame is corresponding for single game view data
Decoded video frame (that is, first instruction parameter may indicate that above-mentioned first decoded video frame includes the single game picture number of piece image
According to, and the two field picture data not comprising piece image), and above-mentioned first instruction parameter also can indicate that above-mentioned first video
The single game view data that decoding frame includes is top field picture data or bottom field picture data (for example, it is assumed that above-mentioned first video solution
The single game view data that code frame includes is top field picture data, then the first instruction parameter indicates that above-mentioned first decoded video frame includes
Single game view data for top field picture data, the single game view data that above-mentioned first decoded video frame includes is bottom field picture number
According to then the first instruction parameter indicates that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data).It is above-mentioned
Second instruction parameter can indicate that above-mentioned first decoded video frame and the homologous decoded video frame of above-mentioned first decoded video frame exist
Appearance order in above-mentioned video code flow.
In other of the invention possible embodiments, above-mentioned first coding instruction can include the 3rd instruction parameter,
4th instruction parameter and the second instruction parameter;Wherein, above-mentioned 3rd instruction parameter indicates that the first decoded video frame is single game figure
The decoded video frame as corresponding to data.Above-mentioned 4th instruction parameter indicates the single game picture number that above-mentioned first decoded video frame includes
According to be top field picture data or bottom field picture data (for example, it is assumed that the single game view data that above-mentioned first decoded video frame includes
To push up field picture data, then the 4th instruction parameter indicates that the single game view data that above-mentioned first decoded video frame includes is top field figure
As data, the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, then the 4th instruction parameter instruction
The single game view data that above-mentioned first decoded video frame includes is bottom field picture data).Above-mentioned second instruction parameter can indicate that
Appearance of the homologous decoded video frame of above-mentioned first decoded video frame and above-mentioned first decoded video frame in above-mentioned video code flow
Sequentially.
Wherein, the first instruction parameter for example may include at least two bits, wherein, the first instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.Second instruction parameter is for example including at least one bit.Second instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
In some possible embodiments of the present invention, above-mentioned processor 702 can be used for, if above-mentioned first coding refers to
Show that the homologous decoded video frame for indicating above-mentioned first decoded video frame decodes in above-mentioned video code flow after above-mentioned first video
Frame occurs, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and on
Output order is adjacent after stating the decoding of the first image decoding data and above-mentioned second image decoding data, by above-mentioned first image solution
Code data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned processor 702 can be used for, if above-mentioned first coding instruction indicates the same of above-mentioned first decoded video frame
Source video decoding frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned second decoded video frame
Occur in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first image decoding data and above-mentioned second
Output order is adjacent after the decoding of image decoding data, can be by above-mentioned first image decoding data and above-mentioned second image decoding number
According to being blended to obtain blending image.
For example, above-mentioned processor 702 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first video decoding
The homologous decoded video frame of frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and above-mentioned first coding
Indicate also to indicate that the single game view data that above-mentioned first decoded video frame includes is top field picture data, and above-mentioned second encodes
The homologous decoded video frame of above-mentioned second decoded video frame of instruction instruction is in above-mentioned video code flow prior to above-mentioned second video solution
Code frame occurs, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is bottom field
View data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and
Output order is adjacent after the decoding of above-mentioned first image decoding data and above-mentioned second image decoding data, by above-mentioned first image
Decoding data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned processor 702 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first coding instruction
Also indicate that the single game view data that above-mentioned first decoded video frame includes is top field picture data, and above-mentioned second coding indicates
Indicate the homologous decoded video frame of above-mentioned second decoded video frame in above-mentioned video code flow after above-mentioned second decoded video frame
Occur, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is bottom field picture
Data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and it is above-mentioned
Output order is adjacent after the decoding of first image decoding data and above-mentioned second image decoding data, by above-mentioned first image decoding
Data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned processor 702 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and above-mentioned first coding instruction
Also indicate that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, and above-mentioned second coding indicates
Indicate the homologous decoded video frame of above-mentioned second decoded video frame in above-mentioned video code flow prior to above-mentioned second decoded video frame
Occur, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is top field picture
Data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and it is above-mentioned
Output order is adjacent after the decoding of first image decoding data and above-mentioned second image decoding data, by above-mentioned first image decoding
Data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned processor 702 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first coding instruction
Also indicate that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, and above-mentioned second coding indicates
Indicate the homologous decoded video frame of above-mentioned second decoded video frame in above-mentioned video code flow after above-mentioned second decoded video frame
Occur, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is top field picture
Data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and it is above-mentioned
Output order is adjacent after the decoding of first image decoding data and above-mentioned second image decoding data, by above-mentioned first image decoding
Data and above-mentioned second image decoding data are blended to obtain blending image.
In some of the invention possible embodiments, above-mentioned second coding instruction can include the 5th instruction parameter and the
Six instruction parameters;Wherein, above-mentioned 5th instruction parameter instruction can indicate that the second decoded video frame is corresponding for single game view data
Decoded video frame (that is, the 5th instruction parameter may indicate that above-mentioned second decoded video frame includes the single game picture number of piece image
According to, and the two field picture data not comprising piece image), and above-mentioned 5th instruction parameter also can indicate that above-mentioned second video
The single game view data that decoding frame includes is top field picture data or bottom field picture data (for example, it is assumed that above-mentioned second video solution
The single game view data that code frame includes is top field picture data, then the 5th instruction parameter indicates that above-mentioned second decoded video frame includes
Single game view data for top field picture data, the single game view data that above-mentioned second decoded video frame includes is bottom field picture number
According to then the 5th instruction parameter indicates that the single game view data that above-mentioned second decoded video frame includes is bottom field picture data).It is above-mentioned
6th instruction parameter can indicate that above-mentioned second decoded video frame and the homologous decoded video frame of above-mentioned second decoded video frame exist
Appearance order in above-mentioned video code flow.
In other of the invention possible embodiments, above-mentioned second coding instruction can include the 7th instruction parameter,
8th instruction parameter and the 6th instruction parameter;Wherein, above-mentioned 7th instruction parameter indicates that the second decoded video frame is single game figure
The decoded video frame as corresponding to data.Above-mentioned 8th instruction parameter indicates the single game picture number that above-mentioned second decoded video frame includes
According to be top field picture data or bottom field picture data (for example, it is assumed that the single game view data that above-mentioned second decoded video frame includes
To push up field picture data, then the 8th instruction parameter indicates that the single game view data that above-mentioned second decoded video frame includes is top field figure
As data, if the single game view data that above-mentioned second decoded video frame includes is bottom field picture data, the 8th instruction parameter refers to
Show that the single game view data that above-mentioned second decoded video frame includes is bottom field picture data).Above-mentioned 6th instruction parameter may indicate that
Go out homologous decoded video frame the going out in above-mentioned video code flow of above-mentioned second decoded video frame and above-mentioned second decoded video frame
Now order.
Wherein, the 5th instruction parameter for example may include at least two bits, wherein, the 5th instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.6th instruction parameter is for example including at least one bit.6th instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
It is understood that the function of each functional module of the video decoder 700 of the present embodiment can be according to above-mentioned side
Method specific implementation in method embodiment, its specific implementation process are referred to the associated description of above method embodiment, herein
Repeat no more.Video decoder 700 can be any required output, the device of broadcasting video, such as notebook computer, flat board electricity
The equipment such as brain, PC, mobile phone.
As can be seen that first decoded video frame and of the video decoder 700 of the present embodiment in video code flow
After two decoded video frames carry out video decoding to obtain the first image decoding data and the second image decoding data, due to being root
The instruction of the first coding instruction included according to the first decoded video frame, and the second decoded video frame decode with above-mentioned first video
Appearance order of the frame in above-mentioned video code flow, and after the decoding of the first image decoding data and above-mentioned second image decoding data
Output order, is handed over to determine whether to be blended above-mentioned first image decoding data and above-mentioned second image decoding data
Melt image.Wherein, because the first decoded video frame clearly indicates, the first decoded video frame and its homologous decoded video frame exist
The sequencing occurred in video code flow, this is advantageous to the figure that video decoder clearly knows the different fields based on same image
As the sequencing that the homologous decoded video frame that data obtain occurs in video code flow, and then be advantageous to video decoder just
True carries out image blending by the different field picture data for decoding obtained same image.
Referring to Fig. 8, Fig. 8 is the structured flowchart for the video decoder 800 that another embodiment of the present invention provides.Wherein,
Video decoder 800 can include:At least one processor 801, at least one network interface 804 or other users interface 803,
Memory 808, at least one communication bus 802.Communication bus 802 is used to realize the connection communication between these components.Wherein,
The video decoder 800 can optionally include user interface 803, including display is (for example, touch-screen, LCD, CRT, complete
Breath imaging (Holographic) or projection (Projector) etc.), pointing device (such as mouse, trace ball (trackball)
Touch-sensitive plate or touch-screen etc.), camera and/or sound pick up equipment etc..
Wherein, memory 802 can include read-only storage and random access memory, and provide and refer to processor 801
Order and data.A part of in memory 802 can also include nonvolatile RAM (NVRAM).
In some embodiments, memory 808 stores following element, can perform module or data structure, or
Their subset of person, or their superset:
Operating system 8081, comprising various system programs, for realizing that various basic businesses and processing are hardware based
Task.
Application program module 8082, comprising various application programs, for realizing various applied business.
In an embodiment of the present invention, by calling program or the instruction of the storage of memory 808, processor 801 is to video
The first decoded video frame in code stream carries out video decoding to obtain the first image decoding data;To in above-mentioned video code flow
Two decoded video frames carry out video decoding to obtain the second image decoding data.Wherein, above-mentioned first decoded video frame includes the
One coding instruction, above-mentioned first coding instruction indicate that the first decoded video frame is video solution corresponding to single game view data
Code frame, and above-mentioned first coding instruction also indicates that the single game view data that above-mentioned first decoded video frame includes is top field figure
As data or bottom field picture data, and above-mentioned first coding instruction also indicates above-mentioned first decoded video frame and above-mentioned first
Appearance order of the homologous decoded video frame of decoded video frame in above-mentioned video code flow;Wherein, above-mentioned first decoded video frame
Obtained with the view data of different fields of the above-mentioned homologous decoded video frame based on same image;Indicated according to above-mentioned first coding
Above-mentioned first image decoding data and above-mentioned second image decoding data are blended to obtain blending image.
In some of the invention possible embodiments, above-mentioned first coding instruction can include the first instruction parameter and the
Two instruction parameters;Wherein, above-mentioned first instruction parameter instruction can indicate that the first decoded video frame is corresponding for single game view data
Decoded video frame (that is, first instruction parameter may indicate that above-mentioned first decoded video frame includes the single game picture number of piece image
According to, and the two field picture data not comprising piece image), and above-mentioned first instruction parameter also can indicate that above-mentioned first video
The single game view data that decoding frame includes is top field picture data or bottom field picture data (for example, it is assumed that above-mentioned first video solution
The single game view data that code frame includes is top field picture data, then the first instruction parameter indicates that above-mentioned first decoded video frame includes
Single game view data for top field picture data, the single game view data that above-mentioned first decoded video frame includes is bottom field picture number
According to then the first instruction parameter indicates that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data).It is above-mentioned
Second instruction parameter can indicate that above-mentioned first decoded video frame and the homologous decoded video frame of above-mentioned first decoded video frame exist
Appearance order in above-mentioned video code flow.
In other of the invention possible embodiments, above-mentioned first coding instruction can include the 3rd instruction parameter,
4th instruction parameter and the second instruction parameter;Wherein, above-mentioned 3rd instruction parameter indicates that the first decoded video frame is single game figure
The decoded video frame as corresponding to data.Above-mentioned 4th instruction parameter indicates the single game picture number that above-mentioned first decoded video frame includes
According to be top field picture data or bottom field picture data (for example, it is assumed that the single game view data that above-mentioned first decoded video frame includes
To push up field picture data, then the 4th instruction parameter indicates that the single game view data that above-mentioned first decoded video frame includes is top field figure
As data, the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, then the 4th instruction parameter instruction
The single game view data that above-mentioned first decoded video frame includes is bottom field picture data).Above-mentioned second instruction parameter can indicate that
Appearance of the homologous decoded video frame of above-mentioned first decoded video frame and above-mentioned first decoded video frame in above-mentioned video code flow
Sequentially.
Wherein, the first instruction parameter for example may include at least two bits, wherein, the first instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.Second instruction parameter is for example including at least one bit.Second instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
In some possible embodiments of the present invention, above-mentioned processor 801 can be used for, if above-mentioned first coding refers to
Show that the homologous decoded video frame for indicating above-mentioned first decoded video frame decodes in above-mentioned video code flow after above-mentioned first video
Frame occurs, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and on
Output order is adjacent after stating the decoding of the first image decoding data and above-mentioned second image decoding data, by above-mentioned first image solution
Code data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned processor 801 can be used for, if above-mentioned first coding instruction indicates the same of above-mentioned first decoded video frame
Source video decoding frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned second decoded video frame
Occur in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first image decoding data and above-mentioned second
Output order is adjacent after the decoding of image decoding data, can be by above-mentioned first image decoding data and above-mentioned second image decoding number
According to being blended to obtain blending image.
For example, above-mentioned processor 801 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first video decoding
The homologous decoded video frame of frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and above-mentioned first coding
Indicate also to indicate that the single game view data that above-mentioned first decoded video frame includes is top field picture data, and above-mentioned second encodes
The homologous decoded video frame of above-mentioned second decoded video frame of instruction instruction is in above-mentioned video code flow prior to above-mentioned second video solution
Code frame occurs, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is bottom field
View data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and
Output order is adjacent after the decoding of above-mentioned first image decoding data and above-mentioned second image decoding data, by above-mentioned first image
Decoding data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned processor 801 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first coding instruction
Also indicate that the single game view data that above-mentioned first decoded video frame includes is top field picture data, and above-mentioned second coding indicates
Indicate the homologous decoded video frame of above-mentioned second decoded video frame in above-mentioned video code flow after above-mentioned second decoded video frame
Occur, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is bottom field picture
Data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and it is above-mentioned
Output order is adjacent after the decoding of first image decoding data and above-mentioned second image decoding data, by above-mentioned first image decoding
Data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned processor 801 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and above-mentioned first coding instruction
Also indicate that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, and above-mentioned second coding indicates
Indicate the homologous decoded video frame of above-mentioned second decoded video frame in above-mentioned video code flow prior to above-mentioned second decoded video frame
Occur, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is top field picture
Data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow after above-mentioned first decoded video frame, and it is above-mentioned
Output order is adjacent after the decoding of first image decoding data and above-mentioned second image decoding data, by above-mentioned first image decoding
Data and above-mentioned second image decoding data are blended to obtain blending image;
Or;
Above-mentioned processor 801 can be specifically used for, if above-mentioned first coding instruction indicates above-mentioned first decoded video frame
Homologous decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and above-mentioned first coding instruction
Also indicate that the single game view data that above-mentioned first decoded video frame includes is bottom field picture data, and above-mentioned second coding indicates
Indicate the homologous decoded video frame of above-mentioned second decoded video frame in above-mentioned video code flow after above-mentioned second decoded video frame
Occur, and above-mentioned second coding instruction also indicates that the single game view data that above-mentioned second decoded video frame includes is top field picture
Data, and above-mentioned second decoded video frame occurs in above-mentioned video code flow prior to above-mentioned first decoded video frame, and it is above-mentioned
Output order is adjacent after the decoding of first image decoding data and above-mentioned second image decoding data, by above-mentioned first image decoding
Data and above-mentioned second image decoding data are blended to obtain blending image.
In some of the invention possible embodiments, above-mentioned second coding instruction can include the 5th instruction parameter and the
Six instruction parameters;Wherein, above-mentioned 5th instruction parameter instruction can indicate that the second decoded video frame is corresponding for single game view data
Decoded video frame (that is, the 5th instruction parameter may indicate that above-mentioned second decoded video frame includes the single game picture number of piece image
According to, and the two field picture data not comprising piece image), and above-mentioned 5th instruction parameter also can indicate that above-mentioned second video
The single game view data that decoding frame includes is top field picture data or bottom field picture data (for example, it is assumed that above-mentioned second video solution
The single game view data that code frame includes is top field picture data, then the 5th instruction parameter indicates that above-mentioned second decoded video frame includes
Single game view data for top field picture data, the single game view data that above-mentioned second decoded video frame includes is bottom field picture number
According to then the 5th instruction parameter indicates that the single game view data that above-mentioned second decoded video frame includes is bottom field picture data).It is above-mentioned
6th instruction parameter can indicate that above-mentioned second decoded video frame and the homologous decoded video frame of above-mentioned second decoded video frame exist
Appearance order in above-mentioned video code flow.
In other of the invention possible embodiments, above-mentioned second coding instruction can include the 7th instruction parameter,
8th instruction parameter and the 6th instruction parameter;Wherein, above-mentioned 7th instruction parameter indicates that the second decoded video frame is single game figure
The decoded video frame as corresponding to data.Above-mentioned 8th instruction parameter indicates the single game picture number that above-mentioned second decoded video frame includes
According to be top field picture data or bottom field picture data (for example, it is assumed that the single game view data that above-mentioned second decoded video frame includes
To push up field picture data, then the 8th instruction parameter indicates that the single game view data that above-mentioned second decoded video frame includes is top field figure
As data, if the single game view data that above-mentioned second decoded video frame includes is bottom field picture data, the 8th instruction parameter refers to
Show that the single game view data that above-mentioned second decoded video frame includes is bottom field picture data).Above-mentioned 6th instruction parameter may indicate that
Go out homologous decoded video frame the going out in above-mentioned video code flow of above-mentioned second decoded video frame and above-mentioned second decoded video frame
Now order.
Wherein, the 5th instruction parameter for example may include at least two bits, wherein, the 5th instruction parameter for example can be parameter
Line by line flag of frame (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other
Extend indicating bit.6th instruction parameter is for example including at least one bit.6th instruction parameter for example can be top field formerly (top_
Field_first) indicating bit or other extension indicating bits etc..
It is understood that the function of each functional module of the video decoder 800 of the present embodiment can be according to above-mentioned side
Method specific implementation in method embodiment, its specific implementation process are referred to the associated description of above method embodiment, herein
Repeat no more.Video decoder 800 can be any required output, the device of broadcasting video, such as notebook computer, flat board electricity
The equipment such as brain, PC, mobile phone.
As can be seen that first decoded video frame and of the video decoder 800 of the present embodiment in video code flow
After two decoded video frames carry out video decoding to obtain the first image decoding data and the second image decoding data, due to being root
The instruction of the first coding instruction included according to the first decoded video frame, and the second decoded video frame decode with above-mentioned first video
Appearance order of the frame in above-mentioned video code flow, and after the decoding of the first image decoding data and above-mentioned second image decoding data
Output order, is handed over to determine whether to be blended above-mentioned first image decoding data and above-mentioned second image decoding data
Melt image.Wherein, because the first decoded video frame clearly indicates, the first decoded video frame and its homologous decoded video frame exist
The sequencing occurred in video code flow, this is advantageous to the figure that video decoder clearly knows the different fields based on same image
As the sequencing that the homologous decoded video frame that data obtain occurs in video code flow, and then be advantageous to video decoder just
True carries out image blending by the different field picture data for decoding obtained same image.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey
Sequence, including any one method for video coding described in above method embodiment or video encoding/decoding method when the program performs
Part or all of step.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way
Realize.For example, device embodiment described above is only schematical, such as the division of said units, it is only one kind
Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual
Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment above method of the present invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
Above-mentioned above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these
Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (20)
- A kind of 1. method for video coding, it is characterised in that including:Obtain image;Video coding is carried out to obtain the first Video coding frame to the first field picture data of described image;Video coding is carried out to obtain the second Video coding frame to the second field picture data of described image;By the first Video coding frame and the second Video coding frame write-in video code flow;Wherein, the first Video coding frame includes first coding and indicated, first coding instruction instruction described first Video coding frame is Video coding frame corresponding to single game view data, and first coding instruction also indicates first video The single game view data that coded frame includes is top field picture data or bottom field picture data, and first coding instruction also refers to The sequencing that the first Video coding frame and the second Video coding frame occur in the video code flow is shown;It is described Sequencing includes:Coding obtain the first Video coding frame and coding obtain the second Video coding frame priority it is suitable Sequence;Wherein, the first field picture data are top field picture data, and the second field picture data are bottom field picture data, Or the second field picture data are top field picture data, and the first field picture data are bottom field picture data.
- 2. according to the method for claim 1, it is characterised in thatFirst coding instruction includes the first instruction parameter and the second instruction parameter;Wherein, the first instruction parameter indicates that the first Video coding frame is Video coding corresponding to single game view data Frame, the first instruction parameter also indicate single game view data that the first Video coding frame includes for top field picture data or Person bottom field picture data;The second instruction parameter indicates the first Video coding frame and the second Video coding frame in the video codes The sequencing occurred in stream.
- 3. according to the method for claim 1, it is characterised in that it is described first coding instruction comprising the 3rd instruction parameter, 4th instruction parameter and the second instruction parameter;Wherein, the 3rd instruction parameter indicates that the first Video coding frame is Video coding corresponding to single game view data Frame;The 4th instruction parameter indicate single game view data that the first Video coding frame includes for top field picture data or Person bottom field picture data;The second instruction parameter indicates the first Video coding frame and the second Video coding frame in the video codes The sequencing occurred in stream.
- 4. according to the method described in any one of claims 1 to 3, it is characterised in that the second Video coding frame includes second Field coding instruction, second coding instruction instruction the second Video coding frame is that video corresponding to single game view data is compiled Code frame, second coding instruction also indicate that the single game view data that the second Video coding frame includes is bottom field picture number According to or top field picture data, it is described second coding instruction also indicate the second Video coding frame and first video The sequencing that coded frame occurs in the video code flow.
- A kind of 5. video encoding/decoding method, it is characterised in that including:Video decoding is carried out to the first decoded video frame in video code flow to obtain the first image decoding data;Video decoding is carried out to the second decoded video frame in the video code flow to obtain the second image decoding data;Wherein, first decoded video frame includes first coding and indicated, first coding instruction indicates that first regards Frequency decoding frame is decoded video frame corresponding to single game view data, and first coding instruction also indicates that described first regards The single game view data that frequency decoding frame includes is top field picture data or bottom field picture data, and first coding indicates Also indicate the homologous decoded video frame of first decoded video frame and first decoded video frame in the video code flow The sequencing of appearance;The sequencing includes:Coding obtains the first decoded video frame and coding obtains the same source video The sequencing of decoding frame;Wherein, the view data of the different fields of first decoded video frame and the homologous decoded video frame based on same image Obtain;Described first image decoding data and the second image decoding data are handed over according to described first coding instruction Melt to obtain blending image.
- 6. according to the method for claim 5, it is characterised in thatFirst coding instruction includes the first instruction parameter and the second instruction parameter;Wherein, the first instruction parameter indicates that the first decoded video frame is decoded video frame corresponding to single game view data, And the first instruction parameter also indicates that the single game view data that first decoded video frame includes is top field picture data Or bottom field picture data;The second instruction parameter indicates the same source video solution of first decoded video frame and first decoded video frame The sequencing that code frame occurs in the video code flow.
- 7. according to the method for claim 5, it is characterised in that it is described first coding instruction comprising the 3rd instruction parameter, 4th instruction parameter and the second instruction parameter;Wherein, the 3rd instruction parameter indicates that the first decoded video frame is decoded video frame corresponding to single game view data;The 4th instruction parameter indicate single game view data that first decoded video frame includes for top field picture data or Bottom field picture data;The second instruction parameter indicates the same source video solution of first decoded video frame and first decoded video frame The sequencing that code frame occurs in the video code flow.
- 8. according to the method described in claim 5 to 7 any one, it is characterised in that described to be referred to according to first coding Show and blended described first image decoding data and the second image decoding data to obtain blending image, including:If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In after first decoded video frame occur, and second decoded video frame in the video code flow after described first Decoded video frame occurs, and output order after the decoding of described first image decoding data and the second image decoding data It is adjacent, described first image decoding data and the second image decoding data are blended to obtain blending image;Or;If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In prior to first decoded video frame occur, and second decoded video frame in the video code flow prior to described first Decoded video frame occurs, and output order after the decoding of described first image decoding data and the second image decoding data It is adjacent, described first image decoding data and the second image decoding data are blended to obtain blending image.
- 9. according to the method described in claim 5 to 7 any one, it is characterised in thatSecond decoded video frame includes second coding and indicated, second coding instruction indicates that the second video decodes Frame is decoded video frame corresponding to single game view data, and second coding instruction also indicates the second video decoding The single game view data that frame includes is top field picture data or bottom field picture data, and second coding instruction also indicates What the homologous decoded video frame of second decoded video frame and second decoded video frame occurred in the video code flow Sequencing;It is described to be entered described first image decoding data and the second image decoding data according to described first coding instruction Row blending obtains the image that blends, including:Indicated according to described first coding instruction and described second coding, by described first Image decoding data and the second image decoding data are blended to obtain blending image.
- 10. according to the method for claim 9, it is characterised in that described according to described first coding instruction and described the Two coding instructions, described first image decoding data and the second image decoding data are blended to obtain blending figure Picture, including:If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In after first decoded video frame occur, and it is described first coding instruction also indicate that first decoded video frame includes Single game view data be top field picture data, and second coding instruction indicates the homologous of second decoded video frame Decoded video frame occurs in the video code flow prior to second decoded video frame, and second coding instruction also refers to Show that the single game view data that second decoded video frame includes is bottom field picture data, and second decoded video frame is in institute State in video code flow and occur after first decoded video frame, and described first image decoding data and second image Output order is adjacent after the decoding of decoding data, and described first image decoding data and the second image decoding data are carried out Blending obtains the image that blends;Or;If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In prior to first decoded video frame occur, and it is described first coding instruction also indicate that first decoded video frame includes Single game view data be top field picture data, and second coding instruction indicates the homologous of second decoded video frame Decoded video frame occurs in the video code flow after second decoded video frame, and second coding instruction also refers to Show that the single game view data that second decoded video frame includes is bottom field picture data, and second decoded video frame is in institute State in video code flow and occur prior to first decoded video frame, and described first image decoding data and second image Output order is adjacent after the decoding of decoding data, and described first image decoding data and the second image decoding data are carried out Blending obtains the image that blends;Or;If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In after first decoded video frame occur, and it is described first coding instruction also indicate that first decoded video frame includes Single game view data be bottom field picture data, and second coding instruction indicates the homologous of second decoded video frame Decoded video frame occurs in the video code flow prior to second decoded video frame, and second coding instruction also refers to Show that the single game view data that second decoded video frame includes is top field picture data, and second decoded video frame is in institute State in video code flow and occur after first decoded video frame, and described first image decoding data and second image Output order is adjacent after the decoding of decoding data, and described first image decoding data and the second image decoding data are carried out Blending obtains the image that blends;Or;If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In prior to first decoded video frame occur, and it is described first coding instruction also indicate that first decoded video frame includes Single game view data be bottom field picture data, and second coding instruction indicates the homologous of second decoded video frame Decoded video frame occurs in the video code flow after second decoded video frame, and second coding instruction also refers to Show that the single game view data that second decoded video frame includes is top field picture data, and second decoded video frame is in institute State in video code flow and occur prior to first decoded video frame, and described first image decoding data and second image Output order is adjacent after the decoding of decoding data, and described first image decoding data and the second image decoding data are carried out Blending obtains the image that blends.
- A kind of 11. video coding apparatus, it is characterised in that including:Acquiring unit, for obtaining image;Coding unit, for carrying out Video coding to the first field picture data of described image to obtain the first Video coding frame; Video coding is carried out to obtain the second Video coding frame to the second field picture data of described image;Writing unit, for the first Video coding frame and the second Video coding frame to be write into video code flow;Wherein, the first Video coding frame includes first coding and indicated, first coding instruction instruction described first Video coding frame is Video coding frame corresponding to single game view data, and first coding instruction also indicates first video The single game view data that coded frame includes is top field picture data or bottom field picture data, and first coding instruction also refers to The sequencing that the first Video coding frame and the second Video coding frame occur in the video code flow is shown;It is described Sequencing includes:Coding obtain the first Video coding frame and coding obtain the second Video coding frame priority it is suitable Sequence;Wherein, the first field picture data are top field picture data, and the second field picture data are bottom field picture data, Or the second field picture data are top field picture data, and the first field picture data are bottom field picture data.
- 12. video coding apparatus according to claim 11, it is characterised in thatFirst coding instruction includes the first instruction parameter and the second instruction parameter;Wherein, the first instruction parameter indicates that the first Video coding frame is Video coding corresponding to single game view data Frame, the first instruction parameter also indicate single game view data that the first Video coding frame includes for top field picture data or Person bottom field picture data;The second instruction parameter indicates the first Video coding frame and the second Video coding frame in the video codes The sequencing occurred in stream.
- 13. video coding apparatus according to claim 11, it is characterised in that first coding instruction includes the 3rd Indicate parameter, the 4th instruction parameter and the second instruction parameter;Wherein, the 3rd instruction parameter indicates that the first Video coding frame is Video coding corresponding to single game view data Frame;The 4th instruction parameter indicate single game view data that the first Video coding frame includes for top field picture data or Person bottom field picture data;The second instruction parameter indicates the first Video coding frame and the second Video coding frame in the video codes The sequencing occurred in stream.
- 14. according to the video coding apparatus described in any one of claim 11 to 13, it is characterised in that second Video coding Frame includes second coding and indicated, second coding instruction indicates that the second Video coding frame is single game view data pair The Video coding frame answered, second coding instruction also indicate that the single game view data that the second Video coding frame includes is Bottom field picture data or top field picture data, second coding instruction also indicate the second Video coding frame and institute State the sequencing that the first Video coding frame occurs in the video code flow.
- A kind of 15. video decoder, it is characterised in that including:Decoding unit, decoded for carrying out video to the first decoded video frame in video code flow to obtain the first image decoding number According to;Video decoding is carried out to the second decoded video frame in the video code flow to obtain the second image decoding data;Wherein, institute State the first decoded video frame and include first coding instruction, first coding instruction indicates that the first decoded video frame is single Decoded video frame corresponding to field picture data, and first coding instruction also indicates that first decoded video frame includes Single game view data be top field picture data or bottom field picture data, and first coding instruction also indicates described the The priority that the homologous decoded video frame of one decoded video frame and first decoded video frame occurs in the video code flow is suitable Sequence;The sequencing includes:Coding obtains first decoded video frame and coding obtains the homologous decoded video frame Sequencing;Wherein, the figure of the different fields of first decoded video frame and the homologous decoded video frame based on same image As data obtain;Blend unit, for being indicated according to described first coding by described first image decoding data and the second image solution Code data are blended to obtain blending image.
- 16. video decoder according to claim 15, it is characterised in thatFirst coding instruction includes the 3rd instruction parameter, the 4th instruction parameter and the second instruction parameter;Wherein, the 3rd instruction parameter indicates that the first decoded video frame is decoded video frame corresponding to single game view data;The 4th instruction parameter indicate single game view data that first decoded video frame includes for top field picture data or Bottom field picture data;The second instruction parameter indicates the same source video solution of first decoded video frame and first decoded video frame Appearance order of the code frame in the video code flow.
- 17. video decoder according to claim 15, it is characterised in that first coding instruction includes the 3rd Indicate parameter, the 4th instruction parameter and the second instruction parameter;Wherein, the 3rd instruction parameter indicates that the first decoded video frame is decoded video frame corresponding to single game view data;The 4th instruction parameter indicate single game view data that first decoded video frame includes for top field picture data or Bottom field picture data;The second instruction parameter indicates the homologous decoded video frame of first decoded video frame in the video code flow Occur prior to first decoded video frame.
- 18. according to the video decoder described in claim 15 to 17 any one, it is characterised in thatThe blending unit is specifically used for, if first coding instruction indicates the same source video of first decoded video frame Decoding frame occurs in the video code flow after first decoded video frame, and second decoded video frame regards described Occur in frequency code stream after first decoded video frame, and described first image decoding data and second image decoding Output order is adjacent after the decoding of data, and described first image decoding data and the second image decoding data are blended Obtain the image that blends;Or;If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In prior to first decoded video frame occur, and second decoded video frame in the video code flow prior to described first Decoded video frame occurs, and output order after the decoding of described first image decoding data and the second image decoding data It is adjacent, described first image decoding data and the second image decoding data are blended to obtain blending image.
- 19. according to the video decoder described in claim 15 to 17 any one, it is characterised in thatSecond decoded video frame includes second coding and indicated, second coding instruction indicates that the second video decodes Frame is decoded video frame corresponding to single game view data, and second coding instruction also indicates the second video decoding The single game view data that frame includes is top field picture data or bottom field picture data, and second coding instruction also indicates Appearance of the homologous decoded video frame of second decoded video frame and second decoded video frame in the video code flow Sequentially;Wherein, the blending unit is specifically used for, and is indicated according to described first coding instruction and described second coding, by institute State the first image decoding data and the second image decoding data are blended to obtain blending image.
- 20. video decoder according to claim 19, it is characterised in thatThe blending unit is specifically used for, if first coding instruction indicates the same source video of first decoded video frame Decoding frame occurs in the video code flow after first decoded video frame, and first coding instruction also indicates institute It is top field picture data to state the single game view data that the first decoded video frame includes, and described in second coding instruction instruction The homologous decoded video frame of second decoded video frame occurs in the video code flow prior to second decoded video frame, and institute State second coding instruction and also indicate that single game view data that second decoded video frame includes is bottom field picture data, and institute The second decoded video frame is stated in the video code flow after first decoded video frame to occur, and described first image solution Output order is adjacent after the decoding of code data and the second image decoding data, by described first image decoding data and described Second image decoding data are blended to obtain blending image;Or;If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In prior to first decoded video frame occur, and it is described first coding instruction also indicate that first decoded video frame includes Single game view data be top field picture data, and second coding instruction indicates the homologous of second decoded video frame Decoded video frame occurs in the video code flow after second decoded video frame, and second coding instruction also refers to Show that the single game view data that second decoded video frame includes is bottom field picture data, and second decoded video frame is in institute State in video code flow and occur prior to first decoded video frame, and described first image decoding data and second image Output order is adjacent after the decoding of decoding data, and described first image decoding data and the second image decoding data are carried out Blending obtains the image that blends;Or;If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In after first decoded video frame occur, and it is described first coding instruction also indicate that first decoded video frame includes Single game view data be bottom field picture data, and second coding instruction indicates the homologous of second decoded video frame Decoded video frame occurs in the video code flow prior to second decoded video frame, and second coding instruction also refers to Show that the single game view data that second decoded video frame includes is top field picture data, and second decoded video frame is in institute State in video code flow and occur after first decoded video frame, and described first image decoding data and second image Output order is adjacent after the decoding of decoding data, and described first image decoding data and the second image decoding data are carried out Blending obtains the image that blends;Or;If first coding instruction indicates the homologous decoded video frame of first decoded video frame in the video code flow In prior to first decoded video frame occur, and it is described first coding instruction also indicate that first decoded video frame includes Single game view data be bottom field picture data, and second coding instruction indicates the homologous of second decoded video frame Decoded video frame occurs in the video code flow after second decoded video frame, and second coding instruction also refers to Show that the single game view data that second decoded video frame includes is top field picture data, and second decoded video frame is in institute State in video code flow and occur prior to first decoded video frame, and described first image decoding data and second image Output order is adjacent after the decoding of decoding data, and described first image decoding data and the second image decoding data are carried out Blending obtains the image that blends.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410253649.4A CN104038759B (en) | 2014-06-09 | 2014-06-09 | Method for video coding and coding/decoding method and relevant apparatus |
PCT/CN2015/080907 WO2015188729A1 (en) | 2014-06-09 | 2015-06-05 | Video coding method and video decoding method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410253649.4A CN104038759B (en) | 2014-06-09 | 2014-06-09 | Method for video coding and coding/decoding method and relevant apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104038759A CN104038759A (en) | 2014-09-10 |
CN104038759B true CN104038759B (en) | 2017-11-17 |
Family
ID=51469331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410253649.4A Active CN104038759B (en) | 2014-06-09 | 2014-06-09 | Method for video coding and coding/decoding method and relevant apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104038759B (en) |
WO (1) | WO2015188729A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104038759B (en) * | 2014-06-09 | 2017-11-17 | 华为技术有限公司 | Method for video coding and coding/decoding method and relevant apparatus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6871003B1 (en) * | 2000-03-17 | 2005-03-22 | Avid Technology, Inc. | Edit decision list for identifying the pull down phase of a video signal |
CN1852429A (en) * | 2005-12-05 | 2006-10-25 | 华为技术有限公司 | Video-code-flow grouped transmission method and system |
CN101116335A (en) * | 2005-02-07 | 2008-01-30 | 汤姆森许可贸易公司 | Method and apparatus for replaying a video signal and one or more audio signals related to audio/video data that are based on a 24Hz frame frequency video signal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2273940C (en) * | 1997-10-03 | 2008-12-09 | Sony Corporation | Encoded stream splicing device and method, and an encoded stream generating device and method |
CN104038759B (en) * | 2014-06-09 | 2017-11-17 | 华为技术有限公司 | Method for video coding and coding/decoding method and relevant apparatus |
-
2014
- 2014-06-09 CN CN201410253649.4A patent/CN104038759B/en active Active
-
2015
- 2015-06-05 WO PCT/CN2015/080907 patent/WO2015188729A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6871003B1 (en) * | 2000-03-17 | 2005-03-22 | Avid Technology, Inc. | Edit decision list for identifying the pull down phase of a video signal |
CN101116335A (en) * | 2005-02-07 | 2008-01-30 | 汤姆森许可贸易公司 | Method and apparatus for replaying a video signal and one or more audio signals related to audio/video data that are based on a 24Hz frame frequency video signal |
CN1852429A (en) * | 2005-12-05 | 2006-10-25 | 华为技术有限公司 | Video-code-flow grouped transmission method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104038759A (en) | 2014-09-10 |
WO2015188729A1 (en) | 2015-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104768011B (en) | Image coding/decoding method and relevant apparatus | |
CN103220508B (en) | Coding and decoding method and device | |
JP2020141416A (en) | Method for decoding hybrid upward compatible data stream | |
RU2511595C2 (en) | Image signal decoding apparatus, image signal decoding method, image signal encoding apparatus, image encoding method and programme | |
CN104205819A (en) | Method and apparatus for video coding | |
WO2003094113A1 (en) | Compression of images and image sequences through adaptive partitioning | |
CN104333760B (en) | 3-D view coding method and 3-D view coding/decoding method and relevant apparatus | |
CN107027033A (en) | Paster for video compress is copied | |
CN109788285A (en) | The context model choosing method and device of a kind of quantization parameter end mark position | |
CN106534871B (en) | The coding method of Video Codec and coding/decoding method | |
WO2020180449A1 (en) | Method and device for picture encoding and decoding | |
CN101005614A (en) | Coding and decoding method and device for dynamic image, and computer readable record medium | |
EP3706421A1 (en) | Method and apparatus for video encoding and decoding based on affine motion compensation | |
CN110121073A (en) | A kind of bidirectional interframe predictive method and device | |
US20230254507A1 (en) | Deep intra predictor generating side information | |
CN109996080A (en) | Prediction technique, device and the codec of image | |
EP4107945A1 (en) | Neural network-based intra prediction for video encoding or decoding | |
CN108353175A (en) | The method and apparatus of prediction processing vision signal caused by coefficient of utilization | |
CN110495178A (en) | The device and method of 3D Video coding | |
CN106331716A (en) | Video compression method and device | |
CN104104956B (en) | For layered video coding and the method for decoding, encoding apparatus and decoding apparatus | |
CN103716631B (en) | For the method for image procossing, device, encoder | |
CN104038759B (en) | Method for video coding and coding/decoding method and relevant apparatus | |
CN108259902A (en) | Video data encoding and the video encoder for being configured as performing video data encoding | |
CN106791870B (en) | A kind of method for video coding, video encoding/decoding method and relevant device |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210114 Address after: Room 400, building 5, No.11 Deshengmenwai street, Xicheng District, Beijing 100032 (Desheng Park) Patentee after: MIGU CULTURE TECHNOLOGY Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |