CN105208399A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN105208399A
CN105208399A CN201410268471.0A CN201410268471A CN105208399A CN 105208399 A CN105208399 A CN 105208399A CN 201410268471 A CN201410268471 A CN 201410268471A CN 105208399 A CN105208399 A CN 105208399A
Authority
CN
China
Prior art keywords
field picture
code word
data
coding
coding strategy
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.)
Pending
Application number
CN201410268471.0A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410268471.0A priority Critical patent/CN105208399A/en
Publication of CN105208399A publication Critical patent/CN105208399A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The present invention discloses an information processing method and electronic equipment. The method comrises the following steps that a processor uses an m-th coding strategy to carry out coding processing on the data of an m-th frame image to an n-th frame image, obtaining an m-th coding processing result, the m-th coding strategy is adjusted according to the apperance times of each code in the m-th coding processing result to obtain an m'-th coding strategy, and the coding processing of the data of an (n+1)th frame image to an (n+q)th frame image in the video data is carried out based on the m'-th coding strategy so as to compress the (n+1)th frame image to the (n+q)th frame image. Through the technical scheme of the invention, the image compression rate can be significantly enhanced, the bit width resource between the processor and a RAM can be saved, the processor power consumption is reduced, and the standby time of the electronic equipment is enhanced.

Description

Information processing method and electronic equipment
Technical field
The present invention relates to the information processing technology, particularly relate to a kind of information processing method and electronic equipment.
Background technology
HD video is day by day universal, and this proposes requirements at the higher level to the design of system level chip (SOC, SystemOnChip) as application processor (AP, ApplicationProcessor) in the electronic equipment such as smart mobile phone, panel computer.Such as, play HD video time, AP by video flowing random asccess memory decoding after, if read decoded original video data immediately to go forward side by side row relax, the a large amount of bit wide resource between AP and random asccess memory can be consumed, promote the power consumption of AP, affect the stand-by time of electronic equipment; In correlation technique, be typically employed in random asccess memory and video data is compressed, and the video data after compression is read the technology that AP carries out processing; But for how improving the compression ratio of video data further, not yet effective solution is proposed.
Summary of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, can improve the compression ratio to video data, saves bit wide resource.
The technical scheme of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of information processing method, is applied in electronic equipment, and described electronic equipment comprises processor; Described method comprises:
Described processor adopts the data of m coding strategy to m two field picture to the n-th two field picture of video data to carry out coded treatment, to compress described m two field picture to the n-th two field picture, after completing compression process, obtains m coded treatment result;
Described m coded treatment result is resolved, obtains the occurrence number of each code word in described m coded treatment result;
According to the occurrence number of each code word in described m coded treatment result, described m coding strategy is adjusted, obtains m ' coding strategy;
Based on described m ' coding strategy, coded treatment is carried out, to compress described (n+1) two field picture to (n+q) two field picture to (n+1) two field picture in described video data to the data of (n+q) two field picture;
Wherein m, m ', q be more than or equal to 1 integer, n is the integer being more than or equal to m.
Preferably, when m equals n, described m coded treatment result characterizes the occurrence number of different code word in described m frame image data;
Correspondingly, the described occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy, comprising:
According to the occurrence number of different code word in the data of described m two field picture, the different code words in the data of described m two field picture are encoded, obtains m ' coding strategy; Wherein,
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described m two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture.
Preferably, when m is less than n, described m coded treatment result characterizes the occurrence number of different code word in the data of described m two field picture to the n-th two field picture;
Correspondingly, the described occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy, comprising:
According to the occurrence number of different code word in described m two field picture to the data of described n-th two field picture, described m two field picture is encoded to the different code words in the data of described n-th two field picture, obtains m ' coding strategy; Wherein,
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in described m two field picture to the data of described n-th two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture to the n-th two field picture.
Preferably, when m is less than n, described m coded treatment result characterizes the occurrence number of different code word in the data of t two field picture, and described t frame image data is any t two field picture in described m two field picture to described n-th two field picture, and t is less than (m-n);
Correspondingly, the described occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy, comprising:
According to the occurrence number of different code word in described m two field picture to described n-th two field picture, the different code words in described m frame image data are encoded, obtains m ' coding strategy; Wherein,
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described t two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described t two field picture.
Preferably, describedly based on described m ' coding strategy, coded treatment is carried out to (n+1) two field picture in described video data to the data of (n+q) two field picture, to compress described (n+1) two field picture to (n+q) two field picture, comprising:
According to described m ' coding strategy, determine that described (n+1) image is to coding corresponding to code word in the data of described (n+q) image successively;
Obtained coding is merged, obtains compressing the data of rear described (n+1) image to described (n+q) two field picture.
The embodiment of the present invention also provides a kind of electronic equipment, and described electronic equipment comprises:
Processor, for adopting the data of m coding strategy to m two field picture to the n-th two field picture of video data to carry out coded treatment, to compress described m two field picture to the n-th two field picture, after completing compression process, obtains m coded treatment result;
Described processor, also for resolving described m coded treatment result, obtains the occurrence number of each code word in described m coded treatment result;
Described processor, also for the occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy;
Described processor, also for carrying out coded treatment, to compress described (n+1) two field picture to (n+q) two field picture based on described m ' coding strategy to (n+1) two field picture in described video data to the data of (n+q) two field picture;
Wherein m, m ', q be more than or equal to 1 integer, n is the integer being more than or equal to m.
Preferably, described processor, also for when m equals n, according to the occurrence number of different code word in the data of described m two field picture, encodes to the different code words in the data of described m two field picture, obtains m ' coding strategy; Wherein,
Described m coded treatment result characterizes the occurrence number of different code word in described m frame image data, described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described m two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture.
Preferably, described processor, also for when m is less than n, according to the occurrence number of different code word in described m two field picture to the data of described n-th two field picture, described m two field picture is encoded to the different code words in the data of described n-th two field picture, obtains m ' coding strategy; Wherein,
Described m coded treatment result characterizes the occurrence number of different code word in the data of described m two field picture to the n-th two field picture, described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in described m two field picture to the data of described n-th two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture to the n-th two field picture.
Preferably, described processor, also for when m is less than n, according to the occurrence number of different code word in described m two field picture to described n-th two field picture, encodes to the different code words in described m frame image data, obtains m ' coding strategy;
Wherein, described m coded treatment result characterizes the occurrence number of different code word in the data of t two field picture, and described t frame image data is any t two field picture in described m two field picture to described n-th two field picture, and t is less than (m-n);
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described t two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described t two field picture.
Preferably, described processor, also for according to described m ' coding strategy, determines that described (n+1) image is to coding corresponding to the code word in the data of described (n+q) image successively;
Obtained coding is merged, obtains compressing the data of rear described (n+1) image to described (n+q) two field picture.
In the embodiment of the present invention, because (n+1) two field picture is to the data of (n+q) two field picture, identical code word distribution character can be had with the data of m two field picture to the n-th two field picture, like this, in m ' coding strategy, (n+1) image can be made in the data of (n+q) two field picture, the occurrence number of code word is more, then the coding that distributes of code word is shorter, thus m ' coding strategy coding, obviously can promote the compression ratio to view data, like this when processor reads the view data after compression from random asccess memory, the bit wide resource between processor and random asccess memory can be saved, reduce the power consumption of processor, promote the stand-by time of electronic equipment.
Accompanying drawing explanation
Fig. 1 is the realization flow schematic diagram of information processing method in the embodiment of the present invention one;
Fig. 2 a is the realization flow schematic diagram one of information processing method in the embodiment of the present invention two;
Fig. 2 b is the realization flow schematic diagram two of information processing method in the embodiment of the present invention two;
Fig. 2 c is the schematic diagram determining m ' coding strategy in the embodiment of the present invention two;
Fig. 2 d is the realization flow schematic diagram three of information processing method in the embodiment of the present invention two;
Fig. 3 a is the realization flow schematic diagram one of information processing method in the embodiment of the present invention three;
Fig. 3 b is the realization flow schematic diagram two of information processing method in the embodiment of the present invention three;
Fig. 3 c is the schematic diagram determining m ' coding strategy in the embodiment of the present invention three;
Fig. 3 d is the realization flow schematic diagram three of information processing method in the embodiment of the present invention three;
Fig. 4 a is the realization flow schematic diagram one of information processing method in the embodiment of the present invention four;
Fig. 4 b is the realization flow schematic diagram two of information processing method in the embodiment of the present invention four;
Fig. 4 c is the schematic diagram determining m ' coding strategy in the embodiment of the present invention four;
Fig. 4 d is the realization flow schematic diagram three of information processing method in the embodiment of the present invention four;
Fig. 5 is the structural representation of electronic equipment in the embodiment of the present invention five;
Fig. 6 is the structural representation of electronic equipment in the embodiment of the present invention six.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Embodiment one
The present embodiment records a kind of information processing method, is applied in electronic equipment, and described electronic equipment comprises processor, and described processor can adopt application processor (AP, ApplicationProcessor); As shown in Figure 1, the information processing method that the present embodiment is recorded comprises the following steps:
Step 101, described processor adopts the data of m coding strategy to m two field picture to the n-th two field picture of video data to carry out coded treatment, to compress described m frame image data to the n-th two field picture, after completing compression process, obtains m coded treatment result.
Wherein m be more than or equal to 1 integer, n is the integer being more than or equal to m.
In practical application, video data can be read random asccess memory by processor, and has processed compression to the view data in video data in random asccess memory; Described m coding strategy comprises the mapping relations of the coding of code word and code word, the coding of described code word can adopt variable-length encoding, that is, the length of the coding of different code word is not quite identical, and the coding of code word can distribute from shortest length (1 bit), an example of m coding strategy is as shown in table 1:
Table 1
As an example, m two field picture to the n-th two field picture of m coding strategy to video data is adopted to carry out coded treatment, to compress described m frame image data to the n-th frame image data, can realize in the following manner: according to m coding strategy, determine the coding that code word in described m two field picture to the n-th frame image data is corresponding; Obtained coding is merged, obtains the data of described m two field picture to the n-th two field picture after compressing.
Step 102, resolves described m coded treatment result, obtains the occurrence number of each code word in described m coded treatment result.
Described m coded treatment characterizes the occurrence number of each different code word in m frame image data to the n-th frame image data.
Step 103, according to the occurrence number of each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy.
The wherein integer of m ' for being more than or equal to 1.
As an example, when can by p the shortest in the m coding strategy shown in table 1 (p be greater than 1 integer) coding is corresponding distributes to p the code word that in m frame image data to the n-th frame image data, the frequency of occurrences is the highest, the code length negative correlation of the frequency occurred to make code word and code word, that is, the number of times that code word occurs is more, and the coding that code word is distributed is shorter.
Step 104, carries out coded treatment, to compress described (n+q) two field picture based on described m ' coding strategy to (n+1) two field picture in described video data to the data of q two field picture.
Wherein q be more than or equal to 1 integer.
As an example, step 104 can realize in the following manner: according to described m ' coding strategy, determines that described (n+1) image is to coding corresponding to code word in the data of described (n+q) image successively;
Obtained coding is merged, obtains compressing the data of rear described (n+1) image to (n+q) two field picture.
Because (n+1) two field picture is to the data of (n+q) two field picture, identical code word distribution character can be had with the data of m two field picture to the n-th two field picture, like this, (n+1) image can be made in the data of (n+q) two field picture at m ' coding strategy, the occurrence number of code word is more, then the coding that distributes of code word is shorter, thus the compression ratio that can obviously promote view data, like this when processor reads the view data after compression from random asccess memory, the bit wide resource between processor and random asccess memory can be saved, reduce the power consumption of processor, promote the stand-by time of electronic equipment.
Embodiment two
The present embodiment records a kind of information processing method, is applied in electronic equipment, and described electronic equipment comprises processor, and described processor can adopt application processor (AP, ApplicationProcessor); As shown in Figure 2 a, the information processing method that the present embodiment is recorded comprises the following steps:
Step 201, described processor adopts the data of m coding strategy to the m two field picture of video data to carry out coded treatment, to compress described m frame image data, after completing compression process, obtains m coded treatment result.
Wherein m be more than or equal to 1 integer, n is the integer being more than or equal to m.
In practical application, video data can be read random asccess memory by processor, and has processed compression to the view data in video data in random asccess memory; Described m coding strategy comprises the mapping relations of the coding of code word and code word, the coding of described code word can adopt variable-length encoding, that is, the length of the coding of different code word is not quite identical, and the coding of code word can distribute from shortest length (1 bit), an example of m coding strategy is as shown in table 2:
Table 2
As an example, adopt the data of m coding strategy to the m two field picture of video data to carry out coded treatment, to compress described m frame image data, can realize in the following manner: according to m coding strategy, determine described m two field picture; Obtained coding is merged, obtains the data of described m two field picture after compressing.
Step 202, resolves described m coded treatment result, obtains the occurrence number of each code word in described m coded treatment result.
Described m coded treatment characterizes the occurrence number of each different code word in m frame image data.
Step 203, according to the occurrence number of different code word in the data of described m two field picture, encodes to the different code words in the data of described m two field picture, obtains m ' coding strategy.
The wherein integer of m ' for being more than or equal to 1; Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described m two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture.
As an example, when can by p the shortest in the m coding strategy shown in table 2 (p be greater than 1 integer) coding is corresponding distributes to p the highest code word of the frequency of occurrences in m frame image data, the code length negative correlation of the frequency occurred to make code word and code word, that is, the number of times that code word occurs is more, the coding that code word is distributed is shorter, is described in detail below, and an example of m coding result is as shown in table 3:
Code word 1000 1001 1010 1011
Number of times 4 5 6 7
Table 3
As shown in table 3, if the code word that m frame image data comprises is respectively 1000,1001,1010 and 1011, and the number of times occurred corresponds to 4,5,6,7, then as shown in Figure 2 b, composition graphs 2c, obtains the process of m ' coding strategy according to m coding result, can comprise the following steps:
Step 2031, by each code word according to the ascending sequence of occurrence number.
Step 2032, successively the occurrence number of minimum for occurrence number two code words to be added, to synthesize a new node.
Step 2033, is added the new node 9 of synthesis one by the occurrence number of 1001 of code word 1001 and code word, the occurrence number of code word 1010 with code word 1011 is added, synthesizes new node 13.
Step 2034, from the coding of the nodes records code word of pushing up most, wherein, coded number left-hand branch is encoded to 1, and right-hand branch is encoded to 0, and (or coded number left-hand branch is encoded to 0, right-hand branch is encoded to 1), the m ' coding strategy obtained after coding is as shown in table 4:
Code word 1000 1001 1010 1011
Number of times 4 5 6 7
Coding 11 10 1 0
Table 4
Step 204, based on described m ' coding strategy, coded treatment is carried out, to compress described (m+1) two field picture to (m+q) two field picture to (m+1) two field picture in described video data to the data of (m+q) two field picture.
Wherein q be more than or equal to 1 integer.
As an example, as shown in Figure 2 d, step 204 can realize in the following manner:
Step 2041, according to described m ' coding strategy, determines that described (m+1) two field picture is to coding corresponding to the code word in the data of (m+q) two field picture successively.
Step 2042, merges obtained coding, obtains compressing the data of rear described (m+1) image to (m+q) two field picture.
It is to be noted, after step 204, processor can read described (m+1) two field picture after compression to (m+q) frame image data from random asccess memory, carries out decompression processing, decompression processing is the inverse operation of step 2041 to step 2042, repeats no more here.
Because (m+1) two field picture is to the data of (m+q) two field picture, same video data is belonged to the data of m two field picture, therefore identical code word distribution character can be had, like this, in m ' coding strategy, (m+1) image can be made in the data of (m+q) two field picture, the occurrence number of code word is more, then the coding that distributes of code word is shorter, thus the compression ratio that can obviously promote view data, like this when processor reads the view data after compression from random asccess memory, the bit wide resource between processor and random asccess memory can be saved, reduce the power consumption of processor, promote the stand-by time of electronic equipment.
Embodiment three
The present embodiment records a kind of information processing method, is applied in electronic equipment, and described electronic equipment comprises processor, and described processor can adopt AP; As shown in Figure 3 a, the information processing method that the present embodiment is recorded comprises the following steps:
Step 301, described processor adopts the data of m coding strategy to m two field picture to the n-th two field picture of video data to carry out coded treatment, to compress described m frame image data, after completing compression process, obtains m coded treatment result.
Wherein m be more than or equal to 1 integer, n is the integer being more than or equal to m.
In practical application, video data can be read random asccess memory by processor, and has processed compression to the view data in video data in random asccess memory; Described m coding strategy comprises the mapping relations of the coding of code word and code word, the coding of described code word can adopt variable-length encoding, that is, the length of the coding of different code word is not quite identical, and the coding of code word can distribute from shortest length (1 bit), an example of m coding strategy is as shown in table 5:
Table 5
As an example, the data of m coding strategy to m two field picture to the n-th two field picture of video data are adopted to carry out coded treatment, to compress described m frame image data to the n-th two field picture, can realize in the following manner: according to m coding strategy, determine described m two field picture; Obtained coding is merged, obtains the data of described m two field picture to the n-th two field picture after compressing.
Step 302, resolves described m coded treatment result, obtains the occurrence number of each code word in described m coded treatment result.
Described m coded treatment characterizes the occurrence number of each different code word in m frame image data to the n-th two field picture.
Step 303, according to the occurrence number of different code word in the data of described m two field picture, encodes to the different code words in the data of described m two field picture to the n-th two field picture, obtains m ' coding strategy.
The wherein integer of m ' for being more than or equal to 1; Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described m two field picture to the n-th two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture to the n-th two field picture, that is, the occurrence number of the code word data of m two field picture to the n-th two field picture is more, then the length of the coding distributed for described code word at m ' coding strategy is shorter.
As an example, when can by p the shortest in the m coding strategy shown in table 5 (p be greater than 1 integer) coding is corresponding distributes to p the highest code word of the frequency of occurrences in the data of m two field picture to the n-th two field picture, the code length negative correlation of the frequency occurred to make code word and code word, that is, the number of times that code word occurs is more, the coding that code word is distributed is shorter, is described in detail below, and an example of m coding result is as shown in table 6:
Code word 1000 1001 1010 1011
Number of times 4 5 6 7
Table 6
As shown in table 6, if the code word that m frame image data comprises is respectively 1000,1001,1010 and 1011, and the number of times occurred corresponds to 4,5,6,7, then as shown in Figure 3 b, composition graphs 3c, obtains the process of m ' coding strategy according to m coding result, can comprise the following steps:
Step 3031, by each code word according to the ascending sequence of occurrence number.
Step 3032, successively the occurrence number of minimum for occurrence number two code words to be added, to synthesize a new node.
Step 3033, is added the new node 9 of synthesis one by the occurrence number of 1001 of code word 1001 and code word, the occurrence number of code word 1010 with code word 1011 is added, synthesizes new node 13.
Step 3034, from the coding of the nodes records code word of pushing up most, wherein, coded number left-hand branch is encoded to 1, and right-hand branch is encoded to 0, and (or coded number left-hand branch is encoded to 0, right-hand branch is encoded to 1), the m ' coding strategy obtained after coding is as shown in table 7:
Code word 1000 1001 1010 1011
Number of times 4 5 6 7
Table 7
Step 304, based on described m ' coding strategy, coded treatment is carried out, to compress described (n+1) two field picture to (n+q) two field picture to (n+1) two field picture in described video data to the data of (n+q) two field picture.
Wherein q be more than or equal to 1 integer.
As an example, as shown in Figure 3 d, step 304 can realize in the following manner:
Step 3041, according to described m ' coding strategy, determines that described (n+1) image is to coding corresponding to code word in the data of described (n+q) image successively.
Step 3042, merges obtained coding, obtains compressing the data of rear described (n+1) image to (n+q) two field picture.
It is to be noted, after step 304, processor can read (n+1) image after compression to described (n+q) data from random asccess memory, and the process carrying out compressing is the inverse operation of step 3041 to step 3042, repeats no more here.
Because (n+1) two field picture is to the data of (n+q) two field picture, identical code word distribution character can be had with the data of m two field picture to the n-th two field picture, like this, in m ' coding strategy, (n+1) image can be made in the data of (n+q) two field picture, the occurrence number of code word is more, then the coding that distributes of code word is shorter, thus the compression ratio that can obviously promote view data, like this when processor reads the view data after compression from random asccess memory, the bit wide resource between processor and random asccess memory can be saved, reduce the power consumption of processor, promote the stand-by time of electronic equipment.
Embodiment four
The present embodiment records a kind of information processing method, is applied in electronic equipment, and described electronic equipment comprises processor, and described processor can adopt AP; As shown in fig. 4 a, the information processing method that the present embodiment is recorded comprises the following steps:
Step 401, described processor adopts the data of m coding strategy to m two field picture to the n-th two field picture of video data to carry out coded treatment, to compress described m frame image data, after completing compression process, obtains m coded treatment result.
Wherein m be more than or equal to 1 integer, n is the integer being more than or equal to m.
In practical application, video data can be read random asccess memory by processor, and has processed compression to the view data in video data in random asccess memory; Described m coding strategy comprises the mapping relations of the coding of code word and code word, the coding of described code word can adopt variable-length encoding, that is, the length of the coding of different code word is not quite identical, and the coding of code word can distribute from shortest length (1 bit), an example of m coding strategy is as shown in table 8:
Table 8
As an example, the data of m coding strategy to m two field picture to the n-th two field picture of video data are adopted to carry out coded treatment, to compress described m frame image data to the n-th two field picture, can realize in the following manner: according to m coding strategy, determine described m two field picture; Obtained coding is merged, obtains the data of described m two field picture to the n-th two field picture after compressing.
Step 402, resolves described m coded treatment result, obtains the occurrence number of each code word in described m coded treatment result, and described m coded treatment result characterizes the occurrence number of different code word in the data of t two field picture.
Described t frame image data is any t two field picture in described m two field picture to described n-th two field picture, and t is less than or equal to (m-n).
Step 403, according to the occurrence number of different code word in the data of described t two field picture, encodes to the different code words in the data of described t two field picture, obtains m ' coding strategy.
The wherein integer of m ' for being more than or equal to 1; Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described t two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described t two field picture, that is, in the data of t two field picture, the occurrence number of a certain code word is more, then the length of the coding distributed for this code word in m ' coding strategy is shorter.
As an example, when can by p the shortest in the m coding strategy shown in table 8 (p be greater than 1 integer) coding is corresponding distributes to p the highest code word of the frequency of occurrences in the data of t two field picture, the code length negative correlation of the frequency occurred to make code word and code word, that is, the number of times that code word occurs is more, the coding that code word is distributed is shorter, is described in detail below, and an example of m coding result is as shown in table 9:
Code word 1000 1001 1010 1011
Number of times 4 5 6 7
Table 9
As shown in table 9, if the code word that t frame image data comprises is respectively 1000,1001,1010 and 1011, and the number of times occurred corresponds to 4,5,6,7, then as shown in Figure 4 b, composition graphs 4c, obtains the process of m ' coding strategy according to m coding result, can comprise the following steps:
Step 4031, by each code word according to the ascending sequence of occurrence number.
Step 4032, successively the occurrence number of minimum for occurrence number two code words to be added, to synthesize a new node.
Step 4033, is added the new node 9 of synthesis one by the occurrence number of 1001 of code word 1001 and code word, the occurrence number of code word 1010 with code word 1011 is added, synthesizes new node 13.
Step 4034, from the coding of the nodes records code word of pushing up most, wherein, coded number left-hand branch is encoded to 1, and right-hand branch is encoded to 0, and (or coded number left-hand branch is encoded to 0, right-hand branch is encoded to 1), the m ' coding strategy obtained after coding is as shown in table 10:
Code word 1000 1001 1010 1011
Number of times 4 5 6 7
Coding 11 10 1 0
Table 10
Step 404, based on described m ' coding strategy, coded treatment is carried out, to compress described (n+1) two field picture to (n+q) two field picture to (n+1) two field picture in described video data to the data of (n+q) two field picture.
Wherein q be more than or equal to 1 integer.
As an example, as shown in figure 4d, step 404 can realize in the following manner:
Step 4041, according to described m ' coding strategy, determines that described (n+1) image is to coding corresponding to code word in the data of described (n+q) image successively.
Step 4042, merges obtained coding, obtains compressing the data of rear described (n+1) image to (n+q) two field picture.
It is to be noted, after step 404, processor can read (n+1) image after compression to described (n+q) data from random asccess memory, and the process carrying out compressing is the inverse operation of step 4041 to step 4042, repeats no more here.
Because (n+1) two field picture is to the data of (n+q) two field picture, identical code word distribution character can be had with the data of m two field picture to the n-th two field picture, like this, in m ' coding strategy, (n+1) image can be made in the data of (n+q) two field picture, the occurrence number of code word is more, then the coding that distributes of code word is shorter, thus the compression ratio that can obviously promote view data, like this when processor reads the view data after compression from random asccess memory, the bit wide resource between processor and random asccess memory can be saved, reduce the power consumption of processor, promote the stand-by time of electronic equipment.
Embodiment five
The present embodiment records a kind of electronic equipment, as shown in Figure 5, comprising:
Processor 51, for adopting the data of m coding strategy to m two field picture to the n-th two field picture of video data to carry out coded treatment, to compress described m two field picture to the n-th two field picture, after completing compression process, obtains m coded treatment result;
Described processor 51, also for resolving described m coded treatment result, obtains the occurrence number of each code word in described m coded treatment result;
Described processor 51, also for the occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy;
Described processor 51, also for carrying out coded treatment, to compress described (n+1) two field picture to (n+q) two field picture based on described m ' coding strategy to (n+1) two field picture in described video data to the data of (n+q) two field picture;
Wherein m, m ', q be more than or equal to 1 integer, n is the integer being more than or equal to m.
As an execution mode, described processor 51, also for when m equals n, according to the occurrence number of different code word in the data of described m two field picture, encodes to the different code words in the data of described m two field picture, obtains m ' coding strategy; Wherein,
Described m coded treatment result characterizes the occurrence number of different code word in described m frame image data, described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described m two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture.
As an execution mode, described processor 51, also for when m is less than n, according to the occurrence number of different code word in described m two field picture to the data of described n-th two field picture, described m two field picture is encoded to the different code words in the data of described n-th two field picture, obtains m ' coding strategy; Wherein,
Described m coded treatment result characterizes the occurrence number of different code word in the data of described m two field picture to the n-th two field picture, described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in described m two field picture to the data of described n-th two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture to the n-th two field picture.
As an execution mode, described processor 51, also for when m is less than n, according to the occurrence number of different code word in described m two field picture to described n-th two field picture, encodes to the different code words in described m frame image data, obtains m ' coding strategy;
Wherein, described m coded treatment result characterizes the occurrence number of different code word in the data of t two field picture, and described t frame image data is any t two field picture in described m two field picture to described n-th two field picture, and t is less than (m-n);
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described t two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described t two field picture.
As an execution mode, described processor 51, also for according to described m ' coding strategy, determines that described (n+1) image is to coding corresponding to the code word in the data of described (n+q) image successively;
Obtained coding is merged, obtains compressing the data of rear described (n+1) image to described (n+q) two field picture.
Embodiment six
The present embodiment records a kind of electronic equipment, as shown in Figure 6, comprising:
Random asccess memory 61, for stored video data;
Processor 62, for adopting the data of m coding strategy to m two field picture to the n-th two field picture of described video data to carry out coded treatment, to compress described m two field picture to the n-th two field picture, after completing compression process, obtains m coded treatment result;
Described processor 62, also for resolving described m coded treatment result, obtains the occurrence number of each code word in described m coded treatment result;
Described processor 62, also for the occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy;
Described processor 62, also for carrying out coded treatment, to compress described (n+1) two field picture to (n+q) two field picture based on described m ' coding strategy to (n+1) two field picture in described video data to the data of (n+q) two field picture;
Wherein m, m ', q be more than or equal to 1 integer, n is the integer being more than or equal to m.
In practical application, processor 62 can directly process view data in random asccess memory 61, to complete the compression process to image.
As an execution mode, described processor 62, also for when m equals n, according to the occurrence number of different code word in the data of described m two field picture, encodes to the different code words in the data of described m two field picture, obtains m ' coding strategy; Wherein,
Described m coded treatment result characterizes the occurrence number of different code word in described m frame image data, described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described m two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture.
As an execution mode, described processor 62, also for when m is less than n, according to the occurrence number of different code word in described m two field picture to the data of described n-th two field picture, described m two field picture is encoded to the different code words in the data of described n-th two field picture, obtains m ' coding strategy; Wherein,
Described m coded treatment result characterizes the occurrence number of different code word in the data of described m two field picture to the n-th two field picture, described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in described m two field picture to the data of described n-th two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture to the n-th two field picture.
As an execution mode, described processor 62, also for when m is less than n, according to the occurrence number of different code word in described m two field picture to described n-th two field picture, encodes to the different code words in described m frame image data, obtains m ' coding strategy;
Wherein, described m coded treatment result characterizes the occurrence number of different code word in the data of t two field picture, and described t frame image data is any t two field picture in described m two field picture to described n-th two field picture, and t is less than (m-n);
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described t two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described t two field picture.
As an execution mode, described processor 62, also for according to described m ' coding strategy, determines that described (n+1) image is to coding corresponding to the code word in the data of described (n+q) image successively;
Obtained coding is merged, obtains compressing the data of rear described (n+1) image to described (n+q) two field picture.
Because (n+1) two field picture is to the data of (n+q) two field picture, identical code word distribution character can be had with the data of m two field picture to the n-th two field picture, like this, (n+1) image can be made in the data of (n+q) two field picture at m ' coding strategy, the occurrence number of code word is more, then the coding that distributes of code word is shorter, thus obviously can promote the compression ratio of processor 62 pairs of view data, like this when processor reads the view data after compression from random asccess memory 61, the bit wide resource between processor 62 and random asccess memory 61 can be saved, reduce the power consumption of processor 62, promote the stand-by time of electronic equipment.
In several embodiment provided by the present invention, should be understood that, disclosed equipment and method, can realize by another way.Apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each part or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can all be integrated in a processing unit, also can be each unit individually as a unit, also can two or more unit in a unit integrated; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Or, if the above-mentioned integrated unit of the present invention using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprises some instructions and performs all or part of of method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server or the network equipment etc.).And aforesaid storage medium comprises: movable storage device, ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (10)

1. an information processing method, is applied in electronic equipment, it is characterized in that, described electronic equipment comprises processor; Described method comprises:
Described processor adopts the data of m coding strategy to m two field picture to the n-th two field picture of video data to carry out coded treatment, to compress described m two field picture to the n-th two field picture, after completing compression process, obtains m coded treatment result;
Described m coded treatment result is resolved, obtains the occurrence number of each code word in described m coded treatment result;
According to the occurrence number of each code word in described m coded treatment result, described m coding strategy is adjusted, obtains m ' coding strategy;
Based on described m ' coding strategy, coded treatment is carried out, to compress described (n+1) two field picture to (n+q) two field picture to (n+1) two field picture in described video data to the data of (n+q) two field picture;
Wherein m, m ', q be more than or equal to 1 integer, n is the integer being more than or equal to m.
2. method according to claim 1, is characterized in that, when m equals n, described m coded treatment result characterizes the occurrence number of different code word in described m frame image data;
Correspondingly, the described occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy, comprising:
According to the occurrence number of different code word in the data of described m two field picture, the different code words in the data of described m two field picture are encoded, obtains m ' coding strategy; Wherein,
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described m two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture.
3. method according to claim 1, is characterized in that, when m is less than n, described m coded treatment result characterizes the occurrence number of different code word in the data of described m two field picture to the n-th two field picture;
Correspondingly, the described occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy, comprising:
According to the occurrence number of different code word in described m two field picture to the data of described n-th two field picture, described m two field picture is encoded to the different code words in the data of described n-th two field picture, obtains m ' coding strategy; Wherein,
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in described m two field picture to the data of described n-th two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture to the n-th two field picture.
4. method according to claim 1, it is characterized in that, when m is less than n, described m coded treatment result characterizes the occurrence number of different code word in the data of t two field picture, described t frame image data is any t two field picture in described m two field picture to described n-th two field picture, and t is less than (m-n);
Correspondingly, the described occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy, comprising:
According to the occurrence number of different code word in described m two field picture to described n-th two field picture, the different code words in described m frame image data are encoded, obtains m ' coding strategy; Wherein,
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described t two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described t two field picture.
5. the method according to any one of Claims 1-4, it is characterized in that, describedly based on described m ' coding strategy, coded treatment is carried out to (n+1) two field picture in described video data to the data of (n+q) two field picture, to compress described (n+1) two field picture to (n+q) two field picture, comprising:
According to described m ' coding strategy, determine that described (n+1) image is to coding corresponding to code word in the data of described (n+q) image successively;
Obtained coding is merged, obtains compressing the data of rear described (n+1) image to described (n+q) two field picture.
6. an electronic equipment, is characterized in that, described electronic equipment comprises:
Processor, for adopting the data of m coding strategy to m two field picture to the n-th two field picture of video data to carry out coded treatment, to compress described m two field picture to the n-th two field picture, after completing compression process, obtains m coded treatment result;
Described processor, also for resolving described m coded treatment result, obtains the occurrence number of each code word in described m coded treatment result;
Described processor, also for the occurrence number according to each code word in described m coded treatment result, adjusts described m coding strategy, obtains m ' coding strategy;
Described processor, also for carrying out coded treatment, to compress described (n+1) two field picture to (n+q) two field picture based on described m ' coding strategy to (n+1) two field picture in described video data to the data of (n+q) two field picture;
Wherein m, m ', q be more than or equal to 1 integer, n is the integer being more than or equal to m.
7. electronic equipment according to claim 6, is characterized in that,
Described processor, also for when m equals n, according to the occurrence number of different code word in the data of described m two field picture, encodes to the different code words in the data of described m two field picture, obtains m ' coding strategy; Wherein,
Described m coded treatment result characterizes the occurrence number of different code word in described m frame image data, described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described m two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture.
8. electronic equipment according to claim 6, it is characterized in that, described processor, also for when m is less than n, according to the occurrence number of different code word in described m two field picture to the data of described n-th two field picture, described m two field picture is encoded to the different code words in the data of described n-th two field picture, obtains m ' coding strategy; Wherein,
Described m coded treatment result characterizes the occurrence number of different code word in the data of described m two field picture to the n-th two field picture, described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in described m two field picture to the data of described n-th two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described m two field picture to the n-th two field picture.
9. electronic equipment according to claim 6, is characterized in that,
Described processor, also for when m is less than n, according to the occurrence number of different code word in described m two field picture to described n-th two field picture, encodes to the different code words in described m frame image data, obtains m ' coding strategy;
Wherein, described m coded treatment result characterizes the occurrence number of different code word in the data of t two field picture, and described t frame image data is any t two field picture in described m two field picture to described n-th two field picture, and t is less than (m-n);
Described m ' coding strategy comprises the mapping relations of the coding of different code word and described code word in the data of described t two field picture, in described m ' coding strategy, the length of different code word is not quite identical, and, the number of times negative correlation that in described m ' coding strategy, the length of the coding of code word and described code word occur in the data of described t two field picture.
10. the electronic equipment according to any one of claim 6 to 9, is characterized in that,
Described processor, also for according to described m ' coding strategy, determines that described (n+1) image is to coding corresponding to the code word in the data of described (n+q) image successively;
Obtained coding is merged, obtains compressing the data of rear described (n+1) image to described (n+q) two field picture.
CN201410268471.0A 2014-06-16 2014-06-16 Information processing method and electronic equipment Pending CN105208399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410268471.0A CN105208399A (en) 2014-06-16 2014-06-16 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410268471.0A CN105208399A (en) 2014-06-16 2014-06-16 Information processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN105208399A true CN105208399A (en) 2015-12-30

Family

ID=54955786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410268471.0A Pending CN105208399A (en) 2014-06-16 2014-06-16 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105208399A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749550A (en) * 2020-07-14 2021-05-04 腾讯科技(深圳)有限公司 Data storage method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101998122A (en) * 2010-12-13 2011-03-30 山东大学 Method and device for decoding normal form Hoffman hardware in JPEG (Joint Photographic Expert Group) image
US20110182361A1 (en) * 2008-09-25 2011-07-28 Renesas Technology Corp. Image decoding method and image coding method
CN102438145A (en) * 2011-11-22 2012-05-02 广州中大电讯科技有限公司 Image lossless compression method on basis of Huffman code

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110182361A1 (en) * 2008-09-25 2011-07-28 Renesas Technology Corp. Image decoding method and image coding method
CN101998122A (en) * 2010-12-13 2011-03-30 山东大学 Method and device for decoding normal form Hoffman hardware in JPEG (Joint Photographic Expert Group) image
CN102438145A (en) * 2011-11-22 2012-05-02 广州中大电讯科技有限公司 Image lossless compression method on basis of Huffman code

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749550A (en) * 2020-07-14 2021-05-04 腾讯科技(深圳)有限公司 Data storage method and device, computer equipment and storage medium
CN112749550B (en) * 2020-07-14 2023-02-03 腾讯科技(深圳)有限公司 Data storage method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US20200260117A1 (en) Methods and Apparatuses for Coding and Decoding Depth Map
US10505671B2 (en) Polar code encoding method and device
US20140086309A1 (en) Method and device for encoding and decoding an image
CN103858433A (en) Hierarchical entropy encoding and decoding
CN105187845B (en) Apparatus for decoding video data and coding/decoding method
CN103997650A (en) Video decoding method and video decoder
CN104681028A (en) Encoding method and encoding device
CN104333760A (en) Three-dimensional image coding method, three-dimensional image decoding method and related devices
CN103546161A (en) Lossless compression method based on binary processing
CN105635732A (en) Adaptive sampling point compensation coding method and device, and method and device for decoding video code stream
CN101304254A (en) Method and apparatus for encoding/decoding vector as well as flow medium player
CN105120276A (en) Adaptive Motion JPEG coding method and system
DE102011100936A9 (en) Techniques for storing and retrieving pixel data
CN110650339A (en) Video compression method and device and terminal equipment
CN105208399A (en) Information processing method and electronic equipment
CN103973310A (en) Test data compression method based on xor logical operation binary classification
CN111083479A (en) Video frame prediction method and device and terminal equipment
CN102129872B (en) Data compression and decompression method and device thereof
CN113570677A (en) Image compression method and device
CN105657426A (en) Video encoding system and method
CN102651795B (en) Run-length reduced binary sequence compressed encoding method
CN107172425B (en) Thumbnail generation method and device and terminal equipment
CN115277868A (en) Compressing frequent data values across narrow links
CN116566397A (en) Encoding method, decoding method, encoder, decoder, electronic device, and storage medium
CN105578182A (en) Video coding and decoding methods and apparatuses

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151230

RJ01 Rejection of invention patent application after publication