CN104811722A - Video data coding and decoding method and device - Google Patents
Video data coding and decoding method and device Download PDFInfo
- Publication number
- CN104811722A CN104811722A CN201510180497.4A CN201510180497A CN104811722A CN 104811722 A CN104811722 A CN 104811722A CN 201510180497 A CN201510180497 A CN 201510180497A CN 104811722 A CN104811722 A CN 104811722A
- Authority
- CN
- China
- Prior art keywords
- information
- frame
- coded system
- mode
- pending frame
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
- H04N19/463—Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
An embodiment of the invention discloses a video data coding method. The video data coding method comprises the following steps of obtaining appointed information of a to-be-processed frame in video data, wherein the appointed information comprises at least one information of frame rate information, time complexity information and space complexity information; respectively preprocessing the to-be-processed frame according to a first coding scheme and a second coding scheme if the appointed information confirms to a preset condition of starting a plurality of code schemes to process the to-be-processed frame, wherein the first code scheme and the second code scheme are different code schemes; selecting a target code scheme from the first code scheme and the second code scheme according to a preprocessing result of the first code scheme and a preprocessing result of the second code scheme and coding the to-be-processed frame according to the target code scheme. The embodiment of the invention also discloses a video data coding device. The video data coding method and device has the advantages of guaranteeing the video data processing quality and increases the user experience in video data coding.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of decoding method and device of video data.
Background technology
In current video codec process, video data by processes such as prediction, conversion, quantification and entropy code, will be become code stream, is eliminated the redundant information between data, improve the efficiency of transmission of video data.In frame rate, switch technology is a kind of Video post-processing technology, by inserting the mode of intermediate frame in original frame of video, low frame-rate video being transformed into high frame-rate video, providing better visual quality.Multi-reference frame technology is under multi-reference frame pattern, when motion compensation is carried out to a macro block or sub-block, coding as with reference to frame, can seek the best matching blocks of current coding macro block or sub-block, to obtain better prediction effect by a selected frame from several encoded frames in past.Under a lot of object exists the situation such as to cover, the introducing of multi-reference frame can improve code efficiency.
In the video data decoding method of prior art, coding side does not do the selection of the processing mode of frame of video, does not need the video datas such as the processing mode of transmission frame of video to decoding end yet.Decoding end, based on one or several adaptation rules, optionally carries out the operation that frame rate is changed, and adaptation rule can comprise the severity of motion, the model selection of coding, the texture structure etc. of video content.If Fig. 1, Fig. 1 are the modes of operation that in prior art, decoding end carries out frame of video process adaptively.During the data of decoding end process present frame, the motion vector information of last decoded frame can be added up, judge whether the average length of the motion vector of above-mentioned decoded frame exceedes threshold value.If the average length of motion vector exceedes threshold value, then repeat former frame, before being inserted into present frame, and then then can process next frame.Average length as motion vector does not exceed threshold value, then obtain interpolated frame with transfer algorithm in frame rate, before interpolated frame is inserted present frame, and then then can process next frame.
In prior art, decoding end adopts adaptive method (cannot know the processing mode of video data from coding side) and then cannot ensure to produce erroneous judgement certainly to the processing mode of not video data, cannot ensure the applicability for interpolation algorithm (as transfer algorithm in frame rate).Prior art adopts simple interpolation method not distinguish motion conditions (comprise violent with mild motion conditions), particular requirement is not had to the content of the reference frame of falling in lines of reference frame lists, make when high frame-rate video source, the performance of reference frame algorithm cannot be given full play to, cannot video quality be ensured.
Summary of the invention
The embodiment of the present invention provides a kind of decoding method and device of video data, can improve diversity and the flexibility of coding mode selection, ensures the Disposal quality of video data, the Consumer's Experience of augmented video data encoding.
Embodiment of the present invention first aspect provides a kind of coding method of video data, and it can comprise:
Obtain the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information;
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information;
If described appointed information meets start the pre-conditioned of pending frame described in the process of Multi-encoding mode, then respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, wherein, described first coded system and described second coded system are different coded systems;
According to the pre-processed results of described first coded system and the pre-processed results of described second coded system, select target coded system from described first coded system and described second coded system, and according to described target code mode, described pending frame is encoded.
In conjunction with first aspect, in the implementation that the first is possible, described in designate the information as frame per second information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup Multi-encoding mode, comprising:
Frame per second indicated by described frame per second information is greater than default frame per second threshold value.
In conjunction with first aspect, in the implementation that the second is possible, described in designate the information as time complexity information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup Multi-encoding mode, comprising:
Time complexity indicated by described time complexity information is greater than default time complexity threshold value.
In conjunction with first aspect, in the implementation that the third is possible, described in designate the information as spatial complexity information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup Multi-encoding mode, comprising:
Space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold.
In conjunction with in first aspect to the third possible implementation of first aspect any one, in the 4th kind of possible implementation, describedly respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, comprising:
According to described first coded system, the first video quality process is carried out to obtain the video data meeting designated quality index to described pending frame, wherein, the pre-processed results of described first coded system comprises the first coding data amount size spent by described first video quality process;
According to described second coded system, the second video quality process is carried out to obtain the video data meeting described designated quality index to described pending frame, wherein, the pre-processed results of described second coded system comprises the second amount of coded data size spent by described second video quality process.
In conjunction with first aspect the 4th kind of possible implementation, in the 5th kind of possible implementation, the pre-processed results of the described pre-processed results according to described first coded system and described second coded system, select target coded system from described first coded system and described second coded system, comprising:
Judge whether described first coding data amount size is less than described second amount of coded data size, if the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
In conjunction with in first aspect to the third possible implementation of first aspect any one, in the 6th kind of possible implementation, describedly respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, comprising:
According to described first coded system, the first video quality process is carried out to obtain video data when expending prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described first coded system comprises the first quality index of the described video data that described first video quality process obtains;
According to described second coded system, the second video quality process is carried out to obtain video data when expending described prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described second coded system comprises the second quality index of the described video data that described second video quality process obtains.
In conjunction with first aspect the 6th kind of possible implementation, in the 7th kind of possible implementation, the pre-processed results of the described pre-processed results according to described first coded system and described second coded system, select target coded system from described first coded system and described second coded system, comprising:
Judging that whether described first quality index is higher than described second quality index, if the determination result is YES, is then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
In conjunction with first aspect the 4th kind of possible implementation and first aspect the 6th kind of possible implementation, in the 8th kind of possible implementation, the pre-processed results of the described pre-processed results according to described first coded system and described second coded system, select target coded system from described first coded system and described second coded system, comprising:
Obtain described first coding data amount size and the second amount of coded data size, and described first quality index and described second quality index;
Judge the ratio of described first quality index and described first coding data amount size, whether higher than the ratio of described second quality index and described second amount of coded data size;
If the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
In conjunction with first aspect the 6th kind of possible implementation, in the 9th kind of possible implementation, the pre-processed results of the described pre-processed results according to described first coded system and described second coded system, select target coded system from described first coded system and described second coded system, comprising:
Judge that whether described pending frame is the frame of video in monitor video data or feature video data;
If the determination result is YES, then described first quality index and described second quality index is obtained;
Judging that whether described first quality index is higher than described second quality index, if the determination result is YES, is then target code mode by described first coding mode selection.
In conjunction with first aspect, in the tenth kind of possible implementation, described from described first coded system and described second coded system after select target coded system, described method also comprises:
Adopt the mode of index to mark described target code mode, the identification information obtaining described target code mode is encoded to the index information of described target code mode, and described identification information is passed to decoding end with the form of code stream; Or
Adopt the physical quantity characterizing time-domain information to mark to described target code mode the identification information obtaining described target code mode, and the identification information of described target code mode is passed to decoding end as control information;
Wherein, the physical quantity of described sign time-domain information comprises: image display information or timestamp.
In conjunction with first aspect the tenth kind of possible implementation, in the 11 kind of possible implementation, described according to described target code mode described pending frame encoded after, described method also comprises:
Judge whether described target code mode is video encoding standard technology;
If described target code mode is described video encoding standard technology, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
Embodiment of the present invention second aspect provides a kind of coding/decoding method of video data, and it can comprise:
Obtain the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information;
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information;
If described appointed information meets start the pre-conditioned of pending frame described in the process of target decoder mode, then the identification information carried in the code stream information according to described pending frame, determines the target decoder mode of described pending frame;
The supplementary that described pending frame is decoded is determined, according to described target decoder mode and the described pending frame of described supplementary decoding according to described target decoder mode.
In conjunction with second aspect, in the implementation that the first is possible, described in designate the information as frame per second information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup target decoder mode, comprising:
Frame per second indicated by described frame per second information is greater than default frame per second threshold value.
In conjunction with second aspect, in the implementation that the second is possible, described in designate the information as time complexity information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup target decoder mode, comprising:
Time complexity indicated by described time complexity information is greater than default time complexity threshold value.
In conjunction with second aspect, in the implementation that the third is possible, described in designate the information as spatial complexity information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup target decoder mode, comprising:
Space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold.
In conjunction with in second aspect to the third possible implementation of second aspect any one, in the 4th kind of possible implementation, the identification information carried in the described code stream information according to described pending frame, determine the target decoder mode of described pending frame, comprising:
The code stream information of described pending frame is decoded, obtains the index information for target-marking coded system carried in described code stream information, determine described target code mode according to described index information;
According to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode of described pending frame in conjunction with described target code mode.
In conjunction with in second aspect to the third possible implementation of second aspect any one, in the 5th kind of possible implementation, the identification information carried in the described code stream information according to described pending frame, determine the target decoder mode of described pending frame, comprising:
The code stream information of described pending frame is decoded, obtains the identification information carried in described code stream information and whether comprise image display information or timestamp;
If comprise image display information or timestamp in described identification information, then determine that described target code mode is described video encoding standard technology, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that described video encoding standard technology is corresponding;
If there is no image display information or timestamp in described identification information, then determine that described target code mode is switch technology or described resolution zoom technology in described frame rate, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that in described frame rate, switch technology is corresponding, or the target decoder mode that described resolution zoom technology is corresponding.
In conjunction with second aspect the 4th kind of possible implementation or second aspect the 5th kind of possible implementation, in the 6th kind of possible implementation, the described supplementary determining to decode to described pending frame according to described target decoder mode, comprising:
When described target decoder mode is decoding process corresponding to described video encoding standard technology, obtain the supplementary of decoding to described pending frame, described supplementary is the residual error data information and control head information that described pending frame is corresponding;
When described target decoder mode is the decoding process that in frame rate, switch technology is corresponding, obtain the supplementary of decoding to described pending frame, described supplementary is empty;
When described target decoder mode is decoding process corresponding to resolution zoom technology, obtain the supplementary of decoding to described pending frame, described supplementary is that described pending frame carries out residual error data information corresponding to convergent-divergent process and control head information.
In conjunction with second aspect the 6th kind of possible implementation, in the 7th kind of possible implementation, the described supplementary determining that according to described target decoder mode described pending frame is decoded, after described target decoder mode and the described pending frame of described supplementary decoding, described method also comprises:
Judge that whether described target decoder mode is decoding process corresponding to described video encoding standard technology;
If the described target decoder mode decoding process that to be described video encoding standard technology corresponding, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
The embodiment of the present invention third aspect provides a kind of code device of video data, and it can comprise:
Acquisition module, for obtaining the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information;
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information;
Pretreatment module, described appointed information for obtaining at described acquisition module meets when starting pending frame described in the process of Multi-encoding mode pre-conditioned, respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, wherein, described first coded system and described second coded system are different coded systems;
Processing module, for the pre-processed results of described first coded system according to described pretreatment module process and the pre-processed results of described second coded system, select target coded system from described first coded system and described second coded system, and according to described target code mode, described pending frame is encoded.
In conjunction with the third aspect, in the implementation that the first is possible, described in designate the information as frame per second information;
Described pretreatment module, specifically for:
Judge whether the frame per second indicated by described frame per second information is greater than default frame per second threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of Multi-encoding mode.
In conjunction with the third aspect, in the implementation that the second is possible, described in designate the information as time complexity information;
Described pretreatment module, specifically for:
Judge whether the time complexity indicated by described time complexity information is greater than default time complexity threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of Multi-encoding mode.
In conjunction with the third aspect, in the implementation that the third is possible, described in designate the information as spatial complexity information;
Described pretreatment module, specifically for:
Judge whether the space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of Multi-encoding mode.
In conjunction with in the third aspect to the third possible implementation of the third aspect any one, in the 4th kind of possible implementation, described pretreatment module, specifically for:
According to described first coded system, the first video quality process is carried out to obtain the video data meeting designated quality index to described pending frame, wherein, the pre-processed results of described first coded system comprises the first coding data amount size spent by described first video quality process;
According to described second coded system, the second video quality process is carried out to obtain the video data meeting described designated quality index to described pending frame, wherein, the pre-processed results of described second coded system comprises the second amount of coded data size spent by described second video quality process.
In conjunction with the third aspect the 4th kind of possible implementation, in the 5th kind of possible implementation, described processing module, specifically for:
Judge whether the described first coding data amount size that described pretreatment module process obtains is less than described second amount of coded data size, if the determination result is YES, be then target code mode by described first coding mode selection, if judged result is no, be then target code mode by described second coding mode selection.
In conjunction with in the third aspect to the third possible implementation of the third aspect any one, in the 6th kind of possible implementation, described pretreatment module, specifically for:
According to described first coded system, the first video quality process is carried out to obtain video data when expending prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described first coded system comprises the first quality index of the described video data that described first video quality process obtains;
According to described second coded system, the second video quality process is carried out to obtain video data when expending described prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described second coded system comprises the second quality index of the described video data that described second video quality process obtains.
In conjunction with the third aspect the 6th kind of possible implementation, in the 7th kind of possible implementation, described processing module, specifically for:
Judge that whether described first quality index that described pretreatment module process obtains is higher than described second quality index, if the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
In conjunction with the third aspect the 4th kind of possible implementation and the third aspect the 6th kind of possible implementation, in the 8th kind of possible implementation, described processing module, specifically for:
Obtain described first coding data amount size and the second amount of coded data size of described pretreatment module process, and described first quality index and described second quality index;
Judge the ratio of described first quality index and described first coding data amount size, whether higher than the ratio of described second quality index and described second amount of coded data size;
If the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
In conjunction with the third aspect the 6th kind of possible implementation, in the 9th kind of possible implementation, described processing module, specifically for:
Judge that whether described pending frame is the frame of video in monitor video data or feature video data;
If the determination result is YES, then described first quality index of described pretreatment module process and described second quality index is obtained;
Judging that whether described first quality index is higher than described second quality index, if the determination result is YES, is then target code mode by described first coding mode selection.
In conjunction with the third aspect, in the third aspect the tenth kind of possible implementation, described code device also comprises mark module, and described mark module is used for:
Adopt the mode of index to mark described target code mode, the identification information obtaining described target code mode is encoded to the index information of described target code mode, and described identification information is passed to decoding end with the form of code stream; Or
Adopt the physical quantity characterizing time-domain information to mark to described target code mode the identification information obtaining described target code mode, and the identification information of described target code mode is passed to decoding end as control information;
Wherein, the physical quantity of described sign time-domain information comprises: image display information or timestamp.
In conjunction with the third aspect the tenth kind of possible implementation, in the 11 kind of possible implementation, described code device, also comprises:
Reference frame judge module, for judging whether the described target code mode that described processing module is selected is video encoding standard technology, if described target code mode is described video encoding standard technology, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
Embodiment of the present invention fourth aspect provides a kind of decoding device of video data, and it can comprise:
Acquisition module, for obtaining the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information;
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information;
Determination module, described appointed information for obtaining at described acquisition module meets when starting pending frame described in the process of target decoder mode pre-conditioned, the identification information carried in code stream information according to described pending frame, determines the target decoder mode of described pending frame;
Processing module, the described target decoder mode for determining according to described determination module determines the supplementary of decoding to described pending frame, according to described target decoder mode and the described pending frame of described supplementary decoding.
In conjunction with fourth aspect, in the implementation that the first is possible, described in designate the information as frame per second information;
Described determination module, specifically for:
Judge whether the frame per second indicated by described frame per second information is greater than default frame per second threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of target decoder mode.
In conjunction with fourth aspect, in the implementation that the second is possible, described in designate the information as time complexity information;
Described determination module, specifically for:
Judge whether the time complexity indicated by described time complexity information is greater than default time complexity threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of target decoder mode.
In conjunction with fourth aspect, in the implementation that the third is possible, described in designate the information as spatial complexity information;
Described determination module, specifically for:
Judge whether the space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of target decoder mode.
In conjunction with in fourth aspect to the third possible implementation of fourth aspect any one, in the 4th kind of possible implementation, described determination module, specifically for:
The code stream information of described pending frame is decoded, obtains the index information for target-marking coded system carried in described code stream information, determine described target code mode according to described index information;
According to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode of described pending frame in conjunction with described target code mode.
In conjunction with in fourth aspect to the third possible implementation of fourth aspect any one, in the 5th kind of possible implementation, described determination module, specifically for:
The code stream information of described pending frame is decoded, obtains the identification information carried in described code stream information and whether comprise image display information or timestamp;
If comprise image display information or timestamp in described identification information, then determine that described target code mode is described video encoding standard technology, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that described video encoding standard technology is corresponding;
If there is no image display information or timestamp in described identification information, then determine that described target code mode is switch technology or described resolution zoom technology in described frame rate, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that in described frame rate, switch technology is corresponding, or the target decoder mode that described resolution zoom technology is corresponding.
In conjunction with fourth aspect the 4th kind of possible implementation or fourth aspect the 5th kind of possible implementation, in the 6th kind of possible implementation, described processing module, specifically for:
When the described target decoder mode that described determination module is determined is decoding process corresponding to described video encoding standard technology, obtain the supplementary of decoding to described pending frame, described supplementary is the residual error data information and control head information that described pending frame is corresponding;
When the described target decoder mode that described determination module is determined is the decoding process that in frame rate, switch technology is corresponding, obtain the supplementary of decoding to described pending frame, described supplementary is empty;
When the described target decoder mode that described determination module is determined is decoding process corresponding to resolution zoom technology, obtain the supplementary of decoding to described pending frame, described supplementary is that described pending frame carries out residual error data information corresponding to convergent-divergent process and control head information.
In conjunction with fourth aspect the 6th kind of possible implementation, in the 7th kind of possible implementation, described decoding device also comprises:
Reference frame judge module, for judging that whether described target decoder mode that described determination module determines is decoding process corresponding to described video encoding standard technology;
If the described target decoder mode decoding process that to be described video encoding standard technology corresponding, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
The embodiment of the present invention the 5th aspect provides a kind of coding/decoding system of video data, comprising: the code device that the above-mentioned third aspect provides and the decoding device that above-mentioned fourth aspect provides.
The embodiment of the present invention can according to the appointed information of the pending frame of video data, determine whether that adopting Multi-encoding mode to treat processed frame processes, and then processed frame can be treated according to above-mentioned first coded system and the second coded system and carry out pretreated pre-processed results and determine to select concrete any coded system to be that target code mode is treated processed frame and encoded.The embodiment of the present invention can be selected concrete a kind of coded system to treat processed frame to carry out coded treatment, improve the video processing quality of the pending frame of video data, enhance the Consumer's Experience of video data process from Multi-encoding mode.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram that in prior art, decoding end self adaptation carries out frame of video process;
Fig. 2 is the first embodiment schematic flow sheet of the coding method of the video data that the embodiment of the present invention provides;
Fig. 3 is the second embodiment schematic flow sheet of the coding method of the video data that the embodiment of the present invention provides;
Fig. 4 is the 3rd embodiment schematic flow sheet of the coding method of the video data that the embodiment of the present invention provides;
Fig. 5 is the embodiment schematic flow sheet of the coding/decoding method of the video data that the embodiment of the present invention provides;
Fig. 6 is the first example structure schematic diagram of the code device of the video data that the embodiment of the present invention provides;
Fig. 7 is the second example structure schematic diagram of the code device of the video data that the embodiment of the present invention provides;
Fig. 8 is the 3rd example structure schematic diagram of the code device of the video data that the embodiment of the present invention provides;
Fig. 9 is a structural representation of the embodiment of the decoding device of the video data that the embodiment of the present invention provides;
Figure 10 is another structural representation of the embodiment of the decoding device of the video data that the embodiment of the present invention provides;
Figure 11 is the structural representation of the embodiment of the coding/decoding system of the video data that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The coding method of the video data described in the embodiment of the present invention and coding/decoding method can according to the frame per second of the pending frame of video data, or time complexity information, or in video data, the spatial complexity information such as image complexity determines the coded system used coding video data, can improve coding quality and the decoding quality of video data.Below in conjunction with Fig. 2-Figure 11, from coding side and decoding end, the coding method of the video data that the embodiment of the present invention provides and coding/decoding method and device are specifically described respectively.
See Fig. 2, it is the first embodiment schematic flow sheet of the coding method of the video data that the embodiment of the present invention provides.The coding method of the video data described in the embodiment of the present invention, comprises step:
S101, obtain the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information.
In the execution mode that some are feasible, before the pending frame of coding side to video data is encoded, can first treat processed frame to resolve, obtain the appointed information of pending frame, and then can determine that adopting which type of coded system to treat processed frame encodes according to the appointed information of pending frame.Concrete, coding side can preset and start Multi-encoding mode and treat processed frame when carrying out coded treatment, the required condition met of appointed information of above-mentioned pending frame, and then after the appointed information acquiring pending frame, can judge that whether above-mentioned appointed information is pre-conditioned according to the appointed information of pending frame.If the appointed information of the pending frame acquired above-mentioned meets pre-conditioned, then can start Multi-encoding mode and treat processed frame and carry out preliminary treatment.If the appointed information of the pending frame acquired above-mentioned does not meet pre-conditioned, then can treat processing video data according to general coded system and encode.Concrete, above-mentioned general coded system specifically can be the coded system of existing video encoding and decoding standard defined, and the mixed architecture coded system such as H.264 specified in standard, does not limit at this.
In specific implementation, the appointed information of the pending frame described in the embodiment of the present invention can comprise: frame per second information, time complexity information and spatial complexity information etc.Wherein, the time complexity information of above-mentioned pending frame can comprise: the length information of the motion vector of pending frame, or the index information of the reference frame of pending frame.That is, in embodiments of the present invention, coding side can according to the length information of the motion vector of pending frame, or the physical quantity of the reflecting time complexity such as the index information of reference frame judges the motion intense degree of the motion picture comprised in pending frame.The physical quantity of above-mentioned reflecting time complexity is only citing, and non exhaustive, including but not limited to above-mentioned information.The spatial complexity information of above-mentioned pending frame can comprise: the excursion information of image chroma, image texture information and picture coding patterns information etc.That is, in embodiments of the present invention, according to the excursion of the image chroma comprised in pending frame, image texture or picture coding patterns etc., coding side can reflect that the physical quantity of space complexity judges the picture material comprised in pending frame.
S102, if described appointed information meets start the pre-conditioned of pending frame described in the process of Multi-encoding mode, then respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, wherein, described first coded system and described second coded system are different coded systems.
In the execution mode that some are feasible, because the frame per second of video data is different, the code requirement of video data is also by difference, and in order to ensure the coding quality of video data, coding side can determine the concrete coded system adopted according to the frame per second of video data.If above-mentioned pending frame designate the information as frame per second information, when the frame per second that then coding side can indicate in the frame per second information of above-mentioned pending frame is greater than default frame per second threshold value, determines that the appointed information of pending frame meets and start the pre-conditioned of the pending frame of Multi-encoding mode process.Namely, in embodiments of the present invention, coding side can determine whether according to the frame per second of pending frame the coded system directly adopting video encoding and decoding standard defined, or obtains target code mode the need of adopting Multi-encoding mode to process simultaneously with screening from Multi-encoding mode.Such as, when the frame per second that coding side judges to obtain pending video data is greater than 60 frames/second, Multi-encoding mode can be used to treat processing video data process, and then the coded system therefrom selecting result more to satisfy the demands is as the target code mode of pending video data, otherwise directly use general coded system, namely the coded system of defined in video encoding and decoding standard, does not repeat them here.
In the execution mode that some are feasible, if above-mentioned pending frame designate the information as time complexity information, when then coding side can be greater than default time complexity threshold value at the time complexity indicated by the time complexity information of above-mentioned pending frame, determine that the appointed information of pending frame meets and start the pre-conditioned of the pending frame of Multi-encoding mode process.Such as, when the length of the average motion vector of pending video data is greater than 5, then can judge that the time complexity indicated by time complexity information of pending frame is greater than default time complexity threshold value.Further, Multi-encoding mode can be started and treat processing video data and process simultaneously, with therefrom select target coded system.If the time complexity of pending video data does not meet pre-conditioned, then directly use general coded system to treat processing video data and encode, do not repeat them here.
In the execution mode that some are feasible, if above-mentioned pending frame designate the information as spatial complexity information, when then coding side can be greater than pre-set space complexity threshold at the space complexity indicated by the spatial complexity information of above-mentioned pending frame, determine that the appointed information of pending frame meets and start the pre-conditioned of the pending frame of Multi-encoding mode process.Such as, when the texture number of some texture strength concrete in pending frame is more than 40%, coding side can judge that the image texture of pending frame is greater than pre-set space complexity threshold, and then Multi-encoding mode can be started treat deal with data and encode, otherwise general coded system is used to process.General coded system described in the embodiment of the present invention specifically can be the coded system specified in present stage video encoding and decoding standard, refer generally to comprise: the mixed architecture coded system of the steps such as prediction, conversion, quantification and entropy code, also can be the coded systems such as other time domain, the prediction of frequency domain and conversion, do not limit at this.
In the execution mode that some are feasible, coding side determine the appointed information of above-mentioned pending frame meet start Multi-encoding mode process pending frame pre-conditioned after, then can start the first coded system and the second coded system, and then processed frame can be treated according to above-mentioned first coded system and the second coded system and process.Concrete, coding side can be treated processed frame respectively according to above-mentioned first coded system and the second coded system and carry out preliminary treatment, to determine that according to above-mentioned pretreated result selecting concrete any coded system to treat processed frame encodes.In specific implementation, coding side treats processed frame, and to carry out pretreated object be can be more better in order to determine that concrete any coded system treats the encoding efficiency of processing mode, and non-immediate adopts above-mentioned first coded system and the second coded system to treat processed frame to encode, so, coding side treats processed frame when carrying out preliminary treatment, first pending frame of video can be carried out simplify processes (such as compression process etc.), obtain the frame data compared with small data size, again the frame data after compression are processed, and then by the comparison determination target code mode of result.In specific implementation, a kind of implementation in pretreatment mode is carried out in above-mentioned compression process, and concrete processing mode can limit according to use application scenarios, does not repeat them here.
In specific implementation, the first coded system described in the embodiment of the present invention specifically can be the video encoding standard technology of video encoding and decoding standard defined, or switch technology in frame rate, or resolution zoom technology etc.Wherein, H.263 the video encoding standard technology of above-mentioned video encoding and decoding standard defined can comprise, the coding techniques of defined in video encoding standard such as H.264 and H.265, does not limit at this.Above-mentioned coded system is only citing, and non exhaustive, including but not limited to above-mentioned coded system.In addition, the second coded system described in the embodiment of the present invention is coding techniques that is different and the first coded system, specifically can comprise the video encoding standard technology of the video encoding and decoding standard defined being different from the first coded system, or switch technology in the frame rate being different from the first coded system, or be different from the resolution zoom technology etc. of the first coded system.Above-mentioned coded system is only citing, and non exhaustive, including but not limited to above-mentioned coded system.That is, the first coded system can be any one in above-mentioned Multi-encoding technology, and the second coded system also can be any one in above-mentioned Multi-encoding technology, but the coding techniques that the second coded system is selected is different from the coding techniques of the first coded system.Such as, when the first coded system is switch technology A in frame rate, the second coded system can only be any one in the video encoding standard technology of video encoding and decoding standard defined, or any one resolution zoom technology, or switch technology B in frame rate.Namely the first coded system is switch technology A in frame rate, and the second coded system is not then switch technology A in frame rate.In specific implementation, the selection of above-mentioned first coded system and the second coded system can be determined according to time application scene demand, does not limit at this.
S103, according to the pre-processed results of described first coded system and the pre-processed results of described second coded system, select target coded system from described first coded system and described second coded system, and according to described target code mode, described pending frame is encoded.
In the execution mode that some are feasible, coding side uses the Multi-encoding mode such as the first coded system and the second coded system to treat after processed frame carries out preliminary treatment simultaneously, can according to the pre-processed results of above-mentioned Multi-encoding mode select target coded system from above-mentioned Multi-encoding mode.Concrete, coding side can use the first coded system and the second coded system to treat processed frame to carry out preliminary treatment, and then the first coded system can be treated processed frame and carry out the video quality of the video data that preliminary treatment obtains or the first coded system and treat processed frame and carry out amount of coded data size spent in preprocessing process, the video quality that processed frame carries out the video data that preliminary treatment obtains is treated with the second coded system, or the second coded system is treated processed frame and to be carried out in preprocessing process the information such as spent amount of coded data size and compare, the coded system selecting to meet embody rule scene demand according to comparison result from above-mentioned first coded system and the second coded system carries out the target code mode of specific coding process as treating processed frame.
In the execution mode that some are feasible, after coding side have selected target code mode, target code mode can be used to treat processed frame and to encode.In addition, after coding side have selected target code mode, can first target code mode be informed to decoding end, the information determination coding side that decoding end can transmit according to coding side treats the coded system adopted when processed frame is encoded, and then corresponding decoding process can be used to decode, without the need to judging voluntarily, decrease the False Rate of coded system.In specific implementation, target code mode is informed decoding end by multiple send mode by coding side, wherein, different send modes correspond to different identification informations, and the identification information of target code mode is sent to decoding end by different send modes by coding side.Concrete, coding side can select the send mode sending index information, coding side can adopt the mode of index to mark target code mode, the identification information obtaining target code mode is encoded to the index information of target code mode, and then the identification information of target code mode can be passed to decoding end with the form of code stream.Decoding end by resolve code stream information, according to the index information determination target code mode of carrying in code stream information, so can the decoding process corresponding according to target code mode treat processed frame carry out decoding process.When the index information of coding side to target code mode is encoded, can with equiprobable mode code index information, such as, if there are two kinds of coded systems, then the first coded system is encoded to 0, and the second coded system is encoded to 1.Concrete, coding side also can with actual count characteristic, according to the mode code index information of unequal probability.Such as, if there are three kinds of coded systems, then the first coded system may be encoded as 0, and the second coded system may be encoded as 10, and the 3rd coded system may be encoded as 110.Further, coding side also can adopt the mode code index information of equiprobability and unequal probability two kinds of mode hybrid codings.Such as, if there are three kinds of coded systems, the first coded system may be encoded as 0, and the second coded system may be encoded as 10, and the 3rd coded system may be encoded as 11.In specific implementation, coding side according to the coded system using application demand determination index information, can not limit at this.
In addition, coding side also can adopt the physical quantity characterizing time-domain information to mark to obtain the identification information of target code mode to target code mode, and the identification information of target code mode is passed to decoding end as control information.Decoding end can according to coding side transmit control information determination target code mode, and then can the decoding process corresponding according to target code mode treat processed frame carry out decoding process.The transfer mode of above-mentioned target code mode is only citing, and non exhaustive, including but not limited to above-mentioned implementation, does not limit at this.Wherein, the physical quantity of above-mentioned sign time-domain information can comprise: image display information or timestamp etc., do not limit at this.Such as, " image display information " characterizes each two field picture in the physical quantity of the DISPLAY ORDER of decoding end, can be passed to decoding end as a kind of control information.Coding side and decoding end can specify, when " image display information " that some Image display position are corresponding exists, to use the first coded system to treat processed frame and process, otherwise, use the second coded system to treat processed frame and process.Or " timestamp " is when transmission of video information, in the control information that transmission system layer adds, be characterized in decoding end at which time point to play corresponding video information.When coding side and decoding end can specify the timestamp information space character regulation when some video clips, the first coded system is used to encode, otherwise, when the degree of rarefication at above-mentioned timestamp information interval exceedes predetermined threshold value, use the second coded system to encode.Target code mode using the identification information of the information such as image display information or timestamp as target code mode, can be passed to decoding end by the information such as image display information or timestamp by coding side.
According to the frame per second information of the pending frame of video data or time complexity information or spatial complexity information, coding side can wait for that the appointed information of processed frame judge whether to adopt Multi-encoding mode to process the pending frame in pending video in embodiments of the present invention, or treats processed frame according to the general coded system of video encoding and decoding standard defined and process.If the appointed information such as the frame per second of pending video data or time complexity meet start that Multi-encoding mode carries out processing pre-conditioned, the first coded system and the second coded system then can be adopted to carry out preliminary treatment to the pending frame in video data respectively, and then can determine to select concrete any coded system to be that pending frame is encoded according to the pre-processed results of above-mentioned first coded system and the second coded system.After coding side select target coded system, target code mode can be informed to decoding end according to appointed information send mode, treat processing video data for the decoding process that decoding end is corresponding according to target code mode and carry out decoding process.The embodiment of the present invention can be selected concrete a kind of coded system to treat processed frame to carry out coded treatment, improve the video processing quality of the pending frame of video data, enhance the Consumer's Experience of video data process from Multi-encoding mode.
See Fig. 3, it is the second embodiment schematic flow sheet of the coding method of the video data that the embodiment of the present invention provides.The coding method of the video data described in the embodiment of the present invention, comprises step:
S201, obtain the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information.
In the execution mode that some are feasible, the specific implementation process that the coding side described in the embodiment of the present invention obtains the appointed information of pending frame see the step S101 in above-mentioned first embodiment, can not repeat them here.
S202, if described appointed information meets start the pre-conditioned of pending frame described in the process of Multi-encoding mode, then according to described first coded system, the first video quality process is carried out to obtain the video data meeting designated quality index to described pending frame, wherein, the pre-processed results of described first coded system comprises the first coding data amount size spent by described first video quality process.
S203, according to described second coded system, the second video quality process is carried out to obtain the video data meeting described designated quality index to described pending frame, wherein, the pre-processed results of described second coded system comprises the second amount of coded data size spent by described second video quality process.
In the execution mode that some are feasible, coding side described in the embodiment of the present invention is treated processed frame according to the first coded system and the second coded system and is carried out pretreated specific implementation process and see the step S102 in above-mentioned first embodiment, can not repeat them here.
Further, in the execution mode that some are feasible, algorithm Starting mode described in the embodiment of the present invention, namely the Starting mode determining whether to use Multi-encoding mode to treat processed frame and carry out processing, can be that each frame judges all separately, determines whether to start, namely can be the judgment mode of frame level.Further, the Starting mode that coding side determines whether to use Multi-encoding mode to treat processing video data and carries out processing can also be the judgment mode of image sets level.Such as, when a coding image sets, the multiframe data centralization comprised in an image sets once can be judged, the multiframe data in this image sets are made all to use two kinds of coded systems to process, therefrom select target coded system again, or all use three kinds of coded systems to process, then select target coded system.Further, can also be the judgment mode of sequence-level, namely the frame data (being made up of multiple image sets) of a sequence once judge, determine whether that starting Multi-encoding mode processes.Or the judgment mode of slice level, or the judgment mode of chip level, wherein, above-mentioned band and sheet are two kinds of modes of configuration frame.Namely, coding side can split frame data according to the mode of the mode of band or sheet, one frame data are split as multiple strip data or multislice data, and then can judge according to the mode of slice level, determine whether strip data starts Multi-encoding mode and process, or whether sheet DBMS starts Multi-encoding mode processes etc., does not limit at this.
Further, in the execution mode that some are feasible, the first coded system described in the embodiment of the present invention and the second coded system can be two kinds of different coded systems, also can be the Multi-encoding modes such as different three kinds or four kinds, do not limit at this.The present invention, by taking the first coded system and the second coded system as two kinds of different this situations of coded system, is specifically described.
In the execution mode that some are feasible, coding side can be treated processed frame according to the first coded system and carry out the first video quality process, to obtain the video data meeting designated quality index.Further, coding side also can be determined to treat according to the first coded system the amount of coded data size (i.e. first coding data amount size) that processed frame carries out spent by the first video quality process, wherein, the first coding data amount size spent by above-mentioned first video quality process is the first coded system and treats processed frame and carry out pretreated pre-processed results.In addition, coding side also can be treated processed frame according to the second coded system and carries out the second video quality process, to obtain the video data meeting above-mentioned designated quality index.Wherein, above-mentioned second coded system is treated processed frame and is carried out pretreated pre-processed results and comprise the second amount of coded data size spent by the second video quality process.In specific implementation, above-mentioned designated quality index can comprise subjective quality index or objective quality index.Wherein, above-mentioned objective quality index can comprise: Y-PSNR or structural similarity etc.The quality index of above-mentioned video objective quality is only citing, and non exhaustive, including but not limited to above-mentioned quality index.Above-mentioned subjective quality index can comprise: subjective evaluation scoring, the scoring etc. that psychological model is marked, minimum visible error is marked, time-space domain human eye covers up effect or physilogical characteristics.The quality index of above-mentioned Subjective video quality is only citing, and non exhaustive, including but not limited to above-mentioned quality index.
S204, judges whether described first coding data amount size is less than described second amount of coded data size, if the determination result is YES, then performs step S205, otherwise performs step S206.
Described first coding mode selection is target code mode by S205.
Described second coding mode selection is target code mode by S206.
In the execution mode that some are feasible, coding side is treated after processed frame carries out preliminary treatment according to the first coded system and the second coded system, then the pre-processed results of the first coded system can be comprised first coding data amount size, the the second amount of coded data size comprised with the pre-processed results of the second coded system is compared, according to comparison result select target coded system from the first coded system and the second coded system.Concrete, coding side can judge whether first coding data amount size is less than the second amount of coded data size, if the determination result is YES, when then can determine same treatment target, first coded system treat processed frame process spent by amount of coded data less, namely the handling property of the first coded system is better than the second coded system, and then can be target code mode by the first coding mode selection.If first coding data amount size is greater than the second amount of coded data size, then the handling property of the second coded system the first coded system can be better than, and then the second coded system target code mode can be defined as.
S207, encodes to described pending frame according to described target code mode.
In specific implementation, coding side use target code mode to treat specific implementation process that processed frame carries out encoding see the implementation described by the step S103 in the first embodiment, can not repeat them here.
S208, judges whether described target code mode is video encoding standard technology, if the determination result is YES, then performs step S209.
S209, adds described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
In the execution mode that some are feasible, coding side determines target code mode, use target code mode to treat after processed frame encodes, also can determine whether in reference frame lists corresponding for the next pending frame of pending frame access according to target code mode.Namely, coding side treats processed frame (such as N frame, N is natural number) when encoding, the reference frame lists generating pending frame (N frame) after coding completes can be carried out by the processed frame (such as N-1 frame) before treating processed frame.After the frame data of coding side to N-1 frame process, can determine according to the coded system of N-1 frame the reference frame whether N-1 frame can encode as the frame data of its next frame (i.e. N frame).If, then can above-mentioned N-1 frame be joined in reference frame lists, that is, N-1 frame be joined in the reference frame lists of its coding, generate a new reference frame lists, using the reference frame lists that this reference frame lists is encoded as the first frame (N frame).After the frame data of coding side to N frame process, can determine according to the coded system of N frame the reference frame whether N frame can encode as the frame data of its next frame (i.e. N+1 frame).If so, then can above-mentioned N frame be joined in reference frame lists, that is, N frame be joined in reference frame lists of its coding, generate a new reference frame lists, using the reference frame lists that this reference frame lists is encoded as the first frame (N+1 frame).
In the execution mode that some are feasible, if above-mentioned target code mode is the video encoding standard technology of video encoding and decoding standard defined, then can above-mentioned pending frame be joined in reference frame lists, generate the reference frame lists that next pending frame is corresponding.If above-mentioned target code mode is not the video encoding standard technology of video encoding and decoding standard defined, then pending frame is not linked in reference frame lists.In specific implementation, if above-mentioned target code mode is the video encoding standard technology of video encoding and decoding standard defined, then target code way choice result is passed to decoding end by the mode sending index information by coding side, or by the mode sending the control informations such as image display information, target code way choice result is passed to decoding end.After decoding end receives above-mentioned index information or control information, then can resolve above-mentioned index information or control information, determine target code mode.If above-mentioned target code mode is the coded system that frame rate is changed, coding side determines to be treated after processed frame carries out the coded system of encoding, without the need to sending the video data information of any present frame to decoding end.If decoding end does not receive any information from coding side, then can default objects coded system be the coded system that frame rate is changed.
In specific implementation, coding side is all according to above-mentioned implementation to the video data of each frame, so, coding side treats processed frame when processing, the target code mode of the processed frame before pending frame can be received, and then can determine whether processed frame can be the reference frame of current pending frame according to the target code mode of pending frame.Concrete, the method sending index information when coding side sends target code mode to what adopt during decoding end, then coding side can give " image display information " to the processed frame of the coded system adopting video encoding and decoding standard defined, and the processed frame will with " image display information " is according to the far and near position principle near pending frame, generates the reference frame lists of pending frame.Such as, coding side can obtain 5 frame of video before pending frame, be assumed to be F1 to F5, wherein, the coded system that the coded system that F1, F3 and F4 use is video encoding and decoding standard defined, F2 and F5 uses the coded system that frame rate is changed, then coding side can get the situation of " image display information " of carrying in each frame of video of F1 to F5.Concrete, the coded system that coding side can adopt according to above-mentioned each frame of video determine " image display information " of each frame of video be 0, without, 1,2, nothing, now, coding side can determine that the reference frame of pending frame is F1, F3 and F4, and then can determine that the reference frame lists of pending frame is F4, F3, F1 according to the position relationship of each reference frame and pending frame.
In the execution mode that some are feasible, if what coding side transmitted that target code mode adopts to decoding end is the method sent control information, then coding side can will have the processed frame of " image display information " according to the far and near position principle near pending frame, the list of generating reference frame, and then also discontinuous " image display information " can be mapped as continuous print reference key.Such as, coding side can obtain 5 frame of video before pending frame, be assumed to be F1 to F5, wherein, F1, the coded system that the coded system that F3 and F4 uses is video encoding and decoding standard defined, F2 and F5 uses the coded system that frame rate is changed, then coding side can get the situation of " image display information " of carrying in each frame of video of F1 to F5 is 0, nothing, 2, 3, nothing. further, coding side can determine that the reference frame of pending frame is F1, F3 and F4, and then can determine that the reference frame lists of pending frame is F4 according to the position relationship of each reference frame and pending frame, F3, F1.Wherein, the reference key of above-mentioned reference frame F4, F3, F1 can have (3,2,0) to be mapped as (3,2,1).
Coding side can judge whether to adopt Multi-encoding mode to process the pending frame in pending video according to information such as the frame per second of pending video data or time complexities in embodiments of the present invention, or treats processed frame according to the general coded system of video encoding and decoding standard defined and process.If the appointed information such as the frame per second of pending video data or time complexity meet pre-conditioned, the pending frame that the first coded system and the second coded system then can be adopted to treat respectively in processing video data carries out preliminary treatment, and then can determine to select concrete any coded system to be that pending frame is encoded according to the pre-processed results of above-mentioned first coded system and the second coded system.After coding side select target coded system, target code mode can be informed to decoding end according to appointed information send mode, treat processing video data for the decoding process that decoding end is corresponding according to target code mode and carry out decoding process, decoding end, without the need to judging voluntarily, can improve the accuracy of decoding end to the judgement of coded system.Coding side also can be corresponding according to the pending frame generated in advance reference frame lists, treat processed frame according to target code mode and encode, improve the coded video quality of pending video, enhance the Consumer's Experience of video data process.
See Fig. 4, it is the 3rd embodiment schematic flow sheet of the coding method of the video data that the embodiment of the present invention provides.The coding method of the video data described in the embodiment of the present invention, comprises step:
S301, obtain the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information.
In the execution mode that some are feasible, the specific implementation process that the coding side described in the embodiment of the present invention obtains the appointed information of pending frame see the step S101 in above-mentioned first embodiment, can not repeat them here.
S302, if described appointed information meets start the pre-conditioned of pending frame described in the process of Multi-encoding mode, according to described first coded system, the first video quality process is carried out to obtain video data when expending prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described first coded system comprises the first quality index of the described video data that described first video quality process obtains.
S303, according to described second coded system, the second video quality process is carried out to obtain video data when expending described prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described second coded system comprises the second quality index of the described video data that described second video quality process obtains.
In the execution mode that some are feasible, coding side described in the embodiment of the present invention is treated processed frame according to the first coded system and the second coded system and is carried out pretreated specific implementation process and see the step S102 in above-mentioned first embodiment and the step S202 in the second embodiment and S203, can not repeat them here.
Further, coding side can carry out the first video quality process according to the first coded system to described pending frame, to obtain video data when expending prescribed coding data volume size.Further, coding side also can determine the quality index (i.e. the first quality index) treating the video data obtained after processed frame carries out the first video quality process according to the first coded system.Wherein, the first quality index of video data that above-mentioned first video quality process obtains is the first coded system and treats processed frame and carry out pretreated pre-processed results.In addition, coding side also can be treated processed frame according to the second coded system and carry out the second video quality process, to obtain video data when expending above-mentioned prescribed coding data volume size, wherein, the pre-processed results of the second coded system comprises the second quality index of the described video data that the second video quality process obtains.Wherein, above-mentioned quality index can comprise objective quality index and subjective quality index, specifically see above-mentioned second embodiment, can not repeat them here.
S304, judges that whether described first quality index is higher than described second quality index, if the determination result is YES, then performs step S305, otherwise, perform step S306.
Described first coding mode selection is target code mode by S305.
Described second coding mode selection is target code mode by S306.
In the execution mode that some are feasible, coding side is treated after processed frame carries out preliminary treatment according to the first coded system and the second coded system, then the pre-processed results of the first coded system can be comprised the first quality index, the second quality index comprised with the pre-processed results of the second coded system is compared, according to comparison result select target coded system from the first coded system and the second coded system.Concrete, coding side can judge that whether the first quality index is higher than the second quality index, if the determination result is YES, when then can determine to expend same-code data volume size, first coded system treats processed frame, and to carry out processing the video quality obtained higher, namely the handling property of the first coded system is better than the second coded system, and then can be target code mode by the first coding mode selection.If the first quality index is lower than the second quality index, then the handling property of the second coded system the first coded system can be better than, and then the second coded system target code mode can be defined as.
In the execution mode that some are feasible, coding side is from the first coded system and the second coded system during select target coded system, also can according to first coding data amount size and the second amount of coded data size, and the first quality index and the second quality index carry out comprehensive descision.Coding side can from the pre-processed results of the first coded system and the second coded system, obtain above-mentioned first quality index and the second quality index, and first coding data amount size and the second amount of coded data size, and then the ratio of the first quality index and first coding data amount size can be determined, and, the ratio of the second quality index and the second amount of coded data size.When coding side judges to learn the ratio of the ratio of the first quality index and first coding data amount size higher than the second quality index and the second amount of coded data size, then the first coded system can be defined as the target code mode of pending frame, otherwise, then the second coded system is defined as the target code mode of pending frame.
Further, coding side during select target coded system, also can be selected according to the embody rule scene of pending frame from the first coded system and the second coded system.If pending frame is specify the video data of application scenarios, then can forces to adopt and ensure that the coded system of video quality is encoded, concrete some coded systems can be specified to be the coded system of the video data of specifying application scenarios.Concrete, coding side can judge that whether above-mentioned pending frame is the frame of video in monitor video data or feature video data.If above-mentioned pending frame is the frame of video in monitor video data or feature video data, then higher-quality coded system can be used to process above-mentioned pending frame.Such as, for monitor video, can according to the second selection of quality index target code mode comprised in the pre-processed results of the first quality index comprised in the pre-processed results of the first coded system and the second coded system.If the first quality index is higher than the second quality index, then select the first coded system as the target code mode of monitor video, otherwise, select the second coded system as the target code mode of monitor video.
S307, encodes to described pending frame according to described target code mode.
In specific implementation, coding side use target code mode to treat specific implementation process that processed frame carries out encoding see the implementation described by the step S103 in the first embodiment, can not repeat them here.
S308, judges whether described target code mode is video encoding standard technology, if the determination result is YES, then performs step S309.
S309, adds described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
In specific implementation, the specific implementation process of above-mentioned steps S308 and S309 see the step S208 in the second embodiment and the implementation described by S209, can not repeat them here.
Coding side can judge whether to adopt Multi-encoding mode to process the pending frame in pending video according to the frame per second of pending video data or the information such as time complexity, space complexity in embodiments of the present invention, or treats processed frame according to the general coded system of video encoding and decoding standard defined and process.If the appointed information such as the frame per second of pending video data or time complexity meet pre-conditioned, the pending frame that the first coded system and the second coded system then can be adopted to treat respectively in processing video data carries out preliminary treatment, and then can determine to select concrete any coded system to be that pending frame is encoded according to the pre-processed results of above-mentioned first coded system and the second coded system.After coding side select target coded system, target code mode can be informed to decoding end according to appointed information send mode, treat processing video data for the decoding process that decoding end is corresponding according to target code mode and carry out decoding process, decoding end, without the need to judging voluntarily, can improve the accuracy of decoding end to the judgement of coded system.Coding side also can be corresponding according to the pending frame generated in advance reference frame lists, treat processed frame according to target code mode and encode, improve the coded video quality of pending video, enhance the Consumer's Experience of video data process.
See Fig. 5, it is the first embodiment schematic flow sheet of the coding/decoding method of the video data that the embodiment of the present invention provides.The coding/decoding method of the video data described in the embodiment of the present invention comprises step:
S401, obtain the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information.
In the execution mode that some are feasible, the implementation procedure of the decoding end described by the embodiment of the present invention and the implementation procedure inverse process each other of above-mentioned coding side, the implementation procedure namely described by decoding end is the inverse process of the implementation procedure of above-mentioned coding side.The appointed information of the pending frame of the video data described in the embodiment of the present invention comprises: frame per second information, time complexity information and spatial complexity information etc.Wherein, the time complexity information of above-mentioned pending video data comprises: the length information of motion vector, or the index information of reference frame; Above-mentioned spatial complexity information comprises: the excursion information of image chroma, image texture information and picture coding patterns information etc.In specific implementation, decoding end described in the embodiment of the present invention obtains the appointed information of pending frame, judge whether above-mentioned appointed information meets the pre-conditioned specific implementation process starting the pending frame of target decoder mode process and see the implementation described by above-mentioned coding side embodiment, can not repeat them here.
S402, if described appointed information meets start the pre-conditioned of pending frame described in the process of target decoder mode, then the identification information carried in the code stream information according to described pending frame, determines the target decoder mode of described pending frame.
In the execution mode that some are feasible, when decoding end judges to learn that above-mentioned appointed information meets pre-conditioned, the identification information determination coding side carried in code stream information then according to pending frame treats the target code mode that processed frame carries out encoding used, and then can determine the target decoder mode of pending frame according to the mode of decoding end and coding side agreement in advance.Concrete, decoding end can the code stream information that transmits of received code end, decodes, according to the target code mode that the information determination coding side carried in code stream information adopts to code stream information.When the identification information that decoding end receives is the index information of coded system, decoding end can according to the coded system of index information in conjunction with the coded message determination target code mode of carrying in code stream information, and then according to the corresponding relation of coding side and the decoding end coded system determined of agreement and decoding process in advance, the target decoder mode that target code mode is corresponding can be determined.When the identification information that decoding end receives is the control informations such as image display information corresponding to coded system, decoding end image display information according to the rules can give mode in conjunction with the image display information determination target code mode of carrying in code stream information.The code stream information treating processed frame when decoding end is decoded, acquire in the identification information carried in code stream information and comprise image display information or timestamp, then can determine that target code mode is video encoding standard technology, and then can according to the coded system preset and target decoder mode corresponding to the corresponding relation determination target code mode of decoding process.If the code stream information that decoding end treats processed frame is decoded, acquire in the identification information carried in code stream information and there is no image display information or timestamp, then determine that target code mode is switch technology or described resolution zoom technology in described frame rate, and then can according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that in described frame rate, switch technology is corresponding, or the target decoder mode that described resolution zoom technology is corresponding.
Such as, decoding end can arrange the coded system of the index information of target code mode with coding side, such as, if there are two kinds of coded systems, can specify that the first coded system is encoded to 0, the second coded system is encoded to 1, then after decoding end receives code stream information, then can resolve code stream information, the target code information of carrying in mode determination code stream according to a preconcerted arrangement.Or, decoding end can arrange the control information of target code mode and the corresponding relation of image display information with coding side, such as, if there are two kinds of coded systems, then can specify that the first coded system can be given " image display information ", the second coded system is not given " image display information ".After decoding end receives control information, if comprise " image display information " in above-mentioned control information, can determine that target code mode is the first coded system.If do not comprise " image display information " in above-mentioned control information, then can determine that target code mode is the second coded system.In specific implementation above-mentioned determine the mode of target code mode be only citing, specifically see the implementation described by above-mentioned coding side, can not limit at this.
In the execution mode that some are feasible, if above-mentioned appointed information does not meet pre-conditioned, decoding end then can be treated processing video data according to general solution coding mode and carry out decoding process.Wherein, above-mentioned general solution coding mode is the mixed structure decoding process of video encoding and decoding standard defined, and the specific implementation of above-mentioned mixed architecture decoding process see the executive mode specified in video data encoding and decoding standard, can not repeat them here.
S403, determines the supplementary of decoding to described pending frame according to described target decoder mode, according to described target decoder mode and the described pending frame of described supplementary decoding.
In the execution mode that some are feasible, after decoding end determines the target code mode that coding side adopts, then can decode by the pending frame treated in processing video data of the target decoder mode corresponding according to target code mode.Concrete, when decoding end treat processed frame decode time, can according to its information determination mode that each coded system of agreement is corresponding in advance with coding side, determine the appointed information that target code mode that above-mentioned coding side adopts is corresponding, and then above-mentioned appointed information can be obtained from pending video data, treat processing video data according to above-mentioned appointed information to decode, obtain video data.In specific implementation, if during the above-mentioned target decoder mode decoding process that to be video encoding standard technology corresponding, decoding end then can obtain the supplementary treated processed frame and carry out decoding, and wherein, above-mentioned supplementary is the residual error data information and control head information that pending frame is corresponding.When target decoder mode is the decoding process that in frame rate, switch technology is corresponding, decoding end is then without the need to obtaining the supplementary treated processed frame and carry out processing, that is, the supplementary of decoding to described pending frame is sky.When target decoder mode is decoding process corresponding to resolution zoom technology, obtain the supplementary treated processed frame and carry out decoding, wherein, above-mentioned supplementary is that pending frame carries out residual error data information corresponding to convergent-divergent process and control head information.Such as, if coding side is treated processed frame and carried out encoding that what adopt is the video encoding standard technology of video encoding and decoding standard defined, then decoding end needs after determining the decoding process that above-mentioned target code mode is corresponding to obtain complete residual error data information and control head information is decoded to pending video.If coding side is treated processed frame and carried out encoding that what adopt is frame rate conversion techniques, then decoding end does not need to obtain any data message, only needs to carry out decoding according to the decoding process that frame rate conversion techniques is corresponding.If coding side treat processed frame carry out encode adopt be resolution zoom technology, then decoding end need obtain reduce after residual error data information and control head information pending video is decoded.Further, coding side also can adopt other coded system, needs the information transmitted also can comprise: filter factor information or update information etc., do not limit at this.
In the execution mode that some are feasible, decoding end to be decoded pending frame according to target decoder mode and the supplementary that gets, according to the decoding process of pending frame, decoding end also can determine whether pending frame can be used as the reference frame of next pending frame.Concrete, decoding end can judge that whether target decoder mode is decoding process corresponding to video encoding standard technology, if the target decoder mode decoding process that to be video encoding standard technology corresponding, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the pending frame obtained.In specific implementation, the specific implementation that decoding end generates the reference frame lists of pending frame see the implementation described by coding side embodiment, can not repeat them here.
In embodiments of the present invention, according to pending video data, decoding end can determine that the decoding process specified in startup video encoding and decoding standard is treated processing video data and decoded, the identification information determination coding side that also can send according to coding side treats the target decoder mode that processing video data carries out encoding, and then treats processed frame according to target decoder mode and decode.Decoding end, without the need to determining decoding process voluntarily according to Adaptive Criterion, decreases the erroneous judgement of the coded system of pending video data encoding, enhances the accuracy of pending frame video data decoding, improves the quality of video data decoding.
See Fig. 6, it is the first example structure schematic diagram of the code device of the video data that the embodiment of the present invention provides.Code device described by the embodiment of the present invention, comprising:
Acquisition module 10, for obtaining the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information.
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information.
Pretreatment module 20, described appointed information for obtaining at described acquisition module meets when starting pending frame described in the process of Multi-encoding mode pre-conditioned, respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, wherein, described first coded system and described second coded system are different coded systems.
Processing module 30, for the pre-processed results of described first coded system according to described pretreatment module process and the pre-processed results of described second coded system, select target coded system from described first coded system and described second coded system, and according to described target code mode, described pending frame is encoded.
In the execution mode that some are feasible, above-mentionedly designate the information as frame per second information;
Above-mentioned pretreatment module 20, specifically for:
Judge whether the frame per second indicated by described frame per second information is greater than default frame per second threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of Multi-encoding mode.
In the execution mode that some are feasible, above-mentionedly designate the information as time complexity information;
Above-mentioned pretreatment module 20, specifically for:
Judge whether the time complexity indicated by described time complexity information is greater than default time complexity threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of Multi-encoding mode.
In the execution mode that some are feasible, above-mentioned to determine information be spatial complexity information;
Above-mentioned pretreatment module 20, specifically for:
Judge whether the space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of Multi-encoding mode.
In specific implementation, the code device described in the embodiment of the present invention is the executive agent of the coding method of the video data that the embodiment of the present invention provides, and is the coding side described in embodiment of above-mentioned coding method.Code device described in the embodiment of the present invention performs the implementation described in the first embodiment of the coding method of the video data that the embodiment of the present invention provides by its acquisition module 10, pretreatment module 20 and processing module 30, specific implementation process see the implementation in the first embodiment of the coding method of above-mentioned video data described by each step (step S101 to S103), can not repeat them here.
In embodiments of the present invention, according to the frame per second information of the pending frame of video data or time complexity information or spatial complexity information, code device can wait for that the appointed information of processed frame judge whether to adopt Multi-encoding mode to process the pending frame in pending video, or treat processed frame according to the general coded system of video encoding and decoding standard defined and process.If the appointed information such as the frame per second of pending video data or time complexity meet start that Multi-encoding mode carries out processing pre-conditioned, the first coded system and the second coded system then can be adopted to carry out preliminary treatment to the pending frame in video data respectively, and then can determine to select concrete any coded system to be that pending frame is encoded according to the pre-processed results of above-mentioned first coded system and the second coded system.After code device select target coded system, target code mode can be informed to decoding device according to appointed information send mode, treat processing video data for the decoding process that decoding device is corresponding according to target code mode and carry out decoding process.Code device described by the embodiment of the present invention can be selected concrete a kind of coded system to treat processed frame to carry out coded treatment, improve the video processing quality of the pending frame of video data, enhance the Consumer's Experience of video data process from Multi-encoding mode.
See Fig. 7, it is the second example structure schematic diagram of the code device of the video data that the embodiment of the present invention provides.Code device described by the embodiment of the present invention, comprising:
Acquisition module 10, for obtaining the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information.
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information.
In specific implementation, above-mentioned acquisition module 10 can perform the implementation performed by acquisition module 10 in the first embodiment of above-mentioned code device, specific implementation process see the implementation described by the step S101 of the first embodiment of the coding method of above-mentioned video data, can not repeat them here.
Pretreatment module 21, described appointed information for obtaining at described acquisition module meets when starting pending frame described in the process of Multi-encoding mode pre-conditioned, respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, wherein, described first coded system and described second coded system are different coded systems.
In specific implementation, above-mentioned pretreatment module 21 can perform the implementation performed by pretreatment module 20 in the first embodiment of above-mentioned code device, further, also can perform following operation:
In the execution mode that some are feasible, above-mentioned pretreatment module 21, specifically for:
According to described first coded system, the first video quality process is carried out to obtain the video data meeting designated quality index to described pending frame, wherein, the pre-processed results of described first coded system comprises the first coding data amount size spent by described first video quality process;
According to described second coded system, the second video quality process is carried out to obtain the video data meeting described designated quality index to described pending frame, wherein, the pre-processed results of described second coded system comprises the second amount of coded data size spent by described second video quality process.
Processing module 31, for the pre-processed results of described first coded system according to described pretreatment module process and the pre-processed results of described second coded system, select target coded system from described first coded system and described second coded system, and according to described target code mode, described pending frame is encoded.
In specific implementation, the processing module 31 described in the embodiment of the present invention can perform the implementation performed by processing module 30 in the first embodiment of above-mentioned code device, further, also can perform following operation:
In the execution mode that some are feasible, above-mentioned processing module 31, specifically for:
Judge whether the described first coding data amount size that described pretreatment module process obtains is less than described second amount of coded data size, if the determination result is YES, be then target code mode by described first coding mode selection, if judged result is no, be then target code mode by described second coding mode selection.
In the execution mode that some are feasible, the code device described in the embodiment of the present invention also comprises mark module 40, above-mentioned mark module 40 for:
Adopt the mode of index to mark described target code mode, the identification information obtaining described target code mode is encoded to the index information of described target code mode, and described identification information is passed to decoding end with the form of code stream; Or
Adopt the physical quantity characterizing time-domain information to mark to described target code mode the identification information obtaining described target code mode, and the identification information of described target code mode is passed to decoding end as control information;
Wherein, the physical quantity of described sign time-domain information comprises: image display information or timestamp.
In the execution mode that some are feasible, the code device described in the embodiment of the present invention also comprises:
Reference frame judge module 50, for judging whether the described target code mode that described processing module is selected is video encoding standard technology, if described target code mode is described video encoding standard technology, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
In specific implementation, the code device that the embodiment of the present invention provides specifically can be the executive agent of the coding method of the video data that the embodiment of the present invention provides, the i.e. coding side described in embodiment of the coding method of video data that provides of the embodiment of the present invention, in specific implementation, code device (comprises acquisition module 10 by its built-in modules, pretreatment module 21, processing module 31, mark module 40 and reference frame judge module 50) perform the first embodiment of the coding method of above-mentioned video data and the implementation described in the second embodiment, specific implementation process can see the implementation in the first embodiment of the coding method of above-mentioned video data and the second embodiment described by each step, do not repeat them here.
Code device can judge whether to adopt Multi-encoding mode to process the pending frame in pending video according to information such as the frame per second of pending video data or time complexities in embodiments of the present invention, or treats processed frame according to the general coded system of video encoding and decoding standard defined and process.If the appointed information such as the frame per second of pending video data or time complexity meet pre-conditioned, the pending frame that the first coded system and the second coded system then can be adopted to treat respectively in processing video data carries out preliminary treatment, and then can determine to select concrete any coded system to be that pending frame is encoded according to the pre-processed results of above-mentioned first coded system and the second coded system.After code device select target coded system, target code mode can be informed to decoding device according to appointed information send mode, treat processing video data for the decoding process that decoding device is corresponding according to target code mode and carry out decoding process, decoding device, without the need to judging voluntarily, can improve the accuracy of decoding device to the judgement of coded system.Code device also can be corresponding according to the pending frame generated in advance reference frame lists, treat processed frame according to target code mode and encode, improve the coded video quality of pending video, enhance the Consumer's Experience of video data process.
See Fig. 8, it is the 3rd example structure schematic diagram of the code device of the video data that the embodiment of the present invention provides.Code device described by the embodiment of the present invention, comprising:
Acquisition module 10, for obtaining the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information.
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information.
In specific implementation, the specific implementation process of above-mentioned acquisition module 10 see the implementation described by the step S101 of the first embodiment of the coding method of above-mentioned video data, can not repeat them here.
Pretreatment module 22, described appointed information for obtaining at described acquisition module meets when starting pending frame described in the process of Multi-encoding mode pre-conditioned, respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, wherein, described first coded system and described second coded system are different coded systems.
In specific implementation, above-mentioned pretreatment module 22 can perform the implementation performed by pretreatment module 21 in the second embodiment of pretreatment module 20 in the first embodiment of above-mentioned code device and above-mentioned code device, further, also following operation can be performed:
In the execution mode that some are feasible, above-mentioned pretreatment module 22, specifically for:
According to described first coded system, the first video quality process is carried out to obtain video data when expending prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described first coded system comprises the first quality index of the described video data that described first video quality process obtains;
According to described second coded system, the second video quality process is carried out to obtain video data when expending described prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described second coded system comprises the second quality index of the described video data that described second video quality process obtains.
Processing module 32, for the pre-processed results of described first coded system according to described pretreatment module process and the pre-processed results of described second coded system, select target coded system from described first coded system and described second coded system, and according to described target code mode, described pending frame is encoded.
In specific implementation, the processing module 32 described in the embodiment of the present invention can perform the processing module 30 in the first embodiment of above-mentioned code device and the implementation performed by processing module 31 in the second embodiment, further, also can perform following operation:
In the execution mode that some are feasible, above-mentioned processing module 32, specifically for:
Judge that whether described first quality index that described pretreatment module process obtains is higher than described second quality index, if the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
In the execution mode that some are feasible, above-mentioned processing module 32 also can be specifically for:
Obtain described first coding data amount size and the second amount of coded data size of described pretreatment module process, and described first quality index and described second quality index;
Judge the ratio of described first quality index and described first coding data amount size, whether higher than the ratio of described second quality index and described second amount of coded data size;
If the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
In the execution mode that some are feasible, above-mentioned processing module 32 also can be specifically for:
Judge that whether described pending frame is the frame of video in monitor video data or feature video data;
If the determination result is YES, then described first quality index of described pretreatment module process and described second quality index is obtained;
Judging that whether described first quality index is higher than described second quality index, if the determination result is YES, is then target code mode by described first coding mode selection.
In the execution mode that some are feasible, the code device described in the embodiment of the present invention also comprises mark module 40, above-mentioned mark module 40 for:
Adopt the mode of index to mark described target code mode, the identification information obtaining described target code mode is encoded to the index information of described target code mode, and described identification information is passed to decoding end with the form of code stream; Or
Adopt the physical quantity characterizing time-domain information to mark to described target code mode the identification information obtaining described target code mode, and the identification information of described target code mode is passed to decoding end as control information;
Wherein, the physical quantity of described sign time-domain information comprises: image display information or timestamp.
In the execution mode that some are feasible, the code device described in the embodiment of the present invention also comprises:
Reference frame judge module 50, for judging whether the described target code mode that described processing module is selected is video encoding standard technology, if described target code mode is described video encoding standard technology, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
In specific implementation, the code device that the embodiment of the present invention provides specifically can be the executive agent of the coding method of the video data that the embodiment of the present invention provides, the i.e. coding side described in embodiment of the coding method of video data that provides of the embodiment of the present invention, in specific implementation, code device (comprises acquisition module 10 by its built-in modules, pretreatment module 22, processing module 32, mark module 40 and reference frame judge module 50) perform the first embodiment of the coding method of above-mentioned video data and the implementation described in the second embodiment, specific implementation process can see the implementation in the first embodiment of the coding method of above-mentioned video data and the second embodiment described by each step, do not repeat them here.
Code device can judge whether to adopt Multi-encoding mode to process the pending frame in pending video according to the frame per second of pending video data or the information such as time complexity, space complexity in embodiments of the present invention, or treats processed frame according to the general coded system of video encoding and decoding standard defined and process.If the appointed information such as the frame per second of pending video data or time complexity meet pre-conditioned, the pending frame that the first coded system and the second coded system then can be adopted to treat respectively in processing video data carries out preliminary treatment, and then can determine to select concrete any coded system to be that pending frame is encoded according to the pre-processed results of above-mentioned first coded system and the second coded system.After code device select target coded system, target code mode can be informed to decoding device according to appointed information send mode, treat processing video data for the decoding process that decoding device is corresponding according to target code mode and carry out decoding process, decoding device, without the need to judging voluntarily, can improve the accuracy of decoding device to the judgement of coded system.Code device also can be corresponding according to the pending frame generated in advance reference frame lists, treat processed frame according to target code mode and encode, improve the coded video quality of pending video, enhance the Consumer's Experience of video data process.
See Fig. 9, it is the example structure schematic diagram of the decoding device of the video data that the embodiment of the present invention provides.Decoding device described by the embodiment of the present invention, comprising:
Acquisition module 60, for obtaining the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information.
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information.
Determination module 70, described appointed information for obtaining at described acquisition module meets when starting pending frame described in the process of target decoder mode pre-conditioned, the identification information carried in code stream information according to described pending frame, determines the target decoder mode of described pending frame.
Processing module 80, the described target decoder mode for determining according to described determination module determines the supplementary of decoding to described pending frame, according to described target decoder mode and the described pending frame of described supplementary decoding.
In the execution mode that some are feasible, above-mentionedly designate the information as frame per second information;
Above-mentioned determination module 70, specifically for:
Judge whether the frame per second indicated by described frame per second information is greater than default frame per second threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of target decoder mode.
In the execution mode that some are feasible, above-mentionedly designate the information as time complexity information;
Above-mentioned determination module 70, specifically for:
Judge whether the time complexity indicated by described time complexity information is greater than default time complexity threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of target decoder mode.
In the execution mode that some are feasible, above-mentionedly designate the information as spatial complexity information;
Above-mentioned determination module 70, specifically for:
Judge whether the space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of target decoder mode.
In the execution mode that some are feasible, above-mentioned determination module 70 specifically for:
The code stream information of described pending frame is decoded, obtains the index information for target-marking coded system carried in described code stream information, determine described target code mode according to described index information;
According to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode of described pending frame in conjunction with described target code mode.
In the execution mode that some are feasible, above-mentioned determination module 70 specifically for:
The code stream information of described pending frame is decoded, obtains the identification information carried in described code stream information and whether comprise image display information or timestamp;
If comprise image display information or timestamp in described identification information, then determine that described target code mode is described video encoding standard technology, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that described video encoding standard technology is corresponding;
If there is no image display information or timestamp in described identification information, then determine that described target code mode is switch technology or described resolution zoom technology in described frame rate, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that in described frame rate, switch technology is corresponding, or the target decoder mode that described resolution zoom technology is corresponding.
In the execution mode that some are feasible, above-mentioned processing module 80, specifically for:
When the described target decoder mode that described determination module is determined is decoding process corresponding to described video encoding standard technology, obtain the supplementary of decoding to described pending frame, described supplementary is the residual error data information and control head information that described pending frame is corresponding; Or
When the described target decoder mode that described determination module is determined is the decoding process that in frame rate, switch technology is corresponding, obtain the supplementary of decoding to described pending frame, described supplementary is empty;
When the described target decoder mode that described determination module is determined is decoding process corresponding to resolution zoom technology, obtain the supplementary of decoding to described pending frame, described supplementary is that described pending frame carries out residual error data information corresponding to convergent-divergent process and control head information.
In the execution mode that some are feasible, the decoding device (as Figure 10) described in the embodiment of the present invention also comprises:
Reference frame judge module 90, for judging that whether described target decoder mode that described determination module determines is decoding process corresponding to described video encoding standard technology;
If the described target decoder mode decoding process that to be described video encoding standard technology corresponding, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
In specific implementation, the executive agent of the coding/decoding method of the video data that the decoding device that the embodiment of the present invention provides provides for the embodiment of the present invention, the i.e. decoding end described in embodiment of the coding/decoding method of video data that provides of the embodiment of the present invention.Decoding device by can acquisition module, determination module, processing module and reference frame judge module etc. perform the coding/decoding method of the video data that the embodiment of the present invention provides embodiment described in implementation, specific implementation process see the embodiment of the coding/decoding method of above-mentioned video data, can not repeat them here.
In embodiments of the present invention, according to pending video data, decoding device can determine that the decoding process specified in startup video encoding and decoding standard is treated processing video data and decoded, the target decoder mode that processing video data carries out encoding treated by the identification information determination code device that also can send according to code device, and then treats processed frame according to target decoder mode and decode.Decoding device, without the need to determining decoding process voluntarily according to Adaptive Criterion, decreases the erroneous judgement of the coded system of pending video data encoding, enhances the accuracy of pending frame video data decoding, improves the quality of video data decoding.
See Figure 11, be the example structure schematic diagram of the coding/decoding system of the video data that the embodiment of the present invention provides, comprise: the code device 1000 that the embodiment of the present invention provides and decoding device 2000.
In specific implementation, the specific implementation process of above-mentioned encoding apparatus and decoding apparatus see the implementation described by each step of each embodiment above-mentioned, can not repeat them here.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.
Claims (41)
1. a coding method for video data, is characterized in that, comprising:
Obtain the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information;
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information;
If described appointed information meets start the pre-conditioned of pending frame described in the process of Multi-encoding mode, then respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, wherein, described first coded system and described second coded system are different coded systems;
According to the pre-processed results of described first coded system and the pre-processed results of described second coded system, select target coded system from described first coded system and described second coded system, and according to described target code mode, described pending frame is encoded.
2. the method for claim 1, is characterized in that, described in designate the information as frame per second information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup Multi-encoding mode, comprising:
Frame per second indicated by described frame per second information is greater than default frame per second threshold value.
3. the method for claim 1, is characterized in that, described in designate the information as time complexity information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup Multi-encoding mode, comprising:
Time complexity indicated by described time complexity information is greater than default time complexity threshold value.
4. the method for claim 1, is characterized in that, described in designate the information as spatial complexity information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup Multi-encoding mode, comprising:
Space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold.
5. the method as described in any one of claim 1-4, is characterized in that, describedly carries out preliminary treatment to described pending frame respectively according to the first coded system and the second coded system, comprising:
According to described first coded system, the first video quality process is carried out to obtain the video data meeting designated quality index to described pending frame, wherein, the pre-processed results of described first coded system comprises the first coding data amount size spent by described first video quality process;
According to described second coded system, the second video quality process is carried out to obtain the video data meeting described designated quality index to described pending frame, wherein, the pre-processed results of described second coded system comprises the second amount of coded data size spent by described second video quality process.
6. method as claimed in claim 5, it is characterized in that, the pre-processed results of the described pre-processed results according to described first coded system and described second coded system, select target coded system from described first coded system and described second coded system, comprising:
Judge whether described first coding data amount size is less than described second amount of coded data size, if the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
7. the method as described in any one of claim 1-4, is characterized in that, describedly carries out preliminary treatment to described pending frame respectively according to the first coded system and the second coded system, comprising:
According to described first coded system, the first video quality process is carried out to obtain video data when expending prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described first coded system comprises the first quality index of the described video data that described first video quality process obtains;
According to described second coded system, the second video quality process is carried out to obtain video data when expending described prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described second coded system comprises the second quality index of the described video data that described second video quality process obtains.
8. method as claimed in claim 7, it is characterized in that, the pre-processed results of the described pre-processed results according to described first coded system and described second coded system, select target coded system from described first coded system and described second coded system, comprising:
Judging that whether described first quality index is higher than described second quality index, if the determination result is YES, is then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
9. the method as described in claim 5 and 7, it is characterized in that, the pre-processed results of the described pre-processed results according to described first coded system and described second coded system, select target coded system from described first coded system and described second coded system, comprising:
Obtain described first coding data amount size and the second amount of coded data size, and described first quality index and described second quality index;
Judge the ratio of described first quality index and described first coding data amount size, whether higher than the ratio of described second quality index and described second amount of coded data size;
If the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
10. method as claimed in claim 7, it is characterized in that, the pre-processed results of the described pre-processed results according to described first coded system and described second coded system, select target coded system from described first coded system and described second coded system, comprising:
Judge that whether described pending frame is the frame of video in monitor video data or feature video data;
If the determination result is YES, then described first quality index and described second quality index is obtained;
Judging that whether described first quality index is higher than described second quality index, if the determination result is YES, is then target code mode by described first coding mode selection.
11. the method for claim 1, is characterized in that, described from described first coded system and described second coded system after select target coded system, described method also comprises:
Adopt the mode of index to mark described target code mode, the identification information obtaining described target code mode is encoded to the index information of described target code mode, and described identification information is passed to decoding end with the form of code stream; Or
Adopt the physical quantity characterizing time-domain information to mark to described target code mode the identification information obtaining described target code mode, and the identification information of described target code mode is passed to decoding end as control information;
Wherein, the physical quantity of described sign time-domain information comprises: image display information or timestamp.
12. methods as claimed in claim 11, is characterized in that, described according to described target code mode described pending frame encoded after, described method also comprises:
Judge whether described target code mode is video encoding standard technology;
If described target code mode is described video encoding standard technology, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
The coding/decoding method of 13. 1 kinds of video datas, is characterized in that, comprising:
Obtain the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information;
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information;
If described appointed information meets start the pre-conditioned of pending frame described in the process of target decoder mode, then the identification information carried in the code stream information according to described pending frame, determines the target decoder mode of described pending frame;
The supplementary that described pending frame is decoded is determined, according to described target decoder mode and the described pending frame of described supplementary decoding according to described target decoder mode.
14. methods as claimed in claim 13, is characterized in that, described in designate the information as frame per second information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup target decoder mode, comprising:
Frame per second indicated by described frame per second information is greater than default frame per second threshold value.
15. methods as claimed in claim 13, is characterized in that, described in designate the information as time complexity information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup target decoder mode, comprising:
Time complexity indicated by described time complexity information is greater than default time complexity threshold value.
16. methods as claimed in claim 13, is characterized in that, described in designate the information as spatial complexity information;
Described appointed information meets the pre-conditioned of pending frame described in the process of startup target decoder mode, comprising:
Space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold.
17. methods as described in any one of claim 13-16, is characterized in that the identification information carried in the described code stream information according to described pending frame is determined the target decoder mode of described pending frame, being comprised:
The code stream information of described pending frame is decoded, obtains the index information for target-marking coded system carried in described code stream information, determine described target code mode according to described index information;
According to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode of described pending frame in conjunction with described target code mode.
18. methods as described in any one of claim 13-16, is characterized in that the identification information carried in the described code stream information according to described pending frame is determined the target decoder mode of described pending frame, being comprised:
The code stream information of described pending frame is decoded, obtains the identification information carried in described code stream information and whether comprise image display information or timestamp;
If comprise image display information or timestamp in described identification information, then determine that described target code mode is described video encoding standard technology, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that described video encoding standard technology is corresponding;
If there is no image display information or timestamp in described identification information, then determine that described target code mode is switch technology or described resolution zoom technology in described frame rate, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that in described frame rate, switch technology is corresponding, or the target decoder mode that described resolution zoom technology is corresponding.
19. methods as described in claim 17 or 18, it is characterized in that, the described supplementary determining to decode to described pending frame according to described target decoder mode, comprising:
When described target decoder mode is decoding process corresponding to described video encoding standard technology, obtain the supplementary of decoding to described pending frame, described supplementary is the residual error data information and control head information that described pending frame is corresponding;
When described target decoder mode is the decoding process that in frame rate, switch technology is corresponding, obtain the supplementary of decoding to described pending frame, described supplementary is empty;
When described target decoder mode is decoding process corresponding to resolution zoom technology, obtain the supplementary of decoding to described pending frame, described supplementary is that described pending frame carries out residual error data information corresponding to convergent-divergent process and control head information.
20. methods as claimed in claim 19, it is characterized in that, the described supplementary determining that according to described target decoder mode described pending frame is decoded, after described target decoder mode and the described pending frame of described supplementary decoding, described method also comprises:
Judge that whether described target decoder mode is decoding process corresponding to described video encoding standard technology;
If the described target decoder mode decoding process that to be described video encoding standard technology corresponding, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
The code device of 21. 1 kinds of video datas, is characterized in that, comprising:
Acquisition module, for obtaining the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information;
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information;
Pretreatment module, described appointed information for obtaining at described acquisition module meets when starting pending frame described in the process of Multi-encoding mode pre-conditioned, respectively preliminary treatment is carried out to described pending frame according to the first coded system and the second coded system, wherein, described first coded system and described second coded system are different coded systems;
Processing module, for the pre-processed results of described first coded system according to described pretreatment module process and the pre-processed results of described second coded system, select target coded system from described first coded system and described second coded system, and according to described target code mode, described pending frame is encoded.
22. code devices as claimed in claim 21, is characterized in that, described in designate the information as frame per second information;
Described pretreatment module, specifically for:
Judge whether the frame per second indicated by described frame per second information is greater than default frame per second threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of Multi-encoding mode.
23. code devices as claimed in claim 21, is characterized in that, described in designate the information as time complexity information;
Described pretreatment module, specifically for:
Judge whether the time complexity indicated by described time complexity information is greater than default time complexity threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of Multi-encoding mode.
24. code devices as claimed in claim 21, is characterized in that, described in designate the information as spatial complexity information;
Described pretreatment module, specifically for:
Judge whether the space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of Multi-encoding mode.
25. code devices as described in any one of claim 21-24, is characterized in that, described pretreatment module, specifically for:
According to described first coded system, the first video quality process is carried out to obtain the video data meeting designated quality index to described pending frame, wherein, the pre-processed results of described first coded system comprises the first coding data amount size spent by described first video quality process;
According to described second coded system, the second video quality process is carried out to obtain the video data meeting described designated quality index to described pending frame, wherein, the pre-processed results of described second coded system comprises the second amount of coded data size spent by described second video quality process.
26. code devices as claimed in claim 25, is characterized in that, described processing module, specifically for:
Judge whether the described first coding data amount size that described pretreatment module process obtains is less than described second amount of coded data size, if the determination result is YES, be then target code mode by described first coding mode selection, if judged result is no, be then target code mode by described second coding mode selection.
27. code devices as described in any one of claim 21-24, is characterized in that, described pretreatment module, specifically for:
According to described first coded system, the first video quality process is carried out to obtain video data when expending prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described first coded system comprises the first quality index of the described video data that described first video quality process obtains;
According to described second coded system, the second video quality process is carried out to obtain video data when expending described prescribed coding data volume size to described pending frame, wherein, the pre-processed results of described second coded system comprises the second quality index of the described video data that described second video quality process obtains.
28. code devices as claimed in claim 27, is characterized in that, described processing module, specifically for:
Judge that whether described first quality index that described pretreatment module process obtains is higher than described second quality index, if the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
29. code devices as described in claim 25 and 27, is characterized in that, described processing module, specifically for:
Obtain described first coding data amount size and the second amount of coded data size of described pretreatment module process, and described first quality index and described second quality index;
Judge the ratio of described first quality index and described first coding data amount size, whether higher than the ratio of described second quality index and described second amount of coded data size;
If the determination result is YES, being then target code mode by described first coding mode selection, if judged result is no, is then target code mode by described second coding mode selection.
30. code devices as claimed in claim 27, is characterized in that, described processing module, specifically for:
Judge that whether described pending frame is the frame of video in monitor video data or feature video data;
If the determination result is YES, then described first quality index of described pretreatment module process and described second quality index is obtained;
Judging that whether described first quality index is higher than described second quality index, if the determination result is YES, is then target code mode by described first coding mode selection.
31. code devices as claimed in claim 21, it is characterized in that, described code device also comprises mark module, and described mark module is used for:
Adopt the mode of index to mark described target code mode, the identification information obtaining described target code mode is encoded to the index information of described target code mode, and described identification information is passed to decoding end with the form of code stream; Or
Adopt the physical quantity characterizing time-domain information to mark to described target code mode the identification information obtaining described target code mode, and the identification information of described target code mode is passed to decoding end as control information;
Wherein, the physical quantity of described sign time-domain information comprises: image display information or timestamp.
32. code devices as claimed in claim 31, it is characterized in that, described code device, also comprises:
Reference frame judge module, for judging whether the described target code mode that described processing module is selected is video encoding standard technology, if described target code mode is described video encoding standard technology, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
The decoding device of 33. 1 kinds of video datas, is characterized in that, comprising:
Acquisition module, for obtaining the appointed information of the pending frame in video data, described appointed information comprises: at least one in frame per second information, time complexity information and spatial complexity information;
Wherein, described time complexity information comprises: the length information of motion vector, or the index information of reference frame; Described spatial complexity information comprises: at least one in the excursion information of image chroma, image texture information and picture coding patterns information;
Determination module, described appointed information for obtaining at described acquisition module meets when starting pending frame described in the process of target decoder mode pre-conditioned, the identification information carried in code stream information according to described pending frame, determines the target decoder mode of described pending frame;
Processing module, the described target decoder mode for determining according to described determination module determines the supplementary of decoding to described pending frame, according to described target decoder mode and the described pending frame of described supplementary decoding.
34. decoding devices as claimed in claim 33, is characterized in that, described in designate the information as frame per second information;
Described determination module, specifically for:
Judge whether the frame per second indicated by described frame per second information is greater than default frame per second threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of target decoder mode.
35. decoding devices as claimed in claim 33, is characterized in that, described in designate the information as time complexity information;
Described determination module, specifically for:
Judge whether the time complexity indicated by described time complexity information is greater than default time complexity threshold value, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of target decoder mode.
36. decoding devices as claimed in claim 33, is characterized in that, described in designate the information as spatial complexity information;
Described determination module, specifically for:
Judge whether the space complexity indicated by described spatial complexity information is greater than pre-set space complexity threshold, if the determination result is YES, then determine that described appointed information meets and start the pre-conditioned of pending frame described in the process of target decoder mode.
37. decoding devices as described in any one of claim 33-36, is characterized in that, described determination module, specifically for:
The code stream information of described pending frame is decoded, obtains the index information for target-marking coded system carried in described code stream information, determine described target code mode according to described index information;
According to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode of described pending frame in conjunction with described target code mode.
38. decoding devices as described in any one of claim 33-36, is characterized in that, described determination module, specifically for:
The code stream information of described pending frame is decoded, obtains the identification information carried in described code stream information and whether comprise image display information or timestamp;
If comprise image display information or timestamp in described identification information, then determine that described target code mode is described video encoding standard technology, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that described video encoding standard technology is corresponding;
If there is no image display information or timestamp in described identification information, then determine that described target code mode is switch technology or described resolution zoom technology in described frame rate, and according to the coded system preset and the corresponding relation of decoding process, determine the target decoder mode that in described frame rate, switch technology is corresponding, or the target decoder mode that described resolution zoom technology is corresponding.
39. decoding devices as described in claim 37 or 38, is characterized in that, described processing module, specifically for:
When the described target decoder mode that described determination module is determined is decoding process corresponding to described video encoding standard technology, obtain the supplementary of decoding to described pending frame, described supplementary is the residual error data information and control head information that described pending frame is corresponding;
When the described target decoder mode that described determination module is determined is the decoding process that in frame rate, switch technology is corresponding, obtain the supplementary of decoding to described pending frame, described supplementary is empty;
When the described target decoder mode that described determination module is determined is decoding process corresponding to resolution zoom technology, obtain the supplementary of decoding to described pending frame, described supplementary is that described pending frame carries out residual error data information corresponding to convergent-divergent process and control head information.
40. decoding devices as claimed in claim 39, it is characterized in that, described decoding device also comprises:
Reference frame judge module, for judging that whether described target decoder mode that described determination module determines is decoding process corresponding to described video encoding standard technology;
If the described target decoder mode decoding process that to be described video encoding standard technology corresponding, then add described reference frame lists, to generate reference frame lists corresponding to next pending frame by processing the described pending frame obtained.
The coding/decoding system of 41. 1 kinds of video datas, is characterized in that, comprising: the code device as described in any one of claim 21-32, and the decoding device as described in any one of claim 33-40.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510180497.4A CN104811722B (en) | 2015-04-16 | 2015-04-16 | A kind of decoding method and device of video data |
PCT/CN2016/079034 WO2016165603A1 (en) | 2015-04-16 | 2016-04-12 | Encoding and decoding method and device for video data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510180497.4A CN104811722B (en) | 2015-04-16 | 2015-04-16 | A kind of decoding method and device of video data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104811722A true CN104811722A (en) | 2015-07-29 |
CN104811722B CN104811722B (en) | 2019-05-07 |
Family
ID=53696151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510180497.4A Active CN104811722B (en) | 2015-04-16 | 2015-04-16 | A kind of decoding method and device of video data |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104811722B (en) |
WO (1) | WO2016165603A1 (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105959700A (en) * | 2016-05-31 | 2016-09-21 | 腾讯科技(深圳)有限公司 | Video image coding method and device |
WO2016165603A1 (en) * | 2015-04-16 | 2016-10-20 | 华为技术有限公司 | Encoding and decoding method and device for video data |
CN107343208A (en) * | 2016-04-29 | 2017-11-10 | 掌赢信息科技(上海)有限公司 | One kind control video code rate method and electronic equipment |
CN107635142A (en) * | 2016-07-18 | 2018-01-26 | 浙江大学 | A kind of processing method and processing device of video data |
CN107682675A (en) * | 2017-10-19 | 2018-02-09 | 佛山市章扬科技有限公司 | A kind of method using a variety of compress mode recorded videos |
CN109688410A (en) * | 2017-10-18 | 2019-04-26 | 安讯士有限公司 | To support the method and encoder of the video code model encoded video stream of ancillary frame |
WO2019233144A1 (en) * | 2018-06-07 | 2019-12-12 | 阿里巴巴集团控股有限公司 | Method for decoding graphic code and client |
CN110740317A (en) * | 2019-09-18 | 2020-01-31 | 浙江大华技术股份有限公司 | Subblock motion prediction method, subblock motion encoding method, subblock motion encoder, and storage device |
CN111726616A (en) * | 2019-03-19 | 2020-09-29 | 华为技术有限公司 | Point cloud encoding method, point cloud decoding method, point cloud encoding device, point cloud decoding device, and storage medium |
CN114827723A (en) * | 2022-04-25 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Video processing method and device, electronic equipment and storage medium |
CN116233438A (en) * | 2023-03-09 | 2023-06-06 | 云贵亮 | Data prediction acquisition system using weighting algorithm |
WO2023241485A1 (en) * | 2022-06-16 | 2023-12-21 | 中兴通讯股份有限公司 | Video processing method, video sending end, video receiving end, storage medium and program product |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110139104B (en) * | 2018-02-09 | 2023-02-28 | 腾讯科技(深圳)有限公司 | Video decoding method, video decoding device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6845214B1 (en) * | 1999-07-13 | 2005-01-18 | Nec Corporation | Video apparatus and re-encoder therefor |
CN101018337A (en) * | 2006-02-10 | 2007-08-15 | 富士施乐株式会社 | Coding apparatus, decoding apparatus, coding method, decoding method and computer readable medium |
CN101615910A (en) * | 2009-05-31 | 2009-12-30 | 华为技术有限公司 | The method of compressed encoding, device and equipment and comprssing coding/decoding method |
CN104052992A (en) * | 2014-06-09 | 2014-09-17 | 联想(北京)有限公司 | Image processing method and electronic equipment |
CN104410861A (en) * | 2014-11-24 | 2015-03-11 | 华为技术有限公司 | Video encoding method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100952340B1 (en) * | 2008-01-24 | 2010-04-09 | 에스케이 텔레콤주식회사 | Method and Apparatus for Determing Encoding Mode by Using Temporal and Spartial Complexity |
CN103458237B (en) * | 2012-05-29 | 2016-09-21 | 北京数码视讯科技股份有限公司 | The determination method and apparatus of Video coding mode and method for video coding and device |
CN104519368B (en) * | 2013-09-30 | 2017-12-01 | 华为技术有限公司 | Image Coding, decoding and reconstituting processing method and processing device |
CN104811722B (en) * | 2015-04-16 | 2019-05-07 | 华为技术有限公司 | A kind of decoding method and device of video data |
-
2015
- 2015-04-16 CN CN201510180497.4A patent/CN104811722B/en active Active
-
2016
- 2016-04-12 WO PCT/CN2016/079034 patent/WO2016165603A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6845214B1 (en) * | 1999-07-13 | 2005-01-18 | Nec Corporation | Video apparatus and re-encoder therefor |
CN101018337A (en) * | 2006-02-10 | 2007-08-15 | 富士施乐株式会社 | Coding apparatus, decoding apparatus, coding method, decoding method and computer readable medium |
CN101615910A (en) * | 2009-05-31 | 2009-12-30 | 华为技术有限公司 | The method of compressed encoding, device and equipment and comprssing coding/decoding method |
CN104052992A (en) * | 2014-06-09 | 2014-09-17 | 联想(北京)有限公司 | Image processing method and electronic equipment |
CN104410861A (en) * | 2014-11-24 | 2015-03-11 | 华为技术有限公司 | Video encoding method and device |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016165603A1 (en) * | 2015-04-16 | 2016-10-20 | 华为技术有限公司 | Encoding and decoding method and device for video data |
CN107343208A (en) * | 2016-04-29 | 2017-11-10 | 掌赢信息科技(上海)有限公司 | One kind control video code rate method and electronic equipment |
CN107343208B (en) * | 2016-04-29 | 2019-10-11 | 掌赢信息科技(上海)有限公司 | A kind of control video code rate method and electronic equipment |
CN105959700A (en) * | 2016-05-31 | 2016-09-21 | 腾讯科技(深圳)有限公司 | Video image coding method and device |
CN107635142A (en) * | 2016-07-18 | 2018-01-26 | 浙江大学 | A kind of processing method and processing device of video data |
CN107635142B (en) * | 2016-07-18 | 2020-06-26 | 浙江大学 | Video data processing method and device |
CN109688410B (en) * | 2017-10-18 | 2021-01-29 | 安讯士有限公司 | Method and encoder for encoding a video stream in a video encoding format supporting auxiliary frames |
CN109688410A (en) * | 2017-10-18 | 2019-04-26 | 安讯士有限公司 | To support the method and encoder of the video code model encoded video stream of ancillary frame |
CN107682675A (en) * | 2017-10-19 | 2018-02-09 | 佛山市章扬科技有限公司 | A kind of method using a variety of compress mode recorded videos |
WO2019233144A1 (en) * | 2018-06-07 | 2019-12-12 | 阿里巴巴集团控股有限公司 | Method for decoding graphic code and client |
TWI759583B (en) * | 2018-06-07 | 2022-04-01 | 開曼群島商創新先進技術有限公司 | Decoding method of graphic code and user terminal for decoding graphic code |
CN111726616A (en) * | 2019-03-19 | 2020-09-29 | 华为技术有限公司 | Point cloud encoding method, point cloud decoding method, point cloud encoding device, point cloud decoding device, and storage medium |
CN111726616B (en) * | 2019-03-19 | 2024-03-01 | 华为技术有限公司 | Point cloud encoding method, point cloud decoding method, device and storage medium |
CN110740317B (en) * | 2019-09-18 | 2021-10-15 | 浙江大华技术股份有限公司 | Subblock motion prediction method, subblock motion encoding method, subblock motion encoder, and storage device |
CN110740317A (en) * | 2019-09-18 | 2020-01-31 | 浙江大华技术股份有限公司 | Subblock motion prediction method, subblock motion encoding method, subblock motion encoder, and storage device |
CN114827723A (en) * | 2022-04-25 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Video processing method and device, electronic equipment and storage medium |
CN114827723B (en) * | 2022-04-25 | 2024-04-09 | 阿里巴巴(中国)有限公司 | Video processing method, device, electronic equipment and storage medium |
WO2023241485A1 (en) * | 2022-06-16 | 2023-12-21 | 中兴通讯股份有限公司 | Video processing method, video sending end, video receiving end, storage medium and program product |
CN116233438A (en) * | 2023-03-09 | 2023-06-06 | 云贵亮 | Data prediction acquisition system using weighting algorithm |
CN116233438B (en) * | 2023-03-09 | 2023-08-29 | 上海华期信息技术有限责任公司 | Data prediction acquisition system using weighting algorithm |
Also Published As
Publication number | Publication date |
---|---|
CN104811722B (en) | 2019-05-07 |
WO2016165603A1 (en) | 2016-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104811722A (en) | Video data coding and decoding method and device | |
US10750169B2 (en) | Method and apparatus for intra chroma coding in image and video coding | |
JP7351463B2 (en) | Image encoding method and device, image decoding method and device, and program | |
CN105247863B (en) | Three-dimensional or multi-view video coding or decoded method | |
US20200059653A1 (en) | Video encoding and decoding method | |
EP2916543B1 (en) | Method for coding/decoding depth image and coding/decoding device | |
EP2168382B1 (en) | Method for processing images and the corresponding electronic device | |
CN104768011A (en) | Image encoding and decoding method and related device | |
EP2983365A1 (en) | Image prediction coding method and image coder | |
CN104429067B (en) | By predicting that the division of current block carries out method, coding/decoding method, coding and decoding device and its corresponding medium of Video coding | |
EP2304958B1 (en) | Methods and apparatus for texture compression using patch-based sampling texture synthesis | |
CN106878752B (en) | Encoding and decoding method and device for video coding mode | |
WO2017008679A1 (en) | Method and apparatus of advanced intra prediction for chroma components in video and image coding | |
US20200112737A1 (en) | Picture coding device, picture coding method, and picture coding program, and picture decoding device, picture decoding method, and picture decoding program | |
CN108600755B (en) | Image frame coding method and device | |
JP2019531031A (en) | Method and apparatus for encoding video | |
JP2023071920A (en) | Method for encoding and decoding images, encoding and decoding device, and corresponding computer programs | |
CN116016929A (en) | Intra-frame prediction encoding and decoding method, electronic device, and computer-readable storage medium | |
EP3509303A1 (en) | Interframe predictive coding method and device | |
CN112004114B (en) | Video processing method and device, readable storage medium and electronic equipment | |
CN110476422A (en) | Picture coding device, image encoding method and image encoding program, picture decoding apparatus, picture decoding method and image decoding program | |
US10827179B2 (en) | Method for coding and decoding image parameters, device for coding and decoding image parameters and computer programs corresponding thereto | |
CN101841701B (en) | Encoding and decoding method and device based on macroblock pair | |
CN110784719B (en) | Efficient encoding of video data in the presence of video annotations | |
CN117459732B (en) | Video encoding method, apparatus, device, readable storage medium, and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |