Electronic device for processing input events and operation method thereof
By adjusting the relationship between the information transmission and the resampling time period between the touch screen display and the processor, identifying and processing the movement speed of the touch input event, the problem of data processing not meeting the user's intention in the existing technology is solved, and a better Data processing effects.
Patent Information
- Application Number
- CN201980050956.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-08-01
- Filing Date
- 2019-07-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2039-07-29
AI Technical Summary
It is difficult for the existing technology to effectively handle the relationship between the information transmission of multiple touch input events in the touch screen display and the resampling time period of the processor, resulting in data processing that does not comply with user intentions and conditions.
By configuring whether there is an integer multiple relationship between the time period in which the touch screen display transmits the data of the touch event to the processor and the resampling time period of the processor, appropriate resampling operations are performed to identify the movement speed and determine the resampling time, thereby Get resampled data that fits the user's intent.
The best operation of processing touch input data according to user intention and touch input characteristics is realized, improving the accuracy and responsiveness of data processing.
Smart Images

Figure CN112513795B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an electronic device for processing a plurality of touch input events input into a touch screen display and an operating method thereof. Background Art
[0002] In addition to the basic services of making calls and sending text messages, electronic devices such as smart phones can also provide users with complex services such as playing games, using messengers, editing documents, drawing pictures, and reproducing and editing images / videos. Portable electronic devices may include a touch screen display for displaying content and receiving touch inputs to provide various services to users. Users can perform touch inputs on the touch screen display through various input devices such as body parts or digital pens. Users can perform touch inputs including multiple touch events on the touch screen display. For example, a user can perform touch inputs including multiple touch events such as dragging on the touch screen display.
[0003] The above information is provided as background information only to assist with understanding the present disclosure. No determination has been made, and no assertion is made, as to whether any of the above may be used as prior art with respect to the present disclosure. Summary of the invention
[0004] Solution to the problem
[0005] The touch screen display transmits information about multiple touch events input into the touch screen display to the processor, and the processor processes the transmitted information about the multiple touch events in a form suitable for use by the application. For example, the processor can perform resampling according to a predetermined time period based on the received information about the touch events.
[0006] However, touch screen displays having various types of input devices and various specifications transmit information about touch events to the processor according to various time periods, so the processor is required to appropriately perform a resampling operation according to the relationship between the resampling time period and the information transmission time period of the touch screen display.
[0007] Furthermore, the processor is required to appropriately perform a resampling operation according to the characteristics of a touch input performed on the touch screen display.
[0008] Aspects of the present disclosure will at least solve the above-mentioned problems and / or disadvantages and provide at least the following advantages. Therefore, one aspect of the present disclosure is to provide an apparatus and method for processing a touch input on a touch screen display to suit a user's intention and condition by performing a resampling operation by a predetermined method according to whether a transmission time period in which the touch screen display transmits information about a touch event to a processor and a resampling time period of the processor have an integer multiple relationship.
[0009] Additional aspects will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the presented embodiments.
[0010] According to one aspect of the present disclosure, an electronic device is provided. The electronic device includes a touch screen display and a processor, the touch screen display is configured to transmit data of a touch event to the processor based on a first time period, the processor is configured to use the received data to obtain resampled data based on a second time period, the second time period is an integer multiple of the first time period, wherein the processor is configured to use the received data to identify a movement speed related to the touch event, determine a resampled time for obtaining the resampled data based on the identified movement speed, and obtain the resampled data based on the determined resampled time.
[0011] According to another aspect of the present disclosure, an electronic device is provided. The electronic device includes a touch screen display and a processor, the touch screen display is configured to transmit data about a touch event to the processor based on a first time period, the processor is configured to use the received data to obtain resampled data based on a second time period, the second time period does not correspond to an integer multiple of the first time period, wherein the processor is configured to: identify that data about a first touch event that is planned to be sent at a first time is sent at a second time, correct the data about the first touch time according to the first time, and obtain the resampled data using the corrected data about the first touch time.
[0012] Through the electronic device and the operating method thereof according to various embodiments of the present disclosure, by considering the relationship between the information transmission time period from the touch screen display and the resampling time period of the processor and the characteristics of the touch input, data about the touch input can be processed to achieve optimal operation according to the user's intention.
[0013] Other aspects, advantages, and salient features of the present disclosure will become apparent to those skilled in the art from the following detailed description, which, in conjunction with the accompanying drawings, discloses various embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings, in which:
[0015] Figure 1 shows a network environment according to an embodiment of the present disclosure;
[0016] Figure 2 shows the appearance of an electronic device according to an embodiment of the present disclosure;
[0017] Figure 3is a block diagram showing an electronic device according to an embodiment of the present disclosure;
[0018] Figure 4 shows the data flow between a processor and a touch screen display according to an embodiment of the present disclosure;
[0019] Figure 5 shows a resampling operation performed based on interpolation and extrapolation when the information transmission period and the resampling period do not have an integer multiple relationship according to an embodiment of the present disclosure;
[0020] Figure 6 shows a resampling operation performed based on an interpolation method when an information transmission time period and a resampling time period have an integer multiple relationship according to an embodiment of the present disclosure;
[0021] Figure 7 shows a resampling operation performed based on an extrapolation method when an information transmission time period and a resampling time period have an integer multiple relationship according to an embodiment of the present disclosure;
[0022] Figure 8 A method for determining a resampling time of resampled data based on a moving speed associated with a touch event according to an embodiment of the present disclosure is shown;
[0023] Fig. 9 A method for determining resampled data based on a moving speed associated with a touch event according to an embodiment of the present disclosure is shown;
[0024] Fig.10 An embodiment of the method of changing the method of acquiring resampled data by controlling the resample time is shown if the information transmission time period and the resample time period have an integer multiple relationship according to an embodiment of the present disclosure;
[0025] Fig.11 An embodiment of acquiring resampled data in response to delayed information transmission when the information transmission time period and the resampled time period do not have an integer multiple relationship according to an embodiment of the present disclosure is shown;
[0026] Fig.12 An operation sequence of an electronic device performing a resampling operation based on data received from a touch screen display according to an embodiment of the present disclosure is shown;
[0027] Fig.13 An operation sequence of an electronic device performing a resampling operation based on data received from a touch screen display according to an embodiment of the present disclosure is shown;
[0028] Fig.14 An operation sequence of an electronic device performing a resampling operation based on data received from a touch screen display according to an embodiment of the present disclosure is shown; and
[0029] Fig.15 An operation sequence of an electronic device performing a resampling operation based on data received from a touch screen display according to an embodiment of the present disclosure is shown.
[0030] Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures. DETAILED DESCRIPTION
[0031] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the various embodiments of the present disclosure as defined by the claims and their equivalents. It includes various specific details to assist in understanding, but these specific details are considered to be exemplary only. Therefore, it will be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the various embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and configurations may be omitted for clarity and brevity.
[0032] The terms and words used in the following description and claims are not limited to the bibliographical meanings, but are merely used by the inventor to enable a clear and consistent understanding of the present disclosure. Therefore, it will be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustrative purposes only and not for the purpose of limiting the present disclosure as defined by the appended claims and their equivalents.
[0033] It should be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component surface" includes reference to one or more of such surfaces.
[0034] Figure 1 is a block diagram illustrating an electronic device (101) in a network environment (100) according to various embodiments. Figure 1, an electronic device (101) in a network environment (100) may communicate with an electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with an electronic device (104) or a server (108) via a second network (199) (e.g., a long-range wireless communication network). According to an embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to an embodiment, the electronic device (101) may include a processor (120), a memory (130), an input device (150), a sound output device (155), a display device (160), an audio module (170), a sensor module (176), an interface (177), a tactile module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a user identification module (SIM) (196), or an antenna module (197). In some embodiments, at least one of the components (e.g., the display device (160) or the camera module (180)) may be omitted from the electronic device (101), or one or more other components may be added to the electronic device (101). In some embodiments, some of the components may be implemented as a single integrated circuit. For example, the sensor module (176) (e.g., a fingerprint sensor, an iris sensor, or an illumination sensor) may be implemented to be embedded in the display device (160) (e.g., a display).
[0035] The processor (120) may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device (101) connected to the processor (120), and may perform various data processing or calculations. According to one embodiment, as at least part of the data processing or calculation, the processor (120) may load commands or data received from another component (e.g., sensor module (176) or communication module (190)) into a volatile memory (132), process the commands or data stored in the volatile memory (132), and store the resultant data in a non-volatile memory (134). According to an embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit (CPU) or an application processor (AP)) and an auxiliary processor (123) (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is independent of or combined with the main processor (121) in operation. Additionally or alternatively, the auxiliary processor (123) may be adapted to consume less power than the main processor (121), or to be adapted to be specifically used for a specified function. The auxiliary processor (123) may be implemented as separate from the main processor (121), or as part of the main processor (121).
[0036] When the main processor (121) is in an inactive (e.g., sleep) state, the auxiliary processor (123) may control at least some of the functions or states related to at least one component (e.g., display device (160), sensor module (176), or communication module (190)) among the components of the electronic device (101) (not the main processor (121)), or when the main processor (121) is in an active state (e.g., running an application), the auxiliary processor (123) may control at least some of the functions or states related to at least one component (e.g., display device (160), sensor module (176), or communication module (190)) among the components of the electronic device (101) together with the main processor (121). According to an embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., a camera module (180) or a communication module (190)) that is functionally related to the auxiliary processor (123).
[0037] The memory (130) may store various data used by at least one component of the electronic device (101), such as the processor (120) or the sensor module (176). The various data may include, for example, software (such as the program 140) and input data or output data for commands related thereto. The memory (130) may include a volatile memory (132) or a non-volatile memory (134).
[0038] The program 140 may be stored as software in the memory ( 130 ), and may include, for example, an operating system (OS) 142 , middleware 144 , or applications 146 .
[0039] The input device (150) may receive commands or data from outside the electronic device (101) (e.g., a user) to be used by other components of the electronic device (101) (e.g., the processor (120)). The input device (150) may include, for example, a microphone, a mouse, or a keyboard.
[0040] The sound output device (155) can output a sound signal to the outside of the electronic device (101). The sound output device (155) may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as playing multimedia or playing records, and the receiver can be used for incoming calls. Depending on the embodiment, the receiver can be implemented as a separate part from the speaker, or as a part of the speaker.
[0041] The display device (160) can visually provide information to the outside of the electronic device (101) (e.g., a user). The display device (160) may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. According to an embodiment, the display device (160) may include a touch circuit adapted to detect a touch or a sensor circuit (e.g., a pressure sensor) adapted to measure the strength of a force caused by a touch.
[0042] The audio module (170) can convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module (170) can obtain sound via the input device (150), or output sound via a sound output device (155) or an earphone of an external electronic device (e.g., electronic device (102)) directly (e.g., wired) or wirelessly connected to the electronic device (101).
[0043] The sensor module (176) can detect an operating state (e.g., power or temperature) of the electronic device (101) or an environmental state (e.g., a user's state) outside the electronic device (101), and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module (176) may include, for example, a gesture sensor, a gyroscope sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.
[0044] The interface (177) may support one or more specific protocols to be used to connect the electronic device (101) directly (e.g., wired) or wirelessly to an external electronic device (e.g., electronic device (102)). According to an embodiment, the interface (177) may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
[0045] The connection end (178) may include a connector, wherein the electronic device (101) can be physically connected to an external electronic device (e.g., the electronic device (102)) via the connector. According to an embodiment, the connection end (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0046] The haptic module (179) may convert the electrical signal into a mechanical stimulus (eg, vibration or motion) or an electrical stimulus that can be recognized by the user via his sense of touch or kinesthetic sense. According to an embodiment, the haptic module (179) may include, for example, a motor, a piezoelectric element, or an electrical stimulator.
[0047] The camera module (180) may capture a still image or a moving image. According to an embodiment, the camera module (180) may include one or more lenses, an image sensor, an image signal processor, or a flash.
[0048] The power management module (188) may manage power supply to the electronic device (101). According to an embodiment, the power management module (188) may be implemented as at least part of a power management integrated circuit (PMIC), for example.
[0049] The battery (189) can power at least one component of the electronic device (101). According to an embodiment, the battery (189) can include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0050] The communication module (190) may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and perform communication via the established communication channel. The communication module (190) may include one or more communication processors capable of operating independently from the processor (120) (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. According to an embodiment, the communication module (190) may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with an external electronic device via a first network (198) (e.g., a short-range communication network such as Bluetooth, Wireless Fidelity (Wi-Fi) Direct, or Infrared Data Association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a cellular network, the Internet, or a computer network (e.g., a LAN or a Wide Area Network (WAN))). These various types of communication modules can be implemented as a single component (e.g., a single chip), or these various types of communication modules can be implemented as multiple components (e.g., multiple chips) separated from each other. The wireless communication module 192 can identify and authenticate the electronic device (101) in a communication network (such as the first network (198) or the second network (199)) using user information (e.g., an International Mobile Subscriber Identity (IMSI)) stored in the user identification module (196).
[0051] The antenna module (197) can transmit or receive signals or power to or from the outside of the electronic device (101) (e.g., an external electronic device). According to an embodiment, the antenna module (197) may include one or more antennas, and therefore, at least one antenna suitable for a communication scheme used in a communication network (such as a first network (198) or a second network (199)) can be selected by, for example, the communication module (190) (e.g., the wireless communication module 192). Then, signals or power can be transmitted or received between the communication module (190) and the external electronic device via the selected at least one antenna.
[0052] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, a general purpose input output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.
[0053] According to an embodiment, a command or data may be sent or received between the electronic device (101) and the external electronic device (104) via a server (108) connected to the second network (199). Each of the electronic device (102) and the electronic device (104) may be a device of the same type as the electronic device (101), or a device of a different type from the electronic device (101). According to an embodiment, all or some operations to be executed on the electronic device (101) may be executed in one or more of the external electronic device (102), the external electronic device (104), or the server (108). For example, if the electronic device (101) should automatically execute a function or service or should execute a function or service in response to a request from a user or another device, the electronic device (101) may request the one or more external electronic devices to execute at least part of the function or service instead of executing the function or service, or the electronic device (101) may request the one or more external electronic devices to execute at least part of the function or service in addition to executing the function or service. The one or more external electronic devices that receive the request may execute the requested at least part of the function or service, or execute another function or another service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may provide the result as at least a partial reply to the request with or without further processing the result. To this end, for example, cloud computing technology, distributed computing technology, or client-server computing technology may be used.
[0054] The electronic device according to various embodiments may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. According to an embodiment of the present disclosure, the electronic device is not limited to those electronic devices described above.
[0055] It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but include various changes, equivalents or alternative forms for the corresponding embodiments. For the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that the nouns in the singular form corresponding to the term may include one or more things unless the relevant context clearly indicates otherwise. As used herein, each of the phrases such as "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C" and "at least one of A, B or C" may include all possible combinations of items listed together with the corresponding one of the multiple phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish the corresponding component from another component, and do not limit the component in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “combined with another element (e.g., the second element)”, “combined to another element (e.g., the second element)”, “connected with another element (e.g., the second element)”, or “connected to another element (e.g., the second element)” when the terms “operably” or “communicatively” are used or when the terms “operably” or “communicatively” are not used, it means that the element may be directly (e.g., wired) connected to the other element, wirelessly connected to the other element, or connected to the other element via a third element.
[0056] As used herein, the term "module" may include units implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuit"). A module may be a single integrated component adapted to perform one or more functions or a minimum unit or portion of the single integrated component. For example, according to an embodiment, a module may be implemented in the form of an application specific integrated circuit (ASIC).
[0057] The various embodiments described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device (101)). For example, under the control of a processor, a processor (e.g., processor (120)) of the machine (e.g., electronic device (101)) may call at least one of the one or more instructions stored in the storage medium and execute the at least one instruction with or without the use of one or more other components. This enables the machine to operate to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. The term "non-transitory" only means that the storage medium is a tangible device and does not include signals (e.g., electromagnetic waves), but the term does not distinguish between data being semi-permanently stored in the storage medium and data being temporarily stored in the storage medium.
[0058] According to an embodiment, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be published in the form of a machine-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or may be published online (e.g., downloaded or uploaded) via an application store (e.g., Play StoreTM), or may be distributed (e.g., downloaded or uploaded) directly between two user devices (e.g., smart phones). If published online, at least part of the computer program product may be temporarily generated, or at least part of the computer program product may be at least temporarily stored in a machine-readable storage medium (such as a manufacturer's server, an application store's server, or a memory of a forwarding server).
[0059] According to various embodiments, each component (e.g., module or program) in the above-mentioned components may include a single entity or multiple entities. According to various embodiments, one or more components in the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each component in the multiple components in the same or similar manner as a corresponding component in the multiple components before integration. According to various embodiments, the operations performed by a module, program or another component may be performed sequentially, in parallel, repeatedly or in a heuristic manner, or one or more operations in the operations may be run or omitted in different orders, or one or more other operations may be added.
[0060] Figure 2 An appearance of an electronic device according to an embodiment of the present disclosure is shown.
[0061] Reference Figure 2 , the electronic device 101 may include a touch screen display 210. The touch screen display 210 may display content and receive touch input from a user. For example, the touch screen display 210 may receive touch input from a user through a body part of the user (e.g., a finger 220) or a digital pen 230.
[0062] According to an embodiment, the touch input received from the user may include at least one of the first touch event 241, the second touch event 242, the third touch event 243, and / or the fourth touch event 244. One touch event may correspond to a specific time and a specific position. For example, the first touch event 241 may be a touch event input to a first position at a first time, and the second touch event 242 may be a touch event input to a second position at a second time. At least one of the input time and input position of the second touch event 242 may actually be different from at least one of the input time and input position of the first touch event 241.
[0063] According to an embodiment, the touch screen display 210 may receive a touch input including a single touch event, such as a tap input. In another example, the touch screen display 210 may receive a touch input including multiple discontinuous touch events, such as a multi-touch input. In another example, the touch screen display 210 may receive a touch input including multiple continuous touch events, such as a drag input.
[0064] According to an embodiment, the touch screen display 210 may acquire information about one or more touch events. The information about one or more touch events may include information about the location (or coordinates) at which each of the one or more touch events is generated and / or information about the time at which each of the one or more touch events is generated.
[0065] According to an embodiment, the touch screen display 210 may acquire information about at least some of the one or more touch events. For example, the touch screen display 210 may acquire information about a plurality of coordinates corresponding to at least some of the one or more touch events at predetermined (or regular) time intervals. In another example, the touch screen display 210 may acquire information about a plurality of coordinates corresponding to at least some of the one or more touch events at irregular time intervals.
[0066] According to an embodiment, when the touch input includes a plurality of continuous touch events (such as a drag input), the touch screen display 210 may acquire information about some of the plurality of continuous touch events (e.g., coordinate information of the first touch event 241 to the fourth touch event 244). From the perspective of data processing and current consumption, acquiring all information about the plurality of continuous touch events is burdensome, and thus the electronic device 101 may periodically or irregularly acquire only information about certain touch events.
[0067] Figure 3 is a block diagram illustrating an electronic device according to an embodiment of the present disclosure.
[0068] Reference Figure 3 , the electronic device 101 according to various embodiments of the present disclosure may include at least one of a touch screen display 210 , a memory 310 , and / or a processor 330 .
[0069] The touch screen display 210 can output a screen. For example, the touch screen display 210 can output an execution screen of at least one application executed in the electronic device 201. The touch screen display 210 may include a display panel for outputting a screen. The touch screen display 210 may receive user input. For example, the touch screen display 210 may detect a touch input through at least a body part of the user. The touch screen display 210 may further include a touch panel for detecting touch input. In another example, the touch screen display 210 may include a digitizer panel (or digitizer module) for detecting user input through an electronic pen or a digitizer.
[0070] The touch screen display 210 may acquire information about one or more touch events included in the user input, and transmit the acquired information about the one or more touch events to the processor 330. The information about the one or more touch events may include information about the location (or coordinates) at which each of the one or more events is generated and / or information about the time at which each of the one or more events is generated. The touch screen display 210 may include a touch screen panel IC (TSP IC) (not shown), which may transmit information about the one or more touch events (e.g., raw data) to the processor 330 or a TSP driver (not shown) included in the processor 330.
[0071] The touch screen display 210 may acquire information about one or more touch events according to a predetermined time period (or at a predetermined rate) and transmit the acquired information to the processor 330. For example, the touch screen display 210 may acquire and transmit information about one or more touch events according to a first time period.
[0072] According to an embodiment, the information acquisition time period or information transmission time period of the touch screen display 210 may be changed according to the situation, or may be configured (or determined) differently. For example, the information acquisition time period or information transmission time period of the touch screen display 210 may vary depending on the type of input device (e.g., finger or digital pen). In another example, the information acquisition time period or information transmission time period of the touch screen display 210 may vary depending on the hardware / software specifications of the touch screen display 210.
[0073] The memory 310 may include a volatile memory and / or a non-volatile memory. The memory 310 may be Figure 1 The memory 130 shown. The memory 310 may store commands, data, one or more applications or programs. For example, the memory 310 may store a program by which the processor 330 acquires resampled data based on data about one or more touch events transmitted from the touch screen display 210. In another example, the memory 310 may store a program for identifying a movement speed associated with one or more touch events (or associated with a touch input including one or more touch events) based on data about one or more touch events transmitted from the touch screen display 210, and determining a resample time based on the identified movement speed. The memory 310 may store an operating system of the electronic device 101, and may store a framework included in the operating system.
[0074] The processor 330 may be electrically or operatively connected to the touch screen display 210 and / or the memory 310. The processor 330 may control the touch screen display 210 and / or the memory 310.
[0075] According to an embodiment, the processor 330 may receive information about one or more touch events from the touch screen display 210. The processor 330 may receive information about one or more touch events from the touch screen display 210 according to a predetermined time period (e.g., a first time period) or irregularly. The information transmission time period of the touch screen display 210 may vary depending on the type of the input device, so the processor 330 may process the information about one or more touch events received from the touch screen display 210 so as to be suitable for use by the currently executed application, and then use the information. For example, the processor 330 may acquire resampled data according to a second time period different from the first time period based on the information about one or more touch events received from the touch screen display 210 according to the first time period, and provide the acquired resampled data to at least one application being executed. Resampling may be an operation for recontrolling the time interval of the resampled data according to a fixed time period (or irregularly) and changing the value of the data according to the recontrolled time interval. For example, when the information transmission time period (e.g., the first time period) corresponds to 90 Hz and the resampling time period corresponds to 60 Hz, the processor 330 can receive information about one or more touch events from the touch screen display 210 at a time interval of approximately 1.11 ms, and obtain resampled data for recontrol based on the received information at a time interval of 16.6 ms.
[0076] According to an embodiment, the resampled data may include information about a specific time and / or a specific position (or coordinates), or may correspond to a specific time and / or a specific position. Information about one or more touch events as the original data of the resampled data may include information about the time and position (or coordinates), and the resampling operation may be an operation for recontrolling the time interval and changing only the value of the data according to the recontrolled time interval.
[0077] According to an embodiment, acquiring the resampled data according to the second time period may mean that the time interval corresponding to each resampled data is the second time period. In another embodiment, acquiring the resampled data according to the second time period may mean that each resampled data is included in a time interval (e.g., a frame) divided into a predetermined interval, and the time interval corresponds to the second time period. For example, the resampled data may include first resampled data corresponding to 8.3ms and second resampled data corresponding to 31ms, the first resampled data may be included in a first frame (0 to 16.6ms), and the second resampled data may be included in a second frame (16.6ms to 33.2ms). The time interval between the first resampled data and the second resampled data does not correspond to the second time period, but in this case, the first resampled data and the second resampled data may be acquired according to the second time period.
[0078] According to an embodiment, the processor 330 may change at least a part of the resampling operation in consideration of the relationship between the information transmission time period (e.g., the first time period) and the resampling time period (e.g., the second time period). Depending on whether the first time period and the second time period have an integer multiple relationship (e.g., the first time period is 120Hz and the second time period is 60Hz), the processor 330 may perform a specific operation or may not perform a specific operation. For example, when the first time period and the second time period have an integer multiple relationship, the processor 330 may identify the moving speed associated with the touch event based on the data about the touch event received from the touch screen display 210. However, when the first time period and the second time period do not have an integer multiple relationship, the processor 330 may omit the operation for identifying the moving speed associated with the touch event. In another example, when the first time period and the second time period do not have an integer multiple relationship (e.g., the first time period is 90Hz and the second time period is 60Hz), the processor 330 may determine whether the time when the data about the touch event is transmitted is later than the expected time. However, when the first time period and the second time period have an integer multiple relationship, the processor 330 may omit the above operation. The following will refer to Figures 5 to 7 The reason why the resampling operation varies depending on whether the first time period and the second time period have an integer multiple relationship is described in detail.
[0079] Figure 4 The data flow between a processor and a touch screen display according to an embodiment of the present disclosure is shown.
[0080] Reference Figure 4, the touch screen display 210 may transmit information about one or more touch events to the processor 330. According to an embodiment, the touch screen panel IC 440 included in the touch screen display may transmit information about one or more touch events (e.g., raw data) to the TSP driver 410 corresponding to the kernel layer of the processor 330.
[0081] The TSP driver 410 may transmit information about one or more touch events to the input framework 420 corresponding to the framework layer. The TSP driver 410 may transmit information about one or more touch events to the input framework 420 according to a predetermined time period (eg, a first time period).
[0082] The input framework 420 may be at least a portion of a framework for executing resampling logic. The input framework 420 may acquire resampled data by performing resampling according to a second time period different from an information transfer time period (e.g., a first time period) of the TSP driver 410. The input framework 420 may provide at least the acquired portion of the resampled data to at least one application 430 executed by the processor 330. Although not shown, the processor 330 may include a first processor and a second processor, and the input framework included in the first processor may provide the resampled data to at least one application executed by the second processor.
[0083] The application 430 may perform at least one function based on the information received from the input framework 420. For example, the screen lock application may release the lock mode based on the information received from the input framework 420.
[0084] According to various embodiments of the present disclosure, an electronic device (e.g., electronic device 101) may include: a touch screen display (e.g., touch screen display 210), which is configured to transmit data about one or more touch events to a processor (e.g., processor 330) based on a first time period (e.g., first time period 610); and a processor, which is configured to use the received data to obtain resampled data based on a second time period (e.g., second time period 620), wherein the second time period is an integer multiple of the first time period, wherein the processor may be configured to use the received data to identify a movement speed associated with the touch event, determine a resampling time for obtaining the resampled data based on the identified movement speed (e.g., resampling time 626), and obtain the resampled data based on the determined resampling time.
[0085] According to various embodiments, the touch event may include a first touch event and a second touch event generated after the first touch event, and the data about the touch event may include data about coordinates and times at which the first touch event and the second touch event are generated.
[0086] According to various embodiments, the resampling time may be included in a time interval having a predetermined length (e.g., the first frame 640), the time for sending data about a first touch event (e.g., the first touch event transmission time 621) and the time for sending data about a second touch event (e.g., the second touch event transmission time 622) belong to the time interval, and the resampling data may be used as data representing the time interval.
[0087] According to various embodiments, the processor can be configured to obtain resampled data by interpolating or extrapolating the coordinates of generating the first touch event (e.g., the coordinates 631 corresponding to the first touch event) and the coordinates of generating the second touch event (e.g., the coordinates 632 corresponding to the second touch event) according to the resampling time.
[0088] According to various embodiments, the processor can be configured to: when the identified moving speed is within a first range, determine that the resampling time is the time to send the second touch event; when the identified moving speed is within a second range, determine that the resampling time is the middle time between the time to send the first touch event and the time to send the second touch event.
[0089] According to various embodiments, when the identified movement speed is within a third range, the processor can be configured to determine that the resampling time is the time between the time of sending the first touch event and the time of sending the second touch event, and the relative position of the time between the determined time of sending the first touch event and the time of sending the second touch event corresponds to the relative position of the identified movement speed within the third range.
[0090] According to various embodiments, when the identified moving speed satisfies a predetermined condition while resampled data is acquired only by repeatedly performing an extrapolation operation, the processor may be configured to control the resample time so that the resampled data is acquired based on an interpolation method.
[0091] According to various embodiments, the moving speed may include a first moving speed corresponding to a first time interval and a second moving speed corresponding to a second time interval after the first time interval, and under predetermined conditions, the first moving speed may be greater than or equal to a first predetermined value, and the second moving speed may be equal to or less than a second predetermined value.
[0092] According to various embodiments of the present disclosure, an electronic device (e.g., electronic device 101) may include: a touch screen display (e.g., touch screen display 210), which is configured to transmit data about a touch event to a processor (e.g., processor 330) based on a first time period (e.g., first time period 510); a processor, which is configured to use the received data to obtain resampled data based on a second time period (e.g., second time period 520), wherein the second time period does not correspond to an integer multiple of the first time period, wherein the processor may be configured to identify that data about a first touch event that was scheduled to be sent at a first time (e.g., the original transmission time) is sent at a second time (e.g., the delayed time), correct the data about the first touch event according to the first time, and use the corrected data about the first touch event to obtain resampled data.
[0093] According to various embodiments, the second touch event may be a touch event transmitted to the processor at an earlier time than the first time, and the processor may be configured to obtain resampled data by interpolating or extrapolating the coordinates generating the second touch event and the coordinates corresponding to the corrected first touch event.
[0094] Figure 5 A resampling operation performed based on the interpolation method and the extrapolation method when the information transmission period and the resampling period do not have an integer multiple relationship according to an embodiment of the present disclosure is shown.
[0095] Reference Figure 5 , information about one or more touch events is represented on a time axis, and information about one or more touch events can be represented on a time-coordinate axis. The coordinate axis on the time-coordinate axis can indicate a moving distance value in a predetermined direction, which can be implemented by a two-dimensional touch screen display, such as an x direction or a y direction.
[0096] According to an embodiment, information about one or more touch events expressed on a time axis or a time-coordinate axis may include two types of information. For example, information received from the touch screen display 210 according to a predetermined information transmission time period (e.g., a first time period 510) is represented by a black circle. For example, the information received from the touch screen display 210 may include information about a time corresponding to a first touch event (a time when the first touch event is generated or a time determined by adding a predetermined time to a time when the first touch event is generated) and / or information about a location (e.g., coordinates) at which the first touch event is generated.
[0097] Reference Figure 5, the processor 330 may identify information about a first touch event transmission time 521, a second touch event transmission time 522, a third touch event transmission time 523, and / or a fourth touch event transmission time 524. The first touch event transmission time 521 may be a time at which information about a first touch event is transmitted from the touch screen display 210 to the processor 330.
[0098] In another example, the processor 330 may receive information about coordinates 531 corresponding to the first touch event, coordinates 532 corresponding to the second touch event, and / or coordinates 533 corresponding to the third touch event from the touch screen display 210 according to the first time period. Figure 5 In, the first time period may correspond to, for example, 90 Hz.
[0099] In another example, the processor 330 may obtain the resampled data according to a predetermined resampled time period (eg, the second time period 520). The resampled data obtained according to the predetermined resampled time period is represented by a hollow circle. Figure 5 , the processor 330 may acquire resampled data based on the information about the first touch event transmission time 521 to the fourth touch event transmission time 524. For example, the processor 330 may acquire the first resampled data and / or the second resampled data. The processor 330 may acquire information about the resampled time 526 of the first resampled data and / or the resampled time 527 of the second resampled data. Figure 5 The second time period may correspond to, for example, 60 Hz.
[0100] The processor 330 may acquire information about coordinates 536 corresponding to the first resampled data and coordinates 537 corresponding to the second resampled data.
[0101] Hereinafter, a method of acquiring information about the resampling time 526 of the first resampled data and the resampling time 527 of the second resampled data and information about the coordinates 536 corresponding to the first resampled data and the coordinates 537 corresponding to the second resampled data will be described.
[0102] According to an embodiment, the resampled data may be included in each time interval (e.g., frame) divided into predetermined intervals. For example, the first resampled data may be included in the first frame 540, and the second resampled data may be included in the second frame 550. Each piece of resampled data may be used as data representing the frame included in each piece of resampled data.
[0103] According to an embodiment, information about the resampling time of the resampled data included in a specific frame may be determined regardless of information about the transmission time of one or more touch events belonging to the specific frame. 0 and / or end time t 1 Determine the resampling time 526 of the first resampled data belonging to the first frame 540. For example, the resampling time 526 of the first resampled data can be obtained by starting from the end time t of the first frame 540. 1 The resampled time 527 of the second resampled data can be generated by subtracting the first predetermined time 515 from the end time t of the second frame 550. 2 The first predetermined time 515 may be different from the second predetermined time 516.
[0104] In another example, the resampling time 526 of the first resampled data may be obtained by dividing the predetermined time by the start time t of the first frame 540. 0 The time determined by addition.
[0105] According to an embodiment, information about the coordinates of the resampled data belonging to the specific frame may be determined based on information about the coordinates of one or more touch events belonging to the specific frame. For example, coordinates 536 corresponding to the first resampled data belonging to the first frame 540 may be determined based on coordinates 531 corresponding to the first touch event belonging to the first frame 540 and coordinates 532 corresponding to the second touch event. For example, coordinates 536 corresponding to the first resampled data belonging to the first frame 540 may be determined by interpolating the coordinates 531 corresponding to the first touch event belonging to the first frame 540 and the coordinates 532 corresponding to the second event at a predetermined ratio. According to an embodiment, the predetermined ratio may be determined based on a time interval between a first touch event transmission time 521 and a resampled time 526 of the first resampled data and a time interval between the resampled time 526 of the first resampled data and a second touch event transmission time 522. For example, when the time interval between the first touch event transmission time 521 and the resampling time 526 of the first resampled data is 10ms, and the time interval between the resampling time 526 of the first resampled data and the second touch event transmission time 522 is 2ms, the coordinates 536 corresponding to the first resampled data can be determined by interpolating the coordinates 531 corresponding to the first touch event and the coordinates 532 corresponding to the second touch event at a ratio of 5:1.
[0106] According to another embodiment, information about the coordinates of the resampled data belonging to the specific frame may be determined based on information about one or more touch events belonging to the specific frame and the frame before the specific frame. For example, the coordinates 537 corresponding to the second resampled data belonging to the second frame 550 may be determined based on the coordinates 533 corresponding to the third touch event belonging to the second frame 550 and the coordinates 532 corresponding to the second touch event belonging to the first frame 540. For example, the coordinates 537 corresponding to the second resampled data belonging to the second frame 550 may be determined by extrapolating the coordinates 532 corresponding to the second touch event belonging to the first frame 540 and the coordinates 533 corresponding to the third touch event belonging to the second frame 550 at a predetermined ratio. According to an embodiment, the predetermined ratio may be determined according to the time interval between the second touch event transmission time 522 and the resampled time 527 of the second resampled data and the time interval between the third touch event transmission time 523 and the resampled time 527 of the second resampled data.
[0107] According to an embodiment, resampled data representing a specific frame (e.g., first frame 540) may be determined based on information about one or more touch events (e.g., first touch event and second touch), the one or more touch events belonging to one or more frames including a specific frame based on a resampled time (e.g., resampled time 526 of the first resampled data). According to another embodiment, a method of determining resampled data may be based on a time t between a resampled time (e.g., resampled time 526 of the first resampled data) and an end of a specific frame (e.g., first frame 540). 1 t 526 of the first resampled data and the end time t 540 of the first frame 540. 1 t 527 transmitted from the touch screen display 210, the coordinates 536 corresponding to the first resampled data can be determined based on interpolation. In another example, since the resampled time 527 of the first resampled data is different from the time t 527 when the second frame 550 ends, 2 Since no information about the touch event is transmitted from the touch screen display 210 between the resampling time and the frame start time, the coordinates 537 corresponding to the second resampled data may be determined based on extrapolation. Although not shown, the coordinates corresponding to the resampled data may be determined based on whether information about one or more touch events is transmitted between the resampled time and the frame start time, rather than based on whether information about one or more touch events is transmitted between the resampled time and the frame end time.
[0108] like Figure 5As shown, when the information transmission time period of the touch screen display 210 (e.g., the first time period 510) and the resampling time period of the processor 330 (e.g., the second time period 520) do not have an integer multiple relationship, the number of touch events that can be identified in a specific frame is not fixed. For example, information about two touch events can be transmitted from the touch screen display 210 in the first frame 540, and information about one touch event can be transmitted from the touch screen display 210 in the second frame 550. The processor 330 can use different methods of determining the coordinates corresponding to the resampled data according to the number of touch events identified in the specific frame. For example, Figure 5 As shown, the processor 330 may alternately use the interpolation method in the first frame 540 and the extrapolation method in the second frame 550 .
[0109] Figure 6 A resampling operation performed based on the interpolation method when the information transmission period and the resampling period have an integer multiple relationship according to an embodiment of the present disclosure is shown.
[0110] Reference Figure 6 , the processor 330 may identify information about a first touch event transmission time 621 , a second touch event transmission time 622 , a third touch event transmission time 623 , and / or a fourth touch event transmission time 624 .
[0111] In another example, the processor 330 may receive coordinates 631 corresponding to a first touch event, coordinates 632 corresponding to a second touch event, coordinates 633 corresponding to a third touch event, and / or coordinates 634 corresponding to a fourth touch event from the touch screen display 210 according to the first time period. Figure 6 In, the first time period may be, for example, 120 Hz.
[0112] In another example, the processor 330 may acquire the resampled data according to a predetermined resampled time period (e.g., the second time period). The processor 330 may acquire the first resampled data of the first frame 640 and / or the second resampled data of the second frame 650. For example, the processor 330 may acquire information about the resampled time 626 of the first resampled data and the resampled time 627 of the second resampled data. For example, the resampled time of the first resampled data may be obtained by dividing the first resampled data by the end time t of the first frame 640. 1 The time 626 is generated by subtracting the first predetermined time 615. Figure 6 The second time period may be, for example, 60 Hz. The resampling time 627 of the second resampled data may be determined by starting from the end time t of the second frame 650. 2 The first predetermined time 615 may be different from the second predetermined time 616.
[0113] According to an embodiment, the processor 330 may determine information about the coordinates of the resampled data in the same or consistent method (e.g., interpolation) in a plurality of frames including the first frame 640 and the second frame 650. For example, the processor 330 may determine the coordinates 636 of the first resampled data representing the first frame 640 based on the coordinates 631 corresponding to the first touch event and the coordinates 632 corresponding to the second touch event. For example, the processor 330 may determine the coordinates 636 of the first resampled data by interpolating the coordinates 631 corresponding to the first touch event and the coordinates 632 corresponding to the second touch event at a predetermined ratio. According to an embodiment, the predetermined ratio may be determined according to the time interval between the first touch event transmission time 621 and the resampled time 626 of the first resampled data and the time interval between the resampled time 626 of the first resampled data and the second touch event transmission time 622.
[0114] In another example, the processor 330 may determine the coordinates 637 of the second resampled data representing the second frame 650 by interpolating the coordinates 633 corresponding to the third touch event and / or the coordinates 634 corresponding to the fourth touch event at a predetermined ratio.
[0115] exist Figure 6 In the embodiment, the coordinates 636 of the first resampled data representing the first frame 640 can be determined by interpolation, and the coordinates 637 of the second resampled data representing the second frame 650 can also be determined by interpolation. The subsequent frames of the second frame 650 can be determined by the same method.
[0116] Figure 7 A resampling operation performed based on an extrapolation method when an information transmission period and a resampling period have an integer multiple relationship according to an embodiment of the present disclosure is shown.
[0117] Reference Figure 7 , the processor 330 may identify information about a first touch event transmission time 721 , a second touch event transmission time 722 , a third touch event transmission time 723 , and / or a fourth touch event transmission time 724 .
[0118] In another example, the processor 330 may receive information about coordinates 731 corresponding to a first touch event, coordinates 732 corresponding to a second touch event, coordinates 733 corresponding to a third touch event, and / or coordinates 734 corresponding to a fourth touch event from the touch screen display 210 based on the first time period 710. Figure 7 In, the first time period may be, for example, 120 Hz.
[0119] In another example, the processor 330 may acquire resampled data based on a predetermined resampled time period (e.g., the second time period 725). The processor 330 may acquire first resampled data of the first frame 740 and / or second resampled data of the second frame 750. For example, the processor 330 may acquire information about a resampled time 726 of the first resampled data and a resampled time 727 of the second resampled data. Figure 7 The second time period may be, for example, 60 Hz.
[0120] According to an embodiment, the processor 330 may determine information about the coordinates of the resampled data by the same or consistent method (e.g., interpolation) in a plurality of frames including the first frame 740 and the second frame 750. For example, the processor 330 may determine the coordinates 736 of the first resampled data representing the first frame 740 based on the coordinates 731 corresponding to the first touch event and the coordinates 732 corresponding to the second touch event. For example, the processor 330 may determine the coordinates 736 of the first resampled data by extrapolating the coordinates 731 corresponding to the first touch event and the coordinates 732 corresponding to the second touch event at a predetermined ratio. According to an embodiment, the predetermined ratio may be determined according to the time interval between the first touch event transmission time 721 and the resampled time 726 of the first resampled data and the time interval between the resampled time 726 of the first resampled data and the second touch event transmission time 722.
[0121] According to an embodiment, when the coordinates of the first resampled data representing the first frame are determined based on the extrapolation method, the processor 330 may determine the coordinates of the resampled data in the remaining frames including the second frame by the extrapolation method. Figure 7 When the coordinates 736 of the first resampled data representing the first frame 740 are determined by extrapolation, the processor 330 can determine the coordinates 737 of the second resampled data representing the second frame 750 by extrapolation, and can also determine the coordinates of the resampled data in the remaining frames by the same method.
[0122] and Figure 5 Different, can be passed Figure 6 or Figure 7The reason why the coordinates of all resampled data are determined by the same or consistent method (e.g., one of the interpolation method and the extrapolation method) in the processor 330 is that there is an integer multiple relationship (e.g., two) between the information transmission time period of the touch screen display 210 (e.g., the first time period, 60 Hz) and the resampling time period of the processor 330 (e.g., the second time period, 120 Hz). When there is an integer multiple relationship between the information transmission time period and the resampling time period, the number of touch events transmitted from the touch screen display can remain the same even if the frames are different. For example, the number of touch events transmitted from the touch screen display in the first frame 640 or 740 (e.g., two) can be the same as the number of touch events transmitted from the touch screen display in the second frame 650 or 750 (e.g., two). Therefore, the processor 330 can determine the coordinates of all resampled data based only on the interpolation method ( Figure 6 ) or based solely on extrapolation ( Figure 7 ) determines the resampled data in all frames.
[0123] Figure 8 A method for determining a resampling time of resampled data based on a moving speed associated with a touch event according to an embodiment of the present disclosure is shown.
[0124] Reference Figure 8 , the information transmission time period (e.g., the first time period) of the touch screen display 210 and the resampling time period (e.g., the second time period) of the processor 330 may have an integer multiple relationship. Therefore, the number of pieces of information about the touch event included in the predetermined frame may be kept consistent. For example, the first time period may correspond to 60 Hz, and the second time period may correspond to 120 Hz. In this case, the number of pieces of information about the touch event included in the predetermined frame may be kept at 2.
[0125] Figure 8 is a two-dimensional graph having a movement speed associated with a touch event on the x-axis and a parameter for determining a resampling time (hereinafter referred to as alpha (α)) on the y-axis.
[0126] According to an embodiment, the α value may be used to determine the resampling time. The α value may be assigned to a specific frame. For example, the α value may include a first α value or a second α value, the first α value may correspond to the first frame, and the second α value may correspond to the second frame. According to an embodiment, the α value may be a value within a predetermined range. For example, the α value may be a value between 0 and 1 (e.g., 0.8). The α value assigned to a specific frame may be determined by default or may be determined based on a moving speed associated with a touch event included in a specific frame (or a specific frame and a previous frame).
[0127] According to an embodiment, the processor 330 may identify a movement speed associated with one or more touch events. For example, the processor 330 may identify a movement speed associated with a touch event based on information about a plurality of touch events received from the touch screen display 210. The processor 330 may identify a movement speed associated with a touch event based on a time interval between sending two consecutive touch events (e.g., a first touch event and a second touch event) and a coordinate difference therebetween.
[0128] According to an embodiment, the processor 330 may identify whether the moving speed is within a predetermined range. For example, the processor 330 may identify whether the moving speed is included in a low speed interval 810 in which the first moving speed 801 is an upper limit and 0 is a lower limit. In another example, the processor 330 may identify whether the moving speed is included in a high speed interval 820 in which the second moving speed 802 is a lower limit. In another example, the processor 330 may identify whether the moving speed is included in a medium speed interval 830 in which the first moving speed 801 is a lower limit and the second moving speed 802 is an upper limit.
[0129] According to an embodiment, when the moving speed is within the low speed range, the processor 330 may determine that the α value is a first value (e.g., 0.5). When the moving speed is within the high speed range, the processor 330 may determine that the α value is a second value (e.g., 1). As long as the moving speed is within the low speed range, the first value may be determined regardless of the recognized moving speed, and the second value may be determined.
[0130] According to an embodiment, when the moving speed is within the high speed range, the processor 330 may determine that the α value is a third value (e.g., 0.99). For example, the processor 330 may determine that the α value is a third value (e.g., 0.99) that is similar to but not identical to the second value (e.g., 1).
[0131] According to an embodiment, when the moving speed is within the medium speed interval 830, the processor 330 may determine that the α value is the fourth value. The fourth value may be determined in proportion to the identified moving speed. For example, when the first moving speed is 5 and the second moving speed is 10, if the moving speed is identified as 8, the fourth value may be 0.8, and if the moving speed is identified as 9, the fourth value may be 0.9.
[0132] According to an embodiment, the processor 330 may determine the resampling time of a specific frame based on the α value. For example, when the first α value is configured as 0.5, the resampling time of the first frame (e.g., Figure 6 The resampling time 626 of the first resampled data in the first frame may be determined as the first touch event transmission time included in the first frame (eg, Figure 6 The first touch event transmission time 621) and the second touch event transmission time (for example, Figure 6In another example, when the first α value is configured as 1, the resampling time of the first frame can be determined as the second touch event transmission time, regardless of the first touch event transmission time. In another example, when the first α value is configured as a value between 0.5 and 1, the resampling time of the first frame can be configured as a value between the middle time (the middle time between the first touch event transmission time and the second touch event transmission time) and the second touch event transmission time.
[0133] According to an embodiment, the reason for determining the α value assigned to a specific frame based on the moving speed associated with the touch event included in the specific frame is to properly handle the trade-off relationship that must occur in the resampling logic. If the information transmission time period (e.g., 120 Hz) transmitted from the touch screen display 210 to the processor 330 is shorter than the resampling time period (e.g., 60 Hz) of the processor, the processor 330 may regenerate resampled data corresponding to a time different from the time when the information about the touch event is transmitted from the touch screen display 210. According to an embodiment, in order to increase responsiveness, it is necessary to generate resampled data by assigning a higher weighted value to the latest information transmitted from the touch screen display 210. However, if a higher weighted value is assigned to the latest transmitted information, the data variation between the resampled data may become larger. Therefore, in the present disclosure, the α value assigned to the specific frame is determined based on the moving speed associated with the touch event included in the specific frame, so as to handle the trade-off relationship. For example, if the moving speed corresponds to the low-speed interval 810, the processor 330 may configure the α value to be relatively low in order to ensure consistency between the resampled coordinates rather than responsiveness. In another example, if the moving speed corresponds to the high speed interval 820 , the processor 330 may configure the α value to be relatively high so that the user feels faster responsiveness rather than uniformity between the resampled coordinates.
[0134] The α value is used to determine the resampling time. The smaller the α value, the closer the resampling time is to the first touch event transmission time, and the larger the α value, the closer the resampling time is to the second touch event transmission time.
[0135] although Figure 8 It is shown that the α value is consistently maintained at the first value in the low speed interval 810 and is consistently maintained at the second value in the high speed interval 820 , but the α value may be proportionally changed in the low speed interval 810 and the high speed interval 820 , like in the medium speed interval 830 .
[0136] According to an embodiment, information about the first to third values may be stored in the memory 310 .
[0137] Fig. 9A method for determining resampled data based on a moving speed associated with a touch event according to an embodiment of the present disclosure is shown.
[0138] Reference Fig. 9 , the processor 330 may determine the resampled data (e.g., coordinates) corresponding to a specific frame based on the determined resampled time. For example, the processor 330 may determine the coordinates 936, 937, and 938 corresponding to the first resampled data of the first frame 940 by interpolating the coordinates 931 corresponding to the first touch event belonging to the first frame 940 and the coordinates 932 corresponding to the second touch event at a predetermined ratio. For example, when the first α value is determined to be 0.5, the processor 330 may determine the coordinates 936 corresponding to the first resampled data by interpolating the coordinates 931 corresponding to the first touch event and the coordinates 932 corresponding to the second touch event at a ratio of 1:1. In another example, when the first α value is determined to be 0.8, the processor 330 may determine the coordinates 938 corresponding to the first resampled data by interpolating the coordinates 931 corresponding to the first touch event and the coordinates 932 corresponding to the second touch event at a ratio of 4:1. In another example, when the first α value is determined to be 1, the processor 330 may determine coordinates 937 corresponding to the first resampled data by interpolating coordinates 931 corresponding to the first touch event and coordinates 932 corresponding to the second touch event at a ratio of 1:1.
[0139] According to an embodiment, the processor 330 may transmit at least one of the first resampled data and the data about the first touch event and / or the second touch event to at least one application installed in the electronic device. For example, the processor 330 may transmit the first resampled data to the first application, but may not transmit the data about the first touch event or the second touch event used to determine the first resampled data to the first application. In another example, the processor 330 may transmit the first resampled data and the data about the first touch event and the second touch event used to determine the first resampled data to the second application.
[0140] like Figure 8As shown, if the moving speed is within the high speed range, the reason why the processor 330 determines the α value as a third value (e.g., 0.99) similar to the second value (e.g., 1) is that the data transmitted by the processor 330 is different depending on the application. For example, if the first α value is determined as the second value (e.g., 1), the coordinates of the first resampled data are the same as the coordinates corresponding to the second touch event, so that the second application that receives the first resampled data and the data about the second touch event can determine that the user stopped (e.g., maintained) the movement of the touch input during the time between the resampling time of the first resampled data and the second touch event transmission time. Therefore, the processor 330 can configure the first α value to be a third value (e.g., 0.99) similar to but different from the second value (e.g., 1), obtain the first resampled data based on the third value, and transmit the obtained first resampled data together with the data about the first touch event and the second touch event to the second application. Without sending data about the first touch event and the second touch event (for example, in the case of a first application), the processor 330 may acquire first resampled data based on a first α value configured as a first value (for example, 1), and transmit the acquired first resampled data to the application.
[0141] Fig.10 An embodiment of the present disclosure is shown in which, if the information transmission period and the resampling period have an integer multiple relationship, an embodiment of a method of acquiring resampled data is changed by controlling the resampling time.
[0142] Reference Fig.10, the first touch event transmission time 1021, the second touch event transmission time 1022, the original time 1023 and the delay time 1024 can be received in the first frame 1040 and the second frame 1050. The information transmission time period (e.g., the first time period) of the touch screen display 210 can correspond to 120Hz, and the resampling time period (e.g., the second time period) of the processor 330 can correspond to 60Hz, so there can be an integer multiple relationship between the two time periods. Therefore, each frame can correspond to a predetermined number of touch events (e.g., two). For example, the first frame 1040 corresponds to the first touch event and the second touch event, and the second frame 1050 can correspond to the third touch event and the fourth touch event. In addition, resampling data can be determined for each frame. For example, the processor 330 can determine the first resampling data corresponding to the first frame 1040 and the second resampling data corresponding to the second frame 1050. The method of determining the resampling data of each frame can be the same (e.g., extrapolation). For example, the processor 330 may determine the coordinates 1036A corresponding to the first resampled data by extrapolating the coordinates 1031A corresponding to the first touch event and the coordinates 1032A corresponding to the second touch event included in the first frame 1040 at a predetermined ratio. The predetermined ratio may be determined according to the first resampled time 1026A or the first α value corresponding to the first frame. Similarly, the processor 330 may determine the coordinates 1037A corresponding to the second resampled data by extrapolating the coordinates 1033A corresponding to the third touch event and the coordinates 1034A corresponding to the fourth touch event included in the second frame 1040 at a predetermined ratio.
[0143] Reference Fig.10, the moving speed of the user's touch input may be relatively higher in the first frame 1040 than in the second frame 1050. It can be noted that the change 1060 on the coordinate axis in the first frame 1040 is greater than the change 1065 on the coordinate axis in the second frame 1050. As described above, if a continuous low-speed touch input is performed after a high-speed touch input, the processor 300 may identify a direction different from the user's desired direction as a touch direction (overshoot phenomenon). From the trend of the coordinates 1031A corresponding to the first touch event, the coordinates 1032A corresponding to the second touch event, the coordinates 1033A corresponding to the third touch event, and the coordinates 1034A corresponding to the fourth touch event, it can be noted that the user performs a touch input at a relatively high speed and then performs a touch input at a relatively low speed. For example, the user quickly drags along the x-axis direction and then maintains the touch input without removing the user's finger from the screen. In this case, the direction desired by the user is the x-axis direction, but the processor 330 may identify the direction opposite to the x-axis direction desired by the user as the touch direction. The processor 330 may recognize that the user performs a touch input in a direction 1080 opposite to the x-axis direction from the trends of the coordinates 1036A of the first resampled data of the first frame 1040 and the coordinates 1037A of the second resampled data of the second frame 1050 .
[0144] The root cause of the above error is that the first resampled data (coordinates) and / or the second resampled data (coordinates) are determined based on the extrapolation method. Unlike the interpolation method, the extrapolation method regenerates the virtual coordinates based on the coordinates actually transmitted from the touch screen display 210. Therefore, if the user's touch input moves quickly and then stops suddenly, the processor 330 may recognize a direction different from the direction expected by the user.
[0145] In order to correct the error, the processor 330 may change the first resampling time (or the first α value) of the first resampled data of the first frame 1040 and / or the second resampled time (or the second α value) of the second resampled data of the second frame 1050. For example, the processor 330 may change the first resampled time (1026A→1026B) of the first resampled data, and change the second resampled time (1027A→1027B) of the second resampled data. For example, if the moving speed of the user touch input satisfies a predetermined condition, the processor 300 may change the resampling time so that the coordinates of the first resampled data and the second resampled data are determined based on interpolation rather than extrapolation. For example, if the moving speed of the user touch input in the first frame 1040 is greater than or equal to the first predetermined value, and the moving speed of the user touch input in the second frame 1050 is equal to or less than the second predetermined value, the processor 330 may change the resampling time so that the coordinates of the first resampled data and the second resampled data are determined based on interpolation rather than extrapolation.
[0146] After changing the resampling time, the processor 330 may determine the coordinates 1036B of the first resampled data and the coordinates 1037B of the second resampled data based on the changed resampled time. For example, the processor 330 may determine the coordinates 1036B of the first resampled data by interpolating the coordinates 1031B corresponding to the first touch event and the coordinates 1032B corresponding to the second touch event at a first ratio. The first ratio may be determined according to the first resampled time 1026B. The processor 330 may determine the coordinates 1037B of the second resampled data by interpolating the coordinates 1033B corresponding to the third touch event and the coordinates 1034B corresponding to the fourth touch event at a second ratio. The second ratio may be determined according to the second resampled time 1027B. The processor 330 may recognize that the user has performed a touch input along the x-axis direction 1070 from the trend of the changed coordinates 1036B of the first resampled data and the changed coordinates 1037B of the second resampled data.
[0147] Fig.11 An embodiment of acquiring resampled data in response to delayed information transmission when the information transmission period and the resampled period do not have an integer multiple relationship according to an embodiment of the present disclosure is shown.
[0148] Reference Fig.11 , the first touch event transmission time 1121, the second touch event transmission time 1122, the original third event touch transmission time 1123, and the delayed third event touch transmission time 1124 are shown in the first frame 1140 and the second frame 1150. The information transmission time period of the touch screen display 210 (e.g., the first time period including the resampling time 1126) may correspond to 90 Hz, and the resampling time period of the processor 330 (e.g., the second time period including the resampling time 1127) may correspond to 60 Hz, and therefore, the two time periods may not have an integer multiple relationship. Therefore, each frame may correspond to a different number of touch events. For example, the first frame 1140 may correspond to two touch events (e.g., the first touch event and the second touch event), and the second frame 1150 may correspond to one touch event (e.g., the third touch event). The processor 330 may determine the resampled data of each frame based on interpolation or extrapolation. For example, the processor 330 may determine the coordinates 1136 of the first resampled data of the first frame 1140 based on the interpolation method, and may also determine the coordinates 1137A of the second resampled data of the second frame 1150 based on the interpolation method.
[0149] Reference Figure 5 , with a similar Fig.11The processor 330 determines the coordinates 536 of the first resampled data based on the interpolation method, and determines the coordinates 537 of the second resampled data based on the extrapolation method. Figure 5 In an embodiment, the processor 330 alternately uses interpolation and extrapolation to determine the coordinates of the resampled data. On the other hand, the reason why the coordinates 1136 of the first resampled data and the coordinates 1137A of the second resampled data are determined based on the interpolation method is that the information corresponding to the third touch event (e.g., the coordinates 1134 corresponding to the first touch event) is sent with a delay (1123→1124). As described above, when information about a touch event is transmitted from the touch screen display 210 to the processor 330 with a delay, the resampled data can be acquired based on a method (e.g., interpolation) different from the method (e.g., extrapolation) that should have been used initially. Therefore, the processor 330 can correct the delay time in order to prevent errors and acquire more accurate resampled data. Detailed operations and descriptions will be provided hereinafter.
[0150] The processor 330 may identify that the coordinate information corresponding to the third touch event is not received at the original third touch event transmission time 1123. The processor 330 may identify the original third touch event transmission time 1123 based on the information transmission time period of the touch screen and the second touch event transmission time 1122, and identify that the coordinate information corresponding to the third touch event is received at the identified original third touch event transmission time 1123.
[0151] The processor 330 may identify that coordinate information corresponding to the third touch event is received at the delayed third event touch transmit time 1124. The processor 330 may identify delayed coordinates 1134 corresponding to the third touch event received at the delayed third event touch transmit time 1124.
[0152] According to an embodiment, processor 330 may determine corrected coordinates 1133 corresponding to the third touch event after coordinates 1131 and 1132. Processor 330 may determine corrected coordinates 1133 corresponding to the third touch event by making the same coordinates as delayed coordinates 1134 corresponding to the third touch event correspond to original third touch event transmission time 1123.
[0153] The processor 330 may determine the corrected second resampled data 1137B based on the corrected coordinates 1133 corresponding to the third touch event. The processor 330 may determine the corrected second resampled data 1137B by extrapolating the coordinates 1132 corresponding to the second touch event and the corrected coordinates 1133 corresponding to the third touch event at a predetermined ratio. It may be noted that the second resampled data 1137A before correction and the second resampled data 1137B after correction are distinguished from each other.
[0154] Fig.12 An operation of an electronic device performing a resampling operation based on data received from a touch screen display according to an embodiment of the present disclosure is illustrated.
[0155] Fig.12 The operations shown may be performed by the electronic device 101 or the processor 330 of the electronic device. Fig.12 The operation shown.
[0156] Reference Fig.12 In operation 1210, the processor 330 may identify an information transmission time period of the touch screen display 210. For example, the processor 330 may identify whether data regarding a touch event is transmitted from the touch screen display 210 to the processor 330 according to a predetermined time period. If data regarding a touch event is transmitted according to a predetermined time period, the processor 330 may identify a time period for transmitting data regarding the touch event.
[0157] According to an embodiment, the processor 330 may identify whether a transmission time period (reporting rate) supported by the TSP IC 440 is clearly identified.
[0158] In another example, if the report rate supported by the TSP IC 440 is not explicitly identified, the processor 330 may identify the time when information about one or more touch events is transmitted to the processor 330, thereby identifying whether data about the touch event is transmitted to the processor 330 according to a predetermined time period. For example, it may be determined whether data about the touch event is transmitted to the processor 330 according to a predetermined time period by identifying the intervals between the first touch event transmission time, the second touch event transmission time, and the third touch event transmission time.
[0159] If the reporting rate supported by TSP IC 440 is explicitly identified, or even if the reporting rate supported by TSP IC 440 is not explicitly identified, when it is determined that data about the touch event is transmitted to the processor according to the predetermined time period 330, in operation 1220, processor 330 can identify a resampling time period of processor 330.
[0160] In operation 1230 , the processor 330 may identify whether a resampling time period of the processor 330 and an information transmission time period of the touch screen display 210 have an integer multiple relationship.
[0161] If the resampling time period of the processor 330 and the information transmission time period of the touch screen display 210 have an integer multiple relationship, the processor 330 may perform operation 1310. For example, the processor 330 may perform Fig.13The operations shown in .
[0162] If the resampling time period of the processor 330 and the information transmission time period of the touch screen display 210 do not have an integer multiple relationship, the processor 330 may perform operation 1510. For example, the processor 330 may perform Fig.15 The operations shown in .
[0163] Fig.13 An operation of an electronic device performing a resampling operation based on data received from a touch screen display according to an embodiment of the present disclosure is illustrated.
[0164] Since the resampling time period of the processor 330 and the information transmission time period of the touch screen display 210 have an integer multiple relationship, the execution Fig.13 , so the number of touch events (eg, two) transmitted from the touch screen display 210 to the processor 330 may remain the same in a predetermined frame.
[0165] Reference Fig.13 In operation 1320, the processor 330 may receive data about the touch event. For example, the processor 330 may receive data about one or more touch events (e.g., a first touch event and a second touch event) from the touch screen display 210 according to a first time period. According to an embodiment, the processor 330 may receive data about one or more touch events (e.g., a first touch event and a second touch event) belonging to a first frame and data about one or more touch events (e.g., a third touch event and a fourth touch event) belonging to a second frame.
[0166] In operation 1330, the processor 330 may identify a movement speed associated with the touch event. For example, the processor 330 may identify a movement speed associated with the touch event based on a time interval between sending two consecutive touch events (e.g., a first touch event and a second touch event) and a coordinate difference therebetween. The processor 330 may identify a movement speed corresponding to a specific frame.
[0167] In operation 1340, the processor 330 may determine a resampling time based on the identified moving speed. For example, if the moving speed corresponds to a low speed interval, the α value may be configured to be relatively low (e.g., 0.5) to ensure consistency between the resampled coordinates, and the resampling time may be determined based on the α value. In another example, if the moving speed corresponds to a high speed interval, the α value may be configured to be relatively high (e.g., 1) to make the user feel faster responsiveness, and the resampling time may be determined based on the α value. The processor 330 may determine a resampling time corresponding to a particular frame. For example, the processor 330 may determine a first resampling time corresponding to a first frame.
[0168] In operation 1350, the processor 330 may acquire resampled data. The processor 330 may acquire resampled data corresponding to a specific frame. For example, the processor 330 may acquire first resampled data corresponding to a first frame and / or second resampled data corresponding to a second frame. The processor 330 may acquire resampled data corresponding to a specific frame based on a resampled time corresponding to the specific frame. For example, the processor 330 may acquire first resampled data corresponding to the first frame based on a resampled time corresponding to the first frame.
[0169] According to an embodiment, the processor 330 may obtain resampled data for all frames by the same method. For example, the processor 330 may obtain first resampled data for the first frame by extrapolation, obtain second resampled data for the second frame by extrapolation, and obtain resampled data corresponding to the extrapolation for the remaining frames.
[0170] Fig.14 An operation of an electronic device performing a resampling operation based on data received from a touch screen display according to an embodiment of the present disclosure is illustrated.
[0171] Fig.14 The operation shown is Fig.13 Detailed operations of operation 1340 .
[0172] Reference Fig.14 In operation 1410, the processor 330 may determine whether the resampled data is determined based on the extrapolation method. For example, for the first frame, the second frame, and the remaining frames, the processor 330 may determine whether the resampled data is determined based on the extrapolation method.
[0173] If the resampled data is not determined based on the extrapolation method, the processor 330 may determine the resampled time in operation 1440 so that the resampled data is determined based on the interpolation method. Figure 6 , the processor 330 may determine that the resampling time 627 of the second resampled data is the time between the third touch event transmission time 623 and the fourth touch event transmission time 624 .
[0174] In operation 1420, the processor 330 may determine whether the identified moving speed satisfies a predetermined condition. For example, the processor may identify whether the moving speed corresponding to the first frame is greater than or equal to the stored first value, and whether the moving speed corresponding to the second frame is equal to or less than the stored second value.
[0175] If the identified moving speed does not satisfy the predetermined condition, then in operation 1450, the processor 330 may determine a resampling time such that the resampling data is determined based on an extrapolation method. Figure 7 , the processor 330 may determine that the resampling time 727 of the second resampled data is the time between the third touch event transmission time 723 and the fourth touch event transmission time 724 .
[0176] In operation 1430, the processor 330 may control the resampling time so that the resampled data is determined based on interpolation. The processor 330 may change the resampling time so that the determination is based on interpolation rather than extrapolation. For example, referring to Fig.10 , the processor 330 may change the resampling time (1027A→1027B) of the second resampled data for determination based on interpolation. The processor 330 may control the resampling time based on the identified moving speed. The processor 330 may control the resampling time based on the difference between the moving speed corresponding to the first frame and the moving speed corresponding to the second frame.
[0177] Fig.15 An operation of an electronic device performing a resampling operation based on data received from a touch screen display according to an embodiment of the present disclosure is illustrated.
[0178] Since the resampling period of the processor 330 and the information transmission period of the touch screen display 210 do not have an integer multiple relationship, the execution Fig.15 , so the number of touch events transmitted from the touch screen display 210 to the processor 330 in a particular frame (e.g., two) may be different from the number of touch events transmitted from the touch screen display 210 to the processor 330 in another frame (e.g., one).
[0179] Reference Fig.15 In operation 1520, the processor 330 may recognize that data (eg, coordinates) about a touch event (eg, a third touch event) scheduled to be sent at a first time point is sent at a second time point. Fig.11 In the embodiment, the processor 330 may recognize that the data regarding the coordinates 1134 of the third touch event is transmitted at the delayed third event touch transmission time 1124 instead of the original third event touch transmission time 1123 .
[0180] In operation 1530, the processor 330 may correct the data about the touch event according to the first time point. For example, the processor 330 may determine the corrected coordinates 1133 corresponding to the third touch event. For example, the corrected coordinates 1133 corresponding to the third touch event may be the same as the delayed coordinates 1134 corresponding to the third touch event. The corrected coordinates 1133 corresponding to the third touch event may correspond to the original third event touch transmission time 1123.
[0181] In operation 1540, the processor 330 may acquire resampled data based on the corrected data about the touch event. Fig.11 , the processor 330 may determine the second resampled data 1137B based on the corrected coordinates 1133 corresponding to the third touch event and the coordinates 1132 corresponding to the second touch event.
[0182] In a method of operating an electronic device (e.g., electronic device 101) including a touch screen display (e.g., touch screen display 210) and a processor (e.g., processor 330) according to various embodiments of the present disclosure, the touch screen display may be configured to transmit data about one or more touch events to the processor based on a first time period (e.g., first time period 610), and the processor may be configured to use the received data to obtain resampled data based on a second time period (e.g., second time period 620), the second time period being an integer multiple of the first time period. The method may include: an operation of identifying a movement speed associated with the touch event using the received data; an operation of determining a resampled time (e.g., resampled time 626) for obtaining resampled data based on the identified movement speed; and an operation of obtaining resampled data based on the determined resampled time.
[0183] According to various embodiments, the touch event may include a first touch event and a second touch event generated after the first touch event, and the data about the touch event may include coordinates and times at which the first touch event and the second touch event are generated.
[0184] According to various embodiments, the resampling time may be included in a time interval having a predetermined length (e.g., the first frame 640), the time for sending data about a first touch event (e.g., the first touch event transmission time 621) and the time for sending data about a second touch event (e.g., the second touch event transmission time 622) belong to the time interval, and the resampling data may be used as data representing the time interval.
[0185] According to various embodiments, the operation of acquiring resampled data may include an operation of interpolating or extrapolating the coordinates of generating a first touch event (e.g., coordinates 631 corresponding to the first touch event) and the coordinates of generating a second touch event (e.g., coordinates 632 corresponding to the second touch event) according to the resampling time.
[0186] According to various embodiments, the operation of determining the resampling time may include the following operations: when the identified moving speed is within a first range, determining that the resampling time is the time for sending a second touch event; when the identified moving speed is within a second range, determining that the resampling time is the middle time between the time for sending the first touch event and the time for sending the second touch event.
[0187] According to various embodiments, the operation of determining the resampling time may include the following operations: when the identified moving speed is within a third range, determining that the resampling time is a time between the time when the first touch event is sent and the time when the second touch event is sent, and the determined relative position of the time between the time when the first touch event is sent and the time when the second touch event is sent corresponds to the relative position of the identified moving speed within the third range.
[0188] According to various embodiments, the operation of determining the resampling time may include the operation of controlling the resampling time so that the resampling data is acquired based on interpolation when the movement speed identified while acquiring the resampling data by only repeatedly performing the extrapolation operation satisfies a predetermined condition.
[0189] According to various embodiments, the moving speed may include a first moving speed corresponding to a first time period and a second moving speed corresponding to a second time period after the first time period, and under predetermined conditions, the first moving speed may be greater than or equal to a first predetermined value, and the second moving speed may be equal to or less than a second predetermined value.
[0190] In a method of operating an electronic device (e.g., electronic device 101) including a touch screen display (e.g., touch screen display 210) and a processor (e.g., processor 330) according to various embodiments of the present disclosure, the touch screen display may be configured to transmit data about one or more touch events to the processor based on a first time period (e.g., first time period 510), and the processor may be configured to use the received data to obtain resampled data based on a second time period (e.g., second time period 520) that is not an integer multiple of the first time period. The method may include the following operations: identifying data about a first touch event that is scheduled to be sent at a first time (e.g., original third touch event transmission time 1123) and is sent at a second time (e.g., delayed third event touch transmission time 1124); correcting the data about the first touch event according to the first time; and obtaining resampled data using the corrected data about the first touch event.
[0191] According to various embodiments, the operation of obtaining resampled data using corrected data about a first touch event may include the following operations: obtaining resampled data by interpolating or extrapolating coordinates corresponding to the corrected first touch event and coordinates generating a second touch event, and the second touch event may be a touch event transmitted to the processor at an earlier time than the first time.
[0192] Computer-readable storage media may include hard disks, floppy disks, magnetic media (e.g., tapes), optical media (e.g., CD-ROMs, digital versatile disks (DVDs)), magneto-optical media (e.g., floppy disks), internal memory, etc. Instructions may include codes created by a compiler or codes that can be executed by an interpreter. A programming module according to the present disclosure may include one or more of the aforementioned components, or may also include other additional components, or may omit some of the aforementioned components. The operations performed by modules, programming modules, or other elements according to various embodiments may be performed sequentially, in parallel, repeatedly, or in a heuristic manner. At least some operations may be performed according to another sequence, may be omitted, or may also include other operations.
[0193] While the present disclosure has been shown and described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents.
Claims
1. An electronic device, the electronic device include: a memory storing instructions; one or more processors; as well as a touch screen display configured to transmit data including a plurality of touch events to the processor based on a first time period; wherein the instructions stored in the memory, when executed by the one or more processors, enable the electronic device to identify whether a second time period is an integer multiple of the first time period, wherein the second time period is a time interval between image frames; if the second time period is an integer multiple of the first time period, identifying a movement speed associated with the plurality of touch events obtained by the touch screen display, determining a resampling time corresponding to an image frame by changing a predetermined resampling time of the second time period based on the movement speed, and acquiring resampling data at the resampling time, If the second time period is not an integral multiple of the first time period, it is determined that the moving speed associated with the touch event is not recognized, and sampling data is acquired at the predetermined resampling time.
2. The electronic device according to claim 1, in, The plurality of touch events include a first touch event and a second touch event generated after the first touch event, and The data includes coordinates and time of generating the first touch event and the second touch event.
3. The electronic device according to claim 2, in, The resampling time is included in a time period having a predetermined length based on a time when data of the first touch event is transmitted and a time when data of the second touch event is transmitted, and The resampled data is used as data representing the time period.
4. The electronic device according to claim 2, in, When the instructions stored in the memory are executed by the one or more processors, the electronic device: interpolates or extrapolates the coordinates of the first touch event and generates the coordinates of the second touch event.
5. The electronic device according to claim 2, in, When the instructions stored in the memory are executed by the one or more processors, the electronic device: When the moving speed is within a first range, determining the resampling time when sending the second touch event, and When the moving speed is within a second range, the resampling time is determined to be between a time when the first touch event is sent and a time when the second touch event is sent.
6. The electronic device according to claim 5, in, When the instructions stored in the memory are executed by the one or more processors, the electronic device: When the moving speed is within a third range, determining that the resampling time is between the time of sending the first touch event and the time of sending the second touch event; as well as The relative position of the resampling time corresponds to the relative position of the moving speed within the third range.
7. The electronic device according to claim 4, in, When the instructions stored in the memory are executed by the one or more processors, the electronic device: When the moving speed satisfies a predetermined condition while the resampled data is acquired based on extrapolation, the resampled time is controlled to change from acquiring the resampled data based on extrapolation to acquiring the resampled data based on interpolation.
8. The electronic device according to claim 7, in, The moving speed includes a first moving speed corresponding to a first time interval and a second moving speed corresponding to a second time interval after the first time interval, and The predetermined condition corresponds to that the first moving speed is equal to or greater than a first predetermined value and the second moving speed is equal to or less than a second predetermined value.
9. A method for operating an electronic device, the method include: transmitting data from the touch screen display to the processor based on a first time period, the data comprising a plurality of touch events; Identify whether a second time period is an integer multiple of the first time period, wherein the second time period is a time interval between image frames; if the second time period is an integer multiple of the first time period, identifying a movement speed associated with the plurality of touch events obtained by the touch screen display, determining a resampling time corresponding to an image frame by changing a predetermined resampling time of the second time period based on the movement speed, and acquiring resampling data at the resampling time, If the second time period is not an integral multiple of the first time period, it is determined that the moving speed associated with the touch event is not recognized, and sampling data is acquired at the predetermined resampling time.
10. The method according to claim 9, in, The plurality of touch events include a first touch event and a second touch event generated after the first touch event, and The data includes coordinates and time of generating the first touch event and the second touch event.
11. The method according to claim 10, in, The resampling time is included in a time period having a predetermined length based on a time when data of the first touch event is transmitted and a time when data of the second touch event is transmitted, and The resampled data is used as data representing the time period.
12. The method according to claim 10, in, Acquiring the resampled data includes interpolating or extrapolating to generate coordinates of the first touch event and generating coordinates of the second touch event.
13. The method according to claim 10, in, Determining the resampling time includes: When the moving speed is within a first range, determining the resampling time when sending the second touch event; and When the moving speed is within a second range, the resampling time is determined to be between a time when the first touch event is sent and a time when the second touch event is sent.
14. The method according to claim 13, in, Determining the resampling time includes: when the moving speed is within a third range, determining that the resampling time is between a time of sending the first touch event and a time of sending the second touch event; and The relative position of the resampling time corresponds to the relative position of the moving speed within the third range.
15. The method according to claim 12, in, Determining the resampling time includes: when the moving speed satisfies a predetermined condition while the resampling data is acquired based on extrapolation, controlling the resampling time to change from acquiring the resampling data based on extrapolation to acquiring the resampling data based on interpolation.
