CN101841715B - System and method for decoding video - Google Patents
System and method for decoding video Download PDFInfo
- Publication number
- CN101841715B CN101841715B CN 201010164997 CN201010164997A CN101841715B CN 101841715 B CN101841715 B CN 101841715B CN 201010164997 CN201010164997 CN 201010164997 CN 201010164997 A CN201010164997 A CN 201010164997A CN 101841715 B CN101841715 B CN 101841715B
- Authority
- CN
- China
- Prior art keywords
- data
- video
- video packets
- packets
- length
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 238000013500 data storage Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 4
- 239000000945 filler Substances 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a system and a method for decoding video. The system comprises a video resolving module, a storage module and a video decoding module, wherein the video resolving module is used for resolving frame image data to obtain a plurality of video data packets and effective data lengths of the video data packets; the storage module is used for storing the resolved video data packets and the effective data lengths of the video data packets, wherein the effective data length of each video data packet is positioned in front of the corresponding video data packet; and the video decoding module is used for reading the effective data lengths of the video data packets from the storage module and then decoding the video data packets by using the effective data lengths. The system has the advantages that: the video resolving module stores the effective data lengths of the video data packets with fixed size and inserts the effective data lengths into video code stream, thereby saving a storage space special for storing the effective data lengths of the video data packets and further improving the utilization efficiency of the storage space during decoding.
Description
[technical field]
The present invention relates to the multimedia process field, particularly a kind of video decoding project.
[background technology]
Realvideo 9 is a kind of multi-medium data coded formats, i.e. rmvb file, and wherein VB refers to dynamic code rate (variable bit), main application is the Streaming Media field, is fit to the instant media application of network.Comprise the information such as audio stream, video flowing and system flow in the multimedia of described Realvideo 9.
Because the hardware decoding chip generally includes separate audio decoder and video decode module, so need to before decoding, resolve to isolate voice data to multi-medium data and video data is given respectively corresponding audio decoder and the decoding of video decode module.Realvideo 9 wraps (packet) to be that the unit packing forms a media stream, and wherein video data normally is packaged into a frame frame image data with some video packets of data and stores.The size of described video packets of data all is the integral multiple of byte number, wherein except the effective video data, the filler that has also comprised some random lengths, these fillers are not valid data, are the integral multiple of byte number for the data stuffing with a video packets for size just.Every frame image data also comprises a frame head file, the frame head file record valid data length of each video packets of data in this two field picture.For the ease of video decode, also need the valid data length of these video packets of data is parsed.
Please refer to Fig. 1, it shows the structure block diagram of existing Realvideo9 video decoding system.Described video decoding system includes video parsing module 102, the first memory module 104, the second memory module 106 and video decode module 108.Described video decoding system usually take frame as unit to the video data processing of decoding, one frame image data comprises some video packets of data and a frame head file, and described frame head file record has the valid data length of each video packets of data in this frame image data.The frame head of 102 pairs of frame image datas of described video parsing module resolves to obtain the valid data length of some video packets of data and each video packets of data, described video packets of data is stored in the first memory module 104, such as the 0th video packets of data, the 1st video packets of data, the 2nd video packets of data etc., the valid data length that each video packets of data is corresponding is stored in the second memory module 106 simultaneously, such as the 0th video data packet length, the 1st video data packet length, the 2nd video data packet length etc.When decoding, described video decode module 108 is read a video packets of data from the first memory module 104, from the second memory module 106, read the valid data length of corresponding video packets of data, recycling valid data length is decoded to described video packets of data, namely extract valid data wherein, it is complete rear according to the next video packets of data of similar approach continuation decoding to decode.
But there is following defective in such scheme, because the number of the video packets of data that comprises in each two field picture is unfixing, and in order to guarantee that the second memory module 106 can be applicable to the decoding of various two field pictures, when being the second memory module 106 allocation space, can only distribute according to the possible situation of maximum, and in practical video applications, the number of the video packets of data that comprises in each frame image data reaches peaked extreme case and seldom occurs, the number of the video packets of data that next frame image data of most cases comprises all seldom, coming the size of assignment storage module 106 according to the possible situation of maximum like this is exactly a kind of waste to memory space, and utilance is relatively poor.
Therefore, be necessary to propose a kind of new technical scheme and solve above-mentioned shortcoming.
[summary of the invention]
The purpose of this part is to summarize some aspects of embodiments of the invention and briefly introduces some preferred embodiments.In this part and the application's specification digest and denomination of invention, may do a little simplification or omit to avoid making the purpose of this part, specification digest and denomination of invention fuzzy, and this simplification or omit and can not be used for limiting the scope of the invention.
One object of the present invention is to provide a kind of video decoding system, the memory space utilization ratio in the time of can improving video decode.
Another object of the present invention is to provide a kind of video encoding/decoding method, the memory space utilization ratio in the time that video decode can being improved.
In order to reach purpose of the present invention, according to an aspect of the present invention, the invention provides a kind of video decoding system, it comprises: the video parsing module is used for the parse for frame view data to obtain the valid data length of some video packets of data and each video packets of data; Memory module is used for video packets of data that storing and resolving goes out and the valid data length of each video packets of data, before wherein the valid data length of each video packets of data is positioned at corresponding video packets of data; The video decode module is used for reading the valid data length of a video packets of data in described memory module, utilize afterwards this this video packets of data of valid data length decoder.
Further, described frame image data adopts the Realvideo form to encode.
Further, the valid data length of each video packets of data takies the memory space of fixed size in described memory module.
Further, described fixed size is 16 bits.
Further, described video decode module comprises the packet length register, and it is used for storing the valid data length of the described video packets of data that reads in the described memory module.
In order to reach purpose of the present invention, according to a further aspect in the invention, the invention provides a kind of video encoding/decoding method, it comprises: the parse for frame view data is to obtain the valid data length of some video packets of data and each video packets of data; Before the valid data length of each video packets of data of parsing is stored in corresponding video packets of data; Read the valid data length of a video packets of data, according to the corresponding video packets of data of valid data length decoder of described video packets of data.
Further, described frame image data adopts the Realvideo form to encode.
Further, the valid data length of described video packets of data is stored with fixed size.
Further, described fixed size is 16 bits.
Compared with prior art, described video parsing module among the present invention is stored and inserts in video flowing with fixing size the valid data length of each video packets of data, so just saved the memory space of the valid data length that is used for specially storing each video packets of data, thus when having improved decoding for the utilization ratio of memory space.
[description of drawings]
In conjunction with reaching with reference to the accompanying drawings ensuing detailed description, the present invention will be more readily understood, structure member corresponding to same Reference numeral wherein, wherein:
Fig. 1 is the structure block diagram of existing video decoding system;
Fig. 2 is the video decoding system structured flowchart in one embodiment among the present invention; With
Fig. 3 is the video encoding/decoding method flow chart in one embodiment among the present invention.
[embodiment]
Detailed description of the present invention is mainly come the running of direct or indirect simulation technical solution of the present invention by program, step, logical block, process or other symbolistic descriptions.Be the thorough the present invention that understands, in ensuing description, stated a lot of specific detail.And when not having these specific detail, the present invention then may still can realize.Affiliated those of skill in the art use herein these descriptions and statement essential to the work that the others skilled in the art in the affiliated field effectively introduce them.In other words, be the purpose of the present invention of avoiding confusion, owing to method, program, composition and the circuit known are readily appreciated that, so they are not described in detail.
Alleged " embodiment " or " embodiment " refer to be contained in special characteristic, structure or the characteristic at least one implementation of the present invention herein.Different local in this manual " in one embodiment " that occur not are all to refer to same embodiment, neither be independent or the embodiment mutually exclusive with other embodiment optionally.In addition, represent the sequence of modules in method, flow chart or the functional block diagram of one or more embodiment and revocablely refer to any particular order, also be not construed as limiting the invention.
Do not adopt memory space independently to store the valid data length of each video packets in the video decoding project provided by the invention, store and insert in video flowing with fixing size the valid data length of each video packets and adopt, before the valid data length that is about to each video packets will be inserted this video packets of data, so just saved the memory space of the valid data length that is used for specially storing each video packets.
Please refer to Fig. 2, it shows video decoding system 200 structured flowchart in one embodiment among the present invention.Described video decoding system 200 includes video parsing module 202, memory module 204 and video decode module 206.
Described video parsing module 202 is used for the every frame image data in the video is resolved, and parses each video packets of data in the frame image data and the valid data length of each video packets of data from the frame head file.
Described memory module 204 is used for each video packets of data that storing and resolving goes out and the valid data length of each video packets of data, and wherein the valid data length of each video packets of data is stored in the front of corresponding video packets of data with fixed size.In one embodiment, described fixed size is 16 bits, such as, for the 0th video packets of data, insert the 0th video data packet length of the valid data length that represents this video packets of data in its front; For the 1st video packets of data, insert the 1st video data packet length of the valid data length that represents this video packets of data in its front; For the 2nd video packets of data, insert the 2nd video packets of data of the valid data length that represents this video packets of data etc. in its front.
Described video decode module 206 comprises a packet length register.In one embodiment, described video decode module 206 is at first read the valid data length of a video packets of data of fixed size from described memory module 204, stores the valid data length of fixed size into described packet length register; Then utilize the corresponding video packets of data of valid data length decoder in the described packet length memory, after the video packets of data of having decoded, continue according to the similar approach next video packets of data of decoding.
Can find out in the present invention, each video packets of data that described video parsing module 202 will parse and the valid data length of each video packets of data are stored in the memory module 204, and the valid data length of each video packets of data is stored in each corresponding video packets of data front with regular length, thereby when having saved memory space, has improved the service efficiency of memory space.
Please refer to Fig. 3, it shows video encoding/decoding method 300 of the present invention method flow diagram in one embodiment, and described method 300 may further comprise the steps.
Parse the valid data length of some video packets of data in each frame image data and each video packets of data in the frame head file of described video parsing module every frame image data from video data.
The valid data length of each video packets of data that described video decode module will parse is stored in the front of corresponding video packets of data with fixed size and is kept in the described memory module.In one embodiment, the valid data length of described each video packets of data is the front that is stored in corresponding video packets of data with fixed size; Described fixed size can be 16bit, and namely the valid data length of each video packets of data is stored in the front of corresponding video packets of data with the 16bit size.
Described video decode inside modules comprises a packet length register, and described video decode module reads the valid data length of a video packets of data in the described memory module, then utilizes this this video packets of data of valid data length decoder.In one embodiment, described video decode module is at first read the valid data length of the video packets of data of 16 bits from described memory module; Store the data of described 16 bits into described packet length register; Then utilize the valid data length of the video packets of data in the described packet length memory to extract the interior valid data of corresponding video packets of data; It is complete rear according to next the bag until all video packets of data of decoding of similar approach continuation decoding to decode.
Above-mentioned explanation has fully disclosed the specific embodiment of the present invention.It is pointed out that and be familiar with the scope that any change that the person skilled in art does the specific embodiment of the present invention does not all break away from claims of the present invention.Correspondingly, the scope of claim of the present invention also is not limited only to described embodiment.
Claims (7)
1. video decoding system is characterized in that it comprises:
The video parsing module is used for the parse for frame view data to obtain the valid data length of some video packets of data and each video packets of data, and described frame image data adopts the Realvideo form to encode;
Memory module, be used for video packets of data that storing and resolving goes out and the valid data length of each video packets of data, the wherein valid data length interval of video packets of data and video packets of data storage, and before the valid data length of each video packets of data is positioned at corresponding video packets of data;
The video decode module is used for reading the valid data length of a video packets of data in described memory module, utilize afterwards this this video packets of data of valid data length decoder.
2. video decoding system according to claim 1, it is characterized in that: the valid data length of each video packets of data takies the memory space of fixed size in described memory module.
3. video decoding system according to claim 2, it is characterized in that: described fixed size is 16 bits.
4. arbitrary described video decoding system according to claim 1-3, it is characterized in that: described video decode module comprises the packet length register, it is used for storing the valid data length of the described video packets of data that reads in the described memory module.
5. video encoding/decoding method is characterized in that it comprises:
The parse for frame view data is to obtain the valid data length of some video packets of data and each video packets of data, and described frame image data adopts the Realvideo form to encode;
With the valid data length interval storage of the video packets of data that parses and video packets of data, and before the valid data length of each video packets of data is stored in corresponding video packets of data;
Read the valid data length of a video packets of data, according to the corresponding video packets of data of valid data length decoder of described video packets of data.
6. video encoding/decoding method according to claim 5, it is characterized in that: the valid data length of described video packets of data is stored with fixed size.
7. video encoding/decoding method according to claim 6, it is characterized in that: described fixed size is 16 bits.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010164997 CN101841715B (en) | 2010-05-07 | 2010-05-07 | System and method for decoding video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010164997 CN101841715B (en) | 2010-05-07 | 2010-05-07 | System and method for decoding video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101841715A CN101841715A (en) | 2010-09-22 |
CN101841715B true CN101841715B (en) | 2013-04-03 |
Family
ID=42744785
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010164997 Expired - Fee Related CN101841715B (en) | 2010-05-07 | 2010-05-07 | System and method for decoding video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101841715B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102868930B (en) * | 2012-09-06 | 2015-04-08 | 珠海全志科技股份有限公司 | Method and device for decoding transport-stream data packets |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1172400A (en) * | 1996-02-08 | 1998-02-04 | 三星电子株式会社 | High speed data grammar ayalysis device |
KR20010060592A (en) * | 1999-12-27 | 2001-07-07 | 박종섭 | Video Decoder |
CN101425864A (en) * | 2007-10-30 | 2009-05-06 | 中兴通讯股份有限公司 | Data broadcast sending and receiving method |
CN101534125A (en) * | 2009-04-24 | 2009-09-16 | 北京空间机电研究所 | Super-long data variable-length coding synthesis system |
-
2010
- 2010-05-07 CN CN 201010164997 patent/CN101841715B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1172400A (en) * | 1996-02-08 | 1998-02-04 | 三星电子株式会社 | High speed data grammar ayalysis device |
KR20010060592A (en) * | 1999-12-27 | 2001-07-07 | 박종섭 | Video Decoder |
CN101425864A (en) * | 2007-10-30 | 2009-05-06 | 中兴通讯股份有限公司 | Data broadcast sending and receiving method |
CN101534125A (en) * | 2009-04-24 | 2009-09-16 | 北京空间机电研究所 | Super-long data variable-length coding synthesis system |
Also Published As
Publication number | Publication date |
---|---|
CN101841715A (en) | 2010-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11677867B2 (en) | Data structure for physical layer encapsulation | |
CN1162007C (en) | Programmable filter for removing filling bits from MPEG-2 bit stream | |
US20080317134A1 (en) | Video Coding | |
CN101321279B (en) | Method and system for processing data | |
US10469914B2 (en) | Apparatus and method for delivering and receiving multimedia data in hybrid network | |
JP4332267B2 (en) | Encoder and decoder | |
CN101404764B (en) | Internal memory management method in audio/video decoding course | |
US20060153290A1 (en) | Code conversion method and device thereof | |
CN101729908A (en) | Synchronous multiplexing method for video and audio of transmission stream | |
CN109660805A (en) | Audio-visual synchronization optimization method, storage medium, equipment and system in decoding broadcasting | |
US20110013702A1 (en) | Data-rate adjusting device, data feeding system, and computer-readable medium | |
CN101841715B (en) | System and method for decoding video | |
US20010009567A1 (en) | MPEG decoding device | |
US20110096775A1 (en) | System and method for multiplexing and streaming contents | |
CN109600616A (en) | A kind of code stream packaging method based on H.264 video compression standard | |
CN102724553A (en) | Image encoding method, image decoding method, image encoder and image decoder | |
CN113873176B (en) | Media file merging method and device | |
JP2000307534A (en) | Data processing unit and data transmitter | |
KR100582033B1 (en) | Data management apparatus and method between dsp and memory | |
JP4122624B2 (en) | Data receiving method and data receiving apparatus | |
JP2000307647A (en) | Data reception device | |
STANDARD | SDTI Content Package Format (SDTI-CP) | |
US8094712B2 (en) | Apparatus for processing a data stream having a hierarchical layer structure and including encoded data sets and raw data sets and method thereof | |
KR100713623B1 (en) | The system and method for processing network abstraction layer in the coupled frame of general processor and video processor | |
JP2000308024A (en) | Method and device for transmitting data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP01 | Change in the name or title of a patent holder |
Address after: 214028 national integrated circuit design (21-1), Changjiang Road, New District, Jiangsu, Wuxi, China, China (610) Patentee after: Zgmicro Corporation Address before: 214028 national integrated circuit design (21-1), Changjiang Road, New District, Jiangsu, Wuxi, China, China (610) Patentee before: WUXI VIMICRO Corp. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130403 |