CN112291568B - Data processing method, device, medium, network access equipment and electronic equipment - Google Patents

Data processing method, device, medium, network access equipment and electronic equipment Download PDF

Info

Publication number
CN112291568B
CN112291568B CN202011270357.3A CN202011270357A CN112291568B CN 112291568 B CN112291568 B CN 112291568B CN 202011270357 A CN202011270357 A CN 202011270357A CN 112291568 B CN112291568 B CN 112291568B
Authority
CN
China
Prior art keywords
decoding
coding
data
network access
processed
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.)
Active
Application number
CN202011270357.3A
Other languages
Chinese (zh)
Other versions
CN112291568A (en
Inventor
刘伟
彭昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011270357.3A priority Critical patent/CN112291568B/en
Publication of CN112291568A publication Critical patent/CN112291568A/en
Priority to PCT/CN2021/114592 priority patent/WO2022100203A1/en
Application granted granted Critical
Publication of CN112291568B publication Critical patent/CN112291568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The embodiment of the application discloses a data processing method, a device, a medium, a network access device and an electronic device, wherein the application acquires data to be processed from the electronic device providing network access service through the network access device, acquires coding and decoding demand information of the data to be processed of the electronic device, performs specified coding and decoding processing on the data to be processed according to the coding and decoding demand information, obtains a coding and decoding result corresponding to the data to be processed, and finally transmits the obtained coding and decoding result to the electronic device for the electronic device to perform corresponding processing. Therefore, the electronic equipment which provides the network access service for the network access equipment shares the coding and decoding capacity, and the coding and decoding processing of the electronic equipment can be realized on the premise of not increasing a large amount of electric energy consumption and operation load.

Description

Data processing method, device, medium, network access equipment and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data processing method, apparatus, medium, network access device, and electronic device.
Background
Electronic devices such as smart phones and tablet computers can establish network connection with network access devices (such as Wi-Fi routers), and access the internet by using network access services provided by the network access devices, so as to listen to songs, watch videos and the like online. At present, in order to improve the transmission efficiency of data, the data transmitted on the network is usually encoded data, and accordingly, the electronic device needs to encode the data before transmitting the data, and needs to decode the data after receiving the data. However, the encoding and decoding process of the data not only consumes a large amount of power of the electronic device, but also increases the operation load thereof.
Disclosure of Invention
The application provides a data processing method, a device, a medium, a network access device and an electronic device, which can enable the electronic device to realize coding and decoding processing on the premise of not increasing a large amount of electric energy consumption and operation load.
In a first aspect, the present application provides a data processing method applied to a network access device, where the network access device is configured to provide a network access service for an electronic device, and the data processing method includes:
acquiring data to be processed from the electronic equipment and acquiring coding and decoding demand information of the electronic equipment on the data to be processed;
performing specified encoding and decoding processing on the data to be processed according to the encoding and decoding demand information to obtain an encoding and decoding result corresponding to the data to be processed;
and transmitting the coding and decoding results to the electronic equipment.
In a second aspect, the present application provides a data processing method applied to an electronic device, where the electronic device is provided with a network access service by a network access device, and the data processing method includes:
acquiring data to be processed which needs to be coded and decoded, and determining coding and decoding demand information corresponding to the data to be processed;
transmitting the data to be processed and the coding and decoding demand information to the network access equipment, so that the network access equipment performs specified coding and decoding processing on the data to be processed according to the coding and decoding demand information to obtain a coding and decoding result corresponding to the data to be processed;
and receiving the coding and decoding result returned by the network access equipment.
In a third aspect, the present application provides a data processing apparatus, applied to a network access device, where the network access device is configured to provide a network access service for an electronic device, and the data processing apparatus includes:
the data acquisition module is used for acquiring data to be processed from the electronic equipment and acquiring coding and decoding requirement information of the electronic equipment on the data to be processed;
the coding and decoding processing module is used for carrying out specified coding and decoding processing on the data to be processed according to the coding and decoding demand information to obtain a coding and decoding result corresponding to the data to be processed;
and the data transmission module is used for transmitting the coding and decoding results to the electronic equipment.
In a fourth aspect, the present application provides a data processing apparatus, applied to an electronic device, where the electronic device provides a network access service through a network access device, and the data processing apparatus includes:
the data acquisition module is used for acquiring to-be-processed data needing encoding and decoding processing and determining encoding and decoding demand information corresponding to the to-be-processed data;
the data transmission module is used for transmitting the data to be processed and the coding and decoding demand information to the network access equipment, so that the network access equipment performs specified coding and decoding processing on the data to be processed according to the coding and decoding demand information to obtain a coding and decoding result corresponding to the data to be processed;
and the data receiving module is used for receiving the coding and decoding result returned by the network access equipment.
In a fifth aspect, the present application provides a storage medium having stored thereon a computer program for executing the data processing method applied to a network access device as provided herein when the computer program is loaded by a processor of the network access device, or for executing the data processing method applied to an electronic device as provided herein when the computer program is loaded by a processor of the electronic device.
In a sixth aspect, the present application provides a network access device, which includes a processor and a memory, where the memory stores a computer program, and the processor executes a data processing method applied to the network access device as provided in the present application by loading the computer program.
In a seventh aspect, the present application provides an electronic device, which includes a processor and a memory, where the memory stores a computer program, and the processor executes the data processing method applied to the electronic device as provided in the present application by loading the computer program.
By adopting the technical scheme provided by the application, the coding and decoding capabilities can be shared by the network access equipment to the accessed electronic equipment, so that the electronic equipment can realize coding and decoding processing on the premise of not increasing a large amount of electric energy consumption and operation load.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a data processing system provided by an embodiment of the present application.
Fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application.
Fig. 3 is an exemplary diagram of an electronic device acquiring data to be processed and transmitting the data to a network access device in an embodiment of the present application.
Fig. 4 is a schematic diagram of an electronic device obtaining data to be processed and performing coding and decoding processing through a network access device to obtain a coding and decoding result in the embodiment of the present application.
Fig. 5 is a schematic diagram of splitting and transmitting a coding and decoding result in an embodiment of the present application.
Fig. 6 is another schematic flow chart of the data processing method according to the embodiment of the present application.
Fig. 7 is a schematic flowchart of a data processing method according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Fig. 9 is another schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of a network access device according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
It should be noted that the relational terms such as first and second and the like referred to in the following embodiments of the present application are only used for distinguishing one entity or operation from another entity or operation, and are not used for limiting the actual sequence relationship between the entities or operations.
Referring to fig. 1, the data processing system provided by the present application includes an electronic device and a network access device. It should be noted that, in the embodiment of the present application, the entity presentation form of the electronic device and the network access device is not particularly limited, for example, the entity presentation form of the electronic device may be a smartphone shown in fig. 1, and the entity presentation form of the network access device may be a router shown in fig. 1.
The electronic device and the network access device perform data interaction through network connection therebetween, and the network connection may be wired network connection (for example, the electronic device and the network access device are directly connected through a data line, so as to establish wired network connection therebetween), may also be wireless network connection (including but not limited to wireless communication modes such as bluetooth, infrared, and wireless fidelity), and may also establish wired network connection and wireless network connection simultaneously. For example, when there is data to be processed that needs to be encoded and decoded, the electronic device transmits the data to be processed to the network access device through the network connection between the electronic device and the network access device, and the network access device performs specified encoding and decoding on the data to be processed and then returns a corresponding encoding and decoding result to the electronic device, so as to share encoding and decoding capabilities with the electronic device, so that the electronic device can implement encoding and decoding processing without increasing a large amount of power consumption and operation load.
It should be noted that fig. 1 described above only shows an example of a system architecture for implementing the embodiment of the present application, and the embodiment of the present application is not limited to the system architecture shown in fig. 1 described above. Various embodiments of the present application are presented below, taking the system architecture shown in fig. 1 as an example.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present disclosure. The data processing method is applied to the network access device in the data processing system provided by the present application, and as shown in fig. 2, the flow of the data processing method provided by the embodiment of the present application may be as follows:
in 110, data to be processed from the electronic device is obtained, and encoding and decoding requirement information of the data to be processed by the electronic device is obtained.
The data processing method provided by the present application will be described below from the perspective of a network access device.
The network access device provides a network access service for the electronic device, so that the electronic device can access a network, such as the internet, an internal network of an organization, and the like, through the network access device.
The data to be processed is provided by the electronic device, wherein the data to be processed can be generated by the electronic device itself, or can be obtained by the electronic device from a network or other electronic devices. It should be noted that the data to be processed may be any data capable of being subjected to encoding and decoding processing, which is not particularly limited in the embodiment of the present application, and may be, for example, original image data, encoded video data, encoded audio data, and the like.
When the electronic equipment has to-be-processed data which needs to be subjected to coding and decoding processing, the to-be-processed data is transmitted to the network access equipment, and correspondingly, the network access equipment acquires the to-be-processed data from the electronic equipment.
For example, referring to fig. 3, the network access device provides a network access service for the electronic device and other electronic devices, and at a certain time, the other electronic devices share video data with the electronic device, and the electronic device can play the video data after decoding the video data, so that the electronic device transmits the video data to the network access device as to-be-processed data that needs to be encoded and decoded, through a network connection with the network access device.
In the embodiment of the application, the electronic device transmits encoding and decoding demand information to the network access device in addition to the to-be-processed data to the network access device, wherein the encoding and decoding demand information describes encoding and decoding demands of the electronic device on the to-be-processed data and is used for indicating which encoding and decoding mode is adopted by the network access device to perform encoding and decoding processing on the to-be-processed data.
In 120, the data to be processed is subjected to the specified encoding and decoding processing according to the encoding and decoding requirement information, so as to obtain the encoding and decoding result corresponding to the data to be processed.
In the embodiment of the application, after acquiring the data to be processed from the electronic device and the corresponding coding and decoding requirement information, the network access device performs specified coding and decoding processing on the data to be processed through the local coding and decoding capability according to the indication of the coding and decoding requirement information, and correspondingly obtains the coding and decoding results corresponding to the data to be processed. The codec capability of the network access device may be self-contained in the system, or may be obtained by installing a codec plug-in.
For example, the data to be processed is video data in h.264 format, but the electronic device desires to encode the video data into video data in h.265 format, so that the video data in h.264 format and the codec requirement information for indicating that the video data is encoded into h.265 format are transmitted to the network access device, so that the network access device encodes the video data in h.264 format into h.265 format, and obtains the video data in h.265 format (i.e. the codec result).
For another example, the data to be processed is video data in an h.265 format, but the electronic device expects to decode and play the video data in the h.265 format, so that the video data in the h.265 format and the codec requirement information indicating to decode the video data are transmitted to the network access device, so that the network access device decodes the video data in the h.265 format to obtain corresponding decoded data (i.e., a codec result).
At 130, the codec result is transmitted to the electronic device.
After completing the encoding and decoding processing of the data to be processed and obtaining the encoding and decoding result corresponding to the data to be processed, the network access equipment transmits the encoding and decoding result to the electronic equipment through the network connection between the network access equipment and the electronic equipment.
For example, referring to fig. 4, the network access device provides a network access service for the electronic device and other electronic devices, at a certain time, the other electronic devices share video data in the h.264 format to the electronic device, the electronic device needs to decode and play the video data in the h.264 format, and correspondingly transmits the video data in the h.264 format as to-be-processed data to the network access device. And the network access equipment decodes the data to be processed to obtain decoded video data, and transmits the decoded video data serving as an encoding and decoding result to the electronic equipment for playing by the electronic equipment.
According to the method, the to-be-processed data from the electronic equipment providing the network access service is acquired through the network access equipment, the coding and decoding requirement information of the to-be-processed data of the electronic equipment is acquired, the to-be-processed data is subjected to specified coding and decoding according to the coding and decoding requirement information, the coding and decoding result corresponding to the to-be-processed data is obtained, and finally the obtained coding and decoding result is transmitted to the electronic equipment to be subjected to corresponding processing by the electronic equipment. Therefore, the electronic equipment which provides the network access service for the network access equipment shares the coding and decoding capacity, and the coding and decoding processing of the electronic equipment can be realized on the premise of not increasing a large amount of electric energy consumption and operation load.
Optionally, in an embodiment, performing a specified encoding and decoding process on the data to be processed according to the encoding and decoding requirement information to obtain an encoding and decoding result corresponding to the data to be processed includes:
(1) Determining a target coding and decoding algorithm corresponding to coding and decoding demand information from the current supported coding and decoding algorithm;
(2) And carrying out coding and decoding processing on the data to be processed through a target coding and decoding algorithm to obtain a coding and decoding result.
It should be noted that, in the embodiment of the present application, the network access device supports multiple codec algorithms, and these codec algorithms may be configured in advance in the local of the network access device, or the network access device may obtain the codec algorithms by installing a security application of a third party. The encoding and decoding algorithm includes, but is not limited to, an audio encoding and decoding algorithm, a video encoding and decoding algorithm, an image encoding and decoding algorithm, and the like.
In the embodiment of the application, after acquiring to-be-processed data from the electronic device and coding and decoding demand information of the to-be-processed data of the electronic device, the network access device determines a coding and decoding algorithm for coding and decoding the to-be-processed data according to the coding and decoding demand information, and records the coding and decoding algorithm as a target coding and decoding algorithm.
After the target coding and decoding algorithm corresponding to the coding and decoding demand information is determined, the network access equipment performs coding and decoding processing on the data to be processed through the target coding and decoding algorithm, and correspondingly obtains a coding and decoding result corresponding to the data to be processed.
Optionally, in an embodiment, the determining a target codec algorithm corresponding to the codec requirement information from the currently supported codec algorithms includes:
and when a plurality of coding and decoding algorithms corresponding to the coding and decoding demand information in the currently supported coding and decoding algorithms are available, setting the coding and decoding algorithm occupying the least processing resources as a target coding and decoding algorithm.
It can be understood that different coding and decoding algorithms require different processing resources, some coding and decoding algorithms require less processing resources, and some coding and decoding algorithms require more processing resources. In order to avoid excessive influence on the normal operation of the network access equipment, when a plurality of coding and decoding algorithms corresponding to coding and decoding demand information in the currently supported coding and decoding algorithms are provided, the network access equipment sets the coding and decoding algorithm occupying the least processing resources as a target coding and decoding algorithm.
Optionally, in an embodiment, the determining a target codec algorithm corresponding to the codec requirement information from the currently supported codec algorithms includes:
and when a plurality of coding and decoding algorithms corresponding to the coding and decoding demand information in the currently supported coding and decoding algorithms are available, setting the coding and decoding algorithm with the highest coding and decoding quality as a target coding and decoding algorithm.
It can be understood that different coding and decoding algorithms have different coding and decoding qualities, some coding and decoding algorithms have higher coding and decoding qualities, and some coding and decoding algorithms have lower coding and decoding qualities. In order to obtain the highest coding and decoding quality, when a plurality of coding and decoding algorithms corresponding to the coding and decoding demand information in the currently supported coding and decoding algorithms are provided, the network access equipment sets the coding and decoding algorithm with the highest coding and decoding quality as a target coding and decoding algorithm.
Optionally, in an embodiment, before acquiring the data to be processed from the electronic device, the method further includes:
(1) When network connection is established with the electronic equipment, coding and decoding capability information is sent to the electronic equipment, and the coding and decoding capability information is used for describing a coding and decoding algorithm currently supported by the network access equipment;
(2) Receiving an encoding and decoding capacity sharing request returned by the electronic equipment according to the encoding and decoding capacity information, wherein the encoding and decoding capacity sharing request is used for requesting the network access equipment to share encoding and decoding capacity;
(3) And returning a coding and decoding capacity sharing response corresponding to the coding and decoding capacity sharing request to the electronic equipment, wherein the coding and decoding capacity sharing response is used for indicating the electronic equipment to transmit the data to be processed.
In the embodiment of the application, in order to better share the coding and decoding capabilities with the electronic equipment, the network access equipment declares the coding and decoding capabilities of the network access equipment to the electronic equipment in advance, so that the electronic equipment can acquire the coding and decoding capabilities from the network access equipment as required.
When the network access equipment establishes network connection with the electronic equipment, a capability statement message carrying coding and decoding capability information is generated according to a message format agreed in advance with the electronic equipment, the capability statement message is transmitted to the electronic equipment through the network connection between the capability statement message and the electronic equipment, and the coding and decoding capability information is used for describing a coding and decoding algorithm currently supported by the network access equipment.
After receiving the capability statement message from the network access device, the electronic device analyzes the coding and decoding capability information therein, so as to obtain the coding and decoding algorithm supported by the network access device. If the network access equipment is required to share the coding and decoding capacity, a coding and decoding capacity request corresponding to the capacity declaration message is generated according to a message format agreed in advance with the network access equipment, the coding and decoding capacity request corresponding to the capacity declaration message is returned to the network access equipment to request the network access equipment to share the coding and decoding capacity, after the network access equipment receives the coding and decoding capacity sharing request from the electronic equipment, a coding and decoding capacity sharing response corresponding to the coding and decoding capacity sharing request is generated according to the message format agreed in advance with the electronic equipment, the coding and decoding capacity sharing response is returned to the electronic equipment and is used for informing the electronic equipment that the network access equipment agrees to share the coding and decoding capacity, and data to be processed and needing coding and decoding can be transmitted to the network access equipment to be coded and decoded.
Optionally, in an embodiment, the receiving a codec capability sharing request returned by the electronic device according to the codec capability information includes:
and receiving a coding and decoding capacity sharing request returned by the electronic equipment according to the coding and decoding capacity information through a preset port.
In the embodiment of the present application, in order to ensure that the electronic device can accurately request the network access device for sharing the codec capability, a fixed port may be configured in the network access device for receiving the codec capability sharing request.
For example, the value range of the port is 0 to 65535, where 0 to 1024 are system ports, which have been allocated to a common service (for example, port 80 is allocated to web access, and port 21 is allocated to FTP service), and port 65535 is reserved for the system, so that one port can be selected as a preset port from 1025 to 65534. Correspondingly, the coding and decoding capacity sharing request of the electronic equipment is sent to a preset port configured by the network access equipment, and the network access equipment receives the coding and decoding capacity sharing request returned by the electronic equipment according to the coding and decoding capacity information through the preset port.
Optionally, in an embodiment, the encoding and decoding capability sharing request carries identity information of the electronic device, and an encoding and decoding capability sharing response corresponding to the encoding and decoding capability sharing request is returned to the electronic device, where the encoding and decoding capability sharing response includes:
(1) Performing identity authentication on the electronic equipment according to the identity information;
(2) And when the electronic equipment passes the identity authentication, returning a coding and decoding capability sharing response to the electronic equipment.
It should be noted that, in the embodiment of the present application, in order not to affect the normal operation of the network access device too much, the network access device may only share the codec capability with the specific electronic device.
The coding and decoding capacity sharing request returned by the electronic equipment to the network access equipment also carries the identity information of the electronic equipment, so that the network access equipment can verify the identity of the electronic equipment. It should be noted that, in the embodiment of the present application, no particular limitation is imposed on what kind of information is used as the identity information of the electronic device, and the information may be configured by a person of ordinary skill in the art according to actual needs, for example, a hardware address of the electronic device, a device identifier, and the like, which can uniquely represent the information of the identity of the electronic device, may be used.
After receiving the codec capability sharing request returned by the electronic device according to the codec capability information, the network access device does not immediately return a codec capability sharing correspondence to the electronic device, but analyzes the identity information of the electronic device carried by the codec capability sharing request, and performs identity authentication on the electronic device according to the identity information, that is, verifies whether the electronic device is an electronic device authorized in advance to share the codec capability. The specific implementation of the identity verification is not limited herein, and can be configured by those skilled in the art according to the actual needs.
And when the electronic equipment passes the identity authentication, namely when the electronic equipment is determined to be the pre-authorized electronic equipment capable of sharing the coding and decoding capacity, returning a coding and decoding capacity sharing response to the electronic equipment.
Optionally, in an embodiment, acquiring data to be processed from the electronic device includes:
and when the operation load is less than the first preset load, acquiring the data to be processed from the electronic equipment.
It should be noted that, in the embodiment of the present application, in order not to affect the normal operation of the network access device too much, the network access device may share the codec capability with the electronic device only when the operation load is light.
The network access equipment detects the operation load of the network access equipment in real time, and obtains the data to be processed from the electronic equipment only when the operation load is smaller than a first preset load. The value of the first preset load is not particularly limited, and may be configured by a person skilled in the art according to actual needs.
In other embodiments, if the operating load is detected to be greater than or equal to the first predetermined load, the electronic device is instructed to suspend transmission of the pending data.
It can be understood that when the operation load of the network access device is greater than or equal to the first preset load, it indicates that the operation load of the network access device is heavier at this time, and if the to-be-processed data from the electronic device is obtained again for performing the encoding and decoding processing, the operation load of the network access device is further increased undoubtedly, so that the normal operation of the network access device is affected, and therefore, when the operation load of the network access device is greater than or equal to the preset amplitude, the electronic device is instructed to suspend transmission of the to-be-processed data that needs to be encoded and decoded.
Optionally, in an embodiment, the network access device establishes a multi-path network connection with the electronic device, and transmits the encoding and decoding result to the electronic device, including:
and transmitting the coding and decoding results to the electronic equipment through the multi-path network connection.
In the embodiment of the application, in order to transmit the encoding and decoding results obtained after encoding and decoding the data to be processed to the electronic device in time, the network access device may transmit the encoding and decoding results to the electronic device through a multi-path network connection established between the network access device and the electronic device.
For example, the electronic device and the network access device establish a first network connection based on a 2.4G frequency point and a second network connection based on a 5G frequency point, and when the coding and decoding result is transmitted to the electronic device, the network access device may split the coding and decoding result into two parts, and transmit one part of the coding and decoding result to the electronic device through the first network connection, and simultaneously transmit the other part of the coding and decoding result to the electronic device through the second network connection.
Optionally, in an embodiment, acquiring data to be processed from the electronic device includes:
and acquiring data to be processed from the electronic equipment through the multi-path network connection.
Optionally, in an embodiment, the transmitting the codec result to the electronic device through a multi-path network connection includes:
(1) Carrying out quantitative evaluation on the transmission capability of each network connection to obtain the transmission capability value of each network connection;
(2) And distributing the coding and decoding result to each network connection according to the transmission capability value of each network connection so as to transmit the coding and decoding result to the electronic equipment.
In order to ensure the stability of the transmission of multiple network connections, the network access device performs load balancing according to the transmission capability of each network connection.
The network access device performs quantitative evaluation on the transmission capability of each network connection according to a pre-configured quantitative evaluation strategy to obtain a transmission capability value of each network connection, where the configuration of the quantitative evaluation strategy is not particularly limited and can be configured by a person skilled in the art according to actual needs.
Illustratively, the network access device may acquire multidimensional network parameters, such as available bandwidth, transmission delay, packet loss ratio, and the like of a network connection, that can represent transmission capability of the network connection, then perform normalization processing on the multidimensional network parameters, perform weighted summation on the multidimensional network parameters after the normalization processing (where weight distribution may be distributed empirically by a person of ordinary skill in the art according to actual needs), and set an obtained weighted sum value as a transmission capability value of the network connection.
As described above, after obtaining the transmission capability value of each network connection, the network access device may allocate the coding and decoding result to each network connection according to the transmission capability value of each network connection to transmit the coding and decoding result to the electronic device. The network access equipment can acquire the transmission capacity ratio of the multi-path network connection according to the transmission capacity value of each network connection, then determine the distribution proportion of each network connection according to the transmission capacity ratio, and further distribute the coding and decoding results to each network connection according to the determined distribution proportion to be transmitted to the electronic equipment.
For example, referring to fig. 5, two network connections are established between the network access device and the electronic device, which are respectively a first network connection and a second network connection, and if the transmission capability value of the first network connection is "5" and the transmission capability value of the second network connection is "10", the ratio of the transmission capabilities of the first network connection and the second network connection may be 1.
Referring to fig. 6, fig. 6 is another schematic flow chart of the data processing method according to the embodiment of the present application, and as shown in fig. 6, the flow of the data processing method according to the embodiment of the present application may be as follows:
in 210, the network access device sends codec capability information to the electronic device when establishing a network connection with the electronic device.
In the embodiment of the application, in order to better share the coding and decoding capabilities with the electronic equipment, the network access equipment declares the coding and decoding capabilities of the network access equipment to the electronic equipment in advance, so that the electronic equipment can acquire the coding and decoding capabilities from the network access equipment as required.
When the network access equipment establishes network connection with the electronic equipment, a capability statement message carrying coding and decoding capability information is generated according to a message format agreed in advance with the electronic equipment, the capability statement message is transmitted to the electronic equipment through network connection between the capability statement message and the electronic equipment, and the coding and decoding capability information is used for describing a coding and decoding algorithm supported by the network access equipment.
It should be noted that, in the embodiment of the present application, the network access device supports multiple codec algorithms, and these codec algorithms may be configured in advance in the local of the network access device, or the network access device may obtain the codec algorithms by installing a security application of a third party. The coding and decoding algorithm includes, but is not limited to, an audio coding and decoding algorithm, a video coding and decoding algorithm, an image coding and decoding algorithm, and the like.
At 220, the electronic device returns a codec capability sharing request to the network access device according to the codec capability information.
After receiving the capability declaration message from the network access equipment, the electronic equipment analyzes the coding and decoding capability information in the capability declaration message, so as to obtain the coding and decoding algorithm supported by the network access equipment. If the network access equipment needs to share the coding and decoding capacity, a coding and decoding capacity request corresponding to the capacity declaration message is returned to the network access equipment so as to request the network access equipment to share the coding and decoding capacity,
In 230, the network access device returns a codec capability sharing response corresponding to the codec capability sharing request to the electronic device.
After receiving the codec capacity sharing request from the electronic device, the network access device correspondingly returns a codec capacity sharing response corresponding to the codec capacity sharing request to the electronic device, wherein the codec capacity sharing response is used for informing the electronic device that the network access device agrees to share the codec capacity, and can transmit data to be processed, which needs to be processed, to the network access device for processing the codec.
In 240, the electronic device transmits to the network access device to-be-processed data that needs to be encoded and decoded, and encoding and decoding requirement information corresponding to the to-be-processed data.
The data to be processed, which needs to be encoded and decoded, may be generated by the electronic device itself, or may be obtained by the electronic device from a network, or obtained from other electronic devices. It should be noted that the data to be processed may be any data capable of being subjected to encoding and decoding processing, which is not specifically limited in this embodiment of the application, and may be, for example, original image data, encoded video data, encoded audio data, and the like.
When the electronic equipment has to-be-processed data which needs to be coded and decoded, the to-be-processed data is transmitted to the network access equipment, and correspondingly, the network access equipment acquires the to-be-processed data from the electronic equipment.
For example, referring to fig. 3, the network access device provides a network access service for the electronic device and other electronic devices, and at a certain time, the other electronic devices share video data with the electronic device, and the electronic device can play the video data after decoding the video data, so that the electronic device transmits the video data to the network access device as to-be-processed data that needs to be encoded and decoded, through a network connection with the network access device.
In the embodiment of the application, the electronic device transmits encoding and decoding demand information to the network access device in addition to the to-be-processed data to the network access device, wherein the encoding and decoding demand information describes encoding and decoding demands of the electronic device on the to-be-processed data and is used for indicating which encoding and decoding mode is adopted by the network access device to perform encoding and decoding processing on the to-be-processed data.
In 250, the network access device performs the specified encoding and decoding processing on the data to be processed according to the encoding and decoding requirement information, so as to obtain the encoding and decoding result corresponding to the data to be processed.
In the embodiment of the application, after the network access equipment acquires the data to be processed from the electronic equipment and the corresponding coding and decoding demand information, a coding and decoding algorithm for coding and decoding the data to be processed is determined according to the coding and decoding demand information and is marked as a target coding and decoding algorithm.
After determining the target coding and decoding algorithm corresponding to the coding and decoding demand information, the network access device performs coding and decoding processing on the data to be processed through the target coding and decoding algorithm, and correspondingly obtains a coding and decoding result corresponding to the data to be processed.
In an optional embodiment, the determining a target codec algorithm corresponding to the codec requirement information from the currently supported codec algorithms includes:
and when a plurality of coding and decoding algorithms corresponding to the coding and decoding demand information in the currently supported coding and decoding algorithms are available, setting the coding and decoding algorithm occupying the least processing resources as a target coding and decoding algorithm.
It can be understood that different coding and decoding algorithms require different processing resources, some coding and decoding algorithms require less processing resources, and some coding and decoding algorithms require more processing resources. In order to avoid excessive influence on the normal operation of the network access equipment, when a plurality of coding and decoding algorithms corresponding to coding and decoding demand information in the currently supported coding and decoding algorithms are provided, the network access equipment sets the coding and decoding algorithm occupying the least processing resources as a target coding and decoding algorithm.
In another optional implementation manner, the determining a target codec algorithm corresponding to the codec requirement information from the currently supported codec algorithms includes:
and when a plurality of coding and decoding algorithms corresponding to the coding and decoding demand information in the currently supported coding and decoding algorithms are available, setting the coding and decoding algorithm with the highest coding and decoding quality as a target coding and decoding algorithm.
It can be understood that different coding and decoding algorithms have different coding and decoding qualities, some coding and decoding algorithms have higher coding and decoding qualities, and some coding and decoding algorithms have lower coding and decoding qualities. In order to obtain the highest coding and decoding quality, when a plurality of coding and decoding algorithms corresponding to the coding and decoding demand information in the currently supported coding and decoding algorithms are provided, the network access equipment sets the coding and decoding algorithm with the highest coding and decoding quality as a target coding and decoding algorithm.
In 260, the network access device transmits the codec result to the electronic device.
After completing the encoding and decoding processing of the data to be processed and obtaining the encoding and decoding result corresponding to the data to be processed, the network access equipment transmits the encoding and decoding result to the electronic equipment through the network connection between the network access equipment and the electronic equipment.
For example, referring to fig. 4, the network access device provides a network access service for the electronic device and other electronic devices, at a certain time, the other electronic devices share video data in the h.264 format to the electronic device, the electronic device needs to decode and play the video data in the h.264 format, and correspondingly transmits the video data in the h.264 format as to-be-processed data to the network access device. And the network access equipment decodes the data to be processed to obtain decoded video data, and transmits the decoded video data serving as an encoding and decoding result to the electronic equipment for playing by the electronic equipment.
Referring to fig. 7, fig. 7 is a flowchart illustrating a data processing method according to an embodiment of the present disclosure. The data processing method is applied to the network access device in the data processing system provided by the present application, and as shown in fig. 2, the flow of the data processing method provided by the embodiment of the present application may be as follows:
in 310, to-be-processed data that needs to be encoded and decoded is obtained, and encoding and decoding requirement information corresponding to the to-be-processed data is determined.
The data processing method provided by the present application will be described below from the perspective of an electronic device.
In the embodiment of the application, the electronic device is provided with the network access service by the network access device, so that the electronic device can access a network, such as the internet, an internal network of an organization, and the like, through the network access device.
The to-be-processed data is provided by the electronic device, and the to-be-processed data may be stored data local to the electronic device, or may be acquired by the electronic device from a network, or acquired from other electronic devices. It should be noted that the data to be processed may be any data capable of being subjected to encoding and decoding processing, which is not specifically limited in this embodiment of the application, and may be, for example, original image data, encoded video data, encoded audio data, and the like.
The coding and decoding requirement information describes coding and decoding requirements of the electronic equipment on data to be processed, and describes what coding and decoding mode the electronic equipment needs to adopt for coding and decoding the data to be processed.
Illustratively, when the electronic device triggers the encoding and decoding operation, the to-be-processed data that needs to be encoded and decoded is acquired, and encoding and decoding requirement information corresponding to the to-be-processed data is determined. The coding and decoding operation can be triggered by the electronic equipment according to user operation. For example, when a user issues a play operation for certain video data to an electronic device, the electronic device is triggered to execute an encoding and decoding operation, the electronic device correspondingly takes the video data as to-be-processed data to be encoded and decoded, and determines that the corresponding encoding and decoding requirement information includes information describing a decoding mode corresponding to the encoding format according to the encoding format of the video data.
For example, referring to fig. 3, a network access device provides a network access service for an electronic device and other electronic devices, at a certain time, the other electronic devices share video data with the electronic device, the electronic device triggers an encoding and decoding operation when receiving a play instruction for the video data issued by a user, further determines that the video data needs to be decoded before being played, correspondingly takes the video data as data to be processed that needs to be encoded and decoded, and determines that corresponding encoding and decoding requirement information includes information describing a decoding manner corresponding to a coding format according to the coding format of the video data.
In 320, the data to be processed and the coding and decoding requirement information are transmitted to the network access device, so that the network access device performs specified coding and decoding processing on the data to be processed according to the coding and decoding requirement information to obtain a coding and decoding result corresponding to the data to be processed.
In the embodiment of the application, after acquiring to-be-processed data to be subjected to encoding and decoding and acquiring encoding and decoding demand information corresponding to the to-be-processed data, the electronic device transmits the to-be-processed data and the corresponding encoding and decoding demand information to the network access device, the network access device performs specified encoding and decoding processing on the to-be-processed data according to indication of the encoding and decoding demand information, and accordingly obtains encoding and decoding results corresponding to the to-be-processed data.
After the network access device acquires the data to be processed from the electronic device and the corresponding coding and decoding requirement information, the network access device performs specified coding and decoding processing on the data to be processed through the local coding and decoding capability according to the indication of the coding and decoding requirement information, and correspondingly obtains coding and decoding results corresponding to the data to be processed. The codec capability of the network access device may be self-contained in the system, or may be obtained by installing a codec plug-in.
For example, the data to be processed is video data in h.264 format, but the electronic device desires to encode the video data into video data in h.265 format, so that the video data in h.264 format and codec requirement information indicating that the video data is encoded into h.265 format are transmitted to the network access device, so that the network access device encodes the video data in h.264 format into h.265 format, and obtains video data in h.265 format (i.e. codec result).
For another example, the data to be processed is video data in h.265 format, but the electronic device expects to decode and play the video data in h.265 format, so that the video data in h.265 format and the coding and decoding requirement information for indicating to decode the video data are transmitted to the network access device, so that the network access device decodes the video data in h.265 format to obtain corresponding decoded data (i.e. coding and decoding result)
At 330, a codec result returned by the network access device is received.
After completing the encoding and decoding processing of the data to be processed and obtaining the encoding and decoding result corresponding to the data to be processed, the network access equipment transmits the encoding and decoding result to the electronic equipment through the network connection between the network access equipment and the electronic equipment. Correspondingly, the electronic device receives the coding and decoding result returned by the network access device.
For example, referring to fig. 4, the network access device provides a network access service for the electronic device and other electronic devices, at a certain time, the other electronic devices share video data in the h.264 format to the electronic device, the electronic device needs to decode and play the video data in the h.264 format, and correspondingly transmits the video data in the h.264 format as to-be-processed data to the network access device. And the network access equipment decodes the data to be processed to obtain decoded video data, and transmits the decoded video data serving as an encoding and decoding result to the electronic equipment for playing by the electronic equipment.
Optionally, in an embodiment, transmitting the data to be processed and the coding and decoding requirement information to the network access device includes:
when the operation load is greater than a second preset load, transmitting the data to be processed and the coding and decoding demand information to the network access equipment; or
And when the residual electric quantity is less than the preset electric quantity, transmitting the data to be processed and the coding and decoding demand information to the network access equipment.
In the embodiment of the application, in order to not influence the normal operation of the network access device too much, the electronic device utilizes the encoding and decoding capabilities shared by the network access device only when the preset conditions are met.
For example, the preset conditions may be configured as follows:
the operation load of the electronic equipment is greater than the second preset load, or the residual electric quantity of the electronic equipment is less than the preset electric quantity.
Correspondingly, after acquiring the data to be processed and the corresponding coding and decoding demand information, the electronic device detects the current running load of the electronic device, and transmits the acquired data to be processed and the corresponding coding and decoding demand information to the network access device if the running load is detected to be greater than a second preset load.
In addition, after acquiring the data to be processed and the corresponding coding and decoding demand information, the electronic device detects the current residual electric quantity of the electronic device, and transmits the acquired data to be processed and the corresponding coding and decoding demand information to the network access device if the detected residual electric quantity is smaller than the preset electric quantity.
It should be noted that, in the embodiment of the present application, values of the first preset load and the preset electric quantity are not specifically limited, and may be configured by a person skilled in the art according to actual needs. Certainly, in other embodiments, a person skilled in the art may configure the preset conditions according to actual needs, for example, the preset conditions may also be configured as follows: the first processing time length required by the electronic equipment for coding and decoding the data to be processed according to the coding and decoding requirement information is longer than the second processing time length required by the network access equipment for coding and decoding the data to be processed according to the coding and decoding requirement information; or the first coding and decoding quality of the data to be processed by the electronic equipment according to the coding and decoding requirement information is less than the second coding and decoding quality of the data to be processed by the network access equipment according to the coding and decoding requirement information.
Optionally, in an embodiment, after transmitting the data to be processed and the codec requirement information to the network access device, the method further includes:
and when receiving indication information which is returned by the network access equipment and used for indicating the pause of the shared coding and decoding capacity, performing specified coding and decoding processing on the data to be processed according to the coding and decoding requirement information to obtain a coding and decoding result corresponding to the data to be processed.
The network access device may suspend the shared codec capability at any time according to its own needs, and return indication information indicating that the shared codec capability is suspended to the electronic device, for example, the network access device may return indication information indicating that the shared codec capability is suspended to the electronic device when its own operating load is greater than or equal to a first preset load.
On the other hand, the electronic device determines that the electronic device needs to perform coding and decoding processing when receiving indication information for indicating that the shared coding and decoding capability is suspended, and performs specified coding and decoding processing on the data to be processed through the local coding and decoding capability according to the indication of the coding and decoding requirement information to obtain a coding and decoding result corresponding to the data to be processed. The coding and decoding capability of the electronic device can be self-contained in the system or obtained by installing a coding and decoding plug-in.
Referring to fig. 8, in order to better perform the data processing method applied to the network access device provided in the present application, the present application further provides a data processing apparatus, where the data processing apparatus is applied to a network access device, and the network access device is configured to provide a network access service for an electronic device, as shown in fig. 8, the data processing apparatus may include:
the data acquisition module 410 is configured to acquire data to be processed from the electronic device and acquire coding and decoding requirement information of the data to be processed by the electronic device;
the encoding and decoding processing module 420 is configured to perform specified encoding and decoding processing on the data to be processed according to the encoding and decoding demand information to obtain an encoding and decoding result corresponding to the data to be processed;
and a data transmission module 430, configured to transmit the encoding and decoding result to the electronic device.
Optionally, in an embodiment, the codec processing module 420 is configured to:
determining a target coding and decoding algorithm corresponding to the coding and decoding requirement information from the currently supported coding algorithm;
and carrying out coding and decoding processing on the data to be processed through a target coding and decoding algorithm to obtain a coding and decoding result.
Optionally, in an embodiment, the data processing apparatus provided in the present application further includes a capability interaction module, configured to:
when network connection is established with the electronic equipment, coding and decoding capacity information is sent to the electronic equipment, and the coding and decoding capacity information is used for describing coding and decoding algorithms supported by the network access equipment;
receiving an encoding and decoding capacity sharing request returned by the electronic equipment according to the encoding and decoding capacity information, wherein the encoding and decoding capacity sharing request is used for requesting the network access equipment to share the encoding and decoding capacity;
and returning a coding and decoding capacity sharing response corresponding to the coding and decoding capacity sharing request to the electronic equipment, wherein the coding and decoding capacity sharing response is used for indicating the electronic equipment to transmit the data to be processed.
Optionally, in an embodiment, the capability interaction module is configured to:
and receiving a coding and decoding capacity sharing request returned by the electronic equipment according to the coding and decoding capacity information through a preset port.
Optionally, in an embodiment, the encoding/decoding capability sharing request carries identity information of the electronic device, and the capability interaction module is configured to:
performing identity authentication on the electronic equipment according to the identity information;
and when the electronic equipment passes the identity authentication, returning a coding and decoding capability sharing response to the electronic equipment.
Optionally, in an embodiment, the data obtaining module 410 is configured to:
and when the operation load is less than the first preset load, acquiring the data to be processed from the electronic equipment.
Optionally, in an embodiment, the data obtaining module 410 is further configured to:
and when the operating load is greater than or equal to a first preset load, indicating the electronic equipment to suspend transmitting the data to be processed.
Optionally, in an embodiment, the network access device establishes multiple network connections with the electronic device, and the data transmission module 430 is configured to:
and transmitting the coding and decoding results to the electronic equipment through the multi-path network connection.
Optionally, in an embodiment, the data transmission module 430 is configured to:
carrying out quantitative evaluation on the transmission capability of each network connection to obtain the transmission capability value of each network connection;
and distributing the coding and decoding result to each network connection according to the transmission capability value of each network connection so as to transmit the coding and decoding result to the electronic equipment.
It should be noted that the data processing apparatus provided in this embodiment of the present application and the data processing method applied to the network access device in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the foregoing related embodiments and are not described herein again.
Referring to fig. 9, in order to better perform the data processing method applied to the electronic device provided by the present application, the present application further provides a data processing apparatus, where the data processing apparatus is applied to an electronic device, and the electronic device provides a network access service through a network access device, as shown in fig. 9, the data processing apparatus may include:
a data obtaining module 510, configured to obtain to-be-processed data that needs to be encoded and decoded, and determine encoding and decoding requirement information corresponding to the to-be-processed data;
the data transmission module 520 is configured to transmit the data to be processed and the coding and decoding requirement information to the network access device, so that the network access device performs specified coding and decoding processing on the data to be processed according to the coding and decoding requirement information to obtain a coding and decoding result corresponding to the data to be processed;
a data receiving module 530, configured to receive a coding and decoding result returned by the network access device.
Optionally, in an embodiment, the data transmission module 520 is configured to:
when the operation load is greater than a second preset load, transmitting the data to be processed and the coding and decoding demand information to the network access equipment; or
And when the residual electric quantity is less than the preset electric quantity, transmitting the data to be processed and the coding and decoding demand information to the network access equipment.
Optionally, in an embodiment, the data processing apparatus provided in the present application further includes a coding and decoding module, configured to perform, when receiving indication information that is returned by the network access device and used for indicating that the shared coding and decoding capability is suspended, specified coding and decoding processing on the to-be-processed data according to the coding and decoding requirement information, and obtain a coding and decoding result corresponding to the to-be-processed data.
It should be noted that the data processing apparatus provided in the embodiment of the present application and the data processing method applied to the electronic device in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the foregoing related embodiments and are not described herein again.
The embodiments of the present application further provide a network access device, which includes a memory and a processor, where the processor is configured to execute the steps in the data processing method applied to the network access device, provided by this embodiment, by calling the computer program stored in the memory.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a network access device according to an embodiment of the present disclosure.
The network access device may include components such as a network interface 610, memory 620, processor 630, and the like. Those skilled in the art will appreciate that the network access device configuration shown in fig. 10 does not constitute a limitation of network access devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The network interface 610 may be used to make network connections between devices.
Memory 620 may be used to store computer programs and data. The memory 620 stores computer programs containing executable code. The computer program may be divided into various functional modules. The processor 630 executes various functional applications and data processing by executing computer programs stored in the memory 620.
The processor 630 is a control center of the network access device, connects various parts of the entire network access device using various interfaces and lines, and performs various functions of the network access device and processes data by running or executing a computer program stored in the memory 620 and calling data stored in the memory 620, thereby performing overall control of the network access device.
In the embodiment of the present application, the processor 630 in the network access device loads the executable code corresponding to one or more computer programs into the memory 620 according to the following instructions, and the processor 630 executes the executable code, thereby performing the following steps:
acquiring data to be processed from electronic equipment and acquiring coding and decoding demand information of the data to be processed by the electronic equipment;
performing specified encoding and decoding processing on the data to be processed according to the encoding and decoding demand information to obtain an encoding and decoding result corresponding to the data to be processed;
and transmitting the coding and decoding results to the electronic equipment.
Optionally, in an embodiment, when performing specified encoding and decoding processing on the data to be processed according to the encoding and decoding demand information to obtain an encoding and decoding result corresponding to the data to be processed, the processor 630 is configured to:
determining a target coding and decoding algorithm corresponding to the coding and decoding requirement information from the currently supported coding algorithm;
and carrying out coding and decoding processing on the data to be processed through a target coding and decoding algorithm to obtain a coding and decoding result.
Optionally, in an embodiment, before acquiring the data to be processed from the electronic device, the processor 630 is further configured to:
when network connection is established with the electronic equipment, coding and decoding capability information is sent to the electronic equipment, and the coding and decoding capability information is used for describing coding and decoding algorithms supported by the network access equipment;
receiving an encoding and decoding capacity sharing request returned by the electronic equipment according to the encoding and decoding capacity information, wherein the encoding and decoding capacity sharing request is used for requesting the network access equipment to share encoding and decoding capacity;
and returning a coding and decoding capacity sharing response corresponding to the coding and decoding capacity sharing request to the electronic equipment, wherein the coding and decoding capacity sharing response is used for indicating the electronic equipment to transmit the data to be processed.
Optionally, in an embodiment, when receiving a codec capability sharing request returned by the electronic device according to the codec capability information, the processor 630 is configured to perform:
and receiving a coding and decoding capacity sharing request returned by the electronic equipment according to the coding and decoding capacity information through a preset port.
Optionally, in an embodiment, the codec capability sharing request carries identity information of the electronic device, and when a codec capability sharing response corresponding to the codec capability sharing request is returned to the electronic device, the processor 630 is configured to execute:
performing identity authentication on the electronic equipment according to the identity information;
and when the electronic equipment passes the identity authentication, returning a coding and decoding capability sharing response to the electronic equipment.
Optionally, in an embodiment, when acquiring the data to be processed from the electronic device, the processor 630 is configured to perform:
and when the operation load is less than the first preset load, acquiring the data to be processed from the electronic equipment.
Optionally, in an embodiment, the processor 630 is further configured to perform:
and when the operation load is greater than or equal to a first preset load, indicating the electronic equipment to suspend transmitting the data to be processed.
Optionally, in an embodiment, the network access device establishes multiple network connections with the electronic device, and when transmitting the codec result to the electronic device, the processor 630 is configured to perform:
and transmitting the coding and decoding results to the electronic equipment through the multi-path network connection.
Optionally, in an embodiment, when the codec result is transmitted to the electronic device through a multi-path network connection, the processor 630 is configured to perform:
carrying out quantitative evaluation on the transmission capability of each network connection to obtain the transmission capability value of each network connection;
and distributing the coding and decoding result to each network connection according to the transmission capability value of each network connection so as to transmit the coding and decoding result to the electronic equipment.
It should be noted that the network access device provided in the embodiment of the present application and the data processing method applied to the network access device in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the foregoing related embodiments and are not described herein again.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the steps in the data processing method applied to the electronic device provided in this embodiment by calling the computer program stored in the memory.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device may include a network interface 710, memory 720, processor 730, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 is not limiting of electronic devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The network interface 710 may be used to make network connections between devices.
Memory 720 may be used to store computer programs and data. Memory 720 stores computer programs having executable code embodied therein. The computer program may be divided into various functional modules. The processor 730 executes various functional applications and data processing by executing computer programs stored in the memory 720.
The processor 730 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing computer programs stored in the memory 720 and calling data stored in the memory 720, thereby performing overall control of the electronic device.
In this embodiment, the processor 730 in the electronic device loads the executable code corresponding to one or more computer programs into the memory 720 according to the following instructions, and the processor 730 executes the following steps:
acquiring to-be-processed data needing encoding and decoding processing, and determining encoding and decoding demand information corresponding to the to-be-processed data;
transmitting the data to be processed and the coding and decoding requirement information to the network access equipment, so that the network access equipment performs specified coding and decoding processing on the data to be processed according to the coding and decoding requirement information to obtain a coding and decoding result corresponding to the data to be processed;
and receiving the coding and decoding result returned by the network access equipment.
Optionally, in an embodiment, when the data to be processed and the codec requirement information are transmitted to the network access device, the processor 730 is configured to perform:
when the operation load is greater than a second preset load, transmitting the data to be processed and the coding and decoding demand information to the network access equipment; or
And when the residual electric quantity is less than the preset electric quantity, transmitting the data to be processed and the coding and decoding demand information to the network access equipment.
Optionally, in an embodiment, after transmitting the data to be processed and the codec requirement information to the network access device, the processor 730 is further configured to:
and when receiving indication information which is returned by the network access equipment and used for indicating the shared coding and decoding capacity suspension, carrying out specified coding and decoding processing on the data to be processed according to the coding and decoding requirement information to obtain a coding and decoding result corresponding to the data to be processed.
It should be noted that the electronic device provided in the embodiment of the present application and the data processing method applied to the electronic device in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the foregoing related embodiments and are not described herein again.
The present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program stored in the computer-readable storage medium is executed on a processor of a network access device provided in an embodiment of the present application, the processor of the network access device is caused to execute any of the above steps in the data processing method applied to the network access device, or when the computer program stored in the computer-readable storage medium is executed on a processor of an electronic device provided in an embodiment of the present application, the processor of the electronic device is caused to execute any of the above steps in the data processing method applied to the electronic device. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
The foregoing describes a data processing method, an apparatus, a storage medium, a network access device, and an electronic device provided in the present application in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (14)

1. A data processing method is applied to a network access device, and the network access device is used for providing network access service for an electronic device, and is characterized by comprising the following steps:
when network connection is established with the electronic equipment, coding and decoding capability information is sent to the electronic equipment, and the coding and decoding capability information is used for describing a coding and decoding algorithm currently supported by the network access equipment;
receiving an encoding and decoding capability sharing request returned by the electronic equipment according to the encoding and decoding capability information, wherein the encoding and decoding capability sharing request is used for requesting the network access equipment to share encoding and decoding capability;
returning a coding and decoding capability sharing response corresponding to the coding and decoding capability sharing request to the electronic equipment, wherein the coding and decoding capability sharing response is used for indicating the electronic equipment to transmit the data to be processed;
acquiring data to be processed from the electronic equipment and acquiring coding and decoding demand information of the electronic equipment on the data to be processed, wherein the coding and decoding demand information is used for indicating which coding and decoding mode is adopted by network access equipment to code and decode the data to be processed;
performing specified encoding and decoding processing on the data to be processed according to the encoding and decoding demand information to obtain an encoding and decoding result corresponding to the data to be processed;
and transmitting the coding and decoding results to the electronic equipment.
2. The data processing method according to claim 1, wherein the performing the specified encoding and decoding processing on the to-be-processed data according to the encoding and decoding requirement information to obtain an encoding and decoding result corresponding to the to-be-processed data includes:
determining a target coding and decoding algorithm corresponding to the coding and decoding demand information from the currently supported coding and decoding algorithms;
and carrying out coding and decoding processing on the data to be processed through the target coding and decoding algorithm to obtain the coding and decoding result.
3. The data processing method according to claim 1, wherein the receiving a codec capability sharing request returned by the electronic device according to the codec capability information comprises:
and receiving a coding and decoding capacity sharing request returned by the electronic equipment according to the coding and decoding capacity information through a preset port.
4. The data processing method according to claim 1, wherein the codec capability sharing request carries identity information of the electronic device, and the returning of the codec capability sharing response corresponding to the codec capability sharing request to the electronic device comprises:
performing identity authentication on the electronic equipment according to the identity information;
and when the electronic equipment passes the identity authentication, returning the coding and decoding capability sharing response to the electronic equipment.
5. The data processing method according to any one of claims 1 to 4, wherein the acquiring the data to be processed from the electronic device comprises:
and when the operation load is smaller than a first preset load, acquiring the data to be processed from the electronic equipment.
6. The data processing method of claim 5, further comprising:
and when the operation load is greater than or equal to the first preset load, indicating the electronic equipment to suspend transmitting the data to be processed.
7. A data processing method is applied to an electronic device, wherein the electronic device provides a network access service by a network access device, and the method comprises the following steps:
when network connection is established with the network access equipment, the coding and decoding capability information sent by the network access equipment is obtained, and the coding and decoding capability information is used for describing a coding and decoding algorithm currently supported by the network access equipment;
returning an encoding and decoding capacity sharing request according to the encoding and decoding capacity information, wherein the encoding and decoding capacity sharing request is used for requesting the network access equipment to share encoding and decoding capacity;
receiving a coding and decoding capability sharing response corresponding to the coding and decoding capability sharing request returned by the network access equipment, wherein the coding and decoding capability sharing response is used for indicating the electronic equipment to transmit data to be processed;
acquiring data to be processed which needs to be subjected to coding and decoding, and determining coding and decoding demand information corresponding to the data to be processed, wherein the coding and decoding demand information is used for indicating which coding and decoding mode is adopted by network access equipment to carry out coding and decoding processing on the data to be processed;
transmitting the data to be processed and the coding and decoding demand information to the network access equipment, so that the network access equipment performs specified coding and decoding processing on the data to be processed according to the coding and decoding demand information to obtain a coding and decoding result corresponding to the data to be processed;
and receiving the coding and decoding result returned by the network access equipment.
8. The data processing method of claim 7, wherein the transmitting the data to be processed and the codec requirement information to the network access device comprises:
when the operation load is greater than a second preset load, transmitting the data to be processed and the coding and decoding demand information to the network access equipment; or
And when the residual electric quantity is less than the preset electric quantity, transmitting the data to be processed and the coding and decoding demand information to the network access equipment.
9. The data processing method of claim 7, wherein after transmitting the data to be processed and the codec requirement information to the network access device, further comprising:
and when receiving indication information which is returned by the network access equipment and used for indicating that the shared coding and decoding capacity is suspended, performing specified coding and decoding processing on the data to be processed according to the coding and decoding requirement information to obtain a coding and decoding result corresponding to the data to be processed.
10. A data processing device is applied to a network access device, the network access device is used for providing network access service for an electronic device, and the data processing device is characterized by comprising:
the data acquisition module is used for sending coding and decoding capability information to the electronic equipment when network connection is established with the electronic equipment, wherein the coding and decoding capability information is used for describing a coding and decoding algorithm currently supported by the network access equipment; receiving an encoding and decoding capacity sharing request returned by the electronic equipment according to the encoding and decoding capacity information, wherein the encoding and decoding capacity sharing request is used for requesting the network access equipment to share encoding and decoding capacity; returning a coding and decoding capability sharing response corresponding to the coding and decoding capability sharing request to the electronic equipment, wherein the coding and decoding capability sharing response is used for indicating the electronic equipment to transmit the data to be processed; acquiring data to be processed from the electronic equipment and acquiring coding and decoding demand information of the electronic equipment on the data to be processed, wherein the coding and decoding demand information is used for indicating a coding and decoding mode adopted by network access equipment to code and decode the data to be processed;
the coding and decoding processing module is used for carrying out specified coding and decoding processing on the data to be processed according to the coding and decoding demand information to obtain a coding and decoding result corresponding to the data to be processed;
and the data transmission module is used for transmitting the coding and decoding results to the electronic equipment.
11. A data processing apparatus, applied to an electronic device, wherein the electronic device provides a network access service through a network access device, the apparatus comprising:
the data acquisition module is used for acquiring coding and decoding capability information sent by the network access equipment when network connection is established with the network access equipment, wherein the coding and decoding capability information is used for describing a coding and decoding algorithm currently supported by the network access equipment; returning an encoding and decoding capacity sharing request according to the encoding and decoding capacity information, wherein the encoding and decoding capacity sharing request is used for requesting the network access equipment to share encoding and decoding capacity; receiving a coding and decoding capability sharing response corresponding to the coding and decoding capability sharing request returned by the network access equipment, wherein the coding and decoding capability sharing response is used for indicating the electronic equipment to transmit data to be processed; acquiring to-be-processed data to be coded and decoded, and determining coding and decoding demand information corresponding to the to-be-processed data, wherein the coding and decoding demand information is used for indicating a coding and decoding mode adopted by network access equipment to code and decode the to-be-processed data;
the data transmission module is used for transmitting the data to be processed and the coding and decoding demand information to the network access equipment, so that the network access equipment performs specified coding and decoding processing on the data to be processed according to the coding and decoding demand information to obtain a coding and decoding result corresponding to the data to be processed;
and the data receiving module is used for receiving the coding and decoding result returned by the network access equipment.
12. A storage medium having stored thereon a computer program for performing the data processing method of any of claims 1-6 when the computer program is loaded by a processor of a network access device; or to perform the data processing method of any of claims 7-9 when said computer program is loaded by a processor of an electronic device.
13. A network access device comprising a processor and a memory, the memory storing a computer program, wherein the processor performs the data processing method of any one of claims 1-6 by loading the computer program.
14. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor performs the data processing method of any one of claims 7-9 by loading the computer program.
CN202011270357.3A 2020-11-13 2020-11-13 Data processing method, device, medium, network access equipment and electronic equipment Active CN112291568B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011270357.3A CN112291568B (en) 2020-11-13 2020-11-13 Data processing method, device, medium, network access equipment and electronic equipment
PCT/CN2021/114592 WO2022100203A1 (en) 2020-11-13 2021-08-25 Data processing method, apparatus, medium, network access device, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011270357.3A CN112291568B (en) 2020-11-13 2020-11-13 Data processing method, device, medium, network access equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN112291568A CN112291568A (en) 2021-01-29
CN112291568B true CN112291568B (en) 2022-12-20

Family

ID=74398526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011270357.3A Active CN112291568B (en) 2020-11-13 2020-11-13 Data processing method, device, medium, network access equipment and electronic equipment

Country Status (2)

Country Link
CN (1) CN112291568B (en)
WO (1) WO2022100203A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291568B (en) * 2020-11-13 2022-12-20 Oppo广东移动通信有限公司 Data processing method, device, medium, network access equipment and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1784026A (en) * 2004-11-30 2006-06-07 中国科学院声学研究所 Speech communication system and method based on mobile telephone speech encoding and decoding system
CN101999234A (en) * 2008-04-18 2011-03-30 日本电气株式会社 Gateway device, method, and program
WO2012075966A1 (en) * 2010-12-10 2012-06-14 华为技术有限公司 Processing method for media streams, and media gateway
CN104320403A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Communication method and device
CN110557670A (en) * 2019-09-17 2019-12-10 广州华多网络科技有限公司 Method, device, terminal and storage medium for playing video in webpage

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3852267B2 (en) * 2000-05-01 2006-11-29 株式会社Kddi研究所 System for controlling moving image conversion, its server, its gateway, and its recording program
CN1783855A (en) * 2004-11-30 2006-06-07 中国科学院声学研究所 General gate for supporting various terminal and communication method between gate and terminal
CN100579105C (en) * 2005-12-31 2010-01-06 华为技术有限公司 Method and device for treating data stream
CN110087281A (en) * 2018-01-26 2019-08-02 阿里巴巴集团控股有限公司 The method, apparatus and system of network insertion
CN110691092A (en) * 2019-10-09 2020-01-14 恩亿科(北京)数据科技有限公司 Data processing method and device, electronic equipment and readable storage medium
CN111107393A (en) * 2019-11-29 2020-05-05 视联动力信息技术股份有限公司 Video transcoding method, transcoder, electronic device and storage medium
CN112291568B (en) * 2020-11-13 2022-12-20 Oppo广东移动通信有限公司 Data processing method, device, medium, network access equipment and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1784026A (en) * 2004-11-30 2006-06-07 中国科学院声学研究所 Speech communication system and method based on mobile telephone speech encoding and decoding system
CN101999234A (en) * 2008-04-18 2011-03-30 日本电气株式会社 Gateway device, method, and program
WO2012075966A1 (en) * 2010-12-10 2012-06-14 华为技术有限公司 Processing method for media streams, and media gateway
CN104320403A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Communication method and device
CN110557670A (en) * 2019-09-17 2019-12-10 广州华多网络科技有限公司 Method, device, terminal and storage medium for playing video in webpage

Also Published As

Publication number Publication date
WO2022100203A1 (en) 2022-05-19
CN112291568A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN111447185B (en) Push information processing method and related equipment
CN104683422A (en) Method and device for transmitting data
CN111432158B (en) Load balancing method and device for media nodes, storage medium and electronic device
CN105518645A (en) Load-balanced, persistent connection techniques
US11889133B2 (en) Burst traffic processing method, computer device and readable storage medium
CN103905516B (en) The method and respective server and terminal of sharing data
CN111541555A (en) Group chat optimization method and related product
CN112291568B (en) Data processing method, device, medium, network access equipment and electronic equipment
CN113141671A (en) Communication method and device of wifi device and computer readable storage medium
CN107332894B (en) Live broadcast method, device and system, server and storage medium
CN110035128B (en) Live broadcast scheduling method and device, live broadcast system and storage medium
CN106686635B (en) Data transmission method and device based on control and configuration protocol of wireless access point
CN112333690B (en) Data transmission method, device, storage medium, terminal and network access point equipment
CN108632355B (en) Routing method for household appliance network, control terminal, readable storage medium and equipment
CN116244231A (en) Data transmission method, device and system, electronic equipment and storage medium
WO2015196586A1 (en) Virtual desktop configuration and acquisition method and apparatus
CN112398851B (en) Data processing method, data processing device, storage medium and electronic equipment
CN112311689B (en) Burst traffic distribution method, computer device and readable storage medium
CN114040005A (en) Data transmission method, device and storage medium
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
CN105191460A (en) Information transmission method, device, and system
WO2024120366A1 (en) Virtual reality display method, set top box, server, terminal, device, system, and storage medium
CN114025016B (en) Data forwarding method, device and storage medium
CN113377710B (en) Data acquisition method and device and electronic equipment
CN111182324B (en) Video data processing method and server

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
GR01 Patent grant
GR01 Patent grant