Display method, display device, electronic equipment and storage medium

By processing RAW data to YUV data and using a Surfaceview component to display thumbnails directly, the method addresses the delay in thumbnail display on Android devices, improving photo preview efficiency.

CN119094885AActive Publication Date: 2024-12-06GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310666260.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2024-12-06
Estimated Expiration
2043-06-06

AI Technical Summary

Technical Problem

The existing method of displaying thumbnails using the imageview component in Android devices takes a long time after a photo is taken, delaying the user's confirmation of the photo-taking action.

Method used

Acquire RAW data from an image sensor, process it to generate YUV data, and create a Surfaceview component to display thumbnails directly in the thumbnail area, bypassing the conversion to bitmap images, thereby reducing processing time.

Benefits of technology

This approach significantly reduces the time taken to display thumbnails by eliminating the conversion of YUV data to bitmap images, enhancing the efficiency of photo preview on Android devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094885A_ABST
    Figure CN119094885A_ABST
Patent Text Reader

Abstract

The invention discloses a display method, a display device, electronic equipment and a nonvolatile computer readable storage medium. The display method comprises the following steps: acquiring RAW data generated by an image sensor; processing the RAW data to generate YUV data; and creating a Surfaceview component corresponding to the thumbnail area in the shooting interface and associating the Surfaceview component with the YUV data so as to display a thumbnail of the YUV data through the thumbnail area. The method comprises the following steps: acquiring RAW data generated by an electronic device after shooting and passing through an image sensor, then performing ISP processing on the RAW data to generate YUV data, then creating a Surfaceview component and associating an ISP processing channel to enable the YUV data to be transmitted to the Surfaceview component, and finally drawing a thumbnail by the Surfaceview component according to the YUV data, thereby improving the thumbnail drawing efficiency. According to the method, the terminal and the terminal, and the thumbnail of the photographed image is displayed in the thumbnail area in the photographing interface, so that compared with the mode that the thumbnail is displayed based on the bitmap image after the YUV data is obtained and converted into the bitmap image, the conversion process from the YUV data to the bitmap image is reduced, and the time spent on displaying the thumbnail by the terminal can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of photographing technology, and more specifically, to a display method, a display device, an electronic device, and a non-volatile computer-readable storage medium. Background Art

[0002] The terminal has a photo instant display function, that is, the photo just taken by the terminal is instantly displayed in the form of thumbnails in a specific area of ​​the terminal screen to facilitate the user to confirm that the photo-taking action is completed. The user can preview the photo just taken by clicking on the thumbnail.

[0003] Currently, thumbnails are displayed using the imageview component that comes with Android, but this method causes a long time from when the user triggers the terminal to take a photo to when the terminal displays the thumbnail. Summary of the invention

[0004] Embodiments of the present application provide a display method, a display device, an electronic device, and a non-volatile computer-readable storage medium, which can reduce the time spent on displaying thumbnails.

[0005] The display method of the present application includes acquiring RAW data generated by an image sensor; processing the RAW data to generate YUV data; and creating a Surfaceview component corresponding to a thumbnail area in a shooting interface and associating the YUV data to display a thumbnail of the YUV data through the thumbnail area.

[0006] The display device of the embodiment of the present application includes a first acquisition module, a first processing module and a creation module. The first acquisition module is used to acquire the RAW data generated by the image sensor; the first processing module is used to process the RAW data to generate YUV data; the creation module is used to create a Surfaceview component corresponding to the thumbnail area in the shooting interface and associate the YUV data to display a thumbnail of the YUV data through the thumbnail area.

[0007] The electronic device of the embodiment of the present application includes a memory and a processor, wherein a computer program is stored in the memory. When the processor executes the computer program, the processor can obtain the RAW data generated by the image sensor; process the RAW data to generate YUV data; and create a Surfaceview component corresponding to the thumbnail area in the shooting interface and associate the YUV data to display a thumbnail of the YUV data through the thumbnail area.

[0008] The non-volatile computer-readable storage medium of the embodiment of the present application stores a computer program thereon. When the computer program is executed by a processor, the processor can obtain the RAW data generated by the image sensor; process the RAW data to generate YUV data; and create a Surfaceview component corresponding to the thumbnail area in the shooting interface and associate the YUV data to display a thumbnail of the YUV data through the thumbnail area.

[0009] The display method, display device, electronic device and non-volatile computer-readable storage medium of the embodiments of the present application obtain RAW data generated by the electronic device after shooting through an image sensor, then process the RAW data through image signal processing (ISP) to generate YUV data, then create a Surfaceview component and associate it with the ISP processing channel, so that the YUV data is transmitted to the Surfaceview component, and finally the Surfaceview component can draw thumbnails according to the YUV data, and display thumbnails of the photographed images in the thumbnail area of ​​the shooting interface. Compared with converting the YUV data into a bitmap image after obtaining it and then displaying the thumbnail based on the bitmap image, the conversion process of the YUV data to the bitmap image is reduced, and the time spent on the terminal displaying the thumbnail can be reduced.

[0010] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0012] Figure 1 is a schematic flow chart of a display method of certain embodiments of the present application;

[0013] Figure 2 is a schematic diagram of the structure of an electronic device according to some embodiments of the present application;

[0014] Figure 3 is a schematic diagram of the structure of an electronic device according to some embodiments of the present application;

[0015] Figure 4 is a schematic flow chart of a display method of certain embodiments of the present application;

[0016] Figure 5 is a schematic flow chart of a display method of certain embodiments of the present application;

[0017] Figure 6 is a schematic flow chart of a display method of certain embodiments of the present application;

[0018] Figure 7 is a schematic diagram of a scene of an electronic device according to some embodiments of the present application;

[0019] Figure 8 is a schematic diagram of a scene of an electronic device according to some embodiments of the present application;

[0020] Fig. 9 is a schematic flow chart of a display method of certain embodiments of the present application;

[0021] Fig.10 is a schematic flow chart of a display method of certain embodiments of the present application;

[0022] Fig.11 is a schematic flow chart of a display method of certain embodiments of the present application;

[0023] Fig.12 is a schematic diagram of a scene of an electronic device according to some embodiments of the present application;

[0024] Fig.13 is a schematic diagram of a module of a display device according to some embodiments of the present application;

[0025] Fig.14 It is a schematic diagram of the connection status of a non-volatile computer-readable storage medium and a processor in certain embodiments of the present application. DETAILED DESCRIPTION

[0026] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.

[0027] See also Figures 1 to 3 , the display method of the embodiment of the present application includes:

[0028] Step 011: Acquire RAW data generated by the image sensor 50;

[0029] Among them, the image sensor 50 is located in the electronic device 100, and the image sensor 50 uses the photoelectric conversion function of the photoelectric device to convert the light image on the photosensitive surface into an electrical signal that is proportional to the light image; RAW data is the unprocessed original image data; the electronic device 100 can be a device with a camera that can display the shooting interface V0, such as a mobile phone, a tablet computer, a digital camera, etc.

[0030] Specifically, the processor 30 in the electronic device 100 controls the camera application to start, and the image sensor 50 of the camera application generates RAW data, and the preview image T1 can be generated according to the RAW data. For example, the light signal of the target scene can be processed by the image sensor 50 to convert the light signal into an electrical signal, and generate the RAW data of the target scene, which includes the original image data of the target scene, that is, the image data format that has not been processed and compressed.

[0031] In this way, by acquiring the RAW data generated by the image sensor 50 , the data of the target image can be completely recorded, and the adjustment space for the target image can be increased.

[0032] Step 012: Process the RAW data to generate YUV data;

[0033] Among them, YUV is a color encoding method, "Y" represents brightness, that is, the grayscale value, "U" and "V" represent chromaticity, "U" represents blue projection, and "V" represents red projection. The function of YUV is to describe the color and saturation of the image and is used to specify the color of the pixel.

[0034] Specifically, after the processor 30 obtains the RAW data, if no photo is taken, the preview image generated based on the RAW data is displayed on the shooting interface V0, and then after the user takes a photo (such as the user clicks the shooting button in the shooting interface V0), the RAW data needs to be format converted to convert the RAW format data into YUV format data, thereby generating YUV format data of the target image. Since the RAW data is the original data of the image sensor 50 converting the captured light source signal into a digital signal, and each pixel unit on the image sensor 50 that performs photoelectric conversion cannot recognize the different color components in the light source, it is necessary to cover a layer of color filter array above the image sensor 50 so that each pixel only obtains one color component of the three primary colors, so the color of the pixel value of the RAW data is missing. At this time, the processor 30 needs to transmit the RAW data to the image signal processing (ISP) for processing, wherein the ISP has the functions of defect correction, denoising, sharpening, automatic white balance, etc. After being processed by the ISP, the RAW data can generate YUV data.

[0035] In this way, the RAW data can be converted into YUV data through ISP processing, making the original data more realistic to the image data of the target image.

[0036] Step 013: Create a Surfaceview component corresponding to the thumbnail area V2 in the shooting interface V0 and associate it with the YUV data to display the thumbnail T2 of the YUV data through the thumbnail area V2.

[0037] Among them, the Surfaceview component is a subclass of view, which can directly obtain image data from memory or hardware interfaces such as DMA. It is a drawing view. Surfaceview can draw to the shooting interface V0 in a thread other than the main thread. The Surfaceview component can implement the SurfaceHolder.Callback interface. There are three methods in the SurfaceHolder.Callback interface, namely surfaceCreated(), surfaceChanged(), and surfaceDestroyed(). surfaceCreated() represents the method executed when the surfaceView component is created, surfaceChanged() represents the method executed when the surfaceView component changes, and surfaceDestroyed() represents the method executed when the surfacView component is destroyed. In this method, resource release operations need to be performed.

[0038] Specifically, after the processor 30 obtains the YUV data, since the picture control Imageview component in the electronic device 100 does not support data in YUV format, it is necessary to convert the data in YUV format into a bitmap image. During the conversion process, the YUV data is compressed to obtain a bitmap image of smaller size, and then the bitmap image is drawn through the Imageview component to form a thumbnail T2. It takes a long time to display the thumbnail T2 of the captured image in this way, so the processor 30 creates a Surfaceview component corresponding to the thumbnail area V2 in the thumbnail area V2 in the shooting interface V0 of the electronic device 100, and associates the Surfaceview component with the channel for transmitting YUV data by the ISP, so that the YUV data can be transmitted to the Surfaceview component through the channel for drawing. After the drawing is completed, the Surfaceview component can display the thumbnail T2 corresponding to the YUV data in the thumbnail area V2.

[0039] In this way, by acquiring the RAW data generated by the electronic device 100 after passing through the image sensor 50 after shooting, and then processing the RAW data through image signal processing (ISP) to generate YUV data, and then creating a Surfaceview component and associating the ISP processing channel, so that the YUV data is transmitted to the Surfaceview component, finally the Surfaceview component can draw a thumbnail T2 according to the YUV data, and display the thumbnail T2 of the photographed image in the thumbnail area V2 in the shooting interface V0. Compared with converting the YUV data into a bitmap image after acquiring the YUV data, and then displaying the thumbnail T2 based on the bitmap image, the conversion process of the YUV data to the bitmap image is reduced, and the time spent by the terminal to display the thumbnail T2 can be reduced.

[0040] See also Figure 3 and Figure 4 In some embodiments, the display method further comprises:

[0041] Step 014: Determine the downsampling sampling coefficient according to the size of the YUV data and the size of the thumbnail area V2.

[0042] Step 015: down-sample the YUV data to obtain down-sampled data matching the size of the thumbnail area V2;

[0043] Step 016: Draw the downsampled data through the Surfaceview component to obtain the thumbnail T2.

[0044] Specifically, when the processor 30 transmits the YUV data to the Surfaceview component through the channel, it needs to call a downsampling algorithm to scan and sample the YUV data, where the YUV data can be a YUV image. By comparing the size of the YUV image with the size of the thumbnail area V2, the value of the sampling coefficient in the downsampling algorithm can be determined, and then the YUV image is converted according to the sampling coefficient, so as to obtain downsampling data that matches the size of the thumbnail area V2. Finally, the Surfaceview component draws according to the downsampling data, so as to obtain a thumbnail T2 of the target scene on the shooting interface V0. For example, the size of the YUV image is 2000 pixels * 1000 pixels, and the size of the thumbnail area V2 is 100 pixels * 100 pixels. By comparing the length of the YUV image with the length of the thumbnail area V2, it can be obtained that the sampling coefficient of the YUV image length in the downsampling algorithm is 20; by comparing the width of the YUV image with the width of the thumbnail area V2, it can be obtained that the sampling coefficient of the YUV image width in the downsampling algorithm is 10. By obtaining the sampling coefficient of the downsampling algorithm, the 2000 pixels * 1000 pixels YUV image can be converted into 100 pixels * 100 pixels downsampled data. Finally, the 100 pixels * 100 pixels downsampled data is drawn through the Surfaceview component to obtain the thumbnail T2 of the target image.

[0045] See also Figures 5 to 8 In some embodiments, the display method further comprises:

[0046] Step 017: According to the refresh rate of the display interface, control the Surfaceview component to draw the thumbnail T2 according to the current YUV data; or

[0047] Step 018: When the YUV data changes, draw the thumbnail T2 according to the changed YUV data.

[0048] Specifically, the processor 30 can control the Surfaceview component to draw the thumbnail T2 according to the current YUV data according to the refresh frequency of the display interface of the electronic device 100. For example, the Surfaceview component draws the thumbnail T2 on the transmitted YUV data by pre-setting the draw_when_continue mode. The electronic device 100 obtains RAW data by taking a picture of the target scene, and then the RAW data is processed by the ISP to obtain YUV data. When the refresh frequency of the display interface of the electronic device 100 is set to sixty Hz, at this time, the Surfaceview component needs to draw the thumbnail T2 of the current YUV data every one-sixtieth of a second.

[0049] The processor 30 can also draw a thumbnail T2 according to the changed YUV data when the YUV data changes. For example, the Surfaceview component draws a thumbnail T2 on the transmitted YUV data by presetting the draw_when_dirty mode. The electronic device 100 obtains RAW data by taking a photo of the target scene, and then the RAW data is processed by the ISP to obtain YUV data. When the refresh rate of the display interface of the electronic device 100 is set to 60 Hz, the Surfaceview component needs to draw a thumbnail T2 on the current YUV data after one sixtieth of a second, and refresh it in combination with the preview image T1. Shooting interface, but when the display interface is refreshed in the next one-sixtieth of a second, there is no need to re-downsample the current YUV data, so as to re-draw the thumbnail T2. The thumbnail T2 at this time is still the last thumbnail T2 that has been drawn and refreshes the shooting interface V0 in combination with the preview image T1. Until the next YUV data is obtained by the Surfaceview component, the processor 30 controls the Surfaceview component to draw the thumbnail T2 of the newly obtained YUV data. In this way, by setting the draw_when_dirty mode to draw the thumbnail T2 of the transmitted YUV data, the number of times the YUV data is drawn as the thumbnail T2 can be reduced.

[0050] See also Figures 7 to 9 In some embodiments, the shooting interface V0 further includes a preview area V1, and the display method further includes:

[0051] Step 019: When the preview image T1 in the preview area V1 and the thumbnail T2 in the thumbnail area V2 are both drawn, the shooting interface V0 is refreshed according to the drawn preview image T1 and thumbnail T2.

[0052] Specifically, the shooting interface V0 of the electronic device 100 also includes a preview area V1, which can preview the target scene being shot, such as the preview area V1 can preview the trees shot by the mobile phone, and a Surfaceview component corresponding to the preview area V1 is created in the preview area V1. By associating the Surfaceview component with the image data of the image sensor 50, the Surfaceview component can draw in the preview area V1 according to the image data of the image sensor 50, thereby displaying the preview image T1 of the target scene. When refreshing the shooting interface V0, the preview image T1 of the preview area V1 and the thumbnail T2 of the thumbnail area V2 need to be drawn. For example, the refresh frequency of the shooting interface V0 is 60 Hz. After the electronic device 100 takes a picture of the target scene and generates YUV data, the Surfaceview component corresponding to the preview area V1 draws the preview image T1 and the Surfaceview component corresponding to the thumbnail T2 draws the thumbnail T2. When the shooting interface V0 is refreshed every one-sixtieth of a second, the preview image T1 and the thumbnail T2 are both in a completed state, and the shooting interface V0 is refreshed.

[0053] In this way, by refreshing the shooting interface V0 according to the drawn preview image T1 and thumbnail T2 after the preview image T1 in the preview area V1 and the thumbnail T2 in the thumbnail area V2 are both drawn, the preview image T1 and the thumbnail T2 can be drawn consistently, thus avoiding freezes when refreshing the shooting interface V0.

[0054] See also Fig.10 In some embodiments, the display method further comprises:

[0055] Step 020: When the camera application is closed, destroy the Surfaceview component.

[0056] Specifically, when the camera application of the electronic device 100 is closed, the Surfaceview component needs to be destroyed. When the Surfaceview component is destroyed, the surfaceDestroyed() method in the SurfaceHolder.Callback interface is executed to release the resources (such as memory) occupied by the Surfaceview component.

[0057] See also Fig.11 and Fig.12 In some embodiments, the display method further comprises:

[0058] Step 021: Create a Surfaceview component corresponding to the icon area V3 of the application and associate the thumbnail icon T3 of the application to display the thumbnail icon T3 of the application through the icon area V3.

[0059] Specifically, the processor 30 can create a Surfaceview component in the icon area V3 corresponding to the application of the electronic device 100, and the Surfaceview component can associate the thumbnail icon T3 of the application, so that the thumbnail icon T3 of the application is displayed in the icon area V3 of the application through the Surfaceview component. For example, the image file of the thumbnail icon T3 of the application is stored in the memory 40, and the Surfaceview component can associate the image file of the thumbnail icon T3 of the application in the memory 40. The Surfaceview component obtains the image data in the image file of the thumbnail icon T3 by occupying a thread, and draws the image of the thumbnail icon T3 in the icon area V3 of the application, so that the thumbnail icon T3 of the application can be displayed in the icon area V3 of the application.

[0060] Optionally, the processor 30 can obtain the running data of the application and generate an running interface based on the running data, by creating a Surfaceview component in the icon area V3 corresponding to the application of the electronic device 100, so that the Surfaceview component is associated with the running data of the application, thereby displaying the running interface of the application in the icon area V3 of the application through the Surfaceview component.

[0061] Optionally, after the electronic device 100 opens a preset number of applications (such as a preset number of 3), it can generate running data corresponding to the applications, the processor 30 can create a preset number of Surfaceview components to respectively associate the running data of the preset number of applications, and the processor 30 can display the running interface of the application in the icon area V3 of the application after the preset number of applications are minimized through the Surfaceview component, and the running interface can be entered by clicking the application icon, and then, after the preset number of applications are minimized for a preset time (such as a preset time of 3 minutes), the Surfaceview component associated with the running data of the application is destroyed. When the Imageview component is used, the thumbnail icon T3 is displayed in the icon area V3 of the application, and the running interface of the application is no longer displayed. For example, the applications are A, B, C, D, E, and F. After opening application A, B, and C, the corresponding running interfaces of A, B, and C are generated. For example, the running interface of A displays a stickman, the running interface of B displays a tree, and the running interface of C displays a five-pointed star. After the applications A, B, and C are minimized, the icon area V3 of the applications A, B, and C still displays the running interfaces of the applications A, B, and C. After 3 minutes without clicking on the applications A, B, and C, the running interfaces displayed by the applications A, B, and C will become the thumbnail icons T3 of the applications A, B, and C.

[0062] See also Fig.13 In order to better implement the display method of the embodiment of the present application, the embodiment of the present application also provides a display device 10. The display device 10 includes an acquisition module 11, a processing module 12 and a creation module 13. The acquisition module 11 is used to acquire the RAW data generated by the image sensor 50; the processing module 12 is used to process the RAW data to generate YUV data; the creation module 13 is used to create a Surfaceview component corresponding to the thumbnail area V2 in the shooting interface V0 and associate the YUV data, so as to display the thumbnail T2 of the YUV data through the thumbnail area V2.

[0063] The display device 10 also includes a sampling module 14 and a first drawing module 15. The sampling module 14 is specifically used to downsample the YUV data to obtain downsampled data matching the size of the thumbnail area V2; the first drawing module 15 is specifically used to draw the downsampled data through the Surfaceview component to obtain the thumbnail T2.

[0064] The display device 10 further includes a determination module 16 , which is specifically configured to determine a downsampling sampling coefficient according to the size of the YUV data and the size of the thumbnail area V2 .

[0065] The display device 10 also includes a control module 17 and a second drawing module 18. The control module 17 is specifically used to control the Surfaceview component to draw the thumbnail T2 according to the current YUV data according to the refresh frequency of the display interface; the second drawing module 18 is specifically used to draw the thumbnail T2 according to the changed YUV data when the YUV data changes.

[0066] The display device 10 further includes a refresh module 19 , which is specifically configured to refresh the shooting interface V0 according to the preview image T1 and thumbnail T2 after both the preview image T1 in the preview area V1 and the thumbnail T2 in the thumbnail area V2 are drawn.

[0067] The display device 10 further includes a destruction module 20, which is specifically used to destroy the Surfaceview component when the camera application is closed.

[0068] The display device 10 also includes a display module 21, which is specifically used to create a Surfaceview component corresponding to the icon area V3 of the application and associate the thumbnail icon T3 of the application to display the thumbnail icon T3 of the application through the icon area V3.

[0069] Please refer again Figure 2 An electronic device 100 according to one embodiment of the present application includes a memory 40 and a processor 30. The memory 40 stores a computer program. When the processor 30 executes the computer program, the processor 30 can obtain the RAW data generated by the image sensor 50; process the RAW data to generate YUV data; and create a Surfaceview component corresponding to the thumbnail area V2 in the shooting interface V0 and associate it with the YUV data, so as to display a thumbnail T2 of the YUV data through the thumbnail area V2.

[0070] Specifically, the electronic device 100 may be any device with a shooting function, such as a mobile phone, a tablet computer, a smart camera, etc. This application takes the electronic device 100 as an example of a mobile phone for explanation, and it is understood that the specific form of the electronic device 100 is not limited to a mobile phone.

[0071] See also Fig.14 The embodiment of the present application also provides a computer-readable storage medium 300 on which a computer program 310 is stored. When the computer program 310 is executed by a processor 320, the steps of the display method of any of the above-mentioned embodiments are implemented. For the sake of brevity, they are not repeated here.

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

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

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

Claims

1. A display method, It is characterized in that include: Get the RAW data generated by the image sensor; Processing the RAW data to generate YUV data; and Create a Surfaceview component corresponding to the thumbnail area in the shooting interface and associate the YUV data to display the thumbnail of the YUV data through the thumbnail area.

2. The display method according to claim 1, It is characterized in that Also includes: Downsampling the YUV data to obtain downsampled data matching the size of the thumbnail area; The downsampled data is drawn by the Surfaceview component to obtain the thumbnail.

3. The display method according to claim 2, It is characterized in that Also includes: A downsampling sampling coefficient is determined according to the size of the YUV data and the size of the thumbnail area.

4. The display method according to claim 1, It is characterized in that Also includes: According to the refresh frequency of the display interface, control the Surfaceview component to draw the thumbnail according to the current YUV data; or When the YUV data changes, the thumbnail is drawn according to the changed YUV data.

5. The display method according to claim 1, It is characterized in that The shooting interface also includes a preview area, and the display method further includes: When the preview image in the preview area and the thumbnail in the thumbnail area are both drawn, the shooting interface is refreshed according to the drawn preview image and thumbnail.

6. The display method according to claim 1, It is characterized in that Also includes: When the camera application is closed, the Surfaceview component is destroyed.

7. The display method according to claim 1, It is characterized in that Also includes: Create a Surfaceview component corresponding to the icon area of ​​the application and associate the thumbnail icon of the application to display the thumbnail icon of the application through the icon area.

8. A display device, It is characterized in that include: An acquisition module, used to acquire RAW data generated by an image sensor; A processing module, used for processing the RAW data to generate YUV data; A creation module is used to create a Surfaceview component corresponding to the thumbnail area in the shooting interface and associate the YUV data so as to display thumbnails of the YUV data through the thumbnail area.

9. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the display method according to any one of claims 1 to 7 is implemented.

10. A non-volatile computer-readable storage medium, It is characterized in that A computer program is stored thereon, wherein when the computer program is executed by a processor, the display method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Video recording method and equipment

    CN113347378A

  • Imaging device

    JP2004222004A

  • Imaging apparatus and its control method

    JP2005223763A

  • Electronic device and method for processing image

    US20140267871A1

  • Living Room Computer

    US20150195604A1