CN104133796A - Method and device for coding and decoding image in smart mobile terminal LK - Google Patents

Method and device for coding and decoding image in smart mobile terminal LK Download PDF

Info

Publication number
CN104133796A
CN104133796A CN201410403841.7A CN201410403841A CN104133796A CN 104133796 A CN104133796 A CN 104133796A CN 201410403841 A CN201410403841 A CN 201410403841A CN 104133796 A CN104133796 A CN 104133796A
Authority
CN
China
Prior art keywords
file
character
compressed file
original image
logo
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.)
Granted
Application number
CN201410403841.7A
Other languages
Chinese (zh)
Other versions
CN104133796B (en
Inventor
杨新勤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410403841.7A priority Critical patent/CN104133796B/en
Publication of CN104133796A publication Critical patent/CN104133796A/en
Application granted granted Critical
Publication of CN104133796B publication Critical patent/CN104133796B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a method for coding and decoding image in a smart mobile terminal LK. The method is applied to smart mobile terminals. The method comprises the following steps that (1) all original images which need to be displayed on a start-up interface are compressed through a compression algorithm; (2) a data structure containing the resolution ratio and size information of the compressed images is stored and written into a file of a specified format together with the compressed image data; (3) the file of the specified format is written into a LOGO partition; (4) as the LK is started, the file of the specified format in the LOGO partition is read; (5) LOGO images are uncompressed through an uncompressing algorithm; (6) the uncompressed images are displayed on the start-up interface. According to the method, the start-up LOGO images are coded and decoded in the LK, the restriction on the capacity and space of the LOGO partition can be remarkably broken, disk space is saved, display of the start-up LOGO images are accelerated, and user experience is improved.

Description

Method and the device of encoding and decoding picture in a kind of intelligent mobile terminal LK
Technical field
The present invention relates to the technical field of intelligent mobile terminal application technology, particularly method and the device of encoding and decoding picture in a kind of intelligent mobile terminal LK.
Background technology
In order to show better brand image, each mobile phone manufacturing enterprise all can be in mobile phone power-on, shows the LOGO of own company, and conventionally in the start-up course of whole mobile phone, the loading of LOGO completes in LK.Because LK is a little kernel (little kernel), do not possess the ability of the picture formats such as decoding PNG, JPEG, BMP, in LK, picture is all deposited with RAW form.The picture of RAW form is the original image of uncompressed, and a pixel is by tri-color component direct representations of RGB.In the time that the resolution of screen is smaller, LOGO picture is to be directly kept in LK, but in the time that screen resolution increases to 1920*1080, the size of individual picture has just reached 6M.The normally 10M of maximum size of LK firmware at present, if while needing in LK to retain more than 2 or 2 pictures, will exceed the space constraint of LK, causes LK correctly to compile.
Present most of mobile phone is all the screen of 1080P, and boot LOGO generally comprises startup LOGO, the LOGO of shutdown charging etc. of normal startup LOGO, Fastboot pattern, and all pictures are added up and exceeded for a long time 10M.The way of part producer is that LOGO picture is left in the mass storage of mobile phone at present, by a LOGO subregion of special establishment in mass storage, is used for preserving LOGO picture.
In mass storage, the size of LOGO subregion is generally 8M, in the later stage of mobile phone development, if need to increase LOGO picture, will cause the size of LOGO subregion still not enough, and this carries out dilatation again just need to LOGO partition size.The size of amendment disk partition, need to format whole file system, and the data that at this moment user preserves in storage system all can be lost, and this is that very bad user experiences.Even if LOGO subregion capacity is increased to 16M or 24M, also always have not enough one day, as the mobile phone of later development 4K screen, individual picture has just reached 24M, and the contradiction that how to overcome the growth of giant-screen mobile phone power-on LOGO picture size and limited LOGO subregion capacity is current intelligent mobile terminal application technical matters urgently to be resolved hurrily.
Summary of the invention
The shortcoming that the object of the invention is to overcome prior art is with not enough, the method of encoding and decoding picture in a kind of intelligent mobile terminal LK is provided, the method is by the picture of compression RAW form, and be kept in LOGO subregion, in start, LK reads the image data compression from LOGO subregion, after decompression by LOGO Image Display in starting-up interface.
Another object of the present invention is to provide the device of encoding and decoding picture in a kind of intelligent mobile terminal LK.
First object of the present invention is achieved through the following technical solutions:
A method for encoding and decoding picture in intelligent mobile terminal LK, is applied in intelligent mobile terminal equipment, it is characterized in that, comprises the following steps:
S1, all original images that need to show in starting-up interface of use compression algorithm compression;
S2, the data structure that comprises compressed picture resolution and size information is saved, write in the file of specified format together with the view data after compression in step S1;
S3, the file of specified format is write in LOGO subregion;
In S4, the process that starts at LK, read the file of specified format in LOGO subregion;
S5, use decompression algorithm, decompress(ion) LOGO picture;
S6, in starting-up interface, show the picture after decompress(ion).
Preferably, the original image in described step S1 is the picture of raw form.
Preferably, the compression algorithm in described step S1 specifically comprises the following steps:
S11, open the original image of raw form that needs compression with read-only mode, definition counter variable count initial value assignment are 0, definition character variable old initial value assignment are 0, and definition character variable new initial value assignment are 0, then create and open compressed file with read-write mode;
S12, from original image file, read a character, leave in character variable new;
If S13 character variable new equals end-of-file mark EOF, go to step S110, otherwise enter step S14;
S14, judge whether counter variable count equals 0, if equal 0, enter step S15, otherwise enter step S16;
S15, in compressed file, write character variable new, simultaneously by character variable new assignment to character variable old, counter variable count is added to 1 automatically, then forward step S12 to;
S16, judge whether character variable new equals character variable old, if be not equal to, enter step S17, otherwise enter step S18;
S17, in compressed file, write counter variable count, and then write character variable new, character variable new assignment, to character variable old, is set to 1 by counter variable count simultaneously, then forward step S12 to;
S18, counter variable count is added to 1, if counter variable count equals 255, enter step S19, otherwise forward step S12 to;
S19, in compressed file, write counter variable count, then counter variable count is set to 0, then forward step S12 to;
S110, in compressed file, write counter variable count;
S111, close original image file and compressed file.
Preferably, the file of the specified format in described step S2 is the binary file of bin form.
Preferably, the decompression algorithm in described step S5 specifically comprises the following steps:
S51, open compressed file with read-only mode, definition character variable ch initial value assignment are 0, and in internal memory, apply for an internal memory, and the start address of this piece internal memory is logo_address;
S52, from compressed file, read in a character, leave in character variable ch;
S53, judge whether character variable ch equals end-of-file mark EOF, if so, goes to step S57, otherwise go to step S54;
S54, from compressed file, read in a character, leave in counter variable count_1;
S55, judge whether counter variable count_1 equals 0, if equal 0, go to step S52, otherwise go to step S56;
In S56, the memory block that is logo_address toward start address, write character variable ch, then the value of memory address logo_address adds 1 automatically, and counter variable count_1 subtracts 1 automatically, then skips to step S55;
S57, closes compression file.
Preferably, described intelligent mobile terminal comprises mobile phone, notebook computer, panel computer and palm equipment for surfing the net.
Another object of the present invention is achieved through the following technical solutions:
A device for encoding and decoding picture in intelligent mobile terminal LK, is applied in intelligent mobile terminal equipment, comprises lower array apparatus:
Original image compression set, this device uses all original images that need to show in starting-up interface of compression algorithm compression;
File encapsulation save set, this device, for the data structure that comprises compressed picture resolution and size information is saved, writes in the file of specified format together with the view data after the compression of original image compression set;
Subregion writing station, this device is for writing LOGO subregion by the file of specified format;
Document reading apparatus, in the process that this device starts at LK, reads the file of specified format in LOGO subregion;
Original image decompressing device, this device uses decompression algorithm, the original LOGO picture of decompress(ion);
Original image display device, this device is for showing the picture after decompress(ion) at starting-up interface.
Preferably, the original image in described original image compression set is the picture of raw form.
Preferably, in described original image compression set, specifically comprise again lower array apparatus:
Picture compression apparatus for initializing, this device is for opening the original image of the raw form that needs compression with read-only mode, definition counter variable count initial value assignment are 0, definition character variable old initial value assignment are 0, definition character variable new initial value assignment are 0, then create and open compressed file with read-write mode;
Original image document reading apparatus, this device, for reading a character from original image file, leaves in character variable new;
Original image end-of-file mark recognition device, this device is used for judging whether character variable new equals end-of-file mark EOF;
Counter variable count the first judgment means, this device is used for judging whether counter variable count equals 0;
Compressed file the first writing station, this device is for writing character variable new toward compressed file, simultaneously by character variable new assignment to character variable old, counter variable count is added to 1 automatically, then forward original image document reading apparatus to;
Character variable new judgment means, this device is used for judging whether character variable new equals character variable old;
Compressed file the second writing station, this device is for writing counter variable count toward compressed file, and then writes character variable new, by character variable new assignment to character variable old, counter variable count is set to 1 simultaneously, then forwards original image document reading apparatus to;
Counter variable count the second judgment means, this device, for counter variable count is added to 1, judges whether counter variable count equals 255, if judgement equals to enter compressed file the 3rd writing station, otherwise forwards original image document reading apparatus to;
Compressed file the 3rd writing station, this device, for writing counter variable count toward compressed file, is then set to 0 by counter variable count, then forwards original image document reading apparatus to;
Compressed file the 4th writing station, this device is for writing counter variable count toward compressed file;
Picture compression finishes device, and this device is used for closing original image file and compressed file.
Preferably, the file of the specified format in described file encapsulation save set is the binary file of bin form.
Preferably, in described original image decompressing device, specifically comprise lower array apparatus:
Picture decompression initialization device, this device is for opening compressed file with read-only mode, and definition character variable ch initial value assignment are 0, and in internal memory, apply for an internal memory, and the start address of this piece internal memory is logo_address;
Compressed file the first reading device, this device, for reading in a character from compressed file, leaves in character variable ch;
Compressed file end mark EOF recognition device, this device is used for identifying to judge whether character variable ch equals end-of-file mark EOF, if so, goes to compressed file stopping device, otherwise goes to compressed file the second reading device;
Compressed file the second reading device, this device, for reading in a character from compressed file, leaves in counter variable count_1;
Counter variable count_1 judgment means, this device is used for judging whether counter variable count_1 equals 0, if equal 0, goes to compressed file the first reading device, otherwise goes to internal memory writing station;
Internal memory writing station, this device writes character variable ch for the memory block that is logo_address toward start address, then the value of memory address logo_address adds 1 automatically, and counter variable count_1 subtracts 1 automatically, then skips to counter variable count_1 judgment means;
Compressed file stopping device, this device is for closes compression file.
Preferably, described intelligent mobile terminal comprises mobile phone, notebook computer, panel computer and palm equipment for surfing the net.
The present invention has following advantage and effect with respect to prior art:
1, the present invention, by the start logo picture approach of compressed and decompressed original RAW form, can overcome the restriction of LOGO subregion volume space significantly, saves disk space.
2, the method for encoding and decoding boot LOGO picture in LK disclosed by the invention, can also accelerate the demonstration of boot LOGO picture, promotes user and experiences.
Brief description of the drawings
Fig. 1 is the method flow diagram of encoding and decoding picture in a kind of intelligent mobile terminal LK in the present invention;
Fig. 2 is the flow chart of steps of compression algorithm in the present invention;
Fig. 3 is the flow chart of steps of decompression algorithm in the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited to this.
Embodiment mono-
The present embodiment discloses the method for encoding and decoding picture in a kind of intelligent mobile terminal LK, by encoding and decoding boot LOGO picture this picture of decoding in LK, overcome the restriction of LOGO subregion volume space, saved disk space, the method is applied in intelligent mobile terminals such as comprising mobile phone, notebook computer, panel computer and palm equipment for surfing the net.
As shown in the method flow diagram of encoding and decoding picture in a kind of intelligent mobile terminal LK of the present invention in Fig. 1, the method concrete steps are as follows:
Step 1, compress all pictures that need to show in starting-up interface, compression algorithm is shown in Fig. 2.
[algorithm idea: the original image file original.raw that 1, first opens the raw picture format that needs compression.2, read the data of a byte, leave in character variable new, and it is deposited in compress.raw compressed file, to character variable old, be 1 counter variable count assignment character variable new value assignment simultaneously.3, read in next byte, leave in character variable new, if character variable new equals character variable old, just counter variable count is added to 1, if unequal, just counter variable count is written in compressed file compress.raw, and then character variable new is also written in compressed file compress.raw.Repeat, until the end of file so always.The content of compressed file is two tuples of (new, count) form.】
[explain: in an image file, it is all the same having a lot of continuous data, need to record like this value of first data and the number of data and just can reach the object of compression.For example { 255,255,255,255,255,255,110,110,110,210,210,210,210,210,210} can be compressed into it that { 255,6,110,3,210,6}, sequence originally takies 15 bytes, only accounts for 6 bytes after compression a sequence.
The first step: open the original image file original.raw of the Rraw picture format that needs compression in " read-only " mode, counter variable count is set to 0, character variable old assignment is 0, opens compressed file compress.raw in " read-write " mode;
Second step: read a character (run through rear file pointer and automatically add 1) from source file (original.raw file), leave in character variable new;
The 3rd step: if character variable new equals end-of-file mark EOF, turn the tenth step, otherwise enter the 4th step;
The 4th step: judge whether counter variable count equals 0, if equal 0, enter the 5th step, otherwise enter the 6th step;
The 5th step: in compressed file compress.raw file, write character variable new (write rear file pointer and automatically add 1), simultaneously by character variable new assignment to character variable old, counter variable count is set to 1, then forward second step to;
The 6th step: judge whether character variable new equals character variable old, if be not equal to, enter the 7th step, otherwise enter the 8th step;
The 7th step: write counter variable count (write rear file pointer and automatically add 1) in compressed file compress.raw, and then write character variable new (write rear file pointer and automatically add 1), by character variable new assignment to character variable old, counter variable count is set to 1 simultaneously, finally forwards second step to;
The 8th step: counter variable count is added to 1, if counter variable count equals 255, enter the 9th step, otherwise forward second step to;
The 9th step: write counter variable count (write rear file pointer and automatically add 1) in compressed file compress.raw file, then counter variable count is set to 0, finally forward second step to;
The tenth step: write counter variable count in compressed file compress.raw file;
The 11 step: close the raw image files original.raw and the compressed file compress.raw that open.】
Step 2, the data structure that comprises compressed picture resolution and size information is saved, together with the view data after compression in step 1, write together in LOGO.bin file.
Step 3, LOGO.bin file is write in LOGO subregion.
Step 4, LK start process in, read LOGO subregion.
Step 5, use decompression algorithm, decompress(ion) LOGO picture, decompression algorithm is shown in figure-2.
[algorithm idea: 1, read compressed file compress.raw.2, read in the data of a byte, its value is character variable ch.3, read in the data of next byte, its value is counter variable count.4, in the region of memory of specifying, write continuously count ch.5, repeat 2,3,4 steps, until the end of file.】
[explain: in conjunction with compression algorithm above, the algorithm of decompression is exactly an inverse process: first read first character variable ch, then read second counter variable count, that is to say that ch character has occurred count time.If the sequence after compression is that { 255,6,110,3,210,6} is exactly { 255,255,255,255,255,255,110,110,110,210,210,210,210,210,210} after decompressing so.
The first step: open compressed file compress.raw in " read-only " mode, apply for an internal memory in internal memory, start address is logo_address;
Second step: read in a character (run through rear file pointer and automatically add 1) from compressed file compress.raw, leave in character variable ch;
The 3rd step: judge whether character variable ch equals end-of-file mark EOF, if so, turn the 7th step, otherwise turn the 4th step;
The 4th step: read in a character (run through rear file pointer and automatically add 1) from compressed file compress.raw, leave in counter variable count;
The 5th step: judge whether counter variable count equals 0, if equal 0, turn second step, otherwise proceed to the 6th step;
The 6th step: write character variable ch (value that writes rear logo_address adds 1 automatically) in logo_address, counter variable count subtracts 1, then enters the 5th step;
The 7th step: finish, close the compressed file compress.raw opening.】
Step 6, in starting-up interface, show the picture after decompress(ion).
The present invention is by the picture of compression RAW form, and is kept in LOGO subregion, and in start, LK reads the image data compression from LOGO subregion, after decompression by LOGO Image Display in starting-up interface.After the compression method compression of this patent, can, the picture of 2560*1440 size, be compressed to 550K, and the picture size of former RAW form be 11M, ratio of compression is 20:1.
Embodiment bis-
The present embodiment discloses the device of encoding and decoding picture in a kind of intelligent mobile terminal LK, is applied in intelligent mobile terminal equipment, and described intelligent mobile terminal comprises mobile phone, notebook computer, panel computer and palm equipment for surfing the net, comprises lower array apparatus:
1, original image compression set, this device uses all original images that need to show in starting-up interface of compression algorithm compression, and wherein original image is the picture of raw form.
This device specifically comprises again lower array apparatus:
Picture compression apparatus for initializing, this device is for opening the original image of the raw form that needs compression with read-only mode, definition counter variable count initial value assignment are 0, definition character variable old initial value assignment are 0, definition character variable new initial value assignment are 0, then create and open compressed file with read-write mode;
Original image document reading apparatus, this device, for reading a character from original image file, leaves in character variable new;
Original image end-of-file mark recognition device, this device is used for judging whether character variable new equals end-of-file mark EOF;
Counter variable count the first judgment means, this device is used for judging whether counter variable count equals 0;
Compressed file the first writing station, this device is for writing character variable new toward compressed file, simultaneously by character variable new assignment to character variable old, counter variable count is added to 1 automatically, then forward original image document reading apparatus to;
Character variable new judgment means, this device is used for judging whether character variable new equals character variable old;
Compressed file the second writing station, this device is for writing counter variable count toward compressed file, and then writes character variable new, by character variable new assignment to character variable old, counter variable count is set to 1 simultaneously, then forwards original image document reading apparatus to;
Counter variable count the second judgment means, this device, for counter variable count is added to 1, judges whether counter variable count equals 255, if judgement equals to enter compressed file the 3rd writing station, reads dress otherwise forward original image file to;
Compressed file the 3rd writing station, this device, for writing counter variable count toward compressed file, is then set to 0 by counter variable count, then forwards original image document reading apparatus to;
Compressed file the 4th writing station, this device is for writing counter variable count toward compressed file;
Picture compression finishes device, and this device is used for closing original image file and compressed file.
2, file encapsulation save set, this device, for the data structure that comprises compressed picture resolution and size information is saved, writes in the file of specified format together with the view data after the compression of original image compression set; Wherein the file of specified format is the binary file of bin form.
3, subregion writing station, this device is for writing LOGO subregion by the file of specified format.
4, document reading apparatus, in the process that this device starts at LK, reads the file of specified format in LOGO subregion.
5, original image decompressing device, this device uses decompression algorithm, the original LOGO picture of decompress(ion).
This device specifically comprises again lower array apparatus:
Picture decompression initialization device, this device is for opening compressed file with read-only mode, and definition character variable ch initial value assignment are 0, and in internal memory, apply for an internal memory, and the start address of this piece internal memory is logo_address;
Compressed file the first reading device, this device, for reading in a character from compressed file, leaves in character variable ch;
Compressed file end mark EOF recognition device, this device is used for identifying to judge whether character variable ch equals end-of-file mark EOF, if so, goes to compressed file stopping device, otherwise goes to compressed file the second reading device;
Compressed file the second reading device, this device, for reading in a character from compressed file, leaves in counter variable count_1;
Counter variable count_1 judgment means, this device is used for judging whether counter variable count_1 equals 0, if equal 0, goes to compressed file the first reading device, otherwise goes to internal memory writing station;
Internal memory writing station, this device writes character variable ch for the memory block that is logo_address toward start address, then the value of memory address logo_address adds 1 automatically, and counter variable count_1 subtracts 1 automatically, then skips to counter variable count_1 judgment means;
Compressed file stopping device, this device is for closes compression file.
6, original image display device, this device is for showing the picture after decompress(ion) at starting-up interface.
It should be noted that in said apparatus embodiment, included modules and unit are just divided according to function logic, but are not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional module and unit also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Above-described embodiment is preferably embodiment of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under Spirit Essence of the present invention and principle, substitutes, combination, simplify; all should be equivalent substitute mode, within being included in protection scope of the present invention.

Claims (12)

1. a method for encoding and decoding picture in intelligent mobile terminal LK, is applied in intelligent mobile terminal equipment, it is characterized in that, comprises the following steps:
S1, all original images that need to show in starting-up interface of use compression algorithm compression;
S2, the data structure that comprises compressed picture resolution and size information is saved, write in the file of specified format together with the view data after compression in step S1;
S3, the file of specified format is write in LOGO subregion;
In S4, the process that starts at LK, read the file of specified format in LOGO subregion;
S5, use decompression algorithm, decompress(ion) LOGO picture;
S6, in starting-up interface, show the picture after decompress(ion).
2. the method for coding and decoding picture in a kind of intelligent mobile terminal LK according to claim 1, is characterized in that: the original image in described step S1 is the picture of raw form.
3. the method for coding and decoding picture in a kind of intelligent mobile terminal LK according to claim 2, is characterized in that, the compression algorithm in described step S1 specifically comprises the following steps:
S11, open the original image of raw form that needs compression with read-only mode, definition counter variable count initial value assignment are 0, definition character variable old initial value assignment are 0, and definition character variable new initial value assignment are 0, then create and open compressed file with read-write mode;
S12, from original image file, read a character, leave in character variable new;
If S13 character variable new equals end-of-file mark EOF, go to step S110, otherwise enter step S14;
S14, judge whether counter variable count equals 0, if equal 0, enter step S15, otherwise enter step S16;
S15, in compressed file, write character variable new, simultaneously by character variable new assignment to character variable old, counter variable count is added to 1 automatically, then forward step S12 to;
S16, judge whether character variable new equals character variable old, if be not equal to, enter step S17, otherwise enter step S18;
S17, in compressed file, write counter variable count, and then write character variable new, character variable new assignment, to character variable old, is set to 1 by counter variable count simultaneously, then forward step S12 to;
S18, counter variable count is added to 1, if counter variable count equals 255, enter step S19, otherwise forward step S12 to;
S19, in compressed file, write counter variable count, then counter variable count is set to 0, then forward step S12 to;
S110, in compressed file, write counter variable count;
S111, close original image file and compressed file.
4. the method for coding and decoding picture in a kind of intelligent mobile terminal LK according to claim 1, is characterized in that: the file of the specified format in described step S2 is the binary file of bin form.
5. the method for coding and decoding picture in a kind of intelligent mobile terminal LK according to claim 1, is characterized in that, the decompression algorithm in described step S5 specifically comprises the following steps:
S51, open compressed file with read-only mode, definition character variable ch initial value assignment are 0, and in internal memory, apply for an internal memory, and the start address of this piece internal memory is logo_address;
S52, from compressed file, read in a character, leave in character variable ch;
S53, judge whether character variable ch equals end-of-file mark EOF, if so, goes to step S57, otherwise go to step S54;
S54, from compressed file, read in a character, leave in counter variable count_1;
S55, judge whether counter variable count_1 equals 0, if equal 0, go to step S52, otherwise go to step S56;
In S56, the memory block that is logo_address toward start address, write character variable ch, then the value of memory address logo_address adds 1 automatically, and counter variable count_1 subtracts 1 automatically, then skips to step S55;
S57, closes compression file.
6. according to the method for coding and decoding picture in the arbitrary described a kind of intelligent mobile terminal LK of claim 1 to 5, it is characterized in that: described intelligent mobile terminal comprises mobile phone, notebook computer, panel computer and palm equipment for surfing the net.
7. a device for encoding and decoding picture in intelligent mobile terminal LK, is applied in intelligent mobile terminal equipment, it is characterized in that, comprises lower array apparatus:
Original image compression set, this device uses all original images that need to show in starting-up interface of compression algorithm compression;
File encapsulation save set, this device, for the data structure that comprises compressed picture resolution and size information is saved, writes in the file of specified format together with the view data after the compression of original image compression set;
Subregion writing station, this device is for writing LOGO subregion by the file of specified format;
Document reading apparatus, in the process that this device starts at LK, reads the file of specified format in LOGO subregion;
Original image decompressing device, this device uses decompression algorithm, the original LOGO picture of decompress(ion);
Original image display device, this device is for showing the picture after decompress(ion) at starting-up interface.
8. the device of coding and decoding picture in a kind of intelligent mobile terminal LK according to claim 7, is characterized in that: the original image in described original image compression set is the picture of raw form.
9. the device of coding and decoding picture in a kind of intelligent mobile terminal LK according to claim 8, is characterized in that, specifically comprises again lower array apparatus in described original image compression set:
Picture compression apparatus for initializing, this device is for opening the original image of the raw form that needs compression with read-only mode, definition counter variable count initial value assignment are 0, definition character variable old initial value assignment are 0, definition character variable new initial value assignment are 0, then create and open compressed file with read-write mode;
Original image document reading apparatus, this device, for reading a character from original image file, leaves in character variable new;
Original image end-of-file mark recognition device, this device is used for judging whether character variable new equals end-of-file mark EOF;
Counter variable count the first judgment means, this device is used for judging whether counter variable count equals 0;
Compressed file the first writing station, this device is for writing character variable new toward compressed file, simultaneously by character variable new assignment to character variable old, counter variable count is added to 1 automatically, then forward original image document reading apparatus to;
Character variable new judgment means, this device is used for judging whether character variable new equals character variable old;
Compressed file the second writing station, this device is for writing counter variable count toward compressed file, and then writes character variable new, by character variable new assignment to character variable old, counter variable count is set to 1 simultaneously, then forwards original image document reading apparatus to;
Counter variable count the second judgment means, this device, for counter variable count is added to 1, judges whether counter variable count equals 255, if judgement equals to enter compressed file the 3rd writing station, otherwise forwards original image document reading apparatus to;
Compressed file the 3rd writing station, this device, for writing counter variable count toward compressed file, is then set to 0 by counter variable count, then forwards original image document reading apparatus to;
Compressed file the 4th writing station, this device is for writing counter variable count toward compressed file;
Picture compression finishes device, and this device is used for closing original image file and compressed file.
10. the device of coding and decoding picture in a kind of intelligent mobile terminal LK according to claim 7, is characterized in that: the file of the specified format in described file encapsulation save set is the binary file of bin form.
In 11. a kind of intelligent mobile terminal LK according to claim 7, the device of coding and decoding picture, is characterized in that, specifically comprises lower array apparatus in described original image decompressing device:
Picture decompression initialization device, this device is for opening compressed file with read-only mode, and definition character variable ch initial value assignment are 0, and in internal memory, apply for an internal memory, and the start address of this piece internal memory is logo_address;
Compressed file the first reading device, this device, for reading in a character from compressed file, leaves in character variable ch;
Compressed file end mark EOF recognition device, this device is used for identifying to judge whether character variable ch equals end-of-file mark EOF, if so, goes to compressed file stopping device, otherwise goes to compressed file the second reading device;
Compressed file the second reading device, this device, for reading in a character from compressed file, leaves in counter variable count_1;
Counter variable count_1 judgment means, this device is used for judging whether counter variable count_1 equals 0, if equal 0, goes to compressed file the first reading device, otherwise goes to internal memory writing station;
Internal memory writing station, this device writes character variable ch for the memory block that is logo_address toward start address, then the value of memory address logo_address adds 1 automatically, and counter variable count_1 subtracts 1 automatically, then skips to counter variable count_1 judgment means;
Compressed file stopping device, this device is for closes compression file.
12. according to the device of coding and decoding picture in the arbitrary described a kind of intelligent mobile terminal LK of claim 7 to 11, it is characterized in that: described intelligent mobile terminal comprises mobile phone, notebook computer, panel computer and palm equipment for surfing the net.
CN201410403841.7A 2014-08-15 2014-08-15 The method and device of encoding and decoding picture in a kind of intelligent mobile terminal LK Expired - Fee Related CN104133796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410403841.7A CN104133796B (en) 2014-08-15 2014-08-15 The method and device of encoding and decoding picture in a kind of intelligent mobile terminal LK

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410403841.7A CN104133796B (en) 2014-08-15 2014-08-15 The method and device of encoding and decoding picture in a kind of intelligent mobile terminal LK

Publications (2)

Publication Number Publication Date
CN104133796A true CN104133796A (en) 2014-11-05
CN104133796B CN104133796B (en) 2017-08-25

Family

ID=51806476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410403841.7A Expired - Fee Related CN104133796B (en) 2014-08-15 2014-08-15 The method and device of encoding and decoding picture in a kind of intelligent mobile terminal LK

Country Status (1)

Country Link
CN (1) CN104133796B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912289A (en) * 2016-04-22 2016-08-31 青岛海信移动通信技术股份有限公司 Startup LOGO image conversion and storage method and apparatus, and startup LOGO image displaying method and apparatus
CN107015984A (en) * 2016-01-27 2017-08-04 希姆通信息技术(上海)有限公司 The method to set up and system of the boot LOGO of mobile terminal
CN112199001A (en) * 2020-09-28 2021-01-08 展讯半导体(南京)有限公司 Terminal startup display method and system, electronic equipment, storage medium and terminal
CN112631708A (en) * 2020-12-31 2021-04-09 展讯半导体(南京)有限公司 Picture display method and device, electronic equipment and storage medium
CN113326085A (en) * 2021-05-18 2021-08-31 翱捷科技股份有限公司 JPEG format picture display method and system based on LVGL
CN114911488A (en) * 2022-04-27 2022-08-16 北京计算机技术及应用研究所 UEFI (unified extensible firmware interface) firmware LOGO replacing and recovering method based on domestic processor platform
CN115098171A (en) * 2022-05-20 2022-09-23 智绘微电子科技(南京)有限公司 Method for optimizing picture compression processing in VBIOS

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398807A (en) * 2008-10-21 2009-04-01 北京无线恒远科技有限公司 Method and device for decompressing mobile terminal zip file
US20090284400A1 (en) * 2008-05-15 2009-11-19 International Business Machines Corporation Method and System for Reducing Required Storage During Decompression of a Compressed File

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090284400A1 (en) * 2008-05-15 2009-11-19 International Business Machines Corporation Method and System for Reducing Required Storage During Decompression of a Compressed File
CN101398807A (en) * 2008-10-21 2009-04-01 北京无线恒远科技有限公司 Method and device for decompressing mobile terminal zip file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
百度男: "《通过压缩图片来添加wince6.0的开机logo》", 《HTTP://WWW.VOIDCN.COM/BLOG/BAIDULUCKYBOY/ARTICLE/P-720472.HTML》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107015984A (en) * 2016-01-27 2017-08-04 希姆通信息技术(上海)有限公司 The method to set up and system of the boot LOGO of mobile terminal
CN107015984B (en) * 2016-01-27 2020-06-23 希姆通信息技术(上海)有限公司 Method and system for setting startup LOGO of mobile terminal
CN105912289A (en) * 2016-04-22 2016-08-31 青岛海信移动通信技术股份有限公司 Startup LOGO image conversion and storage method and apparatus, and startup LOGO image displaying method and apparatus
CN112199001A (en) * 2020-09-28 2021-01-08 展讯半导体(南京)有限公司 Terminal startup display method and system, electronic equipment, storage medium and terminal
CN112631708A (en) * 2020-12-31 2021-04-09 展讯半导体(南京)有限公司 Picture display method and device, electronic equipment and storage medium
CN113326085A (en) * 2021-05-18 2021-08-31 翱捷科技股份有限公司 JPEG format picture display method and system based on LVGL
CN113326085B (en) * 2021-05-18 2022-08-23 翱捷科技股份有限公司 JPEG format picture display method and system based on LVGL
CN114911488A (en) * 2022-04-27 2022-08-16 北京计算机技术及应用研究所 UEFI (unified extensible firmware interface) firmware LOGO replacing and recovering method based on domestic processor platform
CN114911488B (en) * 2022-04-27 2024-04-09 北京计算机技术及应用研究所 UEFI firmware LOGO replacement and recovery method based on domestic processor platform
CN115098171A (en) * 2022-05-20 2022-09-23 智绘微电子科技(南京)有限公司 Method for optimizing picture compression processing in VBIOS

Also Published As

Publication number Publication date
CN104133796B (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN104133796A (en) Method and device for coding and decoding image in smart mobile terminal LK
US10834424B2 (en) Method and device for compressing image, and electronic device
CN103761132A (en) Intelligent terminal starting-up animation play control method
CN109840879B (en) Image rendering method and device, computer storage medium and terminal
CN112929590B (en) Boot animation playing system, compression method and device, and decompression method and device
US20230162317A1 (en) Picture Loading Method and Related Apparatus
CN103581409A (en) Method and mobile terminal for self-defining startup and shutdown interfaces
CN112565772A (en) Picture compression method and decompression method based on electronic price tags
CN106909398B (en) Compression method and device for executable file
CN101431632A (en) Television set picture saving and startup picture displaying method, system and television set thereof
US11361402B2 (en) Electronic device and method for saving image
KR101100829B1 (en) System and method for lossless compression and decompression of image data
CN115022670B (en) Video file storage method, video file restoration device, video file storage equipment and storage medium
CN110119287A (en) A kind of method that veneer is adapted to multiple peripheral hardwares
US20100077112A1 (en) Data storage management system and method thereof
CN102075716A (en) Method for realizing customized display of on screen display of television
CN113099270B (en) File storage method, decoding method, device, storage medium and electronic device
CN109379591A (en) Picture code-transferring method, electronic device and computer readable storage medium
CN101321231A (en) Method, system and device for storing and reading television image
US20150265921A1 (en) Game-Aware Compression Algorithms for Efficient Video Uploads
CN113014834B (en) Picture subtitle display method and device and related device
CN104090898A (en) Method and device for matching local music and music in database
CN112631708B (en) Picture display method and device, electronic equipment and storage medium
CN112073726B (en) Compression method and device, computer readable storage medium and electronic device
US20090094392A1 (en) System and Method for Data Operations in Memory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170825

CF01 Termination of patent right due to non-payment of annual fee