CN104038759A - Video coding method and decoding method and related devices - Google Patents

Video coding method and decoding method and related devices Download PDF

Info

Publication number
CN104038759A
CN104038759A CN201410253649.4A CN201410253649A CN104038759A CN 104038759 A CN104038759 A CN 104038759A CN 201410253649 A CN201410253649 A CN 201410253649A CN 104038759 A CN104038759 A CN 104038759A
Authority
CN
China
Prior art keywords
frame
coding
indication
mentioned
decoded video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410253649.4A
Other languages
Chinese (zh)
Other versions
CN104038759B (en
Inventor
郑萧桢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MIGU Culture Technology Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410253649.4A priority Critical patent/CN104038759B/en
Publication of CN104038759A publication Critical patent/CN104038759A/en
Priority to PCT/CN2015/080907 priority patent/WO2015188729A1/en
Application granted granted Critical
Publication of CN104038759B publication Critical patent/CN104038759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode

Abstract

The invention discloses a video coding method, a video decoding method and related devices. The video coding method includes that acquiring an image; carrying out video coding on a first field image data of the image to obtain a first video coded frame; carrying out video coding on a second field image data of the image to obtain a second video coded frame; writing the first video coded frame and the second video coded frame in a video code stream. A first field code indication indicates the sequence of the first video coded frame and the second video coded frame in the video code stream. The video coding method, the video decoding method and the related devices are good for a video decoding device to correctly carry out image infusion on different field image data of the same image obtained through decoding.

Description

Method for video coding and coding/decoding method and relevant apparatus
Technical field
The present invention relates to video coding and decoding technology field, be specifically related to method for video coding and video encoding/decoding method and relevant apparatus.
Background technology
In coding and decoding video, in order to reduce and to transmit the required bandwidth of video data as far as possible, may adopt various video compression method to compress video data.Field coding techniques is a kind of coding techniques that can effectively improve video data compression efficiency.
In coding techniques on the scene, piece image is carried out to field and divide to obtain top field picture data and top field picture data.Top field picture data are by the odd-numbered line pixel data acquisition in scanning piece image, and end field data is by the even number line pixel data acquisition in scanning piece image.
In when coding on the scene piece image, the view data on each (top or field, the end) is all used as an independently video requency frame data and is carried out Code And Decode, but in traditional video coding and decoding technology, two coded datas of piece image is encapsulated in a coded frame.Because odd-numbered line and the even number line view data of presentation video are distinguished in top and field, the end, but coded data be by separately independently mode store, therefore, this coded system can complicate the acquisition methods of coded data.In addition, in fact each field data while encoding due to field in piece image is equivalent to an independently image, and therefore, in reference frame management technology, each field picture is all managed as image independently.For example, in hierarchical B frame technique, top field picture and end field picture in piece image can be endowed different priority.Therefore, if still can increase the implementation complexity of reference frame management technology by traditional method Jiang Dingchang and end field picture data encapsulation among a coded frame.
For the problems referred to above, in prior art, propose by the field, top of piece image and end field data be used as one independently image encode and this coded data carried out to individual packages and become an independent coded frame.This class technology can effectively reduce the complexity of coded data management and reference frame management, but this can introduce again a new technology problem,, isolated each other between each single game view data that video decoder decoding obtains, make decoding be difficult to determine how correct each single game view data by obtaining is carried out image blending.
Summary of the invention
The embodiment of the present invention provides method for video coding and video encoding/decoding method and relevant apparatus.
First aspect, a kind of method for video coding, can comprise:
Obtain image;
The first field picture data of described image are carried out to Video coding to obtain the first Video coding frame;
The second field picture data of described image are carried out to Video coding to obtain the second Video coding frame;
Described the first Video coding frame and described the second Video coding frame are write to video code flow;
Wherein, described the first Video coding frame comprises first coding indication, described first described the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that described first coding indication also indicates described the first Video coding frame to comprise is top field picture data or end field picture data, and described first coding indication also indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow;
Wherein, described the first field picture data are top field picture data, and described the second field picture data are end field picture data, or described the second field picture data are top field picture data, and described the first field picture data are end field picture data.
In conjunction with first aspect, in the possible execution mode of the first of first aspect,
Described first coding indication comprises the first indication parameter and the second indication parameter;
Wherein, it is Video coding frame corresponding to single game view data that described the first indication parameter is indicated described the first Video coding frame, and the single game view data that described the first indication parameter also indicates described the first Video coding frame to comprise is top field picture data or end field picture data;
Described the second indication parameter indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow.
In conjunction with first aspect, in the possible execution mode of the second of first aspect, described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate described the first Video coding frame be Video coding frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first Video coding frame to comprise is top field picture data or end field picture data;
Described the second indication parameter indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow.
The possible execution mode of the second in conjunction with the possible execution mode of the first of first aspect or first aspect or first aspect, in the third possible execution mode of first aspect, described the second Video coding frame comprises second coding indication, described second described the second Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that described second coding indication also indicates described the second Video coding frame to comprise is end field picture data or top field picture data, described second coding indication also indicates the sequencing that described the second Video coding frame and described the first Video coding frame occur in described video code flow.
Second aspect, a kind of video encoding/decoding method, comprising:
The first decoded video frame in video code flow is carried out to video decode to obtain the first image decoding data;
The second decoded video frame in described video code flow is carried out to video decode to obtain the second image decoding data;
Wherein, described the first decoded video frame comprises first coding indication, it is decoded video frame corresponding to single game view data that described first coding indicates the first decoded video frame, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data or end field picture data, and described first the coding indication appearance order of homology decoded video frame in described video code flow of also indicating described the first decoded video frame and described the first decoded video frame; Wherein, described the first decoded video frame and the described homology decoded video frame view data of different based on same image obtains;
According to described first coding indication, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
In conjunction with second aspect, in the possible execution mode of the first of second aspect,
Described first coding indication comprises the first indication parameter and the second indication parameter;
Wherein, it is decoded video frame corresponding to single game view data that described the first indication parameter indicates the first decoded video frame, and the single game view data that described the first indication parameter also indicates described the first decoded video frame to comprise is top field picture data or end field picture data;
The appearance order of the homology decoded video frame that described the second indication parameter indicates described the first decoded video frame and described the first decoded video frame in described video code flow.
In conjunction with second aspect, in the possible execution mode of the second of second aspect, described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first decoded video frame to comprise is top field picture data or end field picture data;
The appearance order of the homology decoded video frame that described the second indication parameter indicates described the first decoded video frame and described the first decoded video frame in described video code flow.
The possible execution mode of the second in conjunction with the possible execution mode of the first of second aspect or second aspect or second aspect, in the third possible execution mode of second aspect, describedly according to described first coding indication, described the first image decoding data and described the second image decoding data are blended and are obtained the image that blends, comprising:
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output of the decoding of described the first image decoding data and described the second image decoding data order is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends;
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output of the decoding of described the first image decoding data and described the second image decoding data order is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
In conjunction with the possible execution mode of the second of the possible execution mode of the first of second aspect or second aspect or second aspect, in the 4th kind of possible execution mode of second aspect,
Described the second decoded video frame comprises second coding indication, it is decoded video frame corresponding to single game view data that described second coding indicates the second decoded video frame, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data or end field picture data, and described second the coding indication appearance order of homology decoded video frame in described video code flow of also indicating described the second decoded video frame and described the second decoded video frame;
Describedly according to described first coding indication, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends, comprise: according to described first coding indication and described second coding, indicate, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
The 4th kind of possible execution mode in conjunction with second aspect, in the 5th kind of possible execution mode of second aspect, described according to described first coding indication and described second coding indication, described the first image decoding data and described the second image decoding data are blended and are obtained the image that blends, comprising:
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs prior to described the second decoded video frame in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is end field picture data, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs in described the second decoded video frame after in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is end field picture data, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs prior to described the second decoded video frame in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs in described the second decoded video frame after in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
The third aspect, a kind of video coding apparatus, comprising:
Acquiring unit, for obtaining image;
Coding unit, for carrying out Video coding to obtain the first Video coding frame to the first field picture data of described image; The second field picture data of described image are carried out to Video coding to obtain the second Video coding frame;
Writing unit, for writing video code flow by described the first Video coding frame and described the second Video coding frame;
Wherein, described the first Video coding frame comprises first coding indication, described first described the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that described first coding indication also indicates described the first Video coding frame to comprise is top field picture data or end field picture data, and described first coding indication also indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow;
Wherein, described the first field picture data are top field picture data, and described the second field picture data are end field picture data, or described the second field picture data are top field picture data, and described the first field picture data are end field picture data.
In conjunction with the third aspect, in the possible execution mode of the first of the third aspect,
Described first coding indication comprises the first indication parameter and the second indication parameter;
Wherein, it is Video coding frame corresponding to single game view data that described the first indication parameter is indicated described the first Video coding frame, and the single game view data that described the first indication parameter also indicates described the first Video coding frame to comprise is top field picture data or end field picture data;
Described the second indication parameter indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow.
In conjunction with the third aspect, in the possible execution mode of the second of the third aspect, described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate described the first Video coding frame be Video coding frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first Video coding frame to comprise is top field picture data or end field picture data;
Described the second indication parameter indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow.
The possible execution mode of the second in conjunction with the possible execution mode of the first of the third aspect or the third aspect or the third aspect, in the third possible execution mode of the third aspect, , described the second Video coding frame comprises second coding indication, described second described the second Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that described second coding indication also indicates described the second Video coding frame to comprise is end field picture data or top field picture data, described second coding indication also indicates the sequencing that described the second Video coding frame and described the first Video coding frame occur in described video code flow.
Fourth aspect, a kind of video decoder, can comprise:
Decoding unit, for carrying out video decode to obtain the first image decoding data to the first decoded video frame of video code flow; The second decoded video frame in described video code flow is carried out to video decode to obtain the second image decoding data; Wherein, described the first decoded video frame comprises first coding indication, it is decoded video frame corresponding to single game view data that described first coding indicates the first decoded video frame, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data or end field picture data, and described first the coding indication appearance order of homology decoded video frame in described video code flow of also indicating described the first decoded video frame and described the first decoded video frame; Wherein, described the first decoded video frame and the described homology decoded video frame view data of different based on same image obtains;
Blending unit, for blending described the first image decoding data and described the second image decoding data to obtain the image that blends according to described first coding indication.
In conjunction with fourth aspect, in the possible execution mode of the first of fourth aspect,
Described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first decoded video frame to comprise is top field picture data or end field picture data;
The appearance order of the homology decoded video frame that described the second indication parameter indicates described the first decoded video frame and described the first decoded video frame in described video code flow.
In conjunction with fourth aspect, in the possible execution mode of the second of fourth aspect,
Described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first decoded video frame to comprise is top field picture data or end field picture data;
The homology decoded video frame that described the second indication parameter indicates described the first decoded video frame occurs prior to described the first decoded video frame in described video code flow.
In conjunction with the possible execution mode of the second of the possible execution mode of the first of fourth aspect or fourth aspect or fourth aspect, in the third possible execution mode of fourth aspect,
Described blending unit specifically for, if the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output of the decoding of described the first image decoding data and described the second image decoding data order is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends;
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output of the decoding of described the first image decoding data and described the second image decoding data order is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
In conjunction with the possible execution mode of the second of the possible execution mode of the first of fourth aspect or fourth aspect or fourth aspect, in the 4th kind of possible execution mode of fourth aspect,
Described the second decoded video frame comprises second coding indication, it is decoded video frame corresponding to single game view data that described second coding indicates the second decoded video frame, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data or end field picture data, and described second the coding indication appearance order of homology decoded video frame in described video code flow of also indicating described the second decoded video frame and described the second decoded video frame;
Wherein, described blending unit specifically for, according to described first coding indication and described second coding, indicate, described the first image decoding data and described the second image decoding data are blended and are obtained the image that blends.
In conjunction with the 4th kind of possible execution mode of fourth aspect, in the 5th kind of possible execution mode of fourth aspect,
Described blending unit specifically for, if the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs prior to described the second decoded video frame in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is end field picture data, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs in described the second decoded video frame after in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is end field picture data, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs prior to described the second decoded video frame in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs in described the second decoded video frame after in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
Can find out, in some Video Coding Scheme of the present invention, the first field picture data of image and the second field picture data be carried out respectively to Video coding to obtain the first Video coding frame and the second Video coding frame; The first Video coding frame and the second Video coding frame are write to video code flow.Wherein, because the first Video coding frame comprises first coding indication, above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data, and first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.Wherein, owing to utilizing clear and definite the indicating of the first Video coding frame, the sequencing that the homology Video coding frame that the view data of different based on same image obtains occurs in video code flow, this is conducive to the sequencing that homology Video coding frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of a kind of method for video coding of providing of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of a kind of video encoding/decoding method of providing of the embodiment of the present invention;
Fig. 3 is the schematic diagram of a kind of video coding apparatus of providing of the embodiment of the present invention;
Fig. 4 is the schematic diagram of a kind of video decoder of providing of the embodiment of the present invention;
Fig. 5 is the schematic diagram of the another kind of video coding apparatus that provides of the embodiment of the present invention;
Fig. 6 is the schematic diagram of the another kind of video coding apparatus that provides of the embodiment of the present invention;
Fig. 7 is the schematic diagram of the another kind of video decoder that provides of the embodiment of the present invention;
Fig. 8 is the schematic diagram of the another kind of video decoder that provides of the 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 to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, should belong to the scope of protection of the invention.
Below be elaborated respectively.
Term " first " in specification of the present invention and claims and above-mentioned accompanying drawing, " second ", " the 3rd " " 4th " etc. are for distinguishing different objects, rather than for describing particular order.In addition, term " comprises " and " having " and their any distortion, is intended to be to cover not exclusive comprising.Process, method, system, product or the equipment that has for example comprised series of steps or unit is not defined in step or the unit of having listed, but also comprise alternatively step or the unit of not listing, or also comprise alternatively for these processes, method, product or equipment intrinsic other step or unit.
Below be elaborated respectively.
First introduce the method for video coding that the embodiment of the present invention provides, the executive agent of the method for video coding that the embodiment of the present invention provides is video coding apparatus, wherein, this video coding apparatus can be any device that needs output, store video, as mobile phone, notebook computer, panel computer, the equipment such as PC.
One embodiment of method for video coding of the present invention, wherein, a kind of method for video coding comprises: obtain image; The first field picture data of above-mentioned image are carried out to Video coding to obtain the first Video coding frame; The second field picture data of above-mentioned image are carried out to Video coding to obtain the second Video coding frame; Above-mentioned the first Video coding frame and above-mentioned the second Video coding frame are write to video code flow; Wherein, above-mentioned the first Video coding frame comprises first coding indication, above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data, and above-mentioned first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow; Wherein, above-mentioned the first field picture data are top field picture data, and above-mentioned the second field picture data are end field picture data, or above-mentioned the second field picture data are top field picture data, and above-mentioned the first field picture data are end field picture data.
Referring to Fig. 1, the schematic flow sheet of a kind of method for video coding that Fig. 1 provides for one embodiment of the present of invention.As shown in Figure 1, a kind of method for video coding that one embodiment of the present of invention provide can comprise following content:
101, obtain image.
102, the first field picture data of above-mentioned image are carried out to Video coding to obtain the first Video coding frame.
103, the second field picture data of above-mentioned image are carried out to Video coding to obtain the second Video coding frame.
Wherein, above-mentioned the first field picture data can be top field picture data (being the top field picture data that the first field picture data of above-mentioned image can be above-mentioned image), and above-mentioned the second field picture data can be end field picture data (being the end field picture data that the second field picture data of above-mentioned image can be above-mentioned image).Or (above-mentioned the second field picture data can be top field picture data, the second field picture data of above-mentioned image can be the top field picture data of above-mentioned image), and above-mentioned the first field picture data can be end field picture data (being the end field picture data that the first field picture data of above-mentioned image can be above-mentioned image).
Wherein, inevitable execution sequencing useless between step 102 and step 103, for example step 202 can prior to or be later than step 103 and carry out, or step 102 and step 103 also can synchronously carry out, or step 102 and step 103 also can be interted execution.
104, above-mentioned the first Video coding frame and above-mentioned the second Video coding frame are write to video code flow.
Wherein, above-mentioned the first Video coding frame comprises first coding indication (first coding indication for example can be contained in frame head and/or other positions of above-mentioned the first Video coding frame), and above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data.That is to say, above-mentioned first coding indicated the single game view data that can indicate above-mentioned the first Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image.
Wherein, the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data.For example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that above-mentioned first above-mentioned the first Video coding frame of coding indication indication comprises is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that above-mentioned first above-mentioned the first Video coding frame of coding indication indication comprises is end field picture data.
Wherein, above-mentioned first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame is prior to above-mentioned the second Video coding frame appearance to above-mentioned first coding.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame appearance after above-mentioned the first Video coding frame to above-mentioned first coding.
Can find out, in the Video Coding Scheme of the present embodiment, the first field picture data of image and the second field picture data be carried out respectively to Video coding to obtain the first Video coding frame and the second Video coding frame; The first Video coding frame and the second Video coding frame are write to video code flow.Wherein, because the first Video coding frame comprises first coding indication, above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data, and first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.Wherein, owing to utilizing clear and definite the indicating of the first Video coding frame, the sequencing that the homology Video coding frame that the view data of different based on same image obtains occurs in video code flow, this is conducive to the sequencing that homology Video coding frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
Wherein, the top field picture data of image and end field picture data are carried out Video coding respectively and obtained two Video coding frames " homology Video coding frame " each other, because the field picture data that these two Video coding frames comprise are from same image.For example.The homology Video coding frame that above-mentioned the first Video coding frame is above-mentioned the second Video coding frame, in like manner, the homology Video coding frame that above-mentioned the second Video coding frame is also above-mentioned the first Video coding frame.Similarly, the top field picture data of certain image and end field picture data are " homology field picture data " each other, because these two field picture data are from same image.For example.The homology field picture data of the end field picture data that the top field picture data of above-mentioned image are above-mentioned image, in like manner, the homology field picture data of the top field picture data that the end field picture data of above-mentioned image are above-mentioned image.
In possible execution modes more of the present invention, above-mentioned first coding indication can comprise the first indication parameter and the second indication parameter.Wherein, above-mentioned the first indication parameter indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the first indication parameter can indicate above-mentioned the first Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image), the single game view data that above-mentioned the first indication parameter also indicates above-mentioned the first Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the first indication parameter indicates above-mentioned the first Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the first indication parameter indicates above-mentioned the first Video coding frame to comprise is end field picture data).Wherein, above-mentioned the second indication parameter indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame to the second indication parameter.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame, to occur after above-mentioned the first Video coding frame to the second indication parameter.
In other possible execution modes of the present invention, above-mentioned first coding indication for example can comprise the 3rd indication parameter, the 4th indication parameter and the second indication parameter.Wherein, above-mentioned the 3rd indication parameter can indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 3rd indication parameter can indicate above-mentioned the first Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image).The single game view data that above-mentioned the 4th indication parameter can indicate above-mentioned the first Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the 4th indication parameter indicates above-mentioned the first Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the 4th indication parameter indicates above-mentioned the first Video coding frame to comprise is end field picture data).Wherein, above-mentioned the second indication parameter indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, the first indication parameter for example can comprise at least two bits, wherein, the first indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The second indication parameter for example comprises at least 1 bit.The second indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
Optionally, above-mentioned the second Video coding frame can comprise second coding indication (second coding indication for example can be contained in above-mentioned the second Video coding frame frame head and/other positions), it is Video coding frame corresponding to single game view data that above-mentioned second coding indication can be indicated above-mentioned the second Video coding frame,, above-mentioned second coding indicated the single game view data that can indicate above-mentioned the second Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image.
Optionally, the single game view data that above-mentioned second coding indication also can indicate above-mentioned the second Video coding frame to comprise is end field picture data or top field picture data.For example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that above-mentioned second coding indication can indicate above-mentioned the second Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that above-mentioned second above-mentioned the second Video coding frame of coding indication indication comprises is end field picture data.
Optionally, above-mentioned second coding indication also can indicate the sequencing that above-mentioned the second Video coding frame and above-mentioned the first Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned second coding indication.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame, to occur after above-mentioned the first Video coding frame in above-mentioned second coding indication.
In possible execution modes more of the present invention, above-mentioned second coding indication can comprise the 5th indication parameter and the 5th indication parameter.Wherein, above-mentioned the 5th indication parameter indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 5th indication parameter can indicate above-mentioned the second Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image), the single game view data that above-mentioned the 5th indication parameter also indicates above-mentioned the second Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 5th indication parameter indicates above-mentioned the second Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 5th indication parameter indicates above-mentioned the second Video coding frame to comprise is end field picture data).Wherein, above-mentioned the 6th indication parameter indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame to the 6th indication parameter.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame, to occur after above-mentioned the first Video coding frame to the 6th indication parameter.
In other possible execution modes of the present invention, above-mentioned second coding indication for example can comprise the 7th indication parameter, the 8th indication parameter and the 6th indication parameter.Wherein, above-mentioned the 7th indication parameter can indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 7th indication parameter can indicate above-mentioned the second Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image).The single game view data that above-mentioned the 8th indication parameter can indicate above-mentioned the second Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 8th indication parameter indicates above-mentioned the second Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 8th indication parameter indicates above-mentioned the second Video coding frame to comprise is end field picture data).Wherein, above-mentioned the 6th indication parameter indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, the 5th indication parameter for example can comprise at least two bits, wherein, the 5th indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The 6th indication parameter for example comprises at least 1 bit.The 6th indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
Be appreciated that, due to second coding indication and first encode the sequencing that the second Video coding frame of indicating and the first Video coding frame occur in video code flow in essence should be identical, therefore, whether the sequencing that video decoder also can occur according to the second Video coding frame shown in second coding indication and first coding indication indication and the first Video coding frame in video code flow is identical, determines whether that existence abandons frame or error condition etc.Certainly, be also that the sequencing occurring in video code flow due to the second Video coding frame shown in second coding indication and first coding indication indication and the first Video coding frame in essence should be identical, therefore second coding indicated and also can be omitted.
Wherein, so-called " sequencing that Video coding frame occurs in video code flow ", can be regarded as is the sequencing that coding obtains Video coding frame, for example, the first Video coding frame occurs in code stream prior to the second Video coding frame, and can be understood as is that coding obtains the first Video coding frame and obtains the second Video coding frame prior to coding.Again for example, after the first Video coding frame, in the second Video coding frame, in code stream, occur, can be regarded as is that coding obtains in coding, obtaining the second Video coding frame after the first Video coding frame.
Wherein, so-called " the rear output order of decoding of decode image data ", can be regarded as is the DISPLAY ORDER of the decode image data of the corresponding decoded video frame of decode image data after decoding and sequence.The sequencing that the first decoded video frame and the second decoded video frame occur in video code flow, may be different from the first decoded video frame corresponding decode image data and the second decoded video frame the rear output order of decoding of corresponding decode image data.
Wherein, for video decoder, also the Video coding frame in video code flow can be called to decoded video frame.
Introduce the video encoding/decoding method that the embodiment of the present invention provides below, the executive agent of the video encoding/decoding method that the embodiment of the present invention provides is video decoder, wherein, this video decoder can be any device that needs output, displaying video, as mobile phone, notebook computer, panel computer, the equipment such as PC.
Another embodiment of video encoding/decoding method of the present invention, wherein, a kind of video encoding/decoding method comprises: the first decoded video frame in video code flow is carried out to video decode to obtain the first image decoding data; The second decoded video frame in above-mentioned video code flow is carried out to video decode to obtain the second image decoding data; Wherein, above-mentioned the first decoded video frame comprises first coding indication, it is decoded video frame corresponding to single game view data that above-mentioned first coding indicates the first decoded video frame, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data or end field picture data, and above-mentioned first the coding indication appearance order of homology decoded video frame in above-mentioned video code flow of also indicating above-mentioned the first decoded video frame and above-mentioned the first decoded video frame; Wherein, above-mentioned the first decoded video frame and the above-mentioned homology decoded video frame view data of different based on same image obtains; According to above-mentioned first coding indication, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
Refer to Fig. 2, the schematic flow sheet of a kind of video encoding/decoding method that Fig. 2 provides for an alternative embodiment of the invention.As shown in Figure 2, a kind of video encoding/decoding method that an alternative embodiment of the invention provides can comprise following content:
201, the first decoded video frame in video code flow is carried out to video decode to obtain the first image decoding data.
202, the second decoded video frame in above-mentioned video code flow is carried out to video decode to obtain the second image decoding data.
Wherein, inevitable execution sequencing useless between step 201 and step 202, for example step 201 can prior to or be later than step 202 and carry out, or step 201 and step 202 also can synchronously carry out, or step 201 and step 202 also can be interted execution.
Wherein, above-mentioned the first decoded video frame comprises first coding indication, it is decoded video frame corresponding to single game view data that above-mentioned first coding indicates the first decoded video frame, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data or end field picture data, and above-mentioned first the coding indication appearance order of homology decoded video frame in above-mentioned video code flow of also indicating above-mentioned the first decoded video frame and above-mentioned the first decoded video frame; Wherein, above-mentioned the first decoded video frame and the above-mentioned homology decoded video frame view data of different based on same image obtains.
203, according to above-mentioned first coding indication, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
Wherein, the view data of different of the above-mentioned homology decoded video frame of above-mentioned the first decoded video frame and above-mentioned the first decoded video frame based on same image obtains.That is, the view data of different based on same image and obtain obtaining two decoded video frames " homology decoded video frame " each other.Similarly, the top field picture data of certain image and end field picture data are " homology field picture data " each other, because these two field picture data are from same image.For example.The homology field picture data of the end field picture data that the top field picture data of certain sub-picture are this image, in like manner, the homology field picture data of the top field picture data that the end field picture data of certain image are this image.
Can find out, in the video decoding project of the present embodiment, at the first decoded video frame in video code flow and the second decoded video frame, carry out video decode with after obtaining the first image decoding data and the second image decoding data, owing to being first indication that coding is indicated comprising according to the first decoded video frame, and the appearance order of the second decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of first image decoding data and above-mentioned the second image decoding data, determine whether above-mentioned the first image decoding data and above-mentioned the second image decoding data to blend and obtain the image that blends.Wherein, due to clear and definite the indicating of the first decoded video frame, the sequencing that the first decoded video frame and its homology decoded video frame occur in video code flow, this is conducive to the sequencing that homology decoded video frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
In some possible execution modes of the present invention, above-mentioned first coding indication can comprise the first indication parameter and the second indication parameter, wherein, above-mentioned the first indication parameter indication can indicate the first decoded video frame be decoded video frame corresponding to single game view data (, the single game view data that the first indication parameter can indicate above-mentioned the first decoded video frame to comprise piece image, and do not comprise the two field picture data of piece image), and the single game view data that above-mentioned the first indication parameter can also indicate above-mentioned the first decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the first decoded video frame comprises is top field picture data, the single game view data that the first indication parameter indicates above-mentioned the first decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the first decoded video frame comprises is end field picture data, the single game view data that the first indication parameter indicates above-mentioned the first decoded video frame to comprise is end field picture data).The appearance sequencing of the homology decoded video frame that above-mentioned the second indication parameter can indicate above-mentioned the first decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow.
In other possible execution modes of the present invention, above-mentioned first coding indication can comprise the 3rd indication parameter, the 4th indication parameter and the second indication parameter; Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to above-mentioned the 3rd indication parameter.The single game view data that above-mentioned the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the first decoded video frame comprises is top field picture data, the single game view data that the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the first decoded video frame comprises is end field picture data, and the single game view data that the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise is end field picture data).The appearance sequencing of the homology decoded video frame that above-mentioned the second indication parameter can indicate above-mentioned the first decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow.
Wherein, the first indication parameter for example can comprise at least two bits, wherein, the first indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The second indication parameter for example comprises at least 1 bit.The second indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
In possible execution modes more of the present invention, according to above-mentioned first coding indication, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends, can comprise: if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data order is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
In other possible execution modes of the present invention, above-mentioned the second decoded video frame can comprise second coding indication, it is decoded video frame corresponding to single game view data that above-mentioned second coding indicates the second decoded video frame, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is top field picture data or end field picture data, and above-mentioned second the coding indication appearance order of homology decoded video frame in above-mentioned video code flow of also indicating above-mentioned the second decoded video frame and above-mentioned the second decoded video frame;
Above-mentionedly according to above-mentioned first coding indication, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends, comprise: according to above-mentioned first coding indication and above-mentioned second coding, indicate, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
For example, according to above-mentioned first coding indication and above-mentioned second coding, indicate, above-mentioned the first image decoding data and above-mentioned the second image decoding data blended and obtained the image that blends, comprising:
If the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs prior to above-mentioned the second decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is end field picture data, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs in above-mentioned the second decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is end field picture data, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs prior to above-mentioned the second decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is top field picture data, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs in above-mentioned the second decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is top field picture data, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
In some possible execution modes of the present invention, above-mentioned second coding indication can comprise the 5th indication parameter and the 6th indication parameter, wherein, above-mentioned the 5th indication parameter indication can indicate the second decoded video frame be decoded video frame corresponding to single game view data (, the single game view data that the 5th indication parameter can indicate above-mentioned the second decoded video frame to comprise piece image, and do not comprise the two field picture data of piece image), and the single game view data that above-mentioned the 5th indication parameter can also indicate above-mentioned the second decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the second decoded video frame comprises is top field picture data, the single game view data that the 5th indication parameter indicates above-mentioned the second decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the second decoded video frame comprises is end field picture data, the single game view data that the 5th indication parameter indicates above-mentioned the second decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the 6th indication parameter can indicate above-mentioned the second decoded video frame and above-mentioned the second decoded video frame in above-mentioned video code flow.
In other possible execution modes of the present invention, above-mentioned second coding indication can comprise the 7th indication parameter, the 8th indication parameter and the 6th indication parameter; Wherein, to indicate the second decoded video frame be decoded video frame corresponding to single game view data to above-mentioned the 7th indication parameter.The single game view data that above-mentioned the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the second decoded video frame comprises is top field picture data, the single game view data that the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise is top field picture data, if the single game view data that above-mentioned the second decoded video frame comprises is end field picture data, the single game view data that the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the 6th indication parameter can indicate above-mentioned the second decoded video frame and above-mentioned the second decoded video frame in above-mentioned video code flow.
Wherein, the 5th indication parameter for example can comprise at least two bits, wherein, the 5th indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The 6th indication parameter for example comprises at least 1 bit.The 6th indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
Wherein, above-mentioned above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends, for example can comprise: if the first image decoding data are top field picture decoded data, the second image decoding data are end field picture decoded data, top field picture data using the first image decoding data as blending image, the end field picture data using the second image decoding data as blending image.Or, above-mentioned the blend image that obtains blending of above-mentioned the first image decoding data and above-mentioned the second image decoding data can be comprised: if the second image decoding data are top field picture decoded data, the first image decoding data are end field picture decoded data, top field picture data using the second image decoding data as blending image, the end field picture data using the first image decoding data as blending image.
For ease of better understanding and implement the technique scheme of the embodiment of the present invention, below by some concrete application scenarioss, be illustrated.
Some embodiments of the invention, by the field syntax elements encoded implication of extension standards protocol definition, are conducive to realize an encoding and decoding more flexibly.
For example, picture structure (picture_structure) indicating bit: when present image is horizontally interlaced image, indication present image is with row-by-row system coding or interlace mode coding.
For example, can represent that two field picture data occur successively when the value of picture_structure indicating bit is 0, present image is encoded with interlace mode, first coding or decoding one field picture data another field picture data of encoding or decode; The two field picture data blending that can represent present image when picture_structure indicating bit value is 1 occurs,, present image is encoded or is decoded with row-by-row system, and when encoding or decoding, deliberately not distinguishing two field picture data is top field picture data or end field picture data.
For example can expand the implication of progressive_frame indicating bit.Wherein, in standard agreement, progressive_frame indicating bit is only used to indicate a frame of video and comprises progressive scanning picture data or comprise horizontally interlaced image data.The indication implication of some embodiments of the invention expansion progressive_frame indicating bit, for example, progressive_frame indicating bit comprises progressive scanning picture data or comprises horizontally interlaced image data except a frame of video in can instruction video code stream, can also indicate when frame of video comprises single game view data, indicate top field picture data or end field picture data that this single game view data is image.
Wherein, progressive_frame indicating bit specific definition for example can be as follows:
For example, when the value of progressive_frame indicating bit is 0, the two field picture data that can instruction video frame comprise are for from field picture data in the same time not, and image is horizontally interlaced image.Now this frame of video can take that row-by-row system carries out coding/decoding (if picture_structure indicating bit value is 1) or the interlace mode of can take is carried out coding/decoding (picture_structure indicating bit value is 0).
When the value of progressive_frame indicating bit is 1, two field picture data blending that can indicating image occurs, be that present image is encoded or decoded with row-by-row system, when encoding or decoding, deliberately the two field picture data of differentiate between images are not top field picture data or end field picture data.Now, this frame of video is carried out coding/decoding with row-by-row system.
When the value of progressive_frame indicating bit is 2, can comprise single game view data and not comprise two field picture data by instruction video frame, and the single game view data that this frame of video comprises is top field picture data.
When the value of progressive_frame indicating bit is 3, can comprise single game view data and not comprise two field picture data by instruction video frame, and the single game view data that this frame of video comprises is end field picture data.
Be appreciated that because the progressive_frame indicating bit after expansion implication has four kinds of possible values, so progressive_frame indicating bit comprises at least two bits.Progressive_frame indicating bit can seen a kind of specific implementation of the first indication parameter in above-described embodiment.
Wherein, in the expansion of above-mentioned progressive_frame indicating bit, when progressive_frame indicating bit value 2 or 3, a frame of video comprises single game view data and does not comprise two field picture data, therefore now without carry out the code encoding/decoding mode of the two field picture data in instruction video frame by picture_structure indicating bit, therefore, now the value of picture_structure indicating bit is made as fixed value, as can be fixedly made as 1 or 0.
Can find out, by the implication of extension syntax element progressive_frame indicating bit, be conducive to effectively support a frame of video to encode separately in single game mode, thus the complexity to coded data management and reference frame management while being conducive to simplify coding on the scene.
In addition implication that also can extension syntax element top_field_first indicating bit, the sequencing that top_field_first indicating bit can be used for indicating the homology frame of video of a frame of video and this frame of video to occur in video code flow.The specific definition of top_field_first indicating bit for example can be as follows:
For example, when the value of top_field_first indicating bit is 1, can indicate the top field picture data in this field picture data correspondence image prior to end field picture data, to occur in video code flow, be that the sequencing that the homology frame of video of frame of video and this frame of video occurs in video code flow is that the frame of video that comprises end field picture data homology frame of video (frame of video that comprises top field picture data) prior to this frame of video in video code flow occurs.
For example, when the value of top_field_first indicating bit is 0, after can indicating top field picture data in this field picture data correspondence image in video code flow, in end field picture data, occur, be that the rear order that the homology frame of video of frame of video and this frame of video occurs in video code flow is that the frame of video that comprises top field picture data homology frame of video (frame of video that comprises end field picture data) prior to this frame of video in video code flow occurs.
Wherein, by the indication implication of extension syntax element top_field_first indicating bit, be conducive to video decoder and clearly know how each field picture data and the opposite field view data of decode output blend to obtain the image that blends.Wherein, top_field_first indicating bit can seen a kind of specific implementation of the second indication parameter in above-described embodiment.
Below by some object lessons, illustrate some occupation modes of syntactic element progressive_frame indicating bit and top_field_first indicating bit.
First in conjunction with method for video coding, give an example below.
The embodiment of the present invention also provides a kind of method for video coding, can comprise: obtain image P1, the top field picture data of above-mentioned image P1 are carried out to Video coding to obtain the first Video coding frame.The end field picture data of above-mentioned image P1 are carried out to Video coding to obtain the second Video coding frame.Above-mentioned the first Video coding frame and above-mentioned the second Video coding frame are write to video code flow.Wherein, above-mentioned the first Video coding frame comprises first coding indication (first coding indication for example can be contained in frame head and/or other positions of above-mentioned the first Video coding frame), first coding indication comprises progressive_frame indicating bit and top_field_first indicating bit, wherein, the value of progressive_frame indicating bit is 2, and (to indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data to this progressive_frame indicating bit, and the single game view data that also can indicate above-mentioned the first Video coding frame to comprise is top field picture data).The value of top_field_first indicating bit is 1 (being that top_field_first indicating bit indication first Video coding frame in video code flow occurs prior to the second Video coding frame).Wherein, above-mentioned the second Video coding frame comprises second coding indication (second coding indication for example can be contained in frame head and/or other positions of above-mentioned the second Video coding frame), second coding indication comprises progressive_frame indicating bit and top_field_first indicating bit, wherein, the value of the progressive_frame indicating bit that second coding indication comprises is 3, and (to indicate the progressive_frame indicating bit comprising to indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data to second coding, and the single game view data that the progressive_frame indicating bit that second coding indication comprises also can indicate above-mentioned the second Video coding frame to comprise is end field picture data).The value of the top_field_first indicating bit that wherein, second coding indication comprises is 1 (being that top_field_first indicating bit indication first Video coding frame in video code flow occurs prior to the second Video coding frame).
The embodiment of the present invention also provides a kind of method for video coding, can comprise: obtain image P2, the top field picture data of above-mentioned image P2 are carried out to Video coding to obtain the first Video coding frame.The end field picture data of above-mentioned image P2 are carried out to Video coding to obtain the second Video coding frame.Above-mentioned the first Video coding frame and above-mentioned the second Video coding frame are write to video code flow.Wherein, above-mentioned the first Video coding frame comprises first coding indication (first coding indication for example can be contained in frame head and/or other positions of above-mentioned the first Video coding frame), first coding indication comprises progressive_frame indicating bit and top_field_first indicating bit, wherein, the value of progressive_frame indicating bit is 2, and (to indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data to this progressive_frame indicating bit, and the single game view data that also can indicate above-mentioned the first Video coding frame to comprise is top field picture data).The value of top_field_first indicating bit is 0 (being that the indication of top_field_first indicating bit occurs in the second Video coding frame after the first Video coding frame in video code flow).Wherein, above-mentioned the second Video coding frame comprises second coding indication (second coding indication for example can be contained in frame head and/or other positions of above-mentioned the second Video coding frame), second coding indication comprises progressive_frame indicating bit and top_field_first indicating bit, wherein, the value of the progressive_frame indicating bit that second coding indication comprises is 3, and (to indicate the progressive_frame indicating bit comprising to indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data to second coding, and the single game view data that the progressive_frame indicating bit that second coding indication comprises also can indicate above-mentioned the second Video coding frame to comprise is end field picture data).It is 0 (being that the indication of top_field_first indicating bit occurs in the second Video coding frame after the first Video coding frame in video code flow) that second coding indicated the value of the top_field_first indicating bit comprising.
Can find out, in above-mentioned several Video Coding Scheme for example, the top field picture data of image and end field picture data be carried out respectively to Video coding to obtain the first Video coding frame and the second Video coding frame; The first Video coding frame and the second Video coding frame are write to video code flow.Wherein, because the first Video coding frame comprises first coding indication, first coding indication comprises progressive_frame indicating bit and top_field_first indicating bit, it is Video coding frame corresponding to single game view data that progressive_frame indicating bit is indicated above-mentioned the first Video coding frame, and the single game view data that progressive_frame indicating bit also indicates the first Video coding frame to comprise is top field picture data, and top_field_first indicating bit indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.Owing to utilizing clear and definite the indicating of the first Video coding frame, the sequencing that the homology Video coding frame that the view data of different based on same image obtains occurs in video code flow, this is conducive to the sequencing that homology Video coding frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
First in conjunction with video encoding/decoding method, give an example below.
Suppose, the decoded video frame in video code flow is decoded, after decoding, the field picture data sequence of output is as follows successively: bot1, top2, bot3, top4, bot5 ...
Wherein, bot represents that end field picture data, top represent top field picture data.Wherein, numbering below of bot and top (1,2,3,4,5 ...) represent output order after code stream decoding.2 (the value of the progressive_frame indicating bit of the decoded video frame in video code flow is, decoded video frame comprises single game view data and this single game view data is top field picture data) or 3 (that is, decoded video frame comprise single game view data and this single game view data is end field picture data).And the value of the top_field_first indicating bit of all coded frame is 1.In the present example, because the value of the top_field_first indicating bit of all coded frame is 1, therefore, in code stream, in image corresponding to all field picture data, be all that top field picture data occur prior to end field picture data in video code flow.Therefore, known according to above-mentioned code flow structure, bot1 occurred before top2, because the top field picture data of syntactic element top_field_first indicating bit indicating image occur in video code flow prior to top, field, end field picture data all the time, therefore, bot1 cannot blend into a width blending image at video decoder with top2, after bot3, in top2, in code stream, occur, and the rear output order of the decoding of bot3 and top2 is adjacent, therefore, top2 can be blended into piece image with bot3, in like manner, top4 blends into piece image with bot5.Other can be by that analogy.
In like manner, the value of supposing the top_field_first indicating bit of all decoded video frames in above-mentioned code flow structure is 0, and video decoder can blend into piece image with top2 by bot1, in like manner, bot3 can be blended into piece image with top4.Other can be by that analogy.
In addition the anti-error code capacity of video decoder in the time of, can also increasing field coding according to the combination of progressive_frame and top_field_first syntactic element.
Suppose, the decoded video frame in video code flow is decoded, after decoding, the field picture data sequence of output is as follows successively: bot1, top2, top3, bot4, bot5 ...2 (the value of the progressive_frame indicating bit of the decoded video frame in video code flow is, decoded video frame comprises single game view data and this single game view data is top field picture data) or 3 (that is, decoded video frame comprise single game view data and this single game view data is end field picture data).Different from previous example, the value of the top_field_first indicating bit that decoded video frame is corresponding is not quite similar, bot1 for example, top2, top3, bot4, bot5 ... the value of corresponding top_field_first indicating bit is as follows successively: 0,0,1,1,1 ...
Wherein, because the value of bot1 and top_field_first indicating bit corresponding to top2 is 0, therefore in image corresponding to these two field picture data, be that top field picture data occur in end field picture data after in video code flow, therefore, video decoder can blend into piece image with top2 by bot1.Because the value of top3 and top_field_first indicating bit corresponding to bot4 is 1, therefore, in image corresponding to these two field picture data, be that top field picture data occur prior to end field picture data in video code flow, video decoder can blend into piece image with bot4 by top3.Other can be by that analogy.Now can think that missing image or error of transmission do not occur this section of video code flow.
Hypothesis, decodes to the decoded video frame in video code flow again, and after decoding, the field picture data sequence of output is as follows successively: bot1, top2, top3, bot4, bot5 ...The value of the progressive_frame indicating bit of the decoded video frame in video code flow is 2 or 3.Wherein, the value of the top_field_first indicating bit that decoded video frame is corresponding is not quite similar, bot1 for example, top2, top3, bot4, top5 ... the value of corresponding top_field_first indicating bit is as follows successively: 0,0,0,1,1 ...
Because the value of bot1 and top_field_first indicating bit corresponding to top2 is 0, therefore in image corresponding to these two field picture data, be that top field picture data occur in end field picture data after in video code flow, so video decoder can blend into piece image with top2 by bot1.Because the value of top_field_first indicating bit corresponding to top3 is 0, therefore, in image corresponding to this this single game view data, be that top field picture data occur in end field picture data after in video code flow, and before top3, be next-door neighbour's top2, because piece image can not comprise two top field picture data, can know by inference thus, between top2 and top3, lost field picture data at the bottom of a width, or in transmitting procedure, there is error code and make some top_field_first indicating bits and/or progressive_frame indicating bit mistake in video code flow.The value of the syntactic elements such as the progressive_frame indicating bit that video decoder comprises according to decoded video frame in video code flow and top_field_first indicating bit, judge after frame losing or error condition appear in video video code flow, can how to process frame losing or error condition according to setting strategy decision.
Simply introduce the video-frequency compression method to video coding apparatus below.Video-frequency compression method can comprise compression and interframe compression in frame, and video coding apparatus is the interframe compression methods that adopt based on estimation now more.For example, video coding apparatus adopts interframe compression method can comprise the process of image compression coding: video coding apparatus is divided into several equal-sized subimage blocks by image block to be encoded, then for each subimage block, the image block that search is mated with current subimage block most in reference picture is as prediction piece, then this subimage block is subtracted each other and obtains residual error with the respective pixel values of prediction piece, the value that this residual error is obtained after conversion and quantification is carried out entropy coding, the coded data codings such as the bit stream finally entropy coding being obtained and motion vector information.Accordingly, first video decoder obtains and carries out entropy decoding after entropy coded bit stream and obtain the coded datas such as corresponding residual error and corresponding motion vector information; Then according to motion vector information, in reference picture, obtain corresponding matching image piece (being above-mentioned prediction piece), then be added according to the value of corresponding pixel points in the value of each pixel in matching image piece and residual values the value that obtains each pixel in current subimage block.Infra-frame prediction refers to that the information of utilizing in this width image predicts and obtain predicting piece image block, video coding apparatus obtains according to predictive mode, prediction direction, current image block pixel value around the pixel of predicting that piece is corresponding, current image block pixel is subtracted each other and obtained residual error with prediction piece pixel, and residual error writes in code stream after conversion, quantification and entropy coding; Video decoder is resolved code stream, code stream is carried out obtaining residual block after entropy decoding, inverse quantization, inverse transformation, video decoder obtains predicting piece according to predictive mode, prediction direction and image block pixel value around, and residual block pixel and prediction piece pixel addition are obtained to reconstructed image piece.
Inter prediction encoding is mainly used for eliminating video sequence redundancy in time, its concrete processing procedure mainly comprises: during some image blocks in video coding apparatus coding present image, in all reference frames of this image block, search for, in each reference frame, obtain respectively a prediction piece corresponding with this image block, and according to get one group of prediction piece to the processing of encoding of this image block.In order to improve the efficiency of inter prediction encoding, inter prediction image can also be further subdivided into predicted picture between forward frame, the P frame being commonly called as in video coding and decoding technology, and bidirectional interframe predictive image, the B frame being commonly called as in video coding and decoding technology.Wherein, preceding paragraph inter prediction image is used currently treats that the image before encoding and decoding image carries out coding-decoding operation, bidirectional interframe predictive image use current treat encoding and decoding image before and image afterwards carry out coding-decoding operation.Because bidirectional interframe predictive image need to be used, currently treat that the image after encoding and decoding image carries out coding-decoding operation, before treating encoding and decoding bidirectional interframe predictive image, need the image after this bidirectional interframe predictive image of first encoding and decoding.
Because bidirectional interframe predictive image has been used present image coded message before and afterwards, bidirectional interframe predictive image can improve code efficiency than predicted picture between forward frame.In order further to improve the code efficiency of bidirectional interframe predictive image, hierarchical B frame (Hierarchical B) technology is applied to the encoding and decoding of bidirectional interframe predictive image.Wherein, in level B frame technique, bidirectional interframe predictive image also can be used as reference picture and uses.The B frame of different levels has different priority, and the B frame that priority is high can be used as the reference frame of the B frame that priority is low.The priority of above-mentioned B frame can be by some syntactic elements for sign.
For ease of better understanding and implementing technique scheme of the invention process, be also provided for implementing the relevant apparatus of such scheme below.
Referring to Fig. 3, a kind of video coding apparatus that the invention process provides, can comprise:
Acquiring unit 310, for obtaining image.
Coding unit 320, for carrying out Video coding to obtain the first Video coding frame to the first field picture data of above-mentioned image; The second field picture data of above-mentioned image are carried out to Video coding to obtain the second Video coding frame.
Writing unit 330, for writing video code flow by above-mentioned the first Video coding frame and above-mentioned the second Video coding frame.
Wherein, above-mentioned the first Video coding frame comprises first coding indication, above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data, and above-mentioned first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, above-mentioned the first field picture data are top field picture data, and above-mentioned the second field picture data are end field picture data, or above-mentioned the second field picture data are top field picture data, and above-mentioned the first field picture data are end field picture data.
In possible execution modes more of the present invention, above-mentioned first coding indication can comprise the first indication parameter and the second indication parameter.Wherein, above-mentioned the first indication parameter indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the first indication parameter can indicate above-mentioned the first Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image), the single game view data that above-mentioned the first indication parameter also indicates above-mentioned the first Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the first indication parameter indicates above-mentioned the first Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the first indication parameter indicates above-mentioned the first Video coding frame to comprise is end field picture data).Wherein, above-mentioned the second indication parameter indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame to the second indication parameter.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame, to occur after above-mentioned the first Video coding frame to the second indication parameter.
In other possible execution modes of the present invention, above-mentioned first coding indication for example can comprise the 3rd indication parameter, the 4th indication parameter and the second indication parameter.Wherein, above-mentioned the 3rd indication parameter can indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 3rd indication parameter can indicate above-mentioned the first Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image).The single game view data that above-mentioned the 4th indication parameter can indicate above-mentioned the first Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the 4th indication parameter indicates above-mentioned the first Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the 4th indication parameter indicates above-mentioned the first Video coding frame to comprise is end field picture data).Wherein, above-mentioned the second indication parameter indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, the first indication parameter for example can comprise at least two bits, wherein, the first indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The second indication parameter for example comprises at least 1 bit.The second indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
In some embodiments of the invention, above-mentioned the second Video coding frame comprises second coding indication, above-mentioned second above-mentioned the second Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that above-mentioned second coding indication also indicates above-mentioned the second Video coding frame to comprise is end field picture data or top field picture data, and above-mentioned second coding indication also indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the first Video coding frame occur in above-mentioned video code flow.
In possible execution modes more of the present invention, above-mentioned second coding indication can comprise the 5th indication parameter and the 5th indication parameter.Wherein, above-mentioned the 5th indication parameter indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 5th indication parameter can indicate above-mentioned the second Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image), the single game view data that above-mentioned the 5th indication parameter also indicates above-mentioned the second Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 5th indication parameter indicates above-mentioned the second Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 5th indication parameter indicates above-mentioned the second Video coding frame to comprise is end field picture data).Wherein, above-mentioned the 6th indication parameter indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame to the 6th indication parameter.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame, to occur after above-mentioned the first Video coding frame to the 6th indication parameter.
In other possible execution modes of the present invention, above-mentioned second coding indication for example can comprise the 7th indication parameter, the 8th indication parameter and the 6th indication parameter.Wherein, above-mentioned the 7th indication parameter can indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 7th indication parameter can indicate above-mentioned the second Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image).The single game view data that above-mentioned the 8th indication parameter can indicate above-mentioned the second Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 8th indication parameter indicates above-mentioned the second Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 8th indication parameter indicates above-mentioned the second Video coding frame to comprise is end field picture data).Wherein, above-mentioned the 6th indication parameter indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, the 5th indication parameter for example can comprise at least two bits, wherein, the 5th indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The 6th indication parameter for example comprises at least 1 bit.The 6th indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
Be understandable that, the function of each functional module of the video coding apparatus 300 of the present embodiment can be according to the method specific implementation in said method embodiment, and its specific implementation process can, with reference to the associated description of said method embodiment, repeat no more herein.Video coding apparatus 300 can be any device that needs output, store video, as notebook computer, and the equipment such as panel computer, PC, mobile phone.
Can find out, the first field picture data of 300 pairs of images of video coding apparatus of the present embodiment and the second field picture data are carried out respectively Video coding to obtain the first Video coding frame and the second Video coding frame; The first Video coding frame and the second Video coding frame are write to video code flow.Wherein, because the first Video coding frame comprises first coding indication, above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data, and first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.Wherein, owing to utilizing clear and definite the indicating of the first Video coding frame, the sequencing that the homology Video coding frame that the view data of different based on same image obtains occurs in video code flow, this is conducive to the sequencing that homology Video coding frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
Referring to Fig. 4, the embodiment of the present invention also provides a kind of video decoder 400, can comprise: decoding unit 410 and blending unit 420.
Wherein, decoding unit 410, for carrying out video decode to obtain the first image decoding data to the first decoded video frame of video code flow; The second decoded video frame in above-mentioned video code flow is carried out to video decode to obtain the second image decoding data.Wherein, above-mentioned the first decoded video frame comprises first coding indication, it is decoded video frame corresponding to single game view data that above-mentioned first coding indicates the first decoded video frame, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data or end field picture data, and above-mentioned first the coding indication appearance order of homology decoded video frame in above-mentioned video code flow of also indicating above-mentioned the first decoded video frame and above-mentioned the first decoded video frame; Wherein, above-mentioned the first decoded video frame and the above-mentioned homology decoded video frame view data of different based on same image obtains.
Blending unit 420, for blending above-mentioned the first image decoding data and above-mentioned the second image decoding data to obtain the image that blends according to above-mentioned first coding indication.
In some possible execution modes of the present invention, above-mentioned first coding indication can comprise the first indication parameter and the second indication parameter, wherein, above-mentioned the first indication parameter indication can indicate the first decoded video frame be decoded video frame corresponding to single game view data (, the single game view data that the first indication parameter can indicate above-mentioned the first decoded video frame to comprise piece image, and do not comprise the two field picture data of piece image), and the single game view data that above-mentioned the first indication parameter can also indicate above-mentioned the first decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the first decoded video frame comprises is top field picture data, the single game view data that the first indication parameter indicates above-mentioned the first decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the first decoded video frame comprises is end field picture data, the single game view data that the first indication parameter indicates above-mentioned the first decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the second indication parameter can indicate above-mentioned the first decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow.
In other possible execution modes of the present invention, above-mentioned first coding indication can comprise the 3rd indication parameter, the 4th indication parameter and the second indication parameter; Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to above-mentioned the 3rd indication parameter.The single game view data that above-mentioned the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the first decoded video frame comprises is top field picture data, the single game view data that the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the first decoded video frame comprises is end field picture data, and the single game view data that the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the second indication parameter can indicate above-mentioned the first decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow.
Wherein, the first indication parameter for example can comprise at least two bits, wherein, the first indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The second indication parameter for example comprises at least 1 bit.The second indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
In possible execution modes more of the present invention, above-mentioned blending unit concrete 420 can be used for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or; Above-mentioned blending unit concrete 420 can be for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data order is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data can be blended and obtained the image that blends.
For example, above-mentioned blending unit 420 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs prior to above-mentioned the second decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is end field picture data, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned blending unit 420 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs in above-mentioned the second decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is end field picture data, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned blending unit 420 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs prior to above-mentioned the second decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is top field picture data, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned blending unit 420 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs in above-mentioned the second decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is top field picture data, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
In some possible execution modes of the present invention, above-mentioned second coding indication can comprise the 5th indication parameter and the 6th indication parameter, wherein, above-mentioned the 5th indication parameter indication can indicate the second decoded video frame be decoded video frame corresponding to single game view data (, the single game view data that the 5th indication parameter can indicate above-mentioned the second decoded video frame to comprise piece image, and do not comprise the two field picture data of piece image), and the single game view data that above-mentioned the 5th indication parameter can also indicate above-mentioned the second decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the second decoded video frame comprises is top field picture data, the single game view data that the 5th indication parameter indicates above-mentioned the second decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the second decoded video frame comprises is end field picture data, the single game view data that the 5th indication parameter indicates above-mentioned the second decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the 6th indication parameter can indicate above-mentioned the second decoded video frame and above-mentioned the second decoded video frame in above-mentioned video code flow.
In other possible execution modes of the present invention, above-mentioned second coding indication can comprise the 7th indication parameter, the 8th indication parameter and the 6th indication parameter; Wherein, to indicate the second decoded video frame be decoded video frame corresponding to single game view data to above-mentioned the 7th indication parameter.The single game view data that above-mentioned the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the second decoded video frame comprises is top field picture data, the single game view data that the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise is top field picture data, if the single game view data that above-mentioned the second decoded video frame comprises is end field picture data, the single game view data that the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the 6th indication parameter can indicate above-mentioned the second decoded video frame and above-mentioned the second decoded video frame in above-mentioned video code flow.
Wherein, the 5th indication parameter for example can comprise at least two bits, wherein, the 5th indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The 6th indication parameter for example comprises at least 1 bit.The 6th indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
Be understandable that, the function of each functional module of the video decoder 400 of the present embodiment can be according to the method specific implementation in said method embodiment, and its specific implementation process can, with reference to the associated description of said method embodiment, repeat no more herein.Video decoder 400 can be any device that needs output, displaying video, as notebook computer, and the equipment such as panel computer, PC, mobile phone.
Can find out, the video decoder 400 of the present embodiment carries out video decode with after obtaining the first image decoding data and the second image decoding data at the first decoded video frame in video code flow and the second decoded video frame, owing to being first indication that coding is indicated comprising according to the first decoded video frame, and the appearance order of the second decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of first image decoding data and above-mentioned the second image decoding data, determine whether above-mentioned the first image decoding data and above-mentioned the second image decoding data to blend and obtain the image that blends.Wherein, due to clear and definite the indicating of the first decoded video frame, the sequencing that the first decoded video frame and its homology decoded video frame occur in video code flow, this is conducive to the sequencing that homology decoded video frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
Referring to Fig. 5, the schematic diagram of the video coding apparatus 500 that Fig. 5 provides for the embodiment of the present invention, video coding apparatus 500 can comprise at least one bus 501, at least one processor 502 being connected with bus 501 and at least one memory 503 being connected with bus 501.
Wherein, processor 502, by bus 501, calls the code of storage in memory 503 for obtaining image; The first field picture data of above-mentioned image are carried out to Video coding to obtain the first Video coding frame; The second field picture data of above-mentioned image are carried out to Video coding to obtain the second Video coding frame; Above-mentioned the first Video coding frame and above-mentioned the second Video coding frame are write to video code flow.
Wherein, above-mentioned the first Video coding frame comprises first coding indication, above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data, and above-mentioned first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, above-mentioned the first field picture data are top field picture data, and above-mentioned the second field picture data are end field picture data, or above-mentioned the second field picture data are top field picture data, and above-mentioned the first field picture data are end field picture data.
In possible execution modes more of the present invention, above-mentioned first coding indication can comprise the first indication parameter and the second indication parameter.Wherein, above-mentioned the first indication parameter indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the first indication parameter can indicate above-mentioned the first Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image), the single game view data that above-mentioned the first indication parameter also indicates above-mentioned the first Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the first indication parameter indicates above-mentioned the first Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the first indication parameter indicates above-mentioned the first Video coding frame to comprise is end field picture data).Wherein, above-mentioned the second indication parameter indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame to the second indication parameter.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame, to occur after above-mentioned the first Video coding frame to the second indication parameter.
In other possible execution modes of the present invention, above-mentioned first coding indication for example can comprise the 3rd indication parameter, the 4th indication parameter and the second indication parameter.Wherein, above-mentioned the 3rd indication parameter can indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 3rd indication parameter can indicate above-mentioned the first Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image).The single game view data that above-mentioned the 4th indication parameter can indicate above-mentioned the first Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the 4th indication parameter indicates above-mentioned the first Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the 4th indication parameter indicates above-mentioned the first Video coding frame to comprise is end field picture data).Wherein, above-mentioned the second indication parameter indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, the first indication parameter for example can comprise at least two bits, wherein, the first indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The second indication parameter for example comprises at least 1 bit.The second indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
In some embodiments of the invention, above-mentioned the second Video coding frame comprises second coding indication, above-mentioned second above-mentioned the second Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that above-mentioned second coding indication also indicates above-mentioned the second Video coding frame to comprise is end field picture data or top field picture data, and above-mentioned second coding indication also indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the first Video coding frame occur in above-mentioned video code flow.
In possible execution modes more of the present invention, above-mentioned second coding indication can comprise the 5th indication parameter and the 5th indication parameter.Wherein, above-mentioned the 5th indication parameter indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 5th indication parameter can indicate above-mentioned the second Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image), the single game view data that above-mentioned the 5th indication parameter also indicates above-mentioned the second Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 5th indication parameter indicates above-mentioned the second Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 5th indication parameter indicates above-mentioned the second Video coding frame to comprise is end field picture data).Wherein, above-mentioned the 6th indication parameter indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame to the 6th indication parameter.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame, to occur after above-mentioned the first Video coding frame to the 6th indication parameter.
In other possible execution modes of the present invention, above-mentioned second coding indication for example can comprise the 7th indication parameter, the 8th indication parameter and the 6th indication parameter.Wherein, above-mentioned the 7th indication parameter can indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 7th indication parameter can indicate above-mentioned the second Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image).The single game view data that above-mentioned the 8th indication parameter can indicate above-mentioned the second Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 8th indication parameter indicates above-mentioned the second Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 8th indication parameter indicates above-mentioned the second Video coding frame to comprise is end field picture data).Wherein, above-mentioned the 6th indication parameter indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, the 5th indication parameter for example can comprise at least two bits, wherein, the 5th indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The 6th indication parameter for example comprises at least 1 bit.The 6th indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
Be understandable that, the function of each functional module of the video coding apparatus 500 of the present embodiment can be according to the method specific implementation in said method embodiment, and its specific implementation process can, with reference to the associated description of said method embodiment, repeat no more herein.Video coding apparatus 500 can be any device that needs output, store video, as notebook computer, and the equipment such as panel computer, PC, mobile phone.
Can find out, the first field picture data of 500 pairs of images of video coding apparatus of the present embodiment and the second field picture data are carried out respectively Video coding to obtain the first Video coding frame and the second Video coding frame; The first Video coding frame and the second Video coding frame are write to video code flow.Wherein, because the first Video coding frame comprises first coding indication, above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data, and first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.Wherein, owing to utilizing clear and definite the indicating of the first Video coding frame, the sequencing that the homology Video coding frame that the view data of different based on same image obtains occurs in video code flow, this is conducive to the sequencing that homology Video coding frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
Referring to Fig. 6, Fig. 6 is the structured flowchart of the video coding apparatus 600 that provides of another embodiment of the present invention.Wherein, video coding apparatus 600 can comprise: at least 1 processor 601, at least 1 network interface 604 or other user interfaces 603, memory 606, at least 1 communication bus 602.Communication bus 602 is for realizing the connection communication between these assemblies.Wherein, this video coding apparatus 600 optionally can comprise user interface 603, comprise display (for example, touch-screen, LCD, CRT, holographic 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 comprise read-only memory and random access memory, and provides instruction and data to processor 601.A part in memory 602 can also comprise nonvolatile RAM (NVRAM).
In some embodiments, memory 606 has been stored following element, executable module or data structure, or their subset, or their superset:
Operating system 6061, comprises various system programs, for realizing various basic businesses and processing hardware based task.
Application program module 6062, comprises various application programs, for realizing various applied business.
In an embodiment of the present invention, by calling program or the instruction of memory 606 storages, processor 601 obtains image; The first field picture data of above-mentioned image are carried out to Video coding to obtain the first Video coding frame; The second field picture data of above-mentioned image are carried out to Video coding to obtain the second Video coding frame; Above-mentioned the first Video coding frame and above-mentioned the second Video coding frame are write to video code flow.
Wherein, above-mentioned the first Video coding frame comprises first coding indication, above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data, and above-mentioned first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, above-mentioned the first field picture data are top field picture data, and above-mentioned the second field picture data are end field picture data, or above-mentioned the second field picture data are top field picture data, and above-mentioned the first field picture data are end field picture data.
In possible execution modes more of the present invention, above-mentioned first coding indication can comprise the first indication parameter and the second indication parameter.Wherein, above-mentioned the first indication parameter indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the first indication parameter can indicate above-mentioned the first Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image), the single game view data that above-mentioned the first indication parameter also indicates above-mentioned the first Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the first indication parameter indicates above-mentioned the first Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the first indication parameter indicates above-mentioned the first Video coding frame to comprise is end field picture data).Wherein, above-mentioned the second indication parameter indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame to the second indication parameter.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame, to occur after above-mentioned the first Video coding frame to the second indication parameter.
In other possible execution modes of the present invention, above-mentioned first coding indication for example can comprise the 3rd indication parameter, the 4th indication parameter and the second indication parameter.Wherein, above-mentioned the 3rd indication parameter can indicate above-mentioned the first Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 3rd indication parameter can indicate above-mentioned the first Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image).The single game view data that above-mentioned the 4th indication parameter can indicate above-mentioned the first Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the 4th indication parameter indicates above-mentioned the first Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the first Video coding frame, the single game view data that the 4th indication parameter indicates above-mentioned the first Video coding frame to comprise is end field picture data).Wherein, above-mentioned the second indication parameter indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, the first indication parameter for example can comprise at least two bits, wherein, the first indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The second indication parameter for example comprises at least 1 bit.The second indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
In some embodiments of the invention, above-mentioned the second Video coding frame comprises second coding indication, above-mentioned second above-mentioned the second Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that above-mentioned second coding indication also indicates above-mentioned the second Video coding frame to comprise is end field picture data or top field picture data, and above-mentioned second coding indication also indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the first Video coding frame occur in above-mentioned video code flow.
In possible execution modes more of the present invention, above-mentioned second coding indication can comprise the 5th indication parameter and the 5th indication parameter.Wherein, above-mentioned the 5th indication parameter indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 5th indication parameter can indicate above-mentioned the second Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image), the single game view data that above-mentioned the 5th indication parameter also indicates above-mentioned the second Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 5th indication parameter indicates above-mentioned the second Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 5th indication parameter indicates above-mentioned the second Video coding frame to comprise is end field picture data).Wherein, above-mentioned the 6th indication parameter indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.For example, if above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame in above-mentioned video code flow, to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be that above-mentioned the first Video coding frame occurs prior to above-mentioned the second Video coding frame to the 6th indication parameter.Otherwise, if occur in above-mentioned the second Video coding frame after above-mentioned the first Video coding frame in above-mentioned video code flow, can to indicate the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow be in above-mentioned the second Video coding frame, to occur after above-mentioned the first Video coding frame to the 6th indication parameter.
In other possible execution modes of the present invention, above-mentioned second coding indication for example can comprise the 7th indication parameter, the 8th indication parameter and the 6th indication parameter.Wherein, above-mentioned the 7th indication parameter can indicate above-mentioned the second Video coding frame be Video coding frame corresponding to single game view data (, the single game view data that the 7th indication parameter can indicate above-mentioned the second Video coding frame to comprise piece image, and do not comprise the two field picture data of piece image).The single game view data that above-mentioned the 8th indication parameter can indicate above-mentioned the second Video coding frame to comprise be top field picture data or end field picture data (for example, suppose the top field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 8th indication parameter indicates above-mentioned the second Video coding frame to comprise is top field picture data, suppose the end field picture data of above-mentioned image to carry out Video coding to obtain the second Video coding frame, the single game view data that the 8th indication parameter indicates above-mentioned the second Video coding frame to comprise is end field picture data).Wherein, above-mentioned the 6th indication parameter indicates the sequencing that above-mentioned the second Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.
Wherein, the 5th indication parameter for example can comprise at least two bits, wherein, the 5th indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The 6th indication parameter for example comprises at least 1 bit.The 6th indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
Be understandable that, the function of each functional module of the video coding apparatus 600 of the present embodiment can be according to the method specific implementation in said method embodiment, and its specific implementation process can, with reference to the associated description of said method embodiment, repeat no more herein.Video coding apparatus 600 can be any device that needs output, store video, as notebook computer, and the equipment such as panel computer, PC, mobile phone.
Can find out, the first field picture data of 600 pairs of images of video coding apparatus of the present embodiment and the second field picture data are carried out respectively Video coding to obtain the first Video coding frame and the second Video coding frame; The first Video coding frame and the second Video coding frame are write to video code flow.Wherein, because the first Video coding frame comprises first coding indication, above-mentioned first above-mentioned the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first Video coding frame to comprise is top field picture data or end field picture data, and first coding indication also indicates the sequencing that above-mentioned the first Video coding frame and above-mentioned the second Video coding frame occur in above-mentioned video code flow.Wherein, owing to utilizing clear and definite the indicating of the first Video coding frame, the sequencing that the homology Video coding frame that the view data of different based on same image obtains occurs in video code flow, this is conducive to the sequencing that homology Video coding frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
Referring to Fig. 7, the schematic diagram of the video decoder 700 that Fig. 7 provides for the embodiment of the present invention, video decoder 700 can comprise at least one bus 701, at least one processor 702 being connected with bus 701 and at least one memory 703 being connected with bus 701.
Wherein, processor 702 is by bus 701, and the code that calls storage in memory 703 carries out video decode to obtain the first image decoding data for the first decoded video frame in video code flow; The second decoded video frame in above-mentioned video code flow is carried out to video decode to obtain the second image decoding data.Wherein, above-mentioned the first decoded video frame comprises first coding indication, it is decoded video frame corresponding to single game view data that above-mentioned first coding indicates the first decoded video frame, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data or end field picture data, and above-mentioned first the coding indication appearance order of homology decoded video frame in above-mentioned video code flow of also indicating above-mentioned the first decoded video frame and above-mentioned the first decoded video frame; Wherein, above-mentioned the first decoded video frame and the above-mentioned homology decoded video frame view data of different based on same image obtains; According to above-mentioned first coding indication, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
In some possible execution modes of the present invention, above-mentioned first coding indication can comprise the first indication parameter and the second indication parameter, wherein, above-mentioned the first indication parameter indication can indicate the first decoded video frame be decoded video frame corresponding to single game view data (, the single game view data that the first indication parameter can indicate above-mentioned the first decoded video frame to comprise piece image, and do not comprise the two field picture data of piece image), and the single game view data that above-mentioned the first indication parameter can also indicate above-mentioned the first decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the first decoded video frame comprises is top field picture data, the single game view data that the first indication parameter indicates above-mentioned the first decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the first decoded video frame comprises is end field picture data, the single game view data that the first indication parameter indicates above-mentioned the first decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the second indication parameter can indicate above-mentioned the first decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow.
In other possible execution modes of the present invention, above-mentioned first coding indication can comprise the 3rd indication parameter, the 4th indication parameter and the second indication parameter; Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to above-mentioned the 3rd indication parameter.The single game view data that above-mentioned the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the first decoded video frame comprises is top field picture data, the single game view data that the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the first decoded video frame comprises is end field picture data, and the single game view data that the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the second indication parameter can indicate above-mentioned the first decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow.
Wherein, the first indication parameter for example can comprise at least two bits, wherein, the first indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The second indication parameter for example comprises at least 1 bit.The second indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
In possible execution modes more of the present invention, above-mentioned processor 702 can be used for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned processor 702 can be for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data order is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data can be blended and obtained the image that blends.
For example, above-mentioned processor 702 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs prior to above-mentioned the second decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is end field picture data, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned processor 702 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs in above-mentioned the second decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is end field picture data, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned processor 702 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs prior to above-mentioned the second decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is top field picture data, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned processor 702 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs in above-mentioned the second decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is top field picture data, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
In some possible execution modes of the present invention, above-mentioned second coding indication can comprise the 5th indication parameter and the 6th indication parameter, wherein, above-mentioned the 5th indication parameter indication can indicate the second decoded video frame be decoded video frame corresponding to single game view data (, the single game view data that the 5th indication parameter can indicate above-mentioned the second decoded video frame to comprise piece image, and do not comprise the two field picture data of piece image), and the single game view data that above-mentioned the 5th indication parameter can also indicate above-mentioned the second decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the second decoded video frame comprises is top field picture data, the single game view data that the 5th indication parameter indicates above-mentioned the second decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the second decoded video frame comprises is end field picture data, the single game view data that the 5th indication parameter indicates above-mentioned the second decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the 6th indication parameter can indicate above-mentioned the second decoded video frame and above-mentioned the second decoded video frame in above-mentioned video code flow.
In other possible execution modes of the present invention, above-mentioned second coding indication can comprise the 7th indication parameter, the 8th indication parameter and the 6th indication parameter; Wherein, to indicate the second decoded video frame be decoded video frame corresponding to single game view data to above-mentioned the 7th indication parameter.The single game view data that above-mentioned the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the second decoded video frame comprises is top field picture data, the single game view data that the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise is top field picture data, if the single game view data that above-mentioned the second decoded video frame comprises is end field picture data, the single game view data that the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the 6th indication parameter can indicate above-mentioned the second decoded video frame and above-mentioned the second decoded video frame in above-mentioned video code flow.
Wherein, the 5th indication parameter for example can comprise at least two bits, wherein, the 5th indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The 6th indication parameter for example comprises at least 1 bit.The 6th indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
Be understandable that, the function of each functional module of the video decoder 700 of the present embodiment can be according to the method specific implementation in said method embodiment, and its specific implementation process can, with reference to the associated description of said method embodiment, repeat no more herein.Video decoder 700 can be any device that needs output, displaying video, as notebook computer, and the equipment such as panel computer, PC, mobile phone.
Can find out, the video decoder 700 of the present embodiment carries out video decode with after obtaining the first image decoding data and the second image decoding data at the first decoded video frame in video code flow and the second decoded video frame, owing to being first indication that coding is indicated comprising according to the first decoded video frame, and the appearance order of the second decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of first image decoding data and above-mentioned the second image decoding data, determine whether above-mentioned the first image decoding data and above-mentioned the second image decoding data to blend and obtain the image that blends.Wherein, due to clear and definite the indicating of the first decoded video frame, the sequencing that the first decoded video frame and its homology decoded video frame occur in video code flow, this is conducive to the sequencing that homology decoded video frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
Referring to Fig. 8, Fig. 8 is the structured flowchart of the video decoder 800 that provides of another embodiment of the present invention.Wherein, video decoder 800 can comprise: at least 1 processor 801, at least 1 network interface 804 or other user interfaces 803, memory 808, at least 1 communication bus 802.Communication bus 802 is for realizing the connection communication between these assemblies.Wherein, this video decoder 800 optionally can comprise user interface 803, comprise display (for example, touch-screen, LCD, CRT, holographic 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 comprise read-only memory and random access memory, and provides instruction and data to processor 801.A part in memory 802 can also comprise nonvolatile RAM (NVRAM).
In some embodiments, memory 808 has been stored following element, executable module or data structure, or their subset, or their superset:
Operating system 8081, comprises various system programs, for realizing various basic businesses and processing hardware based task.
Application program module 8082, comprises various application programs, for realizing various applied business.
In an embodiment of the present invention, by calling program or the instruction of memory 808 storages, the first decoded video frame in 801 pairs of video code flows of processor carries out video decode to obtain the first image decoding data; The second decoded video frame in above-mentioned video code flow is carried out to video decode to obtain the second image decoding data.Wherein, above-mentioned the first decoded video frame comprises first coding indication, it is decoded video frame corresponding to single game view data that above-mentioned first coding indicates the first decoded video frame, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data or end field picture data, and above-mentioned first the coding indication appearance order of homology decoded video frame in above-mentioned video code flow of also indicating above-mentioned the first decoded video frame and above-mentioned the first decoded video frame; Wherein, above-mentioned the first decoded video frame and the above-mentioned homology decoded video frame view data of different based on same image obtains; According to above-mentioned first coding indication, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
In some possible execution modes of the present invention, above-mentioned first coding indication can comprise the first indication parameter and the second indication parameter, wherein, above-mentioned the first indication parameter indication can indicate the first decoded video frame be decoded video frame corresponding to single game view data (, the single game view data that the first indication parameter can indicate above-mentioned the first decoded video frame to comprise piece image, and do not comprise the two field picture data of piece image), and the single game view data that above-mentioned the first indication parameter can also indicate above-mentioned the first decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the first decoded video frame comprises is top field picture data, the single game view data that the first indication parameter indicates above-mentioned the first decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the first decoded video frame comprises is end field picture data, the single game view data that the first indication parameter indicates above-mentioned the first decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the second indication parameter can indicate above-mentioned the first decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow.
In other possible execution modes of the present invention, above-mentioned first coding indication can comprise the 3rd indication parameter, the 4th indication parameter and the second indication parameter; Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to above-mentioned the 3rd indication parameter.The single game view data that above-mentioned the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the first decoded video frame comprises is top field picture data, the single game view data that the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the first decoded video frame comprises is end field picture data, and the single game view data that the 4th indication parameter indicates above-mentioned the first decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the second indication parameter can indicate above-mentioned the first decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow.
Wherein, the first indication parameter for example can comprise at least two bits, wherein, the first indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The second indication parameter for example comprises at least 1 bit.The second indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
In possible execution modes more of the present invention, above-mentioned processor 801 can be used for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned processor 801 can be for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data order is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data can be blended and obtained the image that blends.
For example, above-mentioned processor 801 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs prior to above-mentioned the second decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is end field picture data, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned processor 801 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs in above-mentioned the second decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is end field picture data, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned processor 801 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs prior to above-mentioned the second decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is top field picture data, and above-mentioned the second decoded video frame occurs in above-mentioned the first decoded video frame after in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends,
Or;
Above-mentioned processor 801 can be specifically for, if the homology decoded video frame of above-mentioned first above-mentioned the first decoded video frame of coding indication indication occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the single game view data that above-mentioned first coding indication also indicates above-mentioned the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of above-mentioned second above-mentioned the second decoded video frame of coding indication indication occurs in above-mentioned the second decoded video frame after in above-mentioned video code flow, and the single game view data that above-mentioned second coding indication also indicates above-mentioned the second decoded video frame to comprise is top field picture data, and above-mentioned the second decoded video frame occurs prior to above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of above-mentioned the first image decoding data and above-mentioned the second image decoding data is adjacent, above-mentioned the first image decoding data and above-mentioned the second image decoding data are blended and obtained the image that blends.
In some possible execution modes of the present invention, above-mentioned second coding indication can comprise the 5th indication parameter and the 6th indication parameter, wherein, above-mentioned the 5th indication parameter indication can indicate the second decoded video frame be decoded video frame corresponding to single game view data (, the single game view data that the 5th indication parameter can indicate above-mentioned the second decoded video frame to comprise piece image, and do not comprise the two field picture data of piece image), and the single game view data that above-mentioned the 5th indication parameter can also indicate above-mentioned the second decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the second decoded video frame comprises is top field picture data, the single game view data that the 5th indication parameter indicates above-mentioned the second decoded video frame to comprise is top field picture data, the single game view data that above-mentioned the second decoded video frame comprises is end field picture data, the single game view data that the 5th indication parameter indicates above-mentioned the second decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the 6th indication parameter can indicate above-mentioned the second decoded video frame and above-mentioned the second decoded video frame in above-mentioned video code flow.
In other possible execution modes of the present invention, above-mentioned second coding indication can comprise the 7th indication parameter, the 8th indication parameter and the 6th indication parameter; Wherein, to indicate the second decoded video frame be decoded video frame corresponding to single game view data to above-mentioned the 7th indication parameter.The single game view data that above-mentioned the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise be top field picture data or end field picture data (for example, suppose that the single game view data that above-mentioned the second decoded video frame comprises is top field picture data, the single game view data that the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise is top field picture data, if the single game view data that above-mentioned the second decoded video frame comprises is end field picture data, the single game view data that the 8th indication parameter indicates above-mentioned the second decoded video frame to comprise is end field picture data).The appearance order of the homology decoded video frame that above-mentioned the 6th indication parameter can indicate above-mentioned the second decoded video frame and above-mentioned the second decoded video frame in above-mentioned video code flow.
Wherein, the 5th indication parameter for example can comprise at least two bits, wherein, the 5th indication parameter for example can be parameter progressive frame sign (progressive_frame) indicating bit or picture structure (picture_structure) indicating bit or other expansion indicating bits.The 6th indication parameter for example comprises at least 1 bit.The 6th indication parameter is such as can be field, top formerly (top_field_first) indicating bit or other expansion indicating bits etc.
Be understandable that, the function of each functional module of the video decoder 800 of the present embodiment can be according to the method specific implementation in said method embodiment, and its specific implementation process can, with reference to the associated description of said method embodiment, repeat no more herein.Video decoder 800 can be any device that needs output, displaying video, as notebook computer, and the equipment such as panel computer, PC, mobile phone.
Can find out, the video decoder 800 of the present embodiment carries out video decode with after obtaining the first image decoding data and the second image decoding data at the first decoded video frame in video code flow and the second decoded video frame, owing to being first indication that coding is indicated comprising according to the first decoded video frame, and the appearance order of the second decoded video frame and above-mentioned the first decoded video frame in above-mentioned video code flow, and the rear output order of the decoding of first image decoding data and above-mentioned the second image decoding data, determine whether above-mentioned the first image decoding data and above-mentioned the second image decoding data to blend and obtain the image that blends.Wherein, due to clear and definite the indicating of the first decoded video frame, the sequencing that the first decoded video frame and its homology decoded video frame occur in video code flow, this is conducive to the sequencing that homology decoded video frame that video decoder clearly knows that the view data of different based on same image obtains occurs in video code flow, and then the different field picture data that are conducive to the correct same image that decoding is obtained of video decoder are carried out image blending.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, this computer-readable storage medium can have program stored therein, and this program comprises any one method for video coding of recording in said method embodiment or the part or all of step of video encoding/decoding method while carrying out.
It should be noted that, for aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.
In the several embodiment that provide in the application, should be understood that disclosed device can be realized by another way.For example, device embodiment described above is only schematic, the for example division of said units, be only that a kind of logic function is divided, during actual realization, can there is other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrical or other form.
The above-mentioned unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining above-mentioned integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises that some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) is carried out all or part of step of each embodiment said method of the present invention.And aforesaid storage medium comprises: USB flash disk, read-only memory (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD.
Above-mentioned above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (20)

1. a method for video coding, is characterized in that, comprising:
Obtain image;
The first field picture data of described image are carried out to Video coding to obtain the first Video coding frame;
The second field picture data of described image are carried out to Video coding to obtain the second Video coding frame;
Described the first Video coding frame and described the second Video coding frame are write to video code flow;
Wherein, described the first Video coding frame comprises first coding indication, described first described the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that described first coding indication also indicates described the first Video coding frame to comprise is top field picture data or end field picture data, and described first coding indication also indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow;
Wherein, described the first field picture data are top field picture data, and described the second field picture data are end field picture data, or described the second field picture data are top field picture data, and described the first field picture data are end field picture data.
2. method according to claim 1, is characterized in that,
Described first coding indication comprises the first indication parameter and the second indication parameter;
Wherein, it is Video coding frame corresponding to single game view data that described the first indication parameter is indicated described the first Video coding frame, and the single game view data that described the first indication parameter also indicates described the first Video coding frame to comprise is top field picture data or end field picture data;
Described the second indication parameter indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow.
3. method according to claim 1, is characterized in that, described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate described the first Video coding frame be Video coding frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first Video coding frame to comprise is top field picture data or end field picture data;
Described the second indication parameter indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow.
4. according to the method described in claims 1 to 3 any one, it is characterized in that, described the second Video coding frame comprises second coding indication, described second described the second Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that described second coding indication also indicates described the second Video coding frame to comprise is end field picture data or top field picture data, and described second coding indication also indicates the sequencing that described the second Video coding frame and described the first Video coding frame occur in described video code flow.
5. a video encoding/decoding method, is characterized in that, comprising:
The first decoded video frame in video code flow is carried out to video decode to obtain the first image decoding data;
The second decoded video frame in described video code flow is carried out to video decode to obtain the second image decoding data;
Wherein, described the first decoded video frame comprises first coding indication, it is decoded video frame corresponding to single game view data that described first coding indicates the first decoded video frame, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data or end field picture data, and described first the coding indication appearance order of homology decoded video frame in described video code flow of also indicating described the first decoded video frame and described the first decoded video frame; Wherein, described the first decoded video frame and the described homology decoded video frame view data of different based on same image obtains;
According to described first coding indication, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
6. method according to claim 5, is characterized in that,
Described first coding indication comprises the first indication parameter and the second indication parameter;
Wherein, it is decoded video frame corresponding to single game view data that described the first indication parameter indicates the first decoded video frame, and the single game view data that described the first indication parameter also indicates described the first decoded video frame to comprise is top field picture data or end field picture data;
The appearance order of the homology decoded video frame that described the second indication parameter indicates described the first decoded video frame and described the first decoded video frame in described video code flow.
7. method according to claim 5, is characterized in that, described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first decoded video frame to comprise is top field picture data or end field picture data;
The appearance order of the homology decoded video frame that described the second indication parameter indicates described the first decoded video frame and described the first decoded video frame in described video code flow.
8. according to the method described in claim 5 to 7 any one, it is characterized in that, describedly according to described first coding indication, described the first image decoding data and described the second image decoding data blended and obtained the image that blends, comprising:
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output of the decoding of described the first image decoding data and described the second image decoding data order is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends;
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output of the decoding of described the first image decoding data and described the second image decoding data order is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
9. according to the method described in claim 5 to 7 any one, it is characterized in that,
Described the second decoded video frame comprises second coding indication, it is decoded video frame corresponding to single game view data that described second coding indicates the second decoded video frame, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data or end field picture data, and described second the coding indication appearance order of homology decoded video frame in described video code flow of also indicating described the second decoded video frame and described the second decoded video frame;
Describedly according to described first coding indication, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends, comprise: according to described first coding indication and described second coding, indicate, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
10. method according to claim 9, is characterized in that, describedly according to described first coding indication and described second coding, indicates, and described the first image decoding data and described the second image decoding data are blended and obtained the image that blends, and comprising:
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs prior to described the second decoded video frame in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is end field picture data, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs in described the second decoded video frame after in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is end field picture data, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs prior to described the second decoded video frame in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs in described the second decoded video frame after in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
11. 1 kinds of video coding apparatus, is characterized in that, comprising:
Acquiring unit, for obtaining image;
Coding unit, for carrying out Video coding to obtain the first Video coding frame to the first field picture data of described image; The second field picture data of described image are carried out to Video coding to obtain the second Video coding frame;
Writing unit, for writing video code flow by described the first Video coding frame and described the second Video coding frame;
Wherein, described the first Video coding frame comprises first coding indication, described first described the first Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that described first coding indication also indicates described the first Video coding frame to comprise is top field picture data or end field picture data, and described first coding indication also indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow;
Wherein, described the first field picture data are top field picture data, and described the second field picture data are end field picture data, or described the second field picture data are top field picture data, and described the first field picture data are end field picture data.
12. video coding apparatus according to claim 11, is characterized in that,
Described first coding indication comprises the first indication parameter and the second indication parameter;
Wherein, it is Video coding frame corresponding to single game view data that described the first indication parameter is indicated described the first Video coding frame, and the single game view data that described the first indication parameter also indicates described the first Video coding frame to comprise is top field picture data or end field picture data;
Described the second indication parameter indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow.
13. video coding apparatus according to claim 11, is characterized in that, described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate described the first Video coding frame be Video coding frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first Video coding frame to comprise is top field picture data or end field picture data;
Described the second indication parameter indicates the sequencing that described the first Video coding frame and described the second Video coding frame occur in described video code flow.
14. according to claim 11 to the video coding apparatus described in 13 any one, it is characterized in that, described the second Video coding frame comprises second coding indication, described second described the second Video coding frame of coding indication indication is Video coding frame corresponding to single game view data, the single game view data that described second coding indication also indicates described the second Video coding frame to comprise is end field picture data or top field picture data, described second coding indication also indicates the sequencing that described the second Video coding frame and described the first Video coding frame occur in described video code flow.
15. 1 kinds of video decoders, is characterized in that, comprising:
Decoding unit, for carrying out video decode to obtain the first image decoding data to the first decoded video frame of video code flow; The second decoded video frame in described video code flow is carried out to video decode to obtain the second image decoding data; Wherein, described the first decoded video frame comprises first coding indication, it is decoded video frame corresponding to single game view data that described first coding indicates the first decoded video frame, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data or end field picture data, and described first the coding indication appearance order of homology decoded video frame in described video code flow of also indicating described the first decoded video frame and described the first decoded video frame; Wherein, described the first decoded video frame and the described homology decoded video frame view data of different based on same image obtains;
Blending unit, for blending described the first image decoding data and described the second image decoding data to obtain the image that blends according to described first coding indication.
16. video decoders according to claim 15, is characterized in that,
Described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first decoded video frame to comprise is top field picture data or end field picture data;
The appearance order of the homology decoded video frame that described the second indication parameter indicates described the first decoded video frame and described the first decoded video frame in described video code flow.
17. video decoders according to claim 15, is characterized in that, described first coding indication comprises the 3rd indication parameter, the 4th indication parameter and the second indication parameter;
Wherein, to indicate the first decoded video frame be decoded video frame corresponding to single game view data to described the 3rd indication parameter;
The single game view data that described the 4th indication parameter indicates described the first decoded video frame to comprise is top field picture data or end field picture data;
The homology decoded video frame that described the second indication parameter indicates described the first decoded video frame occurs prior to described the first decoded video frame in described video code flow.
18. according to claim 15 to the video decoder described in 17 any one, it is characterized in that,
Described blending unit specifically for, if the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output of the decoding of described the first image decoding data and described the second image decoding data order is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends;
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output of the decoding of described the first image decoding data and described the second image decoding data order is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
19. according to claim 15 to the video decoder described in 17 any one, it is characterized in that,
Described the second decoded video frame comprises second coding indication, it is decoded video frame corresponding to single game view data that described second coding indicates the second decoded video frame, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data or end field picture data, and described second the coding indication appearance order of homology decoded video frame in described video code flow of also indicating described the second decoded video frame and described the second decoded video frame;
Wherein, described blending unit specifically for, according to described first coding indication and described second coding, indicate, described the first image decoding data and described the second image decoding data are blended and are obtained the image that blends.
20. video decoders according to claim 19, is characterized in that,
Described blending unit specifically for, if the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs prior to described the second decoded video frame in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is end field picture data, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is top field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs in described the second decoded video frame after in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is end field picture data, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs in described the first decoded video frame after in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs prior to described the second decoded video frame in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data, and described the second decoded video frame occurs in described the first decoded video frame after in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends,
Or;
If the homology decoded video frame of described first described the first decoded video frame of coding indication indication occurs prior to described the first decoded video frame in described video code flow, and the single game view data that described first coding indication also indicates described the first decoded video frame to comprise is end field picture data, and the homology decoded video frame of described second described the second decoded video frame of coding indication indication occurs in described the second decoded video frame after in described video code flow, and the single game view data that described second coding indication also indicates described the second decoded video frame to comprise is top field picture data, and described the second decoded video frame occurs prior to described the first decoded video frame in described video code flow, and the rear output order of the decoding of described the first image decoding data and described the second image decoding data is adjacent, described the first image decoding data and described the second image decoding data are blended and obtained the image that blends.
CN201410253649.4A 2014-06-09 2014-06-09 Method for video coding and coding/decoding method and relevant apparatus Active CN104038759B (en)

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 true CN104038759A (en) 2014-09-10
CN104038759B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015188729A1 (en) * 2014-06-09 2015-12-17 华为技术有限公司 Video coding method and video decoding method and related device

Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999018720A1 (en) * 1997-10-03 1999-04-15 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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015188729A1 (en) * 2014-06-09 2015-12-17 华为技术有限公司 Video coding method and video decoding method and related device

Also Published As

Publication number Publication date
WO2015188729A1 (en) 2015-12-17
CN104038759B (en) 2017-11-17

Similar Documents

Publication Publication Date Title
US20200260117A1 (en) Methods and Apparatuses for Coding and Decoding Depth Map
US10397612B2 (en) Three-dimensional video encoding method, three-dimensional video decoding method, and related apparatus
CN103220508B (en) Coding and decoding method and device
CN102098519B (en) Video encoding method and decoding method as well as encoding and decoding device
CN105432083A (en) Hybrid backward-compatible signal encoding and decoding
CN111630861B (en) Video processing method and device
CN106331703A (en) Video coding and decoding method, and video coding and decoding device
WO2020140331A1 (en) Video image processing method and device
US20120106640A1 (en) Decoding side intra-prediction derivation for video coding
US20210409688A1 (en) Data decoding method and apparatus, and data coding method and apparatus
CN104602007A (en) Dynamic video encoding based on channel quality
JP7321583B2 (en) Signaling global motion vectors in picture headers
JP7323220B2 (en) Candidates in frames with global motion
JP2023093765A (en) Selective motion vector prediction candidates in frame with global motion
CN103686195A (en) Video information processing method and video information processing equipment
CN105163126A (en) Hardware decoding method and device based on HEVC protocol
JP2022526276A (en) Methods and devices for image encoding and decoding
CN103237213A (en) Method for coding videos, method for decoding videos and related devices
CN108259902A (en) Video data encoding and the video encoder for being configured as performing video data encoding
KR20220002991A (en) Adaptive motion vector prediction candidates in frames with global motion
CN104038759A (en) Video coding method and decoding method and related devices
CN112437312B (en) Video decoding method, encoding method, device, equipment and storage medium
CN104104956A (en) Layered video encoding and decoding method, encoding device and decoding device
CN104093025A (en) Coding and decoding method and device
CN105765973A (en) Image coding method and coding 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.