WO2021190524A1 - Screenshot processing method, graphic user interface and terminal - Google Patents

Screenshot processing method, graphic user interface and terminal Download PDF

Info

Publication number
WO2021190524A1
WO2021190524A1 PCT/CN2021/082531 CN2021082531W WO2021190524A1 WO 2021190524 A1 WO2021190524 A1 WO 2021190524A1 CN 2021082531 W CN2021082531 W CN 2021082531W WO 2021190524 A1 WO2021190524 A1 WO 2021190524A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
terminal
screenshot image
screenshot
display screen
Prior art date
Application number
PCT/CN2021/082531
Other languages
French (fr)
Chinese (zh)
Inventor
熊刘冬
李春东
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021190524A1 publication Critical patent/WO2021190524A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • This application relates to the field of human-computer interaction technology, and in particular to a method for processing screenshots, a graphical user interface, and a terminal.
  • This application provides a screenshot processing method, a graphical user interface, and a terminal. After the user takes a screenshot, the user can edit the screenshot while using the current client, and after the client interface is refreshed, the edited content matches the current interface.
  • the present application provides a screenshot processing method applied to a terminal.
  • the method may include: the terminal displays a first interface and a second interface on a display screen, and the interface content of the second interface is the first interface.
  • a first screenshot image of an interface when the terminal detects the first operation input, a second screenshot image of the first interface is acquired, and the second screenshot image is when the terminal detects the first operation input
  • the terminal when the terminal acquires the first screenshot image of the first interface, it displays the first screenshot image in the second interface, and the user can watch the first interface and the second interface at the same time.
  • the terminal detects the input of the first operation (for example, a refresh operation)
  • the terminal obtains a second screenshot image of the first interface according to the interface content currently displayed on the first interface, and the interface content of the second interface is replaced with the second screenshot image.
  • the effect of refreshing the screenshot image is realized.
  • the display content of the first interface changes, the user can replace the display content of the second interface at any time.
  • the terminal displaying the first interface and the second interface on the display screen includes: the terminal displays the first interface on the display screen; when the terminal detects the input of the second operation, in the The first interface and the second interface are displayed on the display screen, the interface content of the second interface is a first screenshot image of the first interface, and the first screenshot image is all input detected on the terminal.
  • the terminal after acquiring the first screenshot image of the first interface, the terminal triggers the second interface and displays the first screenshot image on the second interface. There is no overlapping area between the second interface and the first interface.
  • the operation of the client in the first interface is not affected, and the user can use the first interface and the second interface at the same time.
  • the first interface may be a video playback interface, a slideshow interface, or other dynamic interfaces. If the first interface is a video playback interface, when the user edits the second interface, the video file of the first interface continues to play, and the user can achieve the effect of editing the screenshot while watching the video.
  • the method further includes: the terminal adds a layer to the first screenshot image of the second interface; the terminal detects the input During the first operation, a second screenshot image of the first interface is acquired; the terminal replaces the first screenshot image with the second screenshot image, and the interface content of the second interface is the first interface The second screenshot image and the layer.
  • the terminal may add a layer on the second screenshot image, that is, edit the first screenshot image.
  • the layer remains and is displayed superimposed on the second screenshot image. That is, the user will not lose the original editing content after refreshing the screenshot image, and there is no need to edit the screenshot image again after obtaining the new screenshot image.
  • the method further includes: when the terminal detects the input of the third operation, saving the interface content of the second interface as a target screenshot image, and the target screenshot image includes the second screenshot image and The layer.
  • the terminal saves the screenshot image, it saves the layers together, that is, the user's editing content is retained.
  • the interface content of the first interface includes application interfaces of multiple clients.
  • the terminal displays the first interface and the second interface on the display screen when detecting the input second operation, Including: when the terminal detects the input of the fourth operation for the first client, displaying the first interface and the second interface on the display screen, and the interface content of the second interface is the first client
  • the first screenshot image of the terminal the first client is one of the multiple clients
  • the first screenshot image is the first client when the terminal detects the fourth operation input
  • the terminal may take a screenshot of one of the clients and display it in the second interface.
  • the fourth operation for the first client acts on the display screen of the terminal.
  • the terminal when the interface content of the first interface includes multiple client application interfaces, when the terminal detects the input second operation, the first interface and the second interface are displayed on the display screen. , Including: when the terminal detects the input second operation, acquiring a screenshot image of the first interface, and selecting the application interface of the first client from the screenshot images of the first interface according to the input sixth operation as the first screenshot image, Displayed in the second interface.
  • the terminal can select a screenshot image of one of the clients to display in the second interface without cropping the screenshot image again.
  • the sixth operation acts on the display screen of the terminal.
  • the method further includes: when the terminal detects a fifth operation input, adjusting the display state of the second interface according to the fifth operation, and the display state of the second interface includes at least the following One item: location, size, or shape.
  • the first operation, the second operation, the third operation, the fourth operation, and the fifth operation include automatic operation or user operation.
  • User operations can be operations completed by the user through buttons, touch screen, voice, etc.; automatic operations can be operations that are automatically triggered when the terminal reaches a certain state. For example, when the display content of the first interface is updated, the first operation is automatically triggered to obtain the second screenshot image of the first interface and display it on the second interface.
  • this application provides a graphical user interface on a terminal, the terminal having a display screen, a memory, and one or more processors for executing one or more programs stored in the memory,
  • the graphical user interface includes: a first interface and a second interface displayed on the display screen currently output by the system, wherein:
  • the first interface and the second interface are displayed on the display screen, the interface content of the second interface is the first screenshot image of the first interface, the first interface and The second interface has no overlapping area;
  • a second screenshot image of the first interface is acquired, where the second screenshot image is the first interface displayed when the terminal detects the input of the first operation Image;
  • the graphical user interface further includes: in response to the terminal adding a layer to the first screenshot image of the second interface; in response to the terminal detecting the input of the first operation, acquiring The second screenshot image of the first interface; in response to the terminal replacing the second screenshot image with the first screenshot image, the interface content of the second interface is the second screenshot image of the first interface and all The layer.
  • the graphical user interface further includes: in response to the terminal detecting the input of the third operation, saving the interface content of the second interface as a target screenshot image, the target screenshot image including The second screenshot image and the layer.
  • the graphical user interface further includes: the interface content of the first interface includes application interfaces of multiple clients.
  • the graphical user interface further includes: when the terminal detects the input of the fourth operation for the first client, displaying the first interface and the second interface on the display screen,
  • the interface content of the second interface is a first screenshot image of the first client
  • the first client is one of the plurality of clients
  • the first screenshot image is displayed on the terminal The image displayed by the first client when the input fourth operation is detected.
  • the graphical user interface further includes: in response to the terminal detecting a fifth operation input, adjusting the display state of the second interface according to the fifth operation, and the second The display status of the interface includes at least one of the following: position, size, or shape.
  • the present application provides a terminal, including: one or more processors, one or more memories; the one or more memories are coupled with the one or more processors, and the one or more A memory is used to store computer program code, the computer program code includes computer instructions, when the one or more processors execute the computer instructions, the terminal executes the screenshot processing in the full-screen display video provided by the first aspect Methods.
  • the present application provides a computer storage medium, including computer instructions, which when the computer instructions are executed on a terminal, cause the terminal to execute the method for processing screenshots in a full-screen display video as provided in the first aspect.
  • the second interface when the terminal displays the video playback interface in full screen, the second interface can be displayed floating according to the operation, the display interface of the second interface can be switched, and the terminal can also quickly switch between multi-window display and full-screen display according to the operation. During this process, the terminal continues to play the video.
  • Figure 1 is an application interface diagram of a screenshot processing method provided by this application
  • Figure 2a is an application interface diagram of another method for screenshot processing provided by this application.
  • Figure 2b is an application interface diagram of another method for screenshot processing provided by this application.
  • Figure 2c is an application interface diagram of another method for screenshot processing provided by this application.
  • FIG. 3 is an application interface diagram of another method for screenshot processing provided by this application.
  • FIG. 4 is an application interface diagram of another method for screenshot processing provided by this application.
  • Figure 5a is an application interface diagram of another method for screenshot processing provided by this application.
  • Figure 5b is an application interface diagram of another method for screenshot processing provided by this application.
  • Figure 6 is a schematic structural diagram of a terminal provided by this application.
  • FIG. 7 is a block diagram of the software structure of the terminal provided by this application.
  • FIG. 8 is a schematic flowchart of a screenshot processing method provided by this application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.
  • the screenshot processing method provided by this application can edit the screenshot image while watching the video, and after the video content is refreshed, the content of the screenshot image can be refreshed, and the refreshed screenshot image can be combined with the content edited by the user to form the final image.
  • a specific application scenario is taken as an example to describe the method of screenshot processing in this application.
  • the user is watching a video and wants to take a screenshot of a certain frame of image in the video, while editing the screenshot, and wants to keep the video window displayed.
  • the video may be a video provided by a video application or a portal website, or a video saved in the terminal 100, or a video received by the terminal 100 from other devices, and there is no limitation here.
  • the video interface can be a video that is currently playing or a video that is paused.
  • the display screen 10 of the terminal 100 displays the first interface 20 currently output by the system, and the first interface 20 may be an interface provided by a video application.
  • the display screen 10 is configured with a touch panel, which can be used to receive a user's touch operation.
  • the touch operation refers to the operation of the user's hand, elbow, or stylus touching the display screen 10.
  • the full-screen display of the video interface means that only the video interface is displayed on the display screen 10, and no other content is displayed.
  • the video interface may occupy all the display area of the display screen 10, for example, as shown in the right drawing of FIG. 1.
  • the video interface may also only occupy part of the display area of the display screen 10. For example, when the display screen 10 is a notch screen, the video interface is displayed in the middle part of the notch screen. When the side or both edges are partially black, it can also be regarded as the display screen 10 displaying the video interface in full screen.
  • the full-screen display of the video interface may mean that while the video interface is displayed on the display screen, system-level interface elements, such as status bar, floating shortcut menu (such as Apple's Assistive Touch), etc., can also be displayed.
  • system-level interface elements such as status bar, floating shortcut menu (such as Apple's Assistive Touch), etc.
  • the status bar may include the name of the operator (for example, China Mobile), time, WiFi icon, signal strength, and current remaining power.
  • the video interface may include a video screen, and may also include a video progress bar, a virtual button for adjusting the volume, a virtual button for playing/pausing the video, and so on.
  • the terminal 100 displays the second interface 30 while displaying the first interface 20 on the display screen 10.
  • the display content in the second interface 30 is a screenshot image obtained by taking a screenshot of the display interface in the first interface 20.
  • the later mentioned that the terminal 100 displays the second interface 30 means that the terminal 100 displays the second interface 30 while displaying the first interface 20 on the display screen 10.
  • the operation of triggering the terminal 100 to take a screenshot on the display screen 10 may be referred to as the second operation.
  • the terminal 100 in response to the user's screen capture operation, the terminal 100 simultaneously displays the second interface 30 on the display screen 10.
  • the first interface 20 and the second interface 30 belong to two different clients, and the interface contents of the first interface 20 and the second interface 30 do not overlap.
  • the second interface 30 is rectangular.
  • the size of the second interface 30 may be similar to the size of the first interface 20, so that the user can view the interface content in the first interface 20 and the second interface 30 at the same time.
  • the positions and sizes of the second interface 30 and the first interface 20 can be dragged and adjusted according to user requirements.
  • the second interface 30 may also display one or more function icons.
  • the second interface 30 may display icons such as sending 21, editing 22, and deleting 23. These icons can be used to receive user touch operations and output corresponding interfaces based on the received touch operations. For example, the user can click any icon in the second interface 30 to operate the function described by the icon.
  • the screenshot image in the second interface 30 can be sent to other clients; when the user triggers icon editing 22, you can add a layer to the screenshot image in the second interface 30, which can be User-defined layer; when the user triggers icon deletion 23, the screenshot image in the second interface 30 is deleted, and there is no displayable content in the second interface 30, the second interface 30 is not displayed on the display screen 10.
  • the first interface 10 restores the position and size before the screenshot.
  • the display screen 10 of the terminal 100 is a foldable display screen, and the state of the display screen 10 is divided into a folded state and an expanded state.
  • the display screen 10 displays the first interface in full screen; as shown in FIG. The interface 20 and the second interface 30.
  • the display condition on the display screen 10 may also be as shown in FIG. 2c.
  • the video playback interface in the first interface 20 may or may not be interrupted.
  • the user can edit the screenshot image in the second interface 30 while continuously watching the video.
  • the icon editing 22 is in response to a user trigger.
  • the second interface 30 can display icons such as mark 24, refresh 25, and save 26. These icons can be used to receive user touch operations and output corresponding interfaces based on the received touch operations. For example, the user can click any icon in the second interface 30 to operate the function described by the icon.
  • the marking method includes adding a custom layer to the screenshot image in the second interface 30 through tools such as brushes, text, and painting.
  • the layer 40 includes an arrow and the text "important", that is, the arrow can be drawn by the brush tool, and the "important" can be edited by the text tool.
  • the interface content in the second interface 30 (including the screenshot image and the layer 40 added by the icon mark 24) is saved.
  • the screenshot image in the second interface 30 can be refreshed, but the layer added by the user is retained, and the refreshed screenshot image and the layer are superimposed to form a new picture.
  • the refreshed screenshot image is the interface content displayed on the first interface 20 when the user triggers the icon refresh 25. The following details how to refresh the screenshot image.
  • the video playback interface in the first interface 20 may not be interrupted. That is, the user can continue to watch the video while editing the screenshot image in the second interface 30.
  • the video playback interface in the first interface 20 continues to play, and part of the content 50 is updated.
  • the icon refresh 25 as shown in the lower drawing of FIG. 4
  • the screenshot image in the second interface 30 is the current display interface in the first interface 20, and the layer 40 is still superimposed and displayed on the refreshed interface. In the screenshot image.
  • the refreshed screenshot image and the layer 40 in the second interface 30 are saved. That is, after the user takes a screenshot, while editing the screenshot image while using the current client, and the client interface is refreshed, the editing content matches the current interface.
  • the operation of triggering the terminal 100 to refresh on the display screen 10 may be referred to as the first operation.
  • the operation of triggering the terminal 100 to save the interface content of the second interface may be referred to as a third operation.
  • a user when watching a video, a user can open the second interface through a screenshot, view the screenshot image in the second interface, and edit the screenshot image while watching the video.
  • the second interface can be refreshed.
  • the interface can be edited again.
  • Such a screenshot processing method does not affect the playback of the video, and the screenshot image can be edited while watching the video.
  • the terminal is equipped with a large-size display screen (for example, a display screen of 9 inches, 10 inches or more) or a folding screen or a dual screen, the advantages of the large screen can be fully utilized to present the first interface and the second interface.
  • the first interface 20 may also be other display interfaces.
  • the first interface 20 currently output by the system displayed on the display screen 10 of the terminal 100 can be any one of the following: a client application interface displayed in a portrait screen, a desktop displaying application icons, and a split screen displaying application interfaces of multiple clients at the same time Interface and so on.
  • the horizontal screen display means that the width of the interface content displayed by the terminal is greater than the height
  • the vertical screen display means that the height of the interface content displayed by the terminal is greater than the width.
  • the first interface 20 may also be other interfaces, such as a game interface, a web browsing interface, an interface for reading books, an interface for music playback, an interface for text editing, and the like.
  • the first interface 20 may also include system-level interface elements, such as floating shortcut menus, etc., which are not limited here.
  • the application interface of one of the clients may be captured, or the entire interface content of the first interface 20 may be captured.
  • the application interface of one of the clients is selected, and the interface content of the second display interface 30 is the application interface of the one client.
  • the interface content of the first interface 20 includes the application interfaces of the client 1 and the client 2.
  • the terminal system receives the user's trigger for the screenshot operation for the client terminal 1, the terminal system captures the application interface of the client terminal 1.
  • the screenshot operation for the client 1 may be a touch screen operation acting on the display area of the client 1 on the display screen 10, or may be a key operation, a hovering gesture operation, and so on.
  • the operation of triggering the terminal 100 to take a screenshot of the client 1 on the display screen 10 may be referred to as the fourth operation.
  • the terminal system when the terminal system receives a user triggering a screenshot operation for the first interface 20, the interface content of the first interface 20 is captured; the user can select the application interface of the client 1 in the screenshot content, and when the terminal system receives the user trigger For the selection operation of the client 1, the application interface of the client 1 among the intercepted interface content of the first interface 20 is displayed on the second interface 30.
  • the operation of triggering the terminal 100 to select the application interface of the client 1 in the screenshot content may be referred to as the sixth operation.
  • the terminal 100 in response to the user's screen capture operation, the terminal 100 simultaneously displays the second interface 30 on the display screen 10. Wherein, the interface contents of the first interface 20 and the second interface 30 do not overlap. The positions and sizes of the second interface 30 and the first interface 20 can be dragged and adjusted according to user requirements.
  • the display screen 10 of the terminal 100 is a foldable display screen, and the first interface 20 displays the application interfaces of two clients (client 1 and client 2) at the same time.
  • the state of the display screen 10 is divided into a folded state and an expanded state.
  • the display screen 10 displays the first interface in full screen, and the first interface displays the client 1 and the client 2 respectively.
  • the terminal 100 divides two display areas on the display screen 10, and displays the first interface 20 and the second interface 30 respectively.
  • the positions and sizes of the client 1 and the client 2 in the first interface 20 can be dragged and adjusted according to user requirements.
  • the user can adjust the display position, shape, and size of the second interface 30 according to specific needs.
  • several adjustment methods of the second interface 30 are exemplified.
  • the user can long press any area of the second interface 30, and when the terminal system detects that the long press time reaches a threshold, the second interface 30 can move with the movement of the finger.
  • the user can drag the edge position of the second interface 30 with a finger to change the display length or width of the second interface 30.
  • the user can drag the lower right corner of the second interface 30 with a finger, the upper left corner of the second interface 30 does not move, and the lower right corner of the second interface 30 expands to the edge position of the display screen 10 along with the sliding track of the finger.
  • the operation for adjusting the second interface 30 is not limited to the above examples, and other methods are also possible.
  • the user can also adjust the size of the second interface 30 by clicking on the adjustment options (for example, “enlarge the second interface”, “reduce the second interface”, etc.) or icons output on the display screen 10 of the terminal system.
  • the operation of triggering the terminal 100 to adjust the display state of the second interface may be referred to as the fifth operation.
  • the display mode of the interface elements in the second interface 30 can be adjusted adaptively. For example, after the second interface 30 is reduced, the interface elements (such as icons, etc.) in the second interface 30 may be displayed in a reduced scale, or only a part of the original interface elements of the second interface 30 may be displayed.
  • the adaptive adjustment of the display mode of the interface elements in the second interface 30 may also include adjusting the spacing between the interface elements, the display position between the interface elements, etc., which is not limited in this application.
  • the user can also close the second interface 30.
  • closing the second interface 30 means that the corresponding program that triggers the multi-window display is closed, and the display screen 10 only displays the first interface 20.
  • the processing resources and storage resources used by the terminal 100 to display the second interface 30 are released.
  • the second interface 30 continues to run in the background of the terminal 100, but is not displayed on the display screen 10.
  • the terminal 100 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, and the like.
  • portable electronic devices include, but are not limited to, portable electronic devices equipped with iOS, android, microsoft or other operating systems.
  • the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (such as a touch panel).
  • the terminal 100 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
  • the terminal 100 is equipped with a display screen, which can be used to display the interface content currently output by the terminal system.
  • the interface content can include the interface of the running application and the system-level menu, etc. It can be composed of the following interface elements: input interface elements, such as buttons, text input boxes, scroll bars , Menu, etc.; and output interface elements, such as window, label, etc.
  • the display screen of the terminal 100 is equipped with a touch panel, that is, the display screen is a touch screen, which can be used to receive a user's touch operation. operate.
  • the touch screen can also be used to receive a user's hovering touch operation, which refers to an operation where the user's hand is hovering above the display screen and not touching the display screen.
  • the terminal 100 when the terminal 100 receives an operation for triggering the display of the second interface, it displays the second interface while displaying the first interface on the touch screen.
  • the display content in the second interface is a screenshot image obtained by taking a screenshot of the display interface of the first interface.
  • the operation for triggering the display of the second interface, the display content of the second interface, the display mode, etc. can refer to the related description of the foregoing embodiment, which will not be repeated here.
  • the position, shape, and size of the second interface can be adjusted, and reference may be made to the related description of the foregoing embodiments, which will not be repeated here.
  • the terminal 100 may also receive an operation for triggering the terminal to hide the second interface.
  • the first operation, the second operation, the third operation, the fourth operation, and the fifth operation may be automatic operations or user operations.
  • User operations can be operations completed by the user through buttons, touch screen, voice, etc.; automatic operations can be operations that are automatically triggered when the terminal reaches a certain state. For example, when the display content of the first interface is updated, the first operation is automatically triggered to obtain a second screenshot image of the first interface and display it on the second interface.
  • FIG. 6 is a structural block diagram of an implementation manner of the terminal 100.
  • the terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user An identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal 100.
  • the terminal 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the terminal 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the terminal 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the terminal 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the terminal 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the terminal 100, and can also be used to transfer data between the terminal 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the terminal 100.
  • the terminal 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the terminal 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the terminal 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the terminal 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the terminal 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the display screen 194 in FIG. 1 may be bent.
  • the above-mentioned display screen 194 can be bent means that the display screen can be bent to any angle at any position and can be maintained at that angle.
  • the display screen 194 can be folded in half from the middle. You can also fold up and down from the middle.
  • a display screen that can be bent is referred to as a foldable display screen.
  • the foldable display screen may be one screen, or a display screen formed by patching together multiple screens, which is not limited here.
  • the foldable display screen can display content in full screen.
  • the interface content when the interface content is displayed on a full screen, the interface content may occupy all the display area of the foldable display screen.
  • the interface content may only occupy part of the display area of the foldable display screen. For example, when the display screen is a notch screen, the middle part of the notch screen displays the interface content, one When the side or both edges are partially black, it can also be regarded as the foldable display screen displaying the interface content in full screen.
  • the terminal 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and transforms it into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the terminal 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the terminal 100 may support one or more video codecs. In this way, the terminal 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the terminal 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the terminal 100 by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the terminal 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the terminal 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the terminal 100 may be provided with at least one microphone 170C. In other embodiments, the terminal 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the terminal 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the pressure sensor 180A may be used to capture the pressure value generated when the user's finger part touches the display screen, and transmit the pressure value to the processor, so that the processor can recognize which finger part the user inputs through operate.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the terminal 100 determines the strength of the pressure according to the change in capacitance.
  • the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions.
  • the pressure sensor 180A may transmit the detected capacitance value to the processor, so that the processor recognizes which finger part (knuckle or finger pad, etc.) the user inputs an operation through.
  • the pressure sensor 180A may also calculate the number of touch points based on the detected signal, and transmit the calculated value to the processor, so that the processor can recognize that the user performs a single-finger or multi-finger input operation .
  • the gyro sensor 180B may be used to determine the movement posture of the terminal 100.
  • the angular velocity of the terminal 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyroscope sensor 180B detects the shake angle of the terminal 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal 100 through a reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the terminal 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the terminal 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the terminal 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on. In some optional embodiments of the present application, the acceleration sensor 180E may be used to capture the acceleration value generated when the user's finger part touches the display screen, and transmit the acceleration value to the processor, so that the processor recognizes which finger part the user inputs through operate.
  • the terminal 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the terminal 100 emits infrared light to the outside through the light emitting diode.
  • the terminal 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal 100. When insufficient reflected light is detected, the terminal 100 may determine that there is no object near the terminal 100.
  • the terminal 100 can use the proximity light sensor 180G to detect that the user holds the terminal 100 close to the ear to talk, so as to automatically turn off the display screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the terminal 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal 100 when the temperature is lower than another threshold, the terminal 100 heats the battery 142 to avoid abnormal shutdown of the terminal 100 due to low temperature.
  • the terminal 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the terminal 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the terminal 100 may receive key input, and generate key signal input related to user settings and function control of the terminal 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the terminal 100.
  • the terminal 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the terminal 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the terminal 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100.
  • the software system of the terminal 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the terminal 100 by way of example.
  • FIG. 7 is a block diagram of the software structure of the terminal 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • a floating launcher may also be added to the application layer to be used as a default display application in the second interface 30 mentioned above, and to provide users with an entrance to other applications.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an activity manager, etc.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the display screen, and intercept the display screen.
  • a FloatingWindow can be extended based on Android's native PhoneWindow, which is specifically used to display the second interface 30 mentioned above to distinguish it from ordinary windows, which have the attribute of being displayed floating at the top of the series of windows.
  • the window size can be given an appropriate value according to the size of the actual screen and the optimal display algorithm.
  • the aspect ratio of the window may default to the screen aspect ratio of a conventional mainstream mobile phone.
  • an additional close button and a minimize button can be drawn in the upper right corner.
  • some gesture operations of the user will be received. If the gestures of the second interface are met, the window will be frozen and the animation effect of the movement of the second interface will be played.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • a button view for closing, minimizing and other operations on the second interface can be added correspondingly, and bound to the FloatingWindow in the above-mentioned window manager.
  • the phone manager is used to provide the communication function of the terminal 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the display screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • the activity manager is used to manage the running activities in the system, including process, application, service, task information, etc.
  • an activity task stack dedicated to managing the application Activity displayed in the second interface 30 can be added in the activity manager module to ensure that the application activity and task in the second interface will not be displayed in full screen on the screen. The application conflicts.
  • a motion detector can be added to the application framework layer, which is used to make logical judgments on the acquired input events and identify the type of the input event. For example, based on the touch coordinates included in the input event, the time stamp of the touch operation, and other information, it is determined that the input event is a knuckle touch event or a finger pad touch event.
  • the motion detection component can also record the trajectory of the input event, determine the gesture pattern of the input event, and respond to different operations according to different gestures.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: input manager (input manager), input dispatcher (input dispatcher), surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as : SGL) and so on.
  • input manager input manager
  • input dispatcher input dispatcher
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library such as OpenGL ES
  • 2D graphics engine such as : SGL
  • the input manager is responsible for obtaining event data from the underlying input driver, parsed and encapsulated, and passed to the input dispatch manager.
  • the input scheduling manager is used to store window information. After receiving an input event from the input manager, it will look for a suitable window in the window it keeps, and dispatch the event to this window.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations or key operations into original input events (including touch coordinates, time stamps of touch operations, or key functions, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the key operation as the volume down key plus the power key operation, the control corresponding to the volume down key plus the power key operation is the control of the screenshot application as an example, the display screen calls the interface of the application framework layer to start the screenshot application, and then through Call the kernel layer to start the camera driver and get the screenshot image.
  • FIG. 8 is a schematic flowchart of a screenshot processing method according to an embodiment of the present invention. As shown in Figure 8, the method includes:
  • the terminal displays the first interface on the display screen.
  • the terminal displays a first interface on a vertical or horizontal screen on the display screen
  • the first interface may be a video interface, a game interface, a web browsing interface, an interface for reading books, an interface for music playback, an interface for text editing, and so on.
  • the first interface may also be a client application interface, a desktop displaying application icons, a split screen interface that simultaneously displays application interfaces of multiple clients, and so on.
  • the first interface displayed on the display screen of the terminal may be: the display screen of the terminal only displays the video interface as shown in the right figure of FIG. 1, and does not display other content.
  • the video playback interface when the video playback interface is displayed in a full screen, the video playback interface may occupy all the display area of the display screen.
  • the video playback interface may also only occupy part of the display area of the display screen. For example, when the display screen is a notch screen, the video playback interface is displayed in the middle part of the notch screen. When the side or both edges are partially black, it can also be regarded as a full screen display of the video playback interface on the display screen.
  • the full-screen display of the video playback interface of the terminal can also be: while the video playback interface is displayed on the display screen, system-level interface elements, such as status bar, floating shortcut menu, etc., can also be displayed.
  • the video playback interface may include not only video images, but also a progress bar of the video, a virtual button for adjusting the volume, a virtual button for playing/pausing the video, and so on.
  • the second operation is used to take a screenshot of the displayed content of the first interface.
  • the terminal detects the input of the second operation, it displays the first interface and the second interface on the display screen.
  • the second operation may be a gesture that acts on the display screen of the terminal, or may be a button or voice command.
  • the second operation may be a gesture of sliding the user's knuckles on the terminal display screen to draw the first figure.
  • the first pattern may be a rectangle, a triangle, a square, a circle, or the like.
  • the first figure drawn by the user on the display screen through the knuckles may not be a standard shape in a geometric sense, as long as it is similar.
  • the second operation may also be: a click operation of the user's finger on the terminal display screen.
  • the click operation can be performed by one or more knuckles, finger pads, fingertips, stylus, etc.
  • the second operation may also be: the user's finger is in the first hovering posture on the display screen.
  • the first hovering posture may mean that the fingers hovering above the display screen are in an extended state, a bent state, or the like.
  • the display content of the second interface is the first screenshot image of the first interface.
  • the terminal detects the input second operation it will screenshot the content displayed on the first interface to obtain the first screenshot image.
  • the first screenshot image is an image displayed on the first interface when the terminal detects the input second operation.
  • the first interface displays application interfaces of multiple clients.
  • the first interface includes application interfaces of client 1 and client 2 as an example.
  • the terminal detects the input of the second operation, it takes a screenshot of the content displayed on the first interface and obtains the screenshot image; then the application interface of client 1 or client 2 can be selected from the screenshot image according to the input of the sixth operation as the first Screenshot image.
  • the interface content of the second interface is the first screenshot image.
  • the first interface displays application interfaces of multiple clients, and when the terminal detects the input fourth operation, it acquires the first screenshot image of the first client.
  • the first client is one of multiple clients in the first interface, and the fourth operation is a screenshot operation for the first client.
  • the second interface displays a first screenshot image
  • the first screenshot image is a screenshot image of the first client.
  • the fourth operation may be a touch screen operation acting on the display screen of the terminal, or a preset key operation, or an operation such as a hovering gesture, a voice command, and the like.
  • the fourth operation is a click operation on the display area of the application interface of the first client on the first interface.
  • the click operation can be performed by one or more knuckles, finger pads, fingertips, stylus, etc.
  • the fourth operation is that the user's finger is in the first hovering gesture on the display area of the application interface of the first client on the first interface.
  • the first hovering posture may mean that the fingers hovering above the display screen are in an extended state, a bent state, or the like.
  • the mWindowMap component of the Window Manager Service (WMS) in the Framework process is called through the SystemUI control to store application window information, Obtain information such as the application name (for example, the first client), window coordinates and other information of the client that is currently selected to put the first screenshot image on the second interface.
  • WMS Window Manager Service
  • the shape, position, and size of the second interface may be set by default by the terminal system, or set by the user according to his own usage habits, or may be determined in real time according to the operation.
  • the shape, position, and size of the first window are determined according to the operation, that is, the shape, position, and size of the first window are related to the fifth operation.
  • the terminal adds a layer on the first screenshot image of the second interface.
  • the terminal displays the first interface and the second interface on the display screen, and the interface content of the second interface is the first screenshot image.
  • the terminal is triggered to add a layer on the first screenshot image.
  • the method of adding layers includes marking the first screenshot image with tools such as brushes, text, and coloring.
  • the first interface is a video playback interface.
  • the video on the first interface can continue to be played. The effect of taking notes while watching the video.
  • the first operation is a refresh operation
  • the first operation may be a touch screen operation acting on the display screen of the terminal, or may be a voice command, a key operation, and the like.
  • the terminal adds a layer to the first screenshot image on the second interface, the video on the first interface can continue to be played. After the user finishes taking notes on the first screenshot image, the video content has been refreshed. 4, it can be seen that when the user wants to refresh the current first screenshot image, he can click the icon refresh 25.
  • the terminal detects the first operation input and refreshes the client just marked (for example, the first client). End) window coordinate information. Then, take a screenshot of the application interface of the first client in the first interface according to the application name of the client of the first screenshot image (for example, the first client), and obtain the second screenshot of the first client through the SurfaceControl.screenshot function.
  • the interface content of the second interface is a screenshot image of the application interface of the first client.
  • the first interface includes multiple clients (including the first client ) Application interface.
  • the terminal confirms the first client among the multiple clients on the first interface according to the application name of the client of the first screenshot image (for example, the first client) and the window coordinates of the first client, and obtains the first client.
  • the second screenshot image of a client is a screenshot image of a client.
  • the terminal replaces the first screenshot image with the second screenshot image.
  • the terminal after obtaining the second screenshot image of the first interface, the terminal replaces the first screenshot image with the second screenshot image. That is, the second screenshot image is displayed on the second interface.
  • the layer added in step S103 is retained in the second interface and displayed on the second screenshot image.
  • the third operation may be a click operation acting on the icon save 26 on the display screen of the terminal, or a gesture acting on the display screen of the terminal, or a voice command, key operation, etc.
  • the interface content of the second interface is saved as the target screenshot image.
  • the interface content of the second interface includes the second screenshot image and layers. That is, it is realized that the refreshed screenshot image is combined with the content (layer) edited by the user, and the final image is saved, and the effect that the edited content still matches the current interface after the client interface is refreshed is realized.
  • Stopping the display of the second interface may include the following two situations: hiding the second interface and closing the second interface. Among them, the hidden second interface can continue to run in the background of the terminal. Wherein, after the second interface is closed, processing resources and storage resources used by the terminal to display the second interface may be released.
  • the terminal displays the prompt identifier of the second interface.
  • the prompt mark can be a graphic mark (for example, a prompt bar, a second interface icon, an arrow, etc.), a text, and the like.
  • the reminder mark can be a reminder bar or floating window. The user can redisplay the second interface through the prompt mark.
  • the first operation, the second operation, the third operation, and the fourth operation are not limited to the default settings of the terminal at the factory, and may also be set by the user.
  • the user can select an operation as the first operation, the second operation, the third operation, and the fourth operation from a setting menu containing multiple operations, and the user can also customize the operation according to his own habits.
  • the terminal when the interface content of the first interface is a video playback interface, the terminal continues to display the video playback interface, and the video continues to be played. That is, the present application may display the second interface while continuously playing the video, and the interface content of the second interface is a screenshot image of the interface content of the first interface.
  • this application can also edit the second interface, and when the video content is updated, the screenshot image displayed in the second interface is updated accordingly, the original editing content is retained, and the updated screenshot image is combined with the editing content. Form the final screenshot image.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).

Abstract

Disclosed are a screenshot processing method, a graphic user interface and a terminal. The method can comprise: when acquiring a first screenshot image of a first interface, a terminal displaying the first screenshot image in a second interface, wherein a user can simultaneously view the first interface and the second interface; and when the terminal detects an input first operation (such as a refreshing operation), the terminal acquiring a second screenshot image of the first interface according to interface content currently displayed in the first interface, and replacing interface content of the second interface with the second screenshot image. By implementing the present application, the effect of refreshing a screenshot image is realized, and when display content of a first interface is changed, a user can replace display content of a second interface at any time.

Description

截屏处理的方法、图形用户接口及终端Screen capture processing method, graphical user interface and terminal
本申请要求于2020年03月24日提交中国专利局、申请号为202010214656.9、申请名称为“截屏处理的方法、图形用户接口及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on March 24, 2020, the application number is 202010214656.9, and the application title is "Screenshot processing method, graphical user interface and terminal", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及人机交互技术领域,尤其涉及一种截屏处理的方法、图形用户接口及终端。This application relates to the field of human-computer interaction technology, and in particular to a method for processing screenshots, a graphical user interface, and a terminal.
背景技术Background technique
随着电子通信技术的发展,移动终端的功能和应用的日益丰富和人性化,用户利用移动终端可以管理联系人、收发信息、邮件、上网、看视频和电子书等,用户可能需要随时记录移动终端上看到的信息,需要将相应看到的信息截取下来,并且能够对截取的图像进行编辑,在以后需要的时候,可以快速点击接入现在看到的信息。With the development of electronic communication technology, the functions and applications of mobile terminals are becoming more and more user-friendly. Users can use mobile terminals to manage contacts, send and receive messages, mail, surf the Internet, watch videos and e-books, etc. Users may need to record their movements at any time. The information seen on the terminal needs to be intercepted correspondingly, and the intercepted image can be edited. When needed in the future, you can quickly click to access the information you see now.
现有技术中,当用户正在观看视频时,对视频图像进行截屏后,若想要对截屏图像进行编辑,编辑界面会覆盖整个手机界面,且在对截屏图像进行编辑时,无法实现边看视频边做笔记。并且,在用户对截屏图像进行编辑的过程中,若视频继续播放,当用户结束编辑时,视频内容已经刷新,编辑内容与当前视频内容不匹配。In the prior art, when a user is watching a video, after taking a screenshot of the video image, if he wants to edit the screenshot image, the editing interface will cover the entire mobile phone interface, and when editing the screenshot image, it is impossible to watch the video while editing. While taking notes. In addition, when the user edits the screenshot image, if the video continues to play, when the user finishes editing, the video content has been refreshed, and the edited content does not match the current video content.
因此,有必要提出相应的技术方案,方便、快捷地在终端设备上对截屏图像进行相应的处理。Therefore, it is necessary to propose a corresponding technical solution to conveniently and quickly perform corresponding processing on the screenshot image on the terminal device.
发明内容Summary of the invention
本申请提供了一种截屏处理的方法、图形用户界面及终端,可在用户截屏后一边编辑截屏图像一边使用当前客户端,且客户端界面刷新后,编辑内容与当前界面匹配。This application provides a screenshot processing method, a graphical user interface, and a terminal. After the user takes a screenshot, the user can edit the screenshot while using the current client, and after the client interface is refreshed, the edited content matches the current interface.
第一方面,本申请提供了一种截屏处理的方法,应用于终端,该方法可包括:终端在显示屏上显示第一界面和第二界面,所述第二界面的界面内容为所述第一界面的第一截屏图像;所述终端检测到输入的第一操作时,获取所述第一界面的第二截屏图像,所述第二截屏图像为所述终端检测到输入的第一操作时所述第一界面显示的图像;所述终端将所述第二界面的界面内容由所述第一截屏图像替换为所述第二截屏图像。In the first aspect, the present application provides a screenshot processing method applied to a terminal. The method may include: the terminal displays a first interface and a second interface on a display screen, and the interface content of the second interface is the first interface. A first screenshot image of an interface; when the terminal detects the first operation input, a second screenshot image of the first interface is acquired, and the second screenshot image is when the terminal detects the first operation input The image displayed on the first interface; the terminal replaces the interface content of the second interface from the first screenshot image to the second screenshot image.
实施第一方面的方法,终端在获取了第一界面的第一截屏图像时,将第一截屏图像显示在第二界面中,用户可以同时观看第一界面和第二界面。当终端检测到输入的第一操作(例如刷新操作),终端根据第一界面当前显示的界面内容获取第一界面的第二截屏图像,第二界面的界面内容替换为该第二截屏图像。实现了刷新截屏图像的效果,当第一界面的显示内容改变后,用户可以随时替换第二界面的显示内容。In implementing the method of the first aspect, when the terminal acquires the first screenshot image of the first interface, it displays the first screenshot image in the second interface, and the user can watch the first interface and the second interface at the same time. When the terminal detects the input of the first operation (for example, a refresh operation), the terminal obtains a second screenshot image of the first interface according to the interface content currently displayed on the first interface, and the interface content of the second interface is replaced with the second screenshot image. The effect of refreshing the screenshot image is realized. When the display content of the first interface changes, the user can replace the display content of the second interface at any time.
结合第一方面,所述终端在显示屏上显示第一界面和第二界面,包括:所述终端在显示屏上显示第一界面;所述终端检测到输入的第二操作时,在所述显示屏上显示所述第一界面和第二界面,所述第二界面的界面内容为所述第一界面的第一截屏图像,所述第一截屏图像为在所述终端检测到输入的所述第二操作时所述第一界面显示的图像。这里,终端在获取了第一界面的第一截屏图像后,触发第二界面,将第一截屏图像显示在第二界面上。 第二界面与第一界面没有重叠区域。在用户对第二界面进行编辑时,不影响第一界面中客户端的运行,用户可以同时使用第一界面和第二界面。With reference to the first aspect, the terminal displaying the first interface and the second interface on the display screen includes: the terminal displays the first interface on the display screen; when the terminal detects the input of the second operation, in the The first interface and the second interface are displayed on the display screen, the interface content of the second interface is a first screenshot image of the first interface, and the first screenshot image is all input detected on the terminal. The image displayed on the first interface during the second operation. Here, after acquiring the first screenshot image of the first interface, the terminal triggers the second interface and displays the first screenshot image on the second interface. There is no overlapping area between the second interface and the first interface. When the user edits the second interface, the operation of the client in the first interface is not affected, and the user can use the first interface and the second interface at the same time.
在一些实施例中,第一界面可以为视频播放界面、幻灯片界面或其他动态界面等。若第一界面为视频播放界面,当用户对第二界面进行编辑时,第一界面的视频文件持续播放,用户可以达到一边看视频一边编辑截屏图像的效果。In some embodiments, the first interface may be a video playback interface, a slideshow interface, or other dynamic interfaces. If the first interface is a video playback interface, when the user edits the second interface, the video file of the first interface continues to play, and the user can achieve the effect of editing the screenshot while watching the video.
结合第一方面,所述终端在显示屏上显示第一界面和第二界面之后,还包括:所述终端在所述第二界面的第一截屏图像上添加图层;所述终端检测到输入的第一操作时,获取所述第一界面的第二截屏图像;所述终端将所述第二截屏图像替换所述第一截屏图像,所述第二界面的界面内容为所述第一界面的第二截屏图像和所述图层。这里,终端可以在第二截屏图像上添加图层,即对第一截屏图像进行编辑。当第二界面的第一截屏图像替换为第二截屏图像后,图层依然保留,与第二截屏图像叠加显示。即用户在刷新截屏图像后也不会丢失原有的编辑内容,而不需要在得到了新的截屏图像后重新对截屏图像进行编辑。With reference to the first aspect, after the terminal displays the first interface and the second interface on the display screen, the method further includes: the terminal adds a layer to the first screenshot image of the second interface; the terminal detects the input During the first operation, a second screenshot image of the first interface is acquired; the terminal replaces the first screenshot image with the second screenshot image, and the interface content of the second interface is the first interface The second screenshot image and the layer. Here, the terminal may add a layer on the second screenshot image, that is, edit the first screenshot image. When the first screenshot image on the second interface is replaced with the second screenshot image, the layer remains and is displayed superimposed on the second screenshot image. That is, the user will not lose the original editing content after refreshing the screenshot image, and there is no need to edit the screenshot image again after obtaining the new screenshot image.
结合第一方面,所述方法还包括:所述终端检测到输入的第三操作时,保存所述第二界面的界面内容作为目标截屏图像,所述目标截屏图像包括所述第二截屏图像和所述图层。这里,终端在对截屏图像进行保存操作时,会将图层一起保存,即保留用户的编辑内容。With reference to the first aspect, the method further includes: when the terminal detects the input of the third operation, saving the interface content of the second interface as a target screenshot image, and the target screenshot image includes the second screenshot image and The layer. Here, when the terminal saves the screenshot image, it saves the layers together, that is, the user's editing content is retained.
在一些实施例中,所述第一界面的界面内容包括多个客户端的应用界面。In some embodiments, the interface content of the first interface includes application interfaces of multiple clients.
结合第一方面,当第一界面的界面内容包括多个客户端的应用界面时,所述终端检测到输入的第二操作时,在所述显示屏上显示所述第一界面和第二界面,包括:所述终端检测到输入的针对第一客户端的第四操作时,在所述显示屏上显示所述第一界面和第二界面,所述第二界面的界面内容为所述第一客户端的第一截屏图像,所述第一客户端为所述多个客户端中其中一个客户端,所述第一截屏图像为在所述终端检测到输入的第四操作时所述第一客户端显示的图像。这里,在第一界面包括多个客户端的应用界面的情况下,终端可以针对其中一个客户端进行截屏,显示在第二界面中。With reference to the first aspect, when the interface content of the first interface includes application interfaces of multiple clients, the terminal displays the first interface and the second interface on the display screen when detecting the input second operation, Including: when the terminal detects the input of the fourth operation for the first client, displaying the first interface and the second interface on the display screen, and the interface content of the second interface is the first client The first screenshot image of the terminal, the first client is one of the multiple clients, and the first screenshot image is the first client when the terminal detects the fourth operation input The displayed image. Here, in the case where the first interface includes application interfaces of multiple clients, the terminal may take a screenshot of one of the clients and display it in the second interface.
在一些实施例中,所述针对第一客户端的第四操作作用于所述终端的显示屏。In some embodiments, the fourth operation for the first client acts on the display screen of the terminal.
在一些实施例中,当第一界面的界面内容包括多个客户端的应用界面时,所述终端检测到输入的第二操作时,在所述显示屏上显示所述第一界面和第二界面,包括:所述终端检测到输入的第二操作时,获取第一界面的截屏图像,根据输入的第六操作在第一界面的截屏图像中选取第一客户端的应用界面作为第一截屏图像,显示在第二界面中。这里,在第一界面包括多个客户端的应用界面的情况下,终端可以选择其中一个客户端的截屏图像显示在第二界面中,而无需对截屏图像再次进行裁剪。In some embodiments, when the interface content of the first interface includes multiple client application interfaces, when the terminal detects the input second operation, the first interface and the second interface are displayed on the display screen. , Including: when the terminal detects the input second operation, acquiring a screenshot image of the first interface, and selecting the application interface of the first client from the screenshot images of the first interface according to the input sixth operation as the first screenshot image, Displayed in the second interface. Here, in the case that the first interface includes application interfaces of multiple clients, the terminal can select a screenshot image of one of the clients to display in the second interface without cropping the screenshot image again.
在一些实施例中,所述第六操作作用于所述终端的显示屏。In some embodiments, the sixth operation acts on the display screen of the terminal.
结合第一方面,所述方法还包括:所述终端检测到输入的第五操作时,根据所述第五操作调整所述第二界面的显示状态,所述第二界面的显示状态包括以下至少一项:位置、大小或形状。With reference to the first aspect, the method further includes: when the terminal detects a fifth operation input, adjusting the display state of the second interface according to the fifth operation, and the display state of the second interface includes at least the following One item: location, size, or shape.
结合第一方面,所述第一操作、所述第二操作、所述第三操作、所述第四操作和所述第五操作包括自动操作或用户操作。用户操作可以为用户通过按键、触控显示屏、语音等方式完成的操作;自动操作可以是在终端达到了某个状态的时候,自动触发完成的操作。例如,当第一界面的显示内容更新后,自动触发第一操作,获取第一界面的第二截屏图像, 显示在第二界面上。With reference to the first aspect, the first operation, the second operation, the third operation, the fourth operation, and the fifth operation include automatic operation or user operation. User operations can be operations completed by the user through buttons, touch screen, voice, etc.; automatic operations can be operations that are automatically triggered when the terminal reaches a certain state. For example, when the display content of the first interface is updated, the first operation is automatically triggered to obtain the second screenshot image of the first interface and display it on the second interface.
第二方面,本申请提供了一种终端上的图形用户界面,所述终端具有显示屏、存储器和用以执行存储于所述存储器中的一个或一个以上程序的一个或一个以上的处理器,所述图形用户界面包括:系统当前输出在所述显示屏上显示的第一界面和第二界面,其中:In a second aspect, this application provides a graphical user interface on a terminal, the terminal having a display screen, a memory, and one or more processors for executing one or more programs stored in the memory, The graphical user interface includes: a first interface and a second interface displayed on the display screen currently output by the system, wherein:
响应于终端检测到输入的第二操作,在显示屏上显示第一界面和第二界面,所述第二界面的界面内容为所述第一界面的第一截屏图像,所述第一界面和所述第二界面没有重叠区域;In response to the terminal detecting the second operation input, the first interface and the second interface are displayed on the display screen, the interface content of the second interface is the first screenshot image of the first interface, the first interface and The second interface has no overlapping area;
响应于所述终端检测到输入的第一操作时,获取所述第一界面的第二截屏图像,所述第二截屏图像为所述终端检测到输入的第一操作时所述第一界面显示的图像;In response to the terminal detecting the input of the first operation, a second screenshot image of the first interface is acquired, where the second screenshot image is the first interface displayed when the terminal detects the input of the first operation Image;
响应于所述终端将所述第二界面的界面内容由所述第一截屏图像替换为所述第二截屏图像。In response to the terminal replacing the interface content of the second interface from the first screenshot image to the second screenshot image.
结合第二方面,在一些实施例中,该图形用户界面还包括:响应于终端在所述第二界面的第一截屏图像上添加图层;响应于终端检测到输入的第一操作时,获取所述第一界面的第二截屏图像;响应于终端将所述第二截屏图像替换所述第一截屏图像,所述第二界面的界面内容为所述第一界面的第二截屏图像和所述图层。With reference to the second aspect, in some embodiments, the graphical user interface further includes: in response to the terminal adding a layer to the first screenshot image of the second interface; in response to the terminal detecting the input of the first operation, acquiring The second screenshot image of the first interface; in response to the terminal replacing the second screenshot image with the first screenshot image, the interface content of the second interface is the second screenshot image of the first interface and all The layer.
结合第二方面,在一些实施例中,该图形用户界面还包括:响应于终端检测到输入的第三操作时,保存所述第二界面的界面内容作为目标截屏图像,所述目标截屏图像包括所述第二截屏图像和所述图层。With reference to the second aspect, in some embodiments, the graphical user interface further includes: in response to the terminal detecting the input of the third operation, saving the interface content of the second interface as a target screenshot image, the target screenshot image including The second screenshot image and the layer.
结合第二方面,在一些实施例中,该图形用户界面还包括:所述第一界面的界面内容包括多个客户端的应用界面。With reference to the second aspect, in some embodiments, the graphical user interface further includes: the interface content of the first interface includes application interfaces of multiple clients.
结合第二方面,在一些实施例中,该图形用户界面还包括:终端检测到输入的针对第一客户端的第四操作时,在所述显示屏上显示所述第一界面和第二界面,所述第二界面的界面内容为所述第一客户端的第一截屏图像,所述第一客户端为所述多个客户端中其中一个客户端,所述第一截屏图像为在所述终端检测到输入的第四操作时所述第一客户端显示的图像。With reference to the second aspect, in some embodiments, the graphical user interface further includes: when the terminal detects the input of the fourth operation for the first client, displaying the first interface and the second interface on the display screen, The interface content of the second interface is a first screenshot image of the first client, the first client is one of the plurality of clients, and the first screenshot image is displayed on the terminal The image displayed by the first client when the input fourth operation is detected.
结合第二方面,在一些实施例中,该图形用户界面还包括:响应于终端检测到输入的第五操作时,根据所述第五操作调整所述第二界面的显示状态,所述第二界面的显示状态包括以下至少一项:位置、大小或形状。With reference to the second aspect, in some embodiments, the graphical user interface further includes: in response to the terminal detecting a fifth operation input, adjusting the display state of the second interface according to the fifth operation, and the second The display status of the interface includes at least one of the following: position, size, or shape.
在第二方面提供的图形用户界面中,关于第一操作、第二操作、第三操作、第四操作、第五操作以及第六操作的说明可参考第一方面中的相关内容,这里不赘述。In the graphical user interface provided by the second aspect, for the description of the first operation, second operation, third operation, fourth operation, fifth operation, and sixth operation, please refer to the related content in the first aspect, which will not be repeated here. .
第三方面,本申请提供了一种终端,包括:一个或多个处理器、一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,所述终端执行如第一方面提供的全屏显示视频中截屏处理的方法。In a third aspect, the present application provides a terminal, including: one or more processors, one or more memories; the one or more memories are coupled with the one or more processors, and the one or more A memory is used to store computer program code, the computer program code includes computer instructions, when the one or more processors execute the computer instructions, the terminal executes the screenshot processing in the full-screen display video provided by the first aspect Methods.
第四方面,本申请提供了一种计算机存储介质,包括计算机指令,当所述计算机指令在终端上运行时,使得所述终端执行如第一方面提供的全屏显示视频中截屏处理的方法。In a fourth aspect, the present application provides a computer storage medium, including computer instructions, which when the computer instructions are executed on a terminal, cause the terminal to execute the method for processing screenshots in a full-screen display video as provided in the first aspect.
实施本申请,终端全屏显示视频播放界面时,可根据操作悬浮显示第二界面,第二界面的显示界面可以切换,终端还可根据操作在多窗口显示和全屏显示之间快速切换。在此 过程中,终端持续播放视频。In the implementation of this application, when the terminal displays the video playback interface in full screen, the second interface can be displayed floating according to the operation, the display interface of the second interface can be switched, and the terminal can also quickly switch between multi-window display and full-screen display according to the operation. During this process, the terminal continues to play the video.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly describe the technical solutions in the embodiments of the present application or the background art, the following will describe the drawings that need to be used in the embodiments of the present application or the background art.
图1为本申请提供的一种截屏处理的方法的应用界面图;Figure 1 is an application interface diagram of a screenshot processing method provided by this application;
图2a为本申请提供的又一种截屏处理的方法的应用界面图;Figure 2a is an application interface diagram of another method for screenshot processing provided by this application;
图2b为本申请提供的又一种截屏处理的方法的应用界面图;Figure 2b is an application interface diagram of another method for screenshot processing provided by this application;
图2c为本申请提供的又一种截屏处理的方法的应用界面图;Figure 2c is an application interface diagram of another method for screenshot processing provided by this application;
图3为本申请提供的又一种截屏处理的方法的应用界面图;FIG. 3 is an application interface diagram of another method for screenshot processing provided by this application;
图4为本申请提供的又一种截屏处理的方法的应用界面图;FIG. 4 is an application interface diagram of another method for screenshot processing provided by this application;
图5a为本申请提供的又一种截屏处理的方法的应用界面图;Figure 5a is an application interface diagram of another method for screenshot processing provided by this application;
图5b为本申请提供的又一种截屏处理的方法的应用界面图;Figure 5b is an application interface diagram of another method for screenshot processing provided by this application;
图6为本申请提供的终端的结构示意图;Figure 6 is a schematic structural diagram of a terminal provided by this application;
图7为本申请提供的终端的软件结构框图;Figure 7 is a block diagram of the software structure of the terminal provided by this application;
图8为本申请提供的一种截屏处理的方法的流程示意图。FIG. 8 is a schematic flowchart of a screenshot processing method provided by this application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。Among them, in the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this document is only a description of related objects The association relationship of indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: A alone exists, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" refers to two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
本申请提供的截屏处理的方法可以一边观看视频一边对截屏图像进行编辑,并且在视频内容刷新后,可以刷新截屏图像的内容,并将刷新后的截屏图像与用户编辑的内容结合,形成最终的图像。The screenshot processing method provided by this application can edit the screenshot image while watching the video, and after the video content is refreshed, the content of the screenshot image can be refreshed, and the refreshed screenshot image can be combined with the content edited by the user to form the final image.
首先,以一个具体的应用场景为例,对本申请的截屏处理的方法进行说明。在该具体的应用场景中,用户在观看视频,想要对视频中某一帧图像进行截屏,同时对该截屏图像进行编辑,并且希望保持显示视频窗口。First, a specific application scenario is taken as an example to describe the method of screenshot processing in this application. In this specific application scenario, the user is watching a video and wants to take a screenshot of a certain frame of image in the video, while editing the screenshot, and wants to keep the video window displayed.
下面以用户正在全屏观看视频为例进行说明。该视频可以为视频应用或门户网站提供的视频,也可以是终端100中保存的视频,还可以是终端100从其他设备接收到的视频,这里不做限制。该视频界面可以为正在播放的视频,也可以为暂停的视频。The following is an example of a user watching a video in full screen. The video may be a video provided by a video application or a portal website, or a video saved in the terminal 100, or a video received by the terminal 100 from other devices, and there is no limitation here. The video interface can be a video that is currently playing or a video that is paused.
举例来说,参见图1左侧附图,终端100的显示屏10中显示有系统当前输出的第一界 面20,第一界面20可以为视频应用提供的界面。本申请中,显示屏10配置有触控面板,可用于接收用户的触摸触控操作,该触摸触控操作是指用户手部、手肘、触控笔等接触显示屏10的操作。当终端100检测到用户作用于视频界面的操作(例如点击最大化键)时,或者,终端100的姿态由竖屏变为横屏时,响应于该操作,终端100全屏显示如图1右侧附图所示的视频界面。For example, referring to the figure on the left side of FIG. 1, the display screen 10 of the terminal 100 displays the first interface 20 currently output by the system, and the first interface 20 may be an interface provided by a video application. In the present application, the display screen 10 is configured with a touch panel, which can be used to receive a user's touch operation. The touch operation refers to the operation of the user's hand, elbow, or stylus touching the display screen 10. When the terminal 100 detects a user's operation on the video interface (for example, clicking the maximize button), or when the posture of the terminal 100 changes from a vertical screen to a horizontal screen, in response to this operation, the terminal 100 displays a full-screen display on the right side of FIG. 1 The video interface shown in the attached picture.
在本申请的一些实施例中,全屏显示视频界面是指,显示屏10中仅显示视频界面,而不显示其他内容。在一种可能的实施方式中,全屏显示视频界面时,该视频界面可以占用显示屏10的全部显示区域,例如图1右侧附图所示。在另一种可能的实施方式中,该视频界面还可以仅占用显示屏10的部分显示区域,例如显示屏10为异形切割屏(Notch屏)时,异形切割屏的中间部分显示视频界面,一侧或两侧边缘部分黑屏时,也可看作显示屏10全屏显示该视频界面。In some embodiments of the present application, the full-screen display of the video interface means that only the video interface is displayed on the display screen 10, and no other content is displayed. In a possible implementation manner, when the video interface is displayed in a full screen, the video interface may occupy all the display area of the display screen 10, for example, as shown in the right drawing of FIG. 1. In another possible implementation manner, the video interface may also only occupy part of the display area of the display screen 10. For example, when the display screen 10 is a notch screen, the video interface is displayed in the middle part of the notch screen. When the side or both edges are partially black, it can also be regarded as the display screen 10 displaying the video interface in full screen.
在本申请的另一些实施例中,全屏显示视频界面可以指,显示屏中显示视频界面的同时,还可以显示系统级别的界面元素,例如状态栏、悬浮快捷菜单(如苹果的Assistive Touch)等。其中,状态栏中可以包括运营商的名称(例如中国移动)、时间、WiFi图标、信号强度和当前的剩余电量等。In other embodiments of the present application, the full-screen display of the video interface may mean that while the video interface is displayed on the display screen, system-level interface elements, such as status bar, floating shortcut menu (such as Apple's Assistive Touch), etc., can also be displayed. . Among them, the status bar may include the name of the operator (for example, China Mobile), time, WiFi icon, signal strength, and current remaining power.
这里,视频界面可以包括视频画面,还可以包括视频的进度条、调节音量的虚拟按键、播放/暂停视频的虚拟按键等。Here, the video interface may include a video screen, and may also include a video progress bar, a virtual button for adjusting the volume, a virtual button for playing/pausing the video, and so on.
用户观看第一界面20中的视频界面时,想要对视频进行截屏时,则可通过按键或者触控操作(例如双击、滑动、绘制特定图形、悬浮手势等)对显示屏10进行截屏。响应于用户的截屏操作,终端100在显示屏10上显示第一界面20的同时,显示第二界面30。其中,第二界面30中的显示内容为对第一界面20中的显示界面进行截屏所获取的截屏图像。When the user views the video interface in the first interface 20 and wants to take a screenshot of the video, the user can take a screenshot of the display screen 10 by pressing keys or touch operations (for example, double-clicking, sliding, drawing specific graphics, hovering gestures, etc.). In response to the user's screen capture operation, the terminal 100 displays the second interface 30 while displaying the first interface 20 on the display screen 10. Wherein, the display content in the second interface 30 is a screenshot image obtained by taking a screenshot of the display interface in the first interface 20.
本申请中,为了描述简洁,后续提及的终端100显示第二界面30是指,终端100在显示屏10上显示第一界面20的同时,显示第二界面30。In this application, for the sake of brevity of description, the later mentioned that the terminal 100 displays the second interface 30 means that the terminal 100 displays the second interface 30 while displaying the first interface 20 on the display screen 10.
本申请中,可将触发终端100在显示屏10上进行截屏的操作称为第二操作。In this application, the operation of triggering the terminal 100 to take a screenshot on the display screen 10 may be referred to as the second operation.
示例性地,如图2a上侧附图所示,响应于用户的截屏操作,终端100在显示屏10上同时显示第二界面30。其中,第一界面20和第二界面30属于两个不同的客户端,且第一界面20和第二界面30的界面内容不重叠。在图2a上侧附图所示的实施例中,第二界面30为矩形。第二界面30的大小可以和第一界面20大小类似,便于用户同时查看第一界面20和第二界面30中的界面内容。可选的,第二界面30和第一界面20的位置和大小可以根据用户需求进行拖动和调整。Exemplarily, as shown in the upper drawing of FIG. 2a, in response to the user's screen capture operation, the terminal 100 simultaneously displays the second interface 30 on the display screen 10. Among them, the first interface 20 and the second interface 30 belong to two different clients, and the interface contents of the first interface 20 and the second interface 30 do not overlap. In the embodiment shown in the upper drawing of FIG. 2a, the second interface 30 is rectangular. The size of the second interface 30 may be similar to the size of the first interface 20, so that the user can view the interface content in the first interface 20 and the second interface 30 at the same time. Optionally, the positions and sizes of the second interface 30 and the first interface 20 can be dragged and adjusted according to user requirements.
本申请中,第二界面30还可显示一个或多个功能图标。示例性地,如图2a上侧附图所示,第二界面30可显示发送21、编辑22、删除23等图标。这些图标可用于接收用户的触控操作,并基于接收的触控操作输出相应的界面。例如,用户可在第二界面30中点击任意一个图标以操作该图标描述的功能。当用户触发图标发送21,第二界面30中的截屏图像可以发送到其他客户端;当用户触发图标编辑22,则可以在第二界面30中的截屏图像上添加图层,该图层可以是用户自定义的图层;当用户触发图标删除23,第二界面30中的截屏图像被删除,第二界面30中没有可显示的内容,则第二界面30也不显示在显示屏 10上,第一界面10恢复截屏前的位置和大小。In this application, the second interface 30 may also display one or more function icons. Exemplarily, as shown in the upper drawing of FIG. 2a, the second interface 30 may display icons such as sending 21, editing 22, and deleting 23. These icons can be used to receive user touch operations and output corresponding interfaces based on the received touch operations. For example, the user can click any icon in the second interface 30 to operate the function described by the icon. When the user triggers icon sending 21, the screenshot image in the second interface 30 can be sent to other clients; when the user triggers icon editing 22, you can add a layer to the screenshot image in the second interface 30, which can be User-defined layer; when the user triggers icon deletion 23, the screenshot image in the second interface 30 is deleted, and there is no displayable content in the second interface 30, the second interface 30 is not displayed on the display screen 10. The first interface 10 restores the position and size before the screenshot.
本申请中,示例性的,终端100的显示屏10为可折叠显示屏,显示屏10的状态分为折叠态和展开态。当显示屏10的状态为展开态时,显示屏10全屏显示第一界面;如图2b所示,响应于用户的截屏操作,终端100在显示屏10上划分两个显示区域,分别显示第一界面20和第二界面30。可选的,根据用户的使用习惯或使用终端100的角度,显示屏10中的显示情况也可如图2c所示。In this application, for example, the display screen 10 of the terminal 100 is a foldable display screen, and the state of the display screen 10 is divided into a folded state and an expanded state. When the state of the display screen 10 is in the expanded state, the display screen 10 displays the first interface in full screen; as shown in FIG. The interface 20 and the second interface 30. Optionally, according to the user's usage habits or the angle of using the terminal 100, the display condition on the display screen 10 may also be as shown in FIG. 2c.
在上述应用场景中,从用户触发截屏操作,到终端100在显示屏10上显示第二界面30的过程中,第一界面20中的视频播放界面可以被中断,也可以不被中断。当视频不被中断时,用户可在持续观看视频的同时,在第二界面30中对截屏图像进行编辑。In the above application scenario, from the user triggering the screen capture operation to the process that the terminal 100 displays the second interface 30 on the display screen 10, the video playback interface in the first interface 20 may or may not be interrupted. When the video is not interrupted, the user can edit the screenshot image in the second interface 30 while continuously watching the video.
示例性地,如图2a下侧附图所示,响应于用户触发的图标编辑22。第二界面30可显示标记24、刷新25、保存26等图标。这些图标可用于接收用户的触控操作,并基于接收的触控操作输出相应的界面。例如,用户可在第二界面30中点击任意一个图标以操作该图标描述的功能。Exemplarily, as shown in the lower drawing of FIG. 2a, the icon editing 22 is in response to a user trigger. The second interface 30 can display icons such as mark 24, refresh 25, and save 26. These icons can be used to receive user touch operations and output corresponding interfaces based on the received touch operations. For example, the user can click any icon in the second interface 30 to operate the function described by the icon.
当用户触发图标标记24,其中标记的方式包括通过画笔、文本、涂色等工具在第二界面30中的截屏图像上添加自定义图层。示例性的,如图3所示,图层40包括一个箭头和文本“重要”,即可以通过画笔工具绘制箭头,通过文本工具编辑“重要”。这种通过添加自定义图层的方式在截屏图像上做标记,可以满足用户一边观看视频一边做笔记的需求。When the user triggers the icon marking 24, the marking method includes adding a custom layer to the screenshot image in the second interface 30 through tools such as brushes, text, and painting. Exemplarily, as shown in FIG. 3, the layer 40 includes an arrow and the text "important", that is, the arrow can be drawn by the brush tool, and the "important" can be edited by the text tool. This way of adding custom layers to mark the screenshot image can meet the needs of users to take notes while watching the video.
当用户触发图标保存26,则保存第二界面30中的界面内容(包括截屏图像和通过图标标记24添加的图层40)。When the user triggers the icon save 26, the interface content in the second interface 30 (including the screenshot image and the layer 40 added by the icon mark 24) is saved.
当用户触发图标刷新25,可以刷新第二界面30中的截屏图像,但是保留用户添加的图层,将刷新的截屏图像和图层叠加,形成新的图片。其中,刷新的截屏图像为用户触发图标刷新25时第一界面20显示的界面内容。下面详细的介绍如何刷新截屏图象。When the user triggers the icon refresh 25, the screenshot image in the second interface 30 can be refreshed, but the layer added by the user is retained, and the refreshed screenshot image and the layer are superimposed to form a new picture. The refreshed screenshot image is the interface content displayed on the first interface 20 when the user triggers the icon refresh 25. The following details how to refresh the screenshot image.
由于从用户触发截屏操作,到终端100在显示屏10上显示第二界面30的过程中,第一界面20中的视频播放界面可以不被中断。即用户在对第二界面30中的截屏图像进行编辑时,可以持续观看视频。示例性的,如图4上侧附图所示,当用户在编辑图层40时,第一界面20中的视频播放界面持续在播放,且更新了部分内容50。此时当用户触发图标刷新25时,如图4下侧附图所示,第二界面30中的截屏图像为第一界面20中当前的显示界面,且图层40仍然叠加显示在刷新后的截屏图像中。此时当用户触发图标保存26,保存第二界面30中的刷新后的截屏图像和图层40。即达到了在用户截屏后一边编辑截屏图像一边使用当前客户端,且客户端界面刷新后,编辑内容与当前界面匹配的效果。Since the user triggers the screen capture operation and the terminal 100 displays the second interface 30 on the display screen 10, the video playback interface in the first interface 20 may not be interrupted. That is, the user can continue to watch the video while editing the screenshot image in the second interface 30. Exemplarily, as shown in the upper drawing of FIG. 4, when the user is editing the layer 40, the video playback interface in the first interface 20 continues to play, and part of the content 50 is updated. At this time, when the user triggers the icon refresh 25, as shown in the lower drawing of FIG. 4, the screenshot image in the second interface 30 is the current display interface in the first interface 20, and the layer 40 is still superimposed and displayed on the refreshed interface. In the screenshot image. At this time, when the user triggers the icon save 26, the refreshed screenshot image and the layer 40 in the second interface 30 are saved. That is, after the user takes a screenshot, while editing the screenshot image while using the current client, and the client interface is refreshed, the editing content matches the current interface.
可以理解的,第二界面30中的界面内容可以添加多个图层,也可以多次刷新。It is understandable that multiple layers can be added to the interface content in the second interface 30, and it can also be refreshed multiple times.
本申请中,可将触发终端100在显示屏10上进行刷新的操作称为第一操作。可将触发终端100保存第二界面的界面内容的操作称为第三操作。In this application, the operation of triggering the terminal 100 to refresh on the display screen 10 may be referred to as the first operation. The operation of triggering the terminal 100 to save the interface content of the second interface may be referred to as a third operation.
通过上述图1-图4所示的实施例,用户在观看视频时,可以通过截屏打开第二界面,在第二界面中查看截屏图像,一边观看视频一边对截屏图像进行编辑,可刷新第二界面,还可再次编辑。这样的截屏处理的方法,可以不影响视频的播放,并可一边观看视频一边对截屏图像进行编辑。此外,在终端配置有大尺寸显示屏(例如9寸、10寸及以上的显示 屏)或者折叠屏、双屏时,可充分利用大屏优势呈现第一界面和第二界面。Through the embodiments shown in Figure 1 to Figure 4 above, when watching a video, a user can open the second interface through a screenshot, view the screenshot image in the second interface, and edit the screenshot image while watching the video. The second interface can be refreshed. The interface can be edited again. Such a screenshot processing method does not affect the playback of the video, and the screenshot image can be edited while watching the video. In addition, when the terminal is equipped with a large-size display screen (for example, a display screen of 9 inches, 10 inches or more) or a folding screen or a dual screen, the advantages of the large screen can be fully utilized to present the first interface and the second interface.
上述图1-图4实施例以具体的应用场景为例,对本申请的截屏处理的方法进行了说明,下面介绍本申请提供的其他可选的人机交互实施例。The above embodiments in Figures 1 to 4 use specific application scenarios as examples to illustrate the screenshot processing method of the present application. The following introduces other optional human-computer interaction embodiments provided by the present application.
不限于上述图1所示的视频播放界面,在本申请的一些实施例中,第一界面20还可为其他的显示界面。终端100的显示屏10中显示的系统当前输出的第一界面20可为以下任意一种:竖屏显示的客户端应用界面、陈列应用图标的桌面、同时显示多个客户端的应用界面的分屏界面等等。其中,横屏显示指终端显示的界面内容的宽度大于高度,竖屏显示指终端显示的界面内容的高度大于宽度。不限于图1及图4所示的界面内容,第一界面20还可以为其他的界面,例如游戏界面、网页浏览界面、阅读书籍的界面、音乐播放界面、文本编辑界面等。第一界面20还可以包括系统级别的界面元素,例如悬浮快捷菜单等,这里不做限制。It is not limited to the video playback interface shown in FIG. 1 above. In some embodiments of the present application, the first interface 20 may also be other display interfaces. The first interface 20 currently output by the system displayed on the display screen 10 of the terminal 100 can be any one of the following: a client application interface displayed in a portrait screen, a desktop displaying application icons, and a split screen displaying application interfaces of multiple clients at the same time Interface and so on. Among them, the horizontal screen display means that the width of the interface content displayed by the terminal is greater than the height, and the vertical screen display means that the height of the interface content displayed by the terminal is greater than the width. Not limited to the interface content shown in FIGS. 1 and 4, the first interface 20 may also be other interfaces, such as a game interface, a web browsing interface, an interface for reading books, an interface for music playback, an interface for text editing, and the like. The first interface 20 may also include system-level interface elements, such as floating shortcut menus, etc., which are not limited here.
本申请中,当第一界面20同时显示多个客户端的应用界面时,当对第一界面20进行截屏时,可以只截取其中一个客户端的应用界面,或者截取第一界面20的整个界面内容后选出其中一个客户端的应用界面,第二显示界面30的界面内容为该一个客户端的应用界面。In the present application, when the first interface 20 displays the application interfaces of multiple clients at the same time, when the first interface 20 is screen-captured, the application interface of one of the clients may be captured, or the entire interface content of the first interface 20 may be captured. The application interface of one of the clients is selected, and the interface content of the second display interface 30 is the application interface of the one client.
示例性的,如图5a上侧附图所示,第一界面20的界面内容包括客户端1和客户端2的应用界面。当终端系统接收到用户触发针对客户端1的截屏操作时,截取客户端1的应用界面。其中,针对客户端1的截屏操作可以是作用于显示屏10上客户端1的显示区域中的触屏操作,也可以是按键操作、悬浮手势操作等等。本申请中,可将触发终端100在显示屏10上针对客户端1进行截屏的操作称为第四操作。Exemplarily, as shown in the upper drawing of FIG. 5a, the interface content of the first interface 20 includes the application interfaces of the client 1 and the client 2. When the terminal system receives the user's trigger for the screenshot operation for the client terminal 1, the terminal system captures the application interface of the client terminal 1. Wherein, the screenshot operation for the client 1 may be a touch screen operation acting on the display area of the client 1 on the display screen 10, or may be a key operation, a hovering gesture operation, and so on. In this application, the operation of triggering the terminal 100 to take a screenshot of the client 1 on the display screen 10 may be referred to as the fourth operation.
可选的,当终端系统接收到用户触发针对第一界面20的截屏操作时,截取第一界面20的界面内容;用户可以选取截屏内容中客户端1的应用界面,当终端系统接收到用户触发针对客户端1的选取操作时,将截取到的第一界面20的界面内容中的客户端1的应用界面的显示在第二界面30上。本申请中,可将触发终端100选取截屏内容中客户端1的应用界面的操作称为第六操作。Optionally, when the terminal system receives a user triggering a screenshot operation for the first interface 20, the interface content of the first interface 20 is captured; the user can select the application interface of the client 1 in the screenshot content, and when the terminal system receives the user trigger For the selection operation of the client 1, the application interface of the client 1 among the intercepted interface content of the first interface 20 is displayed on the second interface 30. In this application, the operation of triggering the terminal 100 to select the application interface of the client 1 in the screenshot content may be referred to as the sixth operation.
如图5a下侧附图所示,响应于用户的截屏操作,终端100在显示屏10上同时显示第二界面30。其中,第一界面20和第二界面30的界面内容不重叠。第二界面30和第一界面20的位置和大小可以根据用户需求进行拖动和调整。As shown in the lower figure of FIG. 5a, in response to the user's screen capture operation, the terminal 100 simultaneously displays the second interface 30 on the display screen 10. Wherein, the interface contents of the first interface 20 and the second interface 30 do not overlap. The positions and sizes of the second interface 30 and the first interface 20 can be dragged and adjusted according to user requirements.
本申请中,如图5b上侧附图所示,终端100的显示屏10为可折叠显示屏,第一界面20同时显示两个客户端(客户端1和客户端2)的应用界面。显示屏10的状态分为折叠态和展开态。当显示屏10的状态为展开态时,显示屏10全屏显示第一界面,第一界面分别显示客户端1和客户端2。如图5b下侧附图所示,响应于用户的截屏操作,终端100在显示屏10上划分两个显示区域,分别显示第一界面20和第二界面30。其中第一界面20中客户端1和客户端2的位置和大小可以根据用户需求进行拖动和调整。In this application, as shown in the upper drawing of FIG. 5b, the display screen 10 of the terminal 100 is a foldable display screen, and the first interface 20 displays the application interfaces of two clients (client 1 and client 2) at the same time. The state of the display screen 10 is divided into a folded state and an expanded state. When the state of the display screen 10 is the expanded state, the display screen 10 displays the first interface in full screen, and the first interface displays the client 1 and the client 2 respectively. As shown in the lower figure of FIG. 5b, in response to the user's screen capture operation, the terminal 100 divides two display areas on the display screen 10, and displays the first interface 20 and the second interface 30 respectively. The positions and sizes of the client 1 and the client 2 in the first interface 20 can be dragged and adjusted according to user requirements.
本申请中,第二界面30显示在显示屏10之上后,用户可根据具体需求调整第二界面30的显示位置、形状及大小等。其中,示例性列举几种第二界面30的调整方式。例如,用户可长按第二界面30的任意区域,当终端系统检测到长按时间达到阈值时,第二界面30可随着手指的移动而移动。例如,用户可用手指拖动第二界面30的边缘位置,从而改 变第二界面30的显示长度或宽度。又例如,用户可用手指拖动第二界面30的右下角,第二界面30的左上角不动,第二界面30的右下角随着手指的滑动轨迹扩大到显示屏10的边缘位置。In this application, after the second interface 30 is displayed on the display screen 10, the user can adjust the display position, shape, and size of the second interface 30 according to specific needs. Among them, several adjustment methods of the second interface 30 are exemplified. For example, the user can long press any area of the second interface 30, and when the terminal system detects that the long press time reaches a threshold, the second interface 30 can move with the movement of the finger. For example, the user can drag the edge position of the second interface 30 with a finger to change the display length or width of the second interface 30. For another example, the user can drag the lower right corner of the second interface 30 with a finger, the upper left corner of the second interface 30 does not move, and the lower right corner of the second interface 30 expands to the edge position of the display screen 10 along with the sliding track of the finger.
本申请中,用于调整第二界面30的操作不仅仅限于上述举例,还可以有其他方式。例如,用户还可以通过点击终端系统在显示屏10上输出的调整选项(例如“扩大第二界面”“缩小第二界面”等)或图标,调整第二界面30的大小等。本申请中,可将触发终端100调整第二界面的显示状态的操作称为第五操作。In this application, the operation for adjusting the second interface 30 is not limited to the above examples, and other methods are also possible. For example, the user can also adjust the size of the second interface 30 by clicking on the adjustment options (for example, “enlarge the second interface”, “reduce the second interface”, etc.) or icons output on the display screen 10 of the terminal system. In this application, the operation of triggering the terminal 100 to adjust the display state of the second interface may be referred to as the fifth operation.
在具体实施时,第二界面30的形状或大小被调整后,为了符合用户习惯和显示美观,可以适应性的调整第二界面30中的界面元素的显示方式。例如,第二界面30缩小后,可以将第二界面30中的界面元素(例如图标等)等比例缩小显示,也可以仅显示第二界面30原有界面元素中的一部分。实际应用中,该适应性的调整第二界面30中的界面元素的显示方式还可以包括调整界面元素之间的间距、界面元素之间的显示位置等等,本申请对此不做限制。In a specific implementation, after the shape or size of the second interface 30 is adjusted, in order to conform to user habits and display aesthetics, the display mode of the interface elements in the second interface 30 can be adjusted adaptively. For example, after the second interface 30 is reduced, the interface elements (such as icons, etc.) in the second interface 30 may be displayed in a reduced scale, or only a part of the original interface elements of the second interface 30 may be displayed. In actual applications, the adaptive adjustment of the display mode of the interface elements in the second interface 30 may also include adjusting the spacing between the interface elements, the display position between the interface elements, etc., which is not limited in this application.
在本申请的一些实施例中,用户还可以关闭第二界面30。这里,关闭第二界面30是指触发多窗口显示的相应程序被关闭,显示屏10仅显示第一界面20。在一种可能的实施方式中,关闭第二界面30后,之前终端100用于显示第二界面30的处理资源以及存储资源等被释放。在另一种可能的实施方式中,关闭第二界面30后,第二界面30在终端100的后台继续运行,但不在显示屏10上显示。当用户想要重新查看第二界面30时,可重新触发显示第二界面30。In some embodiments of the present application, the user can also close the second interface 30. Here, closing the second interface 30 means that the corresponding program that triggers the multi-window display is closed, and the display screen 10 only displays the first interface 20. In a possible implementation manner, after the second interface 30 is closed, the processing resources and storage resources used by the terminal 100 to display the second interface 30 are released. In another possible implementation manner, after the second interface 30 is closed, the second interface 30 continues to run in the background of the terminal 100, but is not displayed on the display screen 10. When the user wants to view the second interface 30 again, the display of the second interface 30 can be triggered again.
可理解的,上述图1-图5b所示的示例仅仅用于解释本发明实施例,不应构成限定。It is understandable that the examples shown in Figs. 1 to 5b are only used to explain the embodiments of the present invention and should not constitute a limitation.
下面介绍本申请涉及的终端100的一种实现方式。The following describes an implementation manner of the terminal 100 involved in the present application.
本申请中,终端100可以为手机、平板电脑、个人数字助理(personal digital assistant,PDA)、可穿戴设备等便携式电子设备。便携式电子设备的示例性实施例包括但不限于搭载iOS、android、microsoft或者其他操作系统的便携式电子设备。上述便携式电子设备也可以是其他便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本申请其他一些实施例中,终端100也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机。In this application, the terminal 100 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, and the like. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices equipped with iOS, android, microsoft or other operating systems. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (such as a touch panel). It should also be understood that in some other embodiments of the present application, the terminal 100 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
本申请中,终端100配置有显示屏,可用于显示终端系统当前输出的界面内容。该界面内容可包括正在运行的应用程序的界面以及系统级别菜单等,具体可由下述界面元素组成:输入型界面元素,例如按键(button),文本输入框(text),滑动条(scroll Bar),菜单(menu)等等;以及输出型界面元素,例如视窗(window),标签(label)等等。In this application, the terminal 100 is equipped with a display screen, which can be used to display the interface content currently output by the terminal system. The interface content can include the interface of the running application and the system-level menu, etc. It can be composed of the following interface elements: input interface elements, such as buttons, text input boxes, scroll bars , Menu, etc.; and output interface elements, such as window, label, etc.
本申请中,终端100的显示屏配置有触控面板,即该显示屏为触摸屏,可用于接收用户的触摸触控操作,触摸触控操作是指用户身体部位或触控笔直接接触显示屏的操作。在一些可选的实施例中,该触摸屏还可用于接收用户的悬浮触控操作,悬浮触控操作是指用户手部悬浮于显示屏上方并不接触显示屏的操作。In the present application, the display screen of the terminal 100 is equipped with a touch panel, that is, the display screen is a touch screen, which can be used to receive a user's touch operation. operate. In some optional embodiments, the touch screen can also be used to receive a user's hovering touch operation, which refers to an operation where the user's hand is hovering above the display screen and not touching the display screen.
本申请中,终端100接收到用于触发显示第二界面的操作时,在触摸屏显示第一界面的同时显示第二界面。第二界面中的显示内容为对第一界面的显示界面进行截屏所获取的 截屏图像。In this application, when the terminal 100 receives an operation for triggering the display of the second interface, it displays the second interface while displaying the first interface on the touch screen. The display content in the second interface is a screenshot image obtained by taking a screenshot of the display interface of the first interface.
这里,用于触发显示第二界面的操作、第二界面的显示内容、显示方式等可参照前述实施例的相关描述,在此不赘述。Here, the operation for triggering the display of the second interface, the display content of the second interface, the display mode, etc. can refer to the related description of the foregoing embodiment, which will not be repeated here.
在本申请一些可选的实施例中,第二界面的位置、形状、大小可以调整,可参照前述实施例的相关描述,在此不赘述。In some optional embodiments of the present application, the position, shape, and size of the second interface can be adjusted, and reference may be made to the related description of the foregoing embodiments, which will not be repeated here.
在本申请一些可选的实施例中,终端100还可接收到用于触发终端隐藏第二界面的操作。In some optional embodiments of the present application, the terminal 100 may also receive an operation for triggering the terminal to hide the second interface.
在本申请一些可选的实施例中,第一操作、第二操作、第三操作、第四操作和第五操作可以为自动操作或用户操作。用户操作可以为用户通过按键、触控显示屏、语音等方式完成的操作;自动操作可以是在终端达到了某个状态的时候,自动触发完成的操作。例如,当第一界面的显示内容更新后,自动触发第一操作,获取第一界面的第二截屏图像,显示在第二界面上。In some optional embodiments of the present application, the first operation, the second operation, the third operation, the fourth operation, and the fifth operation may be automatic operations or user operations. User operations can be operations completed by the user through buttons, touch screen, voice, etc.; automatic operations can be operations that are automatically triggered when the terminal reaches a certain state. For example, when the display content of the first interface is updated, the first operation is automatically triggered to obtain a second screenshot image of the first interface and display it on the second interface.
参见图6,图6是终端100的一种实现方式的结构框图。Refer to FIG. 6, which is a structural block diagram of an implementation manner of the terminal 100.
终端100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user An identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对终端100的具体限定。在本申请另一些实施例中,终端100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understandable that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal 100. In other embodiments of the present application, the terminal 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是终端100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the terminal 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了 重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the terminal 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the terminal 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the terminal 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端100充电,也可以用于终端100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the terminal 100, and can also be used to transfer data between the terminal 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端100的结构限定。在本申请另一些实施例中,终端100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the terminal 100. In other embodiments of the present application, the terminal 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the terminal 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
终端100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。终端100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在终端100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在终端100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的 解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
在一些实施例中,终端100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
终端100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal 100 may include one or N display screens 194, and N is a positive integer greater than one.
在本申请的一些实施例中,当显示面板采用OLED、AMOLED、FLED等材料时,上述图1中的显示屏194可以被弯折。这里,上述显示屏194可以被弯折是指显示屏可以在任意部位被弯折到任意角度,并可以在该角度保持,例如,显示屏194可以从中部左右对折。也可以从中部上下对折。本申请中,将可以被弯折的显示屏称为可折叠显示屏。其中,该可折叠显示屏可以是一块屏幕,也可以是多块屏幕拼凑在一起组合成的显示屏,在此不做限定。In some embodiments of the present application, when the display panel adopts OLED, AMOLED, FLED and other materials, the display screen 194 in FIG. 1 may be bent. Here, the above-mentioned display screen 194 can be bent means that the display screen can be bent to any angle at any position and can be maintained at that angle. For example, the display screen 194 can be folded in half from the middle. You can also fold up and down from the middle. In this application, a display screen that can be bent is referred to as a foldable display screen. Wherein, the foldable display screen may be one screen, or a display screen formed by patching together multiple screens, which is not limited here.
当可折叠显示屏处于展开形态时,该可折叠显示屏可全屏显示内容。在一种可能的实施方式中,全屏显示界面内容时,该界面内容可以占用该可折叠显示屏的全部显示区域。在另一种可能的实施方式中,界面内容可以仅占用该可折叠显示屏的部分显示区域,例如显示屏为异形切割屏(Notch屏)时,异形切割屏的中间部分显示该界面内容,一侧或两侧边缘部分黑屏时,也可以看作该可折叠显示屏全屏显示该界面内容。When the foldable display screen is in the unfolded state, the foldable display screen can display content in full screen. In a possible implementation manner, when the interface content is displayed on a full screen, the interface content may occupy all the display area of the foldable display screen. In another possible implementation manner, the interface content may only occupy part of the display area of the foldable display screen. For example, when the display screen is a notch screen, the middle part of the notch screen displays the interface content, one When the side or both edges are partially black, it can also be regarded as the foldable display screen displaying the interface content in full screen.
终端100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传 递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and transforms it into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the terminal 100 may include one or N cameras 193, and N is a positive integer greater than one.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。终端100可以支持一种或多种视频编解码器。这样,终端100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal 100 may support one or more video codecs. In this way, the terminal 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the terminal 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the terminal 100 by running instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
终端100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The terminal 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端100可以设置至少一个麦克风170C。在另一些实施例中,终端100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C. The terminal 100 may be provided with at least one microphone 170C. In other embodiments, the terminal 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the terminal 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。在本申请一些可选的实施例中,压力传感器180A可用于捕获用户手指部位接触显示屏时生成的压力值,并将该压力值传输给处理器,以使得处理器识别用户通过哪个手指部位输入操作。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. In some optional embodiments of the present application, the pressure sensor 180A may be used to capture the pressure value generated when the user's finger part touches the display screen, and transmit the pressure value to the processor, so that the processor can recognize which finger part the user inputs through operate.
压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端100根据压力传感器180A检测所述触摸操作强度。终端100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。在本申请一些可选的实施例中,压力传感器180A可将检测到的电容值传输给处理器,以使得处理器识别用户通过哪个手指部位(指关节或指肚等)输入操作。在本申请一些可选的实施例中,压力传感器180A还可根据检测到的信号计算触摸点的数量,并将计算值传输给处理器,以使得处理器识别用户通过单指或多指输入操作。There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The terminal 100 determines the strength of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed. In some optional embodiments of the present application, the pressure sensor 180A may transmit the detected capacitance value to the processor, so that the processor recognizes which finger part (knuckle or finger pad, etc.) the user inputs an operation through. In some optional embodiments of the present application, the pressure sensor 180A may also calculate the number of touch points based on the detected signal, and transmit the calculated value to the processor, so that the processor can recognize that the user performs a single-finger or multi-finger input operation .
陀螺仪传感器180B可以用于确定终端100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the terminal 100. In some embodiments, the angular velocity of the terminal 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyroscope sensor 180B detects the shake angle of the terminal 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal 100 through a reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,终端100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。终端100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端100是翻盖机时,终端100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The terminal 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the terminal 100 is a flip phone, the terminal 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测终端100在各个方向上(一般为三轴)加速度的大小。当终端100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。在本申请一些可选的实施例中,加速度传感器180E可用于捕获用户手指部位接触显示屏时生成的加速度值,并将该加速度值传输给处理器,以使得处理器识别用户通过哪个手指部位输入操作。The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on. In some optional embodiments of the present application, the acceleration sensor 180E may be used to capture the acceleration value generated when the user's finger part touches the display screen, and transmit the acceleration value to the processor, so that the processor recognizes which finger part the user inputs through operate.
距离传感器180F,用于测量距离。终端100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. The terminal 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端100通过发光二极管向外发射红外光。终端100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端100附近有物体。当检测到不充分的反射光时,终端100可以确定终端100附近没有物体。终端100可以利用接近光传感器180G检测用户手持终端100贴近耳朵通话,以便自动熄灭显示屏达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal 100 emits infrared light to the outside through the light emitting diode. The terminal 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal 100. When insufficient reflected light is detected, the terminal 100 may determine that there is no object near the terminal 100. The terminal 100 can use the proximity light sensor 180G to detect that the user holds the terminal 100 close to the ear to talk, so as to automatically turn off the display screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。终端100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The terminal 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal 100 is in a pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。终端100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The terminal 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
温度传感器180J用于检测温度。在一些实施例中,终端100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端100对电池142加热,以避免低温导致终端100异常关机。在其他一些实施例中,当温度低于又一阈值时,终端100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal 100 heats the battery 142 to avoid abnormal shutdown of the terminal 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the terminal 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端100可以接收按键输入,产生与终端100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power-on button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The terminal 100 may receive key input, and generate key signal input related to user settings and function control of the terminal 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端100的接触和分离。终端100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端100中,不能和终端100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the terminal 100. The terminal 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The terminal 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the terminal 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100.
终端100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明终端100的软件结构。The software system of the terminal 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the terminal 100 by way of example.
图7是本发明实施例的终端100的软件结构框图。FIG. 7 is a block diagram of the software structure of the terminal 100 according to an embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图7所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 7, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
本申请中,应用程序层还可新增浮窗启动组件(floating launcher),用于在上述提及的第二界面30中作为默认的显示应用,并提供给用户进入其他应用的入口。In this application, a floating launcher may also be added to the application layer to be used as a default display application in the second interface 30 mentioned above, and to provide users with an entrance to other applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图7所示,应用程序框架层可以包括窗口管理器(window manager),内容提供器,视图系统,电话管理器,资源管理器,通知管理器、活动管理器(activity manager)等。As shown in FIG. 7, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an activity manager, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定显示屏,截取显示屏等。本申请中,可基于Android原生的PhoneWindow,扩展出FloatingWindow,专门用于显示上述提及的第二界面30,以区别于普通的窗口,该窗口具有悬浮显示在系列窗口最顶层的属性。在一些可选的实施例中,该窗口大小可根据实际屏幕的大小,根据最优显示算法,给出合适的值。在一些可能的实施例中,该窗口的宽高比,可默认为常规主流手机的屏幕宽高比。同时,为方便用户关闭退出、隐藏第二界面,可在右上角额外绘制一个关闭按键和一个最小化按键。另外,在窗口管理模块中,会接收用户的一些手势操作,如果符合上述第二界面的操作手势,则会进行窗口冻结,并进行第二界 面移动的动画效果播放。The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the display screen, and intercept the display screen. In this application, a FloatingWindow can be extended based on Android's native PhoneWindow, which is specifically used to display the second interface 30 mentioned above to distinguish it from ordinary windows, which have the attribute of being displayed floating at the top of the series of windows. In some optional embodiments, the window size can be given an appropriate value according to the size of the actual screen and the optimal display algorithm. In some possible embodiments, the aspect ratio of the window may default to the screen aspect ratio of a conventional mainstream mobile phone. At the same time, in order to facilitate the user to close and exit, and hide the second interface, an additional close button and a minimize button can be drawn in the upper right corner. In addition, in the window management module, some gesture operations of the user will be received. If the gestures of the second interface are met, the window will be frozen and the animation effect of the movement of the second interface will be played.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The content provider is used to store and retrieve data and make these data accessible to applications. The data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。本申请中,可相应增加第二界面上用于关闭、最小化等操作的按键视图,并绑定到上述窗口管理器中的FloatingWindow上。The view system includes visual controls, such as controls that display text, controls that display pictures, and so on. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures. In this application, a button view for closing, minimizing and other operations on the second interface can be added correspondingly, and bound to the FloatingWindow in the above-mentioned window manager.
电话管理器用于提供终端100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the terminal 100. For example, the management of the call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在显示屏上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, and so on. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the display screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
活动管理器用于管理系统里正在运行的activities,包括进程(process)、应用程序、服务(service)、任务(task)信息等。本申请中,可在活动管理器模块中,新增专门用于管理上述第二界面30中显示应用Activity的活动任务堆栈,以保证第二界面中的应用activity、task不会和屏幕中全屏显示的应用产生冲突。The activity manager is used to manage the running activities in the system, including process, application, service, task information, etc. In this application, an activity task stack dedicated to managing the application Activity displayed in the second interface 30 can be added in the activity manager module to ensure that the application activity and task in the second interface will not be displayed in full screen on the screen. The application conflicts.
本申请中,应用程序框架层还可新增运动探测组件(motion detector),用于获取到的输入事件进行逻辑判断,识别输入事件的类型。例如,通过输入事件中包括的触摸坐标,触摸操作的时间戳等信息,判断该输入事件为指关节触摸事件或指肚触摸事件等。同时,运动探测组件还可记录输入事件的轨迹,并判定输入事件的手势规律,根据不同的手势,响应不同的操作。In this application, a motion detector can be added to the application framework layer, which is used to make logical judgments on the acquired input events and identify the type of the input event. For example, based on the touch coordinates included in the input event, the time stamp of the touch operation, and other information, it is determined that the input event is a knuckle touch event or a finger pad touch event. At the same time, the motion detection component can also record the trajectory of the input event, determine the gesture pattern of the input event, and respond to different operations according to different gestures.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:输入管理器(input manager)、输入调度管理器(input dispatcher)、表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: input manager (input manager), input dispatcher (input dispatcher), surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as : SGL) and so on.
输入管理器负责从底层的输入驱动获取事件数据,解析并封装后传给输入调度管理器。The input manager is responsible for obtaining event data from the underlying input driver, parsed and encapsulated, and passed to the input dispatch manager.
输入调度管理器用于保管窗口信息,其收到来自输入管理器的输入事件后,会在其保管的窗口中寻找合适的窗口,并将事件派发给此窗口。The input scheduling manager is used to store window information. After receiving an input event from the input manager, it will look for a suitable window in the window it keeps, and dispatch the event to this window.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
下面结合截屏处理场景,示例性说明终端100软件以及硬件的工作流程。In the following, the workflow of the software and hardware of the terminal 100 will be exemplified in conjunction with the screenshot processing scenario.
当触摸传感器180K接收到触摸操作或按键190接收到按键操作,相应的硬件中断被发给内核层。内核层将触摸操作或按键操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳或按键功能等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该按键操作是音量下键加上电源键操作,该音量下键加上电源键操作所对应的控件为截屏应用的控件为例,显示屏调用应用框架层的接口,启动截屏应用,进而通过调用内核层启动摄像头驱动,获取截屏图像。When the touch sensor 180K receives a touch operation or the button 190 receives a key operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations or key operations into original input events (including touch coordinates, time stamps of touch operations, or key functions, etc.). The original input events are stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the key operation as the volume down key plus the power key operation, the control corresponding to the volume down key plus the power key operation is the control of the screenshot application as an example, the display screen calls the interface of the application framework layer to start the screenshot application, and then through Call the kernel layer to start the camera driver and get the screenshot image.
基于前述图1-图5b所示的一些实施例以及图6实施例描述的终端100,下面介绍本申请提供的截屏处理的方法。Based on some of the embodiments shown in FIGS. 1 to 5b and the terminal 100 described in the embodiment in FIG. 6, the following describes the screenshot processing method provided by the present application.
参见图8,图8是本发明实施例提供的一种截屏处理的方法的流程示意图。如图8所示,该方法包括:Referring to FIG. 8, FIG. 8 is a schematic flowchart of a screenshot processing method according to an embodiment of the present invention. As shown in Figure 8, the method includes:
S101、终端在显示屏上显示第一界面。S101. The terminal displays the first interface on the display screen.
具体的,终端在显示屏上竖屏或横屏显示第一界面,其中第一界面可以是视频界面、游戏界面、网页浏览界面、阅读书籍的界面、音乐播放界面、文本编辑界面等等。第一界面还可以是客户端应用界面、陈列应用图标的桌面、同时显示多个客户端的应用界面的分屏界面等等。Specifically, the terminal displays a first interface on a vertical or horizontal screen on the display screen, where the first interface may be a video interface, a game interface, a web browsing interface, an interface for reading books, an interface for music playback, an interface for text editing, and so on. The first interface may also be a client application interface, a desktop displaying application icons, a split screen interface that simultaneously displays application interfaces of multiple clients, and so on.
可参考前述图1实施例,终端在显示屏上显示第一界面可以是:终端的显示屏仅显示如图1右侧附图所示的视频界面,而不显示其他内容。在一种可能的实施方式中,全屏显示视频播放界面时,该视频播放界面可以占用显示屏的全部显示区域。在另一种可能的实施方式中,该视频播放界面还可以仅占用显示屏的部分显示区域,例如显示屏为异形切割屏(Notch屏)时,异形切割屏的中间部分显示视频播放界面,一侧或两侧边缘部分黑屏时,也可看作显示屏全屏显示该视频播放界面。With reference to the embodiment in FIG. 1, the first interface displayed on the display screen of the terminal may be: the display screen of the terminal only displays the video interface as shown in the right figure of FIG. 1, and does not display other content. In a possible implementation manner, when the video playback interface is displayed in a full screen, the video playback interface may occupy all the display area of the display screen. In another possible implementation manner, the video playback interface may also only occupy part of the display area of the display screen. For example, when the display screen is a notch screen, the video playback interface is displayed in the middle part of the notch screen. When the side or both edges are partially black, it can also be regarded as a full screen display of the video playback interface on the display screen.
本申请中,终端全屏显示视频播放界面还可以是:显示屏中显示视频播放界面的同时,还可以显示系统级别的界面元素,例如状态栏、悬浮快捷菜单等。In this application, the full-screen display of the video playback interface of the terminal can also be: while the video playback interface is displayed on the display screen, system-level interface elements, such as status bar, floating shortcut menu, etc., can also be displayed.
在一些可能的实施例中,视频播放界面不仅可以包括视频画面,还可以包括视频的进度条、调节音量的虚拟按键、播放/暂停视频的虚拟按键等。In some possible embodiments, the video playback interface may include not only video images, but also a progress bar of the video, a virtual button for adjusting the volume, a virtual button for playing/pausing the video, and so on.
S102、终端检测到输入的第二操作时,在显示屏上显示第一界面和第二界面。S102: When the terminal detects the input of the second operation, it displays the first interface and the second interface on the display screen.
本申请中,第二操作用于对第一界面的显示内容进行截屏。终端检测到输入的第二操作时,在显示屏上显示第一界面和第二界面。第二操作可以为作用于终端的显示屏的手势,也可以为按键或语音指令等。In this application, the second operation is used to take a screenshot of the displayed content of the first interface. When the terminal detects the input of the second operation, it displays the first interface and the second interface on the display screen. The second operation may be a gesture that acts on the display screen of the terminal, or may be a button or voice command.
具体的,第二操作可以是:用户的指关节在终端显示屏上滑动绘制第一图形的手势。 这里,第一图形可以为矩形、三角形、正方形、圆形等。用户通过指关节在显示屏上绘制的第一图形可以不是几何意义上的标准形状,只要类似即可。Specifically, the second operation may be a gesture of sliding the user's knuckles on the terminal display screen to draw the first figure. Here, the first pattern may be a rectangle, a triangle, a square, a circle, or the like. The first figure drawn by the user on the display screen through the knuckles may not be a standard shape in a geometric sense, as long as it is similar.
第二操作还可以是:用户的手指在终端显示屏上的点击操作。该点击操作可以通过一个或多个指关节、指肚、指尖、触控笔等执行。The second operation may also be: a click operation of the user's finger on the terminal display screen. The click operation can be performed by one or more knuckles, finger pads, fingertips, stylus, etc.
第二操作还可以是:用户的手指在显示屏上处于第一悬浮姿势。第一悬浮姿势可以是指悬浮于显示屏上方的手指处于伸直状态、弯曲状态等。The second operation may also be: the user's finger is in the first hovering posture on the display screen. The first hovering posture may mean that the fingers hovering above the display screen are in an extended state, a bent state, or the like.
本申请中,第二界面的显示内容为第一界面的第一截屏图像,终端检测到输入的第二操作时,对第一界面显示的内容进行截屏,获取第一截屏图像。第一截屏图像为终端检测到输入的第二操作时第一界面显示的图像。参考前述图2a上侧附图实施例可知,第一界面和第二界面没有重叠区域。In this application, the display content of the second interface is the first screenshot image of the first interface. When the terminal detects the input second operation, it will screenshot the content displayed on the first interface to obtain the first screenshot image. The first screenshot image is an image displayed on the first interface when the terminal detects the input second operation. With reference to the above-mentioned embodiment of the figure on the upper side of FIG. 2a, it can be seen that there is no overlapping area between the first interface and the second interface.
在一些可能的实施例中,第一界面显示了多个客户端的应用界面,参考前述图5a上侧附图实施例可知,以第一界面包括客户端1和客户端2的应用界面为例。终端检测到输入的第二操作时,对第一界面显示的内容进行截屏,获取截屏图像;然后可以根据输入的第六操作在截屏图像中选取客户端1或客户端2的应用界面作为第一截屏图像。其中第二界面的界面内容为该第一截屏图像。In some possible embodiments, the first interface displays application interfaces of multiple clients. With reference to the embodiment of the upper figure of FIG. 5a, it can be seen that the first interface includes application interfaces of client 1 and client 2 as an example. When the terminal detects the input of the second operation, it takes a screenshot of the content displayed on the first interface and obtains the screenshot image; then the application interface of client 1 or client 2 can be selected from the screenshot image according to the input of the sixth operation as the first Screenshot image. The interface content of the second interface is the first screenshot image.
可选的,第一界面显示了多个客户端的应用界面,终端检测到输入的第四操作时,获取第一客户端的第一截屏图像。其中第一客户端为第一界面中多个客户端的其中一个,该第四操作为针对第一客户端的截屏操作。参考前述图5a下侧附图实施例可知,第二界面显示第一截屏图像,该第一截屏图像为第一客户端的截屏图像。Optionally, the first interface displays application interfaces of multiple clients, and when the terminal detects the input fourth operation, it acquires the first screenshot image of the first client. The first client is one of multiple clients in the first interface, and the fourth operation is a screenshot operation for the first client. Referring to the embodiment of the lower side figure of FIG. 5a, it can be seen that the second interface displays a first screenshot image, and the first screenshot image is a screenshot image of the first client.
具体的,第四操作可以是作用于终端的显示屏的触屏操作,也可以是预设的按键操作,还可以是悬浮手势、语音指令等操作。例如,第四操作是,在第一界面的第一客户端的应用界面的显示区域上的点击操作。该点击操作可以通过一个或多个指关节、指肚、指尖、触控笔等执行。又例如,第四操作是,用户的手指在第一界面的第一客户端的应用界面的显示区域上处于第一悬浮姿势。第一悬浮姿势可以是指悬浮于显示屏上方的手指处于伸直状态、弯曲状态等。Specifically, the fourth operation may be a touch screen operation acting on the display screen of the terminal, or a preset key operation, or an operation such as a hovering gesture, a voice command, and the like. For example, the fourth operation is a click operation on the display area of the application interface of the first client on the first interface. The click operation can be performed by one or more knuckles, finger pads, fingertips, stylus, etc. For another example, the fourth operation is that the user's finger is in the first hovering gesture on the display area of the application interface of the first client on the first interface. The first hovering posture may mean that the fingers hovering above the display screen are in an extended state, a bent state, or the like.
本申请中,终端对第一界面进行截屏后,将第一截屏图像放入第二界面时,通过SystemUI控件调用Framework进程中窗口管理服务器(Window Manager Service,WMS)存放应用窗口信息的mWindowMap组件,获取当前被选中放入第二界面的第一截屏图像的客户端的应用名称(例如第一客户端)、窗口坐标等信息。以便与后续能够通过应用名称以及窗口坐标对第二界面的截屏图像进行刷新。In this application, after the terminal takes a screenshot of the first interface and puts the first screenshot image into the second interface, the mWindowMap component of the Window Manager Service (WMS) in the Framework process is called through the SystemUI control to store application window information, Obtain information such as the application name (for example, the first client), window coordinates and other information of the client that is currently selected to put the first screenshot image on the second interface. In order to be able to refresh the screenshot image of the second interface through the application name and window coordinates later.
这里,第二界面的形状、位置及大小可以是终端系统默认设置的,还可以是用户根据自身的使用习惯设置的,还可以根据操作实时确定。第一窗口的形状、位置及大小根据操作确定,即第一窗口的形状、位置及大小和第五操作相关。Here, the shape, position, and size of the second interface may be set by default by the terminal system, or set by the user according to his own usage habits, or may be determined in real time according to the operation. The shape, position, and size of the first window are determined according to the operation, that is, the shape, position, and size of the first window are related to the fifth operation.
S103、终端在第二界面的第一截屏图像上添加图层。S103. The terminal adds a layer on the first screenshot image of the second interface.
具体的,终端在显示屏上显示第一界面和第二界面,第二界面的界面内容为第一截屏图像。用户想要对第一截屏图像进行编辑时,触发终端在第一截屏图像上添加图层。其中添加图层的方式包括通过画笔、文本、涂色等工具对第一截屏图像进行标记。参考前述图3附图实施例可知,第一界面为视频播放界面,终端在第二界面的第一截屏图像上添加图 层的过程中,第一界面的视频可以继续播放,达到了用户可以一边看视频一边做笔记的效果。Specifically, the terminal displays the first interface and the second interface on the display screen, and the interface content of the second interface is the first screenshot image. When the user wants to edit the first screenshot image, the terminal is triggered to add a layer on the first screenshot image. The method of adding layers includes marking the first screenshot image with tools such as brushes, text, and coloring. With reference to the embodiment of the accompanying figure in Figure 3, it can be seen that the first interface is a video playback interface. During the process of adding layers to the first screenshot image of the second interface, the video on the first interface can continue to be played. The effect of taking notes while watching the video.
S104、终端检测到输入的第一操作时,获取第一界面的第二截屏图像。S104: When detecting the inputted first operation, the terminal acquires a second screenshot image of the first interface.
本申请中,第一操作为刷新操作,第一操作可以为作用于终端的显示屏的触屏操作,也可以为语音指令、按键操作等。In this application, the first operation is a refresh operation, and the first operation may be a touch screen operation acting on the display screen of the terminal, or may be a voice command, a key operation, and the like.
具体的,由于终端在第二界面的第一截屏图像上添加图层的过程中,第一界面的视频可以继续播放,当用户对第一截屏图像做完笔记后,视频内容已经刷新了。参考前述图4上侧附图实施例可知,当用户想要刷新当前第一截屏图像时,可以点击图标刷新25,终端检测到输入的第一操作,刷新刚才标记的客户端(例如第一客户端)的窗口坐标信息。然后根据第一截屏图像的客户端的应用名称(例如第一客户端),对第一界面中的第一客户端的应用界面进行截屏,通过SurfaceControl.screenshot函数获取第一客户端的第二截屏图像。Specifically, since the terminal adds a layer to the first screenshot image on the second interface, the video on the first interface can continue to be played. After the user finishes taking notes on the first screenshot image, the video content has been refreshed. 4, it can be seen that when the user wants to refresh the current first screenshot image, he can click the icon refresh 25. The terminal detects the first operation input and refreshes the client just marked (for example, the first client). End) window coordinate information. Then, take a screenshot of the application interface of the first client in the first interface according to the application name of the client of the first screenshot image (for example, the first client), and obtain the second screenshot of the first client through the SurfaceControl.screenshot function.
在一些可能的实施例中,第二界面的界面内容为第一客户端的应用界面的截屏图像,终端检测到输入的第一操作时,第一界面包括多个客户端(其中包括第一客户端)的应用界面。这时,终端根据第一截屏图像的客户端的应用名称(例如第一客户端)以及第一客户端的窗口坐标等信息,在第一界面上的多个客户端中确认第一客户端,获取第一客户端的第二截屏图像。In some possible embodiments, the interface content of the second interface is a screenshot image of the application interface of the first client. When the terminal detects the input of the first operation, the first interface includes multiple clients (including the first client ) Application interface. At this time, the terminal confirms the first client among the multiple clients on the first interface according to the application name of the client of the first screenshot image (for example, the first client) and the window coordinates of the first client, and obtains the first client. The second screenshot image of a client.
S105、终端将第二截屏图像替换第一截屏图像。S105. The terminal replaces the first screenshot image with the second screenshot image.
本申请中,终端获取第一界面的第二截屏图像后,将第二截屏图像替换第一截屏图像。即第二界面上显示第二截屏图像。其中,步骤S103中添加的图层保留在第二界面中,显示在第二截屏图像之上。参考前述图4下侧附图实施例可知,即达到了截屏图像进行刷新的效果。In this application, after obtaining the second screenshot image of the first interface, the terminal replaces the first screenshot image with the second screenshot image. That is, the second screenshot image is displayed on the second interface. Wherein, the layer added in step S103 is retained in the second interface and displayed on the second screenshot image. With reference to the embodiment of the figure on the lower side of the aforementioned FIG. 4, it can be seen that the effect of refreshing the screenshot image is achieved.
可选的,若想再次编辑,可以触发图标编辑22,继续在第二界面的第二截屏图像上添加图层。Optionally, if you want to edit again, you can trigger icon editing 22 to continue adding layers on the second screenshot image of the second interface.
可选的,若想再次刷新,可以触发图标刷新25,继续对第一界面进行截屏,在第二界面上显示新的截屏图像。添加的多有图层全部保留,显示在新的截屏图像之上。Optionally, if you want to refresh again, you can trigger an icon refresh 25, continue to take screenshots of the first interface, and display a new screenshot image on the second interface. All added layers are retained and displayed on the new screenshot image.
S106、终端检测到输入的第三操作时,保存第二界面的界面内容作为目标截屏图像。S106: When the terminal detects the input of the third operation, it saves the interface content of the second interface as the target screenshot image.
本申请中,第三操作可以为作用于终端的显示屏的图标保存26的点击操作,也可以为为作用于终端的显示屏的手势,也可以为语音指令、按键操作等。In this application, the third operation may be a click operation acting on the icon save 26 on the display screen of the terminal, or a gesture acting on the display screen of the terminal, or a voice command, key operation, etc.
具体的,终端检测到输入的第三操作时,保存第二界面的界面内容作为目标截屏图像。参考前述图4下侧附图实施例可知,第二界面的界面内容包括第二截屏图像和图层。即实现了将刷新后的截屏图像与用户编辑的内容(图层)结合,保存最终的图像,实现了当客户端的界面刷新后,编辑内容仍与当前界面匹配的效果。Specifically, when the terminal detects the input of the third operation, the interface content of the second interface is saved as the target screenshot image. With reference to the embodiment of the lower figure of FIG. 4, it can be seen that the interface content of the second interface includes the second screenshot image and layers. That is, it is realized that the refreshed screenshot image is combined with the content (layer) edited by the user, and the final image is saved, and the effect that the edited content still matches the current interface after the client interface is refreshed is realized.
本申请中,当用户需要停止显示第二界面时,是指触发多窗口显示的相应程序被关闭,终端的显示屏仅显示第一界面。停止显示第二界面可包括以下两种情况:隐藏第二界面、关闭第二界面。其中,隐藏后的第二界面可在终端后台继续运行。其中,关闭第二界面后,终端用于显示第二界面的处理资源以及存储资源等可能被释放。In this application, when the user needs to stop displaying the second interface, it means that the corresponding program that triggers the multi-window display is closed, and the display screen of the terminal only displays the first interface. Stopping the display of the second interface may include the following two situations: hiding the second interface and closing the second interface. Among them, the hidden second interface can continue to run in the background of the terminal. Wherein, after the second interface is closed, processing resources and storage resources used by the terminal to display the second interface may be released.
在一种可能的实施方式中,停止显示第二界面之后,终端显示第二界面的提示标识。该提示标识可以为图形标识(例如提示条、第二界面图标、箭头等)、文字等。该提示标识 可以为提示条或浮窗。用户可以通过该提示标识重新显示第二界面。In a possible implementation manner, after stopping the display of the second interface, the terminal displays the prompt identifier of the second interface. The prompt mark can be a graphic mark (for example, a prompt bar, a second interface icon, an arrow, etc.), a text, and the like. The reminder mark can be a reminder bar or floating window. The user can redisplay the second interface through the prompt mark.
本申请中,第一操作、第二操作、第三操作和第四操作不限于终端在出厂时的默认设置,也可以是用户设置的。具体的,用户可以从包含多种操作的设置菜单中选择一种操作作为该第一操作、第二操作、第三操作和第四操作,用户也可以根据自身习惯自定义操作。In this application, the first operation, the second operation, the third operation, and the fourth operation are not limited to the default settings of the terminal at the factory, and may also be set by the user. Specifically, the user can select an operation as the first operation, the second operation, the third operation, and the fourth operation from a setting menu containing multiple operations, and the user can also customize the operation according to his own habits.
在上述步骤S101-S106中,当第一界面的界面内容为视频播放界面时,终端持续显示视频播放界面,该视频持续播放。即,本申请可以在持续播放视频的情况下,显示第二界面,第二界面的界面内容为第一界面的界面内容的截屏图像。此外,本申请还可对第二界面进行编辑,且在视频内容更新时,相应的对第二界面中显示的截屏图像进行更新,保留原有的编辑内容,更新的截屏图像与编辑内容结合,形成最终的截屏图像。In the above steps S101-S106, when the interface content of the first interface is a video playback interface, the terminal continues to display the video playback interface, and the video continues to be played. That is, the present application may display the second interface while continuously playing the video, and the interface content of the second interface is a screenshot image of the interface content of the first interface. In addition, this application can also edit the second interface, and when the video content is updated, the screenshot image displayed in the second interface is updated accordingly, the original editing content is retained, and the updated screenshot image is combined with the editing content. Form the final screenshot image.
可以理解的,关于图6所述方法的各个步骤的具体实现方式,可参考前述图1-图5b实施例,这里不赘述。It can be understood that, for the specific implementation of each step of the method described in FIG. 6, reference may be made to the foregoing embodiments of FIG. 1 to FIG. 5b, which will not be repeated here.
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the procedures or functions described in this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In short, the above descriptions are only examples of the technical solutions of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.

Claims (11)

  1. 一种截屏处理的方法,其特征在于,包括:A method for screenshot processing, which is characterized in that it includes:
    终端在显示屏上显示第一界面和第二界面,所述第二界面的界面内容为所述第一界面的第一截屏图像;The terminal displays a first interface and a second interface on the display screen, and the interface content of the second interface is a first screenshot image of the first interface;
    所述终端检测到输入的第一操作时,获取所述第一界面的第二截屏图像,所述第二截屏图像为所述终端检测到输入的第一操作时所述第一界面显示的图像;When the terminal detects the input of the first operation, it acquires a second screenshot image of the first interface, where the second screenshot is the image displayed on the first interface when the terminal detects the input of the first operation ;
    所述终端将所述第二界面的界面内容由所述第一截屏图像替换为所述第二截屏图像。The terminal replaces the interface content of the second interface from the first screenshot image with the second screenshot image.
  2. 根据权利要求1所述的方法,其特征在于,所述终端在显示屏上显示第一界面和第二界面,包括:The method according to claim 1, wherein the terminal displaying the first interface and the second interface on the display screen comprises:
    所述终端在显示屏上显示第一界面;The terminal displays the first interface on the display screen;
    所述终端检测到输入的第二操作时,在所述显示屏上显示所述第一界面和第二界面,所述第二界面的界面内容为所述第一界面的第一截屏图像,所述第一截屏图像为在所述终端检测到输入的所述第二操作时所述第一界面显示的图像。When the terminal detects the input of the second operation, the first interface and the second interface are displayed on the display screen, and the interface content of the second interface is the first screenshot image of the first interface, so The first screenshot image is an image displayed on the first interface when the terminal detects the input of the second operation.
  3. 根据权利要求1或2所述的方法,其特征在于,所述终端在显示屏上显示第一界面和第二界面之后,还包括:The method according to claim 1 or 2, wherein after the terminal displays the first interface and the second interface on the display screen, the method further comprises:
    所述终端在所述第二界面的第一截屏图像上添加图层;Adding a layer to the first screenshot image of the second interface by the terminal;
    所述终端检测到输入的第一操作时,获取所述第一界面的第二截屏图像;When the terminal detects the input of the first operation, acquiring a second screenshot image of the first interface;
    所述终端将所述第二截屏图像替换所述第一截屏图像,所述第二界面的界面内容为所述第一界面的第二截屏图像和所述图层。The terminal replaces the first screenshot image with the second screenshot image, and the interface content of the second interface is the second screenshot image of the first interface and the layer.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    所述终端检测到输入的第三操作时,保存所述第二界面的界面内容作为目标截屏图像,所述目标截屏图像包括所述第二截屏图像和所述图层。When the terminal detects the input of the third operation, the interface content of the second interface is saved as a target screenshot image, and the target screenshot image includes the second screenshot image and the layer.
  5. 根据权利要求2所述的方法,其特征在于,所述第一界面的界面内容包括多个客户端的应用界面。The method according to claim 2, wherein the interface content of the first interface includes application interfaces of multiple clients.
  6. 根据权利要求5所述的方法,其特征在于,所述终端检测到输入的第二操作时,在所述显示屏上显示所述第一界面和第二界面,包括:The method according to claim 5, wherein when the terminal detects the input second operation, displaying the first interface and the second interface on the display screen, comprising:
    所述终端检测到输入的针对第一客户端的第四操作时,在所述显示屏上显示所述第一界面和第二界面,所述第二界面的界面内容为所述第一客户端的第一截屏图像,所述第一客户端为所述多个客户端中其中一个客户端,所述第一截屏图像为在所述终端检测到输入的第四操作时所述第一客户端显示的图像。When the terminal detects the input of the fourth operation for the first client, the first interface and the second interface are displayed on the display screen, and the interface content of the second interface is the first client's A screenshot image, the first client is one of the multiple clients, and the first screenshot image is displayed by the first client when the terminal detects a fourth operation input image.
  7. 根据权利要求5所述的方法,其特征在于,所述针对第一客户端的第四操作作用于 所述终端的显示屏。The method according to claim 5, wherein the fourth operation for the first client is applied to the display screen of the terminal.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-7, wherein the method further comprises:
    所述终端检测到输入的第五操作时,根据所述第五操作调整所述第二界面的显示状态,所述第二界面的显示状态包括以下至少一项:位置、大小或形状。When the terminal detects the input of the fifth operation, the display state of the second interface is adjusted according to the fifth operation, and the display state of the second interface includes at least one of the following: position, size, or shape.
  9. 根据权利要求8所述的方法,其特征在于,所述第一操作、所述第二操作、所述第三操作、所述第四操作和所述第五操作包括自动操作或用户操作。The method according to claim 8, wherein the first operation, the second operation, the third operation, the fourth operation, and the fifth operation comprise automatic operation or user operation.
  10. 一种终端,其特征在于,包括:一个或多个处理器、一个或多个存储器;A terminal, characterized by comprising: one or more processors and one or more memories;
    所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,所述终端执行如权利要求1-9任一项所述的方法。The one or more memories are coupled with the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors When executing the computer instruction, the terminal executes the method according to any one of claims 1-9.
  11. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在终端上运行时,使得所述终端执行如权利要求1-9任一项所述的方法。A computer storage medium, characterized by comprising computer instructions, which when the computer instructions run on a terminal, causes the terminal to execute the method according to any one of claims 1-9.
PCT/CN2021/082531 2020-03-24 2021-03-24 Screenshot processing method, graphic user interface and terminal WO2021190524A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010214656.9 2020-03-24
CN202010214656.9A CN113448658A (en) 2020-03-24 2020-03-24 Screen capture processing method, graphical user interface and terminal

Publications (1)

Publication Number Publication Date
WO2021190524A1 true WO2021190524A1 (en) 2021-09-30

Family

ID=77806682

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/082531 WO2021190524A1 (en) 2020-03-24 2021-03-24 Screenshot processing method, graphic user interface and terminal

Country Status (2)

Country Link
CN (1) CN113448658A (en)
WO (1) WO2021190524A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115237299A (en) * 2022-06-29 2022-10-25 北京优酷科技有限公司 Playing page switching method and terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309560A (en) * 2013-06-08 2013-09-18 东莞宇龙通信科技有限公司 Multi-interface information display method and terminal
CN107861681A (en) * 2017-10-26 2018-03-30 深圳市万普拉斯科技有限公司 Screenshotss processing method, device, computer equipment and storage medium
CN109597556A (en) * 2018-12-12 2019-04-09 维沃移动通信有限公司 A kind of screenshotss method and terminal
US20190147026A1 (en) * 2017-05-16 2019-05-16 Apple Inc. Device, Method, and Graphical User Interface for Editing Screenshot Images
CN110231905A (en) * 2019-05-07 2019-09-13 华为技术有限公司 A kind of screenshotss method and electronic equipment
CN110737386A (en) * 2019-09-06 2020-01-31 华为技术有限公司 screen capturing method and related equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150177953A1 (en) * 2013-12-23 2015-06-25 Thomson Licensing User interface displaying scene dependent attributes
CN105611327A (en) * 2015-12-22 2016-05-25 北京邦天信息技术有限公司 Method and system for acquiring live broadcasting picture metadata and refreshing, and conversion device
CN107239208B (en) * 2017-05-27 2020-03-27 努比亚技术有限公司 Method, apparatus, and computer-readable storage medium for processing screenshot
CN107390972B (en) * 2017-07-06 2021-09-07 努比亚技术有限公司 Terminal screen recording method and device and computer readable storage medium
CN107896279A (en) * 2017-11-16 2018-04-10 维沃移动通信有限公司 Screenshotss processing method, device and the mobile terminal of a kind of mobile terminal
CN109151546A (en) * 2018-08-28 2019-01-04 维沃移动通信有限公司 A kind of method for processing video frequency, terminal and computer readable storage medium
CN109388304B (en) * 2018-09-28 2021-05-11 维沃移动通信有限公司 Screen capturing method and terminal equipment
CN110012154A (en) * 2019-02-22 2019-07-12 华为技术有限公司 A kind of control method and electronic equipment of the electronic equipment with Folding screen
CN110401766B (en) * 2019-05-22 2021-12-21 华为技术有限公司 Shooting method and terminal
CN110647274A (en) * 2019-08-15 2020-01-03 华为技术有限公司 Interface display method and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309560A (en) * 2013-06-08 2013-09-18 东莞宇龙通信科技有限公司 Multi-interface information display method and terminal
US20190147026A1 (en) * 2017-05-16 2019-05-16 Apple Inc. Device, Method, and Graphical User Interface for Editing Screenshot Images
CN107861681A (en) * 2017-10-26 2018-03-30 深圳市万普拉斯科技有限公司 Screenshotss processing method, device, computer equipment and storage medium
CN109597556A (en) * 2018-12-12 2019-04-09 维沃移动通信有限公司 A kind of screenshotss method and terminal
CN110231905A (en) * 2019-05-07 2019-09-13 华为技术有限公司 A kind of screenshotss method and electronic equipment
CN110737386A (en) * 2019-09-06 2020-01-31 华为技术有限公司 screen capturing method and related equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115237299A (en) * 2022-06-29 2022-10-25 北京优酷科技有限公司 Playing page switching method and terminal equipment
CN115237299B (en) * 2022-06-29 2024-03-22 北京优酷科技有限公司 Playing page switching method and terminal equipment

Also Published As

Publication number Publication date
CN113448658A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
WO2021013158A1 (en) Display method and related apparatus
JP7142783B2 (en) Voice control method and electronic device
WO2021027747A1 (en) Interface display method and device
WO2021129326A1 (en) Screen display method and electronic device
WO2021103981A1 (en) Split-screen display processing method and apparatus, and electronic device
WO2020052529A1 (en) Method for quickly adjusting out small window in fullscreen display during video, graphic user interface and terminal
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2021036571A1 (en) Desktop editing method and electronic device
WO2020108356A1 (en) Application display method and electronic device
WO2021000881A1 (en) Screen splitting method and electronic device
WO2021139768A1 (en) Interaction method for cross-device task processing, and electronic device and storage medium
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
US11687235B2 (en) Split-screen method and electronic device
WO2021036770A1 (en) Split-screen processing method and terminal device
WO2021000804A1 (en) Display method and apparatus in locked state
WO2020062294A1 (en) Display control method for system navigation bar, graphical user interface, and electronic device
WO2020253758A1 (en) User interface layout method and electronic device
WO2020221063A1 (en) Method of switching between parent page and subpage, and related device
WO2021063237A1 (en) Control method for electronic device, and electronic device
WO2021082835A1 (en) Method for activating function and electronic device
WO2021169399A1 (en) Method for caching application interface, and electronic apparatus
WO2021078032A1 (en) User interface display method and electronic device
WO2022068483A1 (en) Application startup method and apparatus, and electronic device
WO2022068819A1 (en) Interface display method and related apparatus
WO2022017393A1 (en) Display interaction system, display method, and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21776278

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21776278

Country of ref document: EP

Kind code of ref document: A1