CN115085769A - Configuration method, device, terminal and storage medium of coding and decoding format - Google Patents

Configuration method, device, terminal and storage medium of coding and decoding format Download PDF

Info

Publication number
CN115085769A
CN115085769A CN202110258426.7A CN202110258426A CN115085769A CN 115085769 A CN115085769 A CN 115085769A CN 202110258426 A CN202110258426 A CN 202110258426A CN 115085769 A CN115085769 A CN 115085769A
Authority
CN
China
Prior art keywords
coding
decoding
format
codec
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110258426.7A
Other languages
Chinese (zh)
Inventor
李承勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202110258426.7A priority Critical patent/CN115085769A/en
Publication of CN115085769A publication Critical patent/CN115085769A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • H04B5/72
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive loop type

Abstract

The application relates to the technical field of terminal interaction, and provides a configuration method and device of an encoding and decoding format, a terminal and a storage medium. According to the method, after the user selects the coding and decoding format for the opposite terminal, the coding and decoding parameters of the selected coding and decoding format are set as the coding and decoding parameters supported by the opposite terminal, so that the coding and decoding parameters which are allocated to the opposite terminal and can be matched with the coding and decoding format are supported by the opposite terminal, the opposite terminal is prevented from rejecting the configuration of the coding and decoding format, and the success rate of the configuration of the coding and decoding format and the data interaction efficiency between terminals are improved.

Description

Configuration method, device, terminal and storage medium of coding and decoding format
Technical Field
The present application relates to the field of terminal interaction technologies, and in particular, to a configuration method and apparatus for encoding and decoding formats, a terminal, and a storage medium.
Background
With the development of terminal interaction technology, data interaction such as audio and video can be carried out between terminals. In the interaction process, data such as audio, video and the like are generally subjected to encoding processing, so before the data such as audio and the like are interacted, the encoding and decoding formats used by the data and the video need to be determined. For example, before the mobile phone interacts with the wireless headset, the mobile phone may send the codec format to the headset, so that the headset completes the configuration of the codec format, so as to perform normal codec processing on the audio in the following.
When configuring the codec format, the mobile phone generally uses default codec parameters (such as sampling frequency, bit rate and channel mode); however, if the earphone does not support the default codec parameters, the current codec format configuration of the mobile phone is rejected, which results in failed codec format configuration and reduced data interaction efficiency between terminals.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method, an apparatus, a terminal and a storage medium for configuring a codec format in order to solve the above technical problems.
A method for configuring a codec format, the method comprising:
acquiring a coding and decoding format selected by a user for an opposite terminal;
determining target coding and decoding parameters aiming at the selected coding and decoding format from candidate coding and decoding parameters supported by the opposite end under different coding and decoding formats;
and setting the target coding and decoding parameters as the coding and decoding parameters of the selected coding and decoding format to obtain a configurable coding and decoding format used for being allocated to the opposite terminal.
In one embodiment, the method further comprises:
and recording the configurable coding and decoding format in a coding and decoding format encapsulation layer at the local end.
In one embodiment, after the recording the configurable codec format in the codec format encapsulation layer of the local end, the method further includes:
after the connection with the opposite terminal is disconnected, the opposite terminal is connected again, and the recorded configurable coding and decoding formats are packaged in the coding and decoding format packaging layer;
and sending the packaged configurable coding and decoding format to the opposite terminal.
In one embodiment, the recording the configurable codec format in a codec format encapsulation layer at the local end includes:
and if the feedback that the opposite end agrees to configure the configurable coding and decoding format is received, recording the configurable coding and decoding format in a coding and decoding format encapsulation layer of the local end.
In one embodiment, the connection to the peer is a bluetooth connection and the codec format wrapper layer is a bluetooth stack layer.
In one embodiment, the candidate codec parameters are obtained together when the codec format supported by the opposite end is obtained from the opposite end after the candidate codec parameters are connected to the opposite end.
In one embodiment, the obtaining of the codec format selected by the user for the opposite end includes:
displaying an interface of the coding and decoding format supported by the opposite terminal;
and determining the selected coding and decoding format based on the coding and decoding format selection operation input by the user on the interface.
In one embodiment, the setting the target codec parameter as the codec parameter of the selected codec format to obtain a configurable codec format for being allocated to the opposite end includes:
if the selected coding and decoding format carries default coding and decoding parameters, the default coding and decoding parameters are changed into the target coding and decoding parameters, and the configurable coding and decoding format is obtained.
An apparatus for configuring a codec format, the apparatus comprising:
the encoding and decoding format acquisition module is used for acquiring the encoding and decoding format selected by the user aiming at the opposite terminal;
a codec parameter determination module, configured to determine a target codec parameter for the selected codec format from candidate codec parameters supported by the opposite end in different codec formats;
and the parameter setting module is used for setting the target coding and decoding parameters as the coding and decoding parameters of the selected coding and decoding format to obtain a configurable coding and decoding format which is used for being allocated to the opposite terminal.
A terminal comprising a memory and a processor, the memory storing a computer program, the processor when executing the computer program implementing the method of:
acquiring a coding and decoding format selected by a user for an opposite terminal;
determining target coding and decoding parameters aiming at the selected coding and decoding format from candidate coding and decoding parameters supported by the opposite end under different coding and decoding formats;
and setting the target coding and decoding parameters as the coding and decoding parameters of the selected coding and decoding format to obtain a configurable coding and decoding format for being allocated to the opposite terminal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements a method of:
acquiring a coding and decoding format selected by a user for an opposite terminal;
determining target coding and decoding parameters aiming at the selected coding and decoding format from candidate coding and decoding parameters supported by the opposite end under different coding and decoding formats;
and setting the target coding and decoding parameters as the coding and decoding parameters of the selected coding and decoding format to obtain a configurable coding and decoding format for being allocated to the opposite terminal.
The configuration method, the device, the terminal and the storage medium of the encoding and decoding formats acquire the encoding and decoding formats selected by the user aiming at the opposite terminal; determining target coding and decoding parameters aiming at the selected coding and decoding format from candidate coding and decoding parameters supported by the opposite end under different coding and decoding formats; and setting the target coding and decoding parameters as the coding and decoding parameters of the selected coding and decoding format to obtain a configurable coding and decoding format for being allocated to the opposite terminal. Therefore, in the method, after the user selects the coding and decoding format for the opposite terminal, the coding and decoding parameters of the selected coding and decoding format are set as the coding and decoding parameters supported by the opposite terminal, so that the coding and decoding parameters which are allocated to the opposite terminal and can be matched with the coding and decoding format are supported by the opposite terminal, the opposite terminal is prevented from rejecting the configuration of the coding and decoding format, and the success rate of the configuration of the coding and decoding format and the data interaction efficiency between terminals are improved.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a configuration method for codec formats;
FIG. 2 is a flow chart illustrating a method for configuring codec formats according to an embodiment;
FIG. 3 is a diagram illustrating an exemplary selection interface for codec formats;
FIG. 4 is a flowchart illustrating a method for configuring codec formats according to an embodiment;
FIG. 5 is a diagram of a system architecture for a handset in accordance with one embodiment;
FIG. 6 is a flow diagram illustrating a method for configuring codec formats in one embodiment;
FIG. 7 is a flowchart illustrating a method for configuring codec formats according to an embodiment;
FIG. 8 is a block diagram of an apparatus for configuring codec formats in one embodiment;
fig. 9 is an internal structural diagram of a terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The configuration method of the coding and decoding format can be applied between terminals. The terminal can be a mobile phone, a tablet computer, a wearable device, a wireless headset and the like. For example, the audio codec format between the mobile phone and the tablet computer, the video codec format between the mobile phone and the portable watch, and the audio codec format between the tablet computer and the wireless headset. The above configuration method is described by taking the example of the application to the handset 101 and the wireless headset 102 shown in fig. 1: after the mobile phone 101 is connected to the wireless headset 102, if the user selects the codec format for the wireless headset 102, the mobile phone can set the codec parameters of the codec format selected by the user as the codec parameters supported by the wireless headset 102, so as to obtain the codec format that can be configured to the wireless headset 102, thereby preventing the wireless headset 102 from rejecting the configuration due to the fact that the wireless headset 102 does not support the codec parameters of the codec format configured by the mobile phone 101, improving the configuration success rate of the codec format, and improving the audio interaction efficiency between the mobile phone 101 and the wireless headset 102.
In an embodiment, as shown in fig. 2, a method for configuring a codec format is provided, which is described by taking the method as an example applied to the mobile phone 101 in fig. 1, and includes the following steps:
step S201, acquiring a coding and decoding format selected by a user aiming at an opposite terminal;
illustratively, the user may select one audio codec format from a plurality of audio codec formats supported by the wireless headset 102, and the handset 101 obtains the audio codec format selected by the user.
Further, the mobile phone can also execute the following steps: displaying an interface of the coding and decoding format supported by the opposite terminal; and determining the selected coding and decoding format based on the coding and decoding format selection operation input by the user on the interface.
That is, after the mobile phone 101 is connected to the wireless headset 102, the mobile phone 101 may obtain the audio codec format supported by the wireless headset 102 from the wireless headset 102; if the Audio codec format supported by the wireless headset 102 includes LDAC (one of Audio Coding), aptX (one of Audio Coding), AAC (Advanced Audio Coding), and SBC (Sub-band Coding), the mobile phone 101 may present a selection interface shown in fig. 3 to the user, and the user selects the Audio codec format to be configured for the wireless headset 102 on the selection interface, so as to implement user-defined selection of the Audio codec format by the user.
Step S202, determining target coding and decoding parameters aiming at the selected coding and decoding format from candidate coding and decoding parameters supported by the opposite terminal under different coding and decoding formats;
step S203, setting the target encoding and decoding parameter as the encoding and decoding parameter of the selected encoding and decoding format, to obtain an allocable encoding and decoding format for allocating to the opposite end.
The codec parameters are parameters for performing codec processing on the received data at the opposite end, such as sampling frequency, bit rate, channel mode, and the like during audio codec processing. The audio sampling frequency is the number of samples per second that are extracted from continuous data and constitute discrete data, and can be expressed in hertz (Hz); bit rate, which in the field of telecommunications and computing refers to the number of bits transmitted or processed per unit time; the channel mode may be mono, binaural, etc. The codec parameters supported by the peer end in different codec formats may be different, and exemplarily, the sampling frequency supported by the wireless headset 102 in LDAC is a, and the sampling frequency supported in aptX is b.
For example, if the audio codec format selected by the user is LDAC, the handset 101 may determine the audio codec parameters supported by the wireless headset 102 under LDAC from the audio codec parameters supported by the wireless headset 102 under LDAC, aptX, AAC, and SBC, and set the audio codec parameters of the lacc to the above-mentioned supported audio codec parameters, so as to obtain the audio codec format that can be configured to the wireless headset 102.
Further, the candidate codec parameters are obtained together when the codec format supported by the opposite end is obtained from the opposite end after the candidate codec parameters are connected with the opposite end.
For example, after the mobile phone 101 is connected to the wireless headset 102, the mobile phone may obtain, through a Get Capabilities command of a bluetooth protocol, an audio codec format supported by the wireless headset 102 and audio codec parameters (i.e., candidate codec parameters) supported by the wireless headset in each audio codec format. Therefore, the mobile phone obtains the candidate coding and decoding parameters and the audio coding and decoding format supported by the wireless earphone, so that the extra signaling is avoided from being spent to obtain the candidate coding and decoding parameters, and the interaction efficiency is improved.
In the configuration method of the coding and decoding formats, after the user selects the coding and decoding formats for the opposite terminal, the coding and decoding parameters of the selected coding and decoding formats are set as the coding and decoding parameters supported by the opposite terminal, so that the coding and decoding parameters which are allocated to the opposite terminal and can be matched with the coding and decoding formats are supported by the opposite terminal, the opposite terminal is prevented from rejecting the configuration of the coding and decoding formats, and the success rate of the configuration of the coding and decoding formats and the data interaction efficiency between terminals are improved.
Further, when the mobile phone 101 executes the step S203, the following steps may be further executed: if the selected coding and decoding format carries default coding and decoding parameters, the default coding and decoding parameters are changed into the target coding and decoding parameters, and the configurable coding and decoding format is obtained.
For example, if the LDAC selected by the user carries the default audio codec parameter, the mobile phone 102 may change the default audio codec parameter to the audio codec parameter supported by the wireless headset 102, so as to obtain the LDAC carrying the audio codec parameter supported by the wireless headset 102.
The processing layers passed by the mobile phone 101 in the process of executing the above steps S201 to S203 may be as shown in fig. 4. Specifically, the encoding/decoding format envelope of the mobile phone 101 receives the audio encoding/decoding format supported by the wireless headset and the audio encoding/decoding parameters supported by each audio encoding/decoding format; the encoding and decoding format encapsulation layer transmits the received data to the upper processing layer; the last processing layer transmits the data to an application architecture layer for a user to select an audio coding and decoding format; after the user selects the audio coding and decoding format, the mobile phone 101 can modify the audio coding and decoding parameters at the application architecture layer and transmit the audio coding and decoding parameters to the next processing layer; the next processing layer transmits the modified audio coding and decoding parameters to a coding and decoding format encapsulating layer; sixthly, the codec format envelope forms a configurable audio codec format based on the modified audio codec parameters, and the packet processing is sent to the wireless headset 102.
It can be seen that, in the process of configuring the codec format, there are more processing layers involved, and after the user configures the audio codec format allocated to the wireless headset 102 this time, in order to improve the interaction efficiency between the mobile phone 101 and the wireless headset 102 next time, the mobile phone 101 may record the configurable codec format in the codec format encapsulation layer at the local end.
In the above manner, since the configurable codec format is directly stored in the codec format encapsulation layer, when the mobile phone 101 is connected to the wireless headset 102 next time, the configurable codec format stored in the codec format encapsulation layer can be directly sent to the wireless headset 102, thereby avoiding the above processes from (ii) to (iv), and improving the interaction efficiency between devices.
Further, after the mobile phone 101 executes the above-mentioned codec format envelope layer recording the configurable codec format in the home terminal, the following steps may also be executed: after the connection with the opposite terminal is disconnected, the opposite terminal is connected again, and the recorded configurable coding and decoding formats are packaged in the coding and decoding format packaging layer; and sending the packaged configurable coding and decoding format to the opposite terminal.
In the above manner, the mobile phone 101 can directly pack the recorded configurable codec format in the codec format pack layer and send the packed configurable codec format to the wireless headset 102, so that the interaction efficiency between devices is improved.
Further, when the mobile phone 102 performs the above-mentioned step of recording the configurable codec format in the codec format envelope layer of the home terminal, the following steps may also be performed: and if the feedback that the opposite end agrees to configure the configurable coding and decoding format is received, recording the configurable coding and decoding format in a coding and decoding format encapsulation layer of the local end.
That is to say, when receiving that the wireless headset 102 agrees to the configuration, the mobile phone 101 records the audio codec format of this time in the codec format envelope, so as to avoid recording the audio codec format rejected by the wireless headset 102, which results in failure of the next codec format configuration.
Further, if the connection between the local terminal and the opposite terminal is a Bluetooth connection, the codec format encapsulation layer is a Bluetooth stack layer (Bluetooth stack) of the Bluetooth protocol architecture as shown in fig. 5. The Bluetooth system service and the HAL (hardware abstraction layer) interact through JNI (Java Native Interface, Java local Interface program), the HAL and the Bluetooth stack layer interact, and the Bluetooth stack layer and the supplier extension layer also interact.
An application (App) on the handset may provide the user with the selection interface shown in fig. 3; the application framework layer can acquire audio coding and decoding parameters supported by the wireless headset 102 in each audio coding and decoding format through a bluetooth protocol flow, and replace the default audio coding and decoding parameters of the mobile phone system with the audio coding and decoding parameters supported by the wireless headset 102; the Bluetooth Stack can record the set audio coding and decoding format in the Bluetooth Stack after the audio coding and decoding format is successfully set, and directly adjusts the audio coding and decoding format to the highest priority when the Bluetooth Stack is connected with the wireless earphone 102 next time, and sends the audio coding and decoding format to the wireless earphone 102, so that the interaction efficiency is improved.
In order to better understand the above method, an application example of the configuration method of the codec format of the present application is described in detail below. The application example is as follows: the mobile phone configures an audio coding and decoding format for the wireless earphone, and the mobile phone is connected with the wireless earphone through Bluetooth.
The mobile phone and the wireless headset can perform bluetooth data interaction based on A2DP (advanced Audio Distribution Profile, bluetooth stereo Audio transmission specification). In the protocol flow of A2DP, Get Capabilities is a Bluetooth command for obtaining an audio codec format supported by an opposite terminal and corresponding audio codec parameters; set Configuration is a bluetooth command to Set the audio codec format for the peer.
The application example modifies the audio coding and decoding parameters carried in the audio coding and decoding format of the mobile phone end while setting the audio coding and decoding format so as to ensure that the opposite end does not reject the audio coding and decoding format set by the mobile phone end.
Specifically, as shown in fig. 6 and fig. 3, in the present application example, a selection interface of an audio codec format supported by a wireless headset is presented to a user through an App of a mobile phone android system; the application framework layer may replace the default audio codec parameters of the mobile phone system with the audio codec parameters supported by the wireless headset 102 through the bluetooth protocol flow, and then send a Set Configuration command to the wireless headset.
The application example can also store the audio coding and decoding format set by the user at this time based on the Bluetooth stack of the android system; when the mobile phone is connected with the wireless earphone next time, the audio coding and decoding format stored by the Bluetooth stack can be directly configured for the wireless earphone. As shown in fig. 7, the specific steps include the following:
the mobile phone and the wireless earphone exchange audio coding and decoding formats supported by each other and corresponding audio coding and decoding parameters; a user can select an audio coding and decoding format supported by the wireless headset through the mobile phone App; the mobile phone modifies the parameters of the audio coding and decoding format selected by the user into audio coding and decoding parameters supported by the wireless earphone and configures the parameters to the wireless earphone; after receiving the configuration, the wireless earphone feeds back the agreement of the configuration to the mobile phone.
After the mobile phone determines that the wireless earphone feedback agrees with the configuration, the audio coding and decoding format of the configuration is recorded in a configuration file of a Bluetooth stack, and the Bluetooth connection with the wireless earphone is disconnected.
After the mobile phone is reconnected with the wireless earphone, the audio coding and decoding formats supported by the mobile phone and the wireless earphone and the corresponding audio coding and decoding parameters are exchanged with each other again; the mobile phone configures the audio coding and decoding format in the configuration file of the Bluetooth stack to the wireless earphone; after receiving the configuration, the wireless earphone feeds back a message agreeing with the configuration to the mobile phone.
In the application example, after the audio coding and decoding format of the wireless earphone is set by the user through the mobile phone, the last audio coding and decoding format is used by default when the wireless earphone is connected next time, the user does not need to set again, user operation is reduced, and the interaction efficiency between the mobile phone and the wireless earphone is improved.
It should be understood that, although the steps in the flowcharts of fig. 1 to 7 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 to 7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 8, there is provided a device for configuring a codec format, including:
a codec format obtaining module 801, configured to obtain a codec format selected by a user for an opposite end;
a codec parameter determining module 802, configured to determine a target codec parameter for the selected codec format from candidate codec parameters supported by the opposite end in different codec formats;
a parameter setting module 803, configured to set the target codec parameter to the codec parameter of the selected codec format, so as to obtain a configurable codec format for the opposite end.
In one embodiment, the apparatus further comprises: and the coding and decoding format recording module is used for recording the configurable coding and decoding format in a coding and decoding format encapsulating layer of the local end.
In one embodiment, the apparatus further comprises: the encoding and decoding format packaging module is used for connecting with the opposite terminal again after the connection with the opposite terminal is disconnected, and packaging the recorded configurable encoding and decoding format in the encoding and decoding format packaging layer; and sending the packaged configurable coding and decoding format to the opposite terminal.
In an embodiment, the codec format recording module is further configured to record the configurable codec format in a codec format encapsulation layer of the local end if the feedback that the opposite end agrees to configure the configurable codec format is received.
In one embodiment, the connection to the peer is a bluetooth connection and the codec format wrapper layer is a bluetooth stack layer.
In an embodiment, the candidate codec parameter is obtained when the codec format supported by the opposite end is obtained from the opposite end after the candidate codec parameter is connected to the opposite end.
In an embodiment, the codec format obtaining module 801 is further configured to show an interface of a codec format supported by the opposite end; and determining the selected coding and decoding format based on the coding and decoding format selection operation input by the user on the interface.
In an embodiment, the parameter setting module 803 is configured to change the default codec parameter to the target codec parameter if the selected codec format carries the default codec parameter, so as to obtain the configurable codec format.
For specific limitations of the configuration apparatus of codec formats, reference may be made to the above limitations on the configuration method of codec formats, which are not described herein again. The modules in the configuration device of the codec format can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the terminal, and can also be stored in a memory in the terminal in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a terminal is provided, an internal structure of which may be as shown in fig. 9. The terminal comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the terminal is configured to provide computing and control capabilities. The memory of the terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the terminal is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of configuring a codec format. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device of the terminal can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the terminal, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a terminal comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: acquiring a coding and decoding format selected by a user for an opposite terminal; determining target coding and decoding parameters aiming at the selected coding and decoding format from candidate coding and decoding parameters supported by the opposite end under different coding and decoding formats; and setting the target coding and decoding parameters as the coding and decoding parameters of the selected coding and decoding format to obtain a configurable coding and decoding format for being allocated to the opposite terminal.
In one embodiment, the processor may further implement the following steps when executing the computer program: and recording the configurable coding and decoding format in a coding and decoding format encapsulating layer of the local end.
In one embodiment, the processor may further implement the following steps when executing the computer program: after the connection with the opposite terminal is disconnected, the opposite terminal is connected again, and the recorded configurable coding and decoding formats are packaged in the coding and decoding format packaging layer; and sending the packaged configurable coding and decoding format to the opposite terminal.
In one embodiment, the processor may further implement the following steps when executing the computer program: and if the feedback that the opposite end agrees to configure the configurable coding and decoding format is received, recording the configurable coding and decoding format in a coding and decoding format encapsulation layer of the local end.
In one embodiment, the connection to the peer is a bluetooth connection and the codec format wrapper layer is a bluetooth stack layer.
In one embodiment, the candidate codec parameters are obtained together when the codec format supported by the opposite end is obtained from the opposite end after the candidate codec parameters are connected to the opposite end.
In one embodiment, the processor may further implement the following steps when executing the computer program: displaying an interface of the coding and decoding format supported by the opposite terminal; and determining the selected coding and decoding format based on the coding and decoding format selection operation input by the user on the interface.
In one embodiment, the processor may further implement the following steps when executing the computer program: if the selected coding and decoding format carries default coding and decoding parameters, the default coding and decoding parameters are changed into the target coding and decoding parameters, and the configurable coding and decoding format is obtained.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when executed by a processor, performs the steps of: acquiring a coding and decoding format selected by a user for an opposite terminal; determining target coding and decoding parameters aiming at the selected coding and decoding format from candidate coding and decoding parameters supported by the opposite end under different coding and decoding formats; and setting the target coding and decoding parameters as the coding and decoding parameters of the selected coding and decoding format to obtain a configurable coding and decoding format for being allocated to the opposite terminal.
In one embodiment, the processor may further implement the following steps when executing the computer program: and recording the configurable coding and decoding format in a coding and decoding format encapsulation layer at the local end.
In one embodiment, the processor may further implement the following steps when executing the computer program: after the connection with the opposite terminal is disconnected, the opposite terminal is connected again, and the recorded configurable coding and decoding formats are packaged in the coding and decoding format packaging layer; and sending the packaged configurable coding and decoding format to the opposite terminal.
In one embodiment, the processor may further implement the following steps when executing the computer program: and if the feedback that the opposite end agrees to configure the configurable coding and decoding format is received, recording the configurable coding and decoding format in a coding and decoding format encapsulation layer of the local end.
In one embodiment, the connection to the peer is a bluetooth connection and the codec format wrapper layer is a bluetooth stack layer.
In one embodiment, the candidate codec parameters are obtained together when the codec format supported by the opposite end is obtained from the opposite end after the candidate codec parameters are connected to the opposite end.
In one embodiment, the processor may further implement the following steps when executing the computer program: displaying an interface of the coding and decoding format supported by the opposite terminal; and determining the selected coding and decoding format based on the coding and decoding format selection operation input by the user on the interface.
In one embodiment, the processor may further implement the following steps when executing the computer program: if the selected coding and decoding format carries default coding and decoding parameters, the default coding and decoding parameters are changed into the target coding and decoding parameters, and the configurable coding and decoding format is obtained.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A method for configuring codec format, the method comprising:
acquiring a coding and decoding format selected by a user for an opposite terminal;
determining target coding and decoding parameters aiming at the selected coding and decoding format from candidate coding and decoding parameters supported by the opposite end under different coding and decoding formats;
and setting the target coding and decoding parameters as the coding and decoding parameters of the selected coding and decoding format to obtain a configurable coding and decoding format for being allocated to the opposite terminal.
2. The method of claim 1, further comprising:
and recording the configurable coding and decoding format in a coding and decoding format encapsulation layer at the local end.
3. The method of claim 2, wherein after the recording the configurable codec format in a codec format encapsulation layer of a local end, the method further comprises:
after the connection with the opposite terminal is disconnected, the opposite terminal is connected again, and the recorded configurable coding and decoding formats are packaged in the coding and decoding format packaging layer;
and sending the packaged configurable coding and decoding format to the opposite terminal.
4. The method of claim 2, wherein the recording the configurable codec format in a codec format encapsulation layer of the local end comprises:
and if the feedback that the opposite end agrees to configure the configurable coding and decoding format is received, recording the configurable coding and decoding format in a coding and decoding format encapsulation layer of the local end.
5. The method according to any of claims 2 to 4, wherein the connection to the peer is a Bluetooth connection and the codec format encapsulation layer is a Bluetooth stack layer.
6. The method according to claim 1, wherein the candidate codec parameters are obtained together when the codec format supported by the opposite end is obtained to the opposite end after the connection with the opposite end.
7. The method of claim 1, wherein obtaining the codec format selected by the user for the opposite end comprises:
displaying an interface of the coding and decoding format supported by the opposite terminal;
and determining the selected coding and decoding format based on the coding and decoding format selection operation input by the user on the interface.
8. The method of claim 1, wherein setting the target codec parameter to the codec parameter of the selected codec format, resulting in a configurable codec format for allocation to the peer end, comprises:
if the selected coding and decoding format carries default coding and decoding parameters, the default coding and decoding parameters are changed into the target coding and decoding parameters, and the configurable coding and decoding format is obtained.
9. An apparatus for configuring codec formats, the apparatus comprising:
the encoding and decoding format acquisition module is used for acquiring the encoding and decoding format selected by the user aiming at the opposite terminal;
a codec parameter determination module, configured to determine a target codec parameter for the selected codec format from candidate codec parameters supported by the opposite end in different codec formats;
and the parameter setting module is used for setting the target coding and decoding parameters as the coding and decoding parameters of the selected coding and decoding format to obtain a configurable coding and decoding format which is used for being allocated to the opposite terminal.
10. A terminal comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the method of any of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 8.
CN202110258426.7A 2021-03-10 2021-03-10 Configuration method, device, terminal and storage medium of coding and decoding format Pending CN115085769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110258426.7A CN115085769A (en) 2021-03-10 2021-03-10 Configuration method, device, terminal and storage medium of coding and decoding format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110258426.7A CN115085769A (en) 2021-03-10 2021-03-10 Configuration method, device, terminal and storage medium of coding and decoding format

Publications (1)

Publication Number Publication Date
CN115085769A true CN115085769A (en) 2022-09-20

Family

ID=83241027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110258426.7A Pending CN115085769A (en) 2021-03-10 2021-03-10 Configuration method, device, terminal and storage medium of coding and decoding format

Country Status (1)

Country Link
CN (1) CN115085769A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070049196A1 (en) * 2005-08-30 2007-03-01 Jason Hillyard Method and system for optimized architecture for bluetooth streaming audio applications
US20070232255A1 (en) * 2006-03-28 2007-10-04 Kabushiki Kaisha Toshiba Wireless communication device and wireless communication system
CN101286770A (en) * 2007-04-09 2008-10-15 艾威梯软件技术(北京)有限公司 Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP
US20080287063A1 (en) * 2007-05-16 2008-11-20 Texas Instruments Incorporated Controller integrated audio codec for advanced audio distribution profile audio streaming applications
CN111199743A (en) * 2020-02-28 2020-05-26 Oppo广东移动通信有限公司 Audio coding format determining method and device, storage medium and electronic equipment
CN112313929A (en) * 2018-12-27 2021-02-02 华为技术有限公司 Method for automatically switching Bluetooth audio coding modes and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070049196A1 (en) * 2005-08-30 2007-03-01 Jason Hillyard Method and system for optimized architecture for bluetooth streaming audio applications
US20070232255A1 (en) * 2006-03-28 2007-10-04 Kabushiki Kaisha Toshiba Wireless communication device and wireless communication system
CN101286770A (en) * 2007-04-09 2008-10-15 艾威梯软件技术(北京)有限公司 Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP
US20080287063A1 (en) * 2007-05-16 2008-11-20 Texas Instruments Incorporated Controller integrated audio codec for advanced audio distribution profile audio streaming applications
CN112313929A (en) * 2018-12-27 2021-02-02 华为技术有限公司 Method for automatically switching Bluetooth audio coding modes and electronic equipment
CN111199743A (en) * 2020-02-28 2020-05-26 Oppo广东移动通信有限公司 Audio coding format determining method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN105763723B (en) Mobile terminal and method for upgrading system
CN107577533B (en) Resource allocation method and related product
CN107547746B (en) Resource allocation method and related product
CN109246671A (en) Data transmission method, apparatus and system
CN107479970B (en) Resource allocation method and related product
US11190967B2 (en) Downlink data packet configuration method and device
CN107450988B (en) Resource allocation method and related product
KR102221021B1 (en) Electronic device and method for processing packet in internet protocol based network
US20230054451A1 (en) Communication Connection Method and Electronic Device
CN109413525A (en) Encoding rate method of adjustment, device, electronic equipment and storage medium
JP2020507249A (en) Method and apparatus for multiplexing uplink grant resources
KR20180088880A (en) Use network-supported protocols to improve network utilization
EP4007405A1 (en) Information transmission method and apparatus, and communication device
CN115085769A (en) Configuration method, device, terminal and storage medium of coding and decoding format
CN110267286A (en) Data transmission method, device, access network equipment and storage medium
US11678319B2 (en) Dynamic allocation of transmission slots based on UE information
CN108282690A (en) A kind of Internet video method for down loading, device and computer readable storage medium
WO2019095167A1 (en) Wireless communication method and device
CN114745706A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN113141520B (en) Video stream transmission method and device, electronic equipment and storage medium
CN110381487B (en) Bluetooth connection method and device
CN105791305A (en) Data processing method and device
CN116761222B (en) Method for switching base station, terminal equipment and readable storage medium
CN110999340A (en) Near field communication device and method
CN110300216A (en) Voice-over-net call optimization method, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination