Signal processing method, signal processing system, chip, storage medium and device
By writing color mark bits before output of row data and performing combined output in the signal processing system of the image forming device, the problem of misjudgment caused by interference during scanning data transmission is solved, and the image quality of the image forming device is improved and User experience.
Patent Information
- Application Number
- CN202411143242.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-26
AI Technical Summary
In the prior art, the image forming device encounters extreme interference during scanning data transmission, such as electrostatic discharge or rapid electrical transients, which may lead to misjudgment of the line head, which may lead to mismatch in the line data, thereby causing the line data to be transmitted to the wrong cache, resulting in color mismatch, and affecting User experience.
When the current scan mode is the first scan mode, the color flag bit is written before the row data is output, and the row data and color flag bits are combined to output it in order to better identify the row header and avoid the transmission of the row data to the wrong cache.
By adding color flags before line data output, the real-time color information judgment mechanism of the signal processing system is improved, avoiding the transmission of line data to the wrong cache, and ensuring image quality and user experience.
Smart Images

Figure CN119031082A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image forming technology, and in particular to a signal processing method, a signal processing system, a chip, a storage medium and a device. Background Art
[0002] In the prior art, image forming devices such as printers and copiers usually use CMOS image sensors (CIS) to scan images to obtain image data. When the CMOS image sensor scans, it receives an internal line synchronization signal (Line start, LS). The internal line synchronization signal is used as a line head. The three-color LED lights are exposed alternately in a cycle according to the color sequence, such as red→green→blue, and scanned line by line. Then, according to the principle of three primary colors, the image data obtained by the exposure of the LED lights is resynthesized to restore the electronic scanned image of the image. However, during the scanning data transmission process, if extreme interference is encountered, such as electrostatic discharge (ESD) or electrical fast transient (EFT), it may cause misjudgment of the line head, resulting in the subsequent line data (Line Data) being transmitted to the wrong cache, so that the colors do not match when the three primary colors are synthesized, and the scanned image does not match the original image, affecting the user experience. Summary of the invention
[0003] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a signal processing method, a signal processing system, a chip, a storage medium and a device, which are used to solve the problem that interference encountered during the scanning data transmission process leads to misjudgment of the line head, which in turn causes the subsequent line data to be transmitted to the wrong cache, resulting in color mismatch when the three primary colors are synthesized, and the scanned image does not match the original image, affecting the user experience.
[0004] According to a first aspect of the present invention, there is provided a signal processing method, comprising:
[0005] Determine the current scanning mode;
[0006] If the current scanning mode is the first scanning mode, a color flag is written before the row data is output;
[0007] The row data and the color flag are combined and output.
[0008] The signal processing method of the present invention combines row data and color flag bits before outputting the row data when the current scanning mode is the first scanning mode, so as to better identify the row head and avoid the row data being transmitted to the wrong cache, thereby ensuring the quality of the image and the user experience.
[0009] In some implementations, writing a color flag bit before outputting row data includes:
[0010] Get the color data of the current row;
[0011] According to the color data of the current row, before the row data of the current row is output, the color flag is written into the row data of the current row.
[0012] In some implementations, writing the color flag bit into the row data of the current row before outputting the row data of the current row according to the color data of the current row includes:
[0013] If the color data of the current row is the first color data, then before the row data of the current row is output, the first color information is written into the color flag;
[0014] If the color data of the current row is the second color data, the second color information is written into the color flag before the row data of the current row is output;
[0015] If the color data of the current row is the third color data, the third color information is written into the color flag before the row data of the current row is output.
[0016] In some implementations, writing a color flag bit before outputting row data includes:
[0017] Get the color data of the current row;
[0018] According to the color data of the current row, before the row data of the next row is output, the color flag is written into the row data of the next row.
[0019] In some implementations, writing the color flag bit into the row data of the next row before outputting the row data of the next row according to the color data of the current row includes:
[0020] Determine the color data corresponding to the next row according to the color data of the current row;
[0021] According to the color data corresponding to the next row, before the row data of the next row is output, the color flag is written into the row data of the next row.
[0022] In some implementations, determining color data corresponding to a next row according to the color data of the current row includes:
[0023] If the color data of the current row is the first color data, the color data corresponding to the next row is the second color data;
[0024] If the color data of the current row is the second color data, the color data corresponding to the next row is the third color data;
[0025] If the color data of the current row is the third color data, the color data corresponding to the next row is the first color data.
[0026] In some implementations, writing the color flag bit into the row data of the next row before outputting the row data of the next row according to the color data corresponding to the next row includes:
[0027] If the color data of the next line is the second color data, the second color information is written into the color flag before the line data of the next line is output;
[0028] If the color data of the next line is the third color data, the third color information is written into the color flag before the line data of the next line is output;
[0029] If the color data of the next line is the first color data, the first color information is written into the color flag before the line data of the next line is output.
[0030] In some implementations, the color flag is represented according to a preset representation format.
[0031] In some embodiments, the method further comprises:
[0032] If the current scanning mode is not the first scanning mode, the row data is directly outputted.
[0033] According to a second aspect of the present invention, a signal processing system is provided, the signal processing system is used to perform the above-mentioned signal processing method, comprising:
[0034] A scanning mode determination module, the scanning mode determination module is used to determine the current scanning mode;
[0035] A color flag writing module, the color flag writing module is used to write a color flag before outputting the row data when it is determined that the current scanning mode is the first scanning mode;
[0036] A data combination output module is used to combine and output the row data and the color flag.
[0037] According to a third aspect of the present invention, a chip is provided, wherein the chip is configured to execute the above-mentioned signal processing method.
[0038] According to a fourth aspect of the present invention, there is provided an image forming apparatus, comprising:
[0039] at least one processor; and
[0040] a memory communicatively connected to the at least one processor; wherein,
[0041] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the above-mentioned signal processing method.
[0042] According to a fifth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the above-mentioned signal processing method when executed by a processor.
[0043] Compared with the prior art, the signal processing method, signal processing system, chip, storage medium and device of the present invention, when the current scanning mode is the first scanning mode, combine the row data and the color flag before outputting the row data, for example, combine the row data and the color flag for output under the low voltage differential (LVDS) data output mode, add the exposure color information to the color flag, so that the signal processing system adds a real-time judgment mechanism for color information, avoids the row data from being transmitted to the wrong cache, thereby ensuring the quality of the image and the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of the structure of a signal processing system according to an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of the structure of an analog front-end chip according to an embodiment of the present invention;
[0046] Figure 3 A schematic structural diagram of a signal processing system according to another embodiment of the present invention;
[0047] Figure 4 It is a schematic structural diagram of an analog front-end chip according to another embodiment of the present invention;
[0048] Figure 5 A flowchart of a signal processing method according to an embodiment of the present invention;
[0049] Figure 6 This is a timing diagram of image sensor control in a first scanning mode by a scanning timing control unit according to one embodiment of the present invention;
[0050] Figure 7 It is a flow chart of a scanning timing control unit in a first scanning mode according to an embodiment of the present invention;
[0051] Figure 8 A specific flow chart of a scanning timing control unit in a first scanning mode according to an embodiment of the present invention;
[0052] Fig. 9 A flowchart of a lighting cycle control generated by a counter in a first scanning mode according to an embodiment of the present invention;
[0053] Fig.10 A data flow chart of color scanned image data output from an analog front-end chip to a main controller according to an embodiment of the present invention;
[0054] Fig.11 It is a flow chart of a scanning timing control unit in a second scanning mode according to an embodiment of the present invention;
[0055] Fig.12 A first specific flow chart of a scanning timing control unit in a second scanning mode according to an embodiment of the present invention;
[0056] Fig.13 A timing diagram of image sensor control in a second scanning mode by a scanning timing control unit according to an embodiment of the present invention;
[0057] Fig.14 A second specific flow chart of a scanning timing control unit in a second scanning mode according to an embodiment of the present invention;
[0058] Fig.15 A flowchart of a signal processing method according to another embodiment of the present invention;
[0059] Fig.16 A schematic diagram of status flag information of a register according to another embodiment of the present invention;
[0060] Fig.17 A first flow chart of writing a color flag before outputting row data according to another embodiment of the present invention;
[0061] Fig.18 A flowchart of writing a color flag bit before outputting row data according to color data of the current row according to another embodiment of the present invention;
[0062] Fig.19 A second flow chart of writing a color flag before outputting row data according to another embodiment of the present invention;
[0063] Fig. 20 It is a flowchart of writing a color flag bit before outputting row data of the next row according to the color data of the current row according to another embodiment of the present invention;
[0064] Fig.21A flowchart of determining color data corresponding to a next row according to color data of a current row according to another embodiment of the present invention;
[0065] Fig. 22 It is a flowchart of writing a color flag bit before outputting row data of a next row according to color data corresponding to the next row according to another embodiment of the present invention;
[0066] Fig.23 A schematic diagram of a module of a signal processing system according to another embodiment of the present invention
[0067] Fig.24 FIG. 1 is a schematic structural diagram of an image forming apparatus according to an embodiment of the present invention. DETAILED DESCRIPTION
[0068] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0069] Usually, the R / G / B LED lighting timing of the contact image sensor (CIS) and the analog signal output control of the image sensor are independently completed by the system on chip (SoC), and the analog front end chip (AFE) is only responsible for biasing, amplifying and converting the analog signal of the image sensor into a digital signal and outputting it to the system on chip for image processing.
[0070] However, this method requires the use of control resources of the on-chip system, and since electromagnetic interference (EMI) may exist during the long-distance transmission process, the signal transmission may be inaccurate.
[0071] In order to solve the above problems, an embodiment of the present invention provides a signal processing system, such as Figure 1 and Figure 2 As shown, the signal processing system includes a main controller 10, a chip 20 and an image sensor 30 at the image forming device end, wherein a scan timing control unit 21 is integrated inside the chip 20. Exemplarily, the main controller 10 can be a system on chip, the chip 20 can be an analog front-end chip, and the scan timing control unit 21 can be a timing generator (Timing Generator, TG). The main controller 10 can configure the registers of the scan timing control unit 21 through an SPI (Serial Peripheral Interface) interface to generate several groups of specific signal pulses for scan timing control of the image sensor 30.
[0072] The main controller 10 transmits the scanning line synchronization signal XLSYNC and the main clock signal MCLK required for the chip 20 to work to the chip 20 through the SPI interface; the scanning timing control unit 21 of the chip 20 triggers the generation of the internal line synchronization signal LS (Line start) when receiving the scanning line synchronization signal XLSYNC. At the same time, after generating the internal line synchronization signal LS, the scanning timing control unit 21 delays the triggering and generates the control signal, wherein the control signal includes the main clock signal CIS_CLK, the pulse start signal SP and the lighting signal LEDx_on required for the image sensor 30 to work; since the image sensor 30 has three colors of LED lights, R / G / B LED, correspondingly, the lighting signal LEDx_on for lighting the three-color LED lights also has three lighting signals. For ease of understanding, the R LED light is the first color light, the G LED light is the second color light, and the B LED light is the second color light. Taking the LED lamp as a third color lamp as an example, the lighting signal LEDx_on includes the corresponding first lighting signal LED1_on, second lighting signal LED2_on and third lighting signal LED3_on in sequence. When it is necessary to stop lighting (i.e., turn off) the three-color LED lamp, the scanning timing control unit 21 of the chip 20 can stop generating the corresponding lighting signal LEDx_on to turn off the corresponding color lamp, or generate the corresponding off signal LEDx_off (including LED1_off, LED2_off and LED3_off) to turn off the corresponding color lamp.
[0073] The image sensor 30 transmits the analog signal of the image data obtained by scanning to the chip 20 for data processing (such as biasing, amplifying and AD converting the analog signal into a digital signal). The chip 20 converts the analog signal of the image data into a digital signal of the image data and transmits it to the main controller 10 through the data bus. The main controller 10 forms a scanned image according to the digital signal of the image data. Thus, the scanning timing control and the scanning data processing do not require the control resources of the system on chip (SOC). The system on chip only needs to receive the image data transmitted back, which can save the IO resources and system resources of the system on chip. In addition, since the high-speed clock signal is only transmitted within the chip 20, the EMI risk caused by long-distance transmission is avoided, which is conducive to improving the accuracy of scanning control.
[0074] In the signal processing system, the difference between the image sensor 30 (CIS) and the charge-coupled device (CCD) is that the former has a flat design, which makes the timing control simpler, lower cost and more space-saving, but the lighting control is different from that of an incandescent lamp. The three-color LED lights R→G→B are alternately lit in a cycle and scanned line by line at the same time. Then, according to the principle of the three primary colors, the image data obtained by lighting the R / G / B LED lights is resynthesized to restore the scanned electronic image of the drawing.
[0075] The embodiment of the present invention provides a signal processing system, such as Figure 3 and Figure 4 As shown, the signal processing system includes an image processing module 40, a chip 50 and an image sensor 60, wherein the chip 50 is internally integrated with an ADC module 51, a data port 52 and a register 53. Exemplarily, the chip 50 can be an analog front-end chip, and the image sensor 60 can be a CMOS image sensor (CIS).
[0076] The image sensor 60 transmits the analog signal of the image data obtained by scanning to the chip 50 for data processing (such as biasing, amplifying the analog signal and converting the analog signal into a digital signal by the ADC module 51). The chip 50 converts the analog signal of the image data into a digital signal of the image data and transmits it to the image processing module 40 through the data bus (Data Bus) connected to the data port 52. The image processing module 40 forms a scanned image according to the digital signal of the image data.
[0077] The present invention provides a signal processing method for controlling the above Figure 1 and Figure 2 The signal processing system shown in Figure 5 As shown, the signal processing method includes:
[0078] S100: When receiving a scanning line synchronization signal periodically transmitted by a main controller, the scanning timing control unit periodically triggers the generation of an internal line synchronization signal;
[0079] In this embodiment, if Figure 6 As shown, the main controller 10 will periodically transmit the scan line synchronization signal XLSYNC and the main clock signal MCLK required for the operation of the chip 20 to the chip 20 through the SPI interface. The scan timing control unit 21 in the chip 20 will periodically trigger the generation of the internal line synchronization signal LS when receiving the periodically transmitted scan line synchronization signal XLSYNC. The internal line synchronization signal LS is used to represent the head of each line of data. The scan timing control unit 21 can be triggered to generate the internal line synchronization signal LS during the high-level activity period of the scan line synchronization signal XLSYNC.
[0080] In an optional embodiment, if Figure 6 As shown, the periodic time of the scanning line synchronization signal XLSYNC periodically transmitted by the main controller 10 may be the first time t LINE , that is, the time interval between the rising edge of the previous scanning line synchronization signal XLSYNC and the rising edge of the next scanning line synchronization signal XLSYNC is the first time t LINE .
[0081] In an optional embodiment, if Figure 6 As shown, the scanning timing control unit 21 periodically delays the second time t d The internal line synchronization signal LS is triggered, that is, the scanning timing control unit 21 delays the falling edge of the scanning line synchronization signal XLSYNC for a second time t d The internal line synchronization signal LS is generated again by triggering. Correspondingly, the time interval between the rising edge of the previous internal line synchronization signal LS and the rising edge of the next internal line synchronization signal LS is the first time t LINE .
[0082] S200: After generating an internal row synchronization signal, the scanning timing control unit delays triggering to generate a control signal, and transmits the control signal to the image sensor, so that the image sensor scans the row data.
[0083] In this embodiment, if Figure 6 As shown, after generating the internal line synchronization signal LS, the scanning timing control unit 21 will use the falling edge of the internal line synchronization signal LS as a delay to trigger the generation of a control signal and transmit it to the image sensor 30. When receiving the control signal, the image sensor 30 will scan the line data to achieve scanning timing control, wherein the control signal includes the main clock signal CIS_CLK, the pulse start signal SP and the lighting signal LEDx_on required for the operation of the image sensor 30.
[0084] In an optional embodiment, if Figure 6 As shown, after generating the internal line synchronization signal LS, the scanning timing control unit 21 triggers the generation of a master clock signal CIS_CLK with a specific timing as the master clock required for the image sensor 30 to work, which can avoid electromagnetic interference (EMI) during the clock pulse transmission through the system on chip (SOC) causing clock pulse errors, affecting the output of the line synchronization signal, and causing abnormal scanning image data, wherein the master clock signal CIS_CLK and the master clock signal MCLK required for the chip 20 to work have the same frequency.
[0085] In addition, the scanning timing control unit 21 may also trigger the generation of a main clock signal CIS_CLK with a specific timing as a main clock required for the image sensor 30 to work when receiving the scanning line synchronization signal XLSYNC.
[0086] In an optional embodiment, if Figure 6As shown, the scanning timing control unit 21 delays the third time td1 to trigger the generation of the pulse start signal SP, that is, when the scanning timing control unit 21 detects the internal line synchronization signal LS, it will delay the third time td1 based on the falling edge of the internal line synchronization signal LS. d1 Trigger to generate pulse start signal SP (i.e. Figure 6 As shown in TG1 (SP)), the pulse start signal SP serves as the start pulse signal (StartPulse) of the image sensor 30, and is the start signal for serially outputting the analog signal of the image data of each row scanned by the image sensor 30.
[0087] In an optional embodiment, if Figure 6 As shown, the scanning timing control unit 21 delays the fourth time t LED-ON-DELAY The trigger generates the lighting signal LEDx_on, and the scanning timing control unit 21 delays the fifth time t LED-OFF-DELAY Stop generating the lighting signal LEDx_on, wherein the lighting signal LEDx_on includes a first lighting signal LED1_on, a second lighting signal LED2_on and a third lighting signal LED3_on, the first lighting signal LED1_on (ie Figure 6 TG2 (LED1_on) shown in FIG) is used as the lighting signal of the first color lamp, and the second lighting signal LED2_on (ie Figure 6 TG3 (LED21_on) shown in FIG) is used as the lighting signal of the second color lamp, and the third lighting signal LED3_on (ie Figure 6 TG4 (LED3_on)) shown in FIG. 1 is used as the lighting signal of the third color lamp. The first lighting signal LED1_on, the second lighting signal LED2_on and the third lighting signal LED3_on are all delayed by the fourth time t based on the falling edge of the internal line synchronization signal LS as the delay. LED-ON-DELAY The first lighting signal LED1_on, the second lighting signal LED2_on and the third lighting signal LED3_on can be triggered by the same internal line synchronization signal LS, or can be triggered by different internal line synchronization signals LS. Correspondingly, the scanning timing control unit 21 uses the falling edge of the internal line synchronization signal LS as the delay, and delays the fifth time t LED-OFF-DELAY The generation of the first lighting signal LED1_on, the second lighting signal LED2_on and the third lighting signal LED3_on is stopped, so that the corresponding color lamps are turned off.
[0088] It should be noted that the scanning timing control unit 21 can also delay the fifth time t based on the falling edge of the internal line synchronization signal LS as the delay. LED-OFF-DELAYA corresponding extinguishing signal LEDx_off (including LED1_off, LED2_off and LED3_off) is generated to extinguish the corresponding color lights.
[0089] In an optional embodiment, if Figure 7 As shown, the signal processing method includes:
[0090] S300: In the first scanning mode, the scanning timing control unit periodically triggers the generation of a first lighting signal, a second lighting signal and a third lighting signal in sequence until the scanning operation performed by the image sensor is completed.
[0091] In this embodiment, the first scanning mode can be a color scanning mode. When the scanning timing control unit 21 enters the first scanning mode, it needs to light up the first color light, the second color light and the third color light of the image sensor 30. Therefore, the scanning timing control unit 21 needs to periodically trigger the generation of the first lighting signal LED1_on, the second lighting signal LED2_on and the third lighting signal LED3_on in sequence until the scanning operation performed by the image sensor 30 is completed.
[0092] In an optional embodiment, if Figure 8 As shown, step S300, the scanning timing control unit periodically triggers the generation of a first lighting signal, a second lighting signal and a third lighting signal in sequence until the scanning operation performed by the image sensor is completed, including:
[0093] S310: The scanning timing control unit triggers to generate a first lighting signal so that the image sensor performs a first color lamp lighting operation;
[0094] In this embodiment, if Figure 6 and Fig. 9 As shown, the chip 20 has a first counter COLOR_TG1, a second counter COLOR_TG2 and a third counter COLOR_TG3 inside. The first counter COLOR_TG1, the second counter COLOR_TG2 and the third counter COLOR_TG3 correspond to the first color light, the second color light and the third color light of the image sensor 30 respectively, and can be used for color distinction in the color scanning mode. The chip 20 can set the lighting sequence of the first color light, the second color light and the third color light by configuring LED_ON_SEL[1:0]. The scanning timing control unit 21 triggers the first counter COLOR_TG1 to start counting at the falling edge of the first internal line synchronization signal LS. The time counted by the first counter COLOR_TG1 is the fourth time t LED-ON-DELAYWhen the first lighting signal LED1_on is triggered, the image sensor 30 will perform the first color lamp lighting operation when receiving the first lighting signal LED1_on, so as to light up the first color lamp within the period of the first internal line synchronization signal LS.
[0095] S320: When the scanning timing control unit stops generating the first lighting signal, it triggers the generation of the second lighting signal, so that the image sensor performs the second color lamp lighting operation;
[0096] In this embodiment, the time counted by the first counter COLOR_TG1 is the fifth time t LED-OFF-DELAY , the scanning timing control unit 21 stops generating the first lighting signal LED1_on; at the falling edge of the second internal line synchronization signal LS, the scanning timing control unit 21 controls the first counter COLOR_TG1 to clear and wait for the next count, and triggers the second counter COLOR_TG2 to start counting. The time counted by the second counter COLOR_TG2 is the fourth time t LED-ON-DELAY When the second lighting signal LED2_on is triggered, the image sensor 30 will perform the second color lamp lighting operation when receiving the second lighting signal LED2_on, so as to light up the second color lamp within the period of the second internal line synchronization signal LS.
[0097] S330: when the scanning timing control unit stops generating the second lighting signal, triggering the generation of a third lighting signal, so that the image sensor performs a third color lighting operation;
[0098] In this embodiment, the time counted by the second counter COLOR_TG2 is the fifth time t LED-OFF-DELAY When the scanning timing control unit 21 stops generating the second lighting signal LED2_on, the scanning timing control unit 21 controls the second counter COLOR_TG2 to clear and wait for the next count at the falling edge of the third internal line synchronization signal LS, and triggers the third counter COLOR_TG3 to start counting. The counting time of the third counter COLOR_TG3 is the fourth time t LED-ON-DELAY When the third lighting signal LED3_on is triggered, the image sensor 30 will perform the third color lamp lighting operation when receiving the third lighting signal LED3_on, so as to light up the third color lamp within the period of the third internal line synchronization signal LS.
[0099] S340: The scanning timing control unit periodically cycles the above color lamp lighting steps until the scanning operation performed by the image sensor is completed.
[0100] In this embodiment, the scanning timing control unit 21 periodically cycles step S310 , step S320 , and step S330 to complete the R→G→B lighting control cycle until the scanning operation performed by the image sensor 30 is completed.
[0101] It should be noted that the scanning timing control unit 21 may also trigger the generation of the extinguishing signal LEDx_off at the time point of stopping the generation of the lighting signal LEDx_on, instead of stopping the generation of the lighting signal LEDx_on, so as to extinguish the corresponding color lamp.
[0102] like Fig.10 As shown, in the color scanning mode, the image sensor 30 transmits the scanned color scan image data analog signal to the chip 20, and the chip 20 converts the image data analog signal into an image data digital signal and transmits it to the large database (Data Band) of the main controller 10 through the data bus (Data Bus). The known counter COLOR_TG1 / 2 / 3 is used as the internal counter of the chip 20, which is defined as the enable trigger counter of the first color lamp, the second color lamp and the third color lamp, respectively, to form an R→G→B lighting cycle. At the same time, after the previous line is lit (such as the first color lamp is lit), the data (RData) is output in the next line, forming an RGB data Line-by-Line cycle output.
[0103] The internal line synchronization signal LS is used as the head of each line of data, and is represented by 0000h in the data bus output format (DataBit is all 0). The head of the line data starts from the falling edge of the internal line synchronization signal LS and is output after a third time td1. When the data receiving end of the main controller 10 detects the internal line synchronization signal LS, it indicates that a new line of data begins to be received, and is sent to the Data Band of the corresponding color according to the color light that is lit in the previous line. In order to distinguish image data from line headers, 0003h-FFFFh is defined to represent real image data.
[0104] In an optional embodiment, if Fig.11 As shown, the signal processing method includes:
[0105] S400: In the second scanning mode, the scanning timing control unit periodically triggers the generation of the first lighting signal, the second lighting signal and the third lighting signal at the same time, or periodically triggers the generation of one of the first lighting signal, the second lighting signal and the third lighting signal until the scanning operation performed by the image sensor is completed.
[0106] In this embodiment, the second scanning mode can be a monochrome scanning mode. When the scanning timing control unit 21 enters the second scanning mode, it is not necessary to light up the first color light, the second color light and the third color light of the image sensor 30 to complete the R→G→B lighting control cycle. Therefore, the scanning timing control unit 21 can periodically trigger the generation of the first lighting signal, the second lighting signal and the third lighting signal at the same time, that is, light up the three color lights at the same time, or periodically trigger the generation of one of the first lighting signal, the second lighting signal and the third lighting signal, that is, light up one of the three color lights, until the scanning operation performed by the image sensor is completed.
[0107] In an optional embodiment, if Fig.12 As shown, step S400, the scanning timing control unit periodically and simultaneously triggers the generation of the first lighting signal, the second lighting signal and the third lighting signal until the scanning operation performed by the image sensor is completed, including:
[0108] S400A: The scanning timing control unit simultaneously triggers the generation of the first lighting signal, the second lighting signal and the third lighting signal, so that the image sensor simultaneously performs the first color light lighting operation, the second color light lighting operation and the third color light lighting operation, and cycles periodically until the scanning operation performed by the image sensor is completed.
[0109] In this embodiment, if Fig.13 As shown, since the three color lamps are lit at the same time, it is not necessary for all three counters to work, and one of the counters can be made to work, such as using the first counter COLOR_TG1, while the second counter COLOR_TG2 and the third counter COLOR_TG3 are shielded; the scanning timing control unit 21 triggers the first counter COLOR_TG1 to start counting at the falling edge of the first internal line synchronization signal LS, and the time counted by the first counter COLOR_TG1 is the fourth time t LED-ON-DELAY When the first lighting signal LED1_on, the second lighting signal LED2_on and the third lighting signal LED3_on are triggered, the image sensor 30 will simultaneously perform the first color lamp lighting operation, the second color lamp lighting operation and the third color lamp lighting operation when receiving the first lighting signal LED1_on, the second lighting signal LED2_on and the third lighting signal LED3_on, so as to realize that the first color lamp, the second color lamp and the third color lamp are lit simultaneously within the cycle of the first internal line synchronization signal LS; the time counted by the first counter COLOR_TG1 is the fifth time t LED-OFF-DELAY, the scanning timing control unit 21 simultaneously stops generating the first lighting signal LED1_on, the second lighting signal LED2_on and the third lighting signal LED3_on; the scanning timing control unit 21 controls the first counter COLOR_TG1 to be cleared and counted again at the falling edge of the second internal line synchronization signal LS, and the time counted by the first counter COLOR_TG1 is the fourth time t LED-ON-DELAY When the first lighting signal LED1_on, the second lighting signal LED2_on and the third lighting signal LED3_on are triggered to be generated simultaneously, and the cycle is repeated periodically until the scanning operation performed by the image sensor is completed.
[0110] It should be noted that the scanning timing control unit 21 may also trigger the generation of the extinguishing signal LEDx_off at the time point of stopping the generation of the lighting signal LEDx_on, instead of stopping the generation of the lighting signal LEDx_on, so as to extinguish the corresponding color lamp.
[0111] In an optional embodiment, if Fig.14 As shown, step S400, the scanning timing control unit periodically triggers the generation of one of the first lighting signal, the second lighting signal and the third lighting signal until the scanning operation performed by the image sensor is completed, including:
[0112] S400B: The scanning timing control unit periodically triggers the generation of one of the first lighting signal, the second lighting signal and the third lighting signal, so that the image sensor performs one of the first color light lighting operation, the second color light lighting operation and the third color light lighting operation, and cycles periodically until the scanning operation performed by the image sensor is completed.
[0113] In this embodiment, the difference from step S400A is that the scanning timing control unit 21 triggers only one lighting signal, that is, the scanning timing control unit 21 triggers the first counter COLOR_TG1 to start counting at the falling edge of the first internal line synchronization signal LS, and the counting time of the first counter COLOR_TG1 is the fourth time t LED-ON-DELAY When a lighting signal such as the first lighting signal LED1_on is triggered, the image sensor 30 performs a first color lamp lighting operation upon receiving the first lighting signal LED1_on, and lights up the first color lamp within the cycle of the first internal line synchronization signal LS; the time counted by the first counter COLOR_TG1 is the fifth time t LED-OFF-DELAY When the scanning timing control unit 21 stops generating the first lighting signal LED1_on, the scanning timing control unit 21 controls the first counter COLOR_TG1 to be cleared and restarted to count at the falling edge of the second internal line synchronization signal LS. The time counted by the first counter COLOR_TG1 is the fourth time tLED-ON-DELAY When , the first lighting signal LED1_on is triggered and generated, and the cycle is repeated periodically until the scanning operation performed by the image sensor is completed.
[0114] It should be noted that the scanning timing control unit 21 may also trigger the generation of the extinguishing signal LEDx_off at the time point of stopping the generation of the lighting signal LEDx_on, instead of stopping the generation of the lighting signal LEDx_on, so as to extinguish the corresponding color lamp.
[0115] The color scanning mode and the monochrome scanning mode can be configured through registers, and the counters COLOR_TG1-3 inside the chip 20 can be used or shielded according to the register configuration. For example, when the scanning mode is the monochrome scanning mode, the configuration value of the register is 0, and only the first counter COLOR_TG1 can work; when the scanning mode is the color scanning mode, the register configuration is 1, and COLOR_TG1 / 2 / 3 can be enabled.
[0116] The signal processing method of this embodiment generates an internal line synchronization signal when receiving a scanning line synchronization signal through the scanning timing control unit 21, and generates a control signal based on the internal line synchronization signal delay trigger to control the image sensor 30 to scan the line data, thereby saving the IO resources and system resources of the on-chip system. The on-chip system only needs to receive the image data transmitted back; reduce the risk of electromagnetic interference associated with the long-distance transmission of high-speed clock signals; the timing control is simpler, more efficient and adaptable to a variety of application scenarios, can adapt to various signal processing situations, and can be dynamically configured according to needs.
[0117] The present invention provides a signal processing method for controlling the above Figure 3 and Figure 4 The signal processing system shown in Fig.15 As shown, the signal processing method includes:
[0118] S500: Determine the current scanning mode;
[0119] In this embodiment, the image forming device has different scanning modes, for example, a color scanning mode and a monochrome scanning mode. The color scanning mode needs to light up three color lamps to complete the R→G→B lighting control cycle to achieve exposure operation, so the color scanning mode needs to transmit data according to the exposure color. Correspondingly, there is a one-to-one correspondence between the row data obtained by the exposure operation and the three exposure colors, while other scanning modes such as the monochrome scanning mode do not need to light up the three color lamps to complete the R→G→B lighting control cycle, so the processing procedures of other scanning modes such as the monochrome scanning mode are different from those of the color scanning mode; since only the color scanning mode needs to transmit data according to the exposure color, it is necessary to obtain the currently used scanning mode before performing the scanning operation, and determine whether it is necessary to execute the writing of the color flag bit according to the scanning mode.
[0120] Exemplarily, taking the first scanning mode as a color scanning mode as an example, a specific judgment method may be that the image processing module 40 transmits a first scanning mode signal to the chip 50, and when the chip 50 receives the first scanning mode signal, it judges that the current scanning mode is the first scanning mode.
[0121] S600: If the current scanning mode is the first scanning mode, then write the color flag before outputting the row data;
[0122] In this embodiment, when the chip 50 determines that the current scanning mode is the first scanning mode, the chip 50 converts the exposure color corresponding to the row data into color information and writes it as a color flag before outputting the row data.
[0123] In an optional implementation, the color flag bit can be implemented by setting a register. Specifically, the chip 50 has a register 53, and the register 53 has Fig.16 As shown in the status flag information, when register 53 (STO_CFG) is set to mode 0 (Mode 0) by chip 50, the color flag can be represented according to a preset representation format. For example, the status flag ST[1] and the status flag ST[3] are defined as the color information of 16-bit pixel data, that is, the status flag ST[1] and the status flag ST[3] are used to configure the color flag. For example, the red flag is the first color flag, the green flag is the second color flag, and the blue flag is the third color flag. The color flag can be configured as follows: the first color flag corresponds to the status flag ST[1]=1, and the status flag ST[3]=0; the second color flag corresponds to the status flag ST[1]=0, and the status flag ST[3]=1; the third color flag corresponds to the status flag ST[1]=1, and the status flag ST[3]=1.
[0124] The status flag bit ST[0] and the status flag bit ST[4] in the register 53 of the chip 50 are defined as analog input channel information, and the status flag bit ST[2] is defined as input status detection of a certain IO.
[0125] In this embodiment, the analog input channel information represents the channel of the input data. Since the image data will be cached and output according to the color, it is necessary to determine the analog input channel of the corresponding color. Specifically, the analog input channel is configured through the status flag ST[0] and the status flag ST[4]. Exemplarily, the red analog input channel is the first color analog input channel, the green analog input channel is the second color analog input channel, and the blue analog input channel is the third color analog input channel. The color analog input channels can be configured as follows: the first color analog input channel corresponds to the status flag ST[0]=1, the status flag ST[4]=0; the second color analog input channel corresponds to the status flag ST[0]=0, the status flag ST[4]=1; the third color analog input channel corresponds to the status flag ST[0]=1, the status flag ST[4]=1.
[0126] S700: Combine the row data and the color flag and output them.
[0127] In this embodiment, the chip 50 combines the written color flag and row data and outputs them to the image processing module 40 according to a preset data output method, so that the image processing module 40 forms a scanned image based on the row data and the color flag. Exemplarily, the chip 50 can use a low voltage differential (LVDS) data output method to combine the written color flag and row data and output them.
[0128] S800: If the current scanning mode is not the first scanning mode, directly output the row data.
[0129] In this embodiment, when the chip 50 determines that the current scanning mode is not the first scanning mode, since there is no need to write the color flag, the row data is directly output to the image processing module 40, so that the image processing module 40 forms a scan image according to the row data and the color flag.
[0130] In an optional embodiment, if Fig.17 As shown, writing the color flag bit before outputting the row data in step S600 includes:
[0131] S610: Obtain color data of the current row;
[0132] In this embodiment, the chip 50 can obtain the exposure color of the current row according to the lighting signal transmitted to the image sensor 60, and determine the color data of the current row according to the exposure color of the current row. For example, when the lighting signal transmitted to the image sensor 60 is the first lighting signal, the chip 50 determines that the exposure color of the current row is the first color, and can further determine that the color data of the current row is the first color data. Similarly, when the lighting signal transmitted to the image sensor 60 is the second lighting signal, the chip 50 determines that the exposure color of the current row is the second color, and can further determine that the color data of the current row is the second color data. When the lighting signal of the image sensor 60 is the third lighting signal, the chip 50 determines that the exposure color of the current row is the third color, and can further determine that the color data of the current row is the third color data, wherein, when the first lighting signal is transmitted to the image sensor 60, the image sensor 60 performs the first color light lighting operation to realize the first color exposure operation, when the second lighting signal is transmitted to the image sensor 60, the image sensor 60 performs the second color light lighting operation to realize the second color exposure operation, and when the third lighting signal is transmitted to the image sensor 60, the image sensor 60 performs the third color light lighting operation to realize the third color exposure operation.
[0133] S620: According to the color data of the current row, before the row data of the current row is output, a color flag is written into the row data of the current row.
[0134] In this embodiment, the chip 50 writes the corresponding color flag into the register 53 of the chip 50 according to the acquired color data of the current row before outputting the row data of the current row, that is, configures the status flag ST[1] and the status flag ST[3] of the register 53.
[0135] In an optional embodiment, if Fig.18 As shown, step S620 writes a color flag bit to the row data of the current row according to the color data of the current row before the row data of the current row is output, including:
[0136] S621: if the color data of the current row is the first color data, before the row data of the current row is output, the first color information is written into the color flag;
[0137] In this embodiment, if the color data of the current row obtained by chip 50 is the first color data, chip 50 writes the first color information into the color flag to form the first color flag before outputting the row data of the current row, that is, the status flag ST[1] and the status flag ST[3] in the register 53 of chip 50 are configured as status flag ST[1]=1, and status flag ST[3]=0.
[0138] S622: if the color data of the current row is the second color data, before the row data of the current row is output, the second color information is written into the color flag;
[0139] In this embodiment, if the color data of the current row obtained by chip 50 is the second color data, chip 50 writes the second color information into the color flag to form a second color flag before outputting the row data of the current row, that is, the status flag ST[1] and the status flag ST[3] in the register 53 of chip 50 are configured as status flag ST[1]=0, and status flag ST[3]=1.
[0140] S623: If the color data of the current row is the third color data, the third color information is written into the color flag before the row data of the current row is output.
[0141] In this embodiment, if the color data of the current row obtained by chip 50 is the third color data, chip 50 writes the third color information into the color flag to form a third color flag before outputting the row data, that is, the status flag ST[1] and the status flag ST[3] in the register 53 of chip 50 are configured as status flag ST[1]=1, status flag ST[3]=1.
[0142] In this embodiment, since there are only three situations for the color data of the current row, one is that the color data is the first color data, one is that the color data is the second color data, and one is that the color data is the third color data, step S621, step S622 and step S623 do not have a logical order, and the above three steps will be executed one by one during the execution process, that is, step S621, step S622 and step S623 will not be executed at the same time.
[0143] In an optional embodiment, if Fig.19 As shown, writing the color flag bit before outputting the row data in step S600 includes:
[0144] S610: Obtain color data of the current row;
[0145] In this embodiment, step S610 is already Fig.17 The detailed description is given in the flowchart shown, so it will not be repeated here.
[0146] S630: According to the color data of the current row, before the row data of the next row is output, a color flag is written into the row data of the next row.
[0147] In this embodiment, since the image sensor 60 completes the R→G→B lighting control cycle by lighting three color lights to achieve the exposure operation, the lighting order of the image sensor 60 is the first color light, the second color light, the third color light, the first color light... and cycles, and correspondingly, the order of exposure colors is the first color, the second color, the third color, the first color... and cycles, so the chip 50 can deduce the exposure color corresponding to the row data of the next row according to the exposure color of the current row, and determine the color data of the next row according to the exposure color of the next row, so as to write the color flag before the row data of the next row is output.
[0148] In this embodiment, step S630 and step S620 do not have a logical order, and step S630 and step S620 can be executed one by one or simultaneously during the execution process.
[0149] In an optional embodiment, if Fig. 20 As shown, step S630 writes a color flag bit to the row data of the next row according to the color data of the current row before the row data of the next row is output, including:
[0150] S631: Determine the color data corresponding to the next row according to the color data of the current row;
[0151] In this embodiment, the chip 50 can deduce the color data corresponding to the row data of the next row according to the color data of the current row and the cyclic order of the color data.
[0152] S632: According to the color data corresponding to the next line, before the line data of the next line is output, a color flag is written into the line data of the next line.
[0153] In this embodiment, the chip 50 writes the corresponding color flag into the register 53 of the chip 50 according to the color data corresponding to the next row obtained before outputting the row data of the next row, that is, configures the status flag ST[1] and the status flag ST[3] of the register 53.
[0154] In an optional embodiment, if Fig.21 As shown, step S631 determines the color data corresponding to the next row according to the color data of the current row, including:
[0155] S6311: If the color data of the current row is the first color data, the color data corresponding to the next row is the second color data;
[0156] In this embodiment, if the color data of the current row acquired by the chip 50 is the first color data, then according to the circular order of the color data, the chip 50 determines that the color data corresponding to the row data of the next row is the second color data.
[0157] S6312: If the color data of the current row is the second color data, the color data corresponding to the next row is the third color data;
[0158] In this embodiment, if the color data of the current row acquired by the chip 50 is the second color data, then according to the circular order of the color data, the chip 50 determines that the color data corresponding to the row data of the next row is the third color data.
[0159] S6313: If the color data of the current row is the third color data, the color data corresponding to the next row is the first color data.
[0160] In this embodiment, if the color data of the current row acquired by the chip 50 is the third color data, then according to the circular order of the color data, the chip 50 determines that the color data corresponding to the row data of the next row is the first color data.
[0161] In this embodiment, since there are only three situations for the color data of the current row, one is that the color data is the first color data, one is that the color data is the second color data, and one is that the color data is the third color data, step S6311, step S6312 and step S6313 do not have a logical order, and the above three steps will be executed one by one during the execution process, that is, step S6311, step S6312 and step S6313 will not be executed at the same time.
[0162] In an optional embodiment, if Fig. 22 As shown, step S632 writes a color flag bit to the row data of the next row according to the color data corresponding to the next row before the row data of the next row is output, including:
[0163] S6321: If the color data of the next line is the second color data, before the line data of the next line is output, the second color information is written into the color flag;
[0164] In this embodiment, if the color data of the next row obtained by chip 50 is the second color data, chip 50 writes the second color information into the color flag to form a second color flag before outputting the row data of the next row, that is, the status flag ST[1] and the status flag ST[3] in the register 53 of chip 50 are configured as status flag ST[1]=0, and status flag ST[3]=1.
[0165] S6322: If the color data of the next line is the third color data, before the line data of the next line is output, the third color information is written into the color flag;
[0166] In this embodiment, if the color data of the next row obtained by chip 50 is the third color data, chip 50 writes the third color information into the color flag to form a third color flag before outputting the row data of the next row, that is, the status flag ST[1] and the status flag ST[3] in the register 53 of chip 50 are configured as status flag ST[1]=1, status flag ST[3]=1.
[0167] S6323: If the color data of the next line is the first color data, the first color information is written into the color flag before the line data of the next line is output.
[0168] In this embodiment, if the color data of the next row obtained by chip 50 is the first color data, chip 50 writes the first color information into the color flag to form the first color flag before outputting the row data of the next row, that is, the status flag ST[1] and the status flag ST[3] in the register 53 of chip 50 are configured as status flag ST[1]=1, and status flag ST[3]=0.
[0169] In this embodiment, since there are only three situations for the color data of the next row, one is that the color data is the first color data, one is that the color data is the second color data, and one is that the color data is the third color data, step S6321, step S6322 and step S6323 do not have a logical order, and the above three steps will be executed one by one during the execution process, that is, step S6321, step S6322 and step S6323 will not be executed at the same time.
[0170] The signal processing method of this embodiment combines the row data and the color flag before outputting the row data when the current scanning mode is the first scanning mode. For example, the row data and the color flag are combined and output when a low voltage differential (LVDS) data output method is adopted, and the exposure color information is added to the color flag so that the signal processing system can increase the real-time judgment mechanism of color information to avoid the row data being transmitted to the wrong cache, thereby ensuring the quality of the image and the user experience.
[0171] The embodiment of the present invention provides a signal processing system, such as Figure 1 and 2 As shown, the signal processing system is used to execute the above-mentioned signal processing method, including:
[0172] A scanning timing control unit 21, the scanning timing control unit 21 is used to periodically trigger the generation of an internal line synchronization signal when receiving a scanning line synchronization signal periodically transmitted by the main controller 10; and
[0173] After the internal line synchronization signal is generated, a delay trigger is generated to generate a control signal, and the control signal is transmitted to the image sensor 30, so that the image sensor 30 scans the line data.
[0174] It should be noted that the specific processing procedures of the main controller 10, the scanning timing control unit 21 and the image sensor 30 in the signal processing system have been described in detail in the signal processing method, so they will not be described again.
[0175] The embodiment of the present invention provides a signal processing system, such as Fig.23 As shown, the signal processing system is used to execute the above-mentioned signal processing method, including:
[0176] A scanning mode determination module 70, the scanning mode determination module 70 is used to determine the current scanning mode;
[0177] A color flag writing module 80, the color flag writing module 80 is used to write a color flag before outputting the row data when the current scanning mode is determined to be the first scanning mode;
[0178] The data combination output module 90 is used to combine the row data and the color flag and output them.
[0179] It should be noted that the specific processing procedures of the scanning mode determination module 70, the color flag writing module 80 and the data combination output module 90 in the signal processing system have been described in detail in the signal processing method, so they will not be repeated here.
[0180] An embodiment of the present invention provides a chip, which is configured to execute the above-mentioned signal processing method.
[0181] In an optional embodiment, if Figure 2 As shown, the chip 20 can be an analog front-end chip, which has a scan timing control unit 21 integrated inside. The scan timing control unit 21 can be a timing generator (TG). When the scan is started, the scan timing control unit 21 can generate several groups of specific signal pulses and be used for timing control of high-speed CIS.
[0182] It should be noted that the specific processing process of the chip 20 and the scanning timing control unit 21 in the chip 20 has been described in detail in the signal processing method, so it will not be repeated here.
[0183] An embodiment of the present invention provides a chip, which is configured to execute the above-mentioned signal processing method.
[0184] In an optional embodiment, if Figure 4As shown, the chip 50 includes an ADC module 51, a data port 52 and a register 53. The writing of the color flag is achieved by setting the register 53 in the chip 50, wherein the chip 50 may be an analog front-end chip.
[0185] An embodiment of the present invention provides an image forming device, such as Fig.24 As shown, Fig.24 The image forming apparatus shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0186] like Fig.24 As shown, the image forming apparatus is in the form of a general-purpose computing device. The components of the image forming apparatus may include, but are not limited to: one or more processors 910, a memory 930, and a communication bus 940 connecting different system components (including the memory 930 and the processor 910).
[0187] Communication bus 940 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnection (PCI) bus.
[0188] The image forming apparatus typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the image forming apparatus, including volatile and non-volatile media, removable and non-removable media.
[0189] The memory 930 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The image forming apparatus may further include other removable / non-removable, volatile / non-volatile computer system storage media. Fig.24Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 940 via one or more data medium interfaces. The memory 930 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0190] A program / utility having a set (at least one) of program modules may be stored in memory 930, such program modules including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described herein.
[0191] The image forming apparatus may also communicate with one or more external devices, and may also communicate with one or more devices that enable a user to interact with the image forming apparatus, or with any device that enables the image forming apparatus to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via the communication interface 920. Furthermore, the image forming apparatus may also communicate with the network adapter ( Fig.24 The network adapter may communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via the communication bus 940. It should be understood that although Fig.24 Not shown, other hardware and / or software modules may be used in conjunction with the image forming apparatus, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Drives; hereinafter referred to as: RAID) systems, tape drives, and data backup storage systems.
[0192] The processor 910 executes various functional applications and data processing by running the programs stored in the memory 930, such as implementing the signal processing method provided in the embodiment of the present invention.
[0193] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the signal processing method provided by the embodiment of the present invention.
[0194] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above, but is not limited to this. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0195] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0196] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0197] The above are only some embodiments of the present invention. For those skilled in the art, several modifications and improvements can be made without departing from the creative concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A signal processing method, characterized in that: include: Determine the current scanning mode; If the current scanning mode is the first scanning mode, a color flag is written before the row data is output; The row data and the color flag are combined and output.
2. The signal processing method according to claim 1, characterized in that: The step of writing a color flag bit before outputting the row data includes: Get the color data of the current row; According to the color data of the current row, before the row data of the current row is output, the color flag is written into the row data of the current row.
3. The signal processing method according to claim 2, characterized in that: The step of writing the color flag bit into the row data of the current row before outputting the row data of the current row according to the color data of the current row comprises: If the color data of the current row is the first color data, then before the row data of the current row is output, the first color information is written into the color flag; If the color data of the current row is the second color data, the second color information is written into the color flag before the row data of the current row is output; If the color data of the current row is the third color data, the third color information is written into the color flag before the row data of the current row is output.
4. The signal processing method according to claim 1, characterized in that: The step of writing a color flag bit before outputting the row data includes: Get the color data of the current row; According to the color data of the current row, before the row data of the next row is output, the color flag is written into the row data of the next row.
5. The signal processing method according to claim 4, characterized in that: The step of writing the color flag bit into the row data of the next row before outputting the row data of the next row according to the color data of the current row comprises: Determine the color data corresponding to the next row according to the color data of the current row; According to the color data corresponding to the next row, before the row data of the next row is output, the color flag is written into the row data of the next row.
6. The signal processing method according to claim 5, characterized in that: The step of determining color data corresponding to a next row according to the color data of the current row includes: If the color data of the current row is the first color data, the color data corresponding to the next row is the second color data; If the color data of the current row is the second color data, the color data corresponding to the next row is the third color data; If the color data of the current row is the third color data, the color data corresponding to the next row is the first color data.
7. The signal processing method according to claim 6, characterized in that: The step of writing the color flag bit into the row data of the next row before outputting the row data of the next row according to the color data corresponding to the next row comprises: If the color data of the next line is the second color data, the second color information is written into the color flag before the line data of the next line is output; If the color data of the next line is the third color data, the third color information is written into the color flag before the line data of the next line is output; If the color data of the next line is the first color data, the first color information is written into the color flag before the line data of the next line is output.
8. The signal processing method according to any one of claims 1 to 7, characterized in that: The color flag is represented according to a preset representation format.
9. The signal processing method according to any one of claims 1 to 7, characterized in that: The method further comprises: If the current scanning mode is not the first scanning mode, the row data is directly outputted.
10. A signal processing system, characterized in that: include: A scanning mode determination module, the scanning mode determination module is used to determine the current scanning mode; A color flag writing module, the color flag writing module is used to write a color flag before outputting the row data when it is determined that the current scanning mode is the first scanning mode; A data combination output module is used to combine and output the row data and the color flag.
11. A chip, characterized in that: The method is configured to execute the signal processing method according to any one of claims 1 to 9.
12. An image forming device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the signal processing method according to any one of claims 1 to 9.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the signal processing method according to any one of claims 1 to 9 when executed.
