A kind of method for video coding and device
Technical field
The present invention relates to technical field of video processing, be specifically related to a kind of method for video coding and device.
Background technology
Along with the develop rapidly of computing technique and network technology, comprise digital television broadcasting, the video technique such as video communication and video monitoring is widely used.Video signal information amount is large, especially more prevalent HD video, brings immense pressure to transmission and storage.Address this problem and need video coding and decoding technology, removed the redundant information of data image signal sequence by encryption algorithm.But various noise can be introduced in the capture process of digital picture, affect video coding efficiency.In order to remove these noises, modern video is applied, and comprises supervisory control system, introduces signal processor (ISP, i.e. ImageSingalProcessor).Design good ISP module and contribute to filtering noise interference, improve the efficiency of video encoder codec, strengthen the subjective quality of encoded video.Signal processor ISP and video encoder codec lays particular emphasis on different targets, and general Video Applications system is tended to these two modules to isolate come, independent design function separately.But because signal processor ISP and video encoder codec are the modules be closely connected in a system, what during design, overall consideration existed therebetween influences each other, instead of carries out independent Functional Design respectively, can obtain better performance on the whole.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method for video coding and device.
First aspect, embodiments provides a kind of method for video coding, comprising:
Encoder obtains the first video information from video code flow, and this first video information is fed back to signal processor;
Signal processor carries out video frequency signal processing according to the first video information of encoder feedback.
Further, described method for video coding also comprises:
Signal processor provides the second video information according to the result of described video frequency signal processing to encoder;
The second video information that encoder provides according to signal processor carries out Video coding.
Second aspect, the embodiment of the present invention additionally provides a kind of video coding apparatus, comprises encoder and signal processor, wherein:
Described encoder comprises the first video information feedback unit, for obtaining the first video information from video code flow, and this first video information is fed back to signal processor;
Described signal processor comprises video signal processing unit, for carrying out video frequency signal processing according to the first video information of described first video information feedback unit feedback.
Further, described signal processor also comprises the second video information providing unit, and the result for the described video frequency signal processing according to described video signal processing unit provides the second video information to encoder;
Described encoder also comprises video encoding unit, carries out Video coding for the second video information provided according to described second video information providing unit.
The present invention proposes co-design signal processor ISP and video encoder codec in a Video Applications or system, namely between ISP and codec, phase mutual feedback is formed, overall performance is promoted by the feedback information that wherein a direction the opposing party provides, compared in prior art, independently Functional Design is carried out for the two, the present invention takes full advantage of the information of the opposing party, and overall performance is improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing the embodiment of the present invention is briefly described, 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 the content of the embodiment of the present invention and these accompanying drawings.
Fig. 1 is the method for video coding flow chart described in the specific embodiment of the invention one;
Fig. 2 is the method for video coding flow chart described in the specific embodiment of the invention two;
Fig. 3 is the structured flowchart of the video coding apparatus described in the specific embodiment of the invention three;
Fig. 4 is the structured flowchart of the video coding apparatus described in the specific embodiment of the invention four.
Embodiment
The technical problem solved for making the present invention, the technical scheme of employing and the technique effect that reaches are clearly, be described in further detail below in conjunction with the technical scheme of accompanying drawing to 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 skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Technical scheme of the present invention is further illustrated by embodiment below in conjunction with accompanying drawing.
Embodiment one
Fig. 1 is the method for video coding flow chart described in the present embodiment one.See as shown in Figure 1, the method for video coding described in the present embodiment comprises the steps:
S101, encoder obtain the first video information from video code flow, and this first video information is fed back to signal processor;
Comprise abundant video information in video code flow, wherein, movable information is video information the most frequently used in video processing procedure.The present embodiment is described for movable information, but be only exemplary herein, not limit the invention, those skilled in the art can understand, can select will extract which video information from video code flow according to the object of co-design encoder and signal processor or demand.
Movable information, such as, the information such as motion-vector magnitude, can some object or region are passed in time and occurred in reflecting video change in location.Described encoder obtains movable information as described first video information from video code flow, then this first video information obtained is fed back to signal processor.
S102, signal processor carry out video frequency signal processing according to the first video information of encoder feedback.
Signal processor such as, from the first video information, movable information described in encoder accepts, and then, signal processor just can perform video frequency signal processing operation according to the above-mentioned information of encoder feedback.Such as, signal processor can identify moving object in current video and static background according to the described movable information from encoder accepts.Like this, signal processor takes full advantage of from the information of encoder feedback to improve the processing capacity of self, the joint dysfunction achieving signal processor and encoder designs, relative in prior art, the two separately separately carries out for Functional Design, take into account that signal processor and encoder are potential to influence each other therebetween, and the function of signal processor that utilized this potential impact perfect, correspondingly improves entire system performance.
Embodiment two
Fig. 2 is the method for video coding flow chart described in the present embodiment, and as shown in Figure 2, the method for video coding described in the present embodiment comprises the following steps:
S201, encoder obtain the first video information from video code flow, and this first video information is fed back to signal processor;
S202, signal processor carry out video frequency signal processing according to the first video information of encoder feedback;
Step S201 and S202 are identical with S101 with S102 in embodiment one respectively, specifically see the description of embodiment one.
S203, signal processor provide the second video information according to the result of described video frequency signal processing to encoder;
Known based on description above, in step S202, signal processor such as, according to the first video information of encoder feedback, described movable information, identifies moving object and static background from current video.Further, there is difference in the reason producing noise due to moving object and static background part, and in order to improve overall signal to noise ratio, signal processor can adopt diverse ways to carry out noise reduction for the moving object identified and static background part respectively.Like this, for moving object and static background region noise behavior separately, implement noise reduction process targetedly, thus carry out unifying for noise reduction process as a large overall region relative to using moving object and static background region, the specific aim noise-reduction method described in the present embodiment can obtain better signal to noise ratio.After being like this, the vision signal of noise reduction is supplied to encoder as the second video information.
The second video information that S204, encoder provide according to signal processor carries out Video coding.
Owing to having carried out noise reduction process respectively to moving object region and static background region in step S203, encoder, by carrying out Video coding to the vision signal after this noise reduction, can obtain higher compression ratio and code efficiency.Alternatively, described step S203 and S204 can also adopt following manner to realize:
S203, signal processor provide the second video information according to the result of described video frequency signal processing to encoder;
From current video, moving object and static background is identified in step above; due to the difference between moving region and static region; usually can have different credit rating requirements to the two, and different credit rating requirements can make a significant impact on follow-up coding.Such as, in the process of the typical apply scene Car license recognition of video monitoring, usually not only license plate area is comprised in the original image photographed, also may comprise other things around car plate, and for this target of Car license recognition, can require that the fidelity of the license plate area after encoding is higher than other region, that is, requiring the credit rating of license plate area can higher than other region.Correspondingly, the quantization step of Video coding in the region that car plate is corresponding generally can be less than other region, and Data Rate Distribution then generally can higher than other region.Specific aim is had more in order to make follow-up video encoding operations, multiple different credit rating can be adopted respectively to identify for each several part of moving object or moving object and static background by signal processor herein, then this credit rating identification information is supplied to follow-up encoder as the second video information.
The second video information that S204, encoder provide according to signal processor carries out Video coding.
When the second video information that encoder accepts provides to described signal processor, namely after the different quality class letter information marked for moving object or moving object each several part and static background, encoder can be moving object or moving object each several part and static background is assigned targetedly, mutually different quantization step and code check according to different credit ratings, then carries out Video coding according to distributed quantization step and code check.By the method, under the prerequisite of credit rating taking into account moving region and static region, the size of Video coding can be reduced as much as possible, improve the efficiency of Video coding and meet the demand of Video Applications.After completing steps S204, can continue to be back to step S201 and continue next cycle for the treatment of, until all encoded.
Embodiment three
Fig. 3 is the structured flowchart of the video coding apparatus described in the present embodiment, as shown in Figure 3, video coding apparatus described in the present embodiment comprises: signal processor 301 and encoder 302, described encoder comprises the first video information feedback unit 3021, for obtaining the first video information from video code flow, and this first video information is fed back to signal processor 301; Described signal processor comprises video signal processing unit 3011, carries out video frequency signal processing for the first video information fed back according to described first video information feedback unit 3021.
Preferably, the first video information that described first video information feedback unit 3021 obtains from video code flow is movable information; The first video information that described video signal processing unit 3011 feeds back according to the first video information feedback unit 3021 carries out video frequency signal processing, comprising: according to the moving object in described movable information identification video and static background.
The video coding apparatus that the present embodiment provides can perform the method for video coding that the embodiment of the present invention one provides, and possesses the functional module corresponding to described method and beneficial effect.
Embodiment four
Fig. 4 is the structured flowchart of the video coding apparatus described in the present embodiment, as shown in Figure 4, video coding apparatus described in the present embodiment comprises: signal processor 401 and encoder 402, described encoder comprises the first video information feedback unit 4021, for obtaining the first video information from video code flow, and this first video information is fed back to signal processor 401; Described signal processor comprises video signal processing unit 4011, carries out video frequency signal processing for the first video information fed back according to described first video information feedback unit 4021; In addition, described signal processor also comprises the second video information providing unit 4012, and the result for the described video frequency signal processing according to described video signal processing unit 4011 provides the second video information to encoder; Described encoder also comprises video encoding unit 4022, carries out Video coding for the second video information provided according to described second video information providing unit 4012.
Preferably, the first video information that described first video information feedback unit 4021 obtains from video code flow is movable information; The first video information that described video signal processing unit 4011 feeds back according to the first video information feedback unit 4021 carries out video frequency signal processing, comprising: according to the moving object in described movable information identification video and static background.
Preferably, described second video information providing unit 4012 provides the second video information according to the result of the described video frequency signal processing of described video signal processing unit 4011 to encoder, comprise: the second video information providing unit 4012 adopts diverse ways to carry out noise reduction for moving object and static background respectively, and the vision signal after noise reduction is supplied to encoder as the second video information; The second video information that described video encoding unit 4022 provides according to the second video information providing unit 4012 carries out Video coding, comprising: video encoding unit 4022 carries out Video coding based on the vision signal after described noise reduction.
Alternatively, described second video information providing unit 4012 provides the second video information according to the result of the described video frequency signal processing of described video signal processing unit 4011 to encoder, comprise: the second video information providing unit 4012 adopts different credit ratings to identify for moving object or moving object each several part and static background respectively, and credit rating identification information is supplied to encoder as the second video information; The second video information that described video encoding unit 4022 provides according to the second video information providing unit 4012 carries out Video coding, comprise: video encoding unit 4022 distributes quantization step and code check according to described credit rating identification information, and carries out Video coding according to this quantization step and code check.
The video coding apparatus that the present embodiment provides can perform the method for video coding that the embodiment of the present invention three provides, and possesses the functional module corresponding to described method and beneficial effect.
All or part of content in the technical scheme that above embodiment provides can be realized by software programming or special hardware, and wherein software program is stored in the storage medium that can read, storage medium such as: the hard disk in computer, CD or floppy disk; Special hardware can be ASIC, FPGA, SoC or the IPCore with related circuit.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.