Data display method and device

A data and monitoring data technology, applied in the field of communication and Internet, can solve problems such as system or application crash, small buffer area, and poor data display effect

Active Publication Date: 2013-09-11
XIAOMI INC
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present invention discloses a data display method and device to solve the problem that the cache area is too small, the data display effect is not good, the cache area cannot play the role of cache, and the cache area is too large to easily cause the system or application program to crash

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data display method and device
  • Data display method and device
  • Data display method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] A data presentation method disclosed in the embodiment of the present invention is introduced in detail.

[0045] refer to figure 1 , shows a flowchart of a data presentation method in an embodiment of the present invention.

[0046] Step 100, initially setting the cache threshold of the data cache area.

[0047] The above step 100 may set the cache threshold of the data cache area used for data presentation in the initialization phase of data presentation.

[0048] Data display refers to the presentation and display of data. According to different data types, the data presentation can also be divided into different cases, for example, when the data is an audio or video file, the data presentation can be audio playback or video playback.

[0049] Wherein, the cache threshold may be a ratio of the capacity of an area in the data cache for caching data to the capacity of the data cache.

[0050] For example, during initialization, you can set the capacity of the data ...

Embodiment 2

[0056] A data presentation method disclosed in the embodiment of the present invention is introduced in detail.

[0057] refer to figure 2 , shows a flowchart of a data presentation method in an embodiment of the present invention.

[0058] Step 200, initially setting the cache threshold of the data cache area.

[0059] The cache threshold may be a ratio of the capacity of an area in the data cache for caching data to the capacity of the data cache.

[0060] Preferably, the above step 200 may include:

[0061] Sub-step 2001, monitor the ratio of the remaining physical memory to the total system memory.

[0062] Wherein, the above-mentioned total system memory may be all physical memory of the system where the above-mentioned data display is located, and the above-mentioned remaining physical memory may be free physical memory in the system where the above-mentioned data display is located.

[0063] For example, the system structure sysinfo can be generated, the memory str...

Embodiment 3

[0083] A data presentation method disclosed in the embodiment of the present invention is introduced in detail.

[0084] In this embodiment of the present invention, video data is taken as an example to introduce a data presentation method.

[0085] refer to image 3 , shows a flowchart of a method for playing video data in an embodiment of the present invention.

[0086] Step 300, initialize the video data buffer size of the video player.

[0087] For the same video player, the size of the video data buffer area may be fixed. For example, the video data buffer size of the initialized video player is 100M.

[0088] Step 302, setting the cache threshold of the video data cache.

[0089] Preferably, a cache threshold of 50% may be selected by default. The cache threshold selected by default can be set according to actual needs.

[0090] Preferably, the above step 302 can also be:

[0091] Set the cache threshold of the video data buffer according to the memory usage.

[...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

An embodiment of the invention discloses a data display method and device and aims to solve the problems that buffer caches are too small to buffer, data display is poor in effect and crash of the system or application programs are prone to causing by too large buffer caches. The data display method includes: initializing a cache threshold value of a buffer cache; monitoring memory usage to adjust the cache threshold value of the data buffer cache during display, wherein the cache threshold value is the ratio of the regional capacity used for caching data in the data buffer cache to the capacity of the data buffer cache. By the data display method and device, memory usage can be monitored in real time, the cache threshold value of the buffer cache can be adjusted according to the usage conditions. When the system has large memory space, the cache threshold value can be adjusted to be high, and data display effect can be improved. On the contrary, when the system has limited memory space, the cache threshold value can be decreased, and risk in crash of the system or application programs can be reduced.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of communication, and also to the technical field of the Internet, and in particular, to a data presentation method and device. Background technique [0002] With the increasing popularity of network terminal devices such as mobile phones and set-top boxes, the basic network environment is getting better and better. The third-generation mobile communication technology (3rd-Generation, 3G) network and home wireless network are widely used, and the demand for playing network video on network terminal equipment is also increasing. [0003] Network video playback is different from local video playback. Network video playback requires data caching on the terminal device. Caching a part of the network video before playing it can bring a better playback experience and reduce errors caused by poor network conditions. Problem with playing lag. [0004] The memory capacity of terminal equip...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30G06F9/44
Inventor 丁晓亮
Owner XIAOMI INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products