Signal processing method, display platform, device and storage medium
By acquiring the video source format signal of the camera device and automatically matching the signal type, the problem of cumbersome camera display when the user is not familiar with the format is solved, and efficient video data display is achieved.
Patent Information
- Application Number
- CN202211356432.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-01
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2042-11-01
AI Technical Summary
Existing camera devices are cumbersome to display images when the user does not know the format, resulting in a poor user experience.
The adapter chip obtains the standard signal of the video source, determines and matches the signal type, and automatically adjusts the preview register storage value of the adapter chip to achieve normal display of the video data.
In the case of unknown formats, the signal type is automatically matched, which improves the display efficiency and user experience of the camera device.
Smart Images

Figure CN115665475B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing, and in particular to a signal processing method, a display platform, a signal processing device, and a storage medium. Background Art
[0002] The camera's standard is determined at the factory. For the camera to display images properly, the user must know the camera's standard and set the corresponding standard type on the platform. This way, the camera's response is too complicated and inconvenient for daily use. Summary of the Invention
[0003] In view of this, the purpose of the embodiments of the present application is to provide a signal processing method, display platform, device and storage medium, so that the user can display the image normally when the user is unknown about the format of the camera device, so as to improve the user experience when using the camera device.
[0004] In a first aspect, an embodiment of the present application provides a signal processing method, which is applied to a display platform, and the method includes: obtaining a standard signal of the video source through an adapter chip connected to the video source; obtaining a first signal type selected when performing an operation to open the video source; determining whether the first signal type matches the standard signal; if the first signal type does not match the standard signal, reselecting a second signal type based on the standard signal, and matching the second signal type with the standard signal; if the second signal type matches the standard signal, changing the value stored in the preview register of the adapter chip to preview the video data input by the video source.
[0005] In an embodiment of the present application, by determining whether the standard signal of the video source matches the first signal type selected when the video source is turned on, if the first signal type does not match the standard signal, a second signal type is reselected based on the standard signal to match the standard signal. If the second signal type does match the standard signal, the value stored in the preview register of the adapter chip is changed. This entire process automatically matches the standard signal with the display platform, thereby achieving normal display of video data input by the video source even when the standard of the camera device is unknown.
[0006] In one embodiment, obtaining the format signal of the video source through an adapter chip connected to the video source includes: obtaining the status of a status register of the adapter chip, the status being used to indicate whether the adapter chip recognizes the format of the video source; and obtaining the format signal from the format register of the adapter chip when the status of the status register is locked.
[0007] In an embodiment of the present application, by obtaining the status of the status register of the adapter chip, the format of the video source is locked when the status of the status register tends to be stable, thereby avoiding abnormalities in the format signal obtained from the format register of the adapter chip and improving the accuracy of the obtained format signal.
[0008] In one embodiment, the display platform includes an operating system, and the display platform is used to install a video application. The obtaining of the first signal type selected when executing the operation of opening the video source includes: the video application responding to the command to open the video source, opening the video source, and selecting any signal type from a plurality of preset signal types as the first signal type; and sending the first signal type to the operating system along with a first initialization instruction for initializing the register of the adapter chip; and the operating system parsing the first signal type from the first initialization instruction.
[0009] In the embodiment of the present application, any signal type is selected as the first signal type from a plurality of preset signal types, so as to facilitate the subsequent reduction of data processing volume when the first signal type matches the standard signal.
[0010] In one embodiment, before acquiring the format signal of the video source through the adapter chip connected to the video source, the method further includes: sending the initialization command to the adapter chip.
[0011] In the embodiment of the present application, an initialization command is sent to the adapter chip to initialize the registers in the adapter chip so that the adapter chip can recognize the connected video source.
[0012] In one embodiment, the reselection of the second signal type based on the standard signal includes: the operating system sending the standard signal to the video application; the video application selecting the second signal type that matches the standard signal from the preset multiple signal types, and sending the second signal type to the operating system along with the second initialization instruction for initializing the register of the adapter chip.
[0013] In an embodiment of the present application, by sending a standard signal to a video application, the video application selects a second signal type that matches the standard signal from a plurality of preset signal types, so that the second signal type can match the standard signal, and sends a second initialization instruction corresponding to the second signal type to the operating system to configure the registers of the adapter chip.
[0014] In one embodiment, when the first signal type does not match the standard signal, the method further includes: assigning the standard signal to the previous standard signal variable; correspondingly, matching the second signal type with the standard signal includes: matching the second signal type with the previous standard signal variable.
[0015] In an embodiment of the present application, by assigning the standard signal to the previous standard signal variable, when obtaining the second signal type, the second signal type is directly matched with the previous standard signal variable without re-acquiring the standard signal, thereby reducing the amount of data processing and improving the efficiency of data processing.
[0016] In one embodiment, when the first signal type does not match the standard signal, the method further includes: changing a value stored in a preview register of the adapter chip to preview the video data input by the video source.
[0017] In the embodiment of the present application, by modifying the value stored in the register and adjusting the relevant configuration for transmitting the standard signal in the adapter chip, a preview of the video data input by the video source is achieved.
[0018] In one embodiment, after changing the value stored in the preview register of the adapter chip, the method further includes: the operating system obtains work queue status information; the operating system determines whether the video source and the adapter chip are in a reconnection state based on the work queue status information; the operating system determines whether the second signal type matches the standard signal when the video source and the adapter chip are in a reconnection state; when the second signal type does not match the standard signal, reselecting a third signal type based on the standard signal, and matching the third signal type with the standard signal; when the third signal type matches the standard signal, changing the value stored in the preview register of the adapter chip to preview the video data input by the video source.
[0019] In an embodiment of the present application, the connection status of the video source and the adapter chip is judged by the work queue status information. When the video source and the adapter chip are in a reconnected state, a matching judgment is made based on the second signal type and the standard signal, thereby reducing the data processing time, thereby enabling the video source to quickly respond to the standard of the video source after hot plugging, and speeding up the recovery of the preview of the video data input by the video source.
[0020] In a second aspect, an embodiment of the present application provides a display platform for installing a video application, wherein the display platform includes an operating system, and the operating system is used to execute the signal processing method provided in the first aspect above.
[0021] In a third aspect, an embodiment of the present application provides a signal processing device, comprising: an acquisition module for acquiring the standard signal of the video source through an adapter chip connected to the video source; and also for acquiring a first signal type selected when performing an operation to open the video source; a processing module for determining whether the first signal type matches the standard signal; if the first signal type does not match the standard signal, reselecting a second signal type based on the standard signal, and matching the second signal type with the standard signal; if the second signal type matches the standard signal, changing the value stored in the preview register of the adapter chip to preview the video data input by the video source.
[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising: computer-readable instructions are stored on the storage medium, and when the computer-readable instructions are executed by a computer, the computer executes the above-mentioned signal processing method or realizes the functions of the above-mentioned signal processing device.
[0023] The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A schematic diagram of the interaction between the display platform and other devices provided in an embodiment of the present application;
[0026] Figure 2 A flowchart of a signal processing method provided in an embodiment of the present application;
[0027] Figure 3 A signaling flow chart of the display platform and other devices provided in an embodiment of the present application;
[0028] Figure 4 This is a structural diagram of the signal processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0030] Please refer to Figure 1 The present application provides a display platform that may include an operating system. The display platform can be used to install software such as video applications. The display platform interacts with the video source through a switching chip to preview the video data input by the video source.
[0031] The video source may be a photographic device, such as a camera or the like.
[0032] Please refer to Figure 2 , the present application provides a signal processing method, which can be applied to a display platform and can include the following steps.
[0033] S21: Obtain the standard signal of the video source through the adapter chip connected to the video source.
[0034] The standard signal may include standard signals related to the resolution of the video image, such as 1080P, 720P, PAL (Phase Alteration Line), and NTSC (National Television Standards Committee).
[0035] In one embodiment, S21 may include: obtaining a status of a status register of the adapter chip, wherein the status is used to indicate whether the adapter chip recognizes the format of the video source, and when the status of the status register is locked, obtaining a format signal from the format register of the adapter chip.
[0036] Among them, when the adapter chip starts to identify the connected video source, the state of the status register changes continuously with the time when the video source is connected. When the state of the status register remains unchanged within the preset time, the state of the status register can be locked and the standard signal can be obtained from the standard register of the adapter chip.
[0037] It can be understood that by acquiring the status of the status register of the adapter chip to lock the format of the video source, abnormalities in the format signal acquired from the format register of the adapter chip can be avoided, thereby improving the accuracy of the acquired format signal.
[0038] In another embodiment, the standard signal may be directly obtained from the standard register of the adapter chip.
[0039] S22: Acquire the first signal type selected when performing the operation of opening the video source.
[0040] In one embodiment, S22 may include: the video application responds to a command to open the video source, opens the video source, and selects any signal type as the first signal type from a plurality of preset signal types, and sends the first signal type along with a first initialization instruction to initialize the register of the adapter chip to the operating system, and the operating system parses the first signal type from the first initialization instruction.
[0041] Specifically, the video application can send the first initialization instruction corresponding to the first signal type to the HAL (Hardware Abstraction Layer) of the operating system through the JNI and binder mechanism, and then transmit the first initialization instruction from the HAL layer to the kernel of the operating system through the ioctl (input / output control) system call. The operating system obtains the first signal type by parsing the first initialization instruction.
[0042] It can be understood that ioctl is a system call dedicated to device input and output operations. The call passes in a request code related to the device, and the function of the system call depends entirely on the request code.
[0043] Since the format of the video source is unclear, any signal type can be selected from multiple preset signal types as the first signal type. For example, a signal type can be randomly selected from 1080P, 720P, 420P and other standard signal types as the first signal type.
[0044] It can be understood that by selecting any signal type from a plurality of preset signal types as the first signal type, it is convenient to reduce the amount of data processing when the first signal type matches the standard signal in the subsequent process.
[0045] S23: Determine whether the first signal type matches the standard signal. If the first signal type does not match the standard signal, reselect the second signal type based on the standard signal and match the second signal type with the standard signal. If the second signal type matches the standard signal, change the value stored in the preview register of the adapter chip to preview the video data input by the video source.
[0046] It can be understood that by determining whether the standard signal of the video source matches the first signal type selected when the video source is turned on, if the first signal type does not match the standard signal, a second signal type is reselected based on the standard signal to match the standard signal. If the second signal type does match the standard signal, the value stored in the preview register of the adapter chip is changed. This entire process automatically matches the standard signal with the display platform, thereby achieving normal display of video data input by the video source even when the standard of the camera device is unknown.
[0047] In one embodiment, in S23, reselecting the second signal type based on the standard signal may include: the operating system sends the standard signal to the video application, the video application selects the second signal type that matches the standard signal from multiple preset signal types, and sends the second signal type to the operating system along with the second initialization instruction for initializing the register of the adapter chip.
[0048] Specifically, the video application sends the second initialization instruction corresponding to the second signal type to the HAL of the operating system through the JNI and binder mechanism, and then transmits the second initialization instruction from the HAL layer to the kernel of the operating system through the ioctl system call. The kernel of the operating system parses the second initialization instruction and selects the corresponding standard configuration from the preset multiple standard configurations.
[0049] In one embodiment, the operating system may send the format signal to the video application via an event.
[0050] In one embodiment, the registers of the adapter chip may be a resolution register and a streamon register, and the resolution register and the streamon register may be configured according to the second initialization instruction.
[0051] It should be noted that the type and number of registers of the adapter chip are not fixed, and can exist in the form of a single or more than two. This application is not limited to this.
[0052] In one embodiment, in S23, when the first signal type does not match the standard signal, the method may further include: assigning the standard signal to the previous standard signal variable, and correspondingly, matching the second signal type with the standard signal may include: matching the second signal type with the previous standard signal variable.
[0053] It can be understood that by assigning the standard signal to the previous standard signal variable, when obtaining the second signal type, the second signal type can be directly matched with the previous standard signal variable without re-acquiring the standard signal, thereby reducing the amount of data processing and improving the efficiency of data processing.
[0054] In one embodiment, in S23 , when the first signal type matches the standard signal, the method may further include: changing a value stored in a preview register of the adapter chip to preview the video data input by the video source.
[0055] It can be understood that by modifying the value stored in the register and adjusting the relevant configuration for transmitting the standard signal in the adapter chip, the video data input by the video source can be previewed.
[0056] In one embodiment, before S22 , the method may further include: sending the initialization command to the adapter chip.
[0057] It can be understood that by sending the initialization command to the adapter chip, the registers in the adapter chip are initialized so that the adapter chip can identify the connected video source.
[0058] In one embodiment, after S23, the method may further include: after changing the value stored in the preview register of the adapter chip, the method also includes: obtaining work queue status information, and judging whether the video source and the adapter chip are in a reconnected state based on the work queue status information; when the video source and the adapter chip are in a reconnected state, judging whether the second signal type matches the standard signal; when the second signal type does not match the standard signal, reselecting a third signal type based on the standard signal, and matching the third signal type with the standard signal; when the third signal type matches the standard signal, changing the value stored in the preview register of the adapter chip to preview the video data input by the video source.
[0059] Specifically, in the process of previewing the screen, the work queue is used to identify the disconnection status of the video source and the adapter chip, and the work queue status information corresponding to the disconnection status is sent to the video application through the event event. After receiving the event event, the video application stops previewing the screen and jumps to a new interface to prompt that the video source has been disconnected. When the work queue identifies that the video source is reconnected to the adapter chip, the work queue status information corresponding to the reconnection status is sent to the video application through the event event. The kernel of the operating system reacquires the standard signal of the video source from the standard register of the adapter chip according to the status register of the locked state, and sends the standard signal to the operating system through the event event. The operating system reselects the third signal type according to the standard signal, and returns the parameters corresponding to the third signal type to the video application. The video application sends the parameters corresponding to the third signal type to the kernel of the operating system through ioctl to determine whether the third signal type matches the standard signal. If the third signal type matches the standard signal, the value stored in the preview register of the adapter chip is changed to preview the video data input by the video source.
[0060] In one embodiment, after the video source is disconnected from the adapter chip, reconnecting with the adapter chip within a preset time period is considered a reconnection state.
[0061] In another embodiment, the preset duration can be set to a very large value so that in the subsequent time, after the video source establishes a connection with the adapter chip, it can directly determine whether the second signal type matches the standard signal, thereby reducing the amount of data processing.
[0062] It can be understood that the connection status of the video source and the adapter chip is judged through the work queue status information. When the video source and the adapter chip are in a reconnected state, a matching judgment is made based on the second signal type and the standard signal, thereby reducing the data processing time, thereby enabling the video source to quickly respond to the standard of the video source after hot plugging, and speeding up the recovery of the preview of the video data input by the video source.
[0063] In order to facilitate further understanding of the solution provided in the embodiment of the present application. Based on the above description of the signal processing method, this embodiment uses Figure 3 As an example, this application is further illustrated.
[0064] The display platform is installed with a video application. This application opens the camera device by executing the open command and transmits a first initialization command to the operating system kernel via ioctl in the form of the inputType parameter. The kernel parses the inputType parameter, obtains the first signal type, and issues an initialization command corresponding to the signal type to the adapter chip. After connecting to the video source and powering on, the adapter chip awaits the initialization command from the display platform.
[0065] Furthermore, after register initialization is complete, the adapter chip begins identifying the standard of the incoming video source and updates the status register and standard register. The status register provides feedback on the status of the standard signal transmitted to the standard register. The core continuously reads the status register. When the status register is locked, it reads the adapter chip's standard register to determine the standard signal of the video source. The core then matches the standard signal read from the video source with the signal type transmitted by the video application.
[0066] If the two match successfully, the values stored in the resolution register and streamon register are changed to achieve screen preview.
[0067] If the match fails, the standard signal is returned to the video application via an event, and the signal type of the standard signal is saved by assigning it to the previous standard signal variable. At this point, the video application transmits the second signal type and the corresponding initialization command to the kernel via ioctl, and determines whether the second signal type matches the previous standard signal variable. If the match is unsuccessful, the above process is repeated until the signal type matches the standard signal, enabling screen preview.
[0068] Based on the same invention concept, please refer to Figure 4 In an embodiment of the present application, a signal processing device 400 is also provided, which includes: an acquisition module 401 and a processing module 402.
[0069] The acquisition module 401 is used to acquire the standard signal of the video source through the adapter chip connected to the video source, and to acquire the first signal type selected when performing the operation of opening the video source.
[0070] The processing module 402 is used to determine whether the first signal type matches the standard signal; if the first signal type does not match the standard signal, reselect the second signal type based on the standard signal and match the second signal type with the standard signal; if the second signal type matches the standard signal, change the value stored in the preview register of the adapter chip to preview the video data input by the video source.
[0071] In one embodiment, the acquisition module 401 is further used to obtain the status of the status register of the adapter chip, which is used to indicate whether the adapter chip recognizes the format of the video source; when the status of the status register is locked, the format signal is obtained from the format register of the adapter chip.
[0072] In one embodiment, the acquisition module 401 is also used for the video application to respond to a command to open the video source, open the video source, and select any signal type as the first signal type from multiple preset signal types; and send the first signal type to the operating system along with the first initialization instruction to initialize the register of the adapter chip; the operating system parses the first signal type from the first initialization instruction.
[0073] In one embodiment, the processing module 402 is further configured to instruct the operating system to send the format signal to the video application.
[0074] In one embodiment, the processing module 402 is also used for the operating system to send the standard signal to the video application; the video application selects a second signal type that matches the standard signal from multiple preset signal types, and sends the second signal type to the operating system along with a second initialization instruction to initialize the register of the adapter chip.
[0075] In one embodiment, the processing module 402 is further configured to assign the standard signal to the last standard signal variable; and match the second signal type with the last standard signal variable.
[0076] In one embodiment, the processing module 402 is further configured to modify a value stored in a preview register of the adapter chip to preview the video data input by the video source.
[0077] In one embodiment, the processing module 402 is also used for the operating system to obtain work queue status information; the operating system determines whether the video source and the adapter chip are in a reconnected state based on the work queue status information; the operating system determines whether the second signal type matches the standard signal when the video source and the adapter chip are in a reconnected state; if the second signal type does not match the standard signal, reselect the third signal type based on the standard signal, and match the third signal type with the standard signal; if the third signal type matches the standard signal, change the value stored in the preview register of the adapter chip to preview the video data input by the video source.
[0078] It can be understood that the signal processing device 400 provided in this application corresponds to the signal processing method provided in this application. In order to make the description concise, the same or similar parts can refer to the content of the signal processing method part and will not be repeated here.
[0079] Each module in the signal processing device 400 can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a server in hardware form, or can be stored in a memory in the server in software form, so that the processor can call and execute the corresponding operations of each module. The processor can be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, etc.
[0080] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium having computer-readable instructions stored thereon. When the program is executed by a processor, the steps in the above-mentioned signal processing method are implemented.
[0081] As used herein, any reference to memory, storage, database, or other medium may include non-volatile. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
[0082] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0083] In addition, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0084] Furthermore, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0085] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any actual relationship or order between these entities or operations.
[0086] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and variations of the present application are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A signal processing method, characterized in that: Applied to a display platform, the display platform includes an operating system, and the display platform is used to install a video application. The method includes: obtaining a format signal of the video source through a switching chip connected to the video source, wherein the switching chip identifies the format signal of the video source after completing initialization in response to a first initialization instruction; The operating system obtains from the video application a first signal type selected when executing an operation to open the video source, and issues a first initialization instruction corresponding to the first signal type to the adapter chip; wherein the first signal type is any signal type selected by the video application from a plurality of preset signal types; Determining whether the first signal type matches the standard signal; In a case where the first signal type does not match the standard signal, the operating system reselects a second signal type based on the standard signal through the video application, and matches the second signal type with the standard signal; wherein the second signal type is a signal type selected by the video application from the plurality of preset signal types to match the standard signal; In a case where the second signal type matches the standard signal, the value stored in the preview register of the adapter chip is changed to preview the video data input by the video source.
2. The method according to claim 1, wherein The method of obtaining the standard signal of the video source through the adapter chip connected to the video source includes: Acquire a status of a status register of the adapter chip, where the status is used to indicate whether the adapter chip recognizes the format of the video source; When the state of the status register is locked, the standard signal is obtained from the standard register of the adapter chip.
3. The method according to claim 1, wherein The operating system obtains, from the video application, a first signal type selected when performing an operation of opening the video source, including: The video application responds to a command to open a video source by opening the video source and selecting any one of a plurality of preset signal types as the first signal type; and sends the first signal type to the operating system along with the first initialization instruction for initializing a register of the adapter chip; The operating system parses the first signal type from the first initialization instruction.
4. The method according to claim 3, wherein The operating system reselecting the second signal type based on the standard signal through the video application includes: The operating system sends the format signal to the video application; The video application selects the second signal type that matches the standard signal from the preset multiple signal types, and sends the second signal type to the operating system along with a second initialization instruction for initializing the register of the adapter chip.
5. The method according to claim 4, wherein In a case where the first signal type does not match the standard signal, the method further includes: Assigning the standard signal to the previous standard signal variable; Correspondingly, matching the second signal type with the standard signal includes: Match the second signal type with the last standard signal variable.
6. The method according to claim 1, wherein In a case where the first signal type matches the standard signal, the method further includes: The value stored in the preview register of the adapter chip is changed to preview the video data input by the video source.
7. The method according to claim 3, wherein After changing the value stored in the preview register of the adapter chip, the method further includes: The operating system obtains work queue status information; The operating system determines whether the video source and the adapter chip are in a reconnection state according to the work queue status information; The operating system determines whether the second signal type matches the standard signal when the video source and the adapter chip are in a reconnected state; In the case where the second signal type does not match the standard signal, reselecting a third signal type based on the standard signal, and matching the third signal type with the standard signal; In a case where the third signal type matches the standard signal, the value stored in the preview register of the adapter chip is changed to preview the video data input by the video source.
8. A display platform, characterized in that: For installing video applications, the display platform includes: An operating system, configured to execute the signal processing method according to any one of claims 1 to 7.
9. A signal processing device, characterized in that: include: an acquisition module, configured to acquire a format signal of the video source through a switching chip connected to the video source, wherein the switching chip identifies the format signal of the video source after completing initialization in response to a first initialization instruction; and further configured to utilize the operating system to obtain from the video application a first signal type selected when executing the operation of opening the video source, and to issue the first initialization instruction corresponding to the first signal type to the adapter chip; wherein the first signal type is any signal type selected by the video application from a plurality of preset signal types; A processing module is used to determine whether the first signal type matches the standard signal; if the first signal type does not match the standard signal, using the operating system to reselect a second signal type based on the standard signal through the video application, and match the second signal type with the standard signal; if the second signal type matches the standard signal, changing the value stored in the preview register of the adapter chip to preview the video data input by the video source; wherein the second signal type is a signal type selected by the video application from the preset multiple signal types to match the standard signal.
10. A computer-readable storage medium, characterized in that The storage medium stores computer-readable instructions, which, when executed by a computer, enable the computer to perform the signal processing method according to any one of claims 1 to 7 or implement the functions of the signal processing device according to claim 9.