CN118678007A - Video processing equipment and video signal transmission method - Google Patents
Video processing equipment and video signal transmission method Download PDFInfo
- Publication number
- CN118678007A CN118678007A CN202411139889.1A CN202411139889A CN118678007A CN 118678007 A CN118678007 A CN 118678007A CN 202411139889 A CN202411139889 A CN 202411139889A CN 118678007 A CN118678007 A CN 118678007A
- Authority
- CN
- China
- Prior art keywords
- video signal
- target
- time sequence
- video
- control module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012545 processing Methods 0.000 title claims abstract description 126
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000008054 signal transmission Effects 0.000 title claims abstract description 38
- 238000006243 chemical reaction Methods 0.000 claims abstract description 159
- 230000005540 biological transmission Effects 0.000 claims abstract description 139
- 238000004458 analytical method Methods 0.000 claims abstract description 7
- 230000004044 response Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 description 21
- 238000004891 communication Methods 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 210000001503 joint Anatomy 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012805 post-processing Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the application provides video processing equipment and a video signal transmission method, and relates to the technical field of signal transmission, wherein in the video processing equipment, a conversion module analyzes a first video signal currently transmitted by a signal source end to obtain a target time sequence parameter; the main control module reads the target time sequence parameter obtained by analysis of the conversion module, determines a target transmission parameter based on the target time sequence parameter, and performs time sequence configuration on the appointed output port and the appointed input port based on the target transmission parameter; the conversion module outputs a second video signal corresponding to the first video signal through the appointed output port according to the time sequence configured for the appointed output port; the main control module receives the second video signal through the appointed input port according to the time sequence configured for the appointed input port. According to the scheme, the video processing equipment can be enabled to be matched with the butted signal source end, and video signals are processed.
Description
Technical Field
The present application relates to the field of signal transmission technologies, and in particular, to a video processing apparatus and a video signal transmission method.
Background
When the signal source end transmits the video signal to video processing equipment such as a video recorder, the conversion module of the video processing equipment can convert the format of the video signal into a format supported by the main control module of the video processing equipment, for example: converting video signals in an HDMI (High Definition Multimedia Interface, high-definition multimedia interface, which can transmit uncompressed audio and video signals) format into video signals in a BT1120 (which is all called ITU-R BT.1120, wherein ITU is International Telecommunication Union (International telecommunication Union) English abbreviation, R is Radiocommunicationssector (radio communication department) English abbreviation, and BT is Broadcasting Service television (broadcast television service)) format supported by a main control module; and then, the conversion module sends the video signal after format conversion to the main control module for video signal processing.
In the related art, transmission parameters of a video signal transmitted by a signal source end need to be matched with transmission parameters supported by a video processing device, and the transmission parameters can include a frame rate, a resolution and the like, so that the video processing device can perform corresponding processing on the transmitted video signal. In general, video processing devices typically give a limited number of supported transmission parameters.
In some scenarios, the transmission parameters of the video signal transmitted by the signal source end cannot be adjusted, and if the transmission parameters of the video signal transmitted by the signal source end are not matched with the transmission parameters supported by the video processing device, the video processing device cannot process the video signal.
Therefore, the signal source end which can be docked by the current video processing equipment has higher limitation.
Disclosure of Invention
An object of an embodiment of the present application is to provide a video processing apparatus and a video signal transmission method, so that the video processing apparatus adapts to a signal source end of a docking and processes a video signal. The specific technical scheme is as follows:
In a first aspect, an embodiment of the present application provides a video processing apparatus, including a conversion module and a main control module;
The conversion module is used for responding to the signal source terminal to transmit video signals, analyzing a first video signal currently transmitted by the signal source terminal and obtaining target time sequence parameters of the first video signal;
The main control module is used for reading the target time sequence parameter obtained by the analysis of the conversion module, determining a target transmission parameter of the first video signal based on the target time sequence parameter, and performing time sequence configuration on a designated output port of the conversion module and a designated input port of the main control module based on the target transmission parameter; the specified output port and the specified input port are connected and are used for video signal transmission;
The conversion module is further configured to output a second video signal corresponding to the first video signal through the specified output port according to the configured time sequence for the specified output port in response to completion of the time sequence configuration of the specified output port; the second video signal corresponding to the first video signal is a video signal which is obtained by processing the first video signal by the conversion module and is used for being transmitted to the main control module;
the main control module is further configured to receive the second video signal through the designated input port according to the timing sequence configured for the designated input port.
In a second aspect, an embodiment of the present application provides a video signal transmission method, including:
Reading a target time sequence parameter of a first video signal currently transmitted by a signal source terminal; the target time sequence parameter is obtained by analyzing a first video signal currently transmitted by the signal source terminal under the condition that the signal source terminal transmits the video signal;
determining a target transmission parameter of the first video signal based on the target timing parameter;
Performing time sequence configuration on the appointed output port and the appointed input port based on the target transmission parameters; the specified output port and the specified input port are ports which are connected in the video processing equipment and used for video signal transmission;
Outputting a second video signal corresponding to the first video signal to a designated input port through the designated output port according to a timing sequence configured for the designated output port; the second video signal corresponding to the first video signal is a video signal which is obtained by processing the first video signal and is used for being transmitted to a designated input port;
The second video signal is received at a timing configured for the specified input port.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory for storing a computer program;
And the processor is used for realizing any video signal transmission method when executing the program stored in the memory.
The embodiment of the application has the beneficial effects that:
the video processing equipment provided by the embodiment of the application comprises a conversion module and a main control module, wherein the conversion module can analyze a first video signal currently transmitted by a signal source end to obtain a target time sequence parameter of the first video signal; in order to enable the video processing equipment to be adapted to the butted signal source end, the main control module can read target time sequence parameters obtained by analysis of the conversion module, determine target transmission parameters corresponding to the first video signal based on the target time sequence parameters, and perform time sequence configuration on a designated output port of the conversion module for video signal transmission and a designated input port of the main control module through the target transmission parameters; after the time sequence configuration of the appointed output port is completed, the conversion module outputs a second video signal which corresponds to the first video signal and is obtained by processing the first video signal through the appointed output port according to the time sequence configured for the appointed output port; after the configuration of the time sequence of the designated input port is completed, the main control module may receive the second video signal through the designated input port according to the time sequence configured for the designated input port. The application can carry out time sequence configuration on the appointed output port for signal transmission of the conversion module and the appointed input port of the main control module based on the first video signal transmitted by the signal source end, so that the time sequence of the appointed output port for signal transmission and the appointed input port is matched with the time sequence of the first video signal transmitted by the signal source end, and the main control module can receive the second video signal corresponding to the first video signal through the appointed input port after the first video signal passes through the appointed output port and the appointed input port. Therefore, the video processing device can be adapted to the butted signal source end to process the video signal.
Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the application, and other embodiments may be obtained according to these drawings to those skilled in the art.
Fig. 1 is a schematic diagram of a video processing apparatus according to an embodiment of the present application;
fig. 2 is another schematic diagram of a video processing apparatus according to an embodiment of the present application;
Fig. 3 is a flowchart of a video signal transmission method according to an embodiment of the present application;
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by the person skilled in the art based on the present application are included in the scope of protection of the present application.
In order to realize that a signal source terminal transmits video signals to video processing equipment such as a video recorder and the like, an operator at the signal source terminal needs to acquire SPEC (THE STANDARD Performance Evaluation Corporation, standard performance evaluation mechanism) information of the video processing equipment, wherein the SPEC information contains a list of various transmission parameters supported by the video processing equipment, and the operator accesses the signal source terminal which belongs to the list and is matched with the transmission parameters of the video processing equipment to the video processing equipment through the list in the SPEC information, so that the video processing equipment processes the video signals transmitted by the signal source terminal. The transmission parameters supported by the main control module of the video processing device may be stored in a memory of the conversion module, a flag value of a flag bit in the memory may represent a transmission parameter supported by the main control module, and a plurality of flag bits may exist in the memory and correspond to a plurality of flag values, so that a plurality of flag values stored in the memory may represent a plurality of transmission parameters supported by the main control module of the video processing device, for example: the flag values are characterized by 4 bit (byte) data, and the plurality of flag values can be 0001, 0010, 0011, etc., wherein the flag value is 0001 for a supportable transmission parameter of 640×480P60, the flag value is 0010 for a supportable transmission parameter of 800×600P60, and the flag value is 0011 for a supportable transmission parameter of 1024×768P60.
However, if the transmission parameters of the signal source end are not matched with those of the video processing device, the video signal of the signal source end cannot be transmitted to the video processing device for processing. For example: the transmission parameters supportable by the video processing device include 640×480P60, 800×600P60, 1024×768P60, 1280×720P60, 1920×1080P60, where the transmission parameters of the video processing device can be understood as standard transmission parameters, and the transmission parameters of the signal source end with respect to the special transmission parameters are special and are not matched with the standard transmission parameters of the video processing device, for example: the transmission parameters may be: 1920×120p70, the video processing device cannot process the video signal transmitted by the signal source terminal of the particular transmission parameter being docked.
In some scenes, the transmission parameters of the video signals transmitted by the signal source end cannot be adjusted, and if the transmission parameters of the video signals transmitted by the signal source end are not matched with the transmission parameters supported by the video processing equipment, the video processing equipment cannot process the video signals of the signal source end in a butt joint mode.
Therefore, the signal source end which can be docked by the current video processing device has higher limitation, and how to enable the video processing device to adapt to the signal source end and process the video signal transmitted by the signal source end is a problem to be solved urgently.
Based on the above, the embodiment of the application provides a video processing device and a video signal transmission method, so that the video processing device is adapted to a signal source end in butt joint to process video signals.
The following describes a video processing apparatus provided in an embodiment of the present application.
The video processing equipment provided by the embodiment of the application comprises a conversion module and a main control module, wherein the main control module is connected with the conversion module, the main control module can analyze, encode, transmit and the like the received video signals, the conversion module is connected with a signal source end, the conversion module is used for carrying out format conversion processing on the video signals transmitted by the signal source end, and the format of the video signals after the format conversion processing is the format supported by the main control module. A video processing device may also be understood as an electronic device having the functionality of parsing video, encoding video, etc., such as: encoders, video recorders, record-playback hosts, etc. The video processing device may include one or more conversion modules, so as to ensure that the conversion modules can convert the format of the accessed video signal into the format supported by the main control module, and the video processing device may include a plurality of conversion modules, each conversion module may perform format conversion on the video signal with one or more formats, where the format of the video signal after the format conversion is the format supported by the main control module. The number of conversion modules and the specific conversion mode are not limited in the application.
In addition, in some cases, the format of the video signal transmitted by the signal source end may be matched with the format of the video signal supported by the main control module, and the conversion module does not need to perform format conversion processing on the video signal transmitted by the signal source end at this time, and can directly transmit the video signal to the main control module through the conversion module. The signal source end can generate and transmit video signals and can be a computer host or electronic equipment such as a notebook computer and a video camera, and the application is not limited to the above.
It should be noted that, in the embodiment of the present application, the main control module or the conversion module included in the video processing device described below is not limited to the hardware components that the video processing device must physically include. The term "module" in the embodiment of the present application may be a hardware component, a software program, or a software program and a necessary carrier for running the software program. As technology evolves, the steps or functions performed by these "modules" may be implemented (e.g., a module "for" a step described later) in hardware, software, or a combination of hardware and software, where any hardware, software, or combination of hardware and software is capable of implementing the steps required by the "module" may be considered a "module" in an embodiment of the present application.
The embodiment of the application provides video processing equipment, which comprises a conversion module and a main control module;
The conversion module is used for responding to the signal source terminal to transmit video signals, analyzing a first video signal currently transmitted by the signal source terminal and obtaining target time sequence parameters of the first video signal;
The main control module is used for reading the target time sequence parameter obtained by the analysis of the conversion module, determining a target transmission parameter of the first video signal based on the target time sequence parameter, and performing time sequence configuration on a designated output port of the conversion module and a designated input port of the main control module based on the target transmission parameter; the specified output port and the specified input port are connected and are used for video signal transmission;
The conversion module is further configured to output a second video signal corresponding to the first video signal through the specified output port according to the configured time sequence for the specified output port in response to completion of the time sequence configuration of the specified output port; the second video signal corresponding to the first video signal is a video signal which is obtained by processing the first video signal by the conversion module and is used for being transmitted to the main control module;
the main control module is further configured to receive the second video signal through the designated input port according to the timing sequence configured for the designated input port.
The video processing equipment provided by the embodiment of the application comprises a conversion module and a main control module, wherein the conversion module can analyze a first video signal currently transmitted by a signal source end to obtain a target time sequence parameter of the first video signal; in order to enable the video processing equipment to be adapted to the butted signal source end, the main control module can read target time sequence parameters obtained by analysis of the conversion module, determine target transmission parameters corresponding to the first video signal based on the target time sequence parameters, and perform time sequence configuration on a designated output port of the conversion module for video signal transmission and a designated input port of the main control module through the target transmission parameters; after the time sequence configuration of the appointed output port is completed, the conversion module outputs a second video signal which corresponds to the first video signal and is obtained by processing the first video signal through the appointed output port according to the time sequence configured for the appointed output port; after the configuration of the time sequence of the designated input port is completed, the main control module may receive the second video signal through the designated input port according to the time sequence configured for the designated input port. The application can carry out time sequence configuration on the appointed output port for signal transmission of the conversion module and the appointed input port of the main control module based on the first video signal transmitted by the signal source end, so that the time sequence of the appointed output port for signal transmission and the appointed input port is matched with the time sequence of the first video signal transmitted by the signal source end, and the main control module can receive the second video signal corresponding to the first video signal through the appointed input port after the first video signal passes through the appointed output port and the appointed input port. Therefore, the video processing device can be adapted to the butted signal source end to process the video signal.
A video processing apparatus according to an embodiment of the present application is described below with reference to the accompanying drawings.
As shown in fig. 1, a video processing apparatus provided in an embodiment of the present application includes: a conversion module 110 and a main control module 120;
The conversion module 110 is configured to respond to the signal source end to perform video signal transmission, and parse a first video signal currently transmitted by the signal source end to obtain a target timing parameter of the first video signal;
The main control module 120 is configured to read the target timing parameter obtained by parsing the conversion module 110, determine a target transmission parameter of the first video signal based on the target timing parameter, and perform timing configuration on a designated output port of the conversion module 110 and a designated input port of the main control module based on the target transmission parameter; the specified output port and the specified input port are connected and are used for video signal transmission;
The conversion module 110 is further configured to output, through the specified output port, a second video signal corresponding to the first video signal in response to completion of the timing configuration of the specified output port according to the timing configured for the specified output port; the second video signal corresponding to the first video signal is a video signal which is obtained by processing the first video signal by the conversion module and is used for being transmitted to the main control module;
the main control module 120 is further configured to receive the second video signal through the designated input port according to the timing sequence configured for the designated input port.
The embodiment of the application aims to enable the video processing equipment to adapt to the transmission parameters of any butted signal source end, so that the video processing equipment can process the video signals of any transmission parameters. Of course, any transmission parameter is a parameter (for example, a parameter smaller than or equal to the maximum transmission parameter of the main control module) of the video processing device, that is, the video processing device can adapt to the signal source end of the docking, and process any video signal smaller than or equal to the maximum transmission parameter of the video processing device.
When the signal source end transmits video signals, the conversion module 110 receives a first video signal currently transmitted by the signal source end, the conversion module 110 can analyze the first video signal to obtain a target time sequence parameter of the first video signal, and the target time sequence parameter is a time sequence parameter matched with the format of the video signal transmitted by the signal source end; then, the main control module 120 may read the target timing parameter obtained by parsing by the conversion module, and determine a target transmission parameter corresponding to the first video signal based on the target timing parameter; when signals are transmitted on the transmission line, the signals are transmitted step by step according to the time sequence of the signals, so that the video processing equipment adapts to the video signals transmitted by the signal source end, the time sequence configuration can be carried out on the appointed output port of the conversion module 110 for transmitting the video signals and the appointed input port of the main control module 120 based on the target transmission parameters, and the time sequence configuration carried out at the moment is the time sequence corresponding to the format of the video signals supported by the main control module 120 aiming at the same target transmission parameters; thus, after the timing configuration is completed, the signal transmission timings of the designated output port and the designated input port are matched with the target transmission parameters of the first video signal, and the signal formats of the designated output port and the designated input port are the formats supported by the main control module, the main control module 120 may receive the video signal through the designated input port and process it.
In addition, after the conversion module 110 analyzes the target timing parameter of the first video signal, the target timing parameter may be stored in a register inside the conversion module 110 itself, or the target timing parameter may be stored in a register outside the conversion module 110 and corresponding to the conversion module 110, so that the main control module 120 may read the target timing parameter from the register inside the conversion module 110, or the register outside the conversion module 110 and corresponding to the conversion module 110.
It should be noted that, in the embodiment of the present application, "timing parameters" refer to: one resolution typically has its own corresponding set of timing (TIMING DATA) containing timing parameters for that resolution. Timing standards of certain resolutions are also specified in standard documents, such as the standard document VESA monitor TIMING STANDARD, which defines sets of timing of different resolutions (TIMING DATA).
Illustratively, in one implementation, the transmission parameters include a resolution and a frame rate, and the main control module 120 determines the target transmission parameters of the first video signal based on the target timing parameters, including:
and determining a target resolution and a target frame rate corresponding to the first video signal based on the target time sequence parameter to obtain a target transmission parameter of the first video signal.
The transmission parameters of the video signal can be obtained based on the time sequence parameters of any video signal, the target transmission parameters can comprise target resolution and target frame rate, so that the transmission parameters of the video processing device can be adapted to the transmission parameters of the first video signal transmitted by the signal source end, and the target resolution and the target frame rate corresponding to the first video signal can be calculated based on the target time sequence parameters.
Illustratively, the parameter values of the target transmission parameters may be: 640×480P60, 800×600P60, 1024×768P60, 1280×720P60, or 1920×1080P60, a parameter value of 640×480P60 indicating a target resolution of the video signal, and a target frame rate of 60 frames/sec; a parameter value of 800×600p60 for the target transmission parameter means that the target resolution of the video signal is 800×600 and the target frame rate is 60 frames/sec; a parameter value of 1024×768P60 of the target transmission parameter means that the target resolution of the video signal is 1024×768 and the target frame rate is 60 frames/second; a parameter value of 1280×720P60 for the target transmission parameter indicates that the target resolution of the video signal is 1280×720 and the target frame rate is 60 frames/sec; a parameter value of 1920×1080P60 of the target transmission parameter means that the target resolution of the video signal is 1920×1080 and the target frame rate is 60 frames/second.
Specifically, in one implementation, the conversion module 110 may obtain a horizontal total pixel and a vertical total pixel, where the target timing parameters include: horizontal total pixels, vertical total pixels, a horizontal blanking time, and a vertical blanking time;
the determining method of the target resolution corresponding to the first video signal comprises the following steps:
Calculating the difference value between the horizontal total pixels and the line blanking time to obtain width data of the target resolution corresponding to the first video signal;
Calculating the difference value between the vertical total pixel and the vertical blanking time to obtain the height data of the target resolution corresponding to the first video signal;
the method for determining the target frame rate corresponding to the first video signal comprises the following steps:
Calculating the ratio of the pixel clock of the first video signal to the product of the horizontal total pixels and the vertical total pixels to obtain a target frame rate; the pixel clock of the first video signal is obtained by analyzing the first video signal by the conversion module.
The horizontal blanking time can be understood as the number of ineffective pixels which do not participate in imaging in the horizontal direction, and the vertical blanking time can be understood as the number of ineffective pixels which do not participate in imaging in the vertical direction, wherein the difference value between the horizontal total pixels and the horizontal blanking time is the horizontal effective pixels corresponding to the first video signal, namely the width data of the target resolution corresponding to the first video signal; the difference between the vertical total pixel and the vertical blanking time is the vertical effective pixel corresponding to the first video signal, i.e. the height data of the target resolution corresponding to the first video signal.
The converting module 110 analyzes the first video signal currently transmitted by the signal source end, and the obtaining the target timing parameter of the first video signal may include: horizontal total pixels, vertical total pixels, a horizontal blanking time, and a vertical blanking time of the first video signal; the first video signal is transmitted in a first video signal transmission time sequence, and the second video signal is transmitted in a second video signal transmission time sequence, wherein the first video signal is transmitted in a first video signal transmission time sequence; the difference between the horizontal total pixels and the line blanking time can be calculated to obtain real width data (horizontal total pixels) of the first video signal, i.e. width data of the target resolution corresponding to the first video signal, and the difference between the vertical total pixels and the line blanking time can be calculated to obtain real height data (vertical total pixels) of the first video signal, i.e. height data of the target resolution corresponding to the first video signal.
For example, in the above-described determination method of the target resolution, the width data of the obtained target resolution may be 640, and the height data of the obtained target resolution may be 480, and in this case, the target resolution is 640×480.
The conversion module can also analyze the first video signal currently transmitted by the signal source end to obtain a pixel clock of the first video signal, wherein the pixel clock can be obtained by calculation based on the horizontal total pixel and the vertical total pixel of the first video signal and the target frame rate, so that the target frame rate can be calculated based on the horizontal total pixel, the vertical total pixel and the pixel clock in the target time sequence parameter; the main control module may obtain the pixel clock, the horizontal total pixel and the vertical total pixel of the first video signal obtained by the conversion module, and calculate to obtain a target frame rate, for example: if the pixel clock of the first video signal is 124.4MHz, the horizontal total pixels are 1920, and the vertical total pixels are 1080, the frame rate of the first video signal is 124.4M/(1920×1080) =60.
It should be noted that, the blanking time in the timing is only a time when no image is transmitted, and there may be transmission of other signals in the blanking time, for example: control signals, audio signals, etc., to which the present application is not limited.
In another implementation, the conversion module 110 may directly obtain the effective width and effective height (i.e., the width data and the height data of the target resolution), the target timing parameters include: effective wide, effective high, line blanking time, and vertical blanking time;
At this time, the target resolution can be obtained directly, and of course, the horizontal total pixels and the vertical total pixels can be calculated according to the effective width and the effective height, and the line blanking time and the vertical blanking time, so that the subsequent frame rate can be calculated.
The target timing parameters include: width data of a target resolution, height data of the target resolution, a line blanking time, and a field blanking time;
the determining method of the target resolution corresponding to the first video signal comprises the following steps:
Determining width data of a target resolution and height data of the target resolution from the target time sequence parameters to obtain the target resolution corresponding to the first video signal;
the method for determining the target frame rate corresponding to the first video signal comprises the following steps:
calculating the sum of the width data of the target resolution and the line blanking time to obtain a horizontal total pixel corresponding to the first video signal;
calculating the sum of the height data of the target resolution and the vertical blanking time to obtain a vertical total pixel corresponding to the first video signal;
Calculating the ratio of the pixel clock of the first video signal to the product of the horizontal total pixels and the vertical total pixels to obtain a target frame rate; the pixel clock of the first video signal is obtained by analyzing the first video signal by the conversion module.
The conversion module can directly acquire the width data and the height data of the target resolution, and can directly determine the width data and the height data of the target resolution from the target time sequence parameters to obtain the target resolution corresponding to the first video signal.
The sum of the width data of the target resolution and the line blanking time can be calculated to obtain a horizontal total pixel, and the sum of the height data of the target resolution and the line blanking time can be calculated to obtain a vertical total pixel; thereby calculating a target frame rate based on the horizontal total pixels, the vertical total pixels, and the pixel clock; the main control module can read the pixel clock, the horizontal total pixels and the vertical total pixels of the first video signal obtained by the conversion module, and calculate the target frame rate.
Optionally, the master control module 120 performs timing configuration on the designated output port of the conversion module 110 and the designated input port of the master control module 120 based on the target transmission parameter, including:
Determining a standard time sequence parameter corresponding to the target transmission parameter based on the corresponding relation between the transmission parameter and the time sequence parameter;
And writing the standard time sequence parameters into an output register of the appointed output port of the conversion module and an input register of the appointed input port of the main control module respectively.
When the timing configuration is performed on the designated output port and the designated input port based on the target transmission parameter, firstly, a standard timing parameter corresponding to the target transmission parameter can be determined based on a corresponding relation between the transmission parameter and the timing parameter, and then the standard timing parameter is written into an output register of the designated output port of the conversion module and an input register of the designated input port of the main control module respectively so as to modify the timing of the output register of the designated output port and the timing of the input register of the designated input port into the timing represented by the standard timing parameter. The output register specifying the output port and the input register specifying the input port may be different registers or the same registers, and the present application is not particularly limited thereto.
For example, the master control module may determine a standard timing parameter corresponding to the target transmission parameter based on a correspondence between the transmission parameter and the timing parameter defined by the video electronic standard association VESA (Video Electronics Standards Association), where the determined standard timing parameter is a timing parameter corresponding to a video signal in a format supported by the master control module during transmission, and may include: a line synchronization signal (the level of which signals indicates the end of an old line by low to high, the start of a new line), a field synchronization signal (the level of which signals indicates the end of an old field by low to high, the start of a new field), a line transfer time (the time at which an image signal is transferred in a line), a field transfer time (the time at which an image signal is transferred in a field), a line blanking time, a field blanking time, and the like. For example: the correspondence between the transmission parameter and the timing parameter may include:
1280×1024P60 corresponds to the following timing parameters:
The effective width and height are respectively as follows: 1280×1024 (i.e., the width data of the target resolution is 1280 and the height data is 1024), the horizontal total pixel time=1688, the horizontal blanking time hor blanking time=408, the vertical total pixel time=1066, and the vertical blanking time ver blanking time=42;
1024×768p60 corresponds to the following timing parameters:
the effective width and height are respectively as follows: 1024×768 (i.e., the width data of the target resolution is 1024 and the height data is 768), the horizontal total pixel total time=1344, the horizontal blanking time hor blanking time=320, the vertical total pixel total time=806, and the vertical blanking time ver blanking time=38;
Taking 1280×1024P60 as an example of the target transmission parameter based on the above correspondence (i.e., the target resolution is 1280×1024 and the target frame rate is 60 frames/second in the target transmission parameter), the standard timing parameter corresponding to the determined target transmission parameter may include: the effective width and height are respectively as follows: 1280×1024 (i.e., the width data of the target resolution is 1280 and the height data is 1024), the horizontal total pixel time=1688, the horizontal blanking time hor blanking time=408, the vertical total pixel time=1066, and the vertical blanking time ver blanking time=42; in addition, taking 1024×768P60 as the target transmission parameter (i.e., the target resolution is 1024×768 and the target frame rate is 60 frames/second in the target transmission parameter), the standard timing parameters corresponding to the determined target transmission parameter may include: the effective width and height are respectively as follows: 1024×768 (i.e., the width data of the target resolution is 1024 and the height data is 768), the horizontal total pixel total time=1344, the horizontal blanking time hor blanking time=320, the vertical total pixel total time=806, and the vertical blanking time ver blanking time=38.
It should be emphasized that the above-mentioned correspondence relation between transmission parameters and timing parameters is merely an example, and should not be construed as limiting the present application.
It should be noted that, the target timing parameter is a timing parameter corresponding to a format of the first video signal currently transmitted by the signal source, and the standard timing parameter is a timing parameter corresponding to a format of the video signal supported by the main control module, for example: the signal source may transmit Video signals in HDMI or VGA (Video GRAPHICS ARRAY, a dedicated interface for standard output data) or Type-c or DP (high definition digital display interface) format, while the main control module supports Video signals in BT1120 or MIPI (Mobile Industry Processor Interface ) format, the main control module 120 may first obtain target transmission parameters of Video signals in HDMI or VGA or Type-c or DP format, determine standard timing parameters of Video signals in BT1120 or MIPI format based on the target transmission parameters, and write the target transmission parameters into an output register of a designated output port and an input register of a designated input port, so that the designated output port of the conversion module 110 may output Video signals in BT1120 or MIPI format that satisfy the target transmission parameters, and the main control module 120 may process Video signals in BT1120 or MIPI format that satisfy the target transmission parameters through the designated input port.
Specifically, the main control module 120 writes the standard timing parameters into an output register of a designated output port of the conversion module and an input register of a designated input port of the main control module, respectively, including:
Writing the standard time sequence parameters into an output register of a designated output port of the conversion module through an integrated circuit bus I2C in the video processing equipment;
And under the condition that the standard time sequence parameters are written into the output register, calling a conversion module driver in the main control module 120 to enable the conversion module driver to acquire the standard time sequence parameters written into the output register, and writing the acquired standard time sequence parameters into an input register of a designated input port of the main control module 120.
When the master control module 120 writes the standard time sequence parameters into the output register and the input register, the standard time sequence parameters can be written into the output register of the appointed output port of the conversion module through the integrated circuit bus I2C (Inter-INTEGRATED CIRCUIT) in the video processing equipment; after the standard time sequence parameter is written into the output register, the conversion module 110 can output a second video signal, the main control module 120 can call the conversion module driver therein, and the time sequence of the second video signal is transmitted to the main control module, that is, the conversion module driver acquires the standard time sequence parameter written in the output register, and then writes the acquired standard time sequence parameter into the input register of the designated input port of the main control module.
Of course, it should be noted that, the conversion module 110 does not output the second video signal, the main control module 120 may also call the conversion module driver, read the written standard timing parameter from the output register of the conversion module 110, and write the standard timing parameter into the input register of the designated input port of the main control module 120, which is reasonable.
It should be noted that the above manner of writing the standard timing parameters into the output register of the designated output port of the conversion module 110 and the input register of the designated input port of the main control module 120 is merely an example, and any manner of writing the standard timing parameters into the corresponding input register and input register is applicable to the present application, which is not limited thereto.
After the timing configuration of the designated output port of the conversion module 110 is completed, a second video signal in a format supported by the main control module and corresponding to the first video signal may be output through the designated output port, where the conversion module 110 outputs the second video signal corresponding to the first video signal through the designated output port according to the timing configured for the designated output port, including:
Obtaining an intermediate video signal corresponding to the first video signal according to a preset mode; wherein the predetermined means includes: in response to detecting that the format of the first video signal is not the signal format supported by the main control module 120, converting the format of the first video signal into the signal format supported by the main control module 120, and obtaining an intermediate video signal; or in response to detecting that the format of the first video signal is the signal format supported by the main control module 120, using the first video signal as an intermediate video signal;
And adjusting the transmission time sequence of the intermediate video signal based on the time sequence configured for the appointed output port to obtain a second video signal corresponding to the first video signal, and outputting the obtained second video signal through the appointed output port.
When outputting the second video signal corresponding to the first video signal through the designated output port according to the timing sequence configured for the designated output port, the conversion module 110 may first obtain the intermediate video signal corresponding to the first video signal according to a predetermined manner, where the predetermined manner is to convert the first video signal into a signal format supported by the main control module, so as to obtain the intermediate video signal, for example: if the format of the first video signal is not the signal format supported by the main control module, for example: the format of the first video signal is HDMI format, and the main control module supports signals of MIPI format, the format of the first video signal is required to be converted into the signal format supported by the main control module, namely the first video signal of HDMI format is converted into MIPI format, and an intermediate video signal is obtained; of course, if the format of the first video signal is the signal format supported by the main control module, for example: the format of the first video signal and the signal format supported by the main control module are both HDMI formats, so that the first video signal can be directly used as an intermediate video signal without format conversion. The conversion module can convert the first video signal into an intermediate video signal with a format supported by the main control module, and the conversion module can firstly determine the information with the format supported by the main control module from the main control module; or the main control module can actively transmit the information of the supported format to the conversion module; or manually configuring information of the format supported by the main control module in the conversion module, so that the conversion module can know the format of the video signal supported by the main control module and convert the first video signal into an intermediate video signal of the format supported by the main control module. In addition, the video content carried by the first video signal and the second video signal may be the same video content; of course, in some cases, in consideration of factors such as transmission efficiency or data volume, the conversion module may also perform predetermined image processing on the video frames of the first video signal, so as to obtain the second video signal, where the video content represented by the first video signal and the video content represented by the second video signal may differ, where the degree of difference between the video content represented by the first video signal and the video content represented by the second video signal is acceptable to the user, and the predetermined image processing may include, but is not limited to, one or more of image region capturing processing, scaling processing, and so on.
After obtaining the intermediate video signal in the signal format supported by the main control module 120, the transmission timing of the intermediate video signal may be adjusted based on the timing configured for the designated output port, so as to obtain a second video signal corresponding to the first video signal, in the format supported by the main control module and in the supported timing (the timing may be configured based on the standard timing parameter), and output the second video signal through the designated output port, so that the input port of the main control module may receive the second video signal and process the second video signal.
After the configuration of the timing sequence of the designated input port of the main control module 120 is completed, since the designated output port and the designated input port are configured according to the same timing sequence, the second video signal received through the designated input port can be received according to the timing sequence configured for the designated input port, and of course, the second video signal can be further processed, such as encoding, to obtain video data corresponding to the first video signal. The video data corresponding to the first video signal can be understood as initial image data, and the main control module can also perform post-processing such as noise reduction, scaling, splicing and the like on the video data corresponding to the first video signal.
It should be noted that, the signal source end and the video processing device are not limited to HDMI interface connection, and after the signal source end is connected to the video processing device by any connection or communication method, the scheme may be applied to the case that the first video signal transmitted by the signal source end is supported to be parsed by the conversion module of the video processing device. That is, on the premise that the conversion module of the video processing device can analyze the first video signal transmitted by the signal source terminal after the signal source terminal is connected with the video processing device, the scheme of the application is not limited by the signal format of the signal source terminal, the connection mode with the video processing device, and the like.
In addition, in some cases, even if the designated output port and the designated input port are configured in time sequence according to the target transmission parameter, the transmission parameter of the transmitted second video signal may exceed the upper limit of the video processing apparatus, and the main control module 120 is further configured to:
And outputting prompt information for indicating that the transmission parameter of the second video signal exceeds an upper limit when detecting that the transmission parameter of the received second video signal is greater than the maximum transmission parameter supported by the main control module 120.
The main control module 120 may further detect whether the transmission parameter of the second video signal is greater than the maximum transmission parameter supported by the main control module, and may further output a prompt message for indicating that the transmission parameter of the second video signal exceeds the upper limit, for example, when detecting that the transmission parameter of the second video signal is greater than the maximum transmission parameter supported by the main control module 120: the resolution of the second video signal exceeds the maximum resolution that can be supported by the main control module, and so on. For example, after the prompt information is output, the prompt information may be displayed at an output end (such as a display screen) of the main control module or the video processing device, and the prompt information may be an image and/or a text, etc., which is not limited in the present application.
It is emphasized that the "response … …" in the present application is not limited to the "response … …" case, and the subsequent steps are immediately performed or triggered, allowing a certain time delay therebetween, and should not be construed as limiting the present application.
In the technical scheme of the application, the related operations of acquisition, storage, use, processing, transmission, provision, disclosure and the like of the time sequence parameters and the transmission parameters are all performed under the condition that the user authorization is obtained.
The video processing equipment provided by the embodiment of the application comprises a conversion module and a main control module, wherein the conversion module can analyze a first video signal currently transmitted by a signal source end to obtain a target time sequence parameter of the first video signal; in order to enable the video processing equipment to be adapted to the butted signal source end, the main control module can read target time sequence parameters obtained by analysis of the conversion module, determine target transmission parameters corresponding to the first video signal based on the target time sequence parameters, and perform time sequence configuration on a designated output port of the conversion module for video signal transmission and a designated input port of the main control module through the target transmission parameters; after the time sequence configuration of the appointed output port is completed, the conversion module outputs a second video signal which corresponds to the first video signal and is obtained by processing the first video signal through the appointed output port according to the time sequence configured for the appointed output port; after the configuration of the time sequence of the designated input port is completed, the main control module may receive the second video signal through the designated input port according to the time sequence configured for the designated input port. The application can carry out time sequence configuration on the appointed output port for signal transmission of the conversion module and the appointed input port of the main control module based on the first video signal transmitted by the signal source end, so that the time sequence of the appointed output port for signal transmission and the appointed input port is matched with the time sequence of the first video signal transmitted by the signal source end, and the main control module can receive the second video signal corresponding to the first video signal through the appointed input port after the first video signal passes through the appointed output port and the appointed input port. Therefore, the video processing device can be adapted to the butted signal source end to process the video signal.
A video processing apparatus according to the present application will be described with reference to another embodiment.
As shown in fig. 2, the video processing device provided in the embodiment of the present application may process a video signal transmitted by a signal source end in HDMI, VGA, type-c, etc., where the video processing device includes a conversion module 210 and a main control module 220, and the signal source end includes: the HDMI signal source 230, the VGA signal source 240, and the Type-c signal source 250 (the above signal source is merely an example and not limited thereto), the conversion module 210 may perform format conversion on the video signal transmitted by the HDMI signal source 230, the VGA signal source 240, or the Type-c signal source 250, the signal after format conversion is a BT1120 or MIPI signal supported by the master control module, the conversion module transmits the BT1120 or MIPI signal after format conversion to the master control module, and the master control module may parse the BT1120 or MIPI signal to obtain corresponding video data, and then may encode or output and display the video data.
The video processing device may include one or more conversion modules, where each conversion module may be the same or different, and one conversion module may perform format conversion on video signals in one or more formats, for example: the conversion module with weaker conversion capability can perform format conversion on a video signal with one format, for example: the conversion module can convert the HDMI video signal into an MIPI video signal; the conversion module with stronger conversion capability can perform format conversion on video signals with multiple formats, for example: the conversion module supports the conversion of the video signal of the HDMI into the video signal of the MIPI, and simultaneously supports the conversion of the video signal of the DP (the signal source end can also comprise the DP signal source end) into the video signal of the MIPI, which is not limited by the application.
Specifically, in the application, the main control module reads the register of the conversion module through the I2C bus (the conversion module analyzes the first video signal currently transmitted by any signal source end to obtain the target time sequence parameter of the first video signal, and the target time sequence parameter of the first video signal is stored in the register of the conversion module), so as to identify the target time sequence parameter of the first video signal currently transmitted. In one implementation, if the conversion module can analyze and obtain a horizontal total pixel and a vertical total pixel of the first video signal, the target timing parameter of the first video signal includes information such as a horizontal total pixel (hor total time), a vertical total pixel (ver total time),Hor Sync Time,Hor Front Porch,Hor Back Porch,Ver Sync Time,Ver Front Forch,Ver Back Time, and a pixel clock; wherein Hor Sync Time is horizontal synchronization Time, hor Front Porch is horizontal synchronization Time, hor Back Porch is horizontal synchronization Time, VER SYNC TIME is vertical synchronization Time, ver Front Forch is vertical synchronization Time, ver Back Time is vertical synchronization Time, hor Sync time+hor Front porch+hor Back Porch is line blanking Time, VER SYNC TIME + Ver Front Forch +Ver Back Time is field blanking Time.
According to the target time sequence parameter, calculating the effective width and height, namely calculating the target resolution, wherein the calculation formula is as follows:
effective width (width, i.e., width data of target resolution) =hor total Time-Hor Sync Time-Hor Front Porch-Hor Back Porch;
High-effective (height, i.e., height data of target resolution) =ver total Time-VER SYNC TIME-Ver Front Forch-Ver Back Time;
In another implementation manner, if the conversion module can analyze the effective width and the effective height of the first video signal, the target timing parameter of the first video signal includes information such as effective width, effective height, hor Sync Time, hor Front Porch, hor Back Porch, VER SYNC TIME, ver Front Forch, ver Back Time, and pixel clock.
At this time, the effective width and the effective height in the target time sequence parameters can be directly determined as the width data and the height data of the target resolution, and the target resolution can be directly obtained; of course, the horizontal total pixel and the vertical total pixel of the first video signal may also be calculated according to the target timing parameter, so as to calculate the subsequent frame rate, where the calculation formula is as follows:
Horizontal total pixel (Hor total Time) =hor Sync time+hor Front porch+hor Back porch+width;
Vertical total pixel (Ver total Time) = VER SYNC TIME + Ver Front Forch +ver Back time+height;
after the horizontal total pixels and the vertical total pixels are obtained, frame rate information can be calculated according to the horizontal total pixels, the vertical total pixels and pixel clocks, namely, a target frame rate is calculated, wherein the calculation formula is as follows:
frame rate (fps) = (pixel clock)/(horizontal total pixel total time x vertical total pixel ver total time);
And determining corresponding standard time sequence parameters according to the obtained target resolution and target frame rate, and configuring the time sequence of the appointed output port of the conversion module through the I2C bus interface, namely configuring the time sequence of the appointed output port of the conversion module according to the BT1120 or MIPI format signals supported by the main control module.
The master control module calls a conversion module driver program in the master control module, transmits second video signal time sequence information (namely time sequence configured by a designated output port of the conversion module) to the master control module, configures the time sequence of a designated input port of the master control module according to a BT1120 or MIPI format signal supported by the master control module according to the time sequence information, realizes signal access through the designated input port, and performs processing such as coding or display.
When the main control module recognizes that the resolution time sequence input currently exceeds the maximum capability of the main control module, an OSD (on-SCREEN DISPLAY, screen menu adjusting mode) or a picture prompt with the resolution exceeding the limit is overlapped at the main control code or the main control output end, and at the moment, the accessed video signal may not be normally processed; when the resolution time sequence of the video signal transmitted by the signal source end does not exceed the maximum capability of the main control module, the main control module can process any video signal through time sequence configuration of the appointed output port of the conversion module and the appointed input port of the main control module.
The application can adaptively read the resolution time sequence of the video signal accessed by the signal source end, and obtain effective transmission parameters including information such as resolution, frame rate and the like through formula calculation; the time sequence of the appointed output port of the conversion module and the appointed input port of the main control module is configured in a self-adaptive mode according to the transmission parameters, so that the conversion of video signals and the access to the main control module are realized, and the post-processing such as coding or output is performed; the problem that in the traditional scheme, only according to the total line field, and by comparing with the VESA resolution list, the video signals with resolution which are not enumerated can not be accessed by performing resolution enumeration is avoided.
The application is a scheme of full-self-adaptive access and coding for all standard and non-standard resolution which does not exceed the access capability of a main control module aiming at video signals of HDMI, VGA, type-c and other interfaces, can avoid the problem that the special resolution of some special signal source terminals on the market cannot be accessed for coding when being output to video processing equipment and other equipment, and effectively improves the competitiveness of products.
The embodiment of the application also provides a video signal transmission method, as shown in fig. 3, comprising the following steps:
S301: reading a target time sequence parameter of a first video signal currently transmitted by a signal source terminal;
the target time sequence parameter is obtained by analyzing a first video signal currently transmitted by the signal source terminal under the condition that the signal source terminal transmits the video signal;
S302: determining a target transmission parameter of the first video signal based on the target timing parameter;
s303: performing time sequence configuration on the appointed output port and the appointed input port based on the target transmission parameters;
The specified output port and the specified input port are ports which are connected in the video processing equipment and used for video signal transmission;
S304: outputting a second video signal corresponding to the first video signal to a designated input port through the designated output port according to a timing sequence configured for the designated output port;
the second video signal corresponding to the first video signal is a video signal which is obtained by processing the first video signal and is used for being transmitted to a designated input port;
s305: the second video signal is received at a timing configured for the specified input port.
The method for transmitting the frequency signal can be applied to a video processing device, and the specific device form of the video processing device can be referred to the related description in the above embodiment, which is not described herein.
The video signal transmission method provided by the embodiment of the application can read the target time sequence parameter of the first identification signal transmitted currently, determine the target transmission parameter corresponding to the first video signal based on the target time sequence parameter, and perform time sequence configuration on the appointed output port and the appointed input port for video signal transmission through the target transmission parameter; after the time sequence configuration of the designated output port is completed, outputting a second video signal corresponding to the first video signal to the designated input port through the designated output port; after the designated input port timing configuration is completed, the second video signal is received in accordance with the timing configured for the designated input port. The application can carry out time sequence configuration on the appointed output port and the appointed input port used for signal transmission based on the first video signal transmitted by the signal source end, so that the time sequence of the appointed output port and the appointed input port is matched with the time sequence of the first video signal transmitted by the signal source end, and the first video signal can successfully receive the second video signal after passing through the appointed output port and the appointed input port. Therefore, the video processing device can be adapted to the butted signal source end to process the video signal.
Optionally, the determining, based on the target timing parameter, a target transmission parameter of the first video signal includes:
and determining a target resolution and a target frame rate corresponding to the first video signal based on the target time sequence parameter to obtain a target transmission parameter corresponding to the first video signal.
Optionally, the target timing parameters include: horizontal total pixels, vertical total pixels, a horizontal blanking time, and a vertical blanking time;
the determining method of the target resolution corresponding to the first video signal comprises the following steps:
Calculating the difference value between the horizontal total pixels and the line blanking time to obtain width data of the target resolution corresponding to the first video signal;
Calculating the difference value between the vertical total pixel and the vertical blanking time to obtain the height data of the target resolution corresponding to the first video signal;
the method for determining the target frame rate corresponding to the first video signal comprises the following steps:
Calculating the ratio of the pixel clock of the first video signal to the product of the horizontal total pixels and the vertical total pixels to obtain a target frame rate; the pixel clock of the first video signal is obtained by analyzing the first video signal by the conversion module.
Optionally, the target timing parameters include: width data of a target resolution, height data of the target resolution, a line blanking time, and a field blanking time;
the determining method of the target resolution corresponding to the first video signal comprises the following steps:
Determining width data of a target resolution and height data of the target resolution from the target time sequence parameters to obtain the target resolution corresponding to the first video signal;
the method for determining the target frame rate corresponding to the first video signal comprises the following steps:
calculating the sum of the width data of the target resolution and the line blanking time to obtain a horizontal total pixel corresponding to the first video signal;
calculating the sum of the height data of the target resolution and the vertical blanking time to obtain a vertical total pixel corresponding to the first video signal;
Calculating the ratio of the pixel clock of the first video signal to the product of the horizontal total pixels and the vertical total pixels to obtain a target frame rate; the pixel clock of the first video signal is obtained by analyzing the first video signal by the conversion module.
Optionally, the performing timing configuration on the designated output port and the designated input port based on the target transmission parameter includes:
Determining a standard time sequence parameter corresponding to the target transmission parameter based on the corresponding relation between the transmission parameter and the time sequence parameter;
and writing the standard time sequence parameters into an output register of the appointed output port and an input register of the appointed input port respectively.
Optionally, writing the standard timing parameters into the output register of the designated output port and the input register of the designated input port respectively includes:
writing the standard time sequence parameters into an output register of a designated output port through an integrated circuit bus I2C in the video processing equipment;
And under the condition that the standard time sequence parameters are written into the output register, calling a target driver program to enable the target driver program to acquire the standard time sequence parameters written into the output register, and writing the acquired standard time sequence parameters into an input register of a designated input port.
Optionally, the method further comprises:
And outputting prompt information for indicating that the transmission parameter of the second video signal exceeds the upper limit under the condition that the received transmission parameter of the second video signal is detected to be larger than the maximum transmission parameter supported by the video processing equipment.
The relevant description of each step in the video transmission method can be referred to the corresponding content in the embodiment of the video processing device, which is not described herein.
The embodiment of the application also provides an electronic device, as shown in fig. 4, including:
A memory 401 for storing a computer program;
A processor 402, configured to implement any of the video signal transmission methods when executing the program stored in the memory 401.
And the electronic device may further comprise a communication bus and/or a communication interface, through which the processor 402, the communication interface, and the memory 401 communicate with each other.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a Solid state disk (Solid STATE DISK, SSD), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the method embodiments, since they are substantially similar to the device embodiments of the video processing device, the description is relatively simple, and reference is made to the partial description of the method embodiments for relevant points.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims (16)
1. The video processing device is characterized by comprising a conversion module and a main control module;
The conversion module is used for responding to the signal source terminal to transmit video signals, analyzing a first video signal currently transmitted by the signal source terminal and obtaining target time sequence parameters of the first video signal;
The main control module is used for reading the target time sequence parameter obtained by the analysis of the conversion module, determining a target transmission parameter of the first video signal based on the target time sequence parameter, and performing time sequence configuration on a designated output port of the conversion module and a designated input port of the main control module based on the target transmission parameter; the specified output port and the specified input port are connected and are used for video signal transmission;
The conversion module is further configured to output a second video signal corresponding to the first video signal through the specified output port according to the configured time sequence for the specified output port in response to completion of the time sequence configuration of the specified output port; the second video signal corresponding to the first video signal is a video signal which is obtained by processing the first video signal by the conversion module and is used for being transmitted to the main control module;
the main control module is further configured to receive the second video signal through the designated input port according to the timing sequence configured for the designated input port.
2. The video processing device of claim 1, wherein the master control module determining a target transmission parameter of the first video signal based on the target timing parameter comprises:
and determining a target resolution and a target frame rate corresponding to the first video signal based on the target time sequence parameter to obtain a target transmission parameter of the first video signal.
3. The video processing apparatus according to claim 2, wherein the target timing parameters include: horizontal total pixels, vertical total pixels, a horizontal blanking time, and a vertical blanking time;
the determining method of the target resolution corresponding to the first video signal comprises the following steps:
Calculating the difference value between the horizontal total pixels and the line blanking time to obtain width data of the target resolution corresponding to the first video signal;
Calculating the difference value between the vertical total pixel and the vertical blanking time to obtain the height data of the target resolution corresponding to the first video signal;
the method for determining the target frame rate corresponding to the first video signal comprises the following steps:
Calculating the ratio of the pixel clock of the first video signal to the product of the horizontal total pixels and the vertical total pixels to obtain a target frame rate; the pixel clock of the first video signal is obtained by analyzing the first video signal by the conversion module.
4. The video processing apparatus according to claim 2, wherein the target timing parameters include: width data of a target resolution, height data of the target resolution, a line blanking time, and a field blanking time;
the determining method of the target resolution corresponding to the first video signal comprises the following steps:
Determining width data of a target resolution and height data of the target resolution from the target time sequence parameters to obtain the target resolution corresponding to the first video signal;
the method for determining the target frame rate corresponding to the first video signal comprises the following steps:
calculating the sum of the width data of the target resolution and the line blanking time to obtain a horizontal total pixel corresponding to the first video signal;
calculating the sum of the height data of the target resolution and the vertical blanking time to obtain a vertical total pixel corresponding to the first video signal;
Calculating the ratio of the pixel clock of the first video signal to the product of the horizontal total pixels and the vertical total pixels to obtain a target frame rate; the pixel clock of the first video signal is obtained by analyzing the first video signal by the conversion module.
5. The video processing apparatus according to claim 1 or 2, wherein the main control module time-sequentially configures a designated output port of the conversion module and a designated input port of the main control module based on the target transmission parameter, comprising:
Determining a standard time sequence parameter corresponding to the target transmission parameter based on the corresponding relation between the transmission parameter and the time sequence parameter;
And writing the standard time sequence parameters into an output register of the appointed output port of the conversion module and an input register of the appointed input port of the main control module respectively.
6. The video processing apparatus according to claim 5, wherein the main control module writes the standard timing parameters to an output register of a designated output port of the conversion module and an input register of a designated input port of the main control module, respectively, comprising:
Writing the standard time sequence parameters into an output register of a designated output port of the conversion module through an integrated circuit bus I2C in the video processing equipment;
And under the condition that the standard time sequence parameters are written into the output register, calling a conversion module driver in the main control module to enable the conversion module driver to acquire the standard time sequence parameters written into the output register, and writing the acquired standard time sequence parameters into an input register of an appointed input port of the main control module.
7. The video processing apparatus according to claim 1 or 2, wherein the conversion module outputs the second video signal corresponding to the first video signal through the specified output port in accordance with the timing configured for the specified output port, comprising:
Obtaining an intermediate video signal corresponding to the first video signal according to a preset mode; wherein the predetermined means includes: in response to detecting that the format of the first video signal is not the signal format supported by the main control module, converting the format of the first video signal into the signal format supported by the main control module to obtain an intermediate video signal; or in response to detecting that the format of the first video signal is the signal format supported by the main control module, taking the first video signal as an intermediate video signal;
And adjusting the transmission time sequence of the intermediate video signal based on the time sequence configured for the appointed output port to obtain a second video signal corresponding to the first video signal, and outputting the obtained second video signal through the appointed output port.
8. The video processing device of claim 1, wherein the master control module is further configured to:
and outputting prompt information for indicating that the transmission parameter of the second video signal exceeds the upper limit under the condition that the received transmission parameter of the second video signal is detected to be larger than the maximum transmission parameter supported by the main control module.
9. A video signal transmission method, the method comprising:
Reading a target time sequence parameter of a first video signal currently transmitted by a signal source terminal; the target time sequence parameter is obtained by analyzing a first video signal currently transmitted by the signal source terminal under the condition that the signal source terminal transmits the video signal;
determining a target transmission parameter of the first video signal based on the target timing parameter;
Performing time sequence configuration on the appointed output port and the appointed input port based on the target transmission parameters; the specified output port and the specified input port are ports which are connected in the video processing equipment and used for video signal transmission;
Outputting a second video signal corresponding to the first video signal to a designated input port through the designated output port according to a timing sequence configured for the designated output port; the second video signal corresponding to the first video signal is a video signal which is obtained by processing the first video signal and is used for being transmitted to a designated input port;
The second video signal is received at a timing configured for the specified input port.
10. The method of claim 9, wherein the determining the target transmission parameter of the first video signal based on the target timing parameter comprises:
and determining a target resolution and a target frame rate corresponding to the first video signal based on the target time sequence parameter to obtain a target transmission parameter corresponding to the first video signal.
11. The method of claim 10, wherein the target timing parameters comprise: horizontal total pixels, vertical total pixels, a horizontal blanking time, and a vertical blanking time;
the determining method of the target resolution corresponding to the first video signal comprises the following steps:
Calculating the difference value between the horizontal total pixels and the line blanking time to obtain width data of the target resolution corresponding to the first video signal;
Calculating the difference value between the vertical total pixel and the vertical blanking time to obtain the height data of the target resolution corresponding to the first video signal;
the method for determining the target frame rate corresponding to the first video signal comprises the following steps:
Calculating the ratio of the pixel clock of the first video signal to the product of the horizontal total pixels and the vertical total pixels to obtain a target frame rate; the pixel clock of the first video signal is obtained by analyzing the first video signal by the conversion module.
12. The method of claim 10, wherein the target timing parameters comprise: width data of a target resolution, height data of the target resolution, a line blanking time, and a field blanking time;
the determining method of the target resolution corresponding to the first video signal comprises the following steps:
Determining width data of a target resolution and height data of the target resolution from the target time sequence parameters to obtain the target resolution corresponding to the first video signal;
the method for determining the target frame rate corresponding to the first video signal comprises the following steps:
calculating the sum of the width data of the target resolution and the line blanking time to obtain a horizontal total pixel corresponding to the first video signal;
calculating the sum of the height data of the target resolution and the vertical blanking time to obtain a vertical total pixel corresponding to the first video signal;
Calculating the ratio of the pixel clock of the first video signal to the product of the horizontal total pixels and the vertical total pixels to obtain a target frame rate; the pixel clock of the first video signal is obtained by analyzing the first video signal by the conversion module.
13. The method according to any one of claims 9-12, wherein the timing configuration of the designated output port and the designated input port based on the target transmission parameter comprises:
Determining a standard time sequence parameter corresponding to the target transmission parameter based on the corresponding relation between the transmission parameter and the time sequence parameter;
and writing the standard time sequence parameters into an output register of the appointed output port and an input register of the appointed input port respectively.
14. The method of claim 13, wherein writing the standard timing parameters to the output register of the designated output port and the input register of the designated input port, respectively, comprises:
writing the standard time sequence parameters into an output register of a designated output port through an integrated circuit bus I2C in the video processing equipment;
And under the condition that the standard time sequence parameters are written into the output register, calling a target driver program to enable the target driver program to acquire the standard time sequence parameters written into the output register, and writing the acquired standard time sequence parameters into an input register of a designated input port.
15. The method according to claim 9, wherein the method further comprises:
And outputting prompt information for indicating that the transmission parameter of the second video signal exceeds the upper limit under the condition that the received transmission parameter of the second video signal is detected to be larger than the maximum transmission parameter supported by the video processing equipment.
16. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the method of any one of claims 9-15 when executing a program stored in a memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411139889.1A CN118678007A (en) | 2024-08-19 | 2024-08-19 | Video processing equipment and video signal transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411139889.1A CN118678007A (en) | 2024-08-19 | 2024-08-19 | Video processing equipment and video signal transmission method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118678007A true CN118678007A (en) | 2024-09-20 |
Family
ID=92732703
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411139889.1A Pending CN118678007A (en) | 2024-08-19 | 2024-08-19 | Video processing equipment and video signal transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118678007A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040095508A1 (en) * | 2002-08-30 | 2004-05-20 | Kazunori Chida | Video signal processing apparatus and integrated circuit |
US20160021326A1 (en) * | 2013-12-31 | 2016-01-21 | Boe Technology Group Co., Ltd. | Ultra high definition display device and video signal converting method |
CN110536629A (en) * | 2017-03-31 | 2019-12-03 | 索尼公司 | Operative image processing equipment, image processing method and surgery systems |
CN113612938A (en) * | 2021-08-24 | 2021-11-05 | 中国电子科技集团公司第五十八研究所 | Multi-type adaptive resolution image conversion method and device |
WO2023045921A1 (en) * | 2021-09-24 | 2023-03-30 | 维沃移动通信有限公司 | Display method and apparatus, and electronic device |
-
2024
- 2024-08-19 CN CN202411139889.1A patent/CN118678007A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040095508A1 (en) * | 2002-08-30 | 2004-05-20 | Kazunori Chida | Video signal processing apparatus and integrated circuit |
US20160021326A1 (en) * | 2013-12-31 | 2016-01-21 | Boe Technology Group Co., Ltd. | Ultra high definition display device and video signal converting method |
CN110536629A (en) * | 2017-03-31 | 2019-12-03 | 索尼公司 | Operative image processing equipment, image processing method and surgery systems |
CN113612938A (en) * | 2021-08-24 | 2021-11-05 | 中国电子科技集团公司第五十八研究所 | Multi-type adaptive resolution image conversion method and device |
WO2023045921A1 (en) * | 2021-09-24 | 2023-03-30 | 维沃移动通信有限公司 | Display method and apparatus, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8269899B2 (en) | Electronic device, method for responding to message, and program | |
US9894310B2 (en) | Image transfer apparatus | |
JP2001103491A (en) | Transmitter, receiver and signal transmission system using them | |
US20180061365A1 (en) | Display apparatus and method of executing calibration therein | |
US20140270694A1 (en) | Communication apparatus, control method, and computer-readable recording medium | |
US20050041960A1 (en) | DVD player that sets optimal display environment and operating method thereof | |
US20130308015A1 (en) | Transmitting apparatus | |
US8514330B2 (en) | Communication apparatus and control method | |
EP4064266A1 (en) | Compatibility promotion method, storage medium, device and system for hdmi | |
US20220148532A1 (en) | Signal transmission device, dongle device and adaptor cable | |
CN113612938A (en) | Multi-type adaptive resolution image conversion method and device | |
US8810730B2 (en) | Receiving device for audio-video system | |
JP3678187B2 (en) | Television receiver | |
TW201946430A (en) | Video signal conversion device and method thereof | |
CN118678007A (en) | Video processing equipment and video signal transmission method | |
CN112367556A (en) | Method, device and system for automatically adjusting output picture of signal source | |
CN111416979B (en) | Self-adaptive decoding method and device | |
CN109922366B (en) | Equipment parameter adjusting method, device, equipment and medium | |
US11057587B2 (en) | Compositing video signals and stripping composite video signal | |
CN113691803A (en) | Method, device, equipment and medium for testing audio and video interface function | |
US20080084502A1 (en) | Method and apparatus for transmitting/receiving data | |
CN118660126A (en) | Video processing equipment and processing method for video signals | |
CN117915051B (en) | Video monitoring circuit, vehicle-mounted equipment and signal switching method | |
US11849156B2 (en) | Data sharing method and data sharing system capable of changing hardware registration identification code | |
CN113452933B (en) | Video signal conversion method and display device |
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 |