CN106791870B - A kind of method for video coding, video encoding/decoding method and relevant device - Google Patents
A kind of method for video coding, video encoding/decoding method and relevant device Download PDFInfo
- Publication number
- CN106791870B CN106791870B CN201611092531.3A CN201611092531A CN106791870B CN 106791870 B CN106791870 B CN 106791870B CN 201611092531 A CN201611092531 A CN 201611092531A CN 106791870 B CN106791870 B CN 106791870B
- Authority
- CN
- China
- Prior art keywords
- frame
- numerical value
- pseudorandom
- normal frames
- sequential hierarchy
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/44—Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
-
- 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/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N19/159—Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
-
- 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/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/172—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
-
- 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/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/177—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a group of pictures [GOP]
-
- 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/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The embodiment of the invention discloses a kind of method for video coding, video encoding/decoding method and relevant devices, wherein method includes: that encoder selects at least one inter-frame encoding frame in multiple inter-frame encoding frames of video data, to access frame as pseudorandom, corresponding sequential hierarchy numerical value is respectively set for each inter-frame encoding frame in the multiple intracoded frames and multiple inter-frame encoding frames in video data;The multiple inter-frame encoding frames for carrying sequential hierarchy numerical value include pseudorandom access frame and normal frames, and decoder is sent by the video data for carrying sequential hierarchy numerical value, so that decoder detect operation is played out to the target normal frames in video data when, according to before the corresponding sequential hierarchy numerical value of target normal frames and the decoding order in target normal frames and apart from the nearest corresponding sequential hierarchy numerical value of pseudorandom access frame, target normal frames are decoded.Using the present invention, the access efficiency of random access can be improved while improving video coding efficiency.
Description
Technical field
The present invention relates to video data processing technology field more particularly to a kind of method for video coding, video encoding/decoding method
And relevant device.
Background technique
In some monitor videos, it will usually have the region of a large amount of static or small movement, for the current of these regions
Video image, it is easy to find matched reference picture inside processed frame before before or even for a long time.Therefore, it is encoding
When device encodes these monitor videos, inter-frame encoding frame should be used as far as possible more, to reduce the use to intracoded frame,
So as to substantially reduce code rate to improve video coding efficiency.Wherein, the inter-frame encoding frame obtained coded by encoder can be with
Including P frame and B frame, i.e. P frame and B frame is all based on the generation of interframe compression algorithm, and P frame is specially forward-predictive-coded frames, B frame
Specially bi-directional predicted interpolation coding frame;Wherein, the intracoded frame obtained coded by encoder may include I frame, and I frame is base
It is generated in frame data compression algorithm, the frame that I frame specially completely encodes.
On the other hand, random access is an important need for the video code flow after coding.Current random access
Method is: first setting random access points, and the video codes that will carry random access points for the I frame in video code flow by encoder
Stream is sent to decoder, if decoder detect will from the target frame in received video code flow (target frame can be
Any one data frame in video code flow) position start play video, then decoder can in video code flow along with
The opposite direction search of decoding order is in front of target frame and the random access points (i.e. I frame) nearest from target frame, most from this
Close random access points start according to decoding order decoded data frame one by one, and until having decoded target frame, then decoder can will
Decoded target frame is sent to player to play out.It can be seen that if the I number of frames in video code flow is fewer,
It may cause that the nearest random access points are relatively more to the inter-frame encoding frame between target frame, i.e., decoder needs to spend more
Time can just decode target frame, to reduce the access efficiency of random access.
The prior art provides a kind of method of access efficiency for improving random access, by increasing I in video code flow
Number of frames improves the access efficiency of random access, but since I number of frames is more, can reduce video coding efficiency again at this time.
Summary of the invention
The embodiment of the present invention provides a kind of method for video coding, video encoding/decoding method and relevant device, can regard improving
While frequency code efficiency, the access efficiency of random access is improved.
First aspect present invention provides a kind of method for video coding, comprising:
Encoder selects at least one inter-frame encoding frame in multiple inter-frame encoding frames of video data, using as virtually with
Machine accesses frame;Inter-frame encoding frame in multiple inter-frame encoding frames other than pseudorandom accesses frame is normal frames;
It is respectively set pair for each inter-frame encoding frame in the multiple intracoded frames and multiple inter-frame encoding frames in video data
The sequential hierarchy numerical value answered;The multiple inter-frame encoding frames for carrying sequential hierarchy numerical value include pseudorandom access frame and normal frames;
Sequential hierarchy numerical value refers to the corresponding numerical value of sequential hierarchy code;
Decoder is sent by the video data for carrying sequential hierarchy numerical value, so that decoder is being detected to video data
In target normal frames when playing out operation, it is common according to the corresponding sequential hierarchy numerical value of target normal frames and in target
Before the decoding order of frame and apart from the nearest corresponding sequential hierarchy numerical value of pseudorandom access frame, from target normal frames
Decoding order before and apart from nearest intracoded frame start selection skip at least one inter-frame encoding frame, until having decoded
Target normal frames.
Since pseudorandom access frame is arranged by encoder and distributes different sequential hierarchy numerical value, can make to decode
Device skips a large amount of normal frames during being decoded to destination virtual random access frame from intracoded frame and/or pseudorandom connects
Enter frame, so Random Access compared with the prior art, which can effectively reduce, needs decoded number of frames, so as to have
Effect improves the access efficiency of random access, and the embodiment of the present invention does not need to increase the quantity of intracoded frame, so not
It will affect video coding efficiency.
In the first possible embodiment, encoder selects at least one in multiple inter-frame encoding frames of video data
A inter-frame encoding frame, using as pseudorandom access frame, have include:
Respectively in multiple inter-frame encoding frames in each picture group GOP, at interval of preset quantity or at interval of random number
A pseudorandom access frame is arranged in the inter-frame encoding frame of amount;
Wherein, frame, pseudorandom to be encoded are accessed using any one pseudorandom access frame as pseudorandom to be encoded
The reference frame of access frame include nearest intracoded frame or pseudorandom to be encoded access frame and nearest intracoded frame it
Between pseudorandom access frame;Nearest intracoded frame be in pseudorandom to be encoded access frame coded sequence before and
The intracoded frame nearest apart from pseudorandom to be encoded access frame;
Wherein, using any one normal frames as normal frames to be encoded, the reference frame of normal frames to be encoded includes nearest
Pseudorandom accesses the normal frames between frame or normal frames to be encoded and nearest pseudorandom access frame;Nearest pseudorandom
Before access frame is the coded sequence in normal frames to be encoded and the pseudorandom nearest apart from normal frames to be encoded accesses frame.
For example, the data frame in some GOP is IPPBPPPBPP (being herein decoding order), wherein I is I frame (i.e. first
A data frame), P is P frame, and B is B frame, can be by the 2nd if a pseudorandom, which is arranged, at interval of 3 data frames accesses frame
Data frame " P frame ", the 6th data frame " P frame " and the 10th data frame " P frame " be disposed as pseudorandom access frame, i.e., this 3
The reference frame of a pseudorandom access frame can be the ginseng of first data frame " I frame " or the 6th and the 10th data frame
Examining frame all can be respective previous pseudorandom access frame (reference frame of such as the 6th data frame is the 2nd data frame).For
The reference frame of remaining P frame (i.e. normal frames) of non-virtual random access frame can for the normal frames be located at the normal frames before and
(reference frame of such as the 5th data frame " P frame " is the 4th number to any one data frame between nearest pseudorandom access frame
According to frame " B frame "), or for before the normal frames and nearest pseudorandom accesses frame.The reference frame of B frame (i.e. normal frames)
Can be for the normal frames and before the normal frames and nearest pseudorandom accesses any two data frame between frame, or
Person is before the normal frames and nearest pseudorandom accesses frame and the normal frames and before the normal frames and most
(reference frame of such as the 4th data frame " B frame " includes the 2nd number to any one data frame between close pseudorandom access frame
According to frame " P frame " and the 3rd data frame " P frame ").Optionally, if some pseudorandom access frame is B frame, then the reference of the B frame
Frame may include be located at the B frame before and the I frame nearest apart from the B frame and be located at the B frame before and it is nearest apart from the B frame
Pseudorandom access frame.
With reference to first aspect or the first possible implementation of first aspect, in second of possible implementation
In, when being respectively set corresponding for each inter-frame encoding frame in the multiple intracoded frames and multiple inter-frame encoding frames in video data
Sequence level numerical value, comprising:
Respectively in each gop, the corresponding sequential hierarchy numerical value of each normal frames is disposed as the first numerical value, and will
Each intracoded frame and the corresponding sequential hierarchy numerical value of each pseudorandom access frame are disposed as second value;First number
Value is greater than second value.
This coding mode, can during shuffle, make decoder skip decoded I frame and destination virtual with
Machine accesses all normal frames between frame, needs decoded number of frames so as to effectively reduce, so as to effectively improve with
The access efficiency of machine access, and the embodiment of the present invention does not need to increase the quantity of intracoded frame, so will not influence view
Frequency code efficiency
With reference to first aspect or the first possible implementation of first aspect, in the third possible implementation
In, when being respectively set corresponding for each inter-frame encoding frame in the multiple intracoded frames and multiple inter-frame encoding frames in video data
Sequence level numerical value, comprising:
Respectively in each gop, pseudorandom is accessed into frame and normal frames is divided at least two frame groups;In each frame group
First frame be pseudorandom access frame, and each frame group separately include first frame in respective frame group to it is next virtually
All normal frames between random access frame;
In each gop, the pseudorandom access frame being located in frame group most preceding in GOP and each normal frames are respectively corresponded
Sequential hierarchy numerical value be disposed as where maximum sequential hierarchy numerical value in GOP, and from big to small according to sequential hierarchy numerical value
Sequence, the pseudorandom access frame and corresponding sequential hierarchy numerical value of each normal frames in each frame group is set one by one, until
The pseudorandom access frame and the corresponding sequential hierarchy numerical value of each normal frames that are located in frame group last in GOP are respectively provided with
For the minimum sequential hierarchy numerical value in the GOP of place;
Minimum timing where the corresponding sequential hierarchy numerical value of intracoded frame in each GOP is disposed as in GOP
Level numerical value.
This coding mode can make decoder after decoding I frame, skip the institute before destination virtual random access frame
There are normal frames and all pseudorandoms access frame, decoded number of frames is needed so as to effectively reduce, so as to effectively mention
The access efficiency of high random access, and the embodiment of the present invention does not need to increase the quantity of intracoded frame, so will not shadow
Ring video coding efficiency.
With reference to first aspect or the first possible implementation of first aspect, in the 4th kind of possible implementation
In, when being respectively set corresponding for each inter-frame encoding frame in the multiple intracoded frames and multiple inter-frame encoding frames in video data
Sequence level numerical value, comprising:
Respectively in each gop, where the corresponding sequential hierarchy numerical value of all normal frames being disposed as in GOP
Maximum sequential hierarchy numerical value;
Respectively in each gop, all pseudorandoms access frame is divided at least two pseudorandoms access frame group;Often
A pseudorandom access frame group contains at least two pseudorandom access frame, and per adjacent in each pseudorandom access frame group
There are at least one normal frames between two pseudorandom access frames;
In each gop, each pseudorandom access frame difference being located in pseudorandom access frame group most preceding in GOP
The second largest sequential hierarchy numerical value in GOP where corresponding sequential hierarchy numerical value is disposed as, and according to sequential hierarchy numerical value from
Small sequence is arrived greatly, and the corresponding sequential hierarchy of each pseudorandom access frame in each pseudorandom access frame group is set one by one
Numerical value, until the corresponding timing of each pseudorandom access frame that will be located in pseudorandom access frame group last in GOP
Minimum sequential hierarchy numerical value where level numerical value is disposed as in GOP;
Minimum timing layer where setting the corresponding sequential hierarchy numerical value of intracoded frame in each GOP in GOP
Secondary numerical value.
This coding mode can make decoder in the target normal frames on the position shuffle C1, can skip C1
All normal frames between destination virtual random access frame before position and on I frame and the position C2 that distance C1 is nearest, and jump
Cross sequential hierarchy numerical value between the I frame and the position C2 be greater than destination virtual random access frame sequential hierarchy numerical value it is virtual with
Machine accesses frame, needs decoded number of frames so as to effectively reduce, so as to effectively improve the access efficiency of random access,
And the embodiment of the present invention does not need to increase the quantity of intracoded frame, so will not influence video coding efficiency.
Second aspect of the present invention provides a kind of video encoding/decoding method, comprising:
Decoder receives the video data for the carrying sequential hierarchy numerical value that encoder is sent;Multiple interframe in video data
Coded frame includes the pseudorandom access frame gone out as selected by encoder in advance, in addition to pseudorandom connects in multiple inter-frame encoding frames
Entering the inter-frame encoding frame other than frame is normal frames;It is each in multiple intracoded frames and multiple inter-frame encoding frames in video data
Inter-frame encoding frame is respectively provided with corresponding sequential hierarchy numerical value;Sequential hierarchy numerical value refers to the corresponding numerical value of sequential hierarchy code;
When detect operation is played out to the target normal frames in video data when, search it is associated with target normal frames
Destination virtual random access frame and intracoded frame, and decode associated with target normal frames intracoded frame;
Decoding has the corresponding sequential hierarchy numerical value of destination virtual random access frame since decoded intracoded frame
Pseudorandom access frame, until having decoded destination virtual random access frame, then from decoded destination virtual random access frame
Start the normal frames that decoding has the corresponding sequential hierarchy numerical value of target normal frames, until having decoded target normal frames.
Due to accessing frame by setting pseudorandom and distributing different sequential hierarchy numerical value, decoder can be made from frame
Intra coded frame skips a large amount of normal frames and/or pseudorandom access frame during being decoded to destination virtual random access frame,
Decoded number of frames is needed so can effectively reduce, so as to effectively improve the access efficiency of random access, Er Qiewu
Additional intracoded frame need to be increased, so as to improve video coding efficiency simultaneously.
In the first possible implementation, operation is played out to the target normal frames in video data when detecting
When, destination virtual random access frame associated with target normal frames and intracoded frame are searched, and decode and target normal frames
Associated intracoded frame, specifically includes:
When detect operation is played out to the target normal frames in video data when, will be located at target normal frames decoding
Before sequence and the nearest pseudorandom of distance objective normal frames accesses frame, as destination virtual random access frame, and solves code bit
Before the decoding order of target normal frames and the nearest intracoded frame of distance objective normal frames.
In conjunction with the possible implementation of the first of second aspect or second aspect, second of possible realization side
The corresponding timing layer of each inter-frame encoding frame in formula, between decoded intracoded frame and destination virtual random access frame
Secondary numerical value is greater than or equal to the corresponding sequential hierarchy numerical value of destination virtual random access frame;
The sequential hierarchy numerical value of each normal frames between target normal frames and destination virtual random access frame is equal to target
The corresponding sequential hierarchy numerical value of normal frames.
In conjunction with second of possible implementation of second aspect, in the third possible implementation, after decoding
Intracoded frame start decoding have the corresponding sequential hierarchy numerical value of destination virtual random access frame pseudorandom access frame,
Until having decoded destination virtual random access frame, then decoding has target general since decoded destination virtual random access frame
The normal frames of the logical corresponding sequential hierarchy numerical value of frame, until having decoded target normal frames, comprising:
The corresponding sequential hierarchy numerical value of destination virtual random access frame is set by decoding conditional parameter, generates the first decoding
Condition;First decoding condition is that decoding sequential hierarchy numerical value is less than or equal to the corresponding sequential hierarchy of destination virtual random access frame
The frame of numerical value;
According to the first decoding condition, there is destination virtual according to decoding order decoding since decoded intracoded frame
The pseudorandom of the corresponding sequential hierarchy numerical value of random access frame accesses frame, and skip sequential hierarchy numerical value greater than destination virtual with
Machine accesses the pseudorandom access frame and/or normal frames of the corresponding sequential hierarchy numerical value of frame, random until having decoded destination virtual
Access frame;
Decoding conditional parameter is re-set as the corresponding sequential hierarchy numerical value of target normal frames, generates the second solution code-bar
Part;Second decoding condition is the frame for decoding sequential hierarchy numerical value and being less than or equal to the corresponding sequential hierarchy numerical value of target normal frames;
According to the second decoding condition, decoded one by one since decoded destination virtual random access frame according to decoding order
Normal frames with the corresponding sequential hierarchy numerical value of target normal frames, until having decoded target normal frames.
Third aspect present invention provides a kind of video coding apparatus, which, which has, realizes above-mentioned first party
The function of the method in face video coding apparatus behavior in practice.Function can also be executed by hardware realization by hardware
Corresponding software realization.Hardware or software include one or more modules corresponding with above-mentioned function.
It include encoder in the structure of video coding apparatus in a possible design, encoder is configured as supporting
Video coding apparatus executes corresponding function in the method for above-mentioned first aspect.Video coding apparatus can also include memory,
Memory saves the necessary program instruction of video coding apparatus and data for coupling with encoder.
Fourth aspect present invention provides a kind of video decoder, which, which has, realizes above-mentioned second party
The function of the method in face video decoder behavior in practice.Function can also be executed by hardware realization by hardware
Corresponding software realization.Hardware or software include one or more modules corresponding with above-mentioned function.
It include decoder in the structure of video decoder in a possible design, decoder is configured as supporting
Video decoder executes corresponding function in the method for above-mentioned second aspect.Video decoder can also include memory,
Memory saves the necessary program instruction of video decoder and data for coupling with decoder.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of method for video coding provided in an embodiment of the present invention;
Fig. 2 a is a kind of flow diagram of video coding-decoding method provided in an embodiment of the present invention;
Fig. 2 b is a kind of frame structure schematic diagram of video data provided in an embodiment of the present invention;
Fig. 3 a is the flow diagram of another video coding-decoding method provided in an embodiment of the present invention;
Fig. 3 b is the frame structure schematic diagram of another video data provided in an embodiment of the present invention;
Fig. 4 a is the flow diagram of another video coding-decoding method provided in an embodiment of the present invention;
Fig. 4 b is the frame structure schematic diagram of another video data provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of video coding apparatus provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of setup module provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of video decoder provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of second decoder module provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another video coding apparatus provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of another video decoder provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described with reference to the accompanying drawing.
It referring to Figure 1, is a kind of flow diagram of method for video coding provided in an embodiment of the present invention, the method tool
Body describes the process of Video coding, the method may include:
S101, encoder select at least one inter-frame encoding frame in multiple inter-frame encoding frames of video data, using as
Pseudorandom accesses frame;
Specifically, encoder can encode the video data got, it is the multiple to obtain multiple data frames
Data frame includes multiple intracoded frames and inter-frame encoding frame.For example, the encoder can be applied in video monitor, depending on
Frequency monitor by camera collection image data, video monitor can also by encoder to acquired image data into
For row coding to generate multiple data frames, the multiple data frame may include multiple intracoded frames and multiple inter-frame encoding frames,
If the multiple data frame is 100 data frames, wherein 2 data frames are the intracoded frame, and 98 data frames are interframe
Coded frame.The inter-frame encoding frame can be B frame or P frame, and the intracoded frame can be I frame, and I frame can be each GOP
First frame of (Group of Pictures, picture group).
The encoder by the video data encoding be multiple intracoded frames and multiple inter-frame encoding frames while,
At least one inter-frame encoding frame can be selected in the multiple inter-frame encoding frame, and at least one interframe described in selecting
Coded frame is to access frame as at least one pseudorandom, in addition to the pseudorandom accesses frame in the multiple inter-frame encoding frame
Inter-frame encoding frame in addition is normal frames.Wherein, select the detailed process of pseudorandom access frame can be with are as follows: the volume
Code device is respectively in multiple inter-frame encoding frames in each picture group GOP, at interval of preset quantity or at interval of random amount
A pseudorandom access frame is arranged in inter-frame encoding frame.Wherein, using any one pseudorandom access frame as to be encoded virtual
The reference frame of random access frame, the pseudorandom access frame to be encoded includes nearest intracoded frame or the void to be encoded
The pseudorandom that quasi-random accesses between frame and the nearest intracoded frame accesses frame;The nearest intracoded frame is
It is before coded sequence in the pseudorandom access frame to be encoded and nearest apart from the pseudorandom access frame to be encoded
Intracoded frame (in the video data each pseudorandom access frame reference frame can be arranged such);Wherein,
Using any one normal frames as normal frames to be encoded, the reference frame of the normal frames to be encoded includes that nearest pseudorandom connects
Enter the normal frames between frame or the normal frames to be encoded and the nearest pseudorandom access frame;It is described it is nearest it is virtual with
Before machine access frame is the coded sequence in the normal frames to be encoded and apart from nearest virtual of the normal frames to be encoded
Random access frame (reference frame of each normal frames in the video data can be arranged such).Therefore, the encoder
When encoding to video data, frame selection rule can be accessed according to preset pseudorandom (such as at interval of random amount
Inter-frame encoding frame the rule that one pseudorandom accesses frame is set) determine which frame to be encoded as pseudorandom access frame,
Which frame will be encoded as normal frames, and then access the corresponding reference frame selection rule of frame (as selected recently according to pseudorandom
Rule of the I frame as reference frame) the corresponding reference frame of selection, and according to selected reference frame to be arranged to virtually with
The frame of machine access frame is encoded, to guarantee that reference frame corresponding to the inter-frame encoding frame gone out selected by S101 can meet virtually
The corresponding reference frame of random access points.
For example, the data frame in some GOP is IPPBPPPBPP (being herein decoding order), wherein I is I frame (i.e. first
A data frame), P is P frame, and B is B frame, can be by the 2nd if a pseudorandom, which is arranged, at interval of 3 data frames accesses frame
Data frame " P frame ", the 6th data frame " P frame " and the 10th data frame " P frame " be disposed as pseudorandom access frame, i.e., this 3
The reference frame of a pseudorandom access frame can be the ginseng of first data frame " I frame " or the 6th and the 10th data frame
Examining frame all can be respective previous pseudorandom access frame (reference frame of such as the 6th data frame is the 2nd data frame).For
The reference frame of remaining P frame (i.e. normal frames) of non-virtual random access frame can for the normal frames be located at the normal frames before and
(reference frame of such as the 5th data frame " P frame " is the 4th number to any one data frame between nearest pseudorandom access frame
According to frame " B frame "), or for before the normal frames and nearest pseudorandom accesses frame.The reference frame of B frame (i.e. normal frames)
Can be for the normal frames and before the normal frames and nearest pseudorandom accesses any two data frame between frame, or
Person is before the normal frames and nearest pseudorandom accesses frame and the normal frames and before the normal frames and most
(reference frame of such as the 4th data frame " B frame " includes the 2nd number to any one data frame between close pseudorandom access frame
According to frame " P frame " and the 3rd data frame " P frame ").Optionally, if some pseudorandom access frame is B frame, then the reference of the B frame
Frame may include be located at the B frame before and the I frame nearest apart from the B frame and be located at the B frame before and it is nearest apart from the B frame
Pseudorandom access frame.
S102 is each interframe encode in the multiple intracoded frames and the multiple inter-frame encoding frame in the video data
Corresponding sequential hierarchy numerical value is respectively set in frame;It includes described virtual for carrying multiple inter-frame encoding frames of the sequential hierarchy numerical value
Random access frame and the normal frames;
Specifically, the encoder can be the multiple intracoded frames and the multiple interframe volume in the video data
Corresponding sequential hierarchy numerical value is respectively set in each inter-frame encoding frame in code frame;The sequential hierarchy numerical value refers to sequential hierarchy
The corresponding numerical value of (Temporal Layer) code.
Wherein, the detailed process that the sequential hierarchy numerical value is arranged can be with are as follows: respectively in each gop, will be each described general
The logical corresponding sequential hierarchy numerical value of frame is disposed as the first numerical value, and will each intracoded frame and it is each it is described virtually
The corresponding sequential hierarchy numerical value of random access frame is disposed as second value;First numerical value is greater than second number
Value.
Alternatively, the detailed process that the sequential hierarchy numerical value is arranged can be with are as follows: respectively in each gop, will it is described virtually
Random access frame and the normal frames are divided at least two frame groups;First frame in each frame group is that the pseudorandom connects
Enter frame, and each frame group separately includes first frame in respective frame group to the institute between next pseudorandom access frame
There are normal frames;The access frame of the pseudorandom in most preceding frame group will be located at and the corresponding sequential hierarchy numerical value of each normal frames is equal
Maximum sequential hierarchy numerical value where being set as in GOP, and the sequence according to the sequential hierarchy numerical value from big to small, set one by one
Pseudorandom access frame and the corresponding sequential hierarchy numerical value of each normal frames in each frame group are set, until last frame will be located at
When pseudorandom access frame and the corresponding sequential hierarchy numerical value of each normal frames in group are disposed as the minimum in the GOP of place
Sequence level numerical value;Minimum timing where setting the corresponding sequential hierarchy numerical value of intracoded frame in each GOP in GOP
Level numerical value.
Alternatively, the detailed process that the sequential hierarchy numerical value is arranged can be with are as follows: respectively in each gop, will it is all commonly
Maximum sequential hierarchy numerical value where the corresponding sequential hierarchy numerical value of frame is disposed as in GOP;Respectively in each gop,
All pseudorandoms access frame is divided at least two pseudorandoms access frame group;Each pseudorandom accesses frame group
At least two pseudorandoms access frame, and deposit between each adjacent two pseudorandom access frame in each pseudorandom access frame group
In at least one normal frames;When will be corresponding positioned at each pseudorandom access frame in most preceding pseudorandom access frame group
The second largest sequential hierarchy numerical value in GOP where sequence level numerical value is disposed as, and according to the sequential hierarchy numerical value from greatly to
The corresponding sequential hierarchy number of each pseudorandom access frame in each pseudorandom access frame group is arranged in small sequence one by one
Value, until the corresponding sequential hierarchy numerical value of each pseudorandom access frame that will be located in last pseudorandom access frame group
Minimum sequential hierarchy numerical value where being disposed as in GOP;By the corresponding sequential hierarchy numerical value of intracoded frame in each GOP
Minimum sequential hierarchy numerical value where being set as in GOP.
S103 sends decoder for the video data for carrying the sequential hierarchy numerical value, so that the decoder
Detect operation is played out to the target normal frames in the video data when, when corresponding according to the target normal frames
It is before sequence level numerical value and decoding order in the target normal frames and corresponding apart from nearest pseudorandom access frame
Sequential hierarchy numerical value, since in the target normal frames decoding order before and apart from nearest intracoded frame select
It selects and skips at least one inter-frame encoding frame, until having decoded the target normal frames;
Specifically, the video data for carrying the sequential hierarchy numerical value is sent decoder by the encoder, institute
Efficient random access, the decoder can be carried out to the video data for carrying the sequential hierarchy numerical value by stating decoder
Specific decoding process may refer to following Fig. 2 a- Fig. 2 b, Fig. 3 a- Fig. 3 b, Fig. 4 a- Fig. 4 b.
Further, then Fig. 2 a is referred to, is that a kind of process of video coding-decoding method provided in an embodiment of the present invention is shown
It is intended to, method shown in Fig. 2 a is the interaction diagrams of encoder and decoder, wherein S201-S203 step describes to compile
The cataloged procedure of code device, S204-S206 step describe the decoding process of decoder, the method may include:
S201, encoder select at least one inter-frame encoding frame in multiple inter-frame encoding frames of video data, using as
Pseudorandom accesses frame;
Specifically, the specific implementation of S201 step may refer to the S101 in above-mentioned Fig. 1 corresponding embodiment, here not
It is repeated again.
The corresponding sequential hierarchy numerical value of each normal frames is disposed as first respectively in each gop by S202
Numerical value, and each intracoded frame and the corresponding sequential hierarchy numerical value of each pseudorandom access frame are respectively provided with
For second value;First numerical value is greater than the second value;
Specifically, being a kind of frame structure signal of video data provided in an embodiment of the present invention again please also refer to Fig. 2 b
Figure, a GOP in Fig. 2 b include I frame and P frame, and the sequence of data frame from left to right is decoding order in Fig. 2 b, and each arrow
The frame in head left side is that the reference frame of the frame on the right side of corresponding arrow can set the sequential hierarchy numerical value of I frame in figure 2b
0 (the i.e. described second value), and 0 is set by the sequential hierarchy numerical value for accessing the P frame of frame for pseudorandom, these pseudorandoms
The reference frame of access frame is I before these pseudorandoms access frame and nearest apart from these pseudorandoms access frame
Frame, while also 1 (i.e. described first numerical value) will be disposed as the sequential hierarchy numerical value of the P frame of normal frames.Optionally, virtually with
Machine access in frame and normal frames be there may also be B frame the pseudorandom access frame of B frame reference frame can in this virtually
Frame is accessed before random access frame and apart from the nearest I frame of pseudorandom access frame and nearest pseudorandom, is B frame
The reference frame of normal frames can be the first two frames of the normal frames.
The video data for carrying the sequential hierarchy numerical value is sent decoder by S203;
S204, decoder receive the video data for the carrying sequential hierarchy numerical value that encoder is sent;
S205, when detect operation is played out to the target normal frames in the video data when, search with the mesh
The associated destination virtual random access frame of normal frames and intracoded frame are marked, and is decoded associated with the target normal frames
Intracoded frame;
Specifically, when user carries out shuffle operation to the video data, and click since some normal frames
When broadcasting, the decoder can determine that the normal frames are target normal frames, i.e., the described decoder can detecte to the view
Target normal frames of the frequency in carry out shuffle operation.Further, the decoder can be from the video data
The nearest pseudorandom of target normal frames described in the opposite direction detection range of decoding order accesses frame, using random as destination virtual
Access frame, and the nearest intraframe coding of destination virtual random access frame described in the opposite direction detection range from the decoding order
Frame, and decode the intracoded frame searched.If the reference frame of the destination virtual random access frame is to be searched for
The intracoded frame arrived, then the destination virtual random access frame can be completed to solve according to decoded intracoded frame
Code;If the reference frame of the destination virtual random access frame includes at least the destination virtual random access frame and is searched
Pseudorandom between the intracoded frame accesses frame, then, can be with after decoding the intracoded frame searched
Through following S206 step before decoding the destination virtual random access frame, destination virtual random access frame institute is decoded
The pseudorandom of reference accesses frame, and then the destination virtual random access can be completely decoded according to decoded reference frame
Frame.
S206, decoding has the corresponding timing of the destination virtual random access frame since decoded intracoded frame
The pseudorandom of level numerical value accesses frame, until having decoded the destination virtual random access frame, then empty from decoded target
Quasi-random access frame starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, until having decoded
State target normal frames;
Specifically, the decoder can will decoding conditional parameter to be set as the destination virtual random access frame corresponding
Sequential hierarchy numerical value (the i.e. described second value) generates the first decoding condition;The first decoding condition is only to decode timing layer
Secondary numerical value is less than or equal to the frame of the second value.The frame structure of the video data shown in Fig. 2 b is it is found that after the decoding
Intracoded frame and the destination virtual random access frame between the corresponding sequential hierarchy numerical value of each inter-frame encoding frame
Sequential hierarchy numerical value corresponding more than or equal to the destination virtual random access frame, so the decoder can be according to described
First decoding condition, has the destination virtual random since decoded intracoded frame according to decoding order decoding
The pseudorandom for accessing the corresponding sequential hierarchy numerical value of frame accesses frame, and skip sequential hierarchy numerical value greater than the destination virtual with
Machine accesses the normal frames of the corresponding sequential hierarchy numerical value of frame, until having decoded the destination virtual random access frame.The decoding
Decoding conditional parameter is re-set as the corresponding sequential hierarchy numerical value of the target normal frames (i.e. described first numerical value) again by device,
Generate the second decoding condition;The second decoding condition is that decoding sequential hierarchy numerical value is less than or equal to first numerical value
Frame;The frame structure of the video data shown in Fig. 2 b it is found that the target normal frames and the destination virtual random access frame it
Between the sequential hierarchy numerical value of each normal frames be equal to the corresponding sequential hierarchy numerical value of the target normal frames, so the decoding
Device can according to it is described second decoding condition, since decoded destination virtual random access frame according to the decoding order by
One decoding has the normal frames of the corresponding sequential hierarchy numerical value of the target normal frames, until having decoded the target normal frames,
Decoded target normal frames are sent to player to play out again.
For example, if the decoder can set 3 for the decoding conditional parameter, then according to HEVC (High
Efficiency Video Coding, video compression standard) the regulation decoder will only to decode sequential hierarchy numerical value small
In or equal to 3 data frame, it can skip sequential hierarchy numerical value be greater than 3 data frame.Again by taking above-mentioned Fig. 2 b as an example, in Fig. 2 b
In, if assuming, the normal frames (P frame) on the position A1 are target normal frames, and the decoder can be since the position A1 toward the left side
Direction parse NALU (Network Abstraction Layer-unit, network abstraction layer unit) head of each data frame one by one
The data frame is determined as mesh when the sequential hierarchy numerical value for going out corresponding data frame according to NALU infomation detections is 0 by information
The position marked pseudorandom access frame (P frame), and record the destination virtual random access frame is A2, while the decoder continues
The NALU head information for parsing the data frame on the position the A2 left side is I frame until going out corresponding data frame according to NALU infomation detections
When, stop parsing next NALU information, and set 0 for the decoding conditional parameter, and then the I frame (I can be decoded
Frame is the reference frame of destination virtual random access frame), and sequential hierarchy numerical value is decoded one by one according to decoding order since the I frame
Frame is accessed for 0 pseudorandom, when decoding the destination virtual random access frame on the recorded position A2, by the solution
Code conditional parameter is re-set as 1 (or numerical value greater than 1), and then can connect at random from the destination virtual on the position A2
Enter frame to start to decode the normal frames that sequential hierarchy numerical value is 1 one by one according to decoding order, until decoding the target on the position A1
Normal frames can start to play the corresponding image data of target normal frames.It can be seen that the P frame on the position shuffle A1
When, all normal frames between the P frame on the I frame and the position A2 of left end can be skipped, need to decode so as to effectively reduce
Number of frames, so as to effectively improve the access efficiency of random access, and the embodiment of the present invention does not need to increase in frame
The quantity of coded frame, so will not influence video coding efficiency.
The embodiment of the present invention in encoded multiple inter-frame encoding frames by selecting at least one inter-frame encoding frame to make
Frame is accessed for pseudorandom, and correspondence is respectively set to multiple intracoded frames, each pseudorandom access frame and each normal frames
Sequential hierarchy numerical value, can detect operation is played out to the target normal frames in the video data when, search with
The associated destination virtual random access frame of the target normal frames and intracoded frame, and decode and the target normal frames phase
Associated intracoded frame, then decoding has the destination virtual random access frame corresponding since decoded intracoded frame
Sequential hierarchy numerical value pseudorandom access frame, until having decoded the destination virtual random access frame, then from decoded
Destination virtual random access frame starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, until solution
The complete target normal frames of code.It, can be with due to accessing frame and the different sequential hierarchy numerical value of distribution by setting pseudorandom
A large amount of normal frames and/or virtual are skipped during so that decoder is decoded to destination virtual random access frame from intracoded frame
Random access frame, it is possible to effectively reduce and need decoded number of frames, so as to effectively improve the access effect of random access
Rate, and without additional intracoded frame is increased, so as to improve video coding efficiency simultaneously.
Fig. 3 a is referred to again, is the flow diagram of another video coding-decoding method provided in an embodiment of the present invention, figure
Method shown in 3a is the interaction diagrams of encoder and decoder, wherein S301-S304 step describes the volume of encoder
Code process, S305-S307 step describe the decoding process of decoder, the method may include:
S301, encoder select at least one inter-frame encoding frame in multiple inter-frame encoding frames of video data, using as
Pseudorandom accesses frame;
Wherein, the specific implementation of S301 step may refer to the S101 in above-mentioned Fig. 1 corresponding embodiment, here no longer
It is repeated.
The pseudorandom is accessed frame and the normal frames is divided at least two frames by S302 respectively in each gop
Group;First frame in each frame group is that the pseudorandom accesses frame, and each frame group separately includes the in respective frame group
One frame accesses all normal frames between frame to next pseudorandom;
S303 will be located at the access frame of the pseudorandom in frame group most preceding in GOP and each normal frames point in each gop
Maximum sequential hierarchy numerical value where not corresponding sequential hierarchy numerical value is disposed as in GOP, and according to the sequential hierarchy number
Pseudorandom access frame and the corresponding sequential hierarchy of each normal frames in each frame group is arranged in the sequence of value from big to small one by one
Numerical value, until the access frame of the pseudorandom in frame group last in GOP and the corresponding sequential hierarchy of each normal frames will be located at
Minimum sequential hierarchy numerical value where numerical value is disposed as in GOP;
S304, the minimum where the corresponding sequential hierarchy numerical value of intracoded frame in each GOP is disposed as in GOP
Sequential hierarchy numerical value;
Specifically, being the frame structure signal of another video data provided in an embodiment of the present invention please also refer to Fig. 3 b
Figure, a GOP in fig 3b include I frame, P frame and B frame, and the sequence of data frame from left to right is decoding order in Fig. 3 b,
And the frame on the left of each arrow is the reference frame of the frame on the right side of corresponding arrow, in fig 3b, can by a GOP in addition to I
All data frame dividings other than frame are 7 frame groups, and the number of data frames in each frame group can be identical, can not also be identical,
And the data frame in each frame group is continuous data frame;And in each adjacent two frame group, last in forward frame group
A frame is a upper frame for first frame in another frame group.In fig 3b, the encoder can will be in each frame group
First frame accesses frame as pseudorandom, and using the frame in each frame group other than first frame as normal frames, these
The reference frame of pseudorandom access frame is to access frame before these pseudorandoms access frame and apart from these pseudorandoms
Nearest I frame, is the P frame of non-virtual random access frame in the GOP and B frame is normal frames, is the reference frame of the normal frames of P frame
It is the reference frame of the normal frames of B frame is the first two frames of the normal frames for the previous frame of the normal frames.The encoder is into one
The sequential hierarchy numerical value of each frame in preceding frame group is disposed as 6 by step, and (6 be maximum sequential hierarchy numerical value in the GOP;
If only 5 frame groups, then maximum sequential hierarchy numerical value can be 4, i.e., respectively 4,3,2,1,0 five kind of timing in the GOP
Level numerical value), and the sequential hierarchy numerical value of each frame in the second forward frame group is disposed as 5, and so on, more rearward
The sequential hierarchy numerical value of each frame in frame group is lower, is respectively provided with until by the sequential hierarchy numerical value of each frame in the frame group after
For 0 (the smallest sequential hierarchy numerical value in the GOP), while the sequential hierarchy numerical value of I frame is also also configured as 0.Due to existing mark
Sequential hierarchy numerical value in standard at most only has 7 kinds, respectively 6,5,4,3,2,1,0, therefore, in the present embodiment, in a GOP
7 frame groups can only at most be marked off.
S305, decoder receive the video data for the carrying sequential hierarchy numerical value that encoder is sent;
S306, when detect operation is played out to the target normal frames in the video data when, search with the mesh
The associated destination virtual random access frame of normal frames and intracoded frame are marked, and is decoded associated with the target normal frames
Intracoded frame;
Wherein, the specific implementation of S306 step may refer to the S205 in above-mentioned Fig. 2 a corresponding embodiment, here not
It is repeated again.
S307, decoding has the corresponding timing of the destination virtual random access frame since decoded intracoded frame
The pseudorandom of level numerical value accesses frame, until having decoded the destination virtual random access frame, then empty from decoded target
Quasi-random access frame starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, until having decoded
State target normal frames;
Specifically, the decoder can will decoding conditional parameter to be set as the destination virtual random access frame corresponding
Sequential hierarchy numerical value generates the first decoding condition;The first decoding condition is that only decoding sequential hierarchy numerical value is less than or equal to
The frame of the corresponding sequential hierarchy numerical value of the destination virtual random access frame.The frame structure of the video data shown in Fig. 3 b can
Know, each inter-frame encoding frame between the decoded intracoded frame and the destination virtual random access frame is corresponding
Sequential hierarchy numerical value is all larger than the corresponding sequential hierarchy numerical value of the destination virtual random access frame, so the decoder can be with
According to the first decoding condition, there is the target according to decoding order decoding since decoded intracoded frame
Pseudorandom accesses pseudorandom access frame (first pseudorandom access frame decoded of the corresponding sequential hierarchy numerical value of frame
The as described destination virtual random access frame), and it is corresponding greater than the destination virtual random access frame to skip sequential hierarchy numerical value
Sequential hierarchy numerical value pseudorandom access frame and normal frames, until having decoded the destination virtual random access frame.It is described
Decoding conditional parameter is re-set as the corresponding sequential hierarchy numerical value of the target normal frames again by decoder, generates the second decoding
Condition;The second decoding condition is that decoding sequential hierarchy numerical value is less than or equal to the corresponding sequential hierarchy of the target normal frames
The frame of numerical value;The frame structure of the video data shown in Fig. 3 b is it is found that the target normal frames connect at random with the destination virtual
The sequential hierarchy numerical value for entering each normal frames between frame is equal to the corresponding sequential hierarchy numerical value of the target normal frames, so institute
Stating decoder can be according to the second decoding condition, according to the decoding since decoded destination virtual random access frame
Sequence decodes the normal frames with the corresponding sequential hierarchy numerical value of the target normal frames one by one, general until having decoded the target
Logical frame, then decoded target normal frames are sent to player to play out.
For example, the decoder can set 3 for the decoding conditional parameter, then according to the regulation solution of HEVC
Code device will only decode the data frame that sequential hierarchy numerical value is less than or equal to 3, it can skip the number that sequential hierarchy numerical value is greater than 3
According to frame.Again by taking above-mentioned Fig. 3 b as an example, in fig 3b, if assuming, the normal frames (P frame) on the position B1 are target normal frames, are decoded
Device can parse the NALU head information of data frame one by one to the left since the position B1, when corresponding out according to NALU infomation detections
When data frame is I frame, the decoder sets 0 for the decoding conditional parameter, and then can decode the I frame;Further,
The decoder sets 5 for the decoding conditional parameter again, and then can be since the frame group where the target normal frames
Decoding, i.e., after I frame decoding, skipped sequential hierarchy numerical value be 6 data frame, and directly decode the destination virtual on the position B2 with
Machine accesses frame, and continues to decode the normal frames on the right side of the position B2, and normal frames decoded are also in the target normal frames institute
Frame group in, when being decoded to the position B1, and having decoded the target normal frames on the position B1, that is, can play the target
The corresponding image data of normal frames.During decoding the target normal frames on the position B1, all timing can be skipped
The frame (skipping all frames entirely in preceding frame group) that level numerical value is 6, it is possible to it is decoded to effectively reduce needs
Number of frames, so as to effectively improve the access efficiency of random access, and the embodiment of the present invention is not needed to increase in frame and be compiled
The quantity of code frame, so will not influence video coding efficiency.It, can be in random access procedure in above-mentioned Fig. 2 a corresponding embodiment
After decoding I frame, all normal frames before the destination virtual random access frame are skipped, but still need to decode the target
Pseudorandom before pseudorandom accesses frame accesses frame;And in the random access procedure of Fig. 3 a corresponding embodiment, it can solve
After code I frame, all normal frames and all pseudorandoms before skipping the destination virtual random access frame access frame, thus may be used
See, if the quantity of the normal frames between each adjacent two pseudorandom access frame in Fig. 2 a corresponding embodiment is corresponding with Fig. 3 a real
The quantity for applying the normal frames between each adjacent two pseudorandom access frame in example is identical, then Fig. 3 a corresponding embodiment is random
Cut-in method can have the access efficiency of higher random access than the accidental access method of Fig. 2 a corresponding embodiment.
The embodiment of the present invention in encoded multiple inter-frame encoding frames by selecting at least one inter-frame encoding frame to make
Frame is accessed for pseudorandom, and correspondence is respectively set to multiple intracoded frames, each pseudorandom access frame and each normal frames
Sequential hierarchy numerical value, can detect operation is played out to the target normal frames in the video data when, search with
The associated destination virtual random access frame of the target normal frames and intracoded frame, and decode and the target normal frames phase
Associated intracoded frame, then decoding has the destination virtual random access frame corresponding since decoded intracoded frame
Sequential hierarchy numerical value pseudorandom access frame, until having decoded the destination virtual random access frame, then from decoded
Destination virtual random access frame starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, until solution
The complete target normal frames of code.It, can be with due to accessing frame and the different sequential hierarchy numerical value of distribution by setting pseudorandom
A large amount of normal frames and/or virtual are skipped during so that decoder is decoded to destination virtual random access frame from intracoded frame
Random access frame, it is possible to effectively reduce and need decoded number of frames, so as to effectively improve the access effect of random access
Rate, and without additional intracoded frame is increased, so as to improve video coding efficiency simultaneously.
Fig. 4 a is referred to again, is the flow diagram of another video coding-decoding method provided in an embodiment of the present invention, is schemed
Method shown in 4a is the interaction diagrams of encoder and decoder, wherein S401-S405 step describes the volume of encoder
Code process, S406-S408 step describe the decoding process of decoder, the method may include:
S401, encoder select at least one inter-frame encoding frame in multiple inter-frame encoding frames of video data, using as
Pseudorandom accesses frame;
Wherein, the specific implementation of S401 step may refer to the S101 in above-mentioned Fig. 1 corresponding embodiment, here no longer
It is repeated.
S402, respectively in each gop, where the corresponding sequential hierarchy numerical value of all normal frames is disposed as
Maximum sequential hierarchy numerical value in GOP;
All pseudorandoms access frame is divided at least two pseudorandoms access frame respectively in each gop by S403
Group;Each pseudorandom access frame group contains at least two pseudorandom access frame, and in each pseudorandom access frame group
There are at least one normal frames between each adjacent two pseudorandom access frame;
S404 in each gop accesses each pseudorandom being located in pseudorandom access frame group most preceding in GOP
The second largest sequential hierarchy numerical value where the corresponding sequential hierarchy numerical value of frame is disposed as in GOP, and according to the timing
The sequence of level numerical value from big to small, each pseudorandom access frame being arranged in each pseudorandom access frame group one by one respectively correspond
Sequential hierarchy numerical value, until each pseudorandom access frame difference in GOP in last pseudorandom access frame group will be located at
Minimum sequential hierarchy numerical value where corresponding sequential hierarchy numerical value is disposed as in GOP;
S405, when setting the minimum in the GOP of place for the corresponding sequential hierarchy numerical value of intracoded frame in each GOP
Sequence level numerical value;
Specifically, being the frame structure signal of another video data provided in an embodiment of the present invention please also refer to Fig. 4 b
Figure, a GOP in fig. 4b include I frame, P frame and B frame, and the sequence of data frame from left to right is decoding order in Fig. 4 b,
And the frame on the left of each arrow is the reference frame of the frame on the right side of corresponding arrow, in fig. 4b, encoder is by all normal frames
Sequential hierarchy numerical value is set as 6, and (6 be maximum sequential hierarchy numerical value in the GOP;If only 4 pseudorandoms access frame group, that
Maximum sequential hierarchy numerical value can be 4, i.e., respectively 4,3,2,1,0 five kind of sequential hierarchy numerical value in the GOP), it is P frame
The reference frame of normal frames is the former frame of the normal frames, and the reference frame for the normal frames of B frame is the front cross frame of the normal frames.
All pseudorandoms access frame in the GOP is divided into 6 pseudorandom access frame groups, each pseudorandom by the encoder
Pseudorandom (optionally, can also be accessed frame in other embodiments for 2 by the pseudorandom access number of frames accessed in frame group
Pseudorandom access number of frames in group is set as 2 or more), and two pseudorandoms in each pseudorandom access frame group
Accessing frame is that adjacent pseudorandom accesses frame, and the reference frame of each pseudorandom access frame is to connect in corresponding pseudorandom
The nearest I frame of frame is accessed before entering frame and apart from corresponding pseudorandom.The encoder further will be near preceding pseudorandom
The sequential hierarchy numerical value of each pseudorandom access frame in access frame group is disposed as 5 (the i.e. timing of Second Largest Value in the GOP
Level numerical value), and the sequential hierarchy numerical value of each pseudorandom access frame in the second forward pseudorandom access frame group is equal
4 are set as, and so on, the sequential hierarchy numerical value of each pseudorandom access frame in pseudorandom access frame group more rearward is more
It is small, until the sequential hierarchy numerical value of each pseudorandom access frame in the pseudorandom access frame group after is disposed as 0
(the smallest sequential hierarchy numerical value in the GOP), while 0 can also be set by the sequential hierarchy numerical value of I frame.Due to existing standard
In sequential hierarchy numerical value at most only have 7 kinds, respectively 6,5,4,3,2,1,0, therefore, in the present embodiment, in a GOP most
6 pseudorandom access frame groups can only mostly be marked off.
S406, decoder receive the video data for the carrying sequential hierarchy numerical value that encoder is sent;
S407, when detect operation is played out to the target normal frames in the video data when, search with the mesh
The associated destination virtual random access frame of normal frames and intracoded frame are marked, and is decoded associated with the target normal frames
Intracoded frame;
Wherein, the specific implementation of S407 step may refer to the S205 in above-mentioned Fig. 2 a corresponding embodiment, here not
It is repeated again.
S408, decoding has the corresponding timing of the destination virtual random access frame since decoded intracoded frame
The pseudorandom of level numerical value accesses frame, until having decoded the destination virtual random access frame, then empty from decoded target
Quasi-random access frame starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, until having decoded
State target normal frames;
Specifically, the decoder can will decoding conditional parameter to be set as the destination virtual random access frame corresponding
Sequential hierarchy numerical value generates the first decoding condition;The first decoding condition is that only decoding sequential hierarchy numerical value is less than or equal to
The frame of the corresponding sequential hierarchy numerical value of the destination virtual random access frame.The frame structure of the video data shown in Fig. 4 b can
Know, each inter-frame encoding frame between the decoded intracoded frame and the destination virtual random access frame is corresponding
Sequential hierarchy numerical value is greater than or equal to the corresponding sequential hierarchy numerical value of the destination virtual random access frame, so the decoder
It can be according to the first decoding condition, according to decoding order decoding with described since decoded intracoded frame
The pseudorandom of the corresponding sequential hierarchy numerical value of destination virtual random access frame accesses frame, and skips sequential hierarchy numerical value greater than institute
The pseudorandom access frame and normal frames of the corresponding sequential hierarchy numerical value of destination virtual random access frame are stated, it is described until having decoded
Destination virtual random access frame.The decoder again will decoding conditional parameter be re-set as the target normal frames it is corresponding when
Sequence level numerical value generates the second decoding condition;The second decoding condition is described in decoding sequential hierarchy numerical value is less than or equal to
The frame of the corresponding sequential hierarchy numerical value of target normal frames;The frame structure of the video data shown in Fig. 4 b is it is found that the target is general
The sequential hierarchy numerical value of each normal frames between logical frame and the destination virtual random access frame is equal to the target normal frames
Corresponding sequential hierarchy numerical value, so the decoder can be according to the second decoding condition, from decoded destination virtual
Random access frame starts to be decoded one by one according to the decoding order with the corresponding sequential hierarchy numerical value of the target normal frames
Normal frames are sent to player until having decoded the target normal frames, then by decoded target normal frames to play out.
For example, the decoder can set 3 for the decoding conditional parameter, then according to the regulation solution of HEVC
Code device will only decode the data frame that sequential hierarchy numerical value is less than or equal to 3, it can skip the number that sequential hierarchy numerical value is greater than 3
According to frame.Again by taking above-mentioned Fig. 4 b as an example, in fig. 4b, if assuming, the normal frames (P frame) on the position C1 are target normal frames, described
Decoder can the direction since the position C1 toward the left side parse the NALU head information of each data frame one by one, when according to NALU letters
When breath detects that the sequential hierarchy numerical value of corresponding data frame is not 6, which is determined as destination virtual random access frame
(P frame), and the position for recording the destination virtual random access frame is C2, while the decoder continues to parse the position the C2 left side
The NALU head information of data frame, until according to NALU infomation detections go out corresponding data frame be I frame when, stop parsing it is next
NALU information, and set 0 for the decoding conditional parameter, and then the I frame can be decoded (the I frame is that destination virtual is random
Access the reference frame of frame);The decoding conditional parameter is re-set as 5 again, and since the I frame according to decoding order one by one
It decodes the pseudorandom that sequential hierarchy numerical value is 5 and accesses frame, and skip the normal frames that sequential hierarchy numerical value is 6, until decoding
When destination virtual random access frame on the position C2 recorded, the decoding conditional parameter is re-set as 6, and then can be with
Decode one by one since the destination virtual random access frame on the position C2 according to decoding order sequential hierarchy numerical value be 6 it is common
Frame can start to play the corresponding image data of target normal frames until decoding the target normal frames on the position C1.Thus may be used
See, in the P frame on the position shuffle C1, can skip all common between the P frame on the I frame and the position C2 of left end
Frame needs decoded number of frames so as to effectively reduce, so as to effectively improve the access efficiency of random access, Er Qieben
Inventive embodiments do not need to increase the quantity of intracoded frame, so will not influence video coding efficiency.
Due at most there was only 7 mutually different sequential hierarchy numerical value, so working as the quantity of the data frame in a GOP very
When big, in each frame group (can only at most mark off 7 frame groups) in the accidental access method in above-mentioned Fig. 3 a corresponding embodiment
Data frame quantity it is still very much, therefore, when the target normal frames be some frame group in the last one frame when, still need
Decode a large amount of data frame.And the accidental access method in Fig. 4 a corresponding embodiment can by pseudorandom access frame be divided into it is more
A pseudorandom accesses frame group, and each pseudorandom access frame group may include therefore multiple pseudorandom access frames can subtract
Common number of frames between few each adjacent two pseudorandom access frame, and then can occur to avoid Fig. 3 a corresponding embodiment
Problem, it can be further reduced and need decoded data frame;And the accidental access method in Fig. 4 a corresponding embodiment can also
Frame is accessed to avoid needing to decode all pseudorandom between I frame and destination virtual random access frame, i.e., need to only be decoded and institute
The identical pseudorandom access frame of sequential hierarchy numerical value of destination virtual random access frame is stated, therefore, Fig. 4 a is corresponding to be implemented
The accidental access method of example is the compromise mode of the accidental access method of Fig. 2 a and Fig. 3 a corresponding embodiment.
The embodiment of the present invention in encoded multiple inter-frame encoding frames by selecting at least one inter-frame encoding frame to make
Frame is accessed for pseudorandom, and correspondence is respectively set to multiple intracoded frames, each pseudorandom access frame and each normal frames
Sequential hierarchy numerical value, can detect operation is played out to the target normal frames in the video data when, search with
The associated destination virtual random access frame of the target normal frames and intracoded frame, and decode and the target normal frames phase
Associated intracoded frame, then decoding has the destination virtual random access frame corresponding since decoded intracoded frame
Sequential hierarchy numerical value pseudorandom access frame, until having decoded the destination virtual random access frame, then from decoded
Destination virtual random access frame starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, until solution
The complete target normal frames of code.It, can be with due to accessing frame and the different sequential hierarchy numerical value of distribution by setting pseudorandom
A large amount of normal frames and/or virtual are skipped during so that decoder is decoded to destination virtual random access frame from intracoded frame
Random access frame, it is possible to effectively reduce and need decoded number of frames, so as to effectively improve the access effect of random access
Rate, and without additional intracoded frame is increased, so as to improve video coding efficiency simultaneously.
Fig. 5 is referred to, is a kind of structural schematic diagram of video coding apparatus 1 provided in an embodiment of the present invention, the video
Code device 1 may include: selecting module 10, setup module 20, sending module 30;
The selecting module 10, for selecting at least one interframe encode in multiple inter-frame encoding frames of video data
Frame, to access frame as pseudorandom;Interframe in the multiple inter-frame encoding frame other than the pseudorandom accesses frame
Coded frame is normal frames;
Specifically, the selecting module 10, specifically for multiple inter-frame encoding frames respectively in each picture group GOP
In, at interval of preset quantity or at interval of the inter-frame encoding frame of random amount, a pseudorandom access frame is set;Wherein, will
Any one pseudorandom accesses frame as pseudorandom to be encoded and accesses frame, the reference of the pseudorandom access frame to be encoded
Frame includes between nearest intracoded frame or the pseudorandom access frame to be encoded and the nearest intracoded frame
Pseudorandom accesses frame;The nearest intracoded frame be the coded sequence in the pseudorandom to be encoded access frame it
Preceding and nearest apart from the pseudorandom access frame to be encoded intracoded frame;Wherein, using any one normal frames as to
Normal frames are encoded, the reference frame of the normal frames to be encoded includes nearest pseudorandom access frame or the normal frames to be encoded
With the normal frames between the nearest pseudorandom access frame;The nearest pseudorandom access frame is in described wait compile
Before the coded sequence of code normal frames and the pseudorandom nearest apart from the normal frames to be encoded accesses frame.
The setup module 20, for for the multiple intracoded frames and the multiple interframe encode in the video data
Corresponding sequential hierarchy numerical value is respectively set in each inter-frame encoding frame in frame;Carry multiple interframe encodes of the sequential hierarchy numerical value
Frame includes the pseudorandom access frame and the normal frames;The sequential hierarchy numerical value refers to the corresponding number of sequential hierarchy code
Value;
The sending module 30, for sending decoder for the video data for carrying the sequential hierarchy numerical value,
So that the decoder detect operation is played out to the target normal frames in the video data when, according to the target
Before the corresponding sequential hierarchy numerical value of normal frames and decoding order in the target normal frames and apart from nearest virtual
The corresponding sequential hierarchy numerical value of random access frame, before the decoding order in the target normal frames and apart from nearest frame
Intra coded frame starts selection and skips at least one inter-frame encoding frame, until having decoded the target normal frames;
Wherein, the concrete function realization side of the selecting module 10, the setup module 20 and the sending module 30
Formula may refer to the S101-S103 in above-mentioned Fig. 1 corresponding embodiment, be not discussed here.
Further, the setup module 20 can be specifically used for respectively in each gop, by each normal frames point
Not corresponding sequential hierarchy numerical value is disposed as the first numerical value, and each intracoded frame and each pseudorandom are connect
Enter the corresponding sequential hierarchy numerical value of frame and is disposed as second value;First numerical value is greater than the second value.At this point,
The concrete function implementation of the setup module 20 may refer to the S202 in above-mentioned Fig. 2 a corresponding embodiment, here no longer into
Row repeats.
Further, then Fig. 6 is referred to, is a kind of structural schematic diagram of setup module 20 provided in an embodiment of the present invention,
The setup module 20 may include: first frame group division unit 201, the first encoding setting unit 202, the second encoding setting list
First 203, second frame group division unit 204;
The first frame group division unit 201, in each gop, the pseudorandom being accessed frame and institute respectively
It states normal frames and is divided at least two frame groups;First frame in each frame group is that the pseudorandom accesses frame, and each frame
Group separately includes first frame in respective frame group to all normal frames between next pseudorandom access frame;
The first encoding setting unit 202 is used in each gop, will be located at virtual in frame group most preceding in GOP
Maximum sequential hierarchy number where random access frame and the corresponding sequential hierarchy numerical value of each normal frames are disposed as in GOP
The pseudorandom access frame in each frame group and each is arranged in value, and the sequence according to the sequential hierarchy numerical value from big to small one by one
The corresponding sequential hierarchy numerical value of normal frames, until pseudorandom access frame in GOP in last frame group and each will be located at
Minimum sequential hierarchy numerical value where the corresponding sequential hierarchy numerical value of normal frames is disposed as in GOP;
The first encoding setting unit 202 is also used to the corresponding sequential hierarchy number of intracoded frame in each GOP
Minimum sequential hierarchy numerical value where value is disposed as in GOP.
The second encoding setting unit 203, in each gop for difference, when all normal frames are corresponding
Maximum sequential hierarchy numerical value where sequence level numerical value is disposed as in GOP;
The second frame group division unit 204, in each gop, all pseudorandoms access frame to be divided respectively
Frame group is accessed at least two pseudorandoms;Each pseudorandom access frame group contains at least two pseudorandom access frame,
And there are at least one normal frames between each adjacent two pseudorandom access frame in each pseudorandom access frame group;
The second encoding setting unit 203 is also used to that in each gop, the pseudorandom for being located at most preceding in GOP is connect
Enter the second largest timing in GOP where the corresponding sequential hierarchy numerical value of each pseudorandom access frame in frame group is disposed as
Level numerical value, and the sequence according to the sequential hierarchy numerical value from big to small are arranged one by one in each pseudorandom access frame group
Each pseudorandom accesses the corresponding sequential hierarchy numerical value of frame, until will be located at pseudorandom last in GOP accesses frame group
In the corresponding sequential hierarchy numerical value of each pseudorandom access frame be disposed as where minimum sequential hierarchy number in GOP
Value;
The second encoding setting unit 203 is also used to the corresponding sequential hierarchy number of intracoded frame in each GOP
Minimum sequential hierarchy numerical value where value is set as in GOP.
Wherein, the concrete function realization side of the first frame group division unit 201 and the first encoding setting unit 202
Formula may refer to the S302-S304 in above-mentioned Fig. 3 a corresponding embodiment, be not discussed here;The second encoding setting list
The concrete function implementation of member 203 and the second frame group division unit 204 may refer in above-mentioned Fig. 4 a corresponding embodiment
S402-S405, be not discussed here.
Wherein, when the first frame group division unit 201 and the first encoding setting unit 202 execute response operation
When, the second encoding setting unit 203 and the second frame group division unit 204 stop executing response operation, and described set
Module 20 is set also to stop executing the difference in each gop, the corresponding sequential hierarchy numerical value of each normal frames is equal
It is set as the first numerical value, and each intracoded frame and each pseudorandom are accessed into the corresponding sequential hierarchy of frame
Numerical value is disposed as the step of second value.
Wherein, when the second encoding setting unit 203 and the second frame group division unit 204 execute response operation
When, the first frame group division unit 201 and the first encoding setting unit 202 stop executing response operation, and described set
Module 20 is set also to stop executing the difference in each gop, the corresponding sequential hierarchy numerical value of each normal frames is equal
It is set as the first numerical value, and each intracoded frame and each pseudorandom are accessed into the corresponding sequential hierarchy of frame
Numerical value is disposed as the step of second value.
Wherein, if the setup module 20 executes the difference in each gop, each normal frames are corresponding
Sequential hierarchy numerical value is disposed as the first numerical value, and each intracoded frame and each pseudorandom access frame are distinguished
The step of corresponding sequential hierarchy numerical value is disposed as second value, then the second encoding setting unit 203, second frame
Group division unit 204, the first frame group division unit 201 and the first encoding setting unit 202 stop executing sound
It should operate.
Fig. 7 is referred to again, is a kind of structural schematic diagram of video decoder 2 provided in an embodiment of the present invention, the view
Frequency decoding apparatus 2 may include: receiving module 40, the first decoder module 50, the second decoder module 60;
The receiving module 40, the video data of the carrying sequential hierarchy numerical value for receiving encoder transmission;The view
Multiple inter-frame encoding frames of the frequency in include the pseudorandom access frame gone out as selected by the encoder in advance, the multiple
Inter-frame encoding frame in inter-frame encoding frame other than the pseudorandom accesses frame is normal frames;In the video data
Each inter-frame encoding frame is respectively provided with corresponding sequential hierarchy numerical value in multiple intracoded frames and the multiple inter-frame encoding frame;Institute
It states sequential hierarchy numerical value and refers to the corresponding numerical value of sequential hierarchy code;
First decoder module 50 plays out behaviour to the target normal frames in the video data for that ought detect
When making, search associated with target normal frames destination virtual random access frame and intracoded frame, and decoding with it is described
The associated intracoded frame of target normal frames;
Specifically, first decoder module 50 can be specifically for general to the target in the video data when detecting
When logical frame plays out operation, it is before and nearest apart from the target normal frames that the decoding order of the target normal frames will be located at
Pseudorandom access frame, as destination virtual random access frame, and decode be located at the target normal frames decoding order it
Preceding and nearest apart from target normal frames intracoded frame.
Wherein, the concrete function implementation of the receiving module 40 and first decoder module 50 may refer to above-mentioned
S204-S205 in Fig. 2 a corresponding embodiment, is not discussed here.
Second decoder module 60, for since decoded intracoded frame decoding have the destination virtual with
The pseudorandom that machine accesses the corresponding sequential hierarchy numerical value of frame accesses frame, until having decoded the destination virtual random access frame,
Then decoding has the corresponding sequential hierarchy numerical value of the target normal frames since decoded destination virtual random access frame
Normal frames, until having decoded the target normal frames;
Specifically, being a kind of structural representation of second decoder module 60 provided in an embodiment of the present invention please also refer to Fig. 8
Figure, second decoder module 60 may include: setting generation unit 601, target decoder unit 602;
The setting generation unit 601 is set as the destination virtual random access frame pair for that will decode conditional parameter
The sequential hierarchy numerical value answered generates the first decoding condition;The first decoding condition is that decoding sequential hierarchy numerical value is less than or waits
In the frame of the corresponding sequential hierarchy numerical value of the destination virtual random access frame;
The target decoder unit 602, for decoding condition according to described first, since decoded intracoded frame
According to decoding order decoding there is the pseudorandom of the corresponding sequential hierarchy numerical value of the destination virtual random access frame to connect
Enter frame, and skips the pseudorandom that sequential hierarchy numerical value is greater than the corresponding sequential hierarchy numerical value of the destination virtual random access frame
Frame and/or normal frames are accessed, until having decoded the destination virtual random access frame;
The setting generation unit 601 is also used to decode conditional parameter and is re-set as the target normal frames correspondence
Sequential hierarchy numerical value, generate second decoding condition;The second decoding condition is that decoding sequential hierarchy numerical value is less than or equal to
The frame of the corresponding sequential hierarchy numerical value of the target normal frames;
The target decoder unit 602 is also used to according to the second decoding condition, random from decoded destination virtual
Access frame starts to decode one by one according to the decoding order common with the corresponding sequential hierarchy numerical value of the target normal frames
Frame, until having decoded the target normal frames.
Wherein, the concrete function implementation of the setting generation unit 601 and the target decoder unit 602 can join
See the S206 in above-mentioned Fig. 2 a corresponding embodiment or the S307 in above-mentioned Fig. 3 a corresponding embodiment or the corresponding implementation of above-mentioned Fig. 4 a
S408 in example, is not discussed here.
The embodiment of the present invention in encoded multiple inter-frame encoding frames by selecting at least one inter-frame encoding frame to make
Frame is accessed for pseudorandom, and correspondence is respectively set to multiple intracoded frames, each pseudorandom access frame and each normal frames
Sequential hierarchy numerical value, can detect operation is played out to the target normal frames in the video data when, search with
The associated destination virtual random access frame of the target normal frames and intracoded frame, and decode and the target normal frames phase
Associated intracoded frame, then decoding has the destination virtual random access frame corresponding since decoded intracoded frame
Sequential hierarchy numerical value pseudorandom access frame, until having decoded the destination virtual random access frame, then from decoded
Destination virtual random access frame starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, until solution
The complete target normal frames of code.It, can be with due to accessing frame and the different sequential hierarchy numerical value of distribution by setting pseudorandom
A large amount of normal frames and/or virtual are skipped during so that decoder is decoded to destination virtual random access frame from intracoded frame
Random access frame, it is possible to effectively reduce and need decoded number of frames, so as to effectively improve the access effect of random access
Rate, and without additional intracoded frame is increased, so as to improve video coding efficiency simultaneously.
Fig. 9 is referred to, is the structural schematic diagram of another video coding apparatus 1000 provided in an embodiment of the present invention, it is described
Video coding apparatus 1000 may include processor 1001, communication interface 1002 and the (video coding apparatus 1000 of memory 1003
In the quantity of processor 1001 can be one or more, in Fig. 9 by taking a processor 1001 as an example).Of the invention is some
In embodiment, processor 1001, communication interface 1002 and memory 1003 can be connected by communication bus or other modes,
In, Fig. 9 by communication bus for being connected.
Wherein, the communication interface 1002, for being communicated with decoder;
The memory 1003 is for storing program;
The processor 1001 is for executing described program, to realize
At least one inter-frame encoding frame is selected in multiple inter-frame encoding frames of video data, to access as pseudorandom
Frame;Inter-frame encoding frame in the multiple inter-frame encoding frame other than the pseudorandom accesses frame is normal frames;
For each inter-frame encoding frame in the multiple intracoded frames and the multiple inter-frame encoding frame in the video data point
Corresponding sequential hierarchy numerical value is not set;The multiple inter-frame encoding frames for carrying the sequential hierarchy numerical value include the pseudorandom
Access frame and the normal frames;The sequential hierarchy numerical value refers to the corresponding numerical value of sequential hierarchy code;
Decoder is sent by the video data for carrying the sequential hierarchy numerical value, so that the decoder is detecting
To when playing out operation to the target normal frames in the video data, according to the corresponding sequential hierarchy of the target normal frames
Before numerical value and decoding order in the target normal frames and apart from the nearest corresponding timing of pseudorandom access frame
Level numerical value, since in the target normal frames decoding order before and apart from nearest intracoded frame select to skip
At least one inter-frame encoding frame, until having decoded the target normal frames.
Wherein, the processor 1001 selects at least one interframe in multiple inter-frame encoding frames of video data in execution
Coded frame has and is used for when accessing frame as pseudorandom:
Respectively in multiple inter-frame encoding frames in each picture group GOP, at interval of preset quantity or at interval of random number
A pseudorandom access frame is arranged in the inter-frame encoding frame of amount;
Wherein, frame is accessed using any one pseudorandom access frame as pseudorandom to be encoded, it is described to be encoded virtual
The reference frame of random access frame includes nearest intracoded frame or the pseudorandom access frame to be encoded and described nearest
Pseudorandom between intracoded frame accesses frame;The nearest intracoded frame is connect in the pseudorandom to be encoded
The nearest intracoded frame of frame is accessed before entering the coded sequence of frame and apart from the pseudorandom to be encoded;
Wherein, using any one normal frames as normal frames to be encoded, the reference frame of the normal frames to be encoded includes most
Normal frames between close pseudorandom access frame or the normal frames to be encoded and the nearest pseudorandom access frame;Institute
It states before nearest pseudorandom access frame is the coded sequence in the normal frames to be encoded and apart from described to be encoded general
The nearest pseudorandom of logical frame accesses frame.
Wherein, the processor 1001 is multiple intracoded frames and the multiple frame in the video data in execution
Between when corresponding sequential hierarchy numerical value is respectively set in each inter-frame encoding frame in coded frame, be specifically used for:
Respectively in each gop, the corresponding sequential hierarchy numerical value of each normal frames is disposed as the first numerical value,
And each intracoded frame and the corresponding sequential hierarchy numerical value of each pseudorandom access frame are disposed as the
Two numerical value;First numerical value is greater than the second value.
Wherein, the processor 1001 is multiple intracoded frames and the multiple frame in the video data in execution
Between when corresponding sequential hierarchy numerical value is respectively set in each inter-frame encoding frame in coded frame, be specifically used for:
Respectively in each gop, the pseudorandom is accessed into frame and the normal frames is divided at least two frame groups;Often
First frame in a frame group is that the pseudorandom accesses frame, and each frame group separately includes first frame in respective frame group
All normal frames between next pseudorandom access frame;
In each gop, the pseudorandom access frame being located in frame group most preceding in GOP and each normal frames are respectively corresponded
Sequential hierarchy numerical value be disposed as where maximum sequential hierarchy numerical value in GOP, and according to the sequential hierarchy numerical value from big
To small sequence, pseudorandom access frame and the corresponding sequential hierarchy numerical value of each normal frames in each frame group are set one by one,
Until will be located at, the pseudorandom in frame group last in GOP will access frame and the corresponding sequential hierarchy numerical value of each normal frames is equal
Minimum sequential hierarchy numerical value where being set as in GOP;
Minimum timing where the corresponding sequential hierarchy numerical value of intracoded frame in each GOP is disposed as in GOP
Level numerical value.
Wherein, the processor 1001 is multiple intracoded frames and the multiple frame in the video data in execution
Between when corresponding sequential hierarchy numerical value is respectively set in each inter-frame encoding frame in coded frame, be specifically used for:
Respectively in each gop, where the corresponding sequential hierarchy numerical value of all normal frames being disposed as in GOP
Maximum sequential hierarchy numerical value;
Respectively in each gop, all pseudorandoms access frame is divided at least two pseudorandoms access frame group;Often
A pseudorandom access frame group contains at least two pseudorandom access frame, and per adjacent in each pseudorandom access frame group
There are at least one normal frames between two pseudorandom access frames;
In each gop, each pseudorandom access frame difference being located in pseudorandom access frame group most preceding in GOP
The second largest sequential hierarchy numerical value where corresponding sequential hierarchy numerical value is disposed as in GOP, and according to the sequential hierarchy number
The corresponding timing of each pseudorandom access frame in each pseudorandom access frame group is arranged in the sequence of value from big to small one by one
Level numerical value, until each pseudorandom access frame that will be located in pseudorandom access frame group last in GOP is corresponding
Minimum sequential hierarchy numerical value where sequential hierarchy numerical value is disposed as in GOP;
Minimum timing layer where setting the corresponding sequential hierarchy numerical value of intracoded frame in each GOP in GOP
Secondary numerical value.
Referring to Figure 10, it is the structural schematic diagram of another video decoder 2000 provided in an embodiment of the present invention, institute
Stating video decoder 2000 may include 2003 (video decoder of processor 2001, communication interface 2002 and memory
The quantity of processor 2001 in 2000 can be to be one or more, in Figure 10 by taking a processor 2001 as an example).Of the invention
In some embodiments, processor 2001, communication interface 2002 and memory 2003 can be connected by communication bus or other modes,
Wherein, Figure 10 by communication bus for being connected.
Wherein, the communication interface 2002, for being communicated with encoder;
The memory 2003 is for storing program;
The processor 2001 is for executing described program, to realize
Receive the video data for the carrying sequential hierarchy numerical value that encoder is sent;Multiple interframe in the video data are compiled
Code frame includes the pseudorandom access frame gone out as selected by the encoder in advance, in addition to described in the multiple inter-frame encoding frame
The inter-frame encoding frame that pseudorandom accesses other than frame is normal frames;Multiple intracoded frames in the video data and described
Each inter-frame encoding frame is respectively provided with corresponding sequential hierarchy numerical value in multiple inter-frame encoding frames;When the sequential hierarchy numerical value refers to
The corresponding numerical value of sequence level code;
When detect operation is played out to the target normal frames in the video data when, search it is common with the target
The associated destination virtual random access frame of frame and intracoded frame, and decode in frame associated with the target normal frames and compile
Code frame;
Decoding has the corresponding sequential hierarchy of the destination virtual random access frame since decoded intracoded frame
The pseudorandom of numerical value accesses frame, until having decoded the destination virtual random access frame, then from decoded destination virtual with
Machine access frame starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, until having decoded the mesh
Mark normal frames.
Wherein, the processor 2001 ought be detected in execution and be played out to the target normal frames in the video data
When operation, destination virtual random access frame associated with the target normal frames and intracoded frame, and decoding and institute are searched
When stating the associated intracoded frame of target normal frames, it is specifically used for:
When detect operation is played out to the target normal frames in the video data when, will be located at the target it is common
Before the decoding order of frame and the pseudorandom nearest apart from the target normal frames accesses frame, as destination virtual random access
Frame, and decoding is located at before the decoding order of the target normal frames and the intraframe coding nearest apart from the target normal frames
Frame.
Wherein, each inter-frame encoding frame between the decoded intracoded frame and the destination virtual random access frame
Corresponding sequential hierarchy numerical value is greater than or equal to the corresponding sequential hierarchy numerical value of the destination virtual random access frame;
The sequential hierarchy numerical value of each normal frames between the target normal frames and the destination virtual random access frame is equal
Sequential hierarchy numerical value corresponding equal to the target normal frames.
Wherein, in execution, the decoding since decoded intracoded frame has the destination virtual to the processor 2001
The pseudorandom of the corresponding sequential hierarchy numerical value of random access frame accesses frame, until having decoded the destination virtual random access
Frame, then decoding has the corresponding sequential hierarchy numerical value of the target normal frames since decoded destination virtual random access frame
Normal frames be specifically used for when having decoded the target normal frames:
The corresponding sequential hierarchy numerical value of the destination virtual random access frame is set by decoding conditional parameter, generates first
Decoding condition;The first decoding condition is that decoding sequential hierarchy numerical value is less than or equal to the destination virtual random access frame pair
The frame for the sequential hierarchy numerical value answered;
According to the first decoding condition, have since decoded intracoded frame according to decoding order decoding
The pseudorandom of the corresponding sequential hierarchy numerical value of the destination virtual random access frame accesses frame, and it is big to skip sequential hierarchy numerical value
Frame and/or normal frames are accessed in the pseudorandom of the corresponding sequential hierarchy numerical value of the destination virtual random access frame, until solution
The complete destination virtual random access frame of code;
Decoding conditional parameter is re-set as the corresponding sequential hierarchy numerical value of the target normal frames, generates the second decoding
Condition;The second decoding condition is that decoding sequential hierarchy numerical value is less than or equal to the corresponding sequential hierarchy of the target normal frames
The frame of numerical value;
According to the second decoding condition, according to the decoding order since decoded destination virtual random access frame
Decoding has the normal frames of the corresponding sequential hierarchy numerical value of the target normal frames one by one, common until having decoded the target
Frame.
The embodiment of the present invention in encoded multiple inter-frame encoding frames by selecting at least one inter-frame encoding frame to make
Frame is accessed for pseudorandom, and correspondence is respectively set to multiple intracoded frames, each pseudorandom access frame and each normal frames
Sequential hierarchy numerical value, can detect operation is played out to the target normal frames in the video data when, search with
The associated destination virtual random access frame of the target normal frames and intracoded frame, and decode and the target normal frames phase
Associated intracoded frame, then decoding has the destination virtual random access frame corresponding since decoded intracoded frame
Sequential hierarchy numerical value pseudorandom access frame, until having decoded the destination virtual random access frame, then from decoded
Destination virtual random access frame starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, until solution
The complete target normal frames of code.It, can be with due to accessing frame and the different sequential hierarchy numerical value of distribution by setting pseudorandom
A large amount of normal frames and/or virtual are skipped during so that decoder is decoded to destination virtual random access frame from intracoded frame
Random access frame, it is possible to effectively reduce and need decoded number of frames, so as to effectively improve the access effect of random access
Rate, and without additional intracoded frame is increased, so as to improve video coding efficiency simultaneously.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (18)
1. a kind of method for video coding characterized by comprising
Encoder selects at least one inter-frame encoding frame in multiple inter-frame encoding frames of video data, to connect as pseudorandom
Enter frame;Inter-frame encoding frame in the multiple inter-frame encoding frame other than the pseudorandom accesses frame is normal frames;
It is set respectively for each inter-frame encoding frame in the multiple intracoded frames and the multiple inter-frame encoding frame in the video data
Set corresponding sequential hierarchy numerical value;The multiple inter-frame encoding frames for carrying the sequential hierarchy numerical value include the pseudorandom access
Frame and the normal frames;The sequential hierarchy numerical value refers to the corresponding numerical value of sequential hierarchy code;
Decoder is sent by the video data for carrying the sequential hierarchy numerical value, so that the decoder is detecting pair
When target normal frames in the video data play out operation, from the target normal frames decoding order before and
Apart from nearest intracoded frame start decode sequential hierarchy numerical value be less than or equal to destination virtual random access frame it is corresponding when
The frame of sequence level numerical value, until having decoded the destination virtual random access frame, the destination virtual random access frame is target
Frame is accessed before the decoding order of normal frames and apart from nearest pseudorandom;It is opened from decoded destination virtual random access frame
Begin to decode the normal frames with the corresponding sequential hierarchy numerical value of the target normal frames one by one according to the decoding order, until solution
The complete target normal frames of code.
2. the method as described in claim 1, which is characterized in that the encoder is in multiple inter-frame encoding frames of video data
At least one inter-frame encoding frame is selected, includes: to have as pseudorandom access frame
Respectively in multiple inter-frame encoding frames in each picture group GOP, at interval of preset quantity or at interval of random amount
A pseudorandom access frame is arranged in inter-frame encoding frame;
Wherein, frame, the pseudorandom to be encoded are accessed using any one pseudorandom access frame as pseudorandom to be encoded
The reference frame of access frame includes in nearest intracoded frame or the pseudorandom access frame to be encoded and the nearest frame
Pseudorandom between coded frame accesses frame;The nearest intracoded frame is in the pseudorandom access frame to be encoded
Coded sequence before and the intracoded frame nearest apart from the pseudorandom to be encoded access frame;
Wherein, using any one normal frames as normal frames to be encoded, the reference frame of the normal frames to be encoded includes nearest
Pseudorandom accesses the normal frames between frame or the normal frames to be encoded and the nearest pseudorandom access frame;It is described most
Before close pseudorandom access frame is the coded sequence in the normal frames to be encoded and apart from the normal frames to be encoded
Nearest pseudorandom accesses frame.
3. method according to claim 1 or 2, which is characterized in that multiple intraframe codings in the video data
Corresponding sequential hierarchy numerical value is respectively set in each inter-frame encoding frame in frame and the multiple inter-frame encoding frame, comprising:
Respectively in each gop, the corresponding sequential hierarchy numerical value of each normal frames is disposed as the first numerical value, and will
Each intracoded frame and the corresponding sequential hierarchy numerical value of each pseudorandom access frame are disposed as the second number
Value;First numerical value is greater than the second value.
4. method according to claim 1 or 2, which is characterized in that multiple intraframe codings in the video data
Corresponding sequential hierarchy numerical value is respectively set in each inter-frame encoding frame in frame and the multiple inter-frame encoding frame, comprising:
Respectively in each gop, the pseudorandom is accessed into frame and the normal frames is divided at least two frame groups;Each frame
First frame in group is that the pseudorandom accesses frame, and each frame group separately includes first frame in respective frame group and arrives down
All normal frames between one pseudorandom access frame;
In each gop, when will be located at the access frame of the pseudorandom in frame group most preceding in GOP and corresponding each normal frames
Maximum sequential hierarchy numerical value where sequence level numerical value is disposed as in GOP, and from big to small according to the sequential hierarchy numerical value
Sequence, the pseudorandom access frame and corresponding sequential hierarchy numerical value of each normal frames in each frame group is set one by one, until
The pseudorandom access frame and the corresponding sequential hierarchy numerical value of each normal frames that are located in frame group last in GOP are respectively provided with
For the minimum sequential hierarchy numerical value in the GOP of place;
Minimum sequential hierarchy where the corresponding sequential hierarchy numerical value of intracoded frame in each GOP is disposed as in GOP
Numerical value.
5. method according to claim 1 or 2, which is characterized in that multiple intraframe codings in the video data
Corresponding sequential hierarchy numerical value is respectively set in each inter-frame encoding frame in frame and the multiple inter-frame encoding frame, comprising:
Respectively in each gop, the maximum where the corresponding sequential hierarchy numerical value of all normal frames being disposed as in GOP
Sequential hierarchy numerical value;
Respectively in each gop, all pseudorandoms access frame is divided at least two pseudorandoms access frame group;Each void
Quasi-random access frame group contains at least two pseudorandom access frame, and each adjacent two in each pseudorandom access frame group
There are at least one normal frames between pseudorandom access frame;
In each gop, each pseudorandom access frame being located in pseudorandom access frame group most preceding in GOP is respectively corresponded
Sequential hierarchy numerical value be disposed as where the second largest sequential hierarchy numerical value in GOP, and according to the sequential hierarchy numerical value from
Small sequence is arrived greatly, and the corresponding sequential hierarchy of each pseudorandom access frame in each pseudorandom access frame group is set one by one
Numerical value, until the corresponding timing of each pseudorandom access frame that will be located in pseudorandom access frame group last in GOP
Minimum sequential hierarchy numerical value where level numerical value is disposed as in GOP;
Minimum sequential hierarchy number where setting the corresponding sequential hierarchy numerical value of intracoded frame in each GOP in GOP
Value.
6. a kind of video encoding/decoding method characterized by comprising
Decoder receives the video data for the carrying sequential hierarchy numerical value that encoder is sent;Multiple interframe in the video data
Coded frame includes the pseudorandom access frame gone out as selected by the encoder in advance, in addition to institute in the multiple inter-frame encoding frame
The inter-frame encoding frame stated other than pseudorandom access frame is normal frames;Multiple intracoded frames and institute in the video data
It states each inter-frame encoding frame in multiple inter-frame encoding frames and is respectively provided with corresponding sequential hierarchy numerical value;The sequential hierarchy numerical value refers to
The corresponding numerical value of sequential hierarchy code;
When detect operation is played out to the target normal frames in the video data when, search and the target normal frames phase
Associated destination virtual random access frame and intracoded frame, and decode intraframe coding associated with the target normal frames
Frame;
Decoding has the corresponding sequential hierarchy numerical value of the destination virtual random access frame since decoded intracoded frame
Pseudorandom access frame then connect at random from decoded destination virtual until having decoded the destination virtual random access frame
Enter frame and starts the normal frames that decoding has the corresponding sequential hierarchy numerical value of the target normal frames, it is general until having decoded the target
Logical frame, wherein the destination virtual random access frame be target normal frames decoding order before and apart from it is nearest it is virtual with
Machine accesses frame.
7. method as claimed in claim 6, which is characterized in that described common to the target in the video data when detecting
When frame plays out operation, destination virtual random access frame associated with the target normal frames and intracoded frame are searched,
And intracoded frame associated with the target normal frames is decoded, it specifically includes:
When detect operation is played out to the target normal frames in the video data when, the target normal frames will be located at
Before decoding order and the pseudorandom nearest apart from the target normal frames accesses frame, as destination virtual random access frame,
And decoding is located at before the decoding order of the target normal frames and the intracoded frame nearest apart from the target normal frames.
8. method according to claim 6 or 7, which is characterized in that
Each inter-frame encoding frame between the decoded intracoded frame and the destination virtual random access frame respectively corresponds
Sequential hierarchy numerical value be greater than or equal to the corresponding sequential hierarchy numerical value of the destination virtual random access frame;
The sequential hierarchy numerical value of each normal frames between the target normal frames and the destination virtual random access frame is equal to
The corresponding sequential hierarchy numerical value of the target normal frames.
9. method according to claim 8, which is characterized in that the decoding since decoded intracoded frame has institute
The pseudorandom access frame for stating the corresponding sequential hierarchy numerical value of destination virtual random access frame, until having decoded the destination virtual
Random access frame, then decoding has the corresponding timing of the target normal frames since decoded destination virtual random access frame
The normal frames of level numerical value, until having decoded the target normal frames, comprising:
The corresponding sequential hierarchy numerical value of the destination virtual random access frame is set by decoding conditional parameter, generates the first decoding
Condition;The first decoding condition is that decoding sequential hierarchy numerical value is corresponding less than or equal to the destination virtual random access frame
The frame of sequential hierarchy numerical value;
According to the first decoding condition, according to decoding order decoding with described since decoded intracoded frame
The pseudorandom of the corresponding sequential hierarchy numerical value of destination virtual random access frame accesses frame, and skips sequential hierarchy numerical value greater than institute
The pseudorandom access frame and/or normal frames for stating the corresponding sequential hierarchy numerical value of destination virtual random access frame, until having decoded
The destination virtual random access frame;
Decoding conditional parameter is re-set as the corresponding sequential hierarchy numerical value of the target normal frames, generates the second solution code-bar
Part;The second decoding condition is that decoding sequential hierarchy numerical value is less than or equal to the corresponding sequential hierarchy number of the target normal frames
The frame of value;
According to the second decoding condition, since decoded destination virtual random access frame one by one according to the decoding order
The normal frames with the corresponding sequential hierarchy numerical value of the target normal frames are decoded, until having decoded the target normal frames.
10. a kind of video coding apparatus characterized by comprising
Selecting module, for selecting at least one inter-frame encoding frame in multiple inter-frame encoding frames of video data, using as void
Quasi-random accesses frame;Inter-frame encoding frame in the multiple inter-frame encoding frame other than the pseudorandom accesses frame is general
Logical frame;
Setup module, for for each interframe in the multiple intracoded frames and the multiple inter-frame encoding frame in the video data
Corresponding sequential hierarchy numerical value is respectively set in coded frame;It includes described for carrying multiple inter-frame encoding frames of the sequential hierarchy numerical value
Pseudorandom accesses frame and the normal frames;The sequential hierarchy numerical value refers to the corresponding numerical value of sequential hierarchy code;
Sending module, for sending decoder for the video data for carrying the sequential hierarchy numerical value, so that the solution
Code device detect operation is played out to the target normal frames in the video data when, from the target normal frames
It is random less than or equal to destination virtual to start decoding sequential hierarchy numerical value before decoding order and apart from nearest intracoded frame
The frame for accessing the corresponding sequential hierarchy numerical value of frame, until having decoded the destination virtual random access frame, the destination virtual with
Frame is accessed before machine accesses the decoding order that frame is target normal frames and apart from nearest pseudorandom, it is empty from decoded target
Quasi-random access frame, which starts to decode one by one according to the decoding order, has the corresponding sequential hierarchy numerical value of the target normal frames
Normal frames, until having decoded the target normal frames.
11. device as claimed in claim 10, which is characterized in that
The selecting module, specifically for respectively in multiple inter-frame encoding frames in each picture group GOP, at interval of present count
Amount or inter-frame encoding frame at interval of random amount, are arranged pseudorandom access frame;
Wherein, frame, the pseudorandom to be encoded are accessed using any one pseudorandom access frame as pseudorandom to be encoded
The reference frame of access frame includes in nearest intracoded frame or the pseudorandom access frame to be encoded and the nearest frame
Pseudorandom between coded frame accesses frame;The nearest intracoded frame is in the pseudorandom access frame to be encoded
Coded sequence before and the intracoded frame nearest apart from the pseudorandom to be encoded access frame;
Wherein, using any one normal frames as normal frames to be encoded, the reference frame of the normal frames to be encoded includes nearest
Pseudorandom accesses the normal frames between frame or the normal frames to be encoded and the nearest pseudorandom access frame;It is described most
Before close pseudorandom access frame is the coded sequence in the normal frames to be encoded and apart from the normal frames to be encoded
Nearest pseudorandom accesses frame.
12. device as described in claim 10 or 11, which is characterized in that
The setup module is specifically used for respectively in each gop, by the corresponding sequential hierarchy numerical value of each normal frames
It is disposed as the first numerical value, and each intracoded frame and each pseudorandom are accessed into the corresponding timing layer of frame
Secondary numerical value is disposed as second value;First numerical value is greater than the second value.
13. device as described in claim 10 or 11, which is characterized in that the setup module includes:
First frame group division unit, in each gop, the pseudorandom being accessed frame respectively and the normal frames divide
For at least two frame groups;First frame in each frame group is that the pseudorandom accesses frame, and each frame group separately includes respectively
All normal frames frame are accessed from first frame in frame group to next pseudorandom;
First encoding setting unit accesses frame in each gop, will be located at the pseudorandom in frame group most preceding in GOP
Maximum sequential hierarchy numerical value where sequential hierarchy numerical value corresponding with each normal frames is disposed as in GOP, and according to institute
The sequence of sequential hierarchy numerical value from big to small is stated, the pseudorandom access frame in each frame group is set one by one and each normal frames are right respectively
The sequential hierarchy numerical value answered, until will be located at, the pseudorandom in frame group last in GOP will access frame and each normal frames are right respectively
Minimum sequential hierarchy numerical value where the sequential hierarchy numerical value answered is disposed as in GOP;
The first encoding setting unit is also used to for the corresponding sequential hierarchy numerical value of intracoded frame in each GOP being all provided with
Minimum sequential hierarchy numerical value where being set in GOP.
14. device as described in claim 10 or 11, which is characterized in that the setup module includes:
Second encoding setting unit, it is in each gop for difference, the corresponding sequential hierarchy numerical value of all normal frames is equal
Maximum sequential hierarchy numerical value where being set as in GOP;
Second frame group division unit, in each gop, all pseudorandoms access frame being divided at least two void respectively
Quasi-random accesses frame group;Each pseudorandom access frame group contains at least two pseudorandom access frame, and it is each virtually with
There are at least one normal frames between each adjacent two pseudorandom access frame in machine access frame group;
The second encoding setting unit is also used in each gop, to be located at pseudorandom most preceding in GOP and access frame group
In the corresponding sequential hierarchy numerical value of each pseudorandom access frame be disposed as where the second largest sequential hierarchy number in GOP
Value, and the sequence according to the sequential hierarchy numerical value from big to small are arranged each virtual in each pseudorandom access frame group one by one
The corresponding sequential hierarchy numerical value of random access frame, until will be located at each in pseudorandom access frame group last in GOP
Minimum sequential hierarchy numerical value where the corresponding sequential hierarchy numerical value of pseudorandom access frame is disposed as in GOP;
The second encoding setting unit is also used to the corresponding sequential hierarchy numerical value setting of intracoded frame in each GOP
For the minimum sequential hierarchy numerical value in the GOP of place.
15. a kind of video decoder characterized by comprising
Receiving module, the video data of the carrying sequential hierarchy numerical value for receiving encoder transmission;In the video data
Multiple inter-frame encoding frames include the pseudorandom access frame gone out as selected by the encoder in advance, the multiple inter-frame encoding frame
In in addition to the pseudorandom access frame other than inter-frame encoding frame be normal frames;It is compiled in multiple frames in the video data
Each inter-frame encoding frame is respectively provided with corresponding sequential hierarchy numerical value in code frame and the multiple inter-frame encoding frame;The sequential hierarchy
Numerical value refers to the corresponding numerical value of sequential hierarchy code;
First decoder module, for when detect operation is played out to the target normal frames in the video data when, search
Destination virtual random access frame associated with the target normal frames and intracoded frame, and decode and the target normal frames
Associated intracoded frame;
Second decoder module has the destination virtual random access frame pair for decoding since decoded intracoded frame
The pseudorandom for the sequential hierarchy numerical value answered accesses frame, until having decoded the destination virtual random access frame, then after decoding
Destination virtual random access frame start decoding have the corresponding sequential hierarchy numerical value of the target normal frames normal frames, until
Decoded the target normal frames, wherein the destination virtual random access frame be target normal frames decoding order before and
Frame is accessed apart from nearest pseudorandom.
16. device as claimed in claim 15, which is characterized in that
First decoder module plays out operation to the target normal frames in the video data specifically for that ought detect
When, the decoding order of the target normal frames will be located at before and the pseudorandom access nearest apart from the target normal frames
Frame as destination virtual random access frame, and decodes the decoding order for being located at the target normal frames before and apart from the mesh
Mark the nearest intracoded frame of normal frames.
17. the device as described in claim 15 or 16, which is characterized in that
Each inter-frame encoding frame between the decoded intracoded frame and the destination virtual random access frame respectively corresponds
Sequential hierarchy numerical value be greater than or equal to the corresponding sequential hierarchy numerical value of the destination virtual random access frame;
The sequential hierarchy numerical value of each normal frames between the target normal frames and the destination virtual random access frame is equal to
The corresponding sequential hierarchy numerical value of the target normal frames.
18. device as claimed in claim 17, which is characterized in that second decoder module includes:
Generation unit is set, is set as the corresponding sequential hierarchy of the destination virtual random access frame for conditional parameter will to be decoded
Numerical value generates the first decoding condition;The first decoding condition is that decoding sequential hierarchy numerical value is less than or equal to the target void
Quasi-random accesses the frame of the corresponding sequential hierarchy numerical value of frame;
Target decoder unit, for decoding condition according to described first, according to the solution since decoded intracoded frame
There is the pseudorandom of the corresponding sequential hierarchy numerical value of the destination virtual random access frame to access frame for code sequence decoding, and skip
Sequential hierarchy numerical value be greater than the corresponding sequential hierarchy numerical value of the destination virtual random access frame pseudorandom access frame and/or
Normal frames, until having decoded the destination virtual random access frame;
The setting generation unit is also used to decode conditional parameter and is re-set as the corresponding timing layer of the target normal frames
Secondary numerical value generates the second decoding condition;The second decoding condition is that decoding sequential hierarchy numerical value is less than or equal to the target
The frame of the corresponding sequential hierarchy numerical value of normal frames;
The target decoder unit is also used to according to the second decoding condition, from decoded destination virtual random access frame
Start to decode the normal frames with the corresponding sequential hierarchy numerical value of the target normal frames one by one according to the decoding order, until
The target normal frames are decoded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611092531.3A CN106791870B (en) | 2016-11-30 | 2016-11-30 | A kind of method for video coding, video encoding/decoding method and relevant device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611092531.3A CN106791870B (en) | 2016-11-30 | 2016-11-30 | A kind of method for video coding, video encoding/decoding method and relevant device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106791870A CN106791870A (en) | 2017-05-31 |
CN106791870B true CN106791870B (en) | 2019-11-05 |
Family
ID=58915830
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611092531.3A Active CN106791870B (en) | 2016-11-30 | 2016-11-30 | A kind of method for video coding, video encoding/decoding method and relevant device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106791870B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108184126A (en) * | 2017-12-27 | 2018-06-19 | 生迪智慧科技有限公司 | Video coding and coding/decoding method, the encoder and decoder of snapshot image |
CN108171325B (en) * | 2017-12-28 | 2020-08-28 | 中国科学技术大学 | Time sequence integration network, coding device and decoding device for multi-scale face recovery |
US10484710B2 (en) | 2018-03-21 | 2019-11-19 | Novatek Microelectronics Corp. | Video encoding apparatus and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105144727A (en) * | 2013-03-13 | 2015-12-09 | 苹果公司 | Codec techniques for fast switching |
WO2015192991A1 (en) * | 2014-06-18 | 2015-12-23 | Telefonaktiebolaget L M Ericsson (Publ) | Random access in a video bitstream |
CN105847825A (en) * | 2015-01-16 | 2016-08-10 | 杭州海康威视数字技术股份有限公司 | Encoding, index storage and access methods for video encoding code stream and corresponding apparatus |
CN105872606A (en) * | 2016-06-17 | 2016-08-17 | 努比亚技术有限公司 | Video positioning method and device |
-
2016
- 2016-11-30 CN CN201611092531.3A patent/CN106791870B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105144727A (en) * | 2013-03-13 | 2015-12-09 | 苹果公司 | Codec techniques for fast switching |
WO2015192991A1 (en) * | 2014-06-18 | 2015-12-23 | Telefonaktiebolaget L M Ericsson (Publ) | Random access in a video bitstream |
CN105847825A (en) * | 2015-01-16 | 2016-08-10 | 杭州海康威视数字技术股份有限公司 | Encoding, index storage and access methods for video encoding code stream and corresponding apparatus |
CN105872606A (en) * | 2016-06-17 | 2016-08-17 | 努比亚技术有限公司 | Video positioning method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106791870A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Petrangeli et al. | An http/2-based adaptive streaming framework for 360 virtual reality videos | |
JP6395667B2 (en) | Method and apparatus for improved signaling using high level syntax for multi-view video encoding and decoding | |
KR101266170B1 (en) | Method and apparatus for encoding and decoding multi-view image | |
US20140161172A1 (en) | Software hardware hybrid video encoder | |
CN106791870B (en) | A kind of method for video coding, video encoding/decoding method and relevant device | |
KR20140085492A (en) | Signaling of state information for a decoded picture buffer and reference picture lists | |
US20150288970A1 (en) | Video encoding method and apparatus for parallel processing using reference picture information, and video decoding method and apparatus for parallel processing using reference picture information | |
RU2677587C1 (en) | Method and device for encoding video having time scalability, and method and device for decoding video having time scalability | |
CN105359544A (en) | Trick play in digital video streaming | |
CN109963176B (en) | Video code stream processing method and device, network equipment and readable storage medium | |
CN110012251A (en) | Video recording method, device and readable storage medium storing program for executing | |
CN102036065A (en) | Method and system for video coding | |
CN106791875A (en) | Video data decoding method, coding method and relevant device | |
KR101710290B1 (en) | Decoder and decoding method | |
AU2016201427B2 (en) | Video predictive encoding device, video predictive encoding method, video predictive encoding program, video predictive decoding device, video predictive decoding method, and video predictive decoding program | |
KR20130116815A (en) | Extension of hevc nal unit syntax structure | |
CN110366851A (en) | Coding, coding/decoding method and coding, decoding device | |
US11323730B2 (en) | Temporally-overlapped video encoding, video decoding and video rendering techniques therefor | |
CN112492384B (en) | Video decoding method and device and computer equipment | |
US8233535B2 (en) | Region-based processing of predicted pixels | |
CN108391131B (en) | Image frame coding method and device | |
CN113141507B (en) | Method, device and equipment for constructing motion information list in video coding and decoding | |
US11595652B2 (en) | Explicit signaling of extended long term reference picture retention | |
US20230179767A1 (en) | Encoding video with extended long term reference picture retention | |
RU2775489C1 (en) | Access blocks separator signaling method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |