CN108810533A - A kind of method, apparatus and electronic equipment of label reference frame - Google Patents

A kind of method, apparatus and electronic equipment of label reference frame Download PDF

Info

Publication number
CN108810533A
CN108810533A CN201810614378.9A CN201810614378A CN108810533A CN 108810533 A CN108810533 A CN 108810533A CN 201810614378 A CN201810614378 A CN 201810614378A CN 108810533 A CN108810533 A CN 108810533A
Authority
CN
China
Prior art keywords
frame
encoded
image set
current frame
chart image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810614378.9A
Other languages
Chinese (zh)
Other versions
CN108810533B (en
Inventor
朱洪波
王志航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810614378.9A priority Critical patent/CN108810533B/en
Publication of CN108810533A publication Critical patent/CN108810533A/en
Application granted granted Critical
Publication of CN108810533B publication Critical patent/CN108810533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/114Adapting the group of pictures [GOP] structure, e.g. number of B-frames between two anchor frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

An embodiment of the present invention provides a kind of method, apparatus and electronic equipment of label reference frame, belong to computer realm.By the reference chart image set for obtaining current frame to be encoded, then judge whether reference chart image set includes the predesignated frame of current image group GOP, if reference chart image set, which does not include, preassigns frame, then obtain current motion estimated values of the frame to be encoded relative to predesignated frame, then judge whether motion estimated values are less than predetermined threshold value, if motion estimated values are less than predetermined threshold value, then judge that the long period reference frame of current frame to be encoded is to preassign frame, and the mark of preset first identifier and reference chart image set is added in the picture header information of current frame to be encoded, wherein, the digit of first identifier is one.Using technical solution provided in an embodiment of the present invention, when marking long period reference frame, it is only necessary to which whether the long period reference frame that a data can identify each frame is to preassign frame to improve code efficiency to reduce code stream.

Description

A kind of method, apparatus and electronic equipment of label reference frame
Technical field
The present invention relates to field of computer technology, more particularly to a kind of the method, apparatus and electronic equipment of label reference frame.
Background technology
Currently, during the coding and decoding of video, H.264 H.264 the technical standard used, is typically international mark A kind of digital video compression standard that standardization tissue and International Telecommunication Union propose jointly.In h .264, in order to improve static sequence The code efficiency of row introduces a kind of special reference frame-long period reference frame.One GOP (Group of Pictures, figure Piece group) usually it is made of with B frames an I frame and a series of P frames, long period reference frame can be I frames, P frames or B frames, long period Reference frame can be as P frames and B frames in coding and when decoding reference.
In h .264, encoder is needed when encoding each P frame or B frames by the long period reference of current frame to be encoded The corresponding coded data (i.e. code stream) of current frame to be encoded is written in the mark (for example, sequence serial number of long period reference frame) of frame In, to carry out subsequent decoding.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:Using existing Technology is in coding, in the corresponding code stream of current frame to be encoded when the mark of write-in long period reference frame, if GOP Frame number is more, and sequence serial number of the long period reference frame in GOP may larger, the position that at this moment long period reference frame accounts in code stream Number is just more, this will cause code stream larger, to limit code efficiency.
Invention content
The embodiment of the present invention is designed to provide a kind of method, apparatus and electronic equipment of label reference frame, to improve Code efficiency.Specific technical solution is as follows:
In a first aspect, a kind of method of label reference frame is provided, the method includes:
Obtain the reference chart image set of current frame to be encoded;
Judge whether the reference chart image set includes the predesignated frame of current image group GOP;
If the reference chart image set does not include the predesignated frame, the current frame to be encoded is obtained relative to institute State the motion estimated values of predesignated frame;
Judge whether the motion estimated values are less than predetermined threshold value;
If the motion estimated values are less than predetermined threshold value, judge that the long period reference frame of the current frame to be encoded is The predesignated frame, and add preset first identifier and the reference in the picture header information of the current frame to be encoded The digit of the mark of image set, the first identifier is one.
Optionally, described to judge whether the motion estimated values are less than after predetermined threshold value, further include:
If the motion estimated values are greater than or equal to predetermined threshold value, judge that the current frame to be encoded does not have long period Reference frame, and add in the picture header information of the current frame to be encoded preset second identifier and the reference chart image set The digit of mark, the second identifier is one.
Optionally, it is described judge the reference chart image set whether comprising current image group GOP predesignated frame after, also Including:
It is described current with reference to reference chart image set coding if the reference chart image set includes the predesignated frame Frame to be encoded.
Optionally, it is described add preset second identifier in the picture header information of the current frame to be encoded after, also Including:
It is whether equal in continuous preset number picture header information before judging current frame to be encoded described in the GOP Including the preset second identifier;
If it is not, then using the next frame of current frame to be encoded described in the GOP as current frame to be encoded, and execute institute The step of stating the reference chart image set for obtaining current frame to be encoded.
Optionally, the predesignated frame is I frames.
Second aspect, provides a kind of device of label reference frame, and described device includes:
Acquisition module, the reference chart image set for obtaining current frame to be encoded;
First judgment module, for judging whether the reference chart image set includes the predesignated frame of current image group GOP;
Determining module, if judging that the reference chart image set does not include the advance finger for first judgment module Framing then obtains the current motion estimated values of the frame to be encoded relative to the predesignated frame;
Second judgment module, for judging whether the motion estimated values are less than predetermined threshold value;
Add module, if judging that the motion estimated values are less than predetermined threshold value for second judgment module, Judge that the long period reference frame of the current frame to be encoded is the predesignated frame, and in the image of the current frame to be encoded The mark of preset first identifier and the reference chart image set is added in header, the digit of the first identifier is one.
Optionally, described device further includes:
Determination module, if judging that the motion estimated values are greater than or equal to default threshold for second judgment module Value then judges that the current frame to be encoded does not have long period reference frame, and in the picture header information of the current frame to be encoded The mark of preset second identifier and the reference chart image set is added, the digit of the second identifier is one.
Optionally, described device further includes:
Coding module, if judging that the reference chart image set includes described preassigns for first judgment module Frame, then with reference to the reference chart image set coding current frame to be encoded.
Optionally, described device further includes:
Third judgment module, it is a for the continuous preset number before judging current frame to be encoded described in the GOP Whether include the preset second identifier in picture header information;
Execution module, if judging the company before current frame to be encoded described in the GOP for the third module It all includes the preset second identifier not to be in continuous preset number picture header information, then will be current described in the GOP The next frame of frame to be encoded executes the step of the reference chart image set for obtaining current frame to be encoded as current frame to be encoded Suddenly.
Optionally, the predesignated frame is I frames.
The third aspect, provides a kind of electronic equipment, the electronic equipment include processor, communication interface, memory and Communication bus, wherein the processor, the communication interface, the memory are completed each other by the communication bus Communication;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, is realized described in above-mentioned first aspect The method and step of any label reference frame.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit Instruction is stored in storage media, when run on a computer so that computer executes any described in above-mentioned first aspect The method for marking reference frame.
5th aspect, the embodiment of the present invention additionally provides a kind of computer program product including instruction, when it is being calculated When being run on machine so that the method that computer executes any label reference frame described in above-mentioned first aspect.
An embodiment of the present invention provides a kind of method, apparatus and electronic equipment of label reference frame, can obtain and currently wait for The reference chart image set of coded frame, then judges whether reference chart image set includes the predesignated frame of current image group GOP, if ginseng It examines image set and does not include predesignated frame, then obtain current motion estimated values of the frame to be encoded relative to predesignated frame, then Judge whether motion estimated values are less than predetermined threshold value, if motion estimated values are less than predetermined threshold value, judges current frame to be encoded Long period reference frame be preassign frame, and add in the picture header information of current frame to be encoded preset first identifier and The mark of reference chart image set, wherein the digit of first identifier is one.
Using technical solution provided in an embodiment of the present invention, when marking long period reference frame, it is only necessary to which a data is Whether the long period reference frame that each frame can be identified is to preassign frame to improve code efficiency to reduce code stream.Certainly, It implements any of the products of the present invention or method must be not necessarily required to reach all the above advantage simultaneously.
Description of the drawings
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 technology description to be briefly described.
Fig. 1 is a kind of method flow diagram of label reference frame provided in an embodiment of the present invention;
Fig. 2 is that one kind provided in an embodiment of the present invention judges whether to continue to add preset first identifier or preset second The flow chart of mark;
Fig. 3 is a kind of apparatus structure schematic diagram of label reference frame provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
An embodiment of the present invention provides a kind of method, apparatus and electronic equipment of label reference frame, in label long period ginseng When examining frame, it is only necessary to which whether the long period reference frame that a data can identify each frame is to preassign frame, to reduce code Stream, improves code efficiency.The executive agent of the embodiment of the present invention can be encoder.
The method of label reference frame provided in an embodiment of the present invention is introduced first below.
As shown in Figure 1, the method for label reference frame provided in an embodiment of the present invention may comprise steps of:
S110:Obtain the reference chart image set of current frame to be encoded.
In embodiments of the present invention, encoder typically first encodes I frames, then compiles in each frame picture in encoding GOP Code P frames and B frames.Wherein, coding I frames belong to intraframe coding, encode P frames and B frames belong to interframe encode.Carrying out interframe encode When, encoder can obtain the reference chart image set of current frame to be encoded, and sequence serial number of the reference chart image set in GOP is typically pre- It first sets, encoder can encode current frame to be encoded using reference chart image set as frame is referred to.Relative to long period Reference frame, reference chart image set are properly termed as short cycle reference frame, long period reference frame can as the reference frame of more coded frame, Short cycle reference frame (usually with current to be encoded adjacent or close) is usually as the reference frame of less coded frame.
S120:Judge whether reference chart image set includes the predesignated frame of current image group GOP;If reference chart image set is not Including predesignated frame, then execute S130.
In embodiments of the present invention, predesignated frame refers to the preassigned frame picture of technical staff, usually at one A predesignated frame is preassigned in GOP, predesignated frame is typically I frames, can also be other frames, preassigns frame and grows Cycle reference frame.Encoder can be according to the mark of predesignated frame (for example, preassigning the sequence serial number of frame or referring in advance The framing corresponding time), by whether inquiring reference chart image set comprising the mark for preassigning frame, reference chart image set is judged with this Whether the predesignated frame of current image group GOP is included.
S130:Obtain current motion estimated values of the frame to be encoded relative to predesignated frame.
In embodiments of the present invention, encoder can be as a reference point by predesignated frame, calculates in current frame to be encoded Movement between the pixel of some pre-specified position and the pixel of some pre-specified position in predesignated frame is estimated Evaluation preassigns alternatively, calculating the block of some pre-specified position in current frame to be encoded with some in predesignated frame Motion estimated values between the block of position, then using calculated motion estimated values as current frame to be encoded relative to finger in advance The motion estimated values of framing.
S140:Judge whether motion estimated values are less than predetermined threshold value;If motion estimated values are less than predetermined threshold value, execute S150。
In embodiments of the present invention, encoder can be by current motion estimated values of the frame to be encoded relative to predesignated frame Size comparison is carried out with predetermined threshold value, to judge whether the motion estimated values are less than predetermined threshold value.Predetermined threshold value can basis Actual needs is preset, for example, according to the pace of change between each picture in encoding and decoding required precision or picture group It is preset, predetermined threshold value is smaller, indicates that the required precision of encoding and decoding is higher.
S150:The long period reference frame of the current frame to be encoded of judgement is predesignated frame, and in the figure of current frame to be encoded Mark as adding preset first identifier and reference chart image set in header, wherein the digit of first identifier is one.
In embodiments of the present invention, when the motion vector value of current frame to be encoded is less than predetermined threshold value, encoder can be with The long period reference frame of the current frame to be encoded of judgement is to preassign frame.Then, encoder can be in the figure of current frame to be encoded As adding preset first identifier in header, to indicate that the long period reference frame of current frame to be encoded is to preassign frame;It compiles Code device can also add reference picture set identifier in the picture header information of current frame to be encoded, determine when to decode and currently wait for The reference chart image set of coded frame.The digit that first identifier in the embodiment of the present invention accounts in storage medium and code stream is one. For example, first identifier can use " 1 " to indicate.
The method of label reference frame provided in an embodiment of the present invention, when marking long period reference frame, it is only necessary to one digit number According to can identify each frame long period reference frame whether be preassign frame improve code efficiency to reduce code stream.
Optionally, as a kind of embodiment of the embodiment of the present invention, after encoder has executed S140, if currently waited for Coded frame is greater than or equal to predetermined threshold value relative to the fortune motion estimated values of predesignated frame, and following steps can also be performed:
S160:The current frame to be encoded of judgement does not have long period reference frame, and in the picture header information of current frame to be encoded Add the mark of preset second identifier and reference chart image set, wherein the digit of second identifier is one.
In embodiments of the present invention, if current frame to be encoded is more than or waits relative to the motion estimated values of predesignated frame In predetermined threshold value, encoder then judges that current frame to be encoded does not have long period reference frame.Then it is with reference to volume with reference chart image set The current frame to be encoded of code, and the mark of preset second identifier and reference chart image set is added to the image head of currently frame to be encoded In information.Wherein, the digit of second identifier is one.For example, " 0 " can be used to indicate second identifier.
In scheme provided in an embodiment of the present invention, preset the can be added in the picture header information of current frame to be encoded Two marks, decoder can quickly determine that current frame to be encoded does not have long period reference frame according to second identifier, to improve Decoding efficiency.
Optionally, as a kind of embodiment of the embodiment of the present invention, after encoder has executed S120, if reference chart Image set includes to preassign frame, and following steps can also be performed:
S121:Current frame to be encoded is encoded with reference to reference chart image set.
In embodiments of the present invention, if reference chart image set includes to preassign frame, then it represents that it is current to preassign frame The short cycle reference frame of frame to be encoded, encoder can be by reference chart image set as reference at this time, the current frame to be encoded of coding.
In scheme provided by the invention, if reference chart image set includes to preassign frame, encoder if, will preassign Short cycle reference frame of the frame as current frame to be encoded does not add in the picture header information of current frame to be encoded preset at this time First identifier and preset second identifier, to improve code efficiency.
Optionally, as a kind of embodiment of the embodiment of the present invention, as shown in Fig. 2, after encoder has executed S160, Following steps can also be performed:
S161:Judge the mark added in the continuous preset number picture header information in GOP before current frame to be encoded Whether know includes preset second identifier;If not, executing S162;If it is, executing S121.
In embodiments of the present invention, encoder adds preset second identifier in the picture header information of current frame to be encoded Later, identifying whether of being added in the continuous preset number picture header information before can counting current frame to be encoded be Preset second identifier;If not, executing S162;If so, executing S121.For example, preset number can be preset as 6, if Some includes preset first identifier in the picture header information of continuous 6 frame picture before current frame to be encoded, then executes S162;If in the picture header information of the continuous 6 frame picture before current frame to be encoded including preset second identifier, Indicate that this continuous 6 frame picture does not have long period reference frame, it is possible thereby to which each frame after judging current frame to be encoded is not To preassign frame as long period reference frame, S121 is then executed.
S162:Using the next frame of current frame to be encoded in GOP as current frame to be encoded, and it is current to be encoded to execute acquisition The step of reference chart image set of frame.
If not being to include in the continuous preset number picture header information in current GOP before current frame to be encoded Then preset second identifier, encoder can execute S110 using the next frame of current frame to be encoded as current frame to be encoded The step of to S150.
In scheme provided in an embodiment of the present invention, it is not in the long period reference frame for continuous preset number picture occur When preassigning frame, encoder can not add preset first identifier or preset in the picture header information of subsequent picture Second identifier can save code stream in this way, improve coding and decoding efficiency.
Optionally, as a kind of embodiment of the embodiment of the present invention, it is I frames to preassign frame.
It in embodiments of the present invention, can be using I frames as predesignated frame, i.e., using I frames as long period reference frame.Due to I frames are full frame compressed coded frames, and full frame image information is by compressed encoding and transmission, can be with using I frames as long period reference frame Improve the coding quality of current frame to be encoded.
Based on the same technical idea, embodiment of the method shown in Fig. 1 is corresponded to, the embodiment of the present invention additionally provides a kind of mark The device for remembering reference frame, as shown in figure 3, the device includes:
Acquisition module 301, the reference chart image set for obtaining current frame to be encoded;
First judgment module 302, for judging whether the reference chart image set is predesignated comprising current image group GOP Frame;
Determining module 303, if it is described to judge that the reference chart image set does not include for first judgment module 302 Frame is preassigned, then obtains the current motion estimated values of the frame to be encoded relative to the predesignated frame;
Second judgment module 304, for judging whether the motion estimated values are less than predetermined threshold value;
Add module 305, if judging that the motion estimated values are less than default threshold for second judgment module 304 Value then judges that the long period reference frame of the current frame to be encoded is the predesignated frame, and in the current frame to be encoded Picture header information in add the mark of preset first identifier and the reference chart image set, the digit of the first identifier is one Position.
The method of label reference frame provided in an embodiment of the present invention, when marking long period reference frame, it is only necessary to one digit number According to can identify each frame long period reference frame whether be preassign frame improve code efficiency to reduce code stream.
Optionally, described device further includes:
Determination module, if it is pre- to judge that the motion estimated values are greater than or equal to for second judgment module 304 If threshold value, then judge that the current frame to be encoded does not have long period reference frame, and in the image head letter of the current frame to be encoded The mark of preset second identifier and the reference chart image set is added in breath, the digit of the second identifier is one.
In scheme provided in an embodiment of the present invention, preset the can be added in the picture header information of current frame to be encoded Two marks, decoder can quickly determine that current frame to be encoded does not have long period reference frame according to second identifier, to improve Decoding efficiency.
Optionally, described device further includes:
Coding module, if judging that the reference chart image set includes described advance for first judgment module 302 Designated frame, then with reference to the reference chart image set coding current frame to be encoded.
In scheme provided by the invention, if reference chart image set includes to preassign frame, encoder if, will preassign Short cycle reference frame of the frame as current frame to be encoded does not add in the picture header information of current frame to be encoded preset at this time First identifier and preset second identifier, to improve code efficiency.
Optionally, described device further includes:
Third judgment module, it is a for the continuous preset number before judging current frame to be encoded described in the GOP Whether include the preset second identifier in picture header information;
Execution module, if judging the company before current frame to be encoded described in the GOP for the third module It all includes the preset second identifier not to be in continuous preset number picture header information, then will be current described in the GOP The next frame of frame to be encoded executes the step of the reference chart image set for obtaining current frame to be encoded as current frame to be encoded Suddenly.
In scheme provided in an embodiment of the present invention, it is not in the long period reference frame for continuous preset number picture occur When preassigning frame, encoder can not add preset first identifier or preset in the picture header information of subsequent picture Second identifier can save code stream in this way, improve coding and decoding efficiency.
Optionally, the predesignated frame is I frames.
It in embodiments of the present invention, can be using I frames as predesignated frame, i.e., using I frames as long period reference frame.Due to I frames are full frame compressed coded frames, and full frame image information is by compressed encoding and transmission, can be with using I frames as long period reference frame Improve the coding quality of current frame to be encoded.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 4, including processor 401, communication interface 402, Memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 are complete by communication bus 404 At mutual communication;
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory 403, realizes following steps:
Obtain the reference chart image set of current frame to be encoded;
Judge whether the reference chart image set includes the predesignated frame of current image group GOP;
If the reference chart image set does not include the predesignated frame, the current frame to be encoded is obtained relative to institute State the motion estimated values of predesignated frame;
Judge whether the motion estimated values are less than predetermined threshold value;
If the motion estimated values are less than predetermined threshold value, judge that the long period reference frame of the current frame to be encoded is The predesignated frame, and add preset first identifier and the reference in the picture header information of the current frame to be encoded The digit of the mark of image set, the first identifier is one.
Electronic equipment provided in an embodiment of the present invention, when marking long period reference frame, it is only necessary to which a data can be marked Whether the long period reference frame for knowing each frame is to preassign frame to improve code efficiency to reduce code stream.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), can also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), application-specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer so that computer executes any institute in above-described embodiment The method for the label reference frame stated.
Storage medium provided in an embodiment of the present invention, when marking long period reference frame, it is only necessary to which a data can be marked Whether the long period reference frame for knowing each frame is to preassign frame to improve code efficiency to reduce code stream.
In another embodiment provided by the invention, a kind of computer program product including instruction is additionally provided, when it When running on computers so that the method that computer executes any label reference frame in above-described embodiment.
Computer program product provided in an embodiment of the present invention, when marking long period reference frame, it is only necessary to a data Whether the long period reference frame that each frame can be identified is to preassign frame to improve code efficiency to reduce code stream.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment, storage medium and computer program product embodiments, since it is substantially similar to the method embodiment, so retouching That states is fairly simple, and the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (11)

1. a kind of method of label reference frame, which is characterized in that the method includes:
Obtain the reference chart image set of current frame to be encoded;
Judge whether the reference chart image set includes the predesignated frame of current image group GOP;
If the reference chart image set does not include the predesignated frame, the current frame to be encoded is obtained relative to described pre- The motion estimated values of first designated frame;
Judge whether the motion estimated values are less than predetermined threshold value;
If the motion estimated values are less than predetermined threshold value, judge that the long period reference frame of the current frame to be encoded is described Frame is preassigned, and preset first identifier and the reference picture are added in the picture header information of the current frame to be encoded The digit of the mark of collection, the first identifier is one.
2. according to the method described in claim 1, it is characterized in that, described judge whether the motion estimated values are less than default threshold After value, further include:
If the motion estimated values are greater than or equal to predetermined threshold value, judge that the current frame to be encoded does not have long period reference Frame, and add in the picture header information of the current frame to be encoded the mark of preset second identifier and the reference chart image set Know, the digit of the second identifier is one.
3. according to the method described in claim 1, it is characterized in that, whether described judge the reference chart image set comprising current figure After the predesignated frame of piece group GOP, further include:
If the reference chart image set includes the predesignated frame, reference reference chart image set coding is described currently to be waited compiling Code frame.
4. according to the method described in claim 2, it is characterized in that, described in the picture header information of the current frame to be encoded After adding preset second identifier, further include:
In continuous preset number picture header information before judging current frame to be encoded described in the GOP whether include The preset second identifier;
If it is not, then using the next frame of current frame to be encoded described in the GOP as current frame to be encoded, and obtained described in execution The step of taking the reference chart image set of current frame to be encoded.
5. any method according to claim 1-4, which is characterized in that the predesignated frame is I frames.
6. a kind of device of label reference frame, which is characterized in that described device includes:
Acquisition module, the reference chart image set for obtaining current frame to be encoded;
First judgment module, for judging whether the reference chart image set includes the predesignated frame of current image group GOP;
Determining module, if judging that the reference chart image set does not include described preassign for first judgment module Frame then obtains the current motion estimated values of the frame to be encoded relative to the predesignated frame;
Second judgment module, for judging whether the motion estimated values are less than predetermined threshold value;
Add module judges if judging that the motion estimated values are less than predetermined threshold value for second judgment module The long period reference frame of the current frame to be encoded is the predesignated frame, and in the image head letter of the current frame to be encoded The mark of preset first identifier and the reference chart image set is added in breath, the digit of the first identifier is one.
7. device according to claim 6, which is characterized in that described device further includes:
Determination module, if judging that the motion estimated values are greater than or equal to predetermined threshold value for second judgment module, Then judge that the current frame to be encoded does not have long period reference frame, and is added in the picture header information of the current frame to be encoded The digit of the mark of preset second identifier and the reference chart image set, the second identifier is one.
8. device according to claim 6, which is characterized in that described device further includes:
Coding module, if judging that the reference chart image set includes the predesignated frame for first judgment module, Then with reference to the reference chart image set coding current frame to be encoded.
9. device according to claim 7, which is characterized in that described device further includes:
Third judgment module, for judging the continuous preset number image before current frame to be encoded described in the GOP Whether include the preset second identifier in header;
Execution module, if continuous before judging current frame to be encoded described in the GOP for the third module It all includes the preset second identifier not to be in preset number picture header information, then currently will wait compiling described in the GOP The next frame of code frame is as current frame to be encoded, and the step of executing the reference chart image set for obtaining current frame to be encoded.
10. any device according to claim 6-9, which is characterized in that the predesignated frame is I frames.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes that processor, communication interface, memory and communication are total Line, wherein the processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any sides claim 1-5 Method step.
CN201810614378.9A 2018-06-14 2018-06-14 Method and device for marking reference frame and electronic equipment Active CN108810533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810614378.9A CN108810533B (en) 2018-06-14 2018-06-14 Method and device for marking reference frame and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810614378.9A CN108810533B (en) 2018-06-14 2018-06-14 Method and device for marking reference frame and electronic equipment

Publications (2)

Publication Number Publication Date
CN108810533A true CN108810533A (en) 2018-11-13
CN108810533B CN108810533B (en) 2021-08-27

Family

ID=64086098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810614378.9A Active CN108810533B (en) 2018-06-14 2018-06-14 Method and device for marking reference frame and electronic equipment

Country Status (1)

Country Link
CN (1) CN108810533B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684610A (en) * 2023-05-17 2023-09-01 北京百度网讯科技有限公司 Method and device for determining reference state of long-term reference frame and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684610A (en) * 2023-05-17 2023-09-01 北京百度网讯科技有限公司 Method and device for determining reference state of long-term reference frame and electronic equipment

Also Published As

Publication number Publication date
CN108810533B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
US9030565B2 (en) Method, apparatus, and system for evaluating video quality
CN105426883B (en) The method and device that visual classification quickly identifies
CN106572352B (en) A kind of key frame sign control method and device
CN108596109A (en) A kind of object detection method and device based on neural network and motion vector
CN111641804A (en) Video data processing method and device, terminal, camera and video conference system
CN111770331A (en) Video coding method, device and system
EP1094672A2 (en) Digital video coding method and device
CN108810533A (en) A kind of method, apparatus and electronic equipment of label reference frame
CN105208388B (en) Dynamically adjustment encodes the method and system of frame per second in video communication
CN110418138A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN105898310A (en) Video encoding method and apparatus
US20140009563A1 (en) Non-video codecs with video conferencing
CN108683915A (en) A kind of method, apparatus and electronic equipment of write-in dQP values
CN106937168B (en) Video coding method, electronic equipment and system using long-term reference frame
US9467676B2 (en) Multi-view video coding and decoding methods and apparatuses, coder, and decoder
CN115941972A (en) Image transmission method, device, equipment and storage medium
CN109640081A (en) A kind of intra-frame prediction method, encoder, electronic equipment and readable storage medium storing program for executing
CN112073733A (en) Video coding and decoding method and device based on motion vector angle prediction
CN103024370B (en) A kind of motion vector second-compressed decoding method and device
EP3985983A1 (en) Interpolation filtering method and apparatus for intra-frame prediction, medium, and electronic device
CN104159106B (en) Method for video coding and video encoding/decoding method and its device
JP2002281508A (en) Skip area detection type moving image encoder and recording medium
CN112348788A (en) Image quality evaluation method and device, electronic equipment and storage medium
US10397609B2 (en) Method and apparatus for predicting residual
CN113542737A (en) Encoding mode determining method and device, electronic equipment and storage medium

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