CN108366263A - Video encoding/decoding method, equipment and storage medium - Google Patents
Video encoding/decoding method, equipment and storage medium Download PDFInfo
- Publication number
- CN108366263A CN108366263A CN201810028053.2A CN201810028053A CN108366263A CN 108366263 A CN108366263 A CN 108366263A CN 201810028053 A CN201810028053 A CN 201810028053A CN 108366263 A CN108366263 A CN 108366263A
- Authority
- CN
- China
- Prior art keywords
- data
- frame
- prediction
- video
- interlacing
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/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/156—Availability of hardware or computational resources, e.g. encoding based on power-saving criteria
-
- 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/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)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
A kind of video encoding/decoding method of present invention offer, video decoding apparatus and computer readable storage medium.Wherein, video encoding/decoding method includes:Obtain video data;Interlacing decoding is carried out to the video data, obtains interlaced image frames, wherein the interlaced image frames include the frame data of interlacing;Export the interlaced image frames.The present invention can be greatly decreased decoded workload, to reduce the load of processor and memory, improve decoding capability of the terminal devices such as mobile phone to HD video by carrying out interlacing decoding to video data, avoid playing interim card, the problems such as mobile phone is hot.
Description
Technical field
The present invention relates to multimedia information fields, and in particular to a kind of video encoding/decoding method, a kind of video solution
Decoding apparatus and a kind of computer readable storage medium.
Background technology
With the development of digital media technology and computer technology, vision signal with the advantages such as its intuitive and high efficiency at
To obtain one of most important mode of information in people's daily life, it is now widely used for every field, such as mobile communication, net
Network monitoring, Web TV etc..
Since the data volume of vision signal is very big, if with uncompressed form storage or transmission video data, store
Or transmission bandwidth requires be huge, therefore, vision signal after video coding technique compressed encoding usually using being stored
Or transmission.The information theory that Video coding is proposed using C.E.Shannon is theoretical foundation, it is therefore an objective to effectively remove between vision signal
Redundancy improves compression efficiency to the maximum extent.After the video data after receiving coding, need to carry out using decoder
Video pictures can be just restored after decoding to play out.
With the raising of hardware performance and screen resolution, demand of the user to HD video is increasingly strong, high resolution
HD video up to 1080P, 4K, 8K etc. is more and more, and code check is also very high, since the decoding needs of HD video are huge
Processor and memory overhead, this brings the slightly worse computer etc. of the slightly worse equipment of processing capacity such as mobile phone, configuration huge
Load plays interim card, the problems such as mobile phone is hot frequent occurrence.
Therefore, at present there is an urgent need to provide it is a kind of can effectively reduce processor and the video encoding/decoding method of Memory Load,
To improve the HD video ability to play of the equipment such as mobile phone.
Invention content
In view of the above problems, the purpose of the present invention is pass through a kind of video encoding/decoding method of offer, a kind of video decoding apparatus
And a kind of computer readable storage medium, to solve the terminal devices such as current mobile phone, computer processor when decoding HD video
The larger problem with Memory Load.
First aspect present invention provides a kind of video encoding/decoding method, including:
Obtain video data;
Interlacing decoding is carried out to the video data, obtains interlaced image frames, wherein the interlaced image frames include interlacing
Frame data;
Export the interlaced image frames.
It is described that interlacing decoding is carried out to the video data in one change embodiment of first aspect present invention, it obtains
To interlaced image frames, including:
The reference block data of target data frame are determined according to the video data;And it is obtained according to the Digital video resolution
To the residual error data of the target data frame;
Frame prediction is carried out according to the reference block data, obtains prediction block data;
The prediction block data and the residual error data are summed, image block data is obtained;
To described image block number according to interlacing filtering is carried out, interlacing block number evidence is obtained;
Corresponding to all interlacing block numbers of target data frame interlaced image frames will be formed according to combination.
In another change embodiment of first aspect present invention, the target data frame includes intra prediction frame;
The reference block data that target data frame is determined according to the video data, including:
The block number evidence extracted the decoded of intra prediction frame from the video data and do not filtered, by what is extracted
The block number is according to the reference block data as the intra prediction frame;
It is described to carry out frame prediction according to the reference block data, prediction block data are obtained, including:
Intra prediction is carried out according to the reference block data, obtains the prediction block data of intra prediction frame, the prediction block
Data include whole row data of prediction block.
In another change embodiment of first aspect present invention, the target data frame includes MB of prediction frame, institute
It states and the residual error data of the target data frame is obtained according to the Digital video resolution, including:
The residual error data of whole rows of interframe data frame is obtained according to the Digital video resolution;
Interlacing reservation is carried out to the residual error data of whole rows, obtains the residual error data of the interframe data frame.
In another change embodiment of first aspect present invention, the target data frame includes MB of prediction frame;
The reference block data that target data frame is determined according to the video data, including:
The reference image frame that MB of prediction frame is determined according to the video data extracts block number from the reference image frame
According to the reference block data as the MB of prediction frame, wherein the reference image frame is the picture frame of filtered mistake;
It is described to carry out frame prediction according to the reference block data, prediction block data are obtained, including:
According to the reference block data, the prediction block number of the interlacing of the MB of prediction frame is predicted using motion estimation algorithm
According to.
In another change embodiment of first aspect present invention, the reference block data are the reference block number of interlacing
According to, it is described according to the reference block data, the prediction block number of the interlacing of the MB of prediction frame is predicted using motion estimation algorithm
According to, including:
Interpolation processing is carried out to the reference block data of the interlacing using interpolation algorithm, obtains the reference block number of whole rows
According to;
According to the reference block data of whole rows, the interlacing of the MB of prediction frame is predicted using motion estimation algorithm
Prediction block data.
In another change embodiment of first aspect present invention, the interlacing includes:Odd-numbered line or even number line.
In another change embodiment of first aspect present invention, the video encoding/decoding method further includes:
Rendering of making up the difference is carried out to the interlaced image frames, generates the broadcasting pictures for including whole row frame data.
Second aspect of the present invention provides a kind of video decoding apparatus, including:Memory, processor and it is stored in the storage
On device and the computer program that can run on the processor, the processor execute this hair when running the computer program
The video encoding/decoding method of bright offer.
Third aspect present invention provides a kind of computer readable storage medium, is stored thereon with computer program, the meter
Calculation machine program realizes video encoding/decoding method provided by the invention when being executed by processor.
The video encoding/decoding method that first aspect present invention provides, including:Obtain video data;The video data is carried out
Interlacing decodes, and obtains interlaced image frames, wherein the interlaced image frames include the frame data of interlacing;Export the interlaced picture
Frame.The present invention by video data carry out interlacing decoding, decoded workload can be greatly decreased, to reduce processor and
The load of memory improves decoding capability of the terminal devices such as mobile phone to HD video, avoids playing that interim card, mobile phone are hot etc. asks
Topic.
The computer readable storage medium of video decoding apparatus, third aspect offer that second aspect of the present invention provides, with
The video encoding/decoding method that above-mentioned first aspect provides is for identical inventive concept, advantageous effect having the same.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field
Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart for video encoding/decoding method that embodiment of the present invention is provided;
Fig. 2 shows a kind of schematic diagrames for video decoding apparatus that embodiment of the present invention is provided;
Fig. 3 shows a kind of schematic diagram for computer readable storage medium that embodiment of the present invention is provided;
Fig. 4 shows a kind of schematic diagram of the data structure for video data that embodiment of the present invention is provided;
Fig. 5 shows a kind of schematic diagram for image block data comprising whole rows that embodiment of the present invention is provided;
Fig. 6 shows a kind of schematic diagram for interlacing block number evidence that embodiment of the present invention is provided;
Fig. 7 shows a kind of schematic diagram of the residual error data for interlacing that embodiment of the present invention is provided;
Fig. 8 shows a kind of schematic diagram of the prediction block data for interlacing that embodiment of the present invention is provided;
Fig. 9 shows a kind of interpolated ginseng that treated includes whole rows that embodiment of the present invention is provided
Examine the schematic diagram of block number evidence.
Specific implementation mode
The illustrative embodiments of the disclosure are more fully described below with reference to accompanying drawings.Although showing this public affairs in attached drawing
The illustrative embodiments opened, it being understood, however, that may be realized in various forms the disclosure without the reality that should be illustrated here
The mode of applying is limited.It is to be able to be best understood from the disclosure on the contrary, providing these embodiments, and can be by this public affairs
The range opened completely is communicated to those skilled in the art.
It should be noted that unless otherwise indicated, the technical term or scientific terminology that the present invention uses should be this hair
The ordinary meaning that bright one of ordinary skill in the art are understood.
A kind of video encoding/decoding method of present invention offer, a kind of video decoding apparatus and a kind of computer readable storage medium.
The embodiment of the present invention is illustrated below in conjunction with the accompanying drawings.
Referring to FIG. 1, a kind of flow chart of the video encoding/decoding method provided it illustrates embodiment of the present invention, described
Video encoding/decoding method includes the following steps:
Step S101:Obtain video data.
In the embodiment of the present invention, the video data can be the video counts obtained by video encoder coding compression
According to, for example, using H.264, H.265, H.261, H.263, the video counts that encode of the coding standards such as MPEG-1, MPEG-4
According to video format can be MP4, TS, TP, FLV, RMVB, WMV etc..
In the embodiment of the present invention, illustrated by taking the video data that H.264 coding standard encodes as an example, H.264
In coding standard, encoded as unit of frame, then each frame according to the regulation of encryption algorithm, be decomposed into macro block (such as
The macro block of 16X16), as soon as being completed to all macroblock codings in frame image, the coding to present frame is also completed, using H.264
The data structure of the video data that coding standard encodes as shown in figure 4, its be four layers video data structure, video is compound
Encoder is encoded (entropy coding) to the video data after quantization, and is inserted into some auxiliary datas (such as frame is first, block group is first, macro
Block head etc.), obtain composite coding image data structure as shown in Figure 4.
Wherein, each layer data is briefly described as follows:
(1) frame-layer, frame first packet include frame initial code (PSC), frame count code (TR), frame type information code (PTYPE) and spare
It is inserted into information code etc.;
(2) gob layer, block group first packet include block group initial code (GBSC), block group # code (GN), block group quantization step
(GQOANT), spare insertion information etc.;
(3) macroblock layer is made of 6 blocks, including 4 luminance blocks and two chrominance blocks.Macro block first packet includes macroblock address code
(MBA), macro block (mb) type code (MTYPE), macroblock quantisation step-length code (MQUANT), motion vector data (MVD), coding mode
(CBP) etc., CBP illustrates data number in each piece;
(4) DCT coefficient of block layer, each piece (8 × 8) is scanned by Zig-Zag (zigzag), and pixel is lined up one-dimensional sequence simultaneously
Entropy coding (variable-length encoding, arithmetic coding etc.) is carried out, uses EoB end marks as block end when per block end.
The video data can be from local acquisition, can also be to be obtained from remote server, for example, can be from local
Reading video data in memory, can also be in the form of bit stream from the video server foradownloaded video data of distal end, at this
In one change embodiment of inventive embodiments, the acquisition video data may include:By from network abstract layer (English
Literary abbreviation:NAL, full name in English:Network abstractionlayer) bit stream is received, obtain video data.
Step S102:Interlacing decoding is carried out to the video data, obtains interlaced image frames, wherein the interlaced picture
Frame includes the frame data of interlacing.
In view of the decoder of the prior art has been carried out to video data using decoding scheme corresponding with encoder
Full decoder can bring a large amount of load to generate huge workload when decoding HD video for processor, memory, when
When processor, memory can not undertake the decoding load, the problems such as playing interim card may result in;And since video data is by frame group
At, and what frame was made of frame data line by line, for example, the 1080P HD videos that resolution ratio is 1920 × 1080 be by
Line scanned video has 1920 points that is, per 1080 row of frame picture level line per a line;Therefore, the technology structure of the embodiment of the present invention
One of think to be that and decoded line number is reduced by interlacing decoding, to reduce decoding effort amount, reduces processor and memory
Load improves the decoding efficiency to video data.
Wherein, interlacing decoding can be the picture frame that odd-numbered line is decoded from video data, can also be from regarding
Frequency decodes the picture frame of even number line in, by taking the HD video of 1080P as an example, interlaced image frames that interlacing decodes
Line number is 540 rows, and original video can be gone back to a certain extent after obtaining the interlaced image frames, then by the means such as rendering of making up the difference
Picture simultaneously plays out, and since the screen of the mobile terminals such as mobile phone is smaller, is limited by human eye resolution capability, and user's naked eyes are seen
Above-mentioned video pictures and obtained video pictures difference very little is decoded completely, therefore, video provided in an embodiment of the present invention decodes
Method can greatly improve decoding capability in the case of sacrifice image quality few as possible.
Specifically, changed in embodiment at one provided in an embodiment of the present invention, it is described that the video data is carried out
Interlacing decodes, and obtains interlaced image frames, may include:
The reference block data of target data frame are determined according to the video data;And it is obtained according to the Digital video resolution
To the residual error data of the target data frame;
Frame prediction is carried out according to the reference block data, obtains prediction block data;
The prediction block data and the residual error data are summed, image block data is obtained;
To described image block number according to interlacing filtering is carried out, interlacing block number evidence is obtained;
Corresponding to all interlacing block numbers of target data frame interlaced image frames will be formed according to combination.
Wherein, if described image block number is according to the block number evidence for including whole rows, to described image block number according to progress interlacing filter
Wave can be that the odd-numbered line only to image block data is filtered to obtain interlacing block number evidence, can also be only to image block number
According to even number line be filtered to obtain interlacing block number evidence, in order to make it easy to understand, please referring to Fig. 5 and Fig. 6, Fig. 5 shows this hair
A kind of schematic diagram for image block data comprising whole rows that bright embodiment is provided, image block data shown in fig. 5 indicate
16 × 16 image block, the number " 1 " in figure indicate that the data of corresponding pixel points, Fig. 6 show that embodiment of the present invention is carried
A kind of schematic diagram of the interlacing block number evidence supplied, interlacing block number evidence shown in fig. 6 are the odd-numbered lines to image block data shown in fig. 5
16 × 8 image block data obtained after being filtered, only remains the data of odd-numbered line.In addition, present embodiment can be with
Interlacing processing is carried out during parsing residual error data, frame prediction etc., to obtain the residual error data of interlacing, the prediction block of interlacing
Data etc., and then the image block data of interlacing is obtained after by the prediction block data and residual error data summation, at this point, institute
It states to described image block number according to interlacing filtering is carried out, can be directly filtered to the image block data of the interlacing, equally
Interlacing block number evidence can be obtained, please refer to Fig. 7 and Fig. 8, a kind of interlacing provided which respectively show embodiment of the present invention
The schematic diagram of the schematic diagram of residual error data and a kind of prediction block data of interlacing, only remains odd number after being handled by interlacing
Capable data, " a " indicates the residual error data of corresponding pixel points in Fig. 7, and " b " indicates the prediction block data of corresponding pixel points in Fig. 8,
In this way, after the prediction block data of the residual error data of interlacing shown in Fig. 7 and interlacing shown in Fig. 8 are summed and are filtered, you can
To the interlacing block number evidence as shown in FIG. 6 for only retaining odd-numbered line.Above example is the change embodiment of present inventive concept,
It should within protection scope of the present invention.Deblocking filtering may be used in the method for the filtering, is the skill of this field maturation
Art means, details are not described herein again.
It is changed in embodiment at one provided in an embodiment of the present invention, it is described that institute is obtained according to the Digital video resolution
The residual error data for stating target data frame may include:
Entropy decoding is carried out to the video data, obtains quantization parameter;
Inverse quantization and inverse transformation are carried out to the quantization parameter, obtain the residual error data of target data frame.
Wherein, entropy decoding, inverse quantization, inverse transformation may be used the technological means provided in the prior art and realize, such as
H.264 entropy decoding, inverse quantization and inverse transform method etc. specified in encoding and decoding standard are this field mature technology method,
The embodiment of the present invention no longer specifically repeats.
It is considered that existing video coding technique is mostly compiled using intraframe coding in such a way that interframe encode is combined
Code, correspondingly, the video data obtained after coding includes intra prediction frame and MB of prediction frame, intra prediction frame is based in frame
What prediction algorithm generated, typical intra prediction frame is I frames, is with the frame completely encoded, MB of prediction frame is to be based on interframe
What prediction algorithm generated, typical MB of prediction frame is P frames and B frames, and P frames are specially forward-predictive-coded frames, and B frames are specially double
To prediction interpolation coding frame.Specifically, intra prediction frame is using the reference block data of target data frame as foundation, using pre- in frame
Method of determining and calculating predicts other block numbers of target data frame according to being prediction block data, by the reference block data and the prediction block number
According to composition intra prediction frame.MB of prediction frame is to be reference in preceding and/or posterior intra prediction frame and/or MB of prediction frame
Frame carries out inter-prediction using motion estimation algorithm and obtains frame with the block number in the reference frame according to for reference block data.
In the embodiment of the present invention, corresponding processing side can be respectively adopted for the intra prediction frame and MB of prediction frame
Method is handled, such as:
In a change embodiment of the embodiment of the present invention, the target data frame includes intra prediction frame;
The reference block data that target data frame is determined according to the video data, including:
The block number evidence extracted the decoded of intra prediction frame from the video data and do not filtered, by what is extracted
The block number is according to the reference block data as the intra prediction frame;
It is described to carry out frame prediction according to the reference block data, prediction block data are obtained, including:
Intra prediction is carried out according to the reference block data, obtains the prediction block data of intra prediction frame, the prediction block
Data include whole row data of prediction block.
In another change embodiment of the embodiment of the present invention, the target data frame includes MB of prediction frame, institute
It states and the residual error data of the target data frame is obtained according to the Digital video resolution, including:
The residual error data of whole rows of interframe data frame is obtained according to the Digital video resolution;
Interlacing reservation is carried out to the residual error data of whole rows, obtains the residual error data of the interframe data frame.
In this change embodiment, for MB of prediction frame, only retains the residual error data of interlacing, utilize the residual error of the interlacing
Data can directly sum to obtain the image block data of interlacing with prediction block data, using filtering, combination and etc. can shape
At interlaced data frame, can effectively reduce summation, filtering, combination and etc. workload, further decrease processor and memory
Expense, improve decoding capability.
Similar with above-mentioned change embodiment, the embodiment of the present invention can also be only pre- when predicting the prediction block data
The prediction block data of interlacing are surveyed, identical advantageous effect can be obtained with above-mentioned change embodiment, for example, implementing in the present invention
In another change embodiment of example, the target data frame includes MB of prediction frame;
The reference block data that target data frame is determined according to the video data, including:
The reference image frame that MB of prediction frame is determined according to the video data extracts block number from the reference image frame
According to the reference block data as the MB of prediction frame, wherein the reference image frame is the picture frame of filtered mistake;
It is described to carry out frame prediction according to the reference block data, prediction block data are obtained, including:
According to the reference block data, the prediction block number of the interlacing of the MB of prediction frame is predicted using motion estimation algorithm
According to.
It is considered that in order to reduce memory overhead, the reference block data of the reference image frame stored in memory may be interlacing
Reference block data (for example, the reference block data may be after the prediction block data of intra prediction frame are carried out interlacing processing
The prediction block data of the interlacing in memory are stored, schematic diagram is as shown in Figure 8), it is difficult to estimation is directly used in predict
Prediction block data are obtained, therefore, in a change embodiment of the embodiment of the present invention, the reference block data are interlacing
Reference block data, it is described according to the reference block data, the interlacing of the MB of prediction frame is predicted using motion estimation algorithm
Prediction block data, including:
Interpolation processing is carried out to the reference block data of the interlacing using interpolation algorithm, obtains the reference block number of whole rows
According to;
According to the reference block data of whole rows, the interlacing of the MB of prediction frame is predicted using motion estimation algorithm
Prediction block data.
For example, using the reference block data of the interlacing as the reference block data instance of odd-numbered line, using interpolation algorithm to institute
The reference block data for stating interlacing carry out interpolation processing, may include:It is handled by luminance pixel interpolation and generates even number line brightness number
According to, and using chroma pixel interpolation processing generation even number line chroma data, to form the reference block data of even number line, by institute
The reference block data for stating even number line combine the reference block data that can be obtained whole rows with the reference block data of the odd-numbered line.Please
With reference to figure 9, it illustrates a kind of interpolated reference block numbers that treated includes whole rows that embodiment of the present invention is provided
According to schematic diagram, the reference block data shown in Fig. 9 comprising whole rows are on the basis of prediction block data shown in Fig. 8 through interior
It is obtained after slotting processing, wherein " b " indicates that the reference block data of the odd-numbered line before interpolation processing, " c " indicate interpolation treatment procedure
The reference block data of the even number line of middle insertion.
By the above embodiment, interframe can be caused pre- for the reference block data of interlacing to avoid due to reference block data
The problem of survey can not carry out so that the reference block data for storing interlacing in memory are practical, and then reduce the expense of memory,
Improve decoding capability and efficiency.
It should be noted that above multiple change embodiments can be used in conjunction with one another, for example, can respectively obtain every
The residual error data of capable prediction block data and interlacing, and then asked using the prediction block data of the interlacing and the residual error data of interlacing
With obtain the image block data of interlacing, in this way, the workload of each step in decoding process can be greatly decreased, reduce processor and
The expense of memory improves decoding capability.
It is easily understood that the intra prediction frame and MB of prediction frame of the interlacing of decoded completion all can serve as to refer to
Picture frame is stored in memory, in order to be called in the decoding process of follow-up MB of prediction frame.
Step S103:Export the interlaced image frames.
By step S103, you can complete video decoding step provided in an embodiment of the present invention, it is contemplated that interlaced image frames
Picture quality problems may be had by directly playing, can be during follow-up rendering to the compensating property of interlaced image frames
Rendering in one of embodiment of the present invention change embodiment, after step s 103, may be used also with restoring video pictures
To include:Rendering of making up the difference is carried out to the interlaced image frames, generates the broadcasting pictures for including whole row frame data.Wherein, to not
Complete frame make up the difference rendering to restore frame picture as mature technology means in the prior art, and the embodiment of the present invention can be straight
It connects using or implements after being changed to the prior art, details are not described herein again.Since the screen of the mobile terminals such as mobile phone is smaller,
It is limited by human eye resolution capability, the above-mentioned video pictures and decode obtained video pictures difference completely very that user's naked eyes are seen
Small, therefore, embodiment of the present invention can restore video pictures to a certain extent by the means such as rendering of making up the difference and be broadcast
It puts, decoding capability can be greatly improved in the case of sacrifice image quality few as possible.
More than, for a kind of embodiment explanation of video encoding/decoding method provided by the invention, the embodiment of the present invention passes through to regarding
Decoded workload can be greatly decreased according to interlacing decoding is carried out in frequency, to reduce the load of processor and memory, improve hand
The terminal devices such as machine avoid playing interim card, the problems such as mobile phone is hot to the decoding capability of HD video.
In a specific implementation mode provided in an embodiment of the present invention, being decoded as odd-numbered line is decoded as with the interlacing
Example illustrates, and the video encoding/decoding method can specifically include following steps 1 to 7:
1:Decoder receives the video data of code stream form from NAL, is obtained by carrying out entropy decoding to the video data
Obtain a series of quantization parameter X;
2:Inverse quantization and inverse transformation are carried out to the quantization parameter, obtain residual error data D, wherein if target data frame
For intra prediction frame, then the residual error data of whole parity rows is preserved;If target data frame is MB of prediction frame, only preserve strange
Several rows of residual error data;
3:Decoder uses the header decoded from code stream to create a prediction PRED, the acquisition of prediction block PRED
It is obtained from following 2 kinds of situations (3.1 and 3.2):
3.1:If it is intra prediction frame, then the decoded of present frame (i.e. target data frame) is taken not filtered
Associated macroblock data (i.e. reference block data) carry out intra prediction and obtain prediction block data (PRED) in frame, need to only pass through frame here
Interior prediction obtains whole parity rows data of prediction block data PRED;Equal current blocks will not be again by intra prediction in use, only protect
Stay odd row data.
3.2:If it is MB of prediction frame, the associated macroblock data for the reference frame of former frame or a few frames filtered are taken
(i.e. reference block data) carry out estimation and obtain prediction block data PRED, need to only obtain prediction block number by inter-prediction here
According to the odd row data of PRED;Due to the estimation of inter-prediction be by the reference block data in the reference frame that filtered come
Inter-prediction is completed, since reference block data only remain odd row data, it is therefore desirable to fill into the even number of reference block data
Row data generate even number line brightness data specifically, can be handled by luminance pixel interpolation, and using at chroma pixel interpolation
Reason generates even number line chroma data.
4:It sums prediction block data PRED and residual error data D to obtain image block data uF;Wherein, if it is intra prediction
Frame, prediction block data PRED and residual error data D sum to obtain the parity rows data uF of image block data whole, pre- if it is interframe
Frame is surveyed, is summed to obtain the odd-numbered line of image block data using only prediction block data PRED and residual error data D odd row datas
Data uF.
5:Deblocking filtering is passed through to the odd row data uF of all image block datas of present frame (i.e. target data frame)
It is filtered, obtains the odd-numbered line F (i.e. interlacing block number evidence) of the decoding block of reconstruction image.
6:Odd-numbered line F (i.e. interlacing block number evidence) group of the decoding block of all reconstruction images is built up into complete odd-numbered line frame,
Form reconstruction image (i.e. interlaced image frames).
7:In addition, by reconstruction image (interlaced image frames) the composition reference frame deposit memory of all early stage odd-numbered line frames.
In the above-described embodiment, a kind of video encoding/decoding method is provided, corresponding, the present invention also provides one kind
Video decoding apparatus, the video decoding apparatus are the electronic equipments for having video decoding function, specifically, the video decodes
Equipment can be the mobile terminals such as mobile phone, laptop, Vehicular video player, can also be that the terminals such as desktop computer are set
It is standby.Referring to FIG. 2, Fig. 2 is a kind of schematic diagram of video decoding apparatus provided in an embodiment of the present invention.As shown in Fig. 2, described regard
Frequency decoding device 2 includes:Processor 20, memory 21, bus 22 and communication interface 23, the processor 20, communication interface 23
It is connected by bus 22 with memory 21;The computer journey that can be run on the processor 20 is stored in the memory 21
Sequence, the processor 20 execute video encoding/decoding method provided by the invention when running the computer program.
Wherein, memory 21 may include high-speed random access memory (RAM:Random AccessMemory), also may be used
Can further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By at least
One communication interface 23 (can be wired or wireless) realizes the communication between the system network element and at least one other network element
Connection can use internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 22 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data
Bus, controlling bus etc..Wherein, memory 21 is for storing program, and the processor 20 executes after receiving and executing instruction
Described program, the video encoding/decoding method that aforementioned any embodiment of the embodiment of the present invention discloses can be applied to processor 20
In, or realized by processor 20.
Processor 20 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 20 or the instruction of software form.Above-mentioned
Processor 20 can be general processor, including central processing unit (CentralProcessing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), application-specific integrated circuit
(ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 21, processor 20 reads the information in memory 21, the above method is completed in conjunction with its hardware.
Video decoding apparatus provided in an embodiment of the present invention is with video encoding/decoding method provided in an embodiment of the present invention for phase
Same inventive concept, advantageous effect having the same.
Fig. 3 is a kind of schematic diagram of computer readable storage medium provided in an embodiment of the present invention.As shown in figure 3, described
Computer program is stored on computer readable storage medium 3, the computer program may be implemented when being run by processor
The video encoding/decoding method provided by the invention.
Wherein, the computer readable storage medium 3 includes permanent and non-permanent, removable and non-removable media
It can be accomplished by any method or technique information storage.Information can be computer-readable instruction, data structure, program mould
Block or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static random-access is deposited
Reservoir (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory
(ROM), electrically erasable programmable read-only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM are read-only
Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or
Other magnetic storage apparatus or any other non-transmission medium can be used for storage and can be accessed by a computing device information.
Computer readable storage medium provided in an embodiment of the present invention and video encoding/decoding method provided in an embodiment of the present invention
For identical inventive concept, advantageous effect having the same.
It should be noted that the flow chart and block diagram in attached drawing show multiple embodiments according to the present invention system,
The architecture, function and operation in the cards of method and computer program product.In this regard, in flowchart or block diagram
Each box can represent a part for a module, section or code, the part packet of the module, section or code
Containing one or more executable instructions for implementing the specified logical function.It should also be noted that at some as the reality replaced
In existing, the function of being marked in box can also occur in a different order than that indicated in the drawings.For example, two continuous sides
Frame can essentially be basically executed in parallel, they can also be executed in the opposite order sometimes, this according to involved function and
It is fixed.It is also noted that the group of each box in block diagram and or flow chart and the box in block diagram and or flow chart
It closes, the dedicated hardware based system of function or action as defined in execution is realized, or can use specialized hardware
Combination with computer instruction is realized.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of division of logic function, formula that in actual implementation, there may be another division manner, in another example, multiple units or component can combine
Or it is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed phase
Coupling, direct-coupling or communication connection between mutually can be by some communication interfaces, the INDIRECT COUPLING of device or unit or
Communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme should all cover in the claim of the present invention and the range of specification.
Claims (10)
1. a kind of video encoding/decoding method, which is characterized in that including:
Obtain video data;
Interlacing decoding is carried out to the video data, obtains interlaced image frames, wherein the interlaced image frames include the frame of interlacing
Data;
Export the interlaced image frames.
2. video encoding/decoding method according to claim 1, which is characterized in that described to carry out interlacing solution to the video data
Code, obtains interlaced image frames, including:
The reference block data of target data frame are determined according to the video data;And institute is obtained according to the Digital video resolution
State the residual error data of target data frame;
Frame prediction is carried out according to the reference block data, obtains prediction block data;
The prediction block data and the residual error data are summed, image block data is obtained;
To described image block number according to interlacing filtering is carried out, interlacing block number evidence is obtained;
Corresponding to all interlacing block numbers of target data frame interlaced image frames will be formed according to combination.
3. video encoding/decoding method according to claim 2, which is characterized in that the target data frame includes intra prediction
Frame;
The reference block data that target data frame is determined according to the video data, including:
The block number evidence extracted the decoded of intra prediction frame from the video data and do not filtered, described in extracting
Block number is according to the reference block data as the intra prediction frame;
It is described to carry out frame prediction according to the reference block data, prediction block data are obtained, including:
Intra prediction is carried out according to the reference block data, obtains the prediction block data of intra prediction frame, the prediction block data
Whole row data including prediction block.
4. video encoding/decoding method according to claim 2, which is characterized in that the target data frame includes inter-prediction
Frame, it is described that the residual error data of the target data frame is obtained according to the Digital video resolution, including:
The residual error data of whole rows of interframe data frame is obtained according to the Digital video resolution;
Interlacing reservation is carried out to the residual error data of whole rows, obtains the residual error data of the interframe data frame.
5. video encoding/decoding method according to claim 2, which is characterized in that the target data frame includes inter-prediction
Frame;
The reference block data that target data frame is determined according to the video data, including:
The reference image frame that MB of prediction frame is determined according to the video data extracts block number according to work from the reference image frame
For the reference block data of the MB of prediction frame, wherein the reference image frame is the picture frame of filtered mistake;
It is described to carry out frame prediction according to the reference block data, prediction block data are obtained, including:
According to the reference block data, the prediction block data of the interlacing of the MB of prediction frame are predicted using motion estimation algorithm.
6. video encoding/decoding method according to claim 5, which is characterized in that the reference block data are the reference block of interlacing
Data, it is described according to the reference block data, the prediction block of the interlacing of the MB of prediction frame is predicted using motion estimation algorithm
Data, including:
Interpolation processing is carried out to the reference block data of the interlacing using interpolation algorithm, obtains the reference block data of whole rows;
According to the reference block data of whole rows, the prediction of the interlacing of the MB of prediction frame is predicted using motion estimation algorithm
Block number evidence.
7. video encoding/decoding method according to any one of claims 1 to 6, which is characterized in that the interlacing includes:Odd-numbered line
Or even number line.
8. video encoding/decoding method according to claim 1, which is characterized in that further include:
Rendering of making up the difference is carried out to the interlaced image frames, generates the broadcasting pictures for including whole row frame data.
9. a kind of video decoding apparatus, including:It memory, processor and is stored on the memory and can be in the processor
The computer program of upper operation, which is characterized in that perform claim requires 1 to 8 when the processor runs the computer program
Any one of them video encoding/decoding method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Video encoding/decoding method as described in any of the claims 1 to 8 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810028053.2A CN108366263A (en) | 2018-01-11 | 2018-01-11 | Video encoding/decoding method, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810028053.2A CN108366263A (en) | 2018-01-11 | 2018-01-11 | Video encoding/decoding method, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108366263A true CN108366263A (en) | 2018-08-03 |
Family
ID=63011055
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810028053.2A Pending CN108366263A (en) | 2018-01-11 | 2018-01-11 | Video encoding/decoding method, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108366263A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109068133A (en) * | 2018-09-17 | 2018-12-21 | 鲍金龙 | Video encoding/decoding method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007074746A (en) * | 2006-11-15 | 2007-03-22 | Hynix Semiconductor Inc | Method and apparatus for transmitting moving video, and method and apparatus for decoding moving video |
CN101848383A (en) * | 2009-03-24 | 2010-09-29 | 虹软(上海)科技有限公司 | Downsampling decoding method for MPEG2-format video |
CN104754332A (en) * | 2015-03-24 | 2015-07-01 | 深圳第一蓝筹科技有限公司 | Smart wearing device video image transmitting method |
CN104850815A (en) * | 2015-05-20 | 2015-08-19 | 杭州晟元芯片技术有限公司 | Decoding method for barcode displayed on mobile phone |
-
2018
- 2018-01-11 CN CN201810028053.2A patent/CN108366263A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007074746A (en) * | 2006-11-15 | 2007-03-22 | Hynix Semiconductor Inc | Method and apparatus for transmitting moving video, and method and apparatus for decoding moving video |
CN101848383A (en) * | 2009-03-24 | 2010-09-29 | 虹软(上海)科技有限公司 | Downsampling decoding method for MPEG2-format video |
CN104754332A (en) * | 2015-03-24 | 2015-07-01 | 深圳第一蓝筹科技有限公司 | Smart wearing device video image transmitting method |
CN104850815A (en) * | 2015-05-20 | 2015-08-19 | 杭州晟元芯片技术有限公司 | Decoding method for barcode displayed on mobile phone |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109068133A (en) * | 2018-09-17 | 2018-12-21 | 鲍金龙 | Video encoding/decoding method and device |
CN109068133B (en) * | 2018-09-17 | 2022-04-29 | 鲍金龙 | Video decoding method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101485014B1 (en) | Device and method for coding a video content in the form of a scalable stream | |
US20150373352A1 (en) | Method and apparatus for processing video | |
NO20170550A1 (en) | COMPUTER-READY STORAGE MEDIUM AND APPARATUS FOR CODING A MULTIPLE VIDEO IMAGE USING A SERIAL VALUE | |
US20220394310A1 (en) | Systems and methods for reducing blocking artifacts | |
US20080137734A1 (en) | Video encoding method, video decoding method, video encoding program, video decoding program, video encoding apparatus, and video decoding apparatus | |
CN101273638A (en) | Image processing device, image processing method, and program | |
US8594189B1 (en) | Apparatus and method for coding video using consistent regions and resolution scaling | |
US20190238842A1 (en) | Method and apparatus for extracting intra prediction mode information of square or rectangular block | |
JP3720850B2 (en) | Method and apparatus for encoding and decoding digitized images | |
CN103404145B (en) | Method for coding sequence of digitized images | |
CN113259671B (en) | Loop filtering method, device, equipment and storage medium in video coding and decoding | |
CN103109535B (en) | Image-reproducing method, image-reproducing apparatus, camera system and regenerative system | |
CN104506870A (en) | Video coding processing method and device suitable for multiple code streams | |
US8649615B2 (en) | Moving picture compression coding apparatus | |
JPH10224790A (en) | Filter eliminating block noise in companded image and filter method | |
CN108366263A (en) | Video encoding/decoding method, equipment and storage medium | |
US20060245501A1 (en) | Combined filter processing for video compression | |
CN115866297A (en) | Video processing method, device, equipment and storage medium | |
CN108900868B (en) | Video transmission method, device and storage medium based on H.264 | |
CN111212288B (en) | Video data encoding and decoding method and device, computer equipment and storage medium | |
CN110603811A (en) | Residual transform and inverse transform in video coding systems and methods | |
CN114173127A (en) | Video processing method, device, equipment and storage medium | |
JP2015080115A (en) | Image encoding device, image encoding method, and program | |
WO2022037458A1 (en) | Method, apparatus and device for constructing motion information list in video coding and decoding | |
Uchihara et al. | H. 264/AVC encoding control for fast stream joiner in interactive multivision video |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180803 |