Screen saver file display method, device, terminal equipment and storage medium
By obtaining and converting screensaver files in the video network terminal cache area and saving file identifiers in the map array, dynamic display screensaver files are realized, solving the problem of excessive memory consumption during screensaver switching in the existing technology, and improving terminal devices performance.
Patent Information
- Application Number
- CN202010839933.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-19
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-08-19
AI Technical Summary
When switching screen savers, existing video network terminals need to frequently look up and load screen saver pictures, resulting in excessive memory consumption and may cause interface lag.
By obtaining the screensaver file to be displayed from the cache area of the visual network terminal, converting it to bitmap format and saving it in the map array, and obtaining and displaying the screensaver file from the map array every preset time period according to the order of file identification, avoiding Frequent search and loading processes.
It saves memory consumption, avoids lag when displaying screen saver files, and improves the response speed of video network terminals.
Smart Images

Figure CN112153449B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual networking technology, and in particular to a screen saver file display method, device, terminal equipment and storage medium. Background Art
[0002] In the existing visual network terminals, switching screen savers to achieve dynamic screen saver switching utilizes timers and ordinary list collection arrays to store screen saver images, and downloaded screen saver images are continuously added to the list collection array, which will change the positions of other images in the array. If there are many screen saver images, the list collection array needs to be used to cyclically search for screen saver images, and the visual network terminal needs to consume a lot of memory, and the screen saver of the visual network terminal interface may be stuck. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a screen saver file display method, apparatus, terminal device and storage medium that overcome the above problems or at least partially solve the above problems.
[0004] In a first aspect, an embodiment of the present invention provides a screen saver file display method, the method comprising:
[0005] Acquire at least two first screen saver files to be displayed from a buffer area of the visual networking terminal;
[0006] Converting the at least two first screen saver files into at least two second screen saver files in bitmap format;
[0007] The at least two second screen saver files and the file identifiers of the second screen saver files are stored in a map array;
[0008] After receiving a switching instruction input by the user through the remote control, according to the sequence of the file identifiers corresponding to the second screen saver files, the second screen saver file corresponding to the file identifier is obtained from the map array at every preset time period;
[0009] The second screen saver file is converted into the first screen saver file, and the file content corresponding to the first screen saver file is displayed on the interface of the visual networking terminal.
[0010] Optionally, the step of storing the at least two second screen saver files and the file identifiers of the second screen saver files in a map array comprises:
[0011] Determining the file content corresponding to the second screen saver file and the file content of the third screen saver file;
[0012] If the file content of the second screen saver file is the same as the file content of the third screen saver file, the bitmap data of the second screen saver file and the file identifier of the second screen saver file are stored in the map array.
[0013] Optionally, before acquiring at least two first screen saver files to be displayed from the buffer area of the visual networking terminal, the method further includes:
[0014] Receiving a file acquisition instruction input by a user on a visual networking terminal interface, the file acquisition instruction includes a target screen saver style, the target screen saver style includes a screen saver style and a file style, the screen saver style includes at least one of a landscape and a person, and the file style includes a picture or a short video;
[0015] According to the file acquisition instruction, at least two first original screen saver files corresponding to the target screen saver style are acquired from the file database of the visual network terminal;
[0016] and / or
[0017] Receiving at least two second original screen saver files corresponding to the target screen saver style and sent by the video network server, and storing at least two second original screen saver files in the file database;
[0018] The file path of the first original screen saver file and / or the file path of the second original screen saver file are stored in the cache area of the visual networking terminal, wherein the first screen saver file is the file path of the first original screen saver file and / or the file path of the second original screen saver file.
[0019] Optionally, converting the at least two first screen saver files into at least two second screen saver files in bitmap format comprises:
[0020] When the first screen saver file is a file path of a first picture, using a bitmap factory and a decoding file function, the file paths of the at least two first pictures are converted into at least two second picture files in a bitmap format respectively;
[0021] and / or
[0022] When the first screen saver file is the file path of the first short video, the file paths of the at least two first short videos are converted into at least two second short video files in bitmap format by using the bitmap factory and the decoding file function.
[0023] Optionally, converting the second screen saver file into the first screen saver file, and displaying the file content corresponding to the first screen saver file on the interface of the visual networking terminal includes:
[0024] By setting an image viewing function, the second image file is converted into the first screen saver file, and according to the file path of the first image, the corresponding first image is obtained from the file database, and the first image is displayed on the interface of the visual network terminal;
[0025] and / or
[0026] By setting a second short video file on a preset playback control, searching a file database for a first short video corresponding to the second short video file, and playing the first short video on an interface of a visual networking terminal.
[0027] In a second aspect, an embodiment of the present invention provides a screen saver file display device, the device comprising:
[0028] A first acquisition module, used for acquiring at least two first screen saver files to be displayed from a buffer area of the visual networking terminal;
[0029] A conversion module, used for converting the at least two first screen saver files into at least two second screen saver files in bitmap format;
[0030] A saving module, used for saving the at least two second screen saver files and the file identifiers of the second screen saver files in a map array;
[0031] A second acquisition module is used to acquire the second screen saver file corresponding to the file identifier from the map array at every preset time period according to the sequence of the file identifiers corresponding to the second screen saver file after receiving the switching instruction input by the user through the remote control;
[0032] The display module is used to convert the second screen saver file into the first screen saver file, and display the file content corresponding to the first screen saver file on the interface of the visual network terminal.
[0033] Optionally, the storage module is used to:
[0034] Determining the file content corresponding to the second screen saver file and the file content of the third screen saver file;
[0035] If the file content of the second screen saver file is the same as the file content of the third screen saver file, the bitmap data of the second screen saver file and the file identifier of the second screen saver file are stored in the map array.
[0036] Optionally, the device further comprises an input module, wherein the input module is used to:
[0037] Receiving a file acquisition instruction input by a user on a visual networking terminal interface, the file acquisition instruction includes a target screen saver style, the target screen saver style includes a screen saver style and a file style, the screen saver style includes at least one of a landscape and a person, and the file style includes a picture or a short video;
[0038] According to the file acquisition instruction, at least two first original screen saver files corresponding to the target screen saver style are acquired from the file database of the visual network terminal;
[0039] and / or
[0040] Receiving at least two second original screen saver files corresponding to the target screen saver style and sent by the video network server, and storing at least two second original screen saver files in the file database;
[0041] The file path of the first original screen saver file and / or the file path of the second original screen saver file are stored in the cache area of the visual networking terminal, wherein the first screen saver file is the file path of the first original screen saver file and / or the file path of the second original screen saver file.
[0042] Optionally, the conversion module is used to:
[0043] When the first screen saver file is a file path of a first picture, using a bitmap factory and a decoding file function, the file paths of the at least two first pictures are converted into at least two second picture files in a bitmap format respectively;
[0044] and / or
[0045] When the first screen saver file is the file path of the first short video, the file paths of the at least two first short videos are converted into at least two second short video files in bitmap format by using the bitmap factory and the decoding file function.
[0046] Optionally, the display module is used to:
[0047] By setting an image viewing function, the second image file is converted into the first screen saver file, and according to the file path of the first image, the corresponding first image is obtained from the file database, and the first image is displayed on the interface of the visual network terminal;
[0048] and / or
[0049] By setting a second short video file on a preset playback control, searching a file database for a first short video corresponding to the second short video file, and playing the first short video on an interface of a visual networking terminal.
[0050] In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and a memory;
[0051] The memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the screen saver file display method provided in the first aspect.
[0052] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the screen saver file display method provided in the first aspect is implemented.
[0053] The embodiments of the present invention include the following advantages:
[0054] The screen saver file display method, device, terminal device and storage medium provided in the embodiments of the present invention obtain at least two first screen saver files to be displayed from the cache area of the visual network terminal; convert the at least two first screen saver files into at least two second screen saver files in bitmap format; save the at least two second screen saver files and the file identifiers of the second screen saver files in a map array; after receiving a switching instruction input by the user through a remote control, obtain the second screen saver file corresponding to the file identifier from the map array at every preset time period according to the sequence of the file identifiers corresponding to the second screen saver files; convert the second screen saver file into the first screen saver file, and display the file content corresponding to the first screen saver file on the interface of the visual network terminal, extract the screen saver file from the map array at every preset time period, and dynamically display it on the visual network terminal, without the need to cyclically search for screen saver images, saving memory, and avoiding the phenomenon of freeze in the screen saver file of the visual network terminal interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a flowchart of a screen saver file display method embodiment of the present invention;
[0056] Figure 2 is a flowchart of another screen saver file display method embodiment of the present invention;
[0057] Figure 3 is a flowchart of another embodiment of a screen saver file display method of the present invention;
[0058] Figure 4 It is a structural block diagram of an embodiment of a screen saver file display device of the present invention;
[0059] Figure 5 It is a structural schematic diagram of a terminal device of the present invention. DETAILED DESCRIPTION
[0060] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0061] The visual Internet is an important milestone in the development of the Internet. It is a real-time network that can realize real-time transmission of high-definition video and push many Internet applications towards high-definition video and high-definition face-to-face communication.
[0062] The visual network adopts real-time high-definition video exchange technology. It can integrate the required services such as high-definition video conferencing, video monitoring, intelligent monitoring analysis, emergency command, digital radio and television, delayed TV, online teaching, live broadcast, VOD on demand, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release and dozens of other video, voice, picture, text, communication, data and other services on a single system platform, and realize high-definition quality video playback through TV or computer.
[0063] An embodiment of the present invention provides a screen saver file display method for dynamically displaying a screen saver file on a visual networking terminal. The execution subject of this embodiment is a screen saver file display device, which is arranged on a visual networking terminal device.
[0064] Reference Figure 1 , shows a flowchart of a screen saver file display method embodiment of the present invention, the method may specifically include the following steps:
[0065] S101, acquiring at least two first screen saver files to be displayed from a buffer area of a visual networking terminal;
[0066] Specifically, the visual networking terminal obtains at least two first screen saver files from the cache area. The first screen saver file can be a file path of a picture stored on the visual networking terminal, or a file path of a short video stored on the visual networking terminal, and the picture content and short video content are saved in a local file database of the visual networking terminal.
[0067] Specifically, the first screen saver file is read using BufferedInputStream, that is, the buffered input stream is used to read, and the buffered output stream is used to store the byte stream in the cache area.
[0068] BufferedInputStream, a byte stream that provides buffered input stream functionality. The advantage of a buffered input stream over a normal input stream is that it provides a buffer array. Each time the read method is called, it first tries to read data from the buffer. If the read fails (there is no readable data in the buffer), it chooses to read new data from a physical data source (such as a file) (here it will try to read as many bytes as possible) and put it into the buffer. Finally, it returns part or all of the content in the buffer to the user. Since reading data from the buffer is much faster than reading directly from a physical data source (such as a file).
[0069] BufferedInputStream is essentially implemented through an internal buffer array. For example, after creating a BufferedInputStream corresponding to an input stream, when reading the data of the input stream through read(), BufferedInputStream will fill the data of the input stream into the buffer in batches. Whenever the data in the buffer is read, the input stream will fill the data buffer again; this process repeats until the input stream data position is read.
[0070] The data in the buffer is actually stored in the memory, while the original data may be stored in a storage medium such as a hard disk or NandFlash; and the speed of reading data from the cache area of the memory is at least 10 times faster than the speed of reading data from the hard disk.
[0071] S102, converting the at least two first screen saver files into at least two second screen saver files in bitmap format;
[0072] Specifically, the visual networking terminal can obtain at least two first screen saver files from a specified file in a memory cache area by using the bitmap factory BitmapFactory, and use the decoding file function decodeFile() to convert the first screen saver file into a second screen saver file in bitmap form, namely Bitma.
[0073] The constructor of the Bitmap class is private and cannot be instantiated from outside, but can only be instantiated through JNI. This must be a helper class that provides an interface for creating Bitmaps, and the implementation of this class instantiates Bitmaps through the JNI interface. This class is BitmapFactory.
[0074] S103, storing the at least two second screen saver files and the file identifiers of the second screen saver files in a map array;
[0075] Specifically, the visual network terminal saves the second screen saver file in bitmap form, i.e., the bitmap data of the second screen saver file and the file identifier of the second screen saver file in a map array. That is to say, the map array stores the correspondence between the file identifier and the bitmap data of the second screen saver file. For example, the map array stores data in the format of serial number 1, corresponding to the bitmap data of the file path of the picture of serial number 1, serial number 2, corresponding to the bitmap data of the file path of the short video of serial number 2, etc.
[0076] There are four main methods to obtain the value of map, which are divided into two categories. One is to call the map.keySet() method to obtain the key (file identifier) and value (bitmap data), and the other is to obtain the value through the map.entrySet() method. The difference between the two is that the former mainly obtains the set of all keys first, and when the value of the value needs to be queried, the value needs to be queried through the key, while the latter directly takes out the key-value pair of key and value, and only needs to be queried once, which is not specifically limited in the embodiments of the present invention.
[0077] Specifically, if the first screen saver file is a file path of a picture, the picture may be in png or jpg format, and then the file path of the picture is converted into a Bitmap object, that is, a bitmap object, through a buffer stream.
[0078] If the short video is in the format of mp4, avi, etc., the first screen saver file is the file path of the short video, and then the file path String string, that is, the URL file path, is used, and the URL (Uniform Resource Locator) file path is saved to the value of the map.
[0079] S104, after receiving a switching instruction input by the user through the remote control, according to the sequence of the file identifiers corresponding to the second screen saver files, obtaining the second screen saver file corresponding to the file identifier from the map array at every preset time period;
[0080] Specifically, the user clicks any button on the remote control, the visual networking terminal receives the switching command input by the user through the remote control, and obtains the second screen saver file from the map array every preset time period according to the sequence of file identifiers in the second screen saver file.
[0081] Exemplarily, the dynamic switching is implemented by using a timer to accumulate a temporary variable every 3 seconds, for example: k==0 (initial value is 0)
[0082] k+=k+1;
[0083] If k+1=1, get the key value of the map. key==1 means the index value corresponding to the picture or short video is 1 (e.g. serial number 1). If K+1=2, get the index value corresponding to the picture or short video is 2. And so on.
[0084] Get from map map.get(k) to get;
[0085] If the accumulated K of the timer is greater than the key index value of the map, k%map.size will be used to get the remaining value, and map.get(k%map.size == remainder value) will be used to get the Bitmap object, so that it will never be greater than the total length of the map collection.
[0086] S105: Convert the second screen saver file into the first screen saver file, and display the file content corresponding to the first screen saver file on the interface of the visual networking terminal.
[0087] Specifically, after the visual network terminal obtains the second screen saver file every preset time period, it searches for the corresponding file content, such as pictures or short videos, according to the file path in the second screen saver file, and dynamically switches and displays the pictures or short videos on the interface of the visual network terminal.
[0088] The screen saver file display method provided by the embodiment of the present invention obtains at least two first screen saver files to be displayed from the cache area of the visual networking terminal; converts the at least two first screen saver files into at least two second screen saver files in bitmap format; saves the at least two second screen saver files and the file identifiers of the second screen saver files in a map array; after receiving a switching instruction input by the user through a remote control, obtains the second screen saver file corresponding to the file identifier from the map array every preset time period according to the sequence of the file identifiers corresponding to the second screen saver files; converts the second screen saver file into the first screen saver file, and displays the file content corresponding to the first screen saver file on the interface of the visual networking terminal, extracts the screen saver file from the map array every preset time period, and dynamically displays it on the visual networking terminal, does not need to cyclically search for screen saver images, saves memory, and avoids the screen saver file of the visual networking terminal interface from being stuck.
[0089] Another embodiment of the present invention further supplements the screen saver file display method provided in the above embodiment.
[0090] like Figure 2 FIG. 1 is a flowchart showing another screen saver file display method embodiment of the present invention, wherein the screen saver file display method comprises:
[0091] S201, receiving a file acquisition instruction input by a user on a visual network terminal interface, wherein the file acquisition instruction includes a target screen saver style, wherein the target screen saver style includes a screen saver style and a file style, wherein the screen saver style includes at least one of a landscape and a person, and wherein the file style includes a picture or a short video;
[0092] S202, acquiring at least two first original screen saver files corresponding to the target screen saver style from a file database of the visual network terminal according to the file acquisition instruction;
[0093] Specifically, the file database may be set on a hard disk or in a memory, which is not specifically limited in the embodiment of the present invention.
[0094] S203, if the corresponding first original screen saver file is not found locally in the visual networking terminal, a request is sent to the visual networking server, and at least two second original screen saver files corresponding to the target screen saver style are received from the visual networking server, and at least two second original screen saver files are saved in the file database;
[0095] The order in which step S203 and step S202 occur is not specifically limited in the embodiment of the present invention.
[0096] S204. Store the file path of the first original screen saver file and / or the file path of the second original screen saver file in the cache area of the visual networking terminal, wherein the first screen saver file is the file path of the first original screen saver file and / or the file path of the second original screen saver file.
[0097] S205, acquiring at least two first screen saver files to be displayed from the buffer area of the visual network terminal;
[0098] S206, converting the at least two first screen saver files into at least two second screen saver files in bitmap format;
[0099] Specifically, the first screen saver file includes a file path of a first picture and a file path of a first short video. When the first screen saver file is the file path of the first picture, the file paths of the at least two first pictures are converted into at least two second picture files in bitmap format respectively by using a bitmap factory and a decoding file function;
[0100] and / or
[0101] When the first screen saver file is the file path of the first short video, the file paths of the at least two first short videos are converted into at least two second short video files in bitmap format by using the bitmap factory and the decoding file function.
[0102] For example, BitmapFactory can be used to extract Bitmap from a specified file using decodeFile(); Bitmap can also be extracted from a defined image or short video resource using decodeResource().
[0103] S207, storing the at least two second screen saver files and the file identifiers of the second screen saver files in a map array;
[0104] Specifically, the visual network terminal determines the file content corresponding to the second screen saver file and the file content of the third screen saver file;
[0105] If the file content of the second screen saver file is the same as the file content of the third screen saver file, the bitmap data of the second screen saver file and the file identifier of the second screen saver file are stored in the map array.
[0106] That is, if two pictures are the same, only the file path of the first picture is stored in the map array;
[0107] Alternatively, if two short videos are the same, only the file path of the previous short video is stored in the map array.
[0108] For example, a timer is used to accumulate temporary variables, and then the corresponding relationship between the map set key and the vlue value is used to obtain the image from the cache area. First, the map can ensure deduplication and the uniqueness of the screen saver data. For the program, it can efficiently, accurately and quickly obtain the screen saver file image, ensuring the stability of the program. From the perspective of memory and CPU, when there are many screen saver files, the calculation amount of the traversal loop is reduced. At the same time, adjacent images will not be repeated, realizing the head and tail polling switching.
[0109] S208, after receiving the switching instruction input by the user through the remote control, according to the sequence of the file identifiers corresponding to the second screen saver files, obtaining the second screen saver file corresponding to the file identifier from the map array at every preset time period;
[0110] Since step S205, step S208 and Figure 1 Steps S101 and S104 in the illustrated embodiment are the same. Figure 1 Step S101 and step S104 have been described in detail in the specification, so step S205 and step S208 will not be described in detail here.
[0111] S209: Convert the second screen saver file into the first screen saver file, and display the file content corresponding to the first screen saver file on the interface of the visual network terminal.
[0112] Specifically, by setting an image viewing function, the second image file is converted into the first screen saver file, and according to the file path of the first image, the corresponding first image is obtained from the file database, and the first image is displayed on the interface of the visual network terminal;
[0113] and / or
[0114] By setting a second short video file on a preset playback control, searching a file database for a first short video corresponding to the second short video file, and playing the first short video on an interface of a visual networking terminal.
[0115] Specifically, if it is a picture, the imageview function, that is, the image viewing function, is used to convert the second picture file in bitmap form into a first screen saver file, and according to the file path of the first picture, the corresponding first picture is obtained from the file database, and the first picture is dynamically switched and displayed on the interface of the visual network terminal for each preset time period.
[0116] If it is a short video, the short video is in the format of mp4 avi, etc., and then the file path String string, that is, the URL playback path, is saved to the value of the map. When switching, use VideoView or TextureView, etc. or set the URL on the third-party playback control to switch playback.
[0117] Figure 3 FIG. 1 is a flowchart of another embodiment of a screen saver file display method of the present invention. Figure 3 As shown, the screen saver file display method includes:
[0118] 1. First, the user selects the screen saver options provided on the visual networking terminal, and the user selects the style. After the selection, the screen saver style is sent to C++ through Android using JNI function;
[0119] sendScreenStyle(String msg); "msg" indicates the selected screen saver style and its switch, polling time, etc.
[0120] @Parameter description
[0121] {
[0122] "command":"ACK_SCREEN_SETTING_DATA", / / Corresponding to the selected screen saver information
[0123] "pollingTimeIndex":"0", / / polling time
[0124] "screenMode":"1", / / Still or polling display
[0125] "screenStatus":"1", / / Display playback switch
[0126] "stillPictureIndex":"0", / / Still picture index, indicating the playback order
[0127] "screenStyle" "Landscape short video" / / screen saver style, landscape or character, file format, picture or short video}
[0128] "sendScreenStyle" represents the JNI function. The Android layer transmits the language used by C++.
[0129] 2. C++ gets the information and sends it to the visual network server through the visual network protocol;
[0130] Visual Internet protocol and its interface definition:
[0131] @Description: Terminal processing conference transparent transmission interface protocol
[0132] @Parameter: a, indicates the message content, b indicates the message length
[0133] v2v_conference_screensaver_process(char*a,int b);
[0134] After the visual network responds, it pushes the screen saver files to C++ in the form of byte stream. C++ downloads these screen saver files to the visual network terminal and notifies the Android layer that the download is complete.
[0135] @Description: callback to the Android upper layer interface
[0136] @Parameter: Type = 438, indicating that the screen saver selected for Android has been downloaded
[0137] Msg indicates that the content of the font library is about to be selected.
[0138] void V2vSlw::getScreenMessage(int type,char*msg);
[0139] Android obtains the screen saver style by searching the file and providing options for switching.
[0140] The listFiles() method queries the screen saver images and then displays the list for preview.
[0141] When no operation is performed, a timing operation is performed, and the timing display and playback are performed according to the polling time in seconds provided by the user.
[0142] 3. After receiving, C++ stores it in the terminal local screen saver file and uses JNI function to notify the Android layer to query the selection and screen saver information.
[0143] 4. After selection, the remote control switch is monitored according to the user's remote control operation; if pressed, the dynamic screen saver polling timing is performed according to the selected information to switch the dynamic screen saver. If not, the static screen saver is displayed without timing display.
[0144] CountDownTimer timing carousel dynamic screen saver
[0145] @Parameter int keyCode, indicating the key value corresponding code
[0146] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0147] The screen saver file display method provided by the embodiment of the present invention obtains at least two first screen saver files to be displayed from the cache area of the visual networking terminal; converts the at least two first screen saver files into at least two second screen saver files in bitmap format; saves the at least two second screen saver files and the file identifiers of the second screen saver files in a map array; after receiving a switching instruction input by the user through a remote control, obtains the second screen saver file corresponding to the file identifier from the map array every preset time period according to the sequence of the file identifiers corresponding to the second screen saver files; converts the second screen saver file into the first screen saver file, and displays the file content corresponding to the first screen saver file on the interface of the visual networking terminal, extracts the screen saver file from the map array every preset time period, and dynamically displays it on the visual networking terminal, does not need to cyclically search for screen saver images, saves memory, and avoids the screen saver file of the visual networking terminal interface from being stuck.
[0148] Another embodiment of the present invention provides a screen saver file display device, which is used to execute the screen saver file display method provided in the above embodiment.
[0149] Reference Figure 4, shows a structural block diagram of an embodiment of a screen saver file display device of the present invention, the device may specifically include the following modules: a first acquisition module 401, a conversion module 402, a storage module 403, a second acquisition module 404 and a display module 405, wherein:
[0150] The first acquisition module 401 is used to acquire at least two first screen saver files to be displayed from the buffer area of the visual network terminal;
[0151] The conversion module 402 is used for converting the at least two first screen saver files into at least two second screen saver files in bitmap format;
[0152] The saving module 403 is used for saving the at least two second screen saver files and the file identifiers of the second screen saver files in a map array;
[0153] The second acquisition module 404 is used to acquire the second screen saver file corresponding to the file identifier from the map array at every preset time period according to the sequence of the file identifiers corresponding to the second screen saver files after receiving the switching instruction input by the user through the remote control;
[0154] The display module 405 is used to convert the second screen saver file into the first screen saver file, and display the file content corresponding to the first screen saver file on the interface of the visual network terminal.
[0155] The screen saver file display device provided by the embodiment of the present invention obtains at least two first screen saver files to be displayed from the cache area of the visual networking terminal; converts the at least two first screen saver files into at least two second screen saver files in bitmap format; saves the at least two second screen saver files and the file identifiers of the second screen saver files in a map array; after receiving a switching instruction input by the user through a remote control, obtains the second screen saver file corresponding to the file identifier from the map array at every preset time period according to the sequence of the file identifiers corresponding to the second screen saver files; converts the second screen saver file into the first screen saver file, and displays the file content corresponding to the first screen saver file on the interface of the visual networking terminal, extracts the screen saver file from the map array at every preset time period, and dynamically displays it on the visual networking terminal, does not need to cyclically search for screen saver images, saves memory, and avoids the screen saver file on the interface of the visual networking terminal from being stuck.
[0156] Another embodiment of the present invention further supplements the screen saver file display device provided by the above embodiment.
[0157] Optionally, the saving module 403 is used to:
[0158] Determining the file content corresponding to the second screen saver file and the file content of the third screen saver file;
[0159] If the file content of the second screen saver file is the same as the file content of the third screen saver file, the bitmap data of the second screen saver file and the file identifier of the second screen saver file are stored in the map array.
[0160] Optionally, the device further comprises an input module, wherein the input module is used to:
[0161] Receiving a file acquisition instruction input by a user on a visual networking terminal interface, the file acquisition instruction includes a target screen saver style, the target screen saver style includes a screen saver style and a file style, the screen saver style includes at least one of a landscape and a person, and the file style includes a picture or a short video;
[0162] According to the file acquisition instruction, at least two first original screen saver files corresponding to the target screen saver style are acquired from the file database of the visual network terminal;
[0163] and / or
[0164] Receiving at least two second original screen saver files corresponding to the target screen saver style and sent by the video network server, and storing at least two second original screen saver files in the file database;
[0165] The file path of the first original screen saver file and / or the file path of the second original screen saver file are stored in the cache area of the visual networking terminal, wherein the first screen saver file is the file path of the first original screen saver file and / or the file path of the second original screen saver file.
[0166] Optionally, the conversion module 402 is used to:
[0167] When the first screen saver file is a file path of a first picture, using a bitmap factory and a decoding file function, the file paths of the at least two first pictures are converted into at least two second picture files in a bitmap format respectively;
[0168] and / or
[0169] When the first screen saver file is the file path of the first short video, the file paths of the at least two first short videos are converted into at least two second short video files in bitmap format by using the bitmap factory and the decoding file function.
[0170] Optionally, the display module 405 is used to:
[0171] By setting an image viewing function, the second image file is converted into the first screen saver file, and according to the file path of the first image, the corresponding first image is obtained from the file database, and the first image is displayed on the interface of the visual network terminal;
[0172] and / or
[0173] By setting a second short video file on a preset playback control, searching a file database for a first short video corresponding to the second short video file, and playing the first short video on an interface of a visual networking terminal.
[0174] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0175] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0176] The screen saver file display device provided by the embodiment of the present invention obtains at least two first screen saver files to be displayed from the cache area of the visual networking terminal; converts the at least two first screen saver files into at least two second screen saver files in bitmap format; saves the at least two second screen saver files and the file identifiers of the second screen saver files in a map array; after receiving a switching instruction input by the user through a remote control, obtains the second screen saver file corresponding to the file identifier from the map array at every preset time period according to the sequence of the file identifiers corresponding to the second screen saver files; converts the second screen saver file into the first screen saver file, and displays the file content corresponding to the first screen saver file on the interface of the visual networking terminal, extracts the screen saver file from the map array at every preset time period, and dynamically displays it on the visual networking terminal, does not need to cyclically search for screen saver images, saves memory, and avoids the screen saver file on the interface of the visual networking terminal from being stuck.
[0177] Still another embodiment of the present invention provides a terminal device, which is used to execute the screen saver file display method provided in the above embodiment.
[0178] Figure 5 is a schematic diagram of the structure of a terminal device of the present invention, such as Figure 5 As shown, the terminal device includes: at least one processor 501 and a memory 502;
[0179] The memory stores a computer program; and the at least one processor executes the computer program stored in the memory to implement the screen saver file display method provided in the above embodiment.
[0180] The terminal device provided in this embodiment obtains at least two first screen saver files to be displayed from the cache area of the visual networking terminal; converts the at least two first screen saver files into at least two second screen saver files in bitmap format; saves at least two second screen saver files and file identifiers of the second screen saver files in a map array; after receiving a switching instruction input by the user through a remote control, obtains the second screen saver file corresponding to the file identifier from the map array at every preset time period according to the sequence of the file identifiers corresponding to the second screen saver files; converts the second screen saver file into the first screen saver file, and displays the file content corresponding to the first screen saver file on the interface of the visual networking terminal, extracts the screen saver file from the map array at every preset time period, and dynamically displays it on the visual networking terminal, does not need to cyclically search for screen saver images, saves memory, and avoids the screen saver file of the visual networking terminal interface from being stuck.
[0181] Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the screen saver file display method provided in any of the above embodiments is implemented.
[0182] According to the computer-readable storage medium of the present embodiment, at least two first screen saver files to be displayed are obtained from the cache area of the visual networking terminal; at least two first screen saver files are converted into at least two second screen saver files in bitmap format; at least two second screen saver files and file identifiers of the second screen saver files are stored in a map array; after receiving a switching instruction input by the user through a remote control, the second screen saver file corresponding to the file identifier is obtained from the map array at every preset time period according to the sequence of the file identifiers corresponding to the second screen saver files; the second screen saver file is converted into a first screen saver file, and the file content corresponding to the first screen saver file is displayed on the interface of the visual networking terminal, and the screen saver file is extracted from the map array at every preset time period and dynamically displayed on the visual networking terminal, without the need to cyclically search for screen saver images, thus saving memory and avoiding the phenomenon of freeze in the screen saver file of the visual networking terminal interface.
[0183] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0184] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0185] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, electronic devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, 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 electronic device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing electronic device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0186] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing electronic device so that a series of operating steps are executed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable electronic device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0188] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0189] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or electronic device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or electronic device. In the absence of further restrictions, the elements defined by the sentence "comprises one..." do not exclude the presence of other identical elements in the process, method, article or electronic device including the elements.
[0190] A screen saver file display method and a screen saver file display device provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A screen saver file display method, characterized in that: The method comprises: Acquire at least two first screen saver files to be displayed from a buffer area of the visual networking terminal, wherein the first screen saver file is a file path of a first picture and / or a file path of a first short video; Converting the at least two first screen saver files into at least two second screen saver files in bitmap format; wherein the visual networking terminal obtains the at least two first screen saver files from the cache area through a bitmap factory, and uses a decoding file function to convert the first screen saver files into the second screen saver files in bitmap format; The at least two second screen saver files and the file identifiers of the second screen saver files are stored in a map array; After receiving a switching instruction input by the user through the remote control, according to the sequence of the file identifiers corresponding to the second screen saver files, the second screen saver file corresponding to the file identifier is obtained from the map array at every preset time period; The second screen saver file is converted into the first screen saver file, and the file content corresponding to the first screen saver file is displayed on the interface of the visual networking terminal.
2. The method according to claim 1, characterized in that: The step of storing the at least two second screen saver files and the file identifiers of the second screen saver files in a map array includes: Determining the file content corresponding to the second screen saver file and the file content of the third screen saver file; If the file content of the second screen saver file is the same as the file content of the third screen saver file, the bitmap data of the second screen saver file and the file identifier of the second screen saver file are stored in the map array.
3. The method according to claim 1, characterized in that Before acquiring at least two first screen saver files to be displayed from the buffer area of the visual networking terminal, the method further includes: Receiving a file acquisition instruction input by a user on a visual networking terminal interface, the file acquisition instruction includes a target screen saver style, the target screen saver style includes a screen saver style and a file style, the screen saver style includes at least one of a landscape and a person, and the file style includes a picture or a short video; According to the file acquisition instruction, at least two first original screen saver files corresponding to the target screen saver style are acquired from the file database of the visual network terminal; and / or Receiving at least two second original screen saver files corresponding to the target screen saver style and sent by the video network server, and storing at least two second original screen saver files in the file database; The file path of the first original screen saver file and / or the file path of the second original screen saver file are stored in the cache area of the visual networking terminal, wherein the first screen saver file is the file path of the first original screen saver file and / or the file path of the second original screen saver file.
4. The method according to claim 1, characterized in that: The converting the at least two first screen saver files into at least two second screen saver files in bitmap format comprises: When the first screen saver file is a file path of a first picture, using a bitmap factory and a decoding file function, the file paths of the at least two first pictures are converted into at least two second picture files in a bitmap format respectively; and / or When the first screen saver file is the file path of the first short video, the file paths of the at least two first short videos are converted into at least two second short video files in bitmap format by using the bitmap factory and the decoding file function.
5. The method according to claim 4, characterized in that The converting the second screen saver file into the first screen saver file, and displaying the file content corresponding to the first screen saver file on the interface of the visual networking terminal, comprises: By setting an image viewing function, the second image file is converted into the first screen saver file, and according to the file path of the first image, the corresponding first image is obtained from the file database, and the first image is displayed on the interface of the visual network terminal; and / or By setting a second short video file on a preset playback control, searching a file database for a first short video corresponding to the second short video file, and playing the first short video on an interface of a visual networking terminal.
6. A screen saver file display device, characterized in that: The device comprises: A first acquisition module is used to acquire at least two first screen saver files to be displayed from a cache area of a visual network terminal, wherein the first screen saver file is a file path of a first picture and / or a file path of a first short video; A conversion module, used for converting the at least two first screen saver files into at least two second screen saver files in bitmap format; wherein the visual network terminal obtains the at least two first screen saver files from the cache area through a bitmap factory, and uses a decoding file function to convert the first screen saver file into the second screen saver file in bitmap format; A saving module, used for saving the at least two second screen saver files and the file identifiers of the second screen saver files in a map array; A second acquisition module is used to acquire the second screen saver file corresponding to the file identifier from the map array at every preset time period according to the sequence of the file identifiers corresponding to the second screen saver file after receiving the switching instruction input by the user through the remote control; The display module is used to convert the second screen saver file into the first screen saver file, and display the file content corresponding to the first screen saver file on the interface of the visual network terminal.
7. The device according to claim 6, characterized in that The conversion module is used for: When the first screen saver file is a file path of a first picture, using a bitmap factory and a decoding file function, the file paths of the at least two first pictures are converted into at least two second picture files in a bitmap format respectively; and / or When the first screen saver file is the file path of the first short video, the file paths of the at least two first short videos are converted into at least two second short video files in bitmap format by using the bitmap factory and the decoding file function.
8. The device according to claim 7, characterized in that The display module is used for: By setting an image viewing function, the second image file is converted into the first screen saver file, and according to the file path of the first image, the corresponding first image is obtained from the file database, and the first image is displayed on the interface of the visual network terminal; and / or By setting a second short video file on a preset playback control, searching a file database for a first short video corresponding to the second short video file, and playing the first short video on an interface of a visual networking terminal.
9. A terminal device, characterized in that: include: at least one processor and memory; The memory stores a computer program; The at least one processor executes the computer program stored in the memory to implement the screen saver file display method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the screen saver file display method according to any one of claims 1 to 5 is implemented.
