WO2017113593A1 - Method and apparatus for processing animation menu based on smart television - Google Patents
Method and apparatus for processing animation menu based on smart television Download PDFInfo
- Publication number
- WO2017113593A1 WO2017113593A1 PCT/CN2016/084433 CN2016084433W WO2017113593A1 WO 2017113593 A1 WO2017113593 A1 WO 2017113593A1 CN 2016084433 W CN2016084433 W CN 2016084433W WO 2017113593 A1 WO2017113593 A1 WO 2017113593A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- menu
- animation
- animation menu
- frame
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4335—Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
Definitions
- the present invention relates to the field of televisions, and in particular, to a method and apparatus for processing an animation menu based on a smart television.
- the application of smart TV is more and more extensive, and its functions are becoming more and more powerful.
- smart TVs can also perform functions such as on-demand, games, browsing photos, and reading documents.
- the cloud server pushes the animation menu to the smart TV.
- the smart TV first caches the animation menus in the internal memory, and then plays the cached animation menu.
- the internal memory capacity of the smart TV is limited (the capacity is usually small, such as 256M)
- a large part of the space in the internal memory needs to be used for storing system files, and the remaining small space is stored.
- the animation menu pushed by the cloud server, and the animation menu pushed by the cloud server to the smart TV is usually a high frame rate animation menu. Therefore, the animation menu received from the cloud server cannot be completely saved into the internal memory, which will result in small memory.
- Smart TV does not support the problem of animated menus with high frame rates for cloud push.
- the main object of the present invention is to provide a method and a device for processing an animation menu based on a smart TV, which aims to solve the problem that the small memory smart TV does not support the animation menu with high frame rate of the cloud push in the prior art.
- the present invention provides a method for processing an animation menu based on a smart TV, the method comprising:
- the memory sequential timing menu frame synthesis module selects a memory sequential timing menu frame synthesis module to process the animation menu; the memory sequential timing menu frame synthesis module chronologically the animation menu Displayed one by one on the screen;
- the Flash multi-storage synthesis module is selected to process the animation menu;
- the processing of the animation menu by the Flash multi-storage synthesis module includes:
- the Flash multi-storage synthesis module sequentially stores each video frame in the animation menu into each frame buffer area;
- the Flash multi-storage synthesis module stores a portion of the video frame in the frame buffer area that is different from the video frame in the composite frame buffer area;
- the Flash multi-storage synthesis module synthesizes the portions of the video frames stored in the composite frame buffer to generate a composite frame, and displays the composite frame on the screen.
- the external memory is a USB flash drive or a hard disk.
- the step of detecting whether the external memory is accessed includes:
- the present invention also provides a method for processing an animation menu based on a smart TV, the method comprising:
- the Flash multi-storage synthesis module is selected to process the animation menu.
- the method further includes:
- the memory sequential timing menu frame synthesis module displays the animation menus one by one on the screen in chronological order.
- the method further includes:
- the Flash multi-storage synthesis module sequentially stores each video frame in the animation menu into each frame buffer area;
- the Flash multi-storage synthesis module stores a portion of the video frame in the frame buffer area that is different from the video frame in the composite frame buffer area;
- the Flash multi-storage synthesis module synthesizes the portions of the video frames stored in the composite frame buffer to generate a composite frame, and displays the composite frame on the screen.
- the external memory is a USB flash drive or a hard disk.
- the step of detecting whether the external memory is accessed includes:
- the present invention further provides a processing device for an animation menu based on a smart TV, the device comprising:
- a calculation module configured to calculate a storage space required by the animation menu when detecting an animation menu pushed by the cloud
- a detecting module configured to detect whether an external memory is connected
- a judging module configured to determine, when the external memory is accessed, whether the available space of the internal memory is greater than or equal to a storage space required by the animation menu
- a selection module configured to: when the available space of the internal memory is greater than or equal to a storage space required by the animation menu, select a memory sequential timing menu frame synthesis module to process the animation menu; and use less space available in the internal memory When the storage space required for the animation menu is occupied, select the Flash multi-storage synthesis module to process the animation menu.
- the memory sequential timing menu frame synthesis module is configured to time the animation menu The order is displayed one by one on the screen.
- the flash multi-storage synthesis module is configured to sequentially store each video frame in the animation menu into each frame buffer area; and compare the difference between the video frames in the respective frame buffer areas. Storing to the composite frame buffer area; and synthesizing the portions of the video frames stored in the composite frame buffer area to generate a composite frame, and displaying the composite frame on the screen.
- the external memory is a USB flash drive or a hard disk.
- the detecting module is further configured to detect whether a level of the external interface corresponding to the external memory is a high level; if the level of the external interface corresponding to the external memory is a high level, determining the access There is external memory.
- the method and device for processing the animation menu based on the smart TV of the present invention when detecting the animation menu pushed by the cloud, calculating the storage space required by the animation menu; detecting whether an external memory is accessed; If there is an external memory, it is determined whether the available space of the internal memory is greater than or equal to the storage space required by the animation menu; if the available space of the internal memory is greater than or equal to the storage space required by the animation menu, the memory sequential timing menu is selected.
- the frame synthesis module processes the animation menu; if the available space of the internal memory is smaller than the storage space required by the animation menu, the Flash multi-storage synthesis module is selected to process the animation menu; the frame rate of the cloud-free push that the small memory smart TV does not support is avoided. High animated menu issues.
- FIG. 1 is a schematic flow chart of a first embodiment of a method for processing an animation menu based on a smart television according to the present invention
- FIG. 2 is a schematic flow chart of a second embodiment of a method for processing an animation menu based on a smart television according to the present invention
- FIG. 3 is a schematic structural diagram of an embodiment of a processing device for an animation menu based on a smart TV according to the present invention.
- FIG. 1 is a schematic flowchart of a first embodiment of a method for processing an animation menu based on a smart TV. The method is applied to a smart television. The method includes:
- the cloud server can be connected via a mobile network or the Internet to receive an animated menu from the cloud server.
- the push is considered The animation menu is valid data; when the number of frames of the pushed animation menu is less than the preset number of frames, it is considered that the pushed animation menu is invalid data, that is, the animation menu pushed by the cloud server is an error, which is interference data.
- the preset number of frames can be set as needed, such as set to 10.
- step S20 Detect whether an external memory is connected. If an external memory is connected, step S30 is performed.
- the external storage may be a USB flash drive or a hard disk or an SD card or a TF card or the like.
- Whether the smart TV is connected to the external memory can be determined by reading the level of the external interface corresponding to the external memory on the smart TV.
- the step of detecting whether the external memory is connected is: detecting whether the level of the external interface corresponding to the external memory is a high level; if the level of the external interface corresponding to the external memory is a high level, Then, it is determined that the external memory is accessed; if the level of the external interface corresponding to the external memory is low, it is determined that the external memory is not connected.
- the external interface can be a USB interface, an SD card interface, or a TF card interface. In an embodiment, when the level of the read USB interface is high, it is determined that the smart TV is connected to the USB flash drive.
- step S30 Determine whether the available space of the internal memory is greater than or equal to the storage space required by the animation menu. If the available space of the internal memory is greater than or equal to the storage space required by the animation menu, perform step S40, if the internal memory If the available space is smaller than the storage space required for the animation menu, step S50 is performed.
- the internal memory may be a DDR memory (Double Data Rate, Double Rate Synchronous Dynamic Random Access Memory).
- calculating the required storage space of the animation menu can be calculated by reading the width and height of the single frame picture in the animation menu, and multiplying the width of the single frame by a single sheet. The size of the frame, then multiply the size of the single frame by the number of frames in the animation menu to get the animated menu
- the space C required to calculate the animation menu is 118M.
- the available space of the internal memory is calculated. Specifically, the total physical storage space of the internal memory and the storage space occupied by the system are first acquired, and then according to the total object storage space of the internal memory and the storage space occupied by the system.
- the total physical storage space of the internal memory is 128M, and the storage space occupied by the system is 60M, then the available space to the internal memory can be calculated to be 68M; in another embodiment, the total physicality of the internal memory The storage space is 512M, and the storage space occupied by the system is 60M, then the available space to the internal memory can be calculated to be 452M.
- this step it is determined whether the available space of the internal memory is greater than or equal to the storage space required by the animation menu to determine whether to select the memory sequential timing menu frame synthesis module or the Flash multi-storage synthesis module to process the animation menu pushed by the cloud.
- the available space of the internal memory is greater than or equal to the storage space required by the animation menu, it is considered that the animation menu can be processed by the memory sequential timing menu frame synthesis module, and the available space in the internal memory is smaller than the storage space required by the animation menu.
- the animation menu can be processed by the Flash multi-storage synthesis module.
- the available space of the internal memory is 452M, and the storage space required by the animation menu is 118M, so that the available space of the internal memory is determined to be larger than the size of the animation menu, and the memory sequential timing menu frame synthesis module is selected.
- Process animation menus In another embodiment, the available space of the internal memory is 68M, and the storage space required by the animation menu is 118M, that is, the available space of the internal memory is smaller than the storage space required by the animation menu, and then the Flash multi-storage is selected.
- the zone synthesis module processes the animation menu.
- the storage space required for the animation menu is calculated; whether the external memory is detected is detected; if the external memory is accessed, the available space of the internal memory is determined. Whether it is greater than or equal to the storage space required by the animation menu; if the available space of the internal memory is greater than or equal to the storage space required by the animation menu, then Selecting the memory sequence timing menu frame synthesis module to process the animation menu; if the available space of the internal memory is smaller than the storage space required by the animation menu, then selecting the Flash multi-storage synthesis module to process the animation menu; avoiding the small memory smart TV does not support the cloud The problem of pushing animated menus with high frame rates.
- FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for processing an animation menu based on a smart television according to the present invention.
- the method further includes: S60, the memory sequential timing menu frame synthesizing module displays the animation menu one by one on the screen in chronological order on.
- the method further includes: S70, the flash multi-storage synthesizing module sequentially stores each video frame in the animation menu into each frame buffer area; S80, the flash multi-storage area synthesizing module The difference between the video frames in the buffer area is stored in the composite frame buffer area; S90, the Flash multi-storage area synthesizing module synthesizes the difference between the video frames stored in the composite frame buffer area to generate a composite frame. And display the composite frame on the screen.
- the memory sequential timing menu frame synthesizing module arranges the video frames in the animation menu in chronological order. If the animation menu includes 60 frames of video frames, the received animation menus are sequentially received according to the order of receiving. The video frames in the number are numbered, such as from 1 to 60, the number 1 corresponds to the first received video frame, and the number 60 corresponds to the last received video frame; after the numbering is completed, the start flag is set to 1, and then the number is The subsequent video frames are displayed one by one on the screen in chronological order.
- step S70 the flash multi-storage synthesis module sequentially stores each video frame in the animation menu into each frame buffer area.
- the animation menu includes 60 frames of video frames
- the animation menu corresponds to 60
- Each frame of video buffer corresponds to one frame buffer area.
- video frame 1 is stored in frame buffer area 1
- video frame 2 is stored in frame buffer area 2
- video frame 3 is stored in frame buffer area 3.
- the video frame 60 is stored in the frame buffer 60.
- the Flash multi-storage synthesis module stores the difference in the video frame in each frame buffer area into the composite frame buffer area, specifically, the frame buffer area 1 to the frame buffer area 60.
- Video frames are compared to determine the difference between each video frame, and each video frame is The difference between the parts is stored in the composite frame buffer area, that is, in this step, the red, green and blue pixel gains of the respective video frames are compared, and the difference between the red, green and blue pixel gains in each video frame is stored in the composite frame buffer. Area.
- the portion where the difference between the respective video frames is the portion where the difference between the red, green and blue pixel gains between the respective video frames is not zero.
- FIG. 3 is a schematic structural diagram of an embodiment of a processing device for an animation menu based on a smart television, which is applied to a smart television, and the device includes:
- the calculating module 10 is configured to calculate a storage space required for the animation menu when detecting an animation menu pushed by the cloud;
- the detecting module 20 is configured to detect whether an external memory is connected
- the determining module 30 is configured to determine, when the external memory is accessed, whether the available space of the internal memory is greater than or equal to a storage space required by the animation menu;
- the selection module 40 is configured to: when the available space of the internal memory is greater than or equal to the storage space required by the animation menu, select the memory sequential timing menu frame synthesis module 50 to process the animation menu; and the available space for the internal memory is less than When the storage space required for the animation menu is occupied, the Flash multi-storage synthesis module 60 is selected to process the animation menu.
- the processing device of the animation menu of the smart TV can connect to the cloud server through the mobile network or the Internet, and receive an animation menu from the cloud server.
- the calculation module 10 also needs to determine whether the pushed animation menu is valid data.
- the push animation is considered.
- the menu is valid data; when the number of frames of the pushed animation menu is less than the preset number of frames, it is considered that the pushed animation menu is invalid data, that is, the animation menu pushed by the cloud server is an error, which is interference data.
- the preset number of frames can be set as needed, such as set to 10.
- the internal memory may be a DDR memory (Double Data Rate, Double Rate Synchronous Dynamic Random Access Memory).
- the external storage may be a USB flash drive or a hard disk or an SD card or a TF card or the like.
- the detecting module 20 can determine whether the smart TV is connected to the external memory by reading the level of the external interface corresponding to the external memory on the smart TV.
- the detecting module 20 is further configured to detect whether a level of the external interface corresponding to the external memory is a high level; if the level of the external interface corresponding to the external memory is a high level, determining that the access is External memory; if the level of the external interface corresponding to the external memory is low, it is determined that the external memory is not connected.
- the external interface can It is a USB interface, an SD card interface or a TF card interface. In an embodiment, when the level of the read USB interface is high, it is determined that the smart TV is connected to the USB flash drive.
- the selection module 40 first calculates the storage space required for the animation menu, and can calculate by reading the width and height of the single frame image in the animation menu, and multiplying the width of the single frame by the width. Get the size of a single frame, and then multiply the size of the single frame by the number of frames in the animation menu to get the space C required for the animation menu.
- the space C required to calculate the animation menu is 118M.
- the determining module 30 calculates the available space of the internal memory. Specifically, the total physical storage space of the internal memory and the storage space occupied by the system are first obtained, and then calculated according to the total object storage space of the internal memory and the storage space occupied by the system.
- the total physical storage space of the internal memory is 128M, and the storage space occupied by the system is 60M, then the available space to the internal memory can be calculated to be 68M; in another embodiment, the total physicality of the internal memory The storage space is 512M, and the storage space occupied by the system is 60M, then the available space to the internal memory can be calculated to be 452M.
- the determining module 30 determines whether the available space of the internal memory is greater than or equal to the storage space required by the animation menu to determine the selected memory sequence timing menu frame synthesis module 50 or the Flash multi-storage synthesis module 60 to process the cloud-driven animation menu.
- the available space of the internal memory is greater than or equal to the storage space required by the animation menu, it is considered that the animation menu can be processed by the memory sequential timing menu frame synthesis module 50, and the available space in the internal memory is smaller than that required by the animation menu.
- the space is stored, it is considered that the animation menu can be processed by the Flash multi-storage synthesis module 60.
- the available space of the internal memory is 452M, and the storage space required by the animation menu is 118M, so that the available space of the internal memory is determined to be larger than the size of the animation menu, and the memory sequential timing menu frame synthesis module is selected. 50 handles the animation menu.
- the available space of the internal memory is 68M, and the storage space required by the animation menu is 118M, that is, the available space of the internal memory is smaller than the storage space required by the animation menu, and then the Flash multi-storage is selected.
- the region synthesis module 60 processes the animation menu.
- the memory sequential timing menu frame synthesis module 50 is configured to time the animation menu. The order is displayed one by one on the screen;
- the Flash multi-storage synthesis module 60 is configured to sequentially store each video frame in the animation menu into each frame buffer area, and store the difference portion of the video frames in the respective frame buffer areas into the composite frame buffer. And synthesizing the difference between the video frames stored in the composite frame buffer area, generating a composite frame, and displaying the composite frame on the screen.
- the memory sequential timing menu frame synthesizing module 50 arranges each video frame in the animation menu in chronological order. If the animation menu includes 60 frames of video frames, the video frames in the received animation menu are sequentially performed in the order of receiving. The number is numbered from 1 to 60. The number 1 corresponds to the first received video frame, and the number 60 corresponds to the last received video frame. After the numbering is completed, the start flag is set to 1, and then the numbered video frame is followed. The chronological order is displayed one by one on the screen.
- the flash multi-storage synthesis module 60 sequentially stores each video frame in the animation menu into each frame buffer area.
- the animation menu corresponds to 60 frame buffer areas.
- Each frame of video frame corresponds to a frame buffer area.
- video frame 1 is stored in frame buffer area 1
- video frame 2 is stored in frame buffer area 2
- video frame 3 is stored in frame buffer area 3, and so on.
- Video frame 60 is stored in frame buffer 60.
- the flash multi-storage synthesis module 60 stores the difference in the video frames in each frame buffer area into the composite frame buffer area, specifically, compares the video frames saved in the frame buffer area 1 to the frame buffer area 60. Determining the difference between each video frame, storing the difference between the respective video frames in the composite frame buffer area, that is, in this step, comparing the red, green and blue pixel gains of the respective video frames, and each video frame The portion where the red, green, and blue pixel gains differ is stored in the composite frame buffer. The portion where the difference between the respective video frames is the portion where the difference between the red, green and blue pixel gains between the respective video frames is not zero.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
本发明涉及电视机领域,尤其涉及一种基于智能电视的动画菜单的处理方法及装置。The present invention relates to the field of televisions, and in particular, to a method and apparatus for processing an animation menu based on a smart television.
目前,智能电视的应用越来越广泛,其功能也越来越强大。智能电视除了可以观看直播节目外,还可实现点播、游戏、浏览照片、阅读文档等功能。云端服务器向智能电视推送动画菜单,智能电视机先将这些动画菜单缓存在内部存储器中,然后再将缓存的动画菜单播放出来。但是,在现有技术中,由于智能电视的内部存储器容量有限(容量通常较小,如为256M),在该内部存储器中有很大一部分空间需要用来存储系统文件,剩余较小的空间存储云端服务器推送的动画菜单,而云端服务器向该智能电视推送的动画菜单通常为高帧率的动画菜单,因此,无法将从云端服务器接收的动画菜单完整的保存到内部存储器中,将导致小内存智能电视不支持云端推送的帧率高的动画菜单的问题。At present, the application of smart TV is more and more extensive, and its functions are becoming more and more powerful. In addition to watching live programs, smart TVs can also perform functions such as on-demand, games, browsing photos, and reading documents. The cloud server pushes the animation menu to the smart TV. The smart TV first caches the animation menus in the internal memory, and then plays the cached animation menu. However, in the prior art, since the internal memory capacity of the smart TV is limited (the capacity is usually small, such as 256M), a large part of the space in the internal memory needs to be used for storing system files, and the remaining small space is stored. The animation menu pushed by the cloud server, and the animation menu pushed by the cloud server to the smart TV is usually a high frame rate animation menu. Therefore, the animation menu received from the cloud server cannot be completely saved into the internal memory, which will result in small memory. Smart TV does not support the problem of animated menus with high frame rates for cloud push.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种基于智能电视的动画菜单的处理方法及装置,旨在解决现有技术中,小内存智能电视不支持云端推送的帧率高的动画菜单的问题。The main object of the present invention is to provide a method and a device for processing an animation menu based on a smart TV, which aims to solve the problem that the small memory smart TV does not support the animation menu with high frame rate of the cloud push in the prior art.
为实现上述目的,本发明提供一种基于智能电视的动画菜单的处理方法,该方法包括:To achieve the above object, the present invention provides a method for processing an animation menu based on a smart TV, the method comprising:
在侦测到云端推送的动画菜单时,计算所述动画菜单所需占用的存储空间;When detecting an animation menu pushed by the cloud, calculating a storage space required for the animation menu;
侦测是否接入有外部存储器;Detect whether an external memory is connected;
若接入有外部存储器,则判断内部存储器的可用空间是否大于或等于动 画菜单所需占用的存储空间;If external memory is connected, it is determined whether the available space of the internal memory is greater than or equal to The storage space required to draw the menu;
若所述内部存储器的可用空间大于或等于动画菜单所需占用的存储空间,则选择内存顺序定时菜单帧合成模块处理动画菜单;所述内存顺序定时菜单帧合成模块将所述动画菜单按照时间顺序一张一张显示在屏幕上;If the available space of the internal memory is greater than or equal to the storage space required by the animation menu, selecting a memory sequential timing menu frame synthesis module to process the animation menu; the memory sequential timing menu frame synthesis module chronologically the animation menu Displayed one by one on the screen;
若所述内部存储器的可用空间小于动画菜单所需占用的存储空间,则选择Flash多存储区合成模块处理动画菜单;其中,If the available space of the internal memory is smaller than the storage space required by the animation menu, the Flash multi-storage synthesis module is selected to process the animation menu; wherein
所述Flash多存储区合成模块处理动画菜单包括:The processing of the animation menu by the Flash multi-storage synthesis module includes:
所述Flash多存储区合成模块将所述动画菜单中的各个视频帧依次存储到各个帧缓存区中;The Flash multi-storage synthesis module sequentially stores each video frame in the animation menu into each frame buffer area;
所述Flash多存储区合成模块将所述各个帧缓存区中的视频帧中存在差异的部分存储到合成帧缓存区;The Flash multi-storage synthesis module stores a portion of the video frame in the frame buffer area that is different from the video frame in the composite frame buffer area;
所述Flash多存储区合成模块将所述合成帧缓存区中存储的视频帧中存在差异的部分进行合成,生成合成帧,并将所述合成帧显示在屏幕上。The Flash multi-storage synthesis module synthesizes the portions of the video frames stored in the composite frame buffer to generate a composite frame, and displays the composite frame on the screen.
优选地,所述外部存储器是U盘或硬盘。Preferably, the external memory is a USB flash drive or a hard disk.
优选地,侦测是否接入有外部存储器的步骤包括:Preferably, the step of detecting whether the external memory is accessed includes:
侦测外部存储器对应的外部接口的电平是否为高电平;Detecting whether the level of the external interface corresponding to the external memory is high;
若所述外部存储器对应的外部接口的电平为高电平,则确定接入有外部存储器。If the level of the external interface corresponding to the external memory is high, it is determined that an external memory is accessed.
此外,为实现上述目的,本发明还提供一种基于智能电视的动画菜单的处理方法,该方法包括:In addition, in order to achieve the above object, the present invention also provides a method for processing an animation menu based on a smart TV, the method comprising:
在侦测到云端推送的动画菜单时,计算所述动画菜单所需占用的存储空间;When detecting an animation menu pushed by the cloud, calculating a storage space required for the animation menu;
侦测是否接入有外部存储器;Detect whether an external memory is connected;
若接入有外部存储器,则判断内部存储器的可用空间是否大于或等于动画菜单所需占用的存储空间;If an external memory is connected, it is determined whether the available space of the internal memory is greater than or equal to the storage space required by the animation menu;
若所述内部存储器的可用空间大于或等于动画菜单所需占用的存储空间,则选择内存顺序定时菜单帧合成模块处理动画菜单;If the available space of the internal memory is greater than or equal to the storage space required by the animation menu, select the memory sequential timing menu frame synthesis module to process the animation menu;
若所述内部存储器的可用空间小于动画菜单所需占用的存储空间,则选择Flash多存储区合成模块处理动画菜单。 If the available space of the internal memory is smaller than the storage space required by the animation menu, the Flash multi-storage synthesis module is selected to process the animation menu.
优选地,选择内存顺序定时菜单帧合成模块处理动画菜单的步骤之后,该方法还包括:Preferably, after the step of selecting the memory sequential timing menu frame synthesis module to process the animation menu, the method further includes:
所述内存顺序定时菜单帧合成模块将所述动画菜单按照时间顺序一张一张显示在屏幕上。The memory sequential timing menu frame synthesis module displays the animation menus one by one on the screen in chronological order.
优选地,所述选择Flash多存储区合成模块处理动画菜单的步骤之后,该方法还包括:Preferably, after the step of selecting the Flash multi-storage synthesis module to process the animation menu, the method further includes:
所述Flash多存储区合成模块将所述动画菜单中的各个视频帧依次存储到各个帧缓存区中;The Flash multi-storage synthesis module sequentially stores each video frame in the animation menu into each frame buffer area;
所述Flash多存储区合成模块将所述各个帧缓存区中的视频帧中存在差异的部分存储到合成帧缓存区;The Flash multi-storage synthesis module stores a portion of the video frame in the frame buffer area that is different from the video frame in the composite frame buffer area;
所述Flash多存储区合成模块将所述合成帧缓存区中存储的视频帧中存在差异的部分进行合成,生成合成帧,并将所述合成帧显示在屏幕上。The Flash multi-storage synthesis module synthesizes the portions of the video frames stored in the composite frame buffer to generate a composite frame, and displays the composite frame on the screen.
优选地,所述外部存储器是U盘或硬盘。Preferably, the external memory is a USB flash drive or a hard disk.
优选地,侦测是否接入有外部存储器的步骤包括:Preferably, the step of detecting whether the external memory is accessed includes:
侦测外部存储器对应的外部接口的电平是否为高电平;Detecting whether the level of the external interface corresponding to the external memory is high;
若所述外部存储器对应的外部接口的电平为高电平,则确定接入有外部存储器。If the level of the external interface corresponding to the external memory is high, it is determined that an external memory is accessed.
此外,为实现上述目的,本发明还提供一种基于智能电视的动画菜单的处理装置,该装置包括:In addition, in order to achieve the above object, the present invention further provides a processing device for an animation menu based on a smart TV, the device comprising:
计算模块,用于在侦测到云端推送的动画菜单时,计算所述动画菜单所需占用的存储空间;a calculation module, configured to calculate a storage space required by the animation menu when detecting an animation menu pushed by the cloud;
侦测模块,用于侦测是否接入有外部存储器;a detecting module, configured to detect whether an external memory is connected;
判断模块,用于在接入有外部存储器时,判断内部存储器的可用空间是否大于或等于动画菜单所需占用的存储空间;a judging module, configured to determine, when the external memory is accessed, whether the available space of the internal memory is greater than or equal to a storage space required by the animation menu;
选择模块,用于在所述内部存储器的可用空间大于或等于动画菜单所需占用的存储空间时,选择内存顺序定时菜单帧合成模块处理动画菜单;及用于在所述内部存储器的可用空间小于动画菜单所需占用的存储空间时,选择Flash多存储区合成模块处理动画菜单。a selection module, configured to: when the available space of the internal memory is greater than or equal to a storage space required by the animation menu, select a memory sequential timing menu frame synthesis module to process the animation menu; and use less space available in the internal memory When the storage space required for the animation menu is occupied, select the Flash multi-storage synthesis module to process the animation menu.
优选地,所述内存顺序定时菜单帧合成模块用于将所述动画菜单按照时 间顺序一张一张显示在屏幕上。优选地,所述Flash多存储区合成模块,用于将所述动画菜单中的各个视频帧依次存储到各个帧缓存区中;并将所述各个帧缓存区中的视频帧中存在差异的部分存储到合成帧缓存区;及将所述合成帧缓存区中存储的视频帧中存在差异的部分进行合成,生成合成帧,并将所述合成帧显示在屏幕上。Preferably, the memory sequential timing menu frame synthesis module is configured to time the animation menu The order is displayed one by one on the screen. Preferably, the flash multi-storage synthesis module is configured to sequentially store each video frame in the animation menu into each frame buffer area; and compare the difference between the video frames in the respective frame buffer areas. Storing to the composite frame buffer area; and synthesizing the portions of the video frames stored in the composite frame buffer area to generate a composite frame, and displaying the composite frame on the screen.
优选地,所述外部存储器是U盘或硬盘。Preferably, the external memory is a USB flash drive or a hard disk.
优选地,所述侦测模块,还用于侦测外部存储器对应的外部接口的电平是否为高电平;若所述外部存储器对应的外部接口的电平为高电平,则确定接入有外部存储器。Preferably, the detecting module is further configured to detect whether a level of the external interface corresponding to the external memory is a high level; if the level of the external interface corresponding to the external memory is a high level, determining the access There is external memory.
本发明的基于智能电视的动画菜单的处理方法及装置,在侦测到云端推送的动画菜单时,计算所述动画菜单所需占用的存储空间;侦测是否接入有外部存储器;若接入有外部存储器,则判断内部存储器的可用空间是否大于或等于动画菜单所需占用的存储空间;若所述内部存储器的可用空间大于或等于动画菜单所需占用的存储空间,则选择内存顺序定时菜单帧合成模块处理动画菜单;若所述内部存储器的可用空间小于动画菜单所需占用的存储空间,则选择Flash多存储区合成模块处理动画菜单;可避免小内存智能电视不支持云端推送的帧率高的动画菜单的问题。The method and device for processing the animation menu based on the smart TV of the present invention, when detecting the animation menu pushed by the cloud, calculating the storage space required by the animation menu; detecting whether an external memory is accessed; If there is an external memory, it is determined whether the available space of the internal memory is greater than or equal to the storage space required by the animation menu; if the available space of the internal memory is greater than or equal to the storage space required by the animation menu, the memory sequential timing menu is selected. The frame synthesis module processes the animation menu; if the available space of the internal memory is smaller than the storage space required by the animation menu, the Flash multi-storage synthesis module is selected to process the animation menu; the frame rate of the cloud-free push that the small memory smart TV does not support is avoided. High animated menu issues.
图1为本发明基于智能电视的动画菜单的处理方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a method for processing an animation menu based on a smart television according to the present invention;
图2为本发明基于智能电视的动画菜单的处理方法第二实施例的流程示意图;2 is a schematic flow chart of a second embodiment of a method for processing an animation menu based on a smart television according to the present invention;
图3为本发明基于智能电视的动画菜单的处理装置的一实施例的结构示意图。FIG. 3 is a schematic structural diagram of an embodiment of a processing device for an animation menu based on a smart TV according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参照图1,图1为本发明基于智能电视的动画菜单的处理方法第一实施例的流程示意图,该方法应用于智能电视中,该方法包括:1 is a schematic flowchart of a first embodiment of a method for processing an animation menu based on a smart TV. The method is applied to a smart television. The method includes:
S10、在侦测到云端推送的动画菜单时,计算该动画菜单所需占用的存储空间。S10. When detecting the animation menu of the cloud push, calculate the storage space required for the animation menu.
可通过移动网络或互联网连接云端服务器,从云端服务器接收动画菜单。在该步骤中,在侦测到云端推送的动画菜单时,还需判断推送的动画菜单是否为有效数据,当推送的动画菜单的帧数大于或等于预设帧数时,则认为该推送的动画菜单是有效数据;当推送的动画菜单的帧数小于预设帧数时,则认为推送的动画菜单是无效数据,即云端服务器推送的动画菜单错误,是干扰数据。该预设帧数可根据需要设置,如设置为10。The cloud server can be connected via a mobile network or the Internet to receive an animated menu from the cloud server. In this step, when detecting the animation menu of the cloud push, it is also necessary to determine whether the pushed animation menu is valid data. When the number of frames of the pushed animation menu is greater than or equal to the preset number of frames, the push is considered The animation menu is valid data; when the number of frames of the pushed animation menu is less than the preset number of frames, it is considered that the pushed animation menu is invalid data, that is, the animation menu pushed by the cloud server is an error, which is interference data. The preset number of frames can be set as needed, such as set to 10.
S20、侦测是否接入有外部存储器,若接入有外部存储器,则执行步骤S30。S20. Detect whether an external memory is connected. If an external memory is connected, step S30 is performed.
该外部存储器可以是U盘或硬盘或SD卡或TF卡等。The external storage may be a USB flash drive or a hard disk or an SD card or a TF card or the like.
可通过读取智能电视上的外部存储器对应的外部接口的电平情况确定该智能电视是否连接外部存储器。可选的,该侦测是否接入有外部存储器的步骤包括:侦测外部存储器对应的外部接口的电平是否为高电平;若该外部存储器对应的外部接口的电平为高电平,则确定接入有外部存储器;若该外部存储器对应的外部接口的电平为低电平,则确定未接入外部存储器。该外部接口可以是USB接口、SD卡接口或TF卡接口。在一实施例中,当读取到USB接口的电平为高电平时,则确定该智能电视已连接U盘。Whether the smart TV is connected to the external memory can be determined by reading the level of the external interface corresponding to the external memory on the smart TV. Optionally, the step of detecting whether the external memory is connected is: detecting whether the level of the external interface corresponding to the external memory is a high level; if the level of the external interface corresponding to the external memory is a high level, Then, it is determined that the external memory is accessed; if the level of the external interface corresponding to the external memory is low, it is determined that the external memory is not connected. The external interface can be a USB interface, an SD card interface, or a TF card interface. In an embodiment, when the level of the read USB interface is high, it is determined that the smart TV is connected to the USB flash drive.
S30、判断内部存储器的可用空间是否大于或等于动画菜单所需占用的存储空间,若该内部存储器的可用空间大于或等于动画菜单所需占用的存储空间,则执行步骤S40,若该内部存储器的可用空间小于动画菜单所需占用的存储空间,则执行步骤S50。S30. Determine whether the available space of the internal memory is greater than or equal to the storage space required by the animation menu. If the available space of the internal memory is greater than or equal to the storage space required by the animation menu, perform step S40, if the internal memory If the available space is smaller than the storage space required for the animation menu, step S50 is performed.
该内部存储器可以是DDR存储器(Double Data Rate,双倍速率同步动态随机存储器)。The internal memory may be a DDR memory (Double Data Rate, Double Rate Synchronous Dynamic Random Access Memory).
在该步骤中,计算动画菜单的所需占用的存储空间,可通过以下方式计算:读取动画菜单中的单张帧画面的宽和高,将单张帧画面的宽乘以高得到单张帧的大小,然后将单张帧的大小乘以动画菜单中的帧数,得到动画菜单 所需占用的空间C,具体公式如下:C=w*h*t,其中w表示单张帧的宽,h表示单张帧的高,t表示帧数。在一实施例中,该w为1920,h为1080,t为60,则可计算得到动画菜单的所需占用的空间C为118M。In this step, calculating the required storage space of the animation menu can be calculated by reading the width and height of the single frame picture in the animation menu, and multiplying the width of the single frame by a single sheet. The size of the frame, then multiply the size of the single frame by the number of frames in the animation menu to get the animated menu The space C required to be occupied is as follows: C=w*h*t, where w represents the width of a single frame, h represents the height of a single frame, and t represents the number of frames. In an embodiment, the w is 1920, h is 1080, and t is 60. The space C required to calculate the animation menu is 118M.
在该步骤中,计算内部存储器的可用空间,具体的,先获取该内部存储器的总共物理存储空间,及系统占用的存储空间,再根据该内部存储器的总共物体存储空间和系统占用的存储空间,计算得到该内部存储器的可用空间D0,通过以下公式计算:D0=D1-D2,其中,D1表示内部存储器的总共物理存储空间,D2表示系统占用的存储空间。在一实施例中,该内部存储器的总共物理存储空间为128M,系统占用的存储空间为60M,则可计算到内部存储器的可用空间为68M;在另一实施例中,该内部存储器的总共物理存储空间为512M,系统占用的存储空间为60M,则可计算到内部存储器的可用空间为452M。In this step, the available space of the internal memory is calculated. Specifically, the total physical storage space of the internal memory and the storage space occupied by the system are first acquired, and then according to the total object storage space of the internal memory and the storage space occupied by the system. The available space D 0 of the internal memory is calculated and calculated by the following formula: D 0 = D 1 - D 2 , where D 1 represents the total physical storage space of the internal memory, and D 2 represents the storage space occupied by the system. In one embodiment, the total physical storage space of the internal memory is 128M, and the storage space occupied by the system is 60M, then the available space to the internal memory can be calculated to be 68M; in another embodiment, the total physicality of the internal memory The storage space is 512M, and the storage space occupied by the system is 60M, then the available space to the internal memory can be calculated to be 452M.
在该步骤中,判断内部存储器的可用空间是否大于或等于动画菜单所需占用的存储空间,以确定选择内存顺序定时菜单帧合成模块或Flash多存储区合成模块对云端推送的动画菜单进行处理,在该内部存储器的可用空间大于或等于动画菜单所需占用的存储空间时,则认为可由内存顺序定时菜单帧合成模块处理动画菜单,在该内部存储器的可用空间小于动画菜单所需占用的存储空间时,则认为可由Flash多存储区合成模块处理动画菜单。在一实施例中,该内部存储器的可用空间为452M,该动画菜单所需占用的存储空间为118M,则可以确定该内部存储器的可用空间大于动画菜单的大小,选择内存顺序定时菜单帧合成模块处理动画菜单。在另一实施例中,该内部存储器的可用空间为为68M,该动画菜单所需占用的存储空间为118M,即内部存储器的可用空间小于动画菜单所需占用的存储空间,则选择Flash多存储区合成模块处理动画菜单。In this step, it is determined whether the available space of the internal memory is greater than or equal to the storage space required by the animation menu to determine whether to select the memory sequential timing menu frame synthesis module or the Flash multi-storage synthesis module to process the animation menu pushed by the cloud. When the available space of the internal memory is greater than or equal to the storage space required by the animation menu, it is considered that the animation menu can be processed by the memory sequential timing menu frame synthesis module, and the available space in the internal memory is smaller than the storage space required by the animation menu. At that time, it is considered that the animation menu can be processed by the Flash multi-storage synthesis module. In an embodiment, the available space of the internal memory is 452M, and the storage space required by the animation menu is 118M, so that the available space of the internal memory is determined to be larger than the size of the animation menu, and the memory sequential timing menu frame synthesis module is selected. Process animation menus. In another embodiment, the available space of the internal memory is 68M, and the storage space required by the animation menu is 118M, that is, the available space of the internal memory is smaller than the storage space required by the animation menu, and then the Flash multi-storage is selected. The zone synthesis module processes the animation menu.
S40、选择内存顺序定时菜单帧合成模块处理动画菜单。S40. Selecting a memory sequence timing menu frame synthesis module processes the animation menu.
S50、选择Flash多存储区合成模块处理动画菜单。S50. Select a Flash multi-storage synthesis module to process the animation menu.
采用上述实施例,在侦测到云端推送的动画菜单时,计算该动画菜单所需占用的存储空间;侦测是否接入有外部存储器;若接入有外部存储器,则判断内部存储器的可用空间是否大于或等于动画菜单所需占用的存储空间;若该内部存储器的可用空间大于或等于动画菜单所需占用的存储空间,则选 择内存顺序定时菜单帧合成模块处理动画菜单;若该内部存储器的可用空间小于动画菜单所需占用的存储空间,则选择Flash多存储区合成模块处理动画菜单;可避免小内存智能电视不支持云端推送的帧率高的动画菜单的问题。In the above embodiment, when the animation menu of the cloud push is detected, the storage space required for the animation menu is calculated; whether the external memory is detected is detected; if the external memory is accessed, the available space of the internal memory is determined. Whether it is greater than or equal to the storage space required by the animation menu; if the available space of the internal memory is greater than or equal to the storage space required by the animation menu, then Selecting the memory sequence timing menu frame synthesis module to process the animation menu; if the available space of the internal memory is smaller than the storage space required by the animation menu, then selecting the Flash multi-storage synthesis module to process the animation menu; avoiding the small memory smart TV does not support the cloud The problem of pushing animated menus with high frame rates.
参照图2,图2为本发明基于智能电视的动画菜单的处理方法的第二实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for processing an animation menu based on a smart television according to the present invention.
基于上述智能电视的动画菜单的处理方法的第一实施例,在步骤S40之后,该方法还包括:S60、该内存顺序定时菜单帧合成模块将该动画菜单按照时间顺序一张一张显示在屏幕上。在步骤S50之后,该方法还包括:S70、该Flash多存储区合成模块将该动画菜单中的各个视频帧依次存储到各个帧缓存区中;S80、该Flash多存储区合成模块将该各个帧缓存区中的视频帧中存在差异的部分存储到合成帧缓存区;S90、该Flash多存储区合成模块将该合成帧缓存区中存储的视频帧中存在差异的部分进行合成,生成合成帧,并将该合成帧显示在屏幕上。Based on the first embodiment of the processing method of the animation menu of the smart TV, after the step S40, the method further includes: S60, the memory sequential timing menu frame synthesizing module displays the animation menu one by one on the screen in chronological order on. After the step S50, the method further includes: S70, the flash multi-storage synthesizing module sequentially stores each video frame in the animation menu into each frame buffer area; S80, the flash multi-storage area synthesizing module The difference between the video frames in the buffer area is stored in the composite frame buffer area; S90, the Flash multi-storage area synthesizing module synthesizes the difference between the video frames stored in the composite frame buffer area to generate a composite frame. And display the composite frame on the screen.
由于内部存储器刷新荧幕速度为ms级,图片刷新频繁,智能电视系统刷新荧幕时间快,因此可将内部存储器中保存的视频帧一张一张的显示到荧幕上。在该步骤S60中,该内存顺序定时菜单帧合成模块对动画菜单中的各个视频帧按照时间顺序进行排列,如该动画菜单包括60帧视频帧,则按照接收的先后顺序依次对接收的动画菜单中的视频帧进行编号,如从1到60进行编号,编号1对应最先接收的视频帧,编号60对应最后接收的视频帧;在编号完成后,将启动标识位设置为1,然后将编号后的视频帧按照时间顺序一张一张显示在屏幕上。Since the internal memory refresh screen speed is ms level, the picture refresh is frequent, and the smart TV system refreshes the screen time quickly, so the video frames saved in the internal memory can be displayed one by one on the screen. In the step S60, the memory sequential timing menu frame synthesizing module arranges the video frames in the animation menu in chronological order. If the animation menu includes 60 frames of video frames, the received animation menus are sequentially received according to the order of receiving. The video frames in the number are numbered, such as from 1 to 60, the number 1 corresponds to the first received video frame, and the number 60 corresponds to the last received video frame; after the numbering is completed, the start flag is set to 1, and then the number is The subsequent video frames are displayed one by one on the screen in chronological order.
在步骤S70中,该Flash多存储区合成模块将该动画菜单中的各个视频帧依次存储到各个帧缓存区中,如当该动画菜单中包括60帧视频帧时,则该动画菜单对应有60个帧缓存区,每一帧视频帧对应一个帧缓存区,如,视频帧1保存在帧缓存区1中,视频帧2保存在帧缓存区2中,视频帧3保存在帧缓存区3中,依次类推,视频帧60保存在帧缓存区60中。In step S70, the flash multi-storage synthesis module sequentially stores each video frame in the animation menu into each frame buffer area. For example, when the animation menu includes 60 frames of video frames, the animation menu corresponds to 60 Each frame of video buffer corresponds to one frame buffer area. For example, video frame 1 is stored in frame buffer area 1, video frame 2 is stored in frame buffer area 2, and video frame 3 is stored in frame buffer area 3. And, by analogy, the video frame 60 is stored in the frame buffer 60.
在步骤S80中,该Flash多存储区合成模块将该各个帧缓存区中的视频帧中存在差异的部分存储到合成帧缓存区,具体的,对帧缓存区1到帧缓存区60中保存的视频帧进行比较,确定各个视频帧之间的差异,将各个视频帧之 间存在差异的部分存储到合成帧缓存区,即在该步骤中,对各个视频帧的红绿蓝像素增益进行比较,将各个视频帧中红绿蓝像素增益存在差异的部分存储到合成帧缓存区。各个视频帧之间存在差异的部分为各个视频帧之间红绿蓝像素增益的差值不为0的部分。In step S80, the Flash multi-storage synthesis module stores the difference in the video frame in each frame buffer area into the composite frame buffer area, specifically, the frame buffer area 1 to the frame buffer area 60. Video frames are compared to determine the difference between each video frame, and each video frame is The difference between the parts is stored in the composite frame buffer area, that is, in this step, the red, green and blue pixel gains of the respective video frames are compared, and the difference between the red, green and blue pixel gains in each video frame is stored in the composite frame buffer. Area. The portion where the difference between the respective video frames is the portion where the difference between the red, green and blue pixel gains between the respective video frames is not zero.
参照图3,图3为本发明基于智能电视的动画菜单的处理装置的一实施例的结构示意图,该装置应用于智能电视中,该装置包括:Referring to FIG. 3, FIG. 3 is a schematic structural diagram of an embodiment of a processing device for an animation menu based on a smart television, which is applied to a smart television, and the device includes:
计算模块10,用于在侦测到云端推送的动画菜单时,计算该动画菜单所需占用的存储空间;The calculating module 10 is configured to calculate a storage space required for the animation menu when detecting an animation menu pushed by the cloud;
侦测模块20,用于侦测是否接入有外部存储器;The detecting module 20 is configured to detect whether an external memory is connected;
判断模块30,用于在接入有外部存储器时,判断内部存储器的可用空间是否大于或等于动画菜单所需占用的存储空间;The determining module 30 is configured to determine, when the external memory is accessed, whether the available space of the internal memory is greater than or equal to a storage space required by the animation menu;
选择模块40,用于在该内部存储器的可用空间大于或等于动画菜单所需占用的存储空间时,选择内存顺序定时菜单帧合成模块50处理动画菜单;及用于在该内部存储器的可用空间小于动画菜单所需占用的存储空间时,选择Flash多存储区合成模块60处理动画菜单。The selection module 40 is configured to: when the available space of the internal memory is greater than or equal to the storage space required by the animation menu, select the memory sequential timing menu frame synthesis module 50 to process the animation menu; and the available space for the internal memory is less than When the storage space required for the animation menu is occupied, the Flash multi-storage synthesis module 60 is selected to process the animation menu.
智能电视的动画菜单的处理装置可通过移动网络或互联网连接云端服务器,从云端服务器接收动画菜单。该计算模块10在侦测到云端推送的动画菜单时,还需判断推送的动画菜单是否为有效数据,当推送的动画菜单的帧数大于或等于预设帧数时,则认为该推送的动画菜单是有效数据;当推送的动画菜单的帧数小于预设帧数时,则认为推送的动画菜单是无效数据,即云端服务器推送的动画菜单错误,是干扰数据。该预设帧数可根据需要设置,如设置为10。The processing device of the animation menu of the smart TV can connect to the cloud server through the mobile network or the Internet, and receive an animation menu from the cloud server. When the animation module of the cloud push is detected, the calculation module 10 also needs to determine whether the pushed animation menu is valid data. When the number of frames of the pushed animation menu is greater than or equal to the preset number of frames, the push animation is considered. The menu is valid data; when the number of frames of the pushed animation menu is less than the preset number of frames, it is considered that the pushed animation menu is invalid data, that is, the animation menu pushed by the cloud server is an error, which is interference data. The preset number of frames can be set as needed, such as set to 10.
该内部存储器可以是DDR存储器(Double Data Rate,双倍速率同步动态随机存储器)。该外部存储器可以是U盘或硬盘或SD卡或TF卡等。The internal memory may be a DDR memory (Double Data Rate, Double Rate Synchronous Dynamic Random Access Memory). The external storage may be a USB flash drive or a hard disk or an SD card or a TF card or the like.
该侦测模块20可通过读取智能电视上的外部存储器对应的外部接口的电平情况确定该智能电视是否连接外部存储器。可选的,该侦测模块20还用于侦测外部存储器对应的外部接口的电平是否为高电平;若该外部存储器对应的外部接口的电平为高电平,则确定接入有外部存储器;若该外部存储器对应的外部接口的电平为低电平,则确定未接入外部存储器。该外部接口可以 是USB接口、SD卡接口或TF卡接口。在一实施例中,当读取到USB接口的电平为高电平时,则确定该智能电视已连接U盘。The detecting module 20 can determine whether the smart TV is connected to the external memory by reading the level of the external interface corresponding to the external memory on the smart TV. Optionally, the detecting module 20 is further configured to detect whether a level of the external interface corresponding to the external memory is a high level; if the level of the external interface corresponding to the external memory is a high level, determining that the access is External memory; if the level of the external interface corresponding to the external memory is low, it is determined that the external memory is not connected. The external interface can It is a USB interface, an SD card interface or a TF card interface. In an embodiment, when the level of the read USB interface is high, it is determined that the smart TV is connected to the USB flash drive.
选择模块40该判断模块30先计算动画菜单的所需占用的存储空间,可通过以下方式计算:读取动画菜单中的单张帧画面的宽和高,将单张帧画面的宽乘以高得到单张帧的大小,然后将单张帧的大小乘以动画菜单中的帧数,得到动画菜单的所需占用的空间C,具体公式如下:C=w*h*t,其中w表示单张帧的宽,h表示单张帧的高,t表示帧数。在一实施例中,该w为1920,h为1080,t为60,则可计算得到动画菜单的所需占用的空间C为118M。The selection module 40 first calculates the storage space required for the animation menu, and can calculate by reading the width and height of the single frame image in the animation menu, and multiplying the width of the single frame by the width. Get the size of a single frame, and then multiply the size of the single frame by the number of frames in the animation menu to get the space C required for the animation menu. The specific formula is as follows: C=w*h*t, where w represents a single The width of the frame, h represents the height of a single frame, and t represents the number of frames. In an embodiment, the w is 1920, h is 1080, and t is 60. The space C required to calculate the animation menu is 118M.
该判断模块30计算内部存储器的可用空间,具体的,先获取该内部存储器的总共物理存储空间,及系统占用的存储空间,再根据该内部存储器的总共物体存储空间和系统占用的存储空间,计算得到该内部存储器的可用空间D0,通过以下公式计算:D0=D1-D2,其中,D1表示内部存储器的总共物理存储空间,D2表示系统占用的存储空间。在一实施例中,该内部存储器的总共物理存储空间为128M,系统占用的存储空间为60M,则可计算到内部存储器的可用空间为68M;在另一实施例中,该内部存储器的总共物理存储空间为512M,系统占用的存储空间为60M,则可计算到内部存储器的可用空间为452M。The determining module 30 calculates the available space of the internal memory. Specifically, the total physical storage space of the internal memory and the storage space occupied by the system are first obtained, and then calculated according to the total object storage space of the internal memory and the storage space occupied by the system. The available space D0 of the internal memory is obtained by the following formula: D 0 = D 1 - D 2 , where D 1 represents the total physical storage space of the internal memory, and D 2 represents the storage space occupied by the system. In one embodiment, the total physical storage space of the internal memory is 128M, and the storage space occupied by the system is 60M, then the available space to the internal memory can be calculated to be 68M; in another embodiment, the total physicality of the internal memory The storage space is 512M, and the storage space occupied by the system is 60M, then the available space to the internal memory can be calculated to be 452M.
该判断模块30判断内部存储器的可用空间是否大于或等于动画菜单所需占用的存储空间,以确定选择内存顺序定时菜单帧合成模块50或Flash多存储区合成模块60对云端推送的动画菜单进行处理,在该内部存储器的可用空间大于或等于动画菜单所需占用的存储空间时,则认为可由内存顺序定时菜单帧合成模块50处理动画菜单,在该内部存储器的可用空间小于动画菜单所需占用的存储空间时,则认为可由Flash多存储区合成模块60处理动画菜单。在一实施例中,该内部存储器的可用空间为452M,该动画菜单所需占用的存储空间为118M,则可以确定该内部存储器的可用空间大于动画菜单的大小,选择内存顺序定时菜单帧合成模块50处理动画菜单。在另一实施例中,该内部存储器的可用空间为为68M,该动画菜单所需占用的存储空间为118M,即内部存储器的可用空间小于动画菜单所需占用的存储空间,则选择Flash多存储区合成模块60处理动画菜单。The determining module 30 determines whether the available space of the internal memory is greater than or equal to the storage space required by the animation menu to determine the selected memory sequence timing menu frame synthesis module 50 or the Flash multi-storage synthesis module 60 to process the cloud-driven animation menu. When the available space of the internal memory is greater than or equal to the storage space required by the animation menu, it is considered that the animation menu can be processed by the memory sequential timing menu frame synthesis module 50, and the available space in the internal memory is smaller than that required by the animation menu. When the space is stored, it is considered that the animation menu can be processed by the Flash multi-storage synthesis module 60. In an embodiment, the available space of the internal memory is 452M, and the storage space required by the animation menu is 118M, so that the available space of the internal memory is determined to be larger than the size of the animation menu, and the memory sequential timing menu frame synthesis module is selected. 50 handles the animation menu. In another embodiment, the available space of the internal memory is 68M, and the storage space required by the animation menu is 118M, that is, the available space of the internal memory is smaller than the storage space required by the animation menu, and then the Flash multi-storage is selected. The region synthesis module 60 processes the animation menu.
进一步的,该内存顺序定时菜单帧合成模块50用于将该动画菜单按照时 间顺序一张一张显示在屏幕上;Further, the memory sequential timing menu frame synthesis module 50 is configured to time the animation menu. The order is displayed one by one on the screen;
该Flash多存储区合成模块60,用于将该动画菜单中的各个视频帧依次存储到各个帧缓存区中;并将该各个帧缓存区中的视频帧中存在差异的部分存储到合成帧缓存区;及将该合成帧缓存区中存储的视频帧中存在差异的部分进行合成,生成合成帧,并将该合成帧显示在屏幕上。The Flash multi-storage synthesis module 60 is configured to sequentially store each video frame in the animation menu into each frame buffer area, and store the difference portion of the video frames in the respective frame buffer areas into the composite frame buffer. And synthesizing the difference between the video frames stored in the composite frame buffer area, generating a composite frame, and displaying the composite frame on the screen.
由于内部存储器刷新荧幕速度为ms级,图片刷新频繁,智能电视系统刷新荧幕时间快,因此可将内部存储器中保存的视频帧一张一张的显示到荧幕上。该内存顺序定时菜单帧合成模块50对动画菜单中的各个视频帧按照时间顺序进行排列,如该动画菜单包括60帧视频帧,则按照接收的先后顺序依次对接收的动画菜单中的视频帧进行编号,如从1到60进行编号,编号1对应最先接收的视频帧,编号60对应最后接收的视频帧;在编号完成后,将启动标识位设置为1,然后将编号后的视频帧按照时间顺序一张一张显示在屏幕上。Since the internal memory refresh screen speed is ms level, the picture refresh is frequent, and the smart TV system refreshes the screen time quickly, so the video frames saved in the internal memory can be displayed one by one on the screen. The memory sequential timing menu frame synthesizing module 50 arranges each video frame in the animation menu in chronological order. If the animation menu includes 60 frames of video frames, the video frames in the received animation menu are sequentially performed in the order of receiving. The number is numbered from 1 to 60. The number 1 corresponds to the first received video frame, and the number 60 corresponds to the last received video frame. After the numbering is completed, the start flag is set to 1, and then the numbered video frame is followed. The chronological order is displayed one by one on the screen.
该Flash多存储区合成模块60将该动画菜单中的各个视频帧依次存储到各个帧缓存区中,如当该动画菜单中包括60帧视频帧时,则该动画菜单对应有60个帧缓存区,每一帧视频帧对应一个帧缓存区,如,视频帧1保存在帧缓存区1中,视频帧2保存在帧缓存区2中,视频帧3保存在帧缓存区3中,依次类推,视频帧60保存在帧缓存区60中。The flash multi-storage synthesis module 60 sequentially stores each video frame in the animation menu into each frame buffer area. For example, when the animation menu includes 60 frames of video frames, the animation menu corresponds to 60 frame buffer areas. Each frame of video frame corresponds to a frame buffer area. For example, video frame 1 is stored in frame buffer area 1, video frame 2 is stored in frame buffer area 2, video frame 3 is stored in frame buffer area 3, and so on. Video frame 60 is stored in frame buffer 60.
该Flash多存储区合成模块60将该各个帧缓存区中的视频帧中存在差异的部分存储到合成帧缓存区,具体的,对帧缓存区1到帧缓存区60中保存的视频帧进行比较,确定各个视频帧之间的差异,将各个视频帧之间存在差异的部分存储到合成帧缓存区,即在该步骤中,对各个视频帧的红绿蓝像素增益进行比较,将各个视频帧中红绿蓝像素增益存在差异的部分存储到合成帧缓存区。各个视频帧之间存在差异的部分为各个视频帧之间红绿蓝像素增益的差值不为0的部分。The flash multi-storage synthesis module 60 stores the difference in the video frames in each frame buffer area into the composite frame buffer area, specifically, compares the video frames saved in the frame buffer area 1 to the frame buffer area 60. Determining the difference between each video frame, storing the difference between the respective video frames in the composite frame buffer area, that is, in this step, comparing the red, green and blue pixel gains of the respective video frames, and each video frame The portion where the red, green, and blue pixel gains differ is stored in the composite frame buffer. The portion where the difference between the respective video frames is the portion where the difference between the red, green and blue pixel gains between the respective video frames is not zero.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
Claims (17)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201511027532.5 | 2015-12-30 | ||
| CN201511027532.5A CN105578264B (en) | 2015-12-30 | 2015-12-30 | Method and device for processing animation menu based on smart TV |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017113593A1 true WO2017113593A1 (en) | 2017-07-06 |
Family
ID=55887853
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/084433 Ceased WO2017113593A1 (en) | 2015-12-30 | 2016-06-02 | Method and apparatus for processing animation menu based on smart television |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105578264B (en) |
| WO (1) | WO2017113593A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112788352A (en) * | 2019-11-01 | 2021-05-11 | 海信电子科技(深圳)有限公司 | Live broadcast time shifting method, terminal and storage medium |
| CN118900341A (en) * | 2024-07-04 | 2024-11-05 | 广州鲸旗网络科技有限公司 | Animation memory caching method, system, device and storage medium |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105578264B (en) * | 2015-12-30 | 2019-03-01 | 深圳Tcl数字技术有限公司 | Method and device for processing animation menu based on smart TV |
| CN106790466B (en) * | 2016-12-09 | 2020-10-27 | 华为技术有限公司 | Method, server and terminal device for push |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103986933A (en) * | 2014-04-24 | 2014-08-13 | 小米科技有限责任公司 | Dynamic picture displaying method and device |
| US20140244896A1 (en) * | 2013-02-26 | 2014-08-28 | Seagate Technology Llc | Data Update Management in a Cloud Computing Environment |
| CN104182355A (en) * | 2014-08-29 | 2014-12-03 | 广州华多网络科技有限公司 | Method and device for memory allocation |
| CN104394453A (en) * | 2014-11-21 | 2015-03-04 | 深圳市华宝电子科技有限公司 | Video prerecording method and device |
| CN105578264A (en) * | 2015-12-30 | 2016-05-11 | 深圳Tcl数字技术有限公司 | Method and device for processing animation menu based on smart television |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1741589A (en) * | 2004-08-11 | 2006-03-01 | 四川长虹电器股份有限公司 | Television capable of conducting data communication with external memory |
| CN101990072A (en) * | 2009-08-03 | 2011-03-23 | 康佳集团股份有限公司 | Method and equipment for realizing television menu |
| CN103152627B (en) * | 2013-03-15 | 2016-08-03 | 华为终端有限公司 | Set Top Box lapse data storage method, device and Set Top Box |
-
2015
- 2015-12-30 CN CN201511027532.5A patent/CN105578264B/en active Active
-
2016
- 2016-06-02 WO PCT/CN2016/084433 patent/WO2017113593A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140244896A1 (en) * | 2013-02-26 | 2014-08-28 | Seagate Technology Llc | Data Update Management in a Cloud Computing Environment |
| CN103986933A (en) * | 2014-04-24 | 2014-08-13 | 小米科技有限责任公司 | Dynamic picture displaying method and device |
| CN104182355A (en) * | 2014-08-29 | 2014-12-03 | 广州华多网络科技有限公司 | Method and device for memory allocation |
| CN104394453A (en) * | 2014-11-21 | 2015-03-04 | 深圳市华宝电子科技有限公司 | Video prerecording method and device |
| CN105578264A (en) * | 2015-12-30 | 2016-05-11 | 深圳Tcl数字技术有限公司 | Method and device for processing animation menu based on smart television |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112788352A (en) * | 2019-11-01 | 2021-05-11 | 海信电子科技(深圳)有限公司 | Live broadcast time shifting method, terminal and storage medium |
| CN112788352B (en) * | 2019-11-01 | 2023-04-25 | Vidaa(荷兰)国际控股有限公司 | Live broadcast time shifting method, terminal and storage medium |
| CN118900341A (en) * | 2024-07-04 | 2024-11-05 | 广州鲸旗网络科技有限公司 | Animation memory caching method, system, device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105578264A (en) | 2016-05-11 |
| CN105578264B (en) | 2019-03-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9237322B2 (en) | Systems and methods for performing selective video rendering | |
| CN107103890B (en) | The method and apparatus of application is shown on fixed-direction display | |
| US20120162227A1 (en) | Method of Picture Display and Device Thereof | |
| TW201349852A (en) | Image processing apparatus and image processing method | |
| WO2019085598A1 (en) | Method and apparatus for calculating above-the-fold rendering duration of page, and electronic device | |
| WO2017113593A1 (en) | Method and apparatus for processing animation menu based on smart television | |
| US20150161756A1 (en) | Image processing device, and non-transitory computer-readable storage medium storing image processing program | |
| US20210211559A1 (en) | Method and apparatus for making ghosting special effect for movie, and electronic device and medium | |
| TWI717317B (en) | Method and device for taking screenshot of display image of display device | |
| WO2016155378A1 (en) | Video playing method and apparatus in application program | |
| WO2015161809A1 (en) | Picture splitting method and apparatus, and picture loading method and apparatus | |
| US20150172705A1 (en) | Window detection device and method on multi-media system | |
| CN111757180A (en) | Video display control device, video display system, video display method and device | |
| CN107657587A (en) | Image processing method, apparatus and system | |
| WO2017101414A1 (en) | Android platform-based multimedia playing method and device, and mobile terminal device | |
| CN114598893A (en) | Text video realization method and system, electronic device, storage medium | |
| US11170574B2 (en) | Method and apparatus for generating a navigation guide | |
| WO2017096800A1 (en) | Method and device for regulating captions of video | |
| WO2016202306A1 (en) | Video processing method and device | |
| WO2017024954A1 (en) | Method and device for image display | |
| CN114140574B (en) | Method and device for generating three-dimensional virtual model | |
| CN105791941A (en) | Display method and device for ultra-high-definition OSD menu | |
| US10032435B2 (en) | Accelerated image gradient based on one-dimensional data | |
| US9456165B2 (en) | Display apparatus and display method | |
| CN103474049A (en) | Image processing apparatus and image processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16880401 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.11.2018) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16880401 Country of ref document: EP Kind code of ref document: A1 |