Method and device for loading pictures during java application

A java layer and image technology, applied in the field of set-top boxes, can solve problems such as wasting time, wasting memory, and inconvenience, and achieve the effect of efficiently loading images, improving efficiency, and reducing the work of application personnel

Inactive Publication Date: 2010-06-09
SHENZHEN COSHIP ELECTRONICS CO LTD
View PDF0 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The inventor finds that there are two disadvantages in the above-mentioned existing solutions during the implementation process. First, the existing solutions read the image data to the java layer through the java method, and then pass the data to the C layer through native, which not only wastes time, but also A waste of memory; secondly, the existing solutions do not solve how to

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
  • Method and device for loading pictures during java application
  • Method and device for loading pictures during java application
  • Method and device for loading pictures during java application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The embodiment of the present invention provides a method and device for loading pictures in a java application. By obtaining the absolute path of storing the jar application package, directly decompress the bottom layer of the C language and find the pictures to be loaded, which reduces the work of developers of set-top box applications. , To achieve efficient loading of pictures and improve efficiency.

[0027] An embedded java virtual machine is used in the set-top box, and the software of the set-top box is developed through the java language, especially when the middleware of the set-top box is developed, a java virtual machine is first embedded in the local set-top box, and a java application manager is deployed on the virtual machine. After the device downloads an application in the form of a jar application package from the network, for example: music.jar (music playback software), save it in the set-top box storage device, assuming the path is: / flash / music.jar.

[...

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

The invention provides a method for loading pictures during java application. The method comprises the following steps that: a java layer acquires an absolute path storing a jar application packet; the java layer transmits the acquired absolute path storing the jar application packet and a pre-written-in relative path for the pictures needing loading in the jar application packet into a C-language bottom layer; after acquiring the absolute path storing the jar application packet, the C-language bottom layer decompresses and unpacks the jar application packet, finds corresponding pictures according to the relative path for the pictures needing loading in the jar application packet and reads out binary data of the pictures in a cache; and the C-language bottom layer calls an graphics engine, constructs the pictures according to the binary data of the pictures and decodes the pictures for displaying. Correspondingly, the invention also provides a device for loading the pictures during the java application so as to realize efficient picture loading and improve the efficiency while lightening the workload of personnel developing set-top box application.

Description

Technical field [0001] The invention relates to the field of set-top boxes, and in particular to a method and device for loading pictures in a java application. Background technique [0002] At present, the use of embedded java virtual machine has become popular on set-top boxes. Java is a programming language released by Sun company. Set-top box software is developed through java language, especially set-top box middleware. Java programming has its unique advantages, such as: platform independent Performance, security, rich and complete packages, strong scalability, etc., but the use of java in embedded systems also has some disadvantages, especially performance issues. Compared with the traditional set-top box software developed in C language, the effect of java running on the set-top box is slower. Let’s take an example here. Load image resources. In traditional C language development, the image resources will be stored in binary format. C language directly It can be displaye...

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
IPC IPC(8): H04N5/00G06F9/445
Inventor 胡华涛
Owner SHENZHEN COSHIP ELECTRONICS CO LTD
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