Data output circuit, data processing method and device, equipment and storage medium

By introducing a multiplexer group and a sequential queue buffer in the data output circuit, combined with the control of the delay buffer, the problem of low data alignment output efficiency in image downsampling processing is solved, and more efficient data processing and cache utilization are achieved. .

CN118552391APending Publication Date: 2024-08-27VIVO MOBILE COMM CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410525379.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

During the image downsampling process, the utilization rate of the delay buffer is low and the cache bandwidth cannot be fully utilized, resulting in low data output efficiency.

Method used

A data output circuit is designed, including a multiplexer group, a sequential queue buffer and a delay buffer. By obtaining the order of data from different channels, the delay buffer is controlled to cache the data, and the multiplexer group and sequence are used The queue buffer implements data-aligned output, improving delay buffer usage and cache bandwidth utilization.

Benefits of technology

It improves the usage rate of delay buffer and data output efficiency, enables data to be cached and output on demand, fully utilizes the cache bandwidth, and improves the overall data processing performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552391A
    Figure CN118552391A
Patent Text Reader

Abstract

The invention discloses a data output circuit, a data processing method and device, equipment and a storage medium, and belongs to the technical field of data transmission. The data output circuit comprises a multiplexer group which comprises a first input end, a second input end, a first output end and a second output end, the first input end is used for inputting first data, the second input end is used for inputting second data, the first data and the second data are data of different channels, and the second output end is used for outputting the second data; the input end of the sequential queue buffer is connected with the first output end, and the sequential queue buffer is used for outputting the first data; the delay buffer is connected with the multiplexer group; wherein the delay buffer caches the first data or the second data according to the precedence order of the first data and the second data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of data transmission, and specifically relates to a data output circuit, a data processing method, a device, an equipment and a storage medium. Background Art

[0002] In the process of processing digital images, the images can be downsampled to reduce the high-resolution images to low-resolution images to reduce the image data volume and computational complexity.

[0003] Among them, the output delays of different data after different downsampling processes are basically inconsistent, and the processed data needs to be aligned before it can be passed to the next module.

[0004] Specifically, data from one channel is selected from data from different channels as reference data, and data from other channels use the reference data as a reference. Data from other channels are cached in a delay buffer to align data from different channels. In this process, the utilization rate of the delay buffer is relatively low, the cache bandwidth cannot be fully utilized, and the efficiency of data output is relatively low. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a data output circuit, a data processing method, an apparatus, a device and a storage medium, which can solve the problems of low utilization of the delay buffer, inability to fully utilize the cache bandwidth, and low efficiency of data output.

[0006] In a first aspect, an embodiment of the present application provides a data output circuit, comprising: a multiplexer group, comprising a first input terminal, a second input terminal, a first output terminal and a second output terminal, the first input terminal is used to input first data, the second input terminal is used to input second data, the first data and the second data are data of different channels, and the second output terminal is used to output the second data; a sequential queue buffer, the input terminal of the sequential queue buffer is connected to the first output terminal, and is used to output the first data; a delay buffer, connected to the multiplexer group; wherein the delay buffer caches the first data or the second data according to the order of the first data and the second data.

[0007] In a second aspect, an embodiment of the present application provides a data processing method for use in the data output circuit proposed in the first aspect, the data processing method comprising: obtaining a sequence of first data and second data; and controlling a delay buffer to cache the first data or the second data according to the sequence of the first data and the second data.

[0008] In a third aspect, an embodiment of the present application provides a data processing device for use in the data output circuit proposed in the first aspect, wherein the data output circuit comprises: an acquisition module for acquiring the order of first data and second data; and a control module for controlling a delay buffer to cache the first data or the second data according to the order of the first data and the second data.

[0009] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be executed on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the second aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method in the second aspect are implemented.

[0011] In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the second aspect.

[0012] In a seventh aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the second aspect.

[0013] In an embodiment of the present application, the proposed data output circuit includes a multiplexer group, a sequential queue buffer and a delay buffer. Specifically, the multiplexer group is provided to provide a path for transmitting the first data and the second data through the delay buffer, so that the delay buffer can buffer the first data or the second data according to the order of the first data and the second data, and then output the second data through the second output terminal, and use the sequential queue buffer to output the first data. In this process, the delay buffer can cache the first data or the second data, so that the utilization rate of the delay buffer is improved while the aligned output of the first data and the second data is realized, the cache bandwidth is fully utilized, and the efficiency of data output is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 is a connection diagram of a data output circuit provided in some embodiments of the present application;

[0015] Figure 2 is an internal design diagram of a delay buffer provided in some embodiments of the present application;

[0016] Figure 3 is a flowchart of a data processing method provided by some embodiments of the present application;

[0017] Figure 4 is a flowchart of a data processing method provided by some embodiments of the present application;

[0018] Figure 5 is a schematic block diagram of a data processing device in an embodiment of the present application;

[0019] Figure 6 is a schematic block diagram of an electronic device in an embodiment of the present application;

[0020] Figure 7 It is a schematic diagram of the hardware structure of the electronic device in the embodiment of the present application.

[0021] Attached Figure 1 Markings:

[0022] 102 multiplexer group, 104 sequential queue buffer, 106 delay buffer, MUX1 first multiplexer, MUX2 second multiplexer, MUX3 third multiplexer, MUX4 fourth multiplexer, IN1 first input terminal, IN2 second input terminal, IN3 third input terminal, IN4 fourth input terminal, IN5 fifth input terminal, IN6 sixth input terminal, IN7 seventh input terminal, OUT1 first output terminal, OUT2 second output terminal, OUT3 third output terminal, OUT4 fourth output terminal, OUT5 fifth output terminal. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the embodiments in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] The following is an explanation of the terms mentioned in this application:

[0026] Downsampling processing, which is applied in the fields of digital cameras, image compression, and image recognition, includes the following steps:

[0027] Image scaling: Scale the original high-resolution image to generate a low-resolution image. The image scaling process can be implemented using bilinear interpolation or bicubic interpolation algorithms.

[0028] Filtering: Filter the scaled image to remove noise and retain important details. Filtering can be implemented using Gaussian filtering or median filtering algorithms.

[0029] Sampling: Sampling the filtered image to generate the final low-resolution image. Sampling can be achieved using uniform sampling or random sampling algorithms.

[0030] The data output circuit, data processing method, device, equipment and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0031] In one embodiment, if Figure 1 As shown, a data output circuit is proposed, including: a multiplexer group 102, including a first input terminal IN1, a second input terminal IN2, a first output terminal OUT1 and a second output terminal OUT2, the first input terminal IN1 is used to input first data, the second input terminal IN2 is used to input second data, the first data and the second data are data of different channels, and the second output terminal OUT2 is used to output the second data; a sequential queue buffer 104, the input terminal of the sequential queue buffer 104 is connected to the first output terminal OUT1, and is used to output the first data; a delay buffer 106, connected to the multiplexer group 102; wherein the delay buffer 106 caches the first data or the second data according to the sequence of the first data and the second data.

[0032] In the embodiment of the present application, the proposed data output circuit includes a multiplexer group 102, a sequential queue buffer 104, and a delay buffer 106. Specifically, the multiplexer group 102 is provided to provide a path for transmitting the first data and the second data through the delay buffer 106, so that the delay buffer 106 can buffer the first data or the second data according to the sequence of the first data and the second data, and then output the second data through the second output terminal OUT2, and use the sequential queue buffer 104 to output the first data. In this process, the delay buffer 106 can cache the first data or the second data, thereby improving the utilization rate of the delay buffer 106 while achieving the alignment output of the first data and the second data.

[0033] In an embodiment of the present application, in the process of using the delay buffer 106 to cache the first data or the second data, the order of the first data and the second data is referred to, and the cache bandwidth is fully utilized, so that the performance of the storage module in the delay buffer 106 can be fully utilized, thereby improving the efficiency of data output.

[0034] In some embodiments of the present application, the first data and the second data are data of different channels.

[0035] In some embodiments of the present application, the order of precedence refers to the order of the first data and the second data after downsampling processing when one of the first data and the second data is used as reference data and the other is used as referenced data.

[0036] In some embodiments of the present application, the multiplexer group 102 includes: a first multiplexer MUX1, including a first input terminal IN1, a second input terminal IN2 and a third output terminal OUT3, the third output terminal OUT3 is connected to the input terminal of the delay buffer 106; a second multiplexer MUX2, including a third input terminal IN3 and a fourth output terminal OUT4, the third input terminal IN3 is connected to the output terminal of the delay buffer 106; a third multiplexer MUX3, including a fourth input terminal IN4, a fifth input terminal IN5, a second output terminal OUT2 and a fifth output terminal OUT5, the fourth input terminal IN4 is connected to the first output terminal IN5, and the output terminal IN5 is connected to the output terminal of the delay buffer 106; The first input terminal IN1 is connected, the fifth input terminal IN5 is connected to the fourth output terminal OUT4; the fourth multiplexer MUX4 includes a sixth input terminal IN6, a seventh input terminal IN7 and a first output terminal OUT1, the sixth input terminal IN6 is connected to the second input terminal IN2, and the seventh input terminal IN7 is connected to the fifth output terminal OUT5; wherein the first multiplexer MUX1, the second multiplexer MUX2, the third multiplexer MUX3 and the fourth multiplexer MUX4 switch the selection state according to the sequence of the first data and the second data, so that the delay buffer 106 can cache the first data or the second data.

[0037] In this embodiment, the first multiplexer MUX1, the second multiplexer MUX2, the third multiplexer MUX3 and the fourth multiplexer MUX4 are capable of switching the conduction state according to the sequence of the first data and the second data, thereby building multiple channels between the first input terminal IN1, the second input terminal IN2, the first output terminal OUT1 and the second output terminal OUT2. Under different channels, the first data and the second data can be controlled not to be directly output through the delay buffer 106, or the first data can be output through the delay buffer 106 or the second data can be output through the delay buffer 106, and then the delay buffer 106 can be selectively used to cache the first data or the second data so as to align the first data and the second data.

[0038] In some embodiments of the present application, the third output terminal OUT3 includes multiple sub-output terminals, the third input terminal IN3 includes multiple sub-input terminals, the input terminal of the delay buffer 106 includes multiple first interfaces, the output terminal of the delay buffer 106 includes multiple second interfaces, the multiple sub-output terminals are connected one-to-one with the multiple first interfaces, the multiple sub-input terminals are connected one-to-one with the multiple second interfaces, the delay buffer 106 includes multiple storage modules, each storage module is connected between the corresponding first interface and the second interface, and the delays corresponding to different storage modules are different.

[0039] In this embodiment, the delay buffer 106 includes a plurality of storage modules, and different storage modules correspond to different delays. Therefore, when the first multiplexer MUX1 and the second multiplexer MUX2 are in different conduction states, the first data or the second data is cached in the corresponding storage module, so that the first data cached in the delay buffer 106 after the data delay output can be aligned with the second data output by the sequential queue buffer 104. In this process, automatic alignment of data can be achieved at the circuit level.

[0040] Exemplarily, the first data is represented by data_org, and the second data is represented by data_ref. Under image downsampling processing, the delays of image data from different channels after scaling and filtering are roughly inconsistent, and when the input data data_ref is interlaced input relative to data_org, the order of output data is relatively variable.

[0041] Among them, the delay buffer is represented by delay buffer, and the sequential queue buffer is represented by line fifo, which is built by static random access memory. The depth corresponding to each static random access memory is the length of one line of the image. The maximum leading number of lines is instantiated, and the corresponding number of lines is cached by the delay buffer to make it lag behind data_ref.

[0042] Specifically, with data_org as the reference data, if data_org is ahead of data_ref, then the delay buffer is used to cache data_org; if data_org originally lags behind data_ref, then data_org is not cached through the delay buffer, and data_ref can reuse the delay buffer at this time. By caching data_ref through the delay buffer, the data with data_org as the reference always lags behind data_ref, and finally data_ref is aligned with data_org through the delay buffer and linefifo.

[0043] When data_org is cached in a delay buffer, the delay buffer can delay the number of rows that data_org leads data_ref by one row, so that data_org lags behind data_ref. Since data_ref can also be cached in the delay buffer, the use of the sequential queue buffer can be reduced, thereby reducing the cost of the data output circuit.

[0044] In the above embodiment, the data type of the line fifo cache is data_ref, and the minimum cache unit of the line fifo is a row. When the downsampling rate is as low as 1, the maximum number of rows of the relative delay between data_org and data_ref is (nm) / 2 rounded up. In extreme cases, x rows of line fifo will be full, and data_ref will read out data after waiting for the appearance of data_org. However, the downsampling rate of data_org is different at different times, and data will be output every other row. This situation only occurs when the downsampling rate is a little bit more than one, and the data is output by skipping a row, which causes data_ref to appear earlier than data_org. The line fifo will be full of data, resulting in back pressure and abnormality, that is, x+1 rows of line fifo are added instead of x rows to solve the problem of line fifo being full, wherein x is a numerical value, and its specific value is determined by the actual working condition, which will not be repeated here.

[0045] Among them, n is used to represent the number of rows of output delay after data_org is downsampled, and m is used to represent the number of rows of output delay after data_ref is downsampled.

[0046] However, no matter data_ref passes through the delay buffer or not, it will be fed into the line fifo. In the embodiment of the present application, a full and empty judgment of the line fifo is added to prevent data overflow and empty reading.

[0047] In some embodiments of the present application, Figure 2 The internal design of the delay buffer is shown in Figure 1. Figure 2 As shown, two effective clocks complete a read and write cycle, and the read and write moments are time-division multiplexed. The read and write addresses share a set, and the data storage is maintained, reducing the flipping of data and addresses and reducing power consumption.

[0048] Among them, the delay buffer controls the multiplexer to select rd_cyc or wr_cyc to control the static random access memory for reading and writing according to hcnt[0].

[0049] Specifically, when the multiplexer mux is controlled to select rd_cyc according to hcnt[0], data reading is implemented according to addr, that is, rdata; when the multiplexer is controlled to select wr_cyc according to hcnt[0], data writing is implemented according to addr, that is, data is written to the static random access memory through wr_cyc and addr, hcnt[0] is a control signal for selecting rd_cyc or wr_cyc, rd_cyc is a cycle for reading, wr_cyc is a cycle for writing, addr is an address, and wdata is data written to the static random access memory.

[0050] In some embodiments of the present application, Figure 3 As shown, a data processing method is proposed, which is used for a data output circuit as described above, comprising:

[0051] Step 302, obtaining the sequence of the first data and the second data;

[0052] Step 304: Control the delay buffer to cache the first data or the second data according to the sequence of the first data and the second data.

[0053] In an embodiment of the present application, in the process of using a delay buffer to cache the first data or the second data, the order of the first data and the second data is referred to, and the cache bandwidth is fully utilized, so that the performance of the storage module in the delay buffer can be fully utilized, thereby improving the efficiency of data output.

[0054] In some embodiments of the present application, the delay buffer is controlled to cache the first data or the second data according to the order of the first data and the second data, specifically including: when the first data is prior to the second data, the delay buffer is controlled to cache the first data; when the second data is prior to the first data, the delay buffer is controlled to cache the second data.

[0055] In this embodiment, when the first data precedes the second data, the delay buffer can be controlled to cache the first data, and when the second data precedes the first data, the delay buffer can be controlled to cache the second data, so that the first data always lags behind the second data, so that the output second data is aligned with the first data output in the sequential queue buffer.

[0056] In addition, when the second data is earlier than the first data, controlling the delay buffer to cache the second data can reduce the usage frequency of the sequential queue buffer, thereby increasing the service life of the sequential queue buffer.

[0057] In some embodiments of the present application, the data processing method further includes: obtaining a downsampling rate; and determining an order of priority between the first data and the second data based on a comparison result between the downsampling rate and a downsampling rate threshold.

[0058] In this embodiment, the downsampling rate is obtained so as to compare the downsampling rate with the downsampling rate threshold, thereby determining the order of the first data and the second data. In this process, the data processing method proposed in the present application can achieve the aligned output of the first data and the second data under different downsampling rates, thereby adapting to the data alignment of complex spatial positions.

[0059] In the downsampling process, the data undergoes image processing such as gradient calculation, interpolation calculation, and filtering. The types of delay include line delay and clock level delay. The data output line delay under different channels is different.

[0060] In some embodiments of the present application, the order of priority of the first data and the second data is determined based on the comparison result of the downsampling rate and the downsampling rate threshold, specifically including: when the downsampling rate is greater than the downsampling rate threshold, the first data precedes the second data; when the downsampling rate is less than the downsampling rate threshold, the second data precedes the first data.

[0061] In this embodiment, the value of the downsampling rate threshold may be set according to the actual usage scenario, thereby determining the order of the first data and the second data.

[0062] Exemplarily, when the downsampling rate threshold value is N, when the downsapling rate downsapling<N, the delay buffer caches data_ref, and data_org is not cached. When downsapling≥N, the data type cached by the delay buffer is data_org. In this process, efficient reuse of the delay buffer can be achieved.

[0063] In some embodiments of the present application, when data_org and data_ref need to be aligned in alternate lines, a delay buffer can be used to cache data_org or data_ref according to the order of data_org and data_ref.

[0064] Specifically, as shown in Table 1, data_ref leads data_org by three lines, data_org is directly output without being cached by the delay buffer, data_ref is cached by the delay buffer and input into the line fifo by one line, and is aligned with data_org every other line after caching the corresponding number of lines.

[0065] Table 1

[0066] data_ref B65f 9f59 dc1c 194c aaa9 data_org 488f_+ data_ref_out B65f 9f59 dc1c data_org_out 488f_+ Fde_1+ 488f_3+ 442c_+ 488f

[0067] Specifically, as shown in Table 2, data_ref leads data_org by one line, data_org is directly output without being cached by the delay buffer, data_ref is input into the line fifo without being cached by the delay buffer, and is aligned with data_org every other line after caching the corresponding number of lines.

[0068] Table 2

[0069] data_ref 2f7d C994 6c30 data_org 501d 412c 41b0 data_ref_out 2f7d C994 6c30 data_org_out 501d 412c 41b0

[0070] Specifically, as shown in Table 3, data_ref lags behind data_org by one line. In this case, the downsampling rate is relatively large. data_org is output through the delay buffer cache, and data_ref is input into linefifo without the delay buffer cache. After caching the corresponding number of lines, it is aligned with data_orgref every other line.

[0071] Table 3

[0072] data_ref 61b8 94ec data_org 87f1 B18a data_ref_out 61b8 94ec data_org_out 87f1 B18a

[0073] Exemplarily, when the downsampling rate threshold value ranges from 1 to 20, Table 4 shows different downsampling rate threshold values, the initial valid rows located according to the algorithm during downsampling, the first data, and the number of rows of the second output delay output.

[0074] Table 4

[0075] scaling factor initial line data_ref output delay data_org output delay 1 0 m n 2 0 m n 3 1 m+2 n+1 5 2 m+4 n+2 7 3 m+6 n+3 9 4 m+8 n+4 11 5 m+10 n+5 13 6 m+12 n+6 15 7 m+14 n+7 17 8 m+16 n+8 19 9 m+18 n+9

[0076] In some embodiments of the present application, the data processing method further includes: aligning and outputting the first data and the second data when the first data is a valid signal.

[0077] In this embodiment, the first data is a valid signal which can be understood as a signal indicating the output of the first data. During this process, the second data and the first data can be output as controlled valid signals, thereby ensuring that the first data and the second data are output in an aligned manner, thereby achieving refined data alignment.

[0078] In some embodiments of the present application, when downsampling is performed on an image, for example Figure 4 As shown, the data processing method includes:

[0079] Step 402, frame starts.

[0080] Specifically, when a frame starts, the hardware of the electronic device is reset, and all signals of the hardware are initialized.

[0081] Step 404, frame synchronization, if the judgment result is yes, execute step 406, if the judgment result is no, execute step 404.

[0082] Step 406, soft reset.

[0083] Specifically, the soft reset is to initialize the parameters for controlling the hardware of the electronic device.

[0084] Step 408, upstream handshake, if the judgment result is yes, execute step 410, if the judgment result is no, execute step 408.

[0085] Step 410: data channel pre-processing.

[0086] Step 412, downsapling<N, if the judgment result is yes, execute step 414, if the judgment result is no, execute step 416.

[0087] Step 414, the delay buffer caches data_ref, but does not cache data_org.

[0088] Step 416, the delay buffer caches data_org, but does not cache data_ref.

[0089] Step 418, data_ref is passed into line fifo and data_org is output.

[0090] Step 420: data_org yalid is valid. If the result is yes, execute step 422; if the result is no, execute step 420.

[0091] Step 422, data_ref is aligned with data_org output.

[0092] Step 424, handshake with the downstream, if the judgment result is yes, execute step 426, if the judgment result is no, execute step 424.

[0093] Step 426, the result is output.

[0094] Step 428, frame end, if the judgment result is yes, execute step 430, if the judgment result is no, execute step 424.

[0095] Step 430, the frame ends.

[0096] The data processing method provided in the embodiment of the present application can be executed by a data processing device. In the embodiment of the present application, the data processing device provided in the embodiment of the present application is described by taking the data processing method executed by the data processing device as an example.

[0097] In some embodiments of the present application, Figure 5 As shown, a data processing device 500 is provided, which is used for a data output circuit as in any of the above embodiments, and the data processing device 500 includes: an acquisition module 502, which is used to acquire the order of first data and second data; a control module 504, which is used to control a delay buffer to cache the first data or the second data according to the order of the first data and the second data.

[0098] In this embodiment, when the first data precedes the second data, the delay buffer can be controlled to cache the first data, and when the second data precedes the first data, the delay buffer can be controlled to cache the second data, so that the first data always lags behind the second data, so that the output second data is aligned with the first data output in the sequential queue buffer.

[0099] In some embodiments of the present application, the control module 504 is specifically used to: control the delay buffer to cache the first data when the first data precedes the second data; and control the delay buffer to cache the second data when the second data precedes the first data.

[0100] In some embodiments of the present application, the acquisition module 502 is further used to: acquire a downsampling rate; and determine the order of the first data and the second data based on a comparison result between the downsampling rate and a downsampling rate threshold.

[0101] In some embodiments of the present application, the acquisition module 502 is specifically used to: when the downsampling rate is greater than the downsampling rate threshold, the first data precedes the second data; when the downsampling rate is less than the downsampling rate threshold, the second data precedes the first data.

[0102] In some embodiments of the present application, the control module 504 is further configured to: align and output the first data and the second data when the first output is valid.

[0103] The data processing device 500 in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0104] The data processing device 500 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0105] The data processing device 500 provided in the embodiment of the present application can realize Figure 3 The various processes implemented by the data processing method embodiment can achieve the same technical effect. To avoid repetition, they will not be described here.

[0106] like Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 602 and a memory 604, wherein the memory 604 stores programs or instructions that can be executed on the processor 602, and when the program or instructions are executed by the processor 602, the various steps of the above-mentioned data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0107] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0108] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0109] like Figure 7As shown, the electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710 and other components.

[0110] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0111] In some embodiments of the present application, the processor 710 is used to: obtain the order of the first data and the second data; and control the delay buffer to cache the first data or the second data according to the order of the first data and the second data.

[0112] In some embodiments of the present application, the processor 710 is specifically used to: control the delay buffer to cache the first data when the first data precedes the second data; and control the delay buffer to cache the second data when the second data precedes the first data.

[0113] In some embodiments of the present application, the processor 710 is further used to: obtain a downsampling rate; and determine the order of the first data and the second data based on a comparison result between the downsampling rate and a downsampling rate threshold.

[0114] In some embodiments of the present application, the processor 710 is specifically used to: when the downsampling rate is greater than the downsampling rate threshold, the first data precedes the second data; when the downsampling rate is less than the downsampling rate threshold, the second data precedes the first data.

[0115] In some embodiments of the present application, the processor 710 is further configured to: align and output the first data and the second data when the first data is a valid signal.

[0116] In this embodiment, when the first data precedes the second data, the delay buffer can be controlled to cache the first data, and when the second data precedes the first data, the delay buffer can be controlled to cache the second data, so that the first data always lags behind the second data, so that the output second data is aligned with the first data output in the sequential queue buffer.

[0117] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0118] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory 709 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0119] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.

[0120] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0121] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0122] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0123] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0124] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned data processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0125] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "including one" do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the embodiments of the present application are essentially or partly contributed to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0127] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data output circuit, characterized in that: include: A multiplexer group, comprising a first input terminal, a second input terminal, a first output terminal, and a second output terminal, wherein the first input terminal is used to input first data, the second input terminal is used to input second data, the first data and the second data are data of different channels, and the second output terminal is used to output the second data; A sequential queue buffer, wherein an input end of the sequential queue buffer is connected to the first output end and is used to output the first data; A delay buffer connected to the multiplexer group; The delay buffer caches the first data or the second data according to the sequence of the first data and the second data.

2. The data output circuit according to claim 1, characterized in that: The multiplexer group includes: A first multiplexer, comprising the first input terminal, the second input terminal and a third output terminal, wherein the third output terminal is connected to the input terminal of the delay buffer; A second multiplexer, comprising a third input terminal and a fourth output terminal, wherein the third input terminal is connected to the output terminal of the delay buffer; A third multiplexer, comprising a fourth input terminal, a fifth input terminal, the second output terminal and a fifth output terminal, wherein the fourth input terminal is connected to the first input terminal, and the fifth input terminal is connected to the fourth output terminal; a fourth multiplexer, comprising a sixth input terminal, a seventh input terminal and the first output terminal, the sixth input terminal being connected to the second input terminal, and the seventh input terminal being connected to the fifth output terminal; The first multiplexer, the second multiplexer, the third multiplexer and the fourth multiplexer switch the selection state according to the sequence of the first data and the second data, so that the delay buffer can cache the first data or the second data.

3. The data output circuit according to claim 2, characterized in that: The third output end includes multiple sub-output ends, the third input end includes multiple sub-input ends, the input end of the delay buffer includes multiple first interfaces, the output end of the delay buffer includes multiple second interfaces, the multiple sub-output ends are connected to the multiple first interfaces in a one-to-one correspondence, the multiple sub-input ends are connected to the multiple second interfaces in a one-to-one correspondence, the delay buffer includes multiple storage modules, each of the storage modules is connected between the corresponding first interface and the second interface, and the delays corresponding to different storage modules are different.

4. A data processing method, used in the data output circuit according to any one of claims 1 to 3, characterized in that: include: Acquire the sequence of the first data and the second data; The delay buffer is controlled to cache the first data or the second data according to the sequence of the first data and the second data.

5. The data processing method according to claim 4, characterized in that: The controlling the delay buffer to cache the first data or the second data according to the sequence of the first data and the second data specifically includes: In a case where the first data is earlier than the second data, controlling the delay buffer to cache the first data; In a case where the second data precedes the first data, the delay buffer is controlled to buffer the second data.

6. The data processing method according to claim 4 or 5, characterized in that: The data processing method further includes: Get the downsampling rate; Based on a comparison result between the downsampling rate and a downsampling rate threshold, a priority order of the first data and the second data is determined.

7. The data processing method according to claim 6, characterized in that: The determining the order of the first data and the second data based on the comparison result of the downsampling rate and the downsampling rate threshold specifically includes: When the downsampling rate is greater than the downsampling rate threshold, the first data precedes the second data; When the downsampling rate is less than the downsampling rate threshold, the second data is prior to the first data.

8. The data processing method according to claim 4 or 5, characterized in that: The data processing method further includes: In a case where the first data is a valid signal, the first data and the second data are aligned and output.

9. A data processing device, used in the data output circuit according to any one of claims 1 to 3, characterized in that: include: An acquisition module, used for acquiring the sequence of the first data and the second data; A control module is used to control the delay buffer to cache the first data or the second data according to the sequence of the first data and the second data.

10. The data processing device according to claim 9, characterized in that: The control module is specifically used for: In a case where the first data is earlier than the second data, controlling the delay buffer to cache the first data; In a case where the second data precedes the first data, the delay buffer is controlled to buffer the second data.

11. The data processing device according to claim 9 or 10, characterized in that: The acquisition module is further used for: Get the downsampling rate; Based on a comparison result between the downsampling rate and a downsampling rate threshold, a priority order of the first data and the second data is determined.

12. The data processing device according to claim 11, characterized in that: The acquisition module is specifically used for: When the downsampling rate is greater than the downsampling rate threshold, the first data precedes the second data; When the downsampling rate is less than the downsampling rate threshold, the second data is prior to the first data.

13. The data processing device according to claim 9 or 10, characterized in that: The control module is also used for: In a case where the first data is a valid signal, the first data and the second data are aligned and output.

14. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 4 to 8 are implemented.

15. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 4 to 8 are implemented.

Citation Information

Cited By

  • Display control method and circuit, electronic equipment and computer readable storage medium

    CN119694254A