Sequence frame image display method and device and storage medium
By stitching multiple sequential frame images into a combined image and controlling the UV spatial offset, the problem of high CPU performance overhead in sequential frame image display is solved, and a more efficient image display process is achieved.
Patent Information
- Application Number
- CN202210254750.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2042-03-15
AI Technical Summary
In existing technologies, the CPU performance overhead is relatively large during the display of sequential frame images because multiple images need to be continuously loaded, decoded, and unloaded, resulting in a waste of system computing resources.
Multiple sequential frame images are pre-assembled into a single sequential frame collection image according to the a row and b column arrangement, and then mapped as a texture map of the display area. The images are displayed one by one by controlling the position offset of the target UV space, reducing the number of loading and decoding times.
By reducing the number of image loading and decoding operations, CPU performance overhead is reduced, system computing resources are saved, and loading speed is improved.
Smart Images

Figure CN114627228B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display, in particular to a sequence frame image display method, device and storage medium. BACKGROUND
[0002] In recent years, more and more scenes need to use sequence frame images, i.e. multiple images of the same size, to realize graphic effects such as animation, special effects and page turning. The commonly used sequence frame image display method is to load each sequence frame image one by one according to the specified frame rate and order, decode and render output, and then unload, to achieve dynamic effects. Therefore, the above display process needs to constantly load, decode and unload images, resulting in large CPU performance overhead. SUMMARY
[0003] In view of the above problems, the present application is proposed in order to provide a sequence frame image display method, device and storage medium which overcomes the above problems or at least partially solves the above problems.
[0004] In a first aspect, an embodiment of the present application provides a sequence frame image display method applied to a display device, wherein a sequence frame display area is created in the display device in advance, and the method comprises:
[0005] obtaining a sequence frame collection image and mapping the sequence frame collection image as a texture map of the sequence frame display area, wherein the sequence frame collection image is obtained by sequentially splicing multiple sequence frame images according to an arrangement mode of a row and a column;
[0006] based on the number of rows and columns of the sequence frame images spliced by the sequence frame collection image, reducing a UV space of the sequence frame display area to obtain a target UV space;
[0007] by controlling a position offset of the target UV space on the sequence frame collection image, displaying the sequence frame images in the sequence frame collection image in the sequence frame display area one by one.
[0008] Further, before the sequence frame images in the sequence frame collection image are displayed in the sequence frame display area one by one by controlling the position offset of the target UV space on the sequence frame collection image, the method further comprises:
[0009] obtaining mapping direction configuration information;
[0010] according to the mapping direction configuration information, configuring horizontal and vertical coordinate mapping directions of the target UV space, wherein the horizontal and vertical coordinate mapping directions are adapted to a splicing order of the sequence frame images in the sequence frame collection image.
[0011] Further, the splicing order of the sequence frame images in the sequence frame collection image is any one of the following orders:
[0012] from the first column to the bth column in the horizontal direction and from the first row to the a th row in the vertical direction;
[0013] from the first column to the bth column in the horizontal direction and from the a th row to the first row in the vertical direction;
[0014] from the bth column to the first column in the horizontal direction and from the first row to the a th row in the vertical direction;
[0015] from the bth column to the first column in the horizontal direction and from the a th row to the first row in the vertical direction.
[0016] Further, the mapping direction configuration information comprises: horizontal direction configuration information and vertical direction configuration information, the horizontal direction configuration information is used for configuring the horizontal coordinate mapping direction of the target UV space, and the vertical direction configuration information is used for configuring the vertical coordinate mapping direction of the target UV space, and the obtaining of the mapping direction configuration information comprises:
[0017] the horizontal direction configuration information is determined by monitoring the opening and closing state of a first preset control;
[0018] the vertical direction configuration information is determined by monitoring the opening and closing state of a second preset control.
[0019] Further, the sequence frame display area is created by the following steps:
[0020] a plane object model is created based on the aspect ratio of a single sequence frame image, and the plane object model is used as the sequence frame display area;
[0021] a UV space of the plane object model is configured.
[0022] Further, the sequence frame display area is created by the following steps:
[0023] the sequence frame images in the sequence frame collection image are sequentially displayed in the sequence frame display area by controlling the position offset of the target UV space in the sequence frame collection image,
[0024] wherein, the offset step of the target UV space is a single sequence frame image area, the first image area is an area where a first sequence frame image in the multiple sequence frame images is located, and the second image area is an area where a last sequence frame image in the multiple sequence frame images is located.
[0025] Further, the displaying the sequence frame images in the sequence frame collection image one by one in the sequence frame display area comprises:
[0026] receiving a user triggered page turning instruction;
[0027] based on the page turning instruction, controlling the target UV space to shift from a current image area to a next image area in the sequence frame collection image, and displaying the sequence frame image of the next image area to the sequence frame display area.
[0028] In a second aspect, an embodiment of the present application provides a sequence frame image display device, applied to a display device, a sequence frame display area being pre-created in the display device, and the display device comprising:
[0029] an obtaining module, configured to obtain a sequence frame collection image and map the sequence frame collection image as a texture map of the sequence frame display area, wherein the sequence frame collection image is obtained by sequentially splicing a plurality of sequence frame images according to an a-row-by-b-column arrangement manner;
[0030] a space conversion module, configured to reduce a UV space of the sequence frame display area based on a number of rows and columns of the sequence frame images spliced by the sequence frame collection image, to obtain a target UV space;
[0031] a display module, configured to display the sequence frame images in the sequence frame collection image one by one in the sequence frame display area by controlling a position shift of the target UV space on the sequence frame collection image.
[0032] In a third aspect, an embodiment of the present application provides a display device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the sequence frame image display method in any one of claims 1-7 are implemented.
[0033] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, the computer readable storage medium storing computer instructions, when the computer instructions are executed on a computer, the computer executes the steps of the sequence frame image display method in the first aspect.
[0034] The technical scheme provided in the embodiment of the present application has at least the following technical effects or advantages:
[0035] The sequence frame image display method, device and storage medium provided by the embodiment of the present application, by previously splicing multiple sequence frame images into a single sequence frame collection image according to an a-row-by-b-column arrangement mode, obtaining a texture map of the sequence frame collection image mapped to a sequence frame display region, then reducing the UV space of the sequence frame display region based on the row and column numbers of the sequence frame image to obtain a target UV space, and then displaying the sequence frame images in the sequence frame collection image one by one in the sequence frame display region by controlling the position offset of the target UV space on the sequence frame collection image, a dynamic display effect is realized. The process only loads and decodes a single sequence frame collection image, the number of times of loading and decoding images in the whole display process is reduced, which is conducive to reducing the performance overhead of the CPU and saving the computing resources of the system.
[0036] The above description is only a summary of the technical solutions provided by the embodiments of the present application, in order to more clearly understand the technical means of the embodiments of the present application, the content of the specification can be implemented, and in order to make the above and other purposes, features and advantages of the embodiments of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS
[0037] By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become apparent to those of ordinary skill in the art. The drawings are for the purpose of illustrating the preferred embodiments only and are not to be considered as limiting of the present application. Moreover, the same reference numerals are used throughout the various drawings to designate the same or similar parts. In the drawings:
[0038] Figure 1 A flowchart of a sequence frame image display method provided by the first aspect of the embodiments of the present application;
[0039] Figure 2 A splicing schematic diagram of an exemplary sequence frame collection image in the embodiments of the present application;
[0040] Figure 3 For Figure 2 A mapping relationship schematic diagram of the exemplary sequence frame collection image and the UV space in the embodiments of the present application;
[0041] Figure 4 A default initial mapping position schematic diagram of the target UV space in the embodiments of the present application;
[0042] Figure 5 An initial mapping position schematic diagram of the target UV space after reverse mapping in the embodiments of the present application;
[0043] Figure 6 A module block diagram of a sequence frame image display device provided by the second aspect of the embodiments of the present application;
[0044] Figure 7This is a schematic structural diagram of a display device provided in accordance with the third aspect of an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art. In this article, UV is an abbreviation for U, V texture mapping coordinates, which defines the position information of each point on the image, and these points are interconnected with the 3D model to determine the position of the surface texture map.
[0046] In a first aspect, an embodiment of the present invention provides a method for displaying a sequence of frame images, which is applied to a display device. Figure 1 As shown, the method for displaying sequence frame images may include the following steps S101 to S103.
[0047] Step S101 , obtaining a sequence frame collection image, and mapping the sequence frame collection image into a texture map of a sequence frame display area, wherein the sequence frame collection image is formed by sequentially stitching together a plurality of sequence frame images in an arrangement of a row and b columns.
[0048] In recent years, the performance of 3D engines has continued to improve, and their application areas have expanded from the initial gaming field to industries such as virtual reality, animation, and film and television. A sequence frame display area can be pre-created on a display device by the 3D engine as a display carrier for sequence frame images. The specific creation process may include: creating a planar object model based on the aspect ratio of a single sequence frame image, using this planar object model as the sequence frame display area, that is, the object for mapping the sequence frame collection image; and then configuring the UV space of the planar object model. The aspect ratio of the planar object model is consistent with the aspect ratio of the single sequence frame image.
[0049] For example, you can first obtain the aspect ratio of a single sequence frame image, and then create a rectangular plane object model based on the aspect ratio, so that the aspect ratio of the plane object model is consistent with the aspect ratio of the single sequence frame image; then edit the UV space of the plane object model, and convert the initial rectangular UV space into a square UV space with an aspect ratio of 1:1.
[0050] It should be noted that, in addition to the plane object model, in other embodiments, other applicable model objects may also be created to achieve dynamic display of sequence frame images.
[0051] In this embodiment, the splicing process of the sequence frame collection image can be performed at the sending end. At this time, the sending party first splices the multiple sequence frame images in turn according to the arrangement mode of a rows and b columns to obtain a sequence frame collection image, and then sends the sequence frame collection image to the display device. The display device loads the received sequence frame collection image to display the sequence frame images. In this way, the power consumption of the display device is reduced, and the performance requirement of the display device is lowered.
[0052] Alternatively, the splicing process of the sequence frame collection image can also be performed in the display device. At this time, the sending party sends the multiple sequence frame images to the display device, and the display device first performs a preprocessing step after receiving the multiple sequence frame images, specifically including: splicing the multiple sequence frame images in turn according to the arrangement mode of a rows and b columns to obtain a sequence frame collection image and storing the sequence frame collection image; and then loading the sequence frame collection image to display the sequence frame images.
[0053] In specific implementation, the splicing mode of the sequence frame collection image is determined by a preset splicing column number and a splicing order. The splicing column number is the value of the row number a and the column number b. Assuming that there are c sequence frame images to be dynamically displayed, a*b is greater than or equal to c. As an implementation manner, the values of a and b can be equal. It should be noted that when a*b is greater than c, the blank part can be filled with a preset fill-in image. For example, c is 35, a=b=6, and a fill-in image needs to be added after the 35th sequence frame image.
[0054] For example, the splicing order of the sequence frame images in the sequence frame collection image can be: from the first column to the bth column horizontally and from the first row to the a th row vertically, that is, from left to right and from top to bottom; or from the first column to the bth column horizontally and from the a th row to the first row vertically, that is, from left to right and from bottom to top; or from the bth column to the first column horizontally and from the first row to the a th row vertically, that is, from right to left and from top to bottom; or from the bth column to the first column horizontally and from the a th row to the first row vertically, that is, from right to left and from bottom to top. The splicing order actually used can be configured according to the actual scene. Taking the digital sequence frame images 01-20 as an example, according to the splicing order from left to right and from top to bottom, the obtained sequence frame collection image is as shown in FIG. 2. Figure 2
[0055] Based on this, when the display device displays the sequence frame images, only the corresponding single sequence frame collection image needs to be loaded, the number of times of loading, decoding, and unloading the image is changed from c times to once, the loading speed is greatly improved, and the performance overhead of the CPU is reduced.
[0056] Furthermore, after loading the sequence frame collection image, a mapping relationship between the sequence frame collection image and the above-mentioned plane object model can be established, thereby mapping the sequence frame collection image into a texture map of the sequence frame display area. Figure 3 As shown, the rectangular frame 301 represents the UV space of the above-mentioned plane object model. This ensures that the sequence frame collection image can cover the UV space of the sequence frame display area, thereby ensuring the accuracy of subsequent overall scaling of the UV space and avoiding pixel-level errors in the display of the sequence frame image.
[0057] Step S102 : Based on the number of rows and columns of the sequence frame images stitched together from the sequence frame collection, the UV space of the sequence frame display area is reduced to obtain a target UV space.
[0058] For example, the input node Width and Height can be configured in the system. The node information is shown in Table 1. The relevant personnel input the number of rows and columns of the sequence frame image according to the pre-agreed arrangement method. Specifically, the number of columns is input into the node Width, and the number of rows is input into the node Height.
[0059] Table 1
[0060] Node Name Type Input / Output Summary Width Floating point value Input Horizontal number of reference cells Height Floating point value Input Vertical number of reference cells
[0061] by Figure 2 Taking the sequence frame collection image shown as an example, Width=5, Height=4, that is, 5 sequence frame images are arranged horizontally and 4 sequence frame images are arranged vertically in the sequence frame collection image. In specific implementation, a single sequence frame image can be used as the minimum reference unit in the sequence frame collection image ( Figure 2 The dotted lines are only used to schematically distinguish between the various reference units). The UV space of the sequence frame display area is proportionally reduced according to the minimum number of reference units in the horizontal and vertical directions, so that the reduced target UV space is mapped to one reference unit, that is, the sequence frame display area is displayed in units of reference units.
[0062] Specifically, after obtaining the number of rows and columns of the sequence frame images stitched together, the horizontal width of the UV space in the sequence frame display area can be proportionally reduced by the number of columns, and the vertical height of the UV space can be proportionally reduced by the number of rows, thereby obtaining the target UV space. In other words, assuming that the horizontal axis of the UV space is X and the vertical axis is Y, the horizontal coordinate x is divided by b, and the vertical coordinate y is divided by a to obtain the reduced target UV space.
[0063] It is understandable that the coordinate data of the UV space is usually in the range of 0 to 1, that is, starting from the lower left corner of the UV space. That is, by default, the target UV space obtained after the reduction will be mapped to the reference unit located in the lower left corner of the sequence frame collection image. For example, Figure 2For example, as shown in the sequence frame collage image, the target UV space is mapped to the sequence frame image No. 16 by default. Figure 4 As shown, the rectangular frame 401 represents the target UV space after being zoomed out.
[0064] Therefore, in order to obtain the correct display order, the horizontal and vertical coordinate mapping directions of the target UV space need to be flexibly configured according to the splicing order of the sequence frame images in the sequence frame collage image. The horizontal and vertical coordinate mapping directions are adapted to the splicing order of the sequence frame images in the sequence frame collage image. For example, as shown in the sequence frame collage image, the splicing order of the sequence frame images is from left to right horizontally and from top to bottom vertically. At this time, the vertical coordinate of the target UV space needs to be inversely mapped, so that the target UV space can be mapped to the sequence frame image No. 01 in the initial state, that is, the sequence frame display area starts to display from the sequence frame image No. 01. Figure 2 For example, as shown in the sequence frame collage image, the splicing order of the sequence frame images is from left to right horizontally and from top to bottom vertically. At this time, the vertical coordinate of the target UV space needs to be inversely mapped, so that the target UV space can be mapped to the sequence frame image No. 01 in the initial state, that is, the sequence frame display area starts to display from the sequence frame image No. 01.
[0065] In a specific implementation, the process of configuring the horizontal and vertical coordinate mapping directions of the target UV space can include: obtaining mapping direction configuration information; and configuring the horizontal and vertical coordinate mapping directions of the target UV space according to the mapping direction configuration information. In an optional implementation, the mapping direction configuration information can include: horizontal configuration information and vertical configuration information, the horizontal configuration information being used to configure the horizontal coordinate mapping direction of the target UV space, and the vertical configuration information being used to configure the vertical coordinate mapping direction of the target UV space. In this way, the horizontal and vertical coordinate mapping directions can be flexibly configured respectively, so that the constraint on the splicing order of the sequence frame images is relaxed, and the display order of the sequence frame images can be more flexibly set.
[0066] For example, the first preset control and the second preset control for visualization can be preconfigured, the first preset control being used to control whether to start the inverse mapping of the horizontal coordinate of the target UV space, and the second preset control being used to control whether to start the inverse mapping of the vertical coordinate of the target UV space. At this time, the process of obtaining the mapping direction configuration information can include: determining the horizontal configuration information by monitoring the opening and closing states of the first preset control; and determining the vertical configuration information by monitoring the opening and closing states of the second preset control.
[0067] For example, the first preset control and the second preset control can be named as Invert X and Invert Y respectively, and the node information is shown in Table 2.
[0068] Table 2
[0069]
[0070]
[0071] The first preset control and the second preset control can be in a closed state by default. During the system configuration process, the relevant personnel can choose whether to open the first preset control and the second preset control according to the actual sequence frame collection image stitching order. Figure 2 Taking the sequence frame collection image shown as an example, you can choose to keep the first preset control in the default closed state and turn on the second preset control, so that the target UV space can be mapped to the sequence frame image No. 01 in the initial state, such as Figure 5 shown.
[0072] Of course, in addition to configuring switch-type visual controls, in other embodiments of the present invention, other methods can also be used to obtain mapping direction configuration information. For example, a drop-down list can also be configured, and the drop-down list displays various combinations of horizontal configuration information and vertical configuration information. During the system configuration process, relevant personnel select horizontal configuration information and vertical configuration information from the drop-down list according to the actual sequence frame collection image splicing order.
[0073] Step S103 , by controlling the position offset of the target UV space on the sequence frame collection image, the sequence frame images in the sequence frame collection image are displayed one by one in the sequence frame display area.
[0074] It is understandable that, in the initial state, the sequence frame display area will first display the corresponding sequence frame image, whichever reference unit the target UV space is mapped to on the sequence frame collection image. Figure 2 Taking the sequence frame collection image shown as an example, the initial mapping position of the target UV space is reference unit 01 in the upper left corner. Therefore, sequence frame 01 will be sampled and rendered into the sequence frame display area first. Then, by controlling the target UV space offset to the next reference unit, the next sequence frame will be sampled and rendered into the sequence frame display area, achieving the display of the sequence frame images one by one.
[0075] In practice, different application scenarios may display slightly different sequence frames. The following uses looping animation and page-turning as examples to illustrate the dynamic display process of sequence frame images.
[0076] The first, the cycle animation display. At this time, the step S103 can specifically include: according to the preset offset speed, the target UV space is sequentially controlled from the first image region in the sequence frame collection image to the second image region, and the sequence frame image of the image region where the target UV space is located is displayed in the sequence frame display region one by one. Wherein, the offset step of the target UV space is a single sequence frame image region, that is, the smallest reference unit in the sequence frame collection image. It should be noted that an image region is a reference unit, that is, the region of a single sequence frame image. The first image region is the region of the first sequence frame image in the above-mentioned multiple sequence frame images, and the second image region is the region of the last sequence frame image in the above-mentioned multiple sequence frame images.
[0077] For example, the time variable Time can be defined in advance to control the offset of the target UV space. The growth rate of the Time value is configured according to the required sequence frame image playing speed in advance, so that the Time value starts from 0 and increases in turn according to the growth rate, and triggers the offset of the target UV space when increasing. Specifically, in the initial state, Time=0, the target UV space is mapped to the first image region, then the Time value increases by 1, the target UV space is offset to the right by one reference unit position, and then the target UV space is repositioned to the first image region after being offset to the second image region, and enters the next round of playing. The target UV space is offset to one reference unit, and the sequence frame image of the corresponding region is sampled and rendered to the sequence frame display region, so as to realize the cycle animation playing of the above-mentioned multiple sequence frame images. The growth rate of the Time value can be configured according to the required sequence frame image playing speed.
[0078] The second, the page turning display, that is, the sequence frame image is displayed according to the user instruction. At this time, the step S103 can specifically include: receiving the page turning instruction triggered by the user; based on the page turning instruction, the target UV space is controlled from the current image region in the sequence frame collection image to the next image region, and the sequence frame image of the next image region is displayed to the sequence frame display region.
[0079] In a specific implementation, the user operation mode for triggering the page turning instruction can be various, for example, can be an operation of single-clicking a screen display area, or a gesture operation such as left swiping, right swiping, or a voice command operation. Taking the gesture operation as an example, in an initial state, the display device displays the first sequence frame image, and the user can perform a right swiping gesture operation on the screen display area to trigger a right page turning instruction, control the target UV space to shift to a region where the second sequence frame image is located, and thus display the second sequence frame image. In this way, the page turning display of the sequence frame images can be realized. Of course, in this process, the user can also perform a left swiping gesture operation on the screen display area to trigger a left page turning instruction, control the target UV space to shift to a region where the previous sequence frame image is located, and thus display the previous sequence frame image.
[0080] The sequence frame image display method provided in the embodiments of the present application discards the traditional mode of sequentially loading multiple sequence frame images, and pre-combines the multiple sequence frame images into a single sequence frame collection image, and then realizes the dynamic display of the sequence frame images by controlling the reduction and shift of the UV space, which is beneficial to reducing the performance overhead of image loading and decoding on the CPU, saving the computing resources of the system, and reducing the hardware requirements on the display device.
[0081] In a second aspect, based on the same inventive concept, the embodiments of the present application also provide a sequence frame image display device applied to a display device, and the display device has a sequence frame display region created in advance. As shown in Figure 6 The sequence frame image display device 60 can include:
[0082] The acquisition module 601 is configured to acquire a sequence frame collection image, and map the sequence frame collection image as a texture map of the sequence frame display region, where the sequence frame collection image is sequentially combined from multiple sequence frame images according to an a-row-by-b-column arrangement mode.
[0083] The space conversion module 602 is configured to reduce the UV space of the sequence frame display region based on the number of rows and columns of the sequence frame images combined from the sequence frame collection image, to obtain a target UV space.
[0084] The display module 603 is configured to display the sequence frame images in the sequence frame collection image in the sequence frame display region one by one by controlling the position shift of the target UV space on the sequence frame collection image.
[0085] In an optional implementation, the sequence frame image display device 60 described above further includes a configuration module configured to:
[0086] acquire mapping direction configuration information;
[0087] According to the mapping direction configuration information, a horizontal coordinate mapping direction and a vertical coordinate mapping direction of the target UV space are configured, and the horizontal coordinate mapping direction and the vertical coordinate mapping direction are adapted to the splicing order of the sequence frame images in the sequence frame set image.
[0088] In an optional embodiment, the splicing order of the sequence frame images in the sequence frame set image is any one of the following orders:
[0089] from the first column to the bth column in the horizontal direction and from the first row to the a th row in the vertical direction;
[0090] from the first column to the bth column in the horizontal direction and from the a th row to the first row in the vertical direction;
[0091] from the bth column to the first column in the horizontal direction and from the first row to the a th row in the vertical direction;
[0092] from the bth column to the first column in the horizontal direction and from the a th row to the first row in the vertical direction.
[0093] In an optional embodiment, the mapping direction configuration information comprises horizontal direction configuration information and vertical direction configuration information, the horizontal direction configuration information is used to configure a horizontal coordinate mapping direction of the target UV space, and the vertical direction configuration information is used to configure a vertical coordinate mapping direction of the target UV space.
[0094] The horizontal direction configuration information is determined by monitoring an opening and closing state of a first preset control.
[0095] The vertical direction configuration information is determined by monitoring an opening and closing state of a second preset control.
[0096] In an optional embodiment, the sequence frame image display device further comprises a creating module configured to:
[0097] create a planar object model based on an aspect ratio of a single sequence frame image, and use the planar object model as the sequence frame display region.
[0098] configure a UV space of the planar object model.
[0099] In an optional embodiment, the display module 603 is configured to:
[0100] control the target UV space to be shifted from a first image region to a second image region in the sequence frame set image at a preset offset speed, and display the sequence frame images in the image region where the target UV space is located in the sequence frame display region one by one,
[0101] Among them, the offset step size of the target UV space is a single sequence frame image area, the first image area is the area where the first sequence frame image of the multiple sequence frame images is located, and the second image area is the area where the last sequence frame image of the multiple sequence frame images is located.
[0102] In an optional embodiment, the display module 603 is used to:
[0103] Receive page turning instructions triggered by the user;
[0104] Based on the page turning instruction, the target UV space is controlled to shift from the current image area in the sequence frame collection image to the next image area, and the sequence frame image of the next image area is displayed in the sequence frame display area.
[0105] It should be noted that the above modules can be implemented by software code or by hardware such as an integrated circuit chip.
[0106] It should also be noted that for the specific process of each of the above modules realizing their respective functions, please refer to the specific content described in the above method embodiment, which will not be repeated here.
[0107] On the third aspect, based on the same inventive concept, Figure 7 As shown, an embodiment of the present invention further provides a display device 70, comprising a processor (not shown in the figure), a memory (not shown in the figure), and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the embodiment of the sequence frame image display method provided in the first aspect above are implemented, and the same technical effects can be achieved. To avoid repetition, details will not be given here. Of course, the display device 70 also includes: a display panel 701, which is connected to the processor and is used to display a sequence frame image 702. For example, the display panel may be an LCD panel or an OLED panel.
[0108] It should be noted that the display device can be any electronic device with a display function, and this embodiment does not limit this. For example, the display device can be a smart display screen, a smart wearable device, a smart traffic light device, a smart phone, or a smart TV.
[0109] In a fourth aspect, based on the same inventive concept, the embodiments of the present application also provide a computer readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the processes of the sequence frame image display method embodiment provided in the first aspect, and achieve the same technical effects. To avoid repetition, details are not described herein. For example, the computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0110] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, device, or computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage, etc.) containing computer-usable program code.
[0111] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices, and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus produce a device implemented in the flowcharts and / or block diagrams. Figure 1 The device that implements the functions specified in one flow or multiple flows and / or blocks. Figure 1 The device that implements the functions specified in one flow or multiple flows and / or blocks.
[0112] These computer program instructions can also be stored in a computer readable storage medium that can direct the computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer readable storage medium produce a manufactured product including instruction devices that implement the flowcharts and / or block diagrams. Figure 1 The device that implements the functions specified in one flow or multiple flows and / or blocks. Figure 1 The device that implements the functions specified in one flow or multiple flows and / or blocks.
[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are performed on the computer or other programmable data processing apparatus to produce a computer implemented process, so that the instructions executed on the computer or other programmable data processing apparatus provide a device for implementing the flowcharts and / or block diagrams. Figure 1one or more processes and / or blocks Figure 1 steps of a function specified in one or more blocks.
[0114] In this document, relational terms such as first and second and the like can be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element. The terms "a" and "an" are defined as taking the meaning of "one or more" unless this is explicitly stated otherwise.
[0115] While the preferred embodiments of the application have been described, additional variations and modifications can be made to the embodiments by those of skill in the art once they have the benefit of the present disclosure. Therefore, the appended claims are intended to cover all such variations and modifications as falling within the scope of the present application.
Claims
1. A sequential frame image presentation method, characterized by, The method is applied to a display device in which a sequence frame display area is created in advance, and the method comprises the following steps: An image of a sequence frame collection is obtained, and the image of the sequence frame collection is mapped as a texture map of the sequence frame display area, wherein the image of the sequence frame collection is obtained by sequentially splicing a plurality of sequence frame images according to an arrangement mode of a row and a column; the image of the sequence frame collection is spliced by a sending end and then sent to the display device; Based on the number of rows and columns of the sequence frame images spliced by the image of the sequence frame collection, a target UV space of the sequence frame display area is reduced to obtain the target UV space; By controlling a position offset of the target UV space on the image of the sequence frame collection, the sequence frame images in the image of the sequence frame collection are sequentially displayed on the sequence frame display area; The sequence frame display area is created by the following steps: A plane object model is created based on an aspect ratio of a single sequence frame image, and the plane object model is used as the sequence frame display area; wherein the aspect ratio of the plane object model is consistent with the aspect ratio of a single sequence frame image; A UV space of the plane object model is configured.
2. The method of claim 1, wherein, Before the sequence frame images in the image of the sequence frame collection are sequentially displayed on the sequence frame display area by controlling the position offset of the target UV space on the image of the sequence frame collection, the following steps are further included: Mapping direction configuration information is obtained; According to the mapping direction configuration information, a horizontal coordinate mapping direction and a vertical coordinate mapping direction of the target UV space are configured, and the horizontal coordinate mapping direction and the vertical coordinate mapping direction are adapted to a splicing order of the sequence frame images in the image of the sequence frame collection.
3. The method of claim 2, wherein, The splicing order of the sequence frame images in the image of the sequence frame collection is any one of the following orders: From a first column to an b-th column in a horizontal direction, and from a first row to an a-th row in a vertical direction; From the first column to the b-th column in the horizontal direction, and from the a-th row to the first row in the vertical direction; From the b-th column to the first column in the horizontal direction, and from the first row to the a-th row in the vertical direction; From the b-th column to the first column in the horizontal direction, and from the a-th row to the first row in the vertical direction.
4. The method of claim 2, wherein, The mapping direction configuration information comprises horizontal direction configuration information and vertical direction configuration information, the horizontal direction configuration information is used for configuring the horizontal coordinate mapping direction of the target UV space, and the vertical direction configuration information is used for configuring the vertical coordinate mapping direction of the target UV space; the mapping direction configuration information is obtained by the following steps: The horizontal direction configuration information is determined by monitoring an opening and closing state of a first preset control; The vertical direction configuration information is determined by monitoring an opening and closing state of a second preset control.
5. The method of claim 1, wherein, The sequence frame images in the image of the sequence frame collection are sequentially displayed on the sequence frame display area by controlling the position offset of the target UV space on the image of the sequence frame collection, comprising the following steps: According to a preset offset speed, the target UV space is sequentially controlled to be offset from a first image area to a second image area in the image of the sequence frame collection, and the sequence frame images in the image area where the target UV space is located are sequentially displayed on the sequence frame display area. The offset step of the target UV space is a single sequence frame image region. The first image region is a region where a first sequence frame image in the multiple sequence frame images is located. The second image region is a region where a last sequence frame image in the multiple sequence frame images is located.
6. The method of claim 1, wherein, The displaying of the sequence frame images in the sequence frame collection image in the sequence frame display region one by one through the control of the position offset of the target UV space on the sequence frame collection image comprises: receiving a page turning instruction triggered by a user; based on the page turning instruction, controlling the target UV space to offset from a current image region to a next image region in the sequence frame collection image, and displaying a sequence frame image in the next image region to the sequence frame display region.
7. A sequential frame image display device, characterized by comprising: The display device has a sequence frame display region created in advance, and comprises: an obtaining module configured to obtain a sequence frame collection image and map the sequence frame collection image as a texture map of the sequence frame display region, wherein the sequence frame collection image is obtained by sequentially splicing multiple sequence frame images according to an arrangement mode of a row and a column, and the sequence frame collection image is spliced by a sending end and then sent to the display device; The sequence frame display region is created by the following steps: creating a plane object model based on an aspect ratio of a single sequence frame image, taking the plane object model as the sequence frame display region, wherein the aspect ratio of the plane object model is consistent with the aspect ratio of the single sequence frame image, and configuring a UV space of the plane object model; a space conversion module configured to reduce the UV space of the sequence frame display region based on the number of rows and columns of the sequence frame images spliced by the sequence frame collection image, to obtain a target UV space; a display module configured to display the sequence frame images in the sequence frame collection image in the sequence frame display region one by one through the control of the position offset of the target UV space on the sequence frame collection image.
8. A display device, characterized by comprising: comprise: a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the computer program is executed by the processor to implement the steps of the sequence frame image display method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, when the computer instructions are executed on a computer, the computer executes the steps of the sequence frame image display method according to any one of claims 1-6.