CN113973227A - Data processing efficiency optimization method and device - Google Patents

Data processing efficiency optimization method and device Download PDF

Info

Publication number
CN113973227A
CN113973227A CN202010712093.6A CN202010712093A CN113973227A CN 113973227 A CN113973227 A CN 113973227A CN 202010712093 A CN202010712093 A CN 202010712093A CN 113973227 A CN113973227 A CN 113973227A
Authority
CN
China
Prior art keywords
field
currently identified
crc value
tables
field table
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
Application number
CN202010712093.6A
Other languages
Chinese (zh)
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 Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
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 Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN202010712093.6A priority Critical patent/CN113973227A/en
Publication of CN113973227A publication Critical patent/CN113973227A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4345Extraction or processing of SI, e.g. extracting service information from an MPEG stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4382Demodulation or channel decoding, e.g. QPSK demodulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a method and a device for optimizing data processing efficiency, wherein the method comprises the following steps: receiving a field table in the TS stream; respectively identifying the PAT table, the PMT table and the CAT table from the field table to obtain each currently identified field table; respectively acquiring CRC values of all currently identified field tables; judging whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record; under the condition that the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the historical record, the field tables of the PAT table, the PMT table and the CAT table are respectively identified from the field tables, namely, the repeated data are not processed, so that the set top box can be prevented from analyzing the repeated data, the repeated data are transmitted to upper-layer application, the time for analyzing and uploading the repeated data by the set top box is saved, and the data processing efficiency of the set top box is improved.

Description

Data processing efficiency optimization method and device
Technical Field
The present application relates to the field of data communications, and in particular, to a method and an apparatus for optimizing data processing efficiency.
Background
The digital tv set-top box receives a segment of code Stream, which is called Transport Stream (TS) (hereinafter referred to as TS Stream). Each TS stream in the TS stream carries some information, such as Video, Audio, program association table (PAT table), program mapping table (PMT table), and conditional access table (CAT table). The TS stream is a Packet-based bit stream format, and includes a plurality of TS packets, where the maximum payload of any one TS Packet is 184 bytes, and when the byte length of one PSI/SI table is greater than 184 bytes, the table is divided to form a section table (section table) for transmission. In practice, the set-top box needs to group the TS packets in the TS stream into a field table to extract the required information from the TS stream. Specifically, the demultiplexer of the set-top box wraps the TS data packets into a field table, that is, the data output by the demultiplexer is the field table.
At present, in order for a set-top box to receive a PAT table, a PMT table, and a CAT table at a corresponding frequency point at any time, a DVB front-end system of the radio and television office shortens a broadcast cycle on the basis of a reference broadcast cycle, that is, PSI data is transmitted to the set-top box at a high broadcast frequency, and the set-top box parses the received field table and transmits the parsed field table data to an upper application.
However, the set-top box has a problem of low data processing efficiency.
Disclosure of Invention
The application provides a method and a device for optimizing data processing efficiency, and aims to solve the problem of low data processing efficiency of a set top box.
In order to achieve the above object, the present application provides the following technical solutions:
the application provides an optimization method of data processing efficiency, which is applied to a set top box and comprises the following steps:
receiving a field table in the TS stream;
respectively identifying the PAT table, the PMT table and the CAT table from the field table to obtain each currently identified field table;
respectively acquiring CRC values of the currently identified field tables;
judging whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record;
and under the condition that the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the historical record, respectively identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables.
Optionally, the method further includes:
under the condition that the CRC value of each currently identified field table is different from the CRC value of the corresponding field table in the historical record, the CRC value of each currently identified field table is saved;
storing each currently identified field table;
and sending the currently identified field tables to a preset upper layer application.
Optionally, after the field tables of the PAT table, the PMT table, and the CAT table are respectively identified from the field table, and the currently identified field tables are obtained, the method further includes:
identifying the CRC value in each currently identified field table to obtain the identification CRC value of each currently identified field table;
calculating the CRC value of each currently identified field table to obtain the calculated CRC value of each currently identified field table;
and under the condition that the identification CRC value of each currently identified field table is different from the calculated CRC value of each currently identified field table, respectively identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables.
Optionally, the determining whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record includes:
and under the condition that the identification CRC value of each currently identified field table is correspondingly the same as the calculated CRC value of each currently identified field table, judging whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record.
The present application further provides an optimization apparatus for data processing efficiency, including:
the receiving module is used for receiving the field table in the TS stream;
the identification module is used for respectively identifying the PAT table, the PMT table and the field table of the CAT table from the field table to obtain each currently identified field table;
an obtaining module, configured to obtain CRC values of the currently identified field tables respectively;
the judging module is used for judging whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the historical record or not;
and the first execution module is used for respectively identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables under the condition that the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the historical record.
Optionally, the apparatus further comprises:
the second execution module is used for saving the CRC values of the currently identified field tables under the condition that the judging module judges that the CRC values of the currently identified field tables are different from the CRC values of the corresponding field tables in the historical records; storing each currently identified field table; and sending the currently identified field tables to a preset upper layer application.
Optionally, the apparatus further comprises:
the comparison module is used for identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables respectively in the identification module, and after each currently identified field table is obtained, identifying the CRC value in each currently identified field table to obtain the identification CRC value of each currently identified field table; calculating the CRC value of each currently identified field table to obtain the calculated CRC value of each currently identified field table; and under the condition that the identification CRC value of each currently identified field table is different from the calculated CRC value of each currently identified field table, respectively identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables.
Optionally, the determining module is configured to determine whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record, and includes:
the judging module is specifically configured to, when the comparison module obtains that the identification CRC value of each currently identified field table is correspondingly the same as the calculated CRC value of each currently identified field table, judge whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history.
The application also provides a storage medium, which comprises a stored program, wherein the program executes any one of the above data processing efficiency optimization methods.
The application also provides a device, which comprises at least one processor, at least one memory connected with the processor, and a bus; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory so as to execute any one of the above-mentioned optimization methods for data processing efficiency.
The method and the device for optimizing the data processing efficiency obtain a field table in a TS stream; respectively identifying the PAT table, the PMT table and the field table of the CAT table from the obtained field table to obtain a currently identified grid field table, namely the field tables respectively corresponding to the PAT table, the PMT table and the CAT table which are currently and respectively identified; respectively recording the CRC values of all currently identified field tables; the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record, which indicates that the field tables respectively corresponding to the currently identified PAT table, PMT table, and CAT table have already been received at the history time, i.e., the field tables respectively corresponding to the currently identified PAT table, PMT table, and CAT table are duplicate data. According to the method and the device, the PAT table, the PMT table and the CAT table are continuously and respectively identified from the field table, namely, the repeated data are not processed, the situation that the set top box analyzes the repeated data is avoided, the repeated data are transmitted to the upper layer application, the time for analyzing and uploading the repeated data by the set top box is saved, and therefore the data processing efficiency of the set top box is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a data processing efficiency optimization apparatus disclosed in an embodiment of the present application;
FIG. 2 is a block diagram of a field table of the PAT table disclosed in the embodiment of the present application;
FIG. 3 is a flowchart of a method for optimizing data processing efficiency according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a data processing efficiency optimizing apparatus disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
Fig. 1 is a schematic view of an application scenario of the data processing efficiency optimizing apparatus provided in this embodiment of the present application, including a DVB front-end system, a demultiplexer, a data processing efficiency optimizing apparatus and an upper layer application, where the DVB front-end system sends a TS stream to the demultiplexer, the TS stream is a series of data packets, the demultiplexer combines the data packets in the received TS stream into a field table, and sends the field table obtained by the combination to the data processing efficiency optimizing apparatus, and the data processing efficiency optimizing apparatus is configured to process the received field table, implement optimization of processing efficiency of the field table, and transmit the optimized field table to the upper layer application.
In the embodiment of the present application, the PAT table is the entry point received by the set-top box, which is the beginning of the acquisition of data; to ensure that a TS stream can be received normally, there is at least one complete valid PAT table. Then obtaining PID value of program mapping table (PMT table) of said program from program association table (PAT table), and finding out program mapping table (PMT table) corresponding to said PID value from TS stream; and then, the PID value of the elementary stream forming the program is obtained from the PMT table, so that the corresponding elementary streams such as video, audio, data and the like are filtered according to the PID value. Finally, the original signal is restored by decoding. I.e., the PMT table, functions in that it provides the PID value for each program video, audio (or other) packet.
The inventor finds in research that the order of the field table output by the decompressor is: PAT, PMT, DATA, … …, PAT, PMT, DATA, … …, i.e., at intervals, one PAT table is sent, followed by one PMT table, followed by DATA (audio video) DATA. From this order of reception, the transmitted data is periodic. However, the previous PAT tables and the next PAT tables or the previous PMT tables and the next PMT tables are not linked, so that the data processing can be optimized by studying the field table data of the same table at the receiving end.
Specifically, the composition structure of the field table of each table is studied, and the information structure composition of the field table of the PAT table is described as an example. In practice, a PAT table generally uses a field table for transmission, wherein the field table of the PAT table has a structure as shown in fig. 2.
As can be seen from fig. 2, the field table of the PAT table includes important syntax fields including: table _ id, section _ length, section _ number, last _ section _ number, Program _ number, network _ PID, Program _ map _ PID, and CRC _ 32. Wherein the meaning of each field is as follows:
table _ id: is a 1B field that identifies whether the content of a TS PSI segment is a program associated segment, a conditional access segment, a TS program map segment, or the like. For the PAT table, 0x0 is typically set.
section _ length: is a 12bit field that indicates the number of bytes of the segment, starting with the segment-long field, containing a CRC whose value does not exceed 1021.
section _ number: is a 1B field, giving the number of PAT table segments, i.e., the number of field tables of the PAT table. The section _ number bit of the first field table (section) in the PAT table takes a value of 0x00, and the value of each field table (section) in the PAT table will be incremented by 1.
last _ section _ number: is a 1B field that indicates the last field table (segment) number. In the field table (segment) of the entire PAT table, the maximum value of the number of field table (segment) numbers.
program _ number: is a 2B field that indicates for which program _ map _ PID the program is available. If 0x0000, then the following PID is the network PID, and the other values are user defined.
network _ PID: is a 13b field indicating the PID value of the TS packet containing NIT. In practice, this value is generally defined by the user according to the actual situation.
Program _ map _ PID: is a 13b field that indicates the PID value in the TS packet. The TS should contain program _ map _ section applicable to the program indicated by the program _ number, which field is specified by the program number. Wherein, one program number corresponds to the definition of one program _ map _ PID. In practice, this field is generally defined by the user according to the actual situation.
CRC _ 32: is a 32b field, which is a cyclic redundancy check code used to verify the correctness of the data.
In the present embodiment, through the study of the syntax fields in the PAT table, the PMT table, and the CAT table, the inventors found that the PID and tabeld values of the field tables of the PAT table, the PMT table, and the CAT table are different, where TABLEID is used to identify different field tables in the TS stream, and PID is used to identify the data type stored in the payload. Specifically, the differences between PID and tabeid of PAT table, PMT table and CAT table are shown in table 1 below.
TABLE 1
Table name Name of Chinese PID TABLEID Description of the invention
PAT Program association table 0x0000 0x00 Program information head list
PMT Program mapping table Is unknown 0x02 PID values are described in PAT tables, one or more
CAT Conditional access table 0x0001 0x01 Scrambled information table
Based on the above, an embodiment of the present application provides a method for optimizing data processing efficiency, as shown in fig. 3, where an execution subject of the method is the data processing efficiency optimizing apparatus, and the method includes the following steps:
s301, receiving a field table in the TS stream.
In this embodiment, since the field table is output from the demultiplexer, in this step, the field table in the TS stream is received.
S302, respectively identifying the PAT table, the PMT table and the field table of the CAT table from the received field table.
As can be seen from table 1, values of the tapesid fields in the field tables of the PAT table, the PMT table, and the CAT table are different, and therefore, in this step, which table of the PAT table, the PMT table, and the CAT table the received field table belongs to can be distinguished by the value of the tapesid field in the received field table.
S303, judging whether a PAT table, a PMT table and a field table of a CAT table are identified, if so, executing S304, and if not, executing S302.
In this step, it is determined whether the field tables of the PAT table, the PMT table, and the CAT table are identified, and if so, S304 is performed, and if not, S302 is performed, and the field tables of the PAT table, the PMT table, and the CAT table in the subsequent field tables are continuously identified from the received field tables.
In the present embodiment, for convenience of description, if identified, the field tables of the identified PAT table, PMT table, and CAT table are referred to as the currently identified field table.
S304, identifying the CRC value in each currently identified field table to obtain the identification CRC value of each currently identified field table.
The CRC algorithm is mainly used to detect or check errors that may occur after data transmission or storage, and whether corresponding load data is correct or not is obtained through polynomial calculation. Its advantages are high error-detecting power, low cost and easy implementation by encoder and detecting circuit. From the viewpoint of its error detection capability, the probability of an error that it cannot detect is only 0.0047% or less. The method is far superior to parity check, arithmetic and check and the like in terms of performance and overhead. Thus, CRC is ubiquitous in the fields of data storage and data communication.
In this embodiment, since the field tables of the PAT table, the PMT table, and the CAT table all have CRC fields, when the field tables of the PAT table, the PMT table, and the CAT table are identified, the CRC values corresponding to the field tables of the PAT table, the CRC values corresponding to the field tables of the PMT table, and the CRC values corresponding to the field tables of the CAT table, that is, each currently identified field table corresponds to one CRC value, may be identified.
In this embodiment, for any field table, the field value of the last 4 bytes of the field table is the CRC value, so in this step, the CRC value of each identified field table can be obtained by identifying the field value of the last 4 bytes of each currently identified field table.
Taking the CRC-32 version as an example, for any identified field table, the CRC value (an unsigned integer value with 32 bits) of the field table can be identified through a simple shift operation, where the specific shift calculation process may include:
sec_len=packet->section_length+3;
packet->CRC_32=(buffer[sec_len-4]&0x000000FF)<<24
|(buffer[sec_len-3]&0x000000FF)<<16
|(buffer[sec_len-2]&0x000000FF)<<8
|(buffer[sec_len-1]&0x000000FF);
sec _ len represents the total number of bytes (total number of field tables) of the segment, including the length of the first 3 bytes.
S305, calculating the CRC value of each currently identified field table to obtain the calculated CRC value of each currently identified field table.
In this step, the CRC value of each identified field table is calculated, and for the convenience of description, the calculated CRC value of each field table is referred to as the calculated CRC value of each currently identified field table.
In this embodiment, for any field table currently identified, the CRC value of the field table is calculated, that is, the CRC value is calculated for all data starting from the first byte (table _ id) of the field table to the front of the CRC _32 field.
In this embodiment, in order to improve the calculation efficiency, a table lookup manner may be adopted to obtain the calculated CRC value of each currently identified field table. Specifically, first, CRC check values calculated by 256 numbers, 0 to 255, are generated in advance, and a table including 256 elements is constructed. Then, the loop reverses the input values involved in the calculation and looks up the table, and finally a final value is obtained, namely the CRC value.
S306, respectively judging whether the identification CRC value of each currently identified field table is the same as the calculated CRC value, if not, executing S302, and if so, executing S307.
In the embodiment, in order to verify whether the data in the currently identified field table is correct, in this step, the identification CRC value of each currently identified field table is correspondingly compared with the calculated CRC value of each currently identified field table, that is, the identification CRC value of each field table of the PAT table is respectively compared with the calculated CRC value; comparing the identification CRC value of each field table of the PMT table with the calculated CRC value respectively; specifically, the identified CRC value of the first field table of the PMT table is compared to the calculated CRC value, the identified CRC value of the second field table of the PMT table is compared to the calculated CRC value, … …, and so on. And compares the identified CRC value of each field table of the CAT table with the calculated CRC value, respectively.
And under the condition that the identification CRC value of each currently identified field table is the same as the calculated CRC value, indicating that the data of each currently identified field table is correct, otherwise, indicating that error data exists in the data of each currently identified field table.
In this embodiment, in the case where the identification CRC value of each currently identified field table is the same as the calculated CRC value, S307 is executed, otherwise, S302 is executed.
In this embodiment, if there is error data in the data of each currently identified field table, each currently identified field table does not need to be uploaded to the upper layer application, that is, S302 is executed to identify, from the received field tables, the field tables of the PAT table, the PMT table, and the CAT table, which are subsequently received in the field tables, respectively.
S307, judging whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record, if so, executing S302, and if not, executing S308.
In this embodiment, in order to determine whether each currently identified field table is duplicate data, that is, whether each currently identified field table has been received in the historical time is determined. In this step, it is determined whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history.
It should be noted that whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history indicates that: whether a target field table sequence exists in the field table sequences of the historical records or not, wherein the target field sequence refers to: a field table sequence that is all the same as the CRC value of the field table at the same location as the current field table sequence. The field table sequence of the history record is a field table sequence obtained by arranging the field tables of the PAT table, the PMT table and the CAT table of the history record according to a preset sequence. The current field table sequence is a field table sequence obtained by arranging the field tables of the currently identified PAT table, PMT table and CAT table according to the preset sequence.
If so, it indicates that the currently identified data of each field table is duplicate data, then S302 is executed, otherwise, it indicates that the currently identified data of each field table is not duplicate data, then S308 is executed.
S308, the CRC value of each currently recognized field table is saved.
In this embodiment, since the Table _ ID values of the three tables, i.e., PAT Table, PMT Table, and CAT Table, are unique and different, the Table _ ID in the field Table can be used as the first record index. Since in practice, the PAT table, PMT table, or CAT table may be transmitted through multiple field tables during transmission, in order to distinguish different field tables in the same table, in the present embodiment, the section _ number is also used as the second record index. Wherein section _ number represents the index value of the current field table, starting from 0, and the maximum value is 0xff (225), which is used as the data index value, and the range is [0, 255 ].
In this step, the CRC values of the respective field tables are recorded by the first record index and the second record index.
After the present step is executed, S309 is executed.
S309, storing each field table identified currently.
The specific implementation manner of this step is the prior art, and is not described herein again.
After the present step is performed, S310 is performed.
And S310, calling back to the upper application.
In this embodiment, the operation of this step is performed in the case where the CRC value of each currently identified field table is different from the CRC value of the corresponding field table in the history, and in this case, the meaning indicated by the callback to the upper application is to transmit each field table data of the identified PAT table, PMT table, and CAT table to the upper application.
In this embodiment, the above-mentioned S304-S306 are not essential steps, that is, in this embodiment, after the currently recognized field tables are obtained, S307 may be directly executed to perform data duplication determination.
However, it can be determined whether the currently identified data of each field table is correct, i.e., is modified during transmission, etc. through the above-described S304-S306. Under the condition that the error data exists in the data of each currently identified field table, the currently identified field table does not need to be sent to the upper-layer application, so that the analysis of the data in the currently identified field table and the processing process of sending the data to the upper-layer application can be saved, and further, the data processing efficiency can be further optimized.
It should be further noted that, in this embodiment, in the case that the data of each currently identified field table is determined to be correct, whether the data is repeated is further determined, and in the case that the data is correct and there is no repetition, each currently identified field table is transmitted to the upper layer application, so that the validity of the data sent to the upper layer application is ensured.
The embodiment has the following beneficial effects:
the beneficial effects are that:
in this embodiment, it is only necessary to determine whether the data of each currently identified field table is repeated by determining whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table of the history record, that is, in this embodiment, the broadcasting system of the broadcasting and television bureau does not need to be modified. In practice, due to the existence of set-top boxes of different manufacturers and different service programs, modifying the broadcast system of the radio and television bureau may cause some published systems to be unusable or to have problems. Therefore, the embodiment can avoid the problem that some published systems cannot be used or have problems due to the fact that broadcasting systems of broadcasting and television bureaus are modified.
The beneficial effects are that:
in the present embodiment, the data transferred to the upper layer application is correct and non-duplicated data of each currently identified field table, and therefore, the validity of transferring the data to the upper layer application is ensured. Therefore, the embodiment can avoid the problem that some tables are missed because the set top box only receives the PAT table, the PMT table and the CAT table at the same frequency point once.
Fig. 4 is a data processing efficiency optimizing apparatus according to an embodiment of the present application, including: a receiving module 401, an identifying module 402, an obtaining module 403, a judging module 404 and a first executing module 405; the receiving module 401 is configured to receive a field table in the TS stream. The identification module 402 is configured to identify the PAT table, the PMT table, and the field table of the CAT table from the field tables, respectively, to obtain each currently identified field table. The obtaining module 403 is configured to obtain CRC values of the currently identified field tables respectively. The determining module 404 is configured to determine whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record. The first execution module 405 is configured to identify field tables of the PAT table, the PMT table, and the CAT table from the field tables, respectively, in case that the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history.
Optionally, the apparatus may further include:
the second execution module is configured to, when the determining module 404 determines that the CRC value of each currently identified field table is different from the CRC value of the corresponding field table in the history record, store the CRC value of each currently identified field table; storing each currently identified field table; and sending each currently identified field table to a preset upper layer application.
Optionally, the apparatus may further include:
the comparison module is used for identifying the field tables of the PAT table, the PMT table and the CAT table from the field table respectively at the identification module 402, and after each currently identified field table is obtained, identifying the CRC value in each currently identified field table, and obtaining the identification CRC value of each currently identified field table; calculating the CRC value of each currently identified field table to obtain the calculated CRC value of each currently identified field table; when the identification CRC value of each currently identified field table is different from the calculated CRC value of each currently identified field table, the field tables of the PAT table, the PMT table and the CAT table are respectively identified from the field tables.
Optionally, the determining module 404 is configured to determine whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record, and includes:
the determining module 404 is specifically configured to determine whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record when the comparing module obtains that the identified CRC value of each currently identified field table is correspondingly the same as the calculated CRC value of each currently identified field table.
The data processing efficiency optimizing device comprises a processor and a memory, wherein the receiving module 401, the identifying module 402, the obtaining module 403, the judging module 404, the first executing module 405 and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the data processing efficiency is improved by adjusting kernel parameters.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the method for optimizing data processing efficiency when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the optimization method of the data processing efficiency is executed when the program runs.
An embodiment of the present invention provides an apparatus, as shown in fig. 5, the apparatus includes at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory to execute the optimization method for the data processing efficiency. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
receiving a field table in the TS stream;
respectively identifying the PAT table, the PMT table and the CAT table from the field table to obtain each currently identified field table;
respectively acquiring CRC values of the currently identified field tables;
judging whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record;
and under the condition that the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the historical record, respectively identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
The functions described in the method of the embodiment of the present application, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution to the prior art of the embodiments of the present application or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Features described in the embodiments of the present specification may be replaced with or combined with each other, each embodiment is described with a focus on differences from other embodiments, and the same or similar portions among the embodiments may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. 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 application. Thus, the present application 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 optimizing data processing efficiency is applied to a set top box and comprises the following steps:
receiving a field table in the TS stream;
respectively identifying the PAT table, the PMT table and the CAT table from the field table to obtain each currently identified field table;
respectively acquiring CRC values of the currently identified field tables;
judging whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record;
and under the condition that the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the historical record, respectively identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables.
2. The method of claim 1, further comprising:
under the condition that the CRC value of each currently identified field table is different from the CRC value of the corresponding field table in the historical record, the CRC value of each currently identified field table is saved;
storing each currently identified field table;
and sending the currently identified field tables to a preset upper layer application.
3. The method according to claim 1, wherein after identifying the field tables of PAT table, PMT table, and CAT table respectively from the field tables to obtain currently identified field tables, further comprising:
identifying the CRC value in each currently identified field table to obtain the identification CRC value of each currently identified field table;
calculating the CRC value of each currently identified field table to obtain the calculated CRC value of each currently identified field table;
and under the condition that the identification CRC value of each currently identified field table is different from the calculated CRC value of each currently identified field table, respectively identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables.
4. The method of claim 3, wherein said determining whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record comprises:
and under the condition that the identification CRC value of each currently identified field table is correspondingly the same as the calculated CRC value of each currently identified field table, judging whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record.
5. An apparatus for optimizing data processing efficiency, comprising:
the receiving module is used for receiving the field table in the TS stream;
the identification module is used for respectively identifying the PAT table, the PMT table and the field table of the CAT table from the field table to obtain each currently identified field table;
an obtaining module, configured to obtain CRC values of the currently identified field tables respectively;
the judging module is used for judging whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the historical record or not;
and the first execution module is used for respectively identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables under the condition that the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the historical record.
6. The apparatus of claim 5, further comprising:
the second execution module is used for saving the CRC values of the currently identified field tables under the condition that the judging module judges that the CRC values of the currently identified field tables are different from the CRC values of the corresponding field tables in the historical records; storing each currently identified field table; and sending the currently identified field tables to a preset upper layer application.
7. The apparatus of claim 5, further comprising:
the comparison module is used for identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables respectively in the identification module, and after each currently identified field table is obtained, identifying the CRC value in each currently identified field table to obtain the identification CRC value of each currently identified field table; calculating the CRC value of each currently identified field table to obtain the calculated CRC value of each currently identified field table; and under the condition that the identification CRC value of each currently identified field table is different from the calculated CRC value of each currently identified field table, respectively identifying the field tables of the PAT table, the PMT table and the CAT table from the field tables.
8. The apparatus of claim 7, wherein the determining module is configured to determine whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history record, and includes:
the judging module is specifically configured to, when the comparison module obtains that the identification CRC value of each currently identified field table is correspondingly the same as the calculated CRC value of each currently identified field table, judge whether the CRC value of each currently identified field table is the same as the CRC value of the corresponding field table in the history.
9. A storage medium comprising a stored program, wherein the program performs the method of optimizing data processing efficiency according to any one of claims 1 to 4.
10. An apparatus comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory to execute the optimization method of the data processing efficiency according to any one of claims 1-4.
CN202010712093.6A 2020-07-22 2020-07-22 Data processing efficiency optimization method and device Pending CN113973227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010712093.6A CN113973227A (en) 2020-07-22 2020-07-22 Data processing efficiency optimization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010712093.6A CN113973227A (en) 2020-07-22 2020-07-22 Data processing efficiency optimization method and device

Publications (1)

Publication Number Publication Date
CN113973227A true CN113973227A (en) 2022-01-25

Family

ID=79584938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010712093.6A Pending CN113973227A (en) 2020-07-22 2020-07-22 Data processing efficiency optimization method and device

Country Status (1)

Country Link
CN (1) CN113973227A (en)

Similar Documents

Publication Publication Date Title
KR102120182B1 (en) Transmitting apppateus and transmitting method thereof
CN107017966B (en) Data packet packaging method and verification method
US8774413B2 (en) Method and apparatus for processing entitlement control message packets
JP3464264B2 (en) Data packet transmission / reception method
US20180227644A1 (en) Transmission apparatus, transmission method, reception apparatus, and reception method
US9917930B2 (en) Transmitting apparatus and receiving apparatus and signal processing method thereof
JP2016519527A (en) Method and apparatus for compressing packet header
US9264189B2 (en) Method and device for detecting downlink control information
US9209931B2 (en) Device and method for transmission, device and method for reception, and program
US8718131B2 (en) Method and apparatus for generating and processing packet in MPEG-2 transport stream
KR102103903B1 (en) Transmitting apparatus and receiving apparatus and data processing method thereof
US11582289B2 (en) Apparatus for transmitting broadcast signals, apparatus for receiving broadcast signals, method of transmitting broadcast signals and method of receiving broadcast signals
CN113973227A (en) Data processing efficiency optimization method and device
WO2011082834A1 (en) Error correction
CN110035436B (en) Information monitoring method, device, equipment and storage medium
CN109644060B (en) Data processing apparatus and data processing method
US20220014291A1 (en) Method and device for transmitting and receiving broadcast signal for application file filtering in hybrid broadcast system
US20080134230A1 (en) Apparatus and method for extracting conditional access internal message in mobile multimedia broadcasting system
US8427960B2 (en) Method and device for analyzing data
CN112243159A (en) Data processing and reading method and server, terminal and system based on DVB
CN114598756B (en) ALP data packet processing method, storage medium and electronic equipment
CN117294685A (en) Encoding method, decoding method, apparatus, electronic device, and storage medium
CN117014647A (en) Audio and video information transmission method, system, terminal equipment and storage medium
CN111224743A (en) Detection method, terminal and computer readable storage medium
CN117896278A (en) Message data extraction method and device, computer 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