CN110730359A - Video stream data reading method, device, equipment and storage medium - Google Patents
Video stream data reading method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110730359A CN110730359A CN201910935622.6A CN201910935622A CN110730359A CN 110730359 A CN110730359 A CN 110730359A CN 201910935622 A CN201910935622 A CN 201910935622A CN 110730359 A CN110730359 A CN 110730359A
- Authority
- CN
- China
- Prior art keywords
- data
- read
- target data
- reading
- video stream
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000012795 verification Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 10
- 230000005856 abnormality Effects 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23113—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving housekeeping operations for stored content, e.g. prioritizing content for deletion because of storage space restrictions
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a video stream data reading method, a video stream data reading device, video stream data reading equipment and a storage medium, wherein the method comprises the following steps: receiving a data processing request, and determining video stream data which is required to be processed and corresponds to the data processing request as target data; if the data bit of the target data is larger than the data bit which can be read by a single read port, judging whether a parallel read mark is set, if the parallel read mark is set, reading the target data in a parallel mode by using a plurality of read ports, and if the parallel read mark is not set, reading for multiple times by using the single read port until all the target data are read; and if the data bits of the target data are not larger than the data bits which can be read by a single read port, directly reading the target data by using the single read port. The technical scheme disclosed by the application can effectively improve the data reading efficiency and the data processing efficiency of the video stream data.
Description
Technical Field
The present invention relates to the field of multimedia video processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for reading video stream data.
Background
The video data stream is a continuous data stream, and when data of the video data stream (video stream data for short) needs to be processed, the video stream data needs to be read first, and then the read video stream data is processed; however, since the data bits of the video stream data to be processed each time are not fixed, if the data bits of the video stream data to be processed are too long, the video stream data needs to be read many times, which results in lower reading efficiency of the video stream data and thus lower processing efficiency of the video stream data.
Disclosure of Invention
The invention aims to provide a video stream data reading method, a video stream data reading device and a storage medium, which can effectively improve the data reading efficiency and the data processing efficiency of video stream data.
In order to achieve the above purpose, the invention provides the following technical scheme:
a video stream data reading method, comprising:
receiving a data processing request, and determining video stream data which is required to be processed and corresponds to the data processing request as target data;
if the data bit of the target data is larger than the data bit which can be read by a single read port, judging whether a parallel read mark is set, if the parallel read mark is set, reading the target data in a parallel mode by using a plurality of read ports, and if the parallel read mark is not set, reading for multiple times by using the single read port until all the target data are read;
and if the data bits of the target data are not larger than the data bits which can be read by a single read port, directly reading the target data by using the single read port.
Preferably, after determining that the video stream data currently needing to be processed corresponding to the read enable signal is target data, the method further includes:
judging whether a check mark is set or not, if so, simultaneously executing the step of reading the target data by utilizing a plurality of reading ports so as to read and obtain a plurality of sets of target data; if the read target data are all the same, determining that the verification is passed, and determining that the read target data are video stream data needing to be processed; if the read target data of the multiple copies are not all the same, determining that the verification fails;
and if the check mark is not set, directly executing the step of reading the target data to obtain a copy of target data.
Preferably, after determining that the verification fails, the method further includes:
if at least two identical target data exist in the read multiple target data sets, determining that the at least two identical target data sets are video stream data needing to be processed, and outputting port marks of read ports corresponding to target data different from the video stream data needing to be processed in the read multiple target data sets.
Preferably, after determining that the verification fails, the method further includes:
and if any two identical target data do not exist in the read multiple target data, outputting a read mark of a read port for reading the multiple target data and a module mark of the storage module where the multiple target data are located before being read.
Preferably, after determining the video stream data to be processed, the method further includes:
determining the data bit of the video stream data needing to be processed currently as a target data bit;
and if the data bit of the video stream data needing to be processed is larger than the target data bit, taking the data of the target data bit from the video stream data needing to be processed for processing, and caching redundant data for the next processing.
Preferably, before the target data is read in parallel by using a plurality of read ports, the method further includes:
dividing the target data into a plurality of data parts, and setting a serial number corresponding to the address of each data part; wherein the data bits of each of the data portions are equal to the data bits that can be read by a single read port;
reading the target data in a parallel manner using a plurality of read ports, comprising:
reading a plurality of data parts corresponding to the target data in a parallel mode by utilizing a plurality of read ports in a one-to-one correspondence mode of the read ports and the data parts;
after the target data is read in a parallel manner by using a plurality of read ports, the method further comprises the following steps:
and splicing the read data parts according to the serial numbers of the data parts to obtain the target data.
Preferably, the method further comprises the following steps:
and receiving mark setting information input by an external user through a calling setting interface, and setting parallel reading marks and/or verification marks based on the mark setting information.
A video stream data reading apparatus comprising:
a determination module to: receiving a data processing request, and determining video stream data which is required to be processed and corresponds to the data processing request as target data;
a first reading module to: if the data bit of the target data is larger than the data bit which can be read by a single read port, judging whether a parallel read mark is set, if the parallel read mark is set, reading the target data in a parallel mode by using a plurality of read ports, and if the parallel read mark is not set, reading for multiple times by using the single read port until all the target data are read;
a second reading module to: and if the data bits of the target data are not larger than the data bits which can be read by a single read port, directly reading the target data by using the single read port.
A video stream data reading apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the video stream data reading method as described in any one of the above when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the video stream data reading method according to any one of the above.
The invention provides a video stream data reading method, a video stream data reading device, video stream data reading equipment and a storage medium, wherein the method comprises the following steps: receiving a data processing request, and determining video stream data which is required to be processed and corresponds to the data processing request as target data; if the data bit of the target data is larger than the data bit which can be read by a single read port, judging whether a parallel read mark is set, if the parallel read mark is set, reading the target data in a parallel mode by using a plurality of read ports, and if the parallel read mark is not set, reading for multiple times by using the single read port until all the target data are read; and if the data bits of the target data are not larger than the data bits which can be read by a single read port, directly reading the target data by using the single read port. According to the technical scheme, when the data bit of the target data needing to be read is larger than the data bit which can be read by a single read port, if the parallel read mark is arranged, the requirement of the current scene on the data reading efficiency and the data processing efficiency is high, different parts in the target data are read in parallel by using a plurality of read ports, so that the data reading efficiency is greatly improved, and the data processing efficiency is further improved. And when the data bit of the target data to be read is larger than the data bit which can be read by a single read port, if the parallel read mark is not set, the data reading efficiency and the data processing requirement of the current scene are low or the read port is required to be used for reading other data, the target data can be read for many times by the single port, so that the requirements of different scenes can be met.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present invention, the drawings needed to be used in the description of the embodiments or the background art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a video stream data reading method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a video data reading apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of a method for reading video stream data according to an embodiment of the present invention is shown, where the method may include:
s11: and receiving a data processing request, and determining video stream data which corresponds to the data processing request and needs to be processed as target data.
It should be noted that, the execution subject of the video stream data reading method provided by the embodiment of the present invention may be a corresponding video stream data reading apparatus. The video stream data can be stored in the memory RAM, and further read from the memory RAM when the video stream data needs to be processed. It should be noted that the video stream data is continuously stored in the memory RAM, and thus the video stream data has continuous addresses. After receiving the data processing request, the video stream data target data which needs to be processed in the RAM can be determined, and then the target data is read and processed.
S12: and if the data bit of the target data is larger than the data bit which can be read by a single read port, judging whether a parallel read mark is set, if so, reading the target data in a parallel mode by using a plurality of read ports, and if not, reading for multiple times by using the single read port until all the target data are read.
Since the data bits that can be read by a single read port are fixed, such as 8 bits; however, the data bit length of the video stream data required when the video stream data is processed is not fixed, so in the present application, the data bit of the target data determined when the target data is determined is an integer multiple of the data bit that can be read by a single read port, specifically, the data bit that needs to be processed may be rounded up by dividing the data bit that needs to be processed by the data bit that can be read by a single read port, and then the data bit of the target data may be obtained by multiplying the result of rounding up by the data bit that can be read by a single read port, and then the corresponding target data may be determined from the memory RAM. It should be noted that, in this embodiment, it is first determined whether a data bit of target data is larger than a data bit that can be read by a single read port, and if the determination result is yes, it is determined that the target data cannot be read by the single read port at one time, at this time, it is necessary to determine whether the current scene has high requirements on data reading efficiency and data processing efficiency of video stream data, that is, whether parallel read marks are provided, if so, multiple portions included in the target data are read in parallel by using multiple read ports, and if single data read is used as one read cycle, multiple sets of data can be read in one read cycle in a parallel read manner in this application, so that the data reading efficiency is greatly improved, and the data processing efficiency is further improved; if not, the current scenario is indicated to have low requirements on data reading efficiency and data processing efficiency, or the reading port needs to be utilized to read other data, so that a single reading port is directly utilized to read all the target data for multiple times. Therefore, the method can flexibly realize the quick reading or normal reading of the target data based on the requirements of the current scene on the data reading efficiency and the data processing efficiency.
In addition, the data volume of the read ports can be set according to actual needs, for example, the read ports can be two groups of independent read ports; each read port is independent and has a clock (clk _ r), a read enable signal (r _ en), a read address (r _ addr), and a read data output (r _ data _ out) pin. In the application, the read enable signal can be controlled to realize data reading in a mode of inputting the read enable signal to the read port.
S13: and if the data bits of the target data are not larger than the data bits which can be read by the single read port, directly reading the target data by using the single read port.
If the data bits of the target data are not larger than the data that can be read by a single read port, the target data can be read directly by the single read port.
According to the technical scheme, when the data bit of the target data needing to be read is larger than the data bit which can be read by a single read port, if the parallel read mark is arranged, the requirement of the current scene on the data reading efficiency and the data processing efficiency is high, different parts in the target data are read in parallel by using a plurality of read ports, so that the data reading efficiency is greatly improved, and the data processing efficiency is further improved. And when the data bit of the target data to be read is larger than the data bit which can be read by a single read port, if the parallel read mark is not set, the data reading efficiency and the data processing requirement of the current scene are low or the read port is required to be used for reading other data, the target data can be read for many times by the single port, so that the requirements of different scenes can be met.
The method for reading video stream data according to the embodiment of the present invention may further include, after determining that video stream data that needs to be processed currently and corresponds to the read enable signal is target data:
judging whether a check mark is set or not, if so, simultaneously executing the step of reading the target data by utilizing a plurality of reading ports so as to read and obtain a plurality of copies of the target data; if the read target data are all the same, determining that the verification is passed, and determining that the read target data are video stream data needing to be processed; if the read target data of the multiple copies are not all the same, determining that the verification fails;
and if the check mark is not set, directly executing the step of reading the target data to read a copy of the target data.
In order to ensure the validity of the read data, the read target data may be verified in this embodiment, specifically, multiple sets of target data may be read simultaneously by using the above method, and then it is determined whether the read target data are the same, if so, it indicates that the read ports are normal, and therefore, the data is verified to be passed, otherwise, it indicates that an abnormal condition exists, and the data is not verified to be passed. Moreover, the check mark is not required to be set in the scene with lower requirement on the data validity, so that the requirements of different application scenes can be flexibly met in the mode. In addition, in this embodiment, the manner of reading the multiple sets of target data or the single set of target data is implemented according to steps S12 to S13, which is not described herein again.
The method for reading video stream data provided by the embodiment of the present invention may further include, after determining that the verification fails:
if at least two identical target data exist in the read multiple target data sets, determining that the at least two identical target data sets are video stream data needing to be processed, and outputting port marks of read ports corresponding to target data different from the video stream data needing to be processed in the read multiple target data sets.
Because the read port can read correct data only when no abnormality exists, and the possibility that the read same data is the same is extremely low if the abnormality exists in the plurality of read ports, in this embodiment, if the read target data are not all the same, it is determined whether at least two identical target data exist therein, and if so, it is determined that the at least two identical target data are correct target data, that is, video stream data to be processed; and then, outputting port marks of the read ports corresponding to other target data different from the correct target data, so that a worker can timely know the read ports which are possibly abnormal based on the port marks, and further realize corresponding repair operation and the like.
The method for reading video stream data provided by the embodiment of the present invention may further include, after determining that the verification fails:
and if any two identical target data do not exist in the read multiple target data, outputting a read mark of a read port for reading the multiple target data and a module mark of the storage module where the multiple target data are located before being read.
If any two identical target data do not exist in the read target data, correct target data cannot be determined, and the read port with the abnormality cannot be preliminarily judged, so that in this case, the port marks of all the read ports are all output, so that a worker can timely know the read port with the abnormality on the basis, and further corresponding repair operation and the like are realized; in addition, the storage module is a module for storing video stream data, such as a memory RAM, and in this embodiment, in order to avoid an abnormality caused by the storage module, a module flag of the storage module is also output, so that a worker performs operations such as detection and repair on the corresponding storage module based on the module flag.
The method for reading video stream data provided in the embodiment of the present invention may further include, after determining the video stream data that needs to be processed:
determining the data bit of the video stream data needing to be processed currently as a target data bit;
if the data bit of the video stream data needing to be processed is larger than the target data bit, the data of the target data bit is taken from the video stream data needing to be processed for processing, and redundant data is cached for the next processing.
It should be noted that, because the data bits of the target data determined when the target data is determined are integer multiples of the data bits that can be read by a single read port, specifically, when the target data is read, the data bits that need to be processed may be divided by the data bits that can be read by a single read port, and rounded up, and then the result obtained by rounding up is multiplied by the data bits that can be read by a single read port to obtain the data bits of the target data, so as to determine the corresponding target data from the memory RAM. Therefore, the data bits of the data which may be read and needs to be processed are larger than the data bits which can be currently processed, only the data of the data bits which can be currently processed are taken for processing, and the rest data are cached (for example, cached in a register) and taken out for use when the video stream data needs to be processed next time; specifically, when the video stream data needs to be processed next time, if the data bit of the buffered video stream data is the data bit of the data which needs to be processed currently, the video stream data is directly taken out and processed, if the data bit of the buffered video stream data is smaller than the data bit of the data which needs to be processed currently, the video stream data is continuously read, the data bit of the buffered data plus the data bit of the read part or all of the video stream data is equal to the data bit of the data which needs to be processed currently, then the buffered data and the read whole or part of the video stream data are processed together, if the data bit of the buffered video stream data is larger than the data bit of the data which needs to be processed currently, the video stream data of the data bit of the data which needs to be processed currently is taken out from the buffered video stream data and processed, and the residual data in the buffer is processed next time, and so on; therefore, the repeated acquisition of the same data is avoided, and the data reading resource is saved. In addition, if the data bit of the video stream data needing to be processed is equal to the target data bit, directly taking the video stream data needing to be processed for processing, if the data bit of the video stream data needing to be processed is smaller than the target data bit, continuously reading the sum of the data bit of the video stream data needing to be processed and the data bit of all or part of the read video stream data to be equal to the data bit of the data needing to be processed currently, and then processing the video stream data needing to be processed and all or part of the read video stream; that is, in this application, when processing is performed each time, if the data bit of the read data (the read data includes data in the cache and/or data read at the current time) is smaller than the data bit of the data that needs to be processed currently, the data is continuously read to obtain the data of the data bit of the data that needs to be processed currently, if the data bit of the read data is larger than the data bit of the data that needs to be processed currently, the data of the data bit of the data that needs to be processed currently is taken to be processed, the data of the redundant data bit is left to be processed next time, and if the data bit of the read data is equal to the data bit of the data that needs to be processed currently, the read data is directly processed.
Before reading target data in a parallel manner by using a plurality of read ports, the method for reading video stream data according to the embodiment of the present invention may further include:
dividing target data into a plurality of data parts, and setting a serial number corresponding to the address of each data part; wherein the data bits of each data portion are equal to the data bits that can be read by a single read port;
reading the target data in a parallel manner using a plurality of read ports may include:
reading a plurality of data parts corresponding to target data in a parallel mode by utilizing a plurality of reading ports in a one-to-one correspondence mode of the reading ports and the data parts;
after the target data is read in a parallel manner by using a plurality of read ports, the method may further include:
and splicing the read data parts according to the serial numbers of the data parts to obtain target data.
It should be noted that, in this embodiment, corresponding sequence numbers may be set according to addresses of data portions divided for the target data, so that the position where the data portion should be located in the target data can be determined according to the sequence numbers of the data portions, and after a plurality of data portions of the target data are read, the data portions are spliced into the target data according to the sequence numbers of the data portions, thereby facilitating parallel reading of the target data.
The method for reading video stream data provided by the embodiment of the invention can further comprise the following steps:
and receiving the mark setting information input by an external user through a calling setting interface, and setting the parallel reading mark and/or the verification mark based on the mark setting information.
It should be noted that, if the user needs to set the presence or absence of the parallel reading mark and/or the verification mark, the setting can be implemented by inputting corresponding mark setting information by calling the setting interface, so that the user can conveniently perform different settings for different application scenarios.
Therefore, the technical characteristics disclosed by the application can read multiple groups of data by utilizing multiple reading ports in one reading period, so that the data reading efficiency and the data processing efficiency are improved.
An embodiment of the present invention further provides a video stream data reading apparatus, as shown in fig. 2, which may include:
a determining module 11, configured to: receiving a data processing request, and determining video stream data which corresponds to the data processing request and needs to be processed as target data;
a first reading module 12 for: if the data bit of the target data is larger than the data bit which can be read by a single reading port, judging whether a parallel reading mark is set, if the parallel reading mark is set, reading the target data in a parallel mode by using a plurality of reading ports, and if the parallel reading mark is not set, reading for multiple times by using the single reading port until all the target data are read;
a second reading module 13 configured to: and if the data bits of the target data are not larger than the data bits which can be read by the single read port, directly reading the target data by using the single read port.
The video stream data reading apparatus provided in the embodiment of the present invention may further include:
a verification module to: after determining that the current video stream data needing to be processed corresponding to the read enabling signal is target data, judging whether a check mark is set, if so, simultaneously executing a step of reading the target data by utilizing a plurality of read ports so as to read and obtain a plurality of sets of target data; if the read target data are all the same, determining that the verification is passed, and determining that the read target data are video stream data needing to be processed; if the read target data of the multiple copies are not all the same, determining that the verification fails; and if the check mark is not set, directly executing the step of reading the target data to read a copy of the target data.
The video stream data reading apparatus provided in the embodiment of the present invention may further include:
a first output module to: after the verification is determined to be failed, if at least two identical target data exist in the read multiple sets of target data, the at least two identical target data are determined to be video stream data needing to be processed, and port marks of read ports corresponding to target data different from the video stream data needing to be processed in the read multiple sets of target data are output.
The video stream data reading apparatus provided in the embodiment of the present invention may further include:
a second output module to: and after the verification is determined to be failed, if any two identical target data do not exist in the read multiple target data, outputting a read mark of a read port for reading the multiple target data and a module mark of the storage module where the multiple target data are located before being read.
The video stream data reading apparatus provided in the embodiment of the present invention may further include:
a data fetch module to: after video stream data needing to be processed is determined, determining the data bit of the video stream data needing to be processed at present as a target data bit; if the data bit of the video stream data needing to be processed is larger than the target data bit, the data of the target data bit is taken from the video stream data needing to be processed for processing, and redundant data is cached for the next processing.
The video stream data reading apparatus provided in the embodiment of the present invention may further include:
a partitioning module to: before the target data is read in a parallel mode by utilizing a plurality of read ports, dividing the target data into a plurality of data parts, and setting a serial number corresponding to the address of each data part; wherein the data bits of each data portion are equal to the data bits that can be read by a single read port;
a splicing module for: after the target data are read in a parallel mode by utilizing a plurality of read ports, splicing a plurality of read data parts according to serial numbers of the read data parts to obtain target data;
the first reading module may include:
a parallel read unit to: and reading a plurality of data parts corresponding to the target data in a parallel mode by utilizing a plurality of read ports in a mode that the read ports correspond to the data parts one by one.
The video stream data reading apparatus provided in the embodiment of the present invention may further include:
a setup module to: and receiving the mark setting information input by an external user through a calling setting interface, and setting the parallel reading mark and/or the verification mark based on the mark setting information.
An embodiment of the present invention further provides a video stream data reading apparatus, which may include:
a memory for storing a computer program;
a processor for implementing the steps of the video stream data reading method as any one of the above when executing the computer program.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program may implement the steps of the video stream data reading method as described above.
For a description of relevant parts in a video stream data reading apparatus, a device and a storage medium provided by an embodiment of the present invention, reference is made to detailed descriptions of corresponding parts in a video stream data reading method provided by an embodiment of the present invention, and no further description is given here. In addition, parts of the above technical solutions provided in the embodiments of the present invention that are the same as the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid repeated descriptions.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for reading video stream data, comprising:
receiving a data processing request, and determining video stream data which is required to be processed and corresponds to the data processing request as target data;
if the data bit of the target data is larger than the data bit which can be read by a single read port, judging whether a parallel read mark is set, if the parallel read mark is set, reading the target data in a parallel mode by using a plurality of read ports, and if the parallel read mark is not set, reading for multiple times by using the single read port until all the target data are read;
and if the data bits of the target data are not larger than the data bits which can be read by a single read port, directly reading the target data by using the single read port.
2. The method of claim 1, wherein after determining that the current video stream data to be processed corresponding to the read enable signal is target data, the method further comprises:
judging whether a check mark is set or not, if so, simultaneously executing the step of reading the target data by utilizing a plurality of reading ports so as to read and obtain a plurality of sets of target data; if the read target data are all the same, determining that the verification is passed, and determining that the read target data are video stream data needing to be processed; if the read target data of the multiple copies are not all the same, determining that the verification fails;
and if the check mark is not set, directly executing the step of reading the target data to obtain a copy of target data.
3. The method of claim 2, wherein after determining that the verification fails, further comprising:
if at least two identical target data exist in the read multiple target data sets, determining that the at least two identical target data sets are video stream data needing to be processed, and outputting port marks of read ports corresponding to target data different from the video stream data needing to be processed in the read multiple target data sets.
4. The method of claim 3, wherein after determining that the verification fails, further comprising:
and if any two identical target data do not exist in the read multiple target data, outputting a read mark of a read port for reading the multiple target data and a module mark of the storage module where the multiple target data are located before being read.
5. The method of claim 4, wherein after determining the video stream data that needs to be processed, further comprising:
determining the data bit of the video stream data needing to be processed currently as a target data bit;
and if the data bit of the video stream data needing to be processed is larger than the target data bit, taking the data of the target data bit from the video stream data needing to be processed for processing, and caching redundant data for the next processing.
6. The method of claim 5, wherein prior to reading the target data in parallel using multiple read ports, further comprising:
dividing the target data into a plurality of data parts, and setting a serial number corresponding to the address of each data part; wherein the data bits of each of the data portions are equal to the data bits that can be read by a single read port;
reading the target data in a parallel manner using a plurality of read ports, comprising:
reading a plurality of data parts corresponding to the target data in a parallel mode by utilizing a plurality of read ports in a one-to-one correspondence mode of the read ports and the data parts;
after the target data is read in a parallel manner by using a plurality of read ports, the method further comprises the following steps:
and splicing the read data parts according to the serial numbers of the data parts to obtain the target data.
7. The method of claim 6, further comprising:
and receiving mark setting information input by an external user through a calling setting interface, and setting parallel reading marks and/or verification marks based on the mark setting information.
8. A video stream data reading apparatus, comprising:
a determination module to: receiving a data processing request, and determining video stream data which is required to be processed and corresponds to the data processing request as target data;
a first reading module to: if the data bit of the target data is larger than the data bit which can be read by a single read port, judging whether a parallel read mark is set, if the parallel read mark is set, reading the target data in a parallel mode by using a plurality of read ports, and if the parallel read mark is not set, reading for multiple times by using the single read port until all the target data are read;
a second reading module to: and if the data bits of the target data are not larger than the data bits which can be read by a single read port, directly reading the target data by using the single read port.
9. A video stream data reading apparatus characterized by comprising:
a memory for storing a computer program;
processor for implementing the steps of the video stream data reading method according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, implements the steps of the video stream data reading method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910935622.6A CN110730359A (en) | 2019-09-29 | 2019-09-29 | Video stream data reading method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910935622.6A CN110730359A (en) | 2019-09-29 | 2019-09-29 | Video stream data reading method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110730359A true CN110730359A (en) | 2020-01-24 |
Family
ID=69219760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910935622.6A Pending CN110730359A (en) | 2019-09-29 | 2019-09-29 | Video stream data reading method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110730359A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0762300A2 (en) * | 1995-09-12 | 1997-03-12 | Kabushiki Kaisha Toshiba | Real time stream server for handling a plurality of real time stream data with different data rates |
US6021450A (en) * | 1996-12-09 | 2000-02-01 | Fujitsu Limited | Combining plural data lines and clock lines into set of parallel lines and set of serial lines |
CN104134464A (en) * | 2013-04-30 | 2014-11-05 | 鸿富锦精密工业(深圳)有限公司 | System and method for testing address line |
CN106156049A (en) * | 2015-03-27 | 2016-11-23 | 天脉聚源(北京)科技有限公司 | A kind of method and system of digital independent |
-
2019
- 2019-09-29 CN CN201910935622.6A patent/CN110730359A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0762300A2 (en) * | 1995-09-12 | 1997-03-12 | Kabushiki Kaisha Toshiba | Real time stream server for handling a plurality of real time stream data with different data rates |
US6021450A (en) * | 1996-12-09 | 2000-02-01 | Fujitsu Limited | Combining plural data lines and clock lines into set of parallel lines and set of serial lines |
CN104134464A (en) * | 2013-04-30 | 2014-11-05 | 鸿富锦精密工业(深圳)有限公司 | System and method for testing address line |
CN106156049A (en) * | 2015-03-27 | 2016-11-23 | 天脉聚源(北京)科技有限公司 | A kind of method and system of digital independent |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2010140127A (en) | Data transfer processing apparatus and method | |
CN109995548B (en) | Device management method and system, data transmission method and system and terminal device | |
CN104536884A (en) | Code testing method and device | |
CN113220362A (en) | Log record obtaining method and device, computer equipment and storage medium | |
CN110730359A (en) | Video stream data reading method, device, equipment and storage medium | |
CN109960866B (en) | Signal processing method, verification method and electronic equipment | |
US9791509B2 (en) | Monitoring microprocessor interface information for a preset service using an address based filter | |
CN109324838B (en) | Execution method and execution device of single chip microcomputer program and terminal | |
US9886411B2 (en) | Data transfer device and data transfer method | |
CN111861858A (en) | A method, device and related equipment for starting image compression function verification | |
CN108028530A (en) | ESD detection devices, integrated circuit and method applied to digital integrated electronic circuit | |
US9288161B2 (en) | Verifying the functionality of an integrated circuit | |
US20120023388A1 (en) | Parity Look-Ahead Scheme for Tag Cache Memory | |
CN116185387A (en) | Method and device for generating SOC chip pin multiplexing code | |
US20030177428A1 (en) | Simulation method and apparatus for verifying logic circuit including processor | |
CN106940684B (en) | Method and device for writing data according to bits | |
CN111308919B (en) | Wheel speed signal transmission method, device, terminal and computer-readable storage medium | |
CN113535338A (en) | Interaction method, system, storage medium and electronic device for data access | |
CN117079703B (en) | Method and device for testing embedded memory of chip and electronic equipment | |
CN112737831A (en) | Firmware upgrade package processing method and device, electronic equipment and storage medium | |
CN112559888A (en) | Recommended content tracing method and system, electronic device and readable storage medium | |
US6701472B2 (en) | Methods for tracing faults in memory components | |
CN109885402B (en) | Method for testing function output data overflow, terminal equipment and storage medium | |
CN117234707B (en) | Heterogeneous architecture-based Char type condition judgment method and system | |
CN117762718B (en) | Instruction monitoring method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200124 |
|
RJ01 | Rejection of invention patent application after publication |