CN101184245A - Video coding method - Google Patents
Video coding method Download PDFInfo
- Publication number
- CN101184245A CN101184245A CN 200710304117 CN200710304117A CN101184245A CN 101184245 A CN101184245 A CN 101184245A CN 200710304117 CN200710304117 CN 200710304117 CN 200710304117 A CN200710304117 A CN 200710304117A CN 101184245 A CN101184245 A CN 101184245A
- Authority
- CN
- China
- Prior art keywords
- macro block
- dsp
- block group
- macro
- video coding
- 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
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a video encoding method, applicable for the AVS field. The technological proposal comprises that divide a frame of original image to be encoded into a plurality of macro blocks; divide the macro blocks into macro block groups with each group comprising at least two blocks; save the information required in processing the macro blocks into a DSP storage unit from an external storage unit; conduct movement analysis in turn of all the macro blocks within the macro block groups and save the movement analysis results into the DSP storage unit; conduct compensation coding in turn of all the macro blocks within the macro block groups and save the compensation coding results into the DSP storage unit; conduct entropy coding in turn of all the macro blocks within the macro block groups to acquire and output the bit stream to the external storage unit. The invention has the advantage of improving greatly the data access speed by adopting the technical proposal, which solves the efficiency problem of the AVS video encoding program operation on the DSP platform.
Description
Technical field
The present invention relates to multimedia technology field, relate in particular to a kind of method of video coding.
Background technology
With MPEG-4 AVC (H.264) and AVS is that the second generation digital audio/video source encoding standard of representative is obtaining increasingly extensive application.Along with the development of large scale integrated circuit technology, (Digital Signal Processor, DSP) with its powerful computing ability, the digital video coding system that can be second generation source encoding standard provides implementation to digital signal processor.
But the AVS standard relates to multinomial complicated algorithm, needs huge data processing amount, still has contradiction between the disposal ability of this and DSP.AVS video coding system will operation in real time on the DSP platform, and inevitable requirement is made optimization, and can quality that optimize work is directly connected to whole system normally, work in real time.
Summary of the invention
The objective of the invention is to propose a kind of method of video coding, be applicable to the AVS field, can improve data access speed, effectively solve the operational efficiency problem of AVS video coding program on the DSP platform.
For reaching this purpose, the present invention by the following technical solutions:
A kind of method of video coding is applicable to the AVS field, may further comprise the steps:
A, the original image that a frame is to be encoded are divided into macro block;
B, will be no less than two macroblock partitions and become a macro block group;
C, the information that will handle the macro block group and need are saved in from external memory storage in the memory cell of DSP;
The information of preserving in D, the memory cell according to DSP described in the step C is carried out motion analysis successively to all macro blocks in the described macro block group, and the motion analysis result is kept in the memory cell of described DSP;
The motion analysis result who preserves in E, the memory cell according to DSP described in the step D compensates coding successively to all macro blocks in the described macro block group, and the compensation coding result is kept in the memory cell of described DSP;
The compensation coding result who preserves in the memory cell of DSP described in motion analysis result who preserves in F, the memory cell and the step e according to DSP described in the step D, all macro blocks in the described macro block group are carried out entropy coding successively, obtain bit stream and output to external memory storage.
Among the step B, division result is that the number of macroblocks of delegation's band of described original image is the integral multiple of the number of macroblocks in the macro block group.
Among the step C, the information that the mode of employing direct memory access (DMA) will be handled the macro block group to be needed is saved in from external memory storage in the memory cell of DSP.
Among the step C, the information that described processing macro block group needs comprises inter-frame forecast mode, intra prediction mode, motion vector, the image reference index information of macro block group initial data, all macro blocks adjacent with the current macro group.
Among the step D, described motion analysis result comprise inter-frame forecast mode, motion vector, motion-vector prediction error, image reference index, whether may skip.
In the step e, described compensation coding result comprises that intra prediction mode, the coefficient residual error distance of swimming are to, cbp, skip whether.
Step D is further comprising the steps of:
The copy of described inter-frame forecast mode, motion vector, image reference index is saved in the external memory storage.
Step e is further comprising the steps of:
The copy of described intra prediction mode is saved in the external memory storage.
In the step F, described motion analysis result is the motion-vector prediction error.
Described being saved in the external memory storage is the mode that adopts direct memory access (DMA).
Adopted technical scheme of the present invention, in each step to the processing of macro block group, all data all can be taken from the DSP, have significantly improved data access speed, efficiently solve the operational efficiency problem of AVS video coding program on the DSP platform.
Description of drawings
Fig. 1 is the flow chart of video coding in the specific embodiment of the invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing and by embodiment.
The main thought of technical solution of the present invention is the characteristics according to the AVS canonical algorithm, whole encoding process process is divided into three phases, in each stage one group of macro block is focused on, the instruction and data high-speed cache of DSP is fully used, thereby improve encoding process efficient greatly, be applicable to the AVS video coding of image resolution ratios such as QVGA, CIF, VGA, D1.
Fig. 1 is the flow chart of video coding in the specific embodiment of the invention.As shown in Figure 1, the video coding flow process may further comprise the steps:
Intra prediction mode among step 107, the reading and saving motion-vector prediction sum of errors compensation coding result in the memory cell of DSP, among the motion analysis result, the coefficient residual error distance of swimming are to, cbp, skip whether, each macro block in the macro block group is carried out entropy coding successively, obtain corresponding bit stream, and output in the external memory storage.
The program cycle operation, after all macro block groups of traversal one frame original image, the complete bit stream of this frame original image is promptly exported and is finished.
The size of code that the macro block group is carried out the motion analysis step is about 24Kbytes, and the size of code of compensation coding step is about 14Kbytes, and the size of code of entropy coding step is about 4Kbytes.The instruction CACHE size of the DM642 DSP of TI company is 16Kbytes, and as seen in a macro block group processing procedure, whole or most of codes can hit in instruction CACHE.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (10)
1. the method for a video coding is applicable to the AVS field, it is characterized in that, may further comprise the steps:
A, the original image that a frame is to be encoded are divided into macro block;
B, will be no less than two macroblock partitions and become a macro block group;
C, the information that will handle the macro block group and need are saved in from external memory storage in the memory cell of DSP;
The information of preserving in D, the memory cell according to DSP described in the step C is carried out motion analysis successively to all macro blocks in the described macro block group, and the motion analysis result is kept in the memory cell of described DSP;
The motion analysis result who preserves in E, the memory cell according to DSP described in the step D compensates coding successively to all macro blocks in the described macro block group, and the compensation coding result is kept in the memory cell of described DSP;
The compensation coding result who preserves in the memory cell of DSP described in motion analysis result who preserves in F, the memory cell and the step e according to DSP described in the step D, all macro blocks in the described macro block group are carried out entropy coding successively, obtain bit stream and output to external memory storage.
2. the method for a kind of video coding according to claim 1 is characterized in that, among the step B, division result is that the number of macroblocks of delegation's band of described original image is the integral multiple of the number of macroblocks in the macro block group.
3. the method for a kind of video coding according to claim 1 is characterized in that, among the step C, the information that the mode of employing direct memory access (DMA) will be handled the macro block group to be needed is saved in from external memory storage in the memory cell of DSP.
4. the method for a kind of video coding according to claim 1, it is characterized in that, among the step C, the information that described processing macro block group needs comprises inter-frame forecast mode, intra prediction mode, motion vector, the image reference index information of macro block group initial data, all macro blocks adjacent with the current macro group.
5. the method for a kind of video coding according to claim 1 is characterized in that, among the step D, described motion analysis result comprise inter-frame forecast mode, motion vector, motion-vector prediction error, image reference index, whether may skip.
6. the method for a kind of video coding according to claim 1 is characterized in that, in the step e, described compensation coding result comprises that intra prediction mode, the coefficient residual error distance of swimming are to, cbp, skip whether.
7. the method for a kind of video coding according to claim 5 is characterized in that, step D is further comprising the steps of:
The copy of described inter-frame forecast mode, motion vector, image reference index is saved in the external memory storage.
8. the method for a kind of video coding according to claim 6 is characterized in that, step e is further comprising the steps of:
The copy of described intra prediction mode is saved in the external memory storage.
9. the method for a kind of video coding according to claim 5 is characterized in that, in the step F, described motion analysis result is the motion-vector prediction error.
10. according to the method for claim 7 or 8 described a kind of video codings, it is characterized in that described being saved in the external memory storage is the mode that adopts direct memory access (DMA).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710304117 CN101184245A (en) | 2007-12-25 | 2007-12-25 | Video coding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710304117 CN101184245A (en) | 2007-12-25 | 2007-12-25 | Video coding method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101184245A true CN101184245A (en) | 2008-05-21 |
Family
ID=39449291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710304117 Pending CN101184245A (en) | 2007-12-25 | 2007-12-25 | Video coding method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101184245A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101895746A (en) * | 2009-05-22 | 2010-11-24 | 索尼公司 | Decoding processing apparatus and method, data distribution program and decoding handling procedure |
CN101404773B (en) * | 2008-11-25 | 2011-03-30 | 江苏大学 | Image encoding method based on DSP |
-
2007
- 2007-12-25 CN CN 200710304117 patent/CN101184245A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404773B (en) * | 2008-11-25 | 2011-03-30 | 江苏大学 | Image encoding method based on DSP |
CN101895746A (en) * | 2009-05-22 | 2010-11-24 | 索尼公司 | Decoding processing apparatus and method, data distribution program and decoding handling procedure |
CN101895746B (en) * | 2009-05-22 | 2013-04-24 | 索尼公司 | Decode processing apparatus, decode processing method, data distribution program, and decode processing program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190028729A1 (en) | Mode identification data reducing method for intra-prediction coding | |
CN1290342C (en) | Apparatus capable of performing both block-matching motion compensation and global motion compensation and method thereof | |
CN101610413B (en) | Video coding/decoding method and device | |
CN107810635A (en) | Method and apparatus based on illuminance compensation prediction block in image compiling system | |
CN105357541A (en) | Method and apparatus for coding video | |
AU2018202259B2 (en) | Image predict coding method, image predict coding device, image predict coding program, image predict decoding method, image predict decoding device, and image predict decoding program | |
CN105959690A (en) | Video encoding method for encoding division block, video decoding method for decoding division block, and recording medium for implementing the same | |
CN105230021B (en) | The dictionary encoding of screen content and decoding | |
CN103975599A (en) | Method, device, and program for coding and decoding of images | |
CN1825976A (en) | Method of decoding a digital video sequence and related apparatus | |
CN1968420B (en) | Methods of image processing for video encoder and decoder | |
CN103873872B (en) | Reference pictures management method and device | |
CN101554058A (en) | Method and apparatus for encoding and decoding based on intra prediction | |
CN101729889B (en) | Encoding/decoding method of digital media data and bit stream processing method thereof | |
CN108353174A (en) | Parallel arithmetic decoding technique | |
CN101790096A (en) | Encoding and decoding method and device based on double prediction | |
CN101184245A (en) | Video coding method | |
CN100337481C (en) | A MPEG-2 to AVS video code stream conversion method and apparatus | |
TW201531092A (en) | Motion video predict coding method, motion video predict coding device, motion video predict coding program, motion video predict decoding method, motion video predict decoding device, and motion video predict decoding program | |
CN106254872A (en) | The method of entropy transform coding and relevant apparatus | |
CN114205622B (en) | HEVC standard-based intra-frame prediction 64X64 CU preprocessing method | |
JP2010010768A (en) | Image encoding apparatus and image encoding method | |
CN101516030B (en) | Data processing circuit and processing method with multi-format image coding and decoding functions | |
JP2007020123A (en) | Apparatus and method for detecting motion | |
TW201016017A (en) | Memory management method and system of video encoder |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20080521 |