CN102098510B - Methods and devices for decoding and coding audio/video data - Google Patents

Methods and devices for decoding and coding audio/video data Download PDF

Info

Publication number
CN102098510B
CN102098510B CN201010559733.0A CN201010559733A CN102098510B CN 102098510 B CN102098510 B CN 102098510B CN 201010559733 A CN201010559733 A CN 201010559733A CN 102098510 B CN102098510 B CN 102098510B
Authority
CN
China
Prior art keywords
program
decoded
frame data
instruction
unit
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
Application number
CN201010559733.0A
Other languages
Chinese (zh)
Other versions
CN102098510A (en
Inventor
张鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Temobi Science and Technology Co Ltd
Original Assignee
Shenzhen Temobi Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Temobi Science and Technology Co Ltd filed Critical Shenzhen Temobi Science and Technology Co Ltd
Priority to CN201010559733.0A priority Critical patent/CN102098510B/en
Publication of CN102098510A publication Critical patent/CN102098510A/en
Application granted granted Critical
Publication of CN102098510B publication Critical patent/CN102098510B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method for decoding audio/video data. The method comprises the following steps that: a first program informs a second program to initialize; the second program acquires a frame datum to be decoded and decodes after finishing the initialization, stores the decoded frame datum into a first memory and sends a first instruction; and the first program reads the decoded frame datum from the first memory through the first instruction and clears the first instruction. In the invention, datum reading is controlled through a flag bit instruction, a flag bit can be sent only after the decoding is finished and the frame datum is written in or after a datum to be coded is written in, correspondingly, the decoded frame datum or the frame datum to be coded is read after the flag is received, thus, the condition of error datum reading caused by not finishing writing in the frame datum during datum reading is avoided, and meanwhile, the problem of more access times of IO (Input/Output) is solved.

Description

Method and the device of decoding, coding audio/video data
Technical field
The present invention relates to data decode, coding field, relate in particular to a kind of decoding, coding method and device of audio, video data.
Background technology
Due to continuous renewal and the development of technology, generally all adopt at present 64 programs to carry out encoding and decoding audio, video data, can improve like this data-handling efficiency.But also have at present a lot of data need to use 32 programs to carry out encoding and decoding audio, video data, so how solving 64 programs becomes technical barrier with communicating by letter between 32 programs of compatibility operation under 64 bit manipulation systems.Because the data volume that audio/video encoding/decoding relates to is larger, internal memory etc. is had relatively high expectations, and between different process, the communication of long data block is more difficult.For example how after decoding completes, to notify other program reading out datas, or how during at coding, obtain data at shared region and also become a great problem.
In the prior art, because codec data is large, what solve at present the method employing is a kind of file transfer technology, and data shared needs are write a file by different processes, needs is encoded or decoding data reading out by another one process.And the thread of being responsible for reading need to ceaselessly go to obtain the size of file, cause accessing the increased frequency of IO, cause decrease in efficiency.
In order to solve the problem that IO access times are many, current solution is to use length of a game synchronous, can repeatedly read IO.But while writing disk, disk refresh delay, causes data data in reading to write not yet completely, the easily data of read error, cause the abnormal appearance of coding or decoding.
Therefore, move and enough ensure that data read the method for the codec data of not makeing mistakes in the urgent need to lower 64 programs of a kind of 64 bit manipulation systems and 32 program compatibilities at present.
Summary of the invention
The invention provides method and the device of a kind of decoding, coding audio/video data.For solving lower 64 programs of 64 bit manipulation systems and 32 program compatibility operations and enough ensureing the problem that data read errors rate is high, the embodiment of the present invention is achieved through the following technical solutions:
The decode method of audio, video data, the method comprises:
The first program is notified the second program initialization;
After the second program initialization completes, obtain frame data to be decoded and decode by the first program, depositing decoded frame data in first internal memory, and sending the first instruction;
The first program reads described decoded frame data by the first instruction to the first internal memory, and described the first instruction is emptied.
Wherein, the first described program notifies the second program initialization to be specially:
The first program in the first internal memory, notifies the second program to read needed decoded data Parameter storage;
The second program to the first internal memory reads described parameter and carries out initialization, and notifies the first program initialization to complete.
Wherein, the second described program is obtained frame data to be decoded by the first program and is specially:
After the information that the second program initialization completes, frame data to be decoded are write the first internal memory by the first program; Notify the second program to read; The second program to the first internal memory reads described frame data to be decoded.
Wherein, the second described program is obtained frame data to be decoded by the first program and is specially:
The first program is further stored in the first internal memory by the store path of data to be decoded;
The second program is obtained frame data to be decoded by described store path.
Wherein, the second described program is further stored to the first internal memory and the second internal memory by a decoded frame data circulation;
The second described program is stored to the second internal memory by decoded frame data and is specially:
The second described program continues to obtain frame data to be decoded and decodes after sending the first instruction, and deposits decoded frame data in second internal memory, and sends the second instruction;
The first program reads described decoded frame data by the second instruction to the second internal memory, and described the second instruction is emptied.
Corresponding to the method for decoding audio, video data provided by the invention, the present invention also provides a kind of method of coding audio/video data, and the method comprises:
The 3rd program is notified the 4th program initialization;
After the 4th program initialization completes, notify the 3rd program, frame data to be encoded are stored to the 3rd internal memory by the 3rd program, and send the 3rd instruction;
The 4th program reads described frame data to be encoded by the 3rd instruction and encodes, and the 3rd instruction is emptied.
Wherein, the 3rd described program notifies the 4th program initialization to be specially:
The 3rd program in the 3rd internal memory, notifies the 4th program to read needed coded data Parameter storage;
The 4th program to the three internal memories read described parameter and carry out initialization, and notify the 3rd program initialization to complete.
Wherein, the 3rd described program is further stored to the 3rd internal memory and the 4th internal memory by a frame data to be encoded circulation;
The 3rd described program is stored to the 4th internal memory by frame data to be decoded and is specially:
After the 4th described program initialization completes, the 3rd program is further stored to the 4th internal memory by frame data to be encoded, and sends the 4th instruction;
The 4th program reads described frame data to be encoded by the 4th instruction to the four internal memories and encodes, and the 4th instruction is emptied.
Corresponding to the method for decoding audio, video data provided by the invention, the present invention also provides a kind of device of the audio, video data of decoding, and described device comprises:
The first program unit, for notifying the second program initialization; The first instruction to the first internal memory sending by the second program unit reads described decoded frame data, and the first instruction is emptied.
The second program unit, by first program unit is obtained a frame to be decoded data and is decoded after completing for initialization, deposits decoded frame data in first internal storage location, and sends the first instruction;
The first internal storage location, for storing described frame data to be decoded and decoded frame data.
Wherein, the first described program unit comprises:
The first notification unit, for by needed decoded data Parameter storage in the first internal storage location, notify the second program unit to read;
The first control unit, reads described decoded frame data for the first instruction to the first internal storage location sending by the second program unit, and the first instruction is emptied;
The second described program unit specifically comprises:
The first initialization unit, for receiving the notice of the first program unit, reads described parameter to the first internal storage location and carries out initialization, notifies the first program unit initialization to complete;
The first decoding unit, by first program unit is obtained a frame to be decoded data and is decoded after completing for initialization, deposits decoded frame data in first internal storage location, and sends the first instruction;
The first internal storage location, for being further used for the described data parameters to be decoded of storage.
Wherein, the first control unit of described the first program unit specifically comprises:
First writes code element, after the information that reception the second program unit initialization completes, frame data to be decoded is write to the first internal storage location, notifies the second program unit to read described frame data to be decoded;
The first reading unit, reads described decoded frame data for the first instruction to the first internal storage location sending by the second program unit, and the first instruction is emptied;
The first decoding unit of described the second program unit specifically comprises:
The second reading unit, for receiving the described frame data notification to be decoded that reads, reads described frame data to be decoded to the first internal storage location and also decodes;
Second writes code element, for depositing decoded frame data in first internal storage location, and sends the first instruction.
Wherein, described first write code element and be further used for: the store path of data to be decoded is stored in to the first internal storage location;
The second described reading unit is further used for, and obtains frame data to be decoded by described store path.
Wherein, described device further comprises the second internal storage location;
Described second writes code element is further used for a decoded frame data circulation to be stored to the first internal storage location and the second internal storage location; Decoded frame data are stored to the second internal memory to be specially: after transmission the first instruction, continue to obtain frame data to be decoded and decode, depositing decoded frame data in second internal storage location, and send the second instruction;
The first described reading unit is further used for reading described decoded frame data by the second instruction to the second internal storage location, and described the second instruction is emptied;
The second described internal storage location is used for storing decoded frame data.
Corresponding to the method for coding audio/video data provided by the invention, the present invention also provides a kind of device of coding audio/video data, and described device comprises:
The 3rd program unit, for notifying the second program unit initialization, receives after initialization completes information frame data to be encoded is stored to the 3rd internal storage location, and send the 3rd instruction;
The 4th program unit, notifies three program unit after completing for initialization; Read described frame data to be encoded by the 3rd instruction and encode, and the 3rd instruction is emptied;
The 3rd internal storage location, for storing described frame data to be encoded.
Wherein, the 3rd described program unit specifically comprises:
The second notification unit, for by needed coded data Parameter storage in the 3rd internal storage location, notify the second program to read;
The second control unit, for frame data to be encoded are stored to the 3rd internal storage location, and sends the 3rd instruction;
The 4th described program unit specifically comprises:
The second initialization unit, for receiving the notice of the 3rd program unit, reads described parameter to the 3rd internal storage location and carries out initialization, notifies the 3rd program unit initialization to complete;
The second decoding unit, reads described frame data to be encoded by the 3rd instruction and encodes, and the 3rd instruction is emptied.
The 3rd memory cell, is further used for the needed parameter of memory encoding data.
Wherein, described device further comprises the 4th internal storage location;
The second described control unit is further used for a frame data to be encoded circulation to be stored to the 3rd internal storage location and the 4th internal storage location; One frame data to be decoded are stored to the 4th internal memory to be specially: receive after the second program unit initialization completes notice and further frame data to be encoded are stored to the 4th internal storage location, and send the 4th instruction;
The second described decoding unit, is further used for reading described frame data to be encoded by the 4th instruction to the four internal storage locations and encodes, and the 4th instruction is emptied.
The present invention controls reading out data by flag bit the first/bis-/tri-/tetra-instructions, only have to write when having decoded after frame data/after data to be encoded have write, just can send flag bit, corresponding also only can after flag, just go back to read the rear frame data of decoding or frame data to be encoded receiving, while so just having avoided reading out data, frame data do not write and caused the situation of reading out data mistake, and having solved the many problems of IO access times simultaneously.
Brief description of the drawings
The one decoding audio, video data method flow diagram that Fig. 1 provides for the embodiment of the present invention 1;
The decoding MP3 data method flow chart that Fig. 2 provides for the embodiment of the present invention 1;
The one decoding audio/video decoding data method flow chart that Fig. 3 provides for the embodiment of the present invention 2;
The one decoding audio/video decoding data method flow chart that Fig. 4 provides for the embodiment of the present invention 3;
The method flow diagram of a kind of coding audio/video data that Fig. 5 provides for the embodiment of the present invention 4;
The coding MP3 data method flow chart that Fig. 6 provides for the embodiment of the present invention 4;
The structure drawing of device of a kind of audio, video data of decoding that Fig. 7 provides for the embodiment of the present invention 5;
The structure drawing of device of a kind of coding audio/video data that Fig. 8 position embodiment of the present invention 6 provides.
Embodiment
The embodiment of the present invention provides method and the device of a kind of decoding, coding audio/video data, has effectively solved 64 programs and has ensured that with reaching of 32 programs of compatibility operation under 64 bit manipulation systems data read the problem that accuracy is low.
Embodiment 1, referring to Fig. 1, a kind of decoding audio, video data method is specially:
Step 10: the first program is notified the second program initialization;
Wherein step 10 concrete methods of realizing is:
Step 101, the first program in the first internal memory, notifies the second program to read needed decoded data Parameter storage;
Step 102: the second program to the first internal memory reads described parameter and carries out initialization, and notifies the first program initialization to complete.
Step 11: obtain frame data to be decoded and decode by the first program after the second program initialization completes, depositing decoded frame data in first internal memory, and sending the first instruction;
Wherein the concrete methods of realizing of step 11 is:
Step 111: the first program receives after the information that the second program initialization completes, and frame data to be decoded are write to the first internal memory, notifies the second program to read;
Step 112: the second program to the first internal memory reads described frame data to be decoded, and sends the first instruction;
Step 12: the first program reads described decoded frame data by the first instruction to the first internal memory, and described the first instruction is emptied.
Describe as an example of the data MP3 of needs decodings example below, referring to Fig. 2.For example the first program is 64 programs, and the second program is 32 programs.
Step 201:64 position program in the first internal memory, and sends the needed Parameter storage of mp3 file of decoding start and notifies 32 programs to read;
Step 202:32 position program reads the needed parameter of decoding MP3 to the first internal memory after receiving start, and carries out initialization, sends 64 program initializations of ready instruction notification and complete after initialization completes;
Step 203:64 position program receives after the information that completes of ready initialization that 32 programs send, and frame MP3 data are write to the first internal memory, sends decode and notifies 32 programs to read;
Step 204:32 position program to the first internal memory reads described frame MP3 data to be decoded decoding, deposits decoded frame data in first internal memory; Read rear transmission read1;
Step 205:64 position program reads described decoded frame MP3 data by the first instruction to the first internal memory, and read1 is emptied.
In above embodiment, the present invention is by flag bit the first instruction, namely read1 controls reading out data, only have when 32 programs and decoded after writing frame data and just sent afterwards flag bit read1,64 programs also only can receive that the internal memory that just goes back after flag read1 reads decoding frame data afterwards, while so just having avoided 64 programs to remove the first internal memory read data, also frame data are not decoded and caused the situation of reading out data mistake for 32, and solved the many problems of IO access times simultaneously.
Embodiment 2, referring to Fig. 3, a kind of decoding audio, video data method is specially:
Step 30: the first program is notified the second program initialization;
Wherein step 30 concrete methods of realizing is:
Step 301, the first program in the first internal memory, notifies the second program to read needed decoded data Parameter storage;
Step 302: the second program to the first internal memory reads described parameter and carries out initialization, and notifies the first program initialization to complete.
Step 31: obtain frame data to be decoded and decode by the first program after the second program initialization completes, depositing decoded frame data in first internal memory, and sending the first instruction;
Wherein the concrete methods of realizing of step 31 is:
Step 311: the first program is further stored in the first internal memory by the store path of data to be decoded;
Step 312: the second program is obtained frame data to be decoded and decoded by described store path, deposits decoded frame data the first internal memory in and sends the first instruction;
Step 32: the first program reads described decoded frame data by the first instruction to the first internal memory, and described the first instruction is emptied.
Embodiment 1 is similar to embodiment 2, and difference is that embodiment 2 obtains frame data to be decoded by file store path to be decoded.Embodiment 2 is also by flag bit the first instruction, namely read1 controls reading out data, only have when 32 programs decoded frame data and deposit the first internal memory in after just send afterwards flag bit read1,64 programs also only can receive that the internal memory that just goes back after flag read1 reads decoding frame data afterwards, while so just having avoided 64 programs to remove the first internal memory read data, also frame data do not decoded and caused the situation of reading out data mistake for 32, and having solved the too much problem of IO access times simultaneously.
Embodiment 3 referring to Fig. 4, has increased rear frame data to the first internal memory of the second program cycle storage decoding and the second internal memory on the basis of embodiment 1, and a kind of decoding audio, video data method is specially:
Step 40: the first program is notified the second program initialization;
Wherein step 40 concrete methods of realizing is:
Step 401, the first program in the first internal memory, notifies the second program to read needed data to be decoded Parameter storage;
Step 402: the second program to the first internal memory reads described parameter and carries out initialization, and notifies the first program initialization to complete.
Step 41: obtain frame data to be decoded and decode by the first program after the second program initialization completes, depositing decoded frame data in first internal memory, and sending the first instruction;
Wherein the concrete methods of realizing of step 41 is:
Step 411: the first program receives after the information that the second program initialization completes, and frame data to be decoded are write to the first internal memory, notifies the second program to read;
Step 412: the second program to the first internal memory reads described frame data to be decoded decoding, decoded frame data is stored to the first internal memory, and sends the first instruction;
Step 42: the first program reads described decoded frame data by the first instruction to the first internal memory, and described the first instruction is emptied;
Step 43: the second program continues decoding next frame data having decoded after frame data, and decoded data are stored to the second internal memory, sends the second instruction;
Step 44: the first program reads described decoded frame data by described the second instruction to the second internal memory, and the second instruction is emptied.
Above step 41 to 44 be circulation process, the first program cycle deposits frame data to be decoded in the first internal memory and the second internal memory, so corresponding the second program also reads and decodes with regard to accordingly to the first internal memory and the second internal memory, and deposits decoded frame data in corresponding the first internal memory and the second internal memory.
This embodiment further increased the process that datacycle is write to the first internal memory and the second internal memory on the basis of embodiment 1, so just improved program and write and the speed of reading out data, improved the efficiency of decoding.
3 processes that datacycle write to the first internal memory and the second internal memory that provide of enforcement also can, for embodiment 2, be not repeated at this.
Embodiment 4, the invention provides a kind of method of coding audio/video data referring to Fig. 5:
Step 50: the 3rd program is notified the 4th program initialization;
Wherein step 50 concrete methods of realizing is:
Step 501, the 3rd program in the 3rd internal memory, notifies the 4th program to read needed data to be decoded Parameter storage;
Step 502: the 4th program to the three internal memories read described parameter and carry out initialization, and notify the 3rd program initialization to complete;
Step 51: notify the 3rd program after the 4th program initialization completes, frame data to be encoded are stored to the 3rd internal memory by the 3rd program, and send the 3rd instruction;
Step 52: the 4th program reads described frame data to be encoded by the 3rd instruction and encodes, and the 3rd instruction is emptied.
Describe as an example of needs coded data MP3 example below, referring to Fig. 6.For example the 3rd program is 64 programs, and the 4th program is 32 programs.
Step 601:64 position program in the 3rd internal memory, and sends the needed Parameter storage of mp3 file of coding start and notifies 32 programs to read;
Step 602:32 position program reads the needed parameter of decoding MP3 to the 3rd internal memory after receiving start, and carries out initialization, sends 64 program initializations of ready instruction notification and complete after initialization completes;
Step 603:64 position program receives after the information that completes of ready initialization that 32 programs send, and frame MP3 data are write to the 3rd internal memory, sends read1 and notifies 32 programs to read;
Step 604:32 position program to the three internal memories read described frame MP3 data to be encoded and encode; After having encoded, read1 is emptied.
In above embodiment, the present invention is by flag bit the 3rd instruction, namely read1 controls reading out data, only have after 64 programs write frame data to be encoded and just send flag bit read1,32 programs also only can just can go internal memory to read frame data to be encoded receiving after flag read1 so, and while so just having avoided 32 programs to remove the first internal memory read data, 64 programs have not also write frame data to be decoded and cause the situation of reading out data mistake.
Corresponding to embodiment 3, on the basis of embodiment 4, the 3rd program can also further be stored to the 3rd internal memory and the 4th internal memory by a frame data to be encoded circulation, connects so step 53 and continues as:
Step 53: the 3rd program receives completing after notice of the 4th program transmission, further data to be encoded is stored to the 4th internal memory, and sends the 4th instruction;
Step 54: the 4th program reads described frame data to be encoded by the 4th instruction to the four internal memories and encodes, and the 4th instruction is emptied.
Decode and sent after the 3rd or the 4th instruction in the 4th program, can, further by a decoded frame data storage, facilitate more users to read.
Above step 52 is to 55 being processes of circulation, and the first program cycle deposits the first internal memory and the second internal memory in by frame data to be encoded, and so corresponding the second program also reads and encodes with regard to accordingly to the first internal memory and the second internal memory.Further improve program by such circulation and write and the speed of reading out data, and then improved the efficiency of decoding, and solved the too much problem of IO access times simultaneously.
Embodiment 5, referring to Fig. 7, the invention provides a kind of device of the audio, video data of decoding, and this device comprises:
The first program unit 70, for notifying the second program unit initialization; The first instruction to the first internal storage location sending by the second program unit reads described decoded frame data, and the first instruction is emptied.
The second program unit 71, by first program unit is obtained a frame to be decoded data and is decoded after completing for initialization, deposits decoded frame data in first internal storage location, and sends the first instruction;
The first internal storage location 72, for storing described frame data to be decoded and decoded frame data.
Wherein the first program unit 70 specifically comprises:
The first notification unit 700, for by needed decoded data Parameter storage in the first internal storage location, notify the second program to read;
The first control unit 701, reads described decoded frame data for the first instruction to the first internal storage location sending by the second program unit, and the first instruction is emptied;
Wherein the second program unit 71 specifically comprises:
The first initialization unit 710, for receiving the notice of the first program unit, reads described parameter to the first internal storage location and carries out initialization, notifies the first program unit initialization to complete;
The first decoding unit 711, by first program unit is obtained a frame to be decoded data and is decoded after completing for initialization, deposits decoded frame data in first internal storage location, and sends the first instruction;
The first internal storage location 72, is further used for the described data parameters to be decoded of storage.
Wherein the first control unit 701 of the first program unit 70 specifically comprises:
First writes code element 7010, after the information that reception the second program unit initialization completes, frame data to be decoded is write to the first internal storage location, notifies the second program unit to read described frame data to be decoded;
The first reading unit 7011, reads described decoded frame data for the first instruction to the first internal storage location sending by the second program unit, and the first instruction is emptied;
The first decoding unit 711 of the second program unit 71 specifically comprises:
The second reading unit 7110, for receiving the described frame data notification to be decoded that reads, reads described frame data to be decoded to the first internal storage location and also decodes;
Second writes code element 7111, for depositing decoded frame data in first internal storage location, and sends the first instruction.
The method that one frame data to be decoded are provided by the first program after the second program initialization providing corresponding to embodiment 2 completes, first of the present embodiment is write code element 7010 and is further used for the store path of data to be decoded to be stored in the first internal storage location;
The second described reading unit 7110 is further used for, and obtains frame data to be decoded by described store path.
The method of frame data to the first internal memory and the second internal memory after the second program cycle storage decoding providing corresponding to embodiment 3, the device of decoding audio, video data provided by the invention further comprises the second internal storage location 73;
Described second writes code element 7111 is further used for a decoded frame data circulation to be stored to the first internal storage location 72 and the second internal storage location 73;
Decoded frame data are stored to the second internal storage location 73 to be specially: after transmission the first instruction, continue to obtain frame data to be decoded and decode, depositing decoded frame data in second internal storage location 73, and send the second instruction;
The first described reading unit 7011 is further used for reading described decoded frame data by the second instruction to the second internal storage location, and described the second instruction is emptied;
The second described internal storage location 73 is for storing decoded frame data.
Embodiment 6, referring to Fig. 8, corresponding to embodiment 4, the invention provides a kind of device of coding audio/video data, and this device comprises:
The 3rd program unit 80, for notifying the 4th program unit 81 initialization, receives after initialization completes information frame data to be encoded is stored to the 3rd internal storage location 82, and send the 3rd instruction;
The 4th program unit 81, notifies three program unit 80 after completing for initialization; Read described frame data to be encoded by the 3rd instruction and encode, and the 3rd instruction is emptied;
The 3rd internal storage location 82, for storing described frame data to be encoded and the needed parameter of coded data.
Wherein the 3rd program unit 80 specifically comprises:
The second notification unit 800, for by needed data to be encoded Parameter storage in the 3rd internal storage location 82, notify the 4th program unit 81 to read;
The second control unit 801, for frame data to be encoded are stored to the 3rd internal storage location 82, and sends the 3rd instruction;
Wherein the 4th program unit 81 specifically comprises:
The second initialization unit 810, for receiving the notice of the 3rd program unit 80, reads described parameter to the 3rd internal storage location and carries out initialization, notifies the 3rd program unit 80 initialization to complete;
The second coding unit 811, reads described frame data to be encoded by the 3rd instruction and encodes, and the 3rd instruction is emptied.
The 3rd program providing corresponding to embodiment 4 can also further be stored to a frame data to be encoded circulation method of the 3rd internal memory and the 4th internal memory, and this device further comprises the 4th internal storage location 83;
The second described control unit 801 is further used for a frame data to be encoded circulation to be stored to the 3rd internal storage location 82 and the 4th internal storage location 83; One frame data to be encoded are stored to the 4th internal storage location to be specially: receive after the 4th program unit 81 initialization complete notice and further frame data to be encoded are stored to the 4th internal storage location 83, and send the 4th instruction;
The second described coding unit 811, is further used for reading described frame data to be encoded by the 4th instruction to the four internal storage locations 83 and encodes, and the 4th instruction is emptied.
To the present invention, a kind of method to decoding, coding audio/video data and device are described in detail above, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1. the decode method of audio, video data, is characterized in that, the method comprises:
The first program in the first internal memory, notifies the second program to read needed decoded data Parameter storage;
The second program to the first internal memory reads described parameter and carries out initialization, and notifies the first program initialization to complete; The second program initialization completes and receives that the data to be decoded that the first program sends read after notice, is obtained frame data to be decoded and is decoded by the first program, deposits decoded frame data in first internal memory, and sends the first instruction;
The first program reads described decoded frame data by the first instruction to the first internal memory, and described the first instruction is emptied;
The second program continues to obtain next frame data to be decoded and decodes after sending the first instruction, and deposits decoded frame data in second internal memory, and sends the second instruction;
The first program reads described decoded frame data by the second instruction to the second internal memory, and described the second instruction is emptied;
A decoded frame data circulation is stored to the first internal memory and the second internal memory by described the second program;
Described the first program is 64 programs, and described the second program is 32 programs.
2. the method for a kind of audio, video data of decoding according to claim 1, is characterized in that, the second program is obtained frame data to be decoded by the first program and is specially:
The first program receives after the information that the second program initialization completes, and frame data to be decoded are write the first internal memory by the first program; Notify the second program to read; The second program to the first internal memory reads described frame data to be decoded.
3. the method for a kind of audio, video data of decoding according to claim 1, is characterized in that, the second program is obtained frame data to be decoded by the first program and is specially:
The first program is further stored in the first internal memory by the store path of data to be decoded;
The second program is obtained frame data to be decoded by described store path.
4. a method for coding audio/video data, is characterized in that, the method comprises:
The 3rd program in the 3rd internal memory, notifies the 4th program to read needed coded data Parameter storage;
The 4th program to the three internal memories read described parameter and carry out initialization;
After the 4th program initialization completes, notify the 3rd program, frame data to be encoded are stored to the 3rd internal memory by the 3rd program, and send the 3rd instruction;
The 4th program reads described frame data to be encoded by the 3rd instruction and encodes, and the 3rd instruction is emptied;
The 3rd program is further stored to next frame data to be encoded the 4th internal memory, and sends the 4th instruction;
The 4th program reads described next frame data to be encoded by the 4th instruction to the four internal memories and encodes, and the 4th instruction is emptied;
A frame data to be encoded circulation is stored to the 3rd internal memory and the 4th internal memory by described the 3rd program;
Described the 3rd program is 64 programs, and described the 4th program is 32 programs.
5. the decode device of audio, video data, is characterized in that, described device comprises:
The first program unit, for notifying the second program unit initialization; The first instruction to the first internal storage location sending by the second program unit reads decoded frame data, and the first instruction is emptied;
The second program unit, by first program unit is obtained a frame to be decoded data and is decoded after completing for initialization, deposits decoded frame data in first internal storage location, and sends the first instruction;
The first internal storage location, for storing described frame data to be decoded, decoded frame data and the needed parameter of decoded data;
The second internal storage location, for storing decoded frame data;
The first described program unit comprises: the first notification unit, for by needed decoded data Parameter storage in the first internal storage location, notify the second program unit to read; The first control unit, reads described decoded frame data for the first instruction to the first internal storage location sending by the second program unit, and the first instruction is emptied;
The second described program unit specifically comprises: the first initialization unit, and for receiving the notice of the first program unit, read described parameter to the first internal storage location and carry out initialization, notify the first program unit initialization to complete; The first decoding unit, completes and receives after the notice of the first program unit for initialization, is obtained frame data to be decoded and is decoded by the first program unit, deposits decoded frame data in first internal storage location, and sends the first instruction;
The first decoding unit of described the second program unit specifically comprises:
Second writes code element, for depositing decoded frame data in first internal storage location, and sends the first instruction;
Described second writes code element is further used for a decoded frame data circulation to be stored to the first internal storage location and the second internal storage location; Decoded frame data are stored to the second internal storage location to be specially: after transmission the first instruction, continue to obtain next frame data to be decoded and decode, depositing decoded frame data in second internal storage location, and send the second instruction;
The first described control unit is further used for reading described decoded frame data by the second instruction to the second internal storage location, and described the second instruction is emptied;
Described the first program unit is 64 program units, and described the second program unit is 32 program units.
6. the device of decoding audio, video data according to claim 5, is characterized in that, the first control unit of described the first program unit specifically comprises:
First writes code element, after the information that reception the second program unit initialization completes, frame data to be decoded is write to the first internal storage location, notifies the second program unit to read;
The first decoding unit of described the second program unit specifically comprises:
The second reading unit, for reading described frame data to be decoded to the first internal storage location.
7. the device of decoding audio, video data according to claim 5, is characterized in that, the first control unit of described the first program unit specifically comprises: first writes code element; The first decoding unit of described the second program unit specifically comprises: the second reading unit;
Described first writes code element for the store path of data to be decoded is stored in to the first internal storage location;
The second described reading unit is for obtaining frame data to be decoded by described store path.
8. a device for coding audio/video data, is characterized in that, described device comprises:
The 3rd program unit, for notifying the 4th program unit initialization, receives after initialization completes information frame data to be encoded is stored to the 3rd internal storage location, and send the 3rd instruction;
The 4th program unit, notifies three program unit after completing for initialization; Read described frame data to be encoded by the 3rd instruction and encode, and the 3rd instruction is emptied;
The 3rd internal storage location, for storing described frame data to be encoded and the needed parameter of coded data;
The 3rd described program unit specifically comprises:
The second notification unit, for by needed coded data Parameter storage in the 3rd internal storage location, notify the 4th program unit to read;
The second control unit, for frame data to be encoded are stored to the 3rd internal storage location, and sends the 3rd instruction;
The 4th described program unit specifically comprises:
The second initialization unit, for receiving the notice of the 3rd program unit, reads described parameter to the 3rd internal storage location and carries out initialization, notifies the 3rd program unit initialization to complete;
The second coding unit, reads described frame data to be encoded by the 3rd instruction and encodes, and the 3rd instruction is emptied;
Described device further comprises the 4th internal storage location;
The second described control unit is further used for a frame data to be encoded circulation to be stored to the 3rd internal storage location and the 4th internal storage location; One frame data to be encoded are stored to the 4th internal storage location to be specially: further next frame data to be encoded are stored to the 4th internal storage location, and send the 4th instruction;
The second described coding unit, is further used for reading described next frame data to be encoded by the 4th instruction to the four internal storage locations and encodes, and the 4th instruction is emptied;
Described the 3rd program unit is 64 program units, and described the 4th program unit is 32 program units.
CN201010559733.0A 2010-11-25 2010-11-25 Methods and devices for decoding and coding audio/video data Expired - Fee Related CN102098510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010559733.0A CN102098510B (en) 2010-11-25 2010-11-25 Methods and devices for decoding and coding audio/video data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010559733.0A CN102098510B (en) 2010-11-25 2010-11-25 Methods and devices for decoding and coding audio/video data

Publications (2)

Publication Number Publication Date
CN102098510A CN102098510A (en) 2011-06-15
CN102098510B true CN102098510B (en) 2014-07-09

Family

ID=44131348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010559733.0A Expired - Fee Related CN102098510B (en) 2010-11-25 2010-11-25 Methods and devices for decoding and coding audio/video data

Country Status (1)

Country Link
CN (1) CN102098510B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455361B (en) * 2013-09-06 2017-02-08 南京南自信息技术有限公司 Method for calling 32-bit decoding library under 64-bit operating system
CN106559698A (en) * 2015-09-28 2017-04-05 深圳市中兴微电子技术有限公司 A kind of data processing method and device
CN110446046B (en) * 2019-08-19 2021-04-27 杭州图谱光电科技有限公司 Batch image fast decoding method based on embedded platform
CN111126586A (en) * 2019-12-25 2020-05-08 Oppo广东移动通信有限公司 Data communication circuit, electronic device, and data communication method
CN111142969A (en) * 2019-12-27 2020-05-12 贵阳动视云科技有限公司 Method, device, medium and equipment for calling 32-bit program module by 64-bit program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716226A (en) * 2004-06-30 2006-01-04 中国科学院计算技术研究所 Make the system and the conversion equipment of compatible 32 bridging chips of 64 bit processors
CN101272501A (en) * 2008-05-07 2008-09-24 北京数码视讯科技股份有限公司 Video/audio encoding and decoding method and device
CN101382884A (en) * 2007-09-07 2009-03-11 上海奇码数字信息有限公司 Instruction coding method, instruction coding system and digital signal processor
CN101834608A (en) * 2009-03-10 2010-09-15 华为技术有限公司 Multichannel decoder-coder operation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716226A (en) * 2004-06-30 2006-01-04 中国科学院计算技术研究所 Make the system and the conversion equipment of compatible 32 bridging chips of 64 bit processors
CN101382884A (en) * 2007-09-07 2009-03-11 上海奇码数字信息有限公司 Instruction coding method, instruction coding system and digital signal processor
CN101272501A (en) * 2008-05-07 2008-09-24 北京数码视讯科技股份有限公司 Video/audio encoding and decoding method and device
CN101834608A (en) * 2009-03-10 2010-09-15 华为技术有限公司 Multichannel decoder-coder operation method and device

Also Published As

Publication number Publication date
CN102098510A (en) 2011-06-15

Similar Documents

Publication Publication Date Title
CN102098510B (en) Methods and devices for decoding and coding audio/video data
CN111279327B (en) Write credit management for non-volatile memory
CN104007977A (en) Electronic device and audio playing method
US9430326B2 (en) Multiple ECC codeword sizes in an SSD
JP2010528380A5 (en)
TW201721422A (en) Data storage device and operating method thereof
WO2016176807A1 (en) Dram refreshing method, apparatus and system
CN101447207A (en) Media recording method and device thereof
CN100458697C (en) User program guiding method and system
US8230276B2 (en) Writing to memory using adaptive write techniques
CN103297183A (en) Data communication method and device
US20080164321A1 (en) Serial ata card reader control system and controlling method of the same
CN101510175B (en) Method for updating target data to memory and apparatus thereof
CN101770427A (en) Method and device for utilizing flash memory space
KR101342658B1 (en) Non-volatile memory system and method of configuring the same
KR102216006B1 (en) Memory controller and storage device including the same
US8386739B2 (en) Writing to memory using shared address buses
CN101499854B (en) Method for converting data between optical fiber signal and SAS signal
US9671973B2 (en) Data storage in degraded solid state memory
CN109271108B (en) Memory control device and data storage equipment
CN107301868B (en) Audio decoding system and audio decoding method
CN101261605A (en) Fusion memory device and method
CN105224241A (en) Mram memory, data-storage system and method for reading data
CN108874577B (en) Encoding and decoding device and method for encoding and decoding
CN103731313A (en) Counter based on DDR SDRAM and implementation method thereof

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

Owner name: SHENZHEN RONGCHANG TIANXIA TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SHENZHEN TEMOBI SCIENCE + TECHNOLOGY CO., LTD.

CP03 Change of name, title or address

Address after: 518057 Guangdong, Shenzhen Province, science and technology, South Road, No. twelve Changhong science and technology building, building 19, unit 01-11, unit 18

Patentee after: SHENZHEN TEMOBI TECHNOLOGY CO., LTD.

Address before: 19, building 518057, Changhong technology building, 18 South twelve Road, Nanshan District science and technology, Guangdong, Shenzhen

Patentee before: Shenzhen Temobi Science & Tech Development Co.,Ltd.

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: 20140709

Termination date: 20171125