CN1658169A - Memory control method and correlation device - Google Patents
Memory control method and correlation device Download PDFInfo
- Publication number
- CN1658169A CN1658169A CN 200410005039 CN200410005039A CN1658169A CN 1658169 A CN1658169 A CN 1658169A CN 200410005039 CN200410005039 CN 200410005039 CN 200410005039 A CN200410005039 A CN 200410005039A CN 1658169 A CN1658169 A CN 1658169A
- Authority
- CN
- China
- Prior art keywords
- data
- bit stream
- title
- internal memory
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
This invention discloses a memory control method and the related device. The method includes that it can store a bit stream in a memory unit, and the a title is read from the memory unit corresponding to the bit stream. Besides, the data stored in the memory unit can be rearranged in pat of the area which store the bit stream. Among these, the rearrangement procedure is removing or copy the data in the memory unit to the part which has been read in the storage area which storages the data stream.
Description
Technical field
The present invention relates to a kind of internal memory control method and relevant apparatus, particularly a kind of internal memory control method and the relevant apparatus that can promote buffered usefulness.
Background technology
In some emerging encryption algorithms, to consider in response to control of output buffering or bit rate (bit-rate) etc., the coded data of a frame (frame) can be placed in the middle of other frame.Frame structure with MPEG message layer three (MP3, MPEG audio layer-3) is an example, the marginal information (Side Information) that the frame title of one frame (frame header) comprises MP3 is positioned in the middle of this frame, but the coded data of this frame can be positioned in the middle of the former frame (preceding frame).Other is an example with the specification of the Ogg page structure (Oggpage structure) of a new development, the page head of one page (page header) several packets (packet) that can continue afterwards, the most last packet of this page may be because of some factor, as buffer sizes restriction, bit rate control etc., and only partly packet data encapsulation (Packing) is in this page or leaf, and the data of not finishing encapsulation as yet can continue to be packaged in down a page head subsequent data bag afterwards of one page.Above-mentioned encryption algorithm has a common problem, is exactly to belong to same frame in logic or separated by the title between two consecutive frames or two adjacent page with the coded data of one page, therefore increases the difficulty of the coded data of these discontinuous arrangements of decoding.
Fig. 1 illustrates the buffered method in the known decode procedure, wherein F
iRepresent I frame (frame), F
I-1Represent I-1 frame, the rest may be inferred.Be stored in the title H of buffer zone B11
i, data D
i 1, D
i 2, with frame F
iHave identical subscript i, this represents title H
iWith data D
i 1, D
i 2Belong to frame F in logic
i, and data D
i 1, D
i 2Subscript the 1, the 2nd, be used for the difference by two consecutive frame F
I-1, F
iBetween title H
iThe data D that separates
i 1, D
i 2In response to the problem of the discontinuous arrangement of above-mentioned coded data, the buffered method of Fig. 1 is to assign (allocate) buffer zone B12 outside the buffer zone B11 of a memory storage one bit stream to be decoded in addition, and with frame F
I-1Central data D
i 1With frame F
iCentral data D
i 2Copy to buffer zone B12 respectively, in the middle of buffer zone B12, to form continuously arranged data D
i 1, D
i 2For further decoding.Because the buffered method of Fig. 1 expends extra buffer zone B12,, all can improve accordingly for the demand of internal memory no matter therefore whether buffer zone B12 and buffer zone B11 are arranged on same internal memory.Please refer to Fig. 2, Fig. 2 is the synoptic diagram of another buffered method.The buffered method of Fig. 2 then must be analyzed the data stream that (parse) reads from disc 205, and with the title H in this data stream
I-1, H
i... with data D
I-1 1, D
I-1 2, D
i 1, D
i 2... be stored in buffer zone B21, B22 respectively.The buffered method of Fig. 2 can bring inconvenience in the enforcement of some embedded system (embedded system).The known technology of Fig. 1 and Fig. 2 all has some shortcomings, remains to be improved.
Summary of the invention
Therefore fundamental purpose of the present invention is to provide a kind of internal memory control method and relevant apparatus, to address the above problem.
The invention provides a kind of internal memory control method.This method has: store a bit stream at an internal memory; Read a title from this internal memory corresponding to this bit stream; And, rearrange the data that (rearrange) is stored in this internal memory in the central some in zone that stores this bit stream according to this title.Wherein, this to rearrange step be mobile (move) or duplicate the part that the data in (copy) this internal memory have been read to the zone that stores this bit stream.
The present invention also provides a kind of memory control circuit accordingly when said method is provided.This circuit has: an internal memory is used for storing a bit stream; One title parser (header parser) is coupled to this internal memory, uses from this internal memory and reads a title corresponding to this bit stream; And one rearrange (rearrangement) unit, is coupled to this internal memory and this title parser, is used for rearranging the data that (rearrange) is stored in this internal memory according to this title in the some that stores in the middle of the zone of this bit stream.
One of benefit of the present invention is, internal memory control method provided by the invention and relevant apparatus directly form continuously arranged data for further decoding in the zone that stores this bit stream, do not need outside the zone that stores this bit stream, to assign (allocate) other zone in addition or other internal memory is set in addition, therefore can reduce the specification of memory storage capacity and corresponding cost.
The accompanying drawing summary
Fig. 1 is the synoptic diagram of known buffered.
Fig. 2 is the synoptic diagram of known buffered.
Fig. 3 is the synoptic diagram of internal memory control method of the present invention.
Fig. 4 is the synoptic diagram of relevant apparatus of the method for Fig. 3.
Fig. 5 is the synoptic diagram of first embodiment of the method for Fig. 3.
Fig. 6 is the synoptic diagram of second embodiment of the method for Fig. 3.
The reference numeral explanation
205 discs
408,442 bit streams/signal
410 internal memories
420 title parsers
430 rearrange the unit
440 code translators
B11, B12, B21, B22, B41 buffer zone
The F frame
H, D buffer zone stored contents
Embodiment
Please also refer to Fig. 3, Fig. 4, with the first half (Fig. 5 A) of Fig. 5.Fig. 3 is the synoptic diagram of internal memory control method of the present invention.Fig. 4 is the synoptic diagram of relevant apparatus of the method for Fig. 3.And Fig. 5 A is the buffer zone synoptic diagram of first embodiment of the method for Fig. 3, wherein F
iRepresent I frame (frame), F
I-1Represent I-1 frame, the rest may be inferred.Be stored in the data D of buffer zone B41
I-1 1, title H
I-1, data D
I-1 2, data D
i 1, title H
i, data D
i 2, data D
I+1 1... to put in order be putting in order of data corresponding in the middle of the bit stream 408 of Fig. 4 and title.That is to say the stored contents D of the buffer zone B41 shown in Fig. 5 A
I-1 1, H
I-1, D
I-1 2, D
i 1, H
i, D
i 2, D
I+1 1... be that the bit stream 408 of Fig. 4 is stored in still untreated original (raw) information behind the internal memory 410.At above-mentioned untreated raw information, the invention provides a kind of internal memory control method that can promote buffered usefulness.The order of following steps and non-limiting scope of the present invention, this method is described as follows.
Step 310: store a bit stream 408 in an internal memory 410;
Step 320: read a title H from internal memory 410 corresponding to bit stream 408 with title parser (header parser) 420
i
Step 330: according to title H
i, to rearrange a part of F of (rearrangement) unit 430 in the middle of the area B 41 that stores bit stream 408
iRearrange the data D that (rearrange) is stored in internal memory 410
i 2And
Step 340: according to title H
iBe stored in the data D of internal memory 410 with code translator 440 decodings
i 1, D
i 2, to produce decoded signal 442.
The mode of implementing unit 430 that rearranges of the present invention can adopt exclusive hardware circuit (specific circuit), as a direct memory access module (DMA module, Direct MemoryAccess module), or adopt a program (programexecuted on a CPU) via the CPU (central processing unit) execution.Indicate as Fig. 4, the unit 430 that rearranges of present embodiment is to be a direct memory access module.Because the title H of present embodiment
iHas data D
i 2At frame F
iDirect or implicit information such as central position and length, therefore title parser 420 reads title H in step 320
iAfter, promptly obtain data D
i 2Position and length.So rearranging unit 430 in the step 330 can be according to 420 output data D of title parser
i 2Position and length, move or duplicate in the internal memory 410 the second data D corresponding to bit stream 408
i 2Store title H among the part that has been read to the area B 41 that stores bit stream 408---Fig. 5 A
iThe zone so that the second data D after moving or duplicating
i 2With in the internal memory 410 corresponding to the first data D of bit stream 408
i 1Become continuously arranged data D
i 1, D
i 2Above-mentioned buffered result is shown in the Lower Half (Fig. 5 B) of Fig. 5, and wherein whether the legacy data of hatched example areas need rearrange data D
i 2In deletion be selection for embodiment, and non-limiting scope of the present invention.Because step 330 can be earlier from data D
i 2Front end begin to move in batches or duplicate than subsection with at least one, even data D
i 2Move to frame F
iThe translational movement of front end is less than data D
i 2Length, can not hinder enforcement of the present invention yet.Wherein this at least one than subsection can be one, a byte, several positions, several bytes ... or even title H
iThe combination than subsection of multiple different lengths such as length.
Method of the present invention is at frame F
iThe above-mentioned steps 310,320,330,340 of being carried out is applicable to start frame F similarly
0Outside each frame F
1, F
2..., F
I-1, F
i, F
I+1..., so the code translator 440 title H that can be exported according to title parser 420
iThe data D that is had
i 2Position and length and the former frame F that had been read
I-1Title H
I-1The data D that is had
i 1Position and relevant information such as length, continuously arranged data D shown in decoding Fig. 5 B
i 1, D
i 2Above-mentioned start frame F
0Data D
0Be for being arranged in frame F continuously
0Data, therefore the present invention is directed to start frame F
0Can execution in step 330, and step 340 is according to title H
0Be stored in the data D of internal memory 410 with code translator 440 decodings
0, to produce decoded signal 442.
To be stored in the data D of buffer zone B41 shown in Fig. 5 A
I-1 1, title H
I-1, data D
I-1 2, data D
i 1, title H
i, data D
i 2, data D
I+1 1... put in order, more than Shuo Ming first embodiment goes for MP3, MPEG2 multichannel and extends frame (MPEG2 Multichannel extensionframe), Ogg page structure (Ogg page structure) or the relevant specification of deriving.According to this first embodiment, no matter bit stream 408 is to meet MP3, the extension of MPEG2 multichannel frame, Ogg page structure or other specification, so long as title H
iWith the data D that is moved or is replicated
i 2Position before rearranging is corresponding to the same frame of bit stream 408 or same packet, all should belong to the covering scope of patent of the present invention.
The first embodiment of the present invention also provides a kind of memory control circuit 400 accordingly when said method is provided.Circuit 400 includes: an internal memory 410 is used for storing a bit stream 408; One title parser 420 is coupled to internal memory 410, uses from internal memory 410 and reads a title H corresponding to bit stream 408
iOne rearranges unit 430, is coupled to internal memory 410 and title parser 420, is used for according to title H
iA part of F in the middle of the area B 41 that stores bit stream 408
iRearrange the data D that is stored in internal memory 410
i 2And a code translator 440, be coupled to internal memory 410 and title parser 420, be used for according to title H
iDecoding is stored in the data D of internal memory 410
i 1, D
i 2, to produce decoded signal 442.In the present embodiment, title parser 420 can be arranged on one with code translator 440 and integrate (integrated) unit, is a direct memory access module and rearrange that unit 430 comes down to.As previously described, rearrange unit 430 and can move or duplicate in the internal memory 410 the second data D corresponding to bit stream 408
i 2The part that has been read to the area B 41 that stores bit stream 408 is so that the second data D after moving or duplicating
i 2With in the internal memory 410 corresponding to the first data D of bit stream 408
i 1Become continuously arranged data D
i 1, D
i 2No matter bit stream 408 is to meet MP3, the extension of MPEG2 multichannel frame, Ogg page structure or other specification, so long as title H
iWith the data D that is moved or is replicated
i 2Position before rearranging is corresponding to the same frame of bit stream 408 or same packet, all should belong to the covering scope of patent of the present invention.
Second embodiment shown in Figure 6 is roughly similar to first embodiment shown in Figure 5, and its Discrepancy Description is as follows.In this second embodiment, step 330 is according to title H
i, to rearrange a part of F of unit 430 in the middle of the area B 41 that stores bit stream 408
I-1, F
iRearrange the data D that is stored in internal memory 410
i 1Because title H
iHas data D
i 2At frame F
iDirect or implicit information such as central position and length, therefore title parser 420 reads title H in step 320
iAfter, promptly obtain data D
i 2Position and length.Because method of the present invention is at frame F
iThe above-mentioned steps 310,320,330,340 of being carried out is applicable to each frame F similarly
1, F
2..., F
I-1, F
i, F
I+1..., can be so rearrange unit 430 in the step 330 according to 420 output data D of title parser
i 1, D
i 2Position and information such as length, move or duplicate in the internal memory 410 the first data D corresponding to bit stream 408
i 1Store title H among the part that has been read to the area B 41 that stores bit stream 408---Fig. 6 A
iThe zone so that the first data D after moving or duplicating
i 1With in the internal memory 410 corresponding to the second data D of bit stream 408
i 2Become continuously arranged data D
i 1, D
i 2Above-mentioned buffered result is shown in Fig. 6 B, and wherein whether the legacy data of hatched example areas need rearrange data D
i 1In deletion be selection for embodiment, and non-limiting scope of the present invention.The title H that last code translator 440 can be exported according to title parser 420
iThe data D that is had
i 2Position and length and the former frame F that had been read
I-1Title H
I-1The data D that is had
i 1Position and relevant information such as length, continuously arranged data D shown in decoding Fig. 6 B
i 1, D
i 2Data D shown in Fig. 6 B
i 1Reposition be for from data D
i 2The position to former frame F
I-1Direction translation one be equal to data D
i 1The translational movement of length.Because step 330 can be earlier from data D
i 1End begin to move in batches or duplicate than subsection with at least one, even this translational movement is greater than title H
iLength, can not hinder enforcement of the present invention yet.Wherein this at least one than subsection can be one, a byte, several positions, several bytes ... or even title H
iThe combination than subsection of multiple different lengths such as length.This second embodiment calculates this translational movement with code translator 440 in addition, and this is the selection on implementing.Can calculate this translational movement by title parser 420 in another embodiment of the present invention and export this translational movement to code translator 440 again.
To be stored in the data D of buffer zone B41 shown in Fig. 6 A
I-1 1, title H
I-1, data D
I-1 2, data D
i 1, title H
i, data D
i 2, data D
I+1 1... put in order, more than Shuo Ming second embodiment goes for the MPEG2 multichannel and extends frame, MP3 (MPEG audio layer 3), Ogg page structure or the relevant specification of deriving.According to this second embodiment, no matter bit stream 408 is to meet the MPEG2 multichannel to extend frame, MP3, Ogg page structure or other specification, so long as title H
iWith the data D that is moved or is replicated
i 1Position before rearranging is adjacent two frames or adjacent two packets that correspond respectively to bit stream 408, all should belong to the covering scope of patent of the present invention.
As described in this first embodiment and this second embodiment, title H
iHas data D
i 2At frame F
iDirect or implicit information such as central position and length, and title H
I-1Has data D
i 1At frame F
I-1Direct or implicit information such as central position and length.This is the selection of embodiment, and non-limiting scope of the present invention.When the present invention was applied to different coding specifications, more than narration can change accordingly.In another embodiment of the present invention, title H
iHas data D
i 1At frame F
I-1Direct or implicit information such as central position and length.Above-mentioned in addition direct information is meant that this information directly is embedded in these titles, and above-mentioned implicit information is meant information recode that this information indirect ground has implication with numerical value, code name or index etc. in these titles, and implicit information such as wherein above-mentioned position and length can be learnt by the table of comparisons or calculating.
Compared to known technology, internal memory control method provided by the invention and relevant apparatus directly form continuously arranged data for further decoding in the zone that stores this bit stream, do not need outside the zone that stores this bit stream, to assign (allocate) other zone in addition or other internal memory is set in addition, therefore can reduce the specification of memory storage capacity and corresponding cost.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to the covering scope of patent of the present invention.
Claims (16)
1. internal memory control method, this method includes:
Store a bit stream in an internal memory;
Read a title from this internal memory corresponding to this bit stream; And
According to this title, rearrange the data that are stored in this internal memory in the central some in zone that stores this bit stream.
The method of claim 1, wherein this to rearrange step be to move or duplicate the part that the data in this internal memory have been read to the zone that stores this bit stream.
3. method as claimed in claim 2, wherein, this rearranges step is second data that move or duplicate in this internal memory corresponding to this bit stream, so that first data corresponding to this bit stream become continuously arranged data in second data after moving or duplicating and this internal memory.
4. method as claimed in claim 2, wherein, the position of the data that this title and these are moved or are replicated before rearranging is corresponding to the same frame of this bit stream or same packet.
5. method as claimed in claim 2, wherein, the position of the data that this title and these are moved or are replicated before rearranging is adjacent two frames or adjacent two packets that correspond respectively to this bit stream.
6. the method for claim 1, wherein this bit stream is to meet the MPEG2 multichannel to extend frame specification, MP3 specification or Ogg page structure specification.
7. the method for claim 1, wherein this method includes in addition: the data that are stored in this internal memory according to this title decoding.
8. memory control circuit, this circuit includes:
One internal memory is used for storing a bit stream;
One title parser is coupled to this internal memory, uses from this internal memory and reads a title corresponding to this bit stream; And
One rearranges the unit, is coupled to this internal memory and this title parser, is used for rearranging the data that are stored in this internal memory according to this title in the central some in zone that stores this bit stream.
9. as circuit as described in the claim 8, wherein, this rearranges the unit can move or duplicate the part that the data in this internal memory have been read to the zone that stores this bit stream.
10. circuit as claimed in claim 9, wherein, this rearranges the unit can move or duplicate in this internal memory second data corresponding to this bit stream, so that first data corresponding to this bit stream become continuously arranged data in second data after moving or duplicating and this internal memory.
11. circuit as claimed in claim 9, wherein, the same frame or the same packet corresponding to this bit stream of the position of the data that this title and these are moved or are replicated before rearranging.
12. circuit as claimed in claim 9, wherein, the position of the data that this title and these are moved or are replicated before rearranging is adjacent two frames or adjacent two packets that correspond respectively to this bit stream.
13. circuit as claimed in claim 8, wherein, this bit stream is to meet the MPEG2 multichannel to extend frame specification, MP3 specification or Ogg page structure specification.
14. circuit as claimed in claim 8, this circuit includes in addition: a code translator, be coupled to this internal memory and this title parser, and be used for deciphering the data that are stored in this internal memory according to this title.
15. circuit as claimed in claim 14, wherein, this title parser and this code translator are arranged on an integral unit.
16. circuit as claimed in claim 8, wherein, this rearranges the unit and comes down to a direct memory access module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100050399A CN1304955C (en) | 2004-02-16 | 2004-02-16 | Memory control method and correlation device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100050399A CN1304955C (en) | 2004-02-16 | 2004-02-16 | Memory control method and correlation device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1658169A true CN1658169A (en) | 2005-08-24 |
CN1304955C CN1304955C (en) | 2007-03-14 |
Family
ID=35007671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100050399A Expired - Fee Related CN1304955C (en) | 2004-02-16 | 2004-02-16 | Memory control method and correlation device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1304955C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100527267C (en) * | 2006-02-28 | 2009-08-12 | 中国科学院计算技术研究所 | Method and apparatus for reading and sampling data of DDR and DDR2 memory controller |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5256348A (en) * | 1991-06-13 | 1993-10-26 | Waller Michael V | Tire shaping pressure control system and method |
IT1268195B1 (en) * | 1994-12-23 | 1997-02-21 | Sip | DECODER FOR AUDIO SIGNALS BELONGING TO COMPRESSED AND CODED AUDIO-VISUAL SEQUENCES. |
US6047027A (en) * | 1996-02-07 | 2000-04-04 | Matsushita Electric Industrial Co., Ltd. | Packetized data stream decoder using timing information extraction and insertion |
JPH11282496A (en) * | 1998-03-30 | 1999-10-15 | Matsushita Electric Ind Co Ltd | Decoding device |
US6735649B2 (en) * | 2001-05-03 | 2004-05-11 | Advanced Micro Devices, Inc. | Multiple buffers for removing unwanted header information from received data packets |
JP2003076395A (en) * | 2001-08-31 | 2003-03-14 | Yamaha Corp | Audio signal processor |
US7317867B2 (en) * | 2002-07-11 | 2008-01-08 | Mediatek Inc. | Input buffer management for the playback control for MP3 players |
-
2004
- 2004-02-16 CN CNB2004100050399A patent/CN1304955C/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100527267C (en) * | 2006-02-28 | 2009-08-12 | 中国科学院计算技术研究所 | Method and apparatus for reading and sampling data of DDR and DDR2 memory controller |
Also Published As
Publication number | Publication date |
---|---|
CN1304955C (en) | 2007-03-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1717931A (en) | Code conversion method and device thereof | |
US8009968B2 (en) | Recording apparatus, recording method, program, recording medium, and data recording medium | |
US20040240541A1 (en) | Method and system for direct ingest and storage of digital video content with immediate access to content for browsing and editing | |
CN1926629A (en) | Recording apparatus, editing apparatus, digital video recording system, and file format | |
CN1115547A (en) | Adaptive bit stream demultiplexing apparatus in a decoding system | |
WO2006070668A1 (en) | Information recording device, data-flow controller for the device, and control method for the data-flow | |
CN1463441A (en) | Trick play for MP3 | |
CN101064191A (en) | Flash memory apparatus and access method to flash memory | |
CN1184818C (en) | Embedding supplemental data in encoded signal | |
CN1304955C (en) | Memory control method and correlation device | |
CN1976475A (en) | Image processing apparatus and method | |
CN1455408A (en) | Method and apparatus for controlling audio-frequency flow buffering | |
CN113271467B (en) | Ultra-high-definition video layered coding and decoding method supporting efficient editing | |
US20070067570A1 (en) | Data processing methods and systems | |
CN1459194A (en) | Data recording method, recording apparatus, and data output method | |
CA2511672A1 (en) | Recording and reproduction apparatus, recording apparatus, editing apparatus, information recording medium, recording and reproduction method, recording method, and editing method | |
WO1999050849A1 (en) | Device and method for data output and device and method for data input/output | |
CN1110967C (en) | Method for reproducing compression-coded video data | |
TWI270774B (en) | Memory control method and related device | |
US10834441B2 (en) | Method and system for streaming a media file during a concurrent transcoding thereof | |
CN101042909A (en) | Method for playing multimedia documentary of optical storage medium | |
CN1162856C (en) | Signal processing circuits | |
CN1161544A (en) | Apparatus and method for reproducing video segment for digital video cassette recorder | |
JP2993455B2 (en) | Image and audio playback device | |
CN1318253A (en) | AV decoder control method and AV decoder control appts. |
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 | ||
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: 20070314 Termination date: 20220216 |