CN107749989B - The coding method of image and device - Google Patents

The coding method of image and device Download PDF

Info

Publication number
CN107749989B
CN107749989B CN201710970544.4A CN201710970544A CN107749989B CN 107749989 B CN107749989 B CN 107749989B CN 201710970544 A CN201710970544 A CN 201710970544A CN 107749989 B CN107749989 B CN 107749989B
Authority
CN
China
Prior art keywords
encoder
candidate
coding
code stream
parameter
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.)
Active
Application number
CN201710970544.4A
Other languages
Chinese (zh)
Other versions
CN107749989A (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.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co 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 Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN201710970544.4A priority Critical patent/CN107749989B/en
Publication of CN107749989A publication Critical patent/CN107749989A/en
Application granted granted Critical
Publication of CN107749989B publication Critical patent/CN107749989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/115Selection of the code volume for a coding unit prior to coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a kind of coding method of image and devices.Wherein, this method comprises: image to be encoded is carried out piecemeal, and classification belonging to each piece of determination, wherein classification includes: picture block, character block and other blocks;For any one or more at least two candidate encoders of classification and matching, at least two candidate encoders are corresponding with the subclassification of classification respectively;The corresponding subject encoder of block is determined from least two candidate encoders;Using subject encoder to block coding.The present invention solves in the prior art when encoding to image, due to the technical problem for being difficult to that corresponding encoder is selected to cause encoding efficiency low.

Description

The coding method of image and device
Technical field
The present invention relates to field of image processings, coding method and device in particular to a kind of image.
Background technique
In current coding and decoding video field, the video image blocking technology based on screen content obtains high grind Study carefully temperature.Its actual practice is the difference by a frame image according to its content, is divided into different types.Then, according to difference The characteristics of type blocks, carries out corresponding coding-decoding operation to it.In common coding process, due to literal code device and Different codings is presented in the unstability of image encoder algorithm, the macro block for being divided into character block and picture block under different scenes Efficiency, superiority and inferiority are difficult to differentiate between.
Such as: literal code device is when encoding the macro block for being identified as character block, for may be by the non-pure text in part The macro block that block but identification are divided into character block will have extremely low efficiency, and it is suddenly bad that this neglects the performance presentation of its literal code device Performance;Unstable code efficiency is generated to the macro block of picture block is identified as using image encoder and can also make it, such as when Occur horizontal line on picture and when picture coexists as respectively accounted for half, different code efficiencies will be shown.
For in the prior art when being encoded to image, due to being difficult to that corresponding encoder is selected to lead to encoding efficiency Low problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of coding method of image and devices, at least to solve in the prior art to figure When picture is encoded, due to the technical problem for being difficult to that corresponding encoder is selected to cause encoding efficiency low.
According to an aspect of an embodiment of the present invention, a kind of coding method of image is provided, comprising: by image to be encoded Carry out piecemeal, and classification belonging to each piece of determination, wherein classification includes: picture block, character block and other blocks;It is any One or more at least two candidate encoders of classification and matching, at least two candidate encoders respectively with the subclassification pair of classification It answers;The corresponding subject encoder of block is determined from least two candidate encoders;Using subject encoder to block coding.
Further, the code efficiency of each candidate encoder is obtained;Determine that the highest candidate encoder of code efficiency is Subject encoder.
Further, the coding parameter of each candidate encoder is obtained, wherein the coding parameter packet of each candidate encoder It includes: encoding code stream size parameter and coding performance parameter;The ratio between coding performance parameter and encoding code stream size parameter are determined to compile Code parameter determines the code efficiency of each candidate encoder.
Further, the coding parameter of each candidate encoder is obtained, wherein the coding parameter packet of each candidate encoder It includes: encoding code stream size parameter and coding performance parameter;Successively compare the coding parameter of two candidate encoders, and according to comparing As a result a candidate encoder is selected from two candidate encoders for participating in comparing;By the candidate encoder of selection with it is next Candidate encoder is compared, until all candidate encoders all compare, determines the candidate encoder of final choice For subject encoder.
Further, in the case where the first code stream is less than the second code stream, if the first coding efficiency is greater than or equal to the Two coding efficiencies then select the first candidate encoder, wherein the first code stream and the first coding efficiency are two times for participating in comparing The coding parameter of the first candidate encoder in encoder is selected, the second code stream and the second coding efficiency are two times for participating in comparing Select the coding parameter of the second candidate encoder in encoder;In the case where the first code stream is less than the second code stream, if first Whether coding efficiency then judges the ratio of the first code stream and the second code stream less than the first preset value, In less than the second coding efficiency Ratio less than the first preset value in the case where select the first candidate encoder;In the case where the first code stream is greater than the second code stream, If the first coding efficiency is less than or equal to the second coding efficiency, the second candidate encoder is selected;It is greater than the in the first code stream In the case where two code streams, if the first coding efficiency is greater than the second coding efficiency, the ratio of the second code stream and the first code stream is judged Whether value in the case where ratio less than second preset value selects first candidate encoder less than the second preset value.
Further, the corresponding candidate encoder of picture block includes: chart type image encoder, and/or picture type image Encoder.
Further, the corresponding candidate encoder of character block includes: Chinese character-shaped image encoder, and/or alpha type image Encoder.
According to another aspect of an embodiment of the present invention, a kind of code device of image is additionally provided, comprising: determining module, For by image to be encoded carry out piecemeal, and determine each piece belonging to classification, wherein classification include: picture block, character block with And other blocks;Matching module, for being any one or more at least two candidate encoders of classification and matching, at least two is candidate Encoder is corresponding with the subclassification of classification respectively;Determining module, for determining that block is corresponding from least two candidate encoders Subject encoder;Coding module, for using subject encoder to block coding.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, storage medium includes the journey of storage Sequence, wherein equipment where controlling the storage medium in described program operation executes the coding method of the image.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, processor is used to run program, In, the coding method of the image is executed when described program is run.
In embodiments of the present invention, image to be encoded is subjected to piecemeal, and classification belonging to each piece of determination, is any one A or multiple at least two candidate encoders of classification and matching, at least two candidate encoders subclassification pair with the classification respectively It answers, the corresponding subject encoder of block is determined from least two candidate encoder, described piece is compiled using subject encoder Code.Above scheme is a variety of candidate encoders of sorted Block- matching, and from candidate encoder selection target encoder, is selected To subject encoder be the block optimum code device, current block is encoded using subject encoder, so as to solve Certainly in the prior art when being encoded to image, due to the technology for being difficult to that corresponding encoder is selected to cause encoding efficiency low Problem.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the coding method of image according to an embodiment of the present invention;
Fig. 2 is the flow chart according to a kind of optional coding method of the embodiment of the present application;And
Fig. 3 is the schematic diagram of the code device of image according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the coding method of image is provided, it should be noted that in attached drawing Process the step of illustrating can execute in a computer system such as a set of computer executable instructions, although also, Logical order is shown in flow charts, but in some cases, can be executed with the sequence for being different from herein it is shown or The step of description.
Fig. 1 is the flow chart of the coding method of image according to an embodiment of the present invention, as shown in Figure 1, this method includes such as Lower step:
Image to be encoded is carried out piecemeal, and classification belonging to each piece of determination by step S102, wherein the classification packet It includes: picture block, character block and other blocks.
Specifically, above-mentioned image to be encoded can be the frame image in video flowing, treating coded image progress piecemeal can To be to determine classification belonging to block according to the characteristic of writings and image in current frame image.The classification belonging to determining each piece it Afterwards, different labels can be carried out to different classes of block.
In an alternative embodiment, image to be encoded can be divided into the macro block of 8*8, and determined belonging to each piece Classification.
Step S104 is any one or more at least two candidate encoders of classification and matching, at least two candidate codes Device is corresponding with the subclassification of the classification respectively.
In above-mentioned steps, can first it determine in classification with the presence or absence of subclassification, in classification there are in the case where subclassification, Corresponding candidate encoder is matched for each subclassification.
In an alternative embodiment, by taking picture block as an example, the classification of picture block can also continue to classify, and obtain Two seed classifications, two seed classifications are respectively therefore picture type and chart type can be the matched candidate encoder packet of picture block It includes: picture type encoder and chart type encoder.
In an alternative embodiment, by taking character block as an example, the classification of character block can continue to classify, and obtain To two seed classifications, two seed classifications are respectively Chinese character-shaped and alpha type, can be the matched candidate encoder of character block therefore It include: Chinese character-shaped image encoder and alpha type image encoder
Step S106 determines the corresponding subject encoder of block from least two candidate encoder.
For a block, after for a variety of candidate encoders of Block- matching, need to select from a variety of candidate encoders One subject encoder encodes the block.The needs of subject encoder compile block compression ratio with higher, i.e. target Code stream after code device coding is smaller and has preferable encoding efficiency.
By taking the candidate encoder of character block is Chinese character-shaped image encoder and alpha type image encoder as an example, for current The block for needing to encode can have better encoding efficiency using Chinese character-shaped image encoder if the Chinese character in the block is more, If the letter in the block is more, there is better encoding efficiency using alpha type image encoder.But due to each text In block, the distribution proportion of Chinese character or letter might not be identical, so if directly using Chinese character to the character block in image Type encoder or the encoding efficiency that directly character block in image cannot be all optimal using alpha type encoder, therefore, It needs that it is selected to correspond to subject encoder according to block itself.
Specifically, the index for selection target encoder can be set, such as;Code efficiency determines each time Code efficiency when encoder being selected to encode current block, thus selection target encoder.
Step S108, using subject encoder to the block coding.
In above-mentioned steps, due to subject encoder be with the most matched candidate encoder of current block, use target Encoder encodes block, can reach higher code efficiency.
In practical applications, identify that the result after macro block cannot be changed again, and the order of accuarcy identified also will affect volume The performance of code compression, therefore, above scheme is controllably handled recognition result, that is, carrying out one to it according to recognition result Mapping to more (classification results correspond to a variety of candidate encoders), so that use is corresponding after macro block determines classification every time A variety of candidate encoders all carry out coded treatment, there are two kinds of processing modes of the same macro block, and in the two results, It is preferentially chosen, in the method that this realizes adaptive coding, and then reaches reduction compression efficiency, protect coding efficiency Purpose.
From the foregoing, it will be observed that image to be encoded is carried out piecemeal, and classification belonging to each piece of determination by the above embodiments of the present application, For any one or more at least two candidate encoders of classification and matching, at least two candidate encoders respectively with the classification Subclassification is corresponding, and the corresponding subject encoder of block is determined from least two candidate encoder, uses subject encoder pair The block coding.Above scheme is a variety of candidate encoders of sorted Block- matching, and encodes from candidate encoder selection target Device, the subject encoder selected are the optimum code device of the block, are encoded using subject encoder to current block, from And be able to solve in the prior art when being encoded to image, due to being difficult to that corresponding encoder is selected to cause encoding efficiency low Under technical problem.
Optionally, according to the above embodiments of the present application, the corresponding mesh of block is determined from least two candidate encoder Mark encoder, comprising:
Step S1061 obtains the code efficiency of each candidate encoder.
Specifically, above-mentioned code efficiency can be used for characterizing when candidate encoder encodes block
Step S1063 determines that the highest candidate encoder of code efficiency is subject encoder.
In above-mentioned steps, with the index of code efficiency alternatively subject encoder, to be determined according to code efficiency With the most matched subject encoder of current block.
Optionally, according to the above embodiments of the present application, the code efficiency of each candidate encoder is obtained, comprising:
Step S10611 obtains the coding parameter of each candidate encoder, wherein each candidate encoder Coding parameter includes: encoding code stream size parameter and coding performance parameter.
Specifically, encoding code stream size can indicate the occupied bandwidth in transmission, code stream is smaller, occupied bandwidth It is smaller, therefore wish that the encoding code stream after encoding is smaller in an encoding process;And coding performance parameter can be for evaluation figure The PSNR of image quality amount can be obtained by calculating the Y-PSNR of candidate encoder, therefore be wished have in an encoding process Higher coding efficiency.
Step S10613 determines the ratio between the coding performance parameter and the encoding code stream size parameter for coding ginseng Number determines the code efficiency of each candidate encoder.
In above-mentioned steps, it regard the ratio between coding performance parameter and encoding code stream size as code efficiency, that is, passes through coding Parameter has obtained the index for determining subject encoder, and in the case where this index is code efficiency, code efficiency is bigger, Code stream after illustrating coding is smaller or coding efficiency is higher, can reach higher coding efficiency using lesser code stream.
Optionally, according to the above embodiments of the present application, the corresponding mesh of block is determined from least two candidate encoder Mark encoder, comprising:
Step S1065 obtains the coding parameter of each candidate encoder, wherein the coding parameter of each candidate encoder It include: encoding code stream size parameter and coding performance parameter.
Specifically, above-mentioned coding parameter has identical meaning with the coding parameter in step S10611.
Step S1067 successively compares the coding parameter of two candidate encoders, and compared according to comparison result from participation A candidate encoder is selected in two candidate encoders.
In above-mentioned steps, coding parameter includes encoding code stream size parameter and coding performance parameter, when being compared, It needs for two parameters to be all compared.The candidate code opposite for the comparison result of encoding code stream size and coding efficiency Device selects encoding code stream size smaller, the biggish encoder of coding efficiency;And for the ratio of encoding code stream size and coding efficiency Candidate encoder identical compared with result, then it needs to be determined that the encoding code stream size of candidate encoder higher for coding efficiency with The ratio between the encoding code stream size of the lower candidate encoder of coding efficiency, to be selected according to ratio.
The candidate encoder of selection is compared by step S1069 with next candidate encoder, until all is described Candidate encoder all compares, and determines that the candidate encoder of final choice is the subject encoder.
In classification tool there are two in the case where candidate encoder, subject encoder can be obtained by once comparing, having In the case where having n candidate encoder, need that subject encoder can be obtained by n-1 comparison.
Optionally, according to the above embodiments of the present application, the coding parameter of each candidate encoder includes: successively to compare The coding parameter of two candidate encoders, and waited for selection one from two candidate encoders for participating in comparing according to comparison result Select encoder, comprising:
Step S10671, in the case where the first code stream is less than the second code stream, if the first coding efficiency is greater than or equal to Second coding efficiency then selects the first candidate encoder, wherein first code stream and first coding efficiency are to participate in ratio Compared with two candidate encoders in the first candidate encoder coding parameter, second code stream and second coding efficiency are Participate in the coding parameter of the second candidate encoder in two candidate encoders compared.
In above-mentioned steps, in the case where the first code stream is less than the second code stream, if the first coding efficiency is greater than or waits In the second coding efficiency, illustrate that the first candidate encoder is able to use lesser code stream and obtains higher or equal coding efficiency, In order to save bandwidth, the first candidate encoder is selected.
Step S10673, in the case where first code stream is less than second code stream, if described first is Encoding Second coding efficiency can be less than, then judge the ratio of the first code stream and second code stream whether less than the first preset value, First candidate encoder is selected in the case where ratio is less than the first preset value.
In above-mentioned steps, the first code stream is less than the second code stream, while the first coding efficiency is less than the second coding efficiency, because This can determine that the second candidate encoder has obtained preferable coding efficiency using biggish code stream, in order to select one of time Select encoder, it is thus necessary to determine that, the corresponding code stream of the second candidate encoder code stream whether corresponding with the first candidate encoder Differ larger, if difference is larger, It is not necessary to exchange the promotion of coding efficiency for using biggish code stream, if difference compared with It is small, then it can choose the second candidate encoder.
In order to determine whether biggish second candidate encoder of necessary choice code stream, can by judge the first code stream with Whether the ratio of second code stream determine less than the first preset value, specifically, since the first code stream is less than the second code stream, because The ratio of this first code stream and the second code stream is in section (0,1), can be set above-mentioned first preset value be (1/1.5), when than When value is less than the first preset value, illustrate that the gap of the first code stream and the second code stream is larger, is then exchanged for without using biggish code stream Coding efficiency is promoted, and selects the first candidate encoder;When ratio is greater than or equal to the first preset value, illustrate the first code stream and the The gap of two code streams is smaller, can choose the second candidate encoder
Step S10675, in the case where first code stream is greater than second code stream, if described first is Encoding Second coding efficiency can be less than or equal to, then select second candidate encoder.
In above-mentioned steps, in the case where the first code stream is greater than the second code stream, if the first coding efficiency is less than or waits In the second coding efficiency, illustrate that the second candidate encoder is able to use lesser code stream and obtains higher or equal coding efficiency, In order to save bandwidth, then the second candidate encoder is selected.
Step S10677, in the case where first code stream is greater than second code stream, if described first is Encoding Second coding efficiency can be greater than, then judge whether the ratio of second code stream and first code stream is default less than second Value, first candidate encoder is selected in the case where the ratio is less than the second preset value.
Above-mentioned steps S10677 is identical as the principle of step S10673, since the first code stream is greater than the second code stream, the The ratio of two code streams and the first code stream also belongs to section (0,1), and it is (1/1.5) that the second preset value, which equally can be set,.
Optionally, according to the above embodiments of the present application, the corresponding candidate encoder of the picture block includes: chart type picture Encoder, and/or picture type image encoder.
Optionally, according to the above embodiments of the present application, the corresponding candidate encoder of the character block includes: Chinese character-shaped picture Encoder, and/or alpha type image encoder.
Fig. 2 as shown in connection with fig. 2, is shown at this according to a kind of flow chart of optional coding method of the embodiment of the present application In example by taking character block as an example, coding method provided by the above embodiment is described in detail;
Step S21 generates the block of m*n.In above-mentioned steps, the frame W × H in screen video is obtained, and be divided into m The block of × n.
Step S22, the type of decision block.In above-mentioned steps, block is divided by the characteristic that can use text and picture Character block, picture block and other blocks, having a size of (W/m) × (H/n).If block type is character block, S23 is entered step, such as Fruit block type is picture block, then enters step S26, if block type is other blocks, enters step S29.
In this example, for i-th of macro block, if its result has been divided into character block, then utilizing Chinese character-shaped text Encoder and alphabet type letters encoder carry out compressed encoding processing to the macro block as candidate encoder.Below to how right Selection target coding is illustrated:
Step S23 selects coding mode.S24 is entered step when selecting coding mode to encode for Chinese character-shaped image, is being selected The coding mode selected is that alpha type image enters step S25 when encoding.
The performance fiducial value for obtaining two different candidate encoders, such as encoding code stream size S and coding efficiency P.It compiles Code code stream size can be directly obtained by the coding result of literal code device, and coding efficiency can calculate the peak of candidate encoder Value signal-to-noise ratio carries out calculating acquisition, that is, evaluates the PSNR of picture quality.
According to above-mentioned steps, if the first encoder 1 and second encoder 2 be expressed as Chinese character-shaped candidate encoder and Alpha type candidate encoder, then encoding code stream the size parameter Si1 and Si2 of the text macro block can be obtained respectively, while can also Obtain coding performance parameter Pi1 and Pi2.
As Si1<Si2, if Pi1>Pi2, candidate encoder 1 is chosen as subject encoder, the block is carried out finally Coded treatment;If Pi1=Pi2, candidate encoder 1 is still chosen as subject encoder, the block is carried out at final coding Reason;If when Pi1 < Pi2, if (Si1/Si2) < (1/1.5), chooses candidate encoder 1, otherwise, choosing candidate encoder 2。
As Si1>Si2, if Pi1>Pi2, if (Si2/Si1)<(1/1.5), chooses candidate encoder 2, otherwise, choosing Take candidate encoder 1;If Pi1=Pi2, candidate encoder 2 is chosen as subject encoder and carries out final coding to the block Processing;If when Pi1 < Pi2, choosing candidate encoder 2 as subject encoder and carrying out final coded treatment to the block.
Step S24 calls Chinese character-shaped image encoder to encode block.
Step S25 calls alpha type image encoder to encode block.
Step S26 selects coding mode picture block to can be used the side similar with step S23 in above-mentioned steps The coding mode of formula selection block.
Step S27 calls picture type image encoder.
Step S28, calling figure phenotype image encoder.
Step S29 calls other image encoders.
Step S210 is encoded by the corresponding encoder of block.
Embodiment 2
According to embodiments of the present invention, a kind of embodiment of the code device of image is provided, Fig. 3 is to implement according to the present invention The schematic diagram of the code device of the image of example, as shown in figure 3,
Determining module 30, for image to be encoded to be carried out piecemeal, and classification belonging to each piece of determination, wherein classification It include: picture block, character block and other blocks.
Matching module 32, for being any one or more at least two candidate encoders of classification and matching, at least two are waited Select encoder corresponding with the subclassification of classification respectively.
Determining module 34, for determining the corresponding subject encoder of block from least two candidate encoders.
Coding module 36, for using subject encoder to block coding.
From the foregoing, it will be observed that image to be encoded is carried out piecemeal by determining module by the above embodiments of the present application, and determine each Classification belonging to block, by matching module be any one or more at least two candidate encoders of classification and matching, at least two Candidate encoder is corresponding with the subclassification of the classification respectively, true from least two candidate encoder according to determining module The corresponding subject encoder of block is determined, by coding module using subject encoder to the block coding.Above scheme is after classifying The a variety of candidate encoders of Block- matching, and from candidate encoder selection target encoder, the subject encoder selected is The optimum code device of the block encodes current block using subject encoder, so as to solve in the prior art to figure When picture is encoded, due to the technical problem for being difficult to that corresponding encoder is selected to cause encoding efficiency low.
Embodiment 3
According to embodiments of the present invention, a kind of storage medium is provided, storage medium includes the program of storage, wherein in institute State the coding method that equipment where controlling the storage medium when program operation executes image described in embodiment 1.
Embodiment 4
According to embodiments of the present invention, a kind of processor is provided, processor is for running program, wherein described program fortune The coding method of image described in embodiment 1 is executed when row.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (8)

1. a kind of coding method of image characterized by comprising
Image to be encoded is subjected to piecemeal, and classification belonging to each piece of determination, wherein the classification includes: picture block, text Block and other blocks;
For any one or more at least two candidate encoders of classification and matching, at least two candidate encoders respectively with described point The subclassification of class is corresponding;
The corresponding subject encoder of block is determined from least two candidate encoder;
Using subject encoder to the block coding;
The step of corresponding subject encoder of block is determined from least two candidate encoder further include:
Obtain the coding parameter of each candidate encoder, wherein the coding parameter of each candidate encoder includes: coding code Flow size parameter and coding performance parameter;
Successively compare the coding parameter of two candidate encoders, and two candidate encoders compared according to comparison result from participation One candidate encoder of middle selection;
The candidate encoder of selection is compared with next candidate encoder, until all candidate encoder all into It has gone and has compared, determined that the candidate encoder of final choice is the subject encoder;
Successively compare the coding parameter of two candidate encoders, and two candidate encoders compared according to comparison result from participation One candidate encoder of middle selection, comprising:
In the case where the first code stream is less than the second code stream, if the first coding efficiency is greater than or equal to the second coding efficiency, Select the first candidate encoder, wherein first code stream and first coding efficiency, which are that participate in comparing two are candidate, to be compiled The coding parameter of the first candidate encoder in code device, second code stream and second coding efficiency are participate in comparing two The coding parameter of the second candidate encoder in a candidate encoder;
In the case where first code stream is less than second code stream, compiled if first coding efficiency is less than described second Code performance, then judge the ratio of first code stream and second code stream whether less than the first preset value, it is small in the ratio First candidate encoder is selected in the case where the first preset value;
In the case where first code stream is greater than second code stream, if first coding efficiency is less than or equal to described Second coding efficiency then selects second candidate encoder;
In the case where first code stream is greater than second code stream, compiled if first coding efficiency is greater than described second Code performance, then judge the ratio of second code stream and first code stream whether less than the second preset value, it is small in the ratio First candidate encoder is selected in the case where the second preset value.
2. the method according to claim 1, wherein determining that block is corresponding from least two candidate encoder Subject encoder, comprising:
Obtain the code efficiency of each candidate encoder;
Determine that the highest candidate encoder of the code efficiency is the subject encoder.
3. according to the method described in claim 2, it is characterized in that, the code efficiency of acquisition each candidate encoder, packet It includes:
Obtain the coding parameter of each candidate encoder, wherein the coding parameter of each candidate encoder includes: to compile Code code stream size parameter and coding performance parameter;
Determine that the ratio between the coding performance parameter and the encoding code stream size parameter are that the coding parameter determines described each The code efficiency of candidate encoder.
4. coding method as claimed in any of claims 1 to 3, which is characterized in that the corresponding time of the picture block Selecting encoder includes: chart type image encoder, and/or picture type image encoder.
5. coding method as claimed in any of claims 1 to 3, which is characterized in that the corresponding time of the character block Selecting encoder includes: Chinese character-shaped image encoder, and/or alpha type image encoder.
6. a kind of code device of image characterized by comprising
Determining module, for image to be encoded to be carried out piecemeal, and classification belonging to each piece of determination, wherein the classification packet It includes: picture block, character block and other blocks;
Matching module, for being any one or more at least two candidate encoders of classification and matching, at least two candidate codes Device is corresponding with the subclassification of the classification respectively;
Determining module, for determining the corresponding subject encoder of block from least two candidate encoder;
Coding module, for using subject encoder to the block coding;
The determining module includes:
Parameter acquisition submodule, for obtaining the coding parameter of each candidate encoder, wherein each candidate encoder Coding parameter includes: encoding code stream size parameter and coding performance parameter;
Submodule is selected, is compared for successively comparing the coding parameter of two candidate encoders, and according to comparison result from participation Two candidate encoders in select a candidate encoder;
Comparative sub-module, for the candidate encoder of selection to be compared with next candidate encoder, until all institutes It states candidate encoder all to compare, determines that the candidate encoder of final choice is the subject encoder;
The selection submodule includes:
First selecting unit is used in the case where the first code stream is less than the second code stream, if the first coding efficiency is greater than or waits In the second coding efficiency, then the first candidate encoder is selected, wherein first code stream and first coding efficiency are to participate in The coding parameter of the first candidate encoder in two candidate encoders compared, second code stream and described second Encoding The coding parameter for the second candidate encoder in two candidate encoders that can compare for participation;
Second selecting unit is used in the case where first code stream is less than second code stream, if first coding Performance is less than second coding efficiency, then judges whether the ratio of first code stream and second code stream is pre- less than first If value, first candidate encoder is selected in the case where the ratio is less than the first preset value;
Third selecting unit is used in the case where first code stream is greater than second code stream, if first coding Performance is less than or equal to second coding efficiency, then selects second candidate encoder;
4th selecting unit is used in the case where first code stream is greater than second code stream, if first coding Performance is greater than second coding efficiency, then judges whether the ratio of second code stream and first code stream is pre- less than second If value, first candidate encoder is selected in the case where the ratio is less than the second preset value.
7. device according to claim 6, which is characterized in that the determining module includes:
Acquisition submodule, for obtaining the code efficiency of each candidate encoder;
Submodule is selected, for selecting described piece of corresponding target code according to the coding parameter of each candidate encoder Device.
8. device according to claim 7, which is characterized in that the acquisition submodule includes:
Acquiring unit, for obtaining the coding parameter of each candidate encoder, wherein the volume of each candidate encoder Code parameter includes: encoding code stream size parameter and coding performance parameter;
Determination unit, for determining the coding performance parameter and the encoding code stream size parameter to than for the coding parameter Determine the code efficiency of each candidate encoder.
CN201710970544.4A 2017-10-17 2017-10-17 The coding method of image and device Active CN107749989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710970544.4A CN107749989B (en) 2017-10-17 2017-10-17 The coding method of image and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710970544.4A CN107749989B (en) 2017-10-17 2017-10-17 The coding method of image and device

Publications (2)

Publication Number Publication Date
CN107749989A CN107749989A (en) 2018-03-02
CN107749989B true CN107749989B (en) 2019-11-05

Family

ID=61253963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710970544.4A Active CN107749989B (en) 2017-10-17 2017-10-17 The coding method of image and device

Country Status (1)

Country Link
CN (1) CN107749989B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446041B (en) * 2018-05-02 2021-11-19 中兴通讯股份有限公司 Video encoding and decoding method, device, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023297A (en) * 1997-05-28 2000-02-08 Sony Corporation Encoding method and encoder using it
CN101060629A (en) * 2007-04-27 2007-10-24 华为技术有限公司 Image compression/decompression method and image coder/decoder and decoding circuit
CN101800629A (en) * 2010-04-07 2010-08-11 无锡泛联物联网科技股份有限公司 Network coding method of code efficiency perception
CN105472392A (en) * 2015-12-11 2016-04-06 钟炎培 Screen video encoding and decoding method based on progressive character block compression and encoding and decoding device
CN106303650A (en) * 2016-08-31 2017-01-04 成都炫境科技有限公司 Audio video synchronization display packing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023297A (en) * 1997-05-28 2000-02-08 Sony Corporation Encoding method and encoder using it
CN101060629A (en) * 2007-04-27 2007-10-24 华为技术有限公司 Image compression/decompression method and image coder/decoder and decoding circuit
CN101800629A (en) * 2010-04-07 2010-08-11 无锡泛联物联网科技股份有限公司 Network coding method of code efficiency perception
CN105472392A (en) * 2015-12-11 2016-04-06 钟炎培 Screen video encoding and decoding method based on progressive character block compression and encoding and decoding device
CN106303650A (en) * 2016-08-31 2017-01-04 成都炫境科技有限公司 Audio video synchronization display packing

Also Published As

Publication number Publication date
CN107749989A (en) 2018-03-02

Similar Documents

Publication Publication Date Title
CN106534846B (en) A kind of screen content and natural contents divide and fast encoding method
CN107566842B (en) The methods, devices and systems of image coding and decoding compression
CN106385592B (en) Method for compressing image and device
CN103886623A (en) Image compression method and equipment, and system
CN1238100A (en) Vector quantisation codebook generation method
CN106686384B (en) The compression method and device and method for compressing image and device of character block
JP2014099905A (en) Video compression method
CN106851280B (en) The method and apparatus of compression of images
CN105453565B (en) Video coding apparatus, video decoder, video system, method for video coding, video encoding/decoding method
CN110087083A (en) The selection method of prediction mode for chroma, image processing equipment and storage equipment in frame
CN110073663A (en) Use the transformation coefficient code of rank figure
Wang et al. Content-based utility function prediction for real-time MPEG-4 video transcoding
CN110312134B (en) Screen video coding method based on image processing and machine learning
CN106385585B (en) The method, apparatus of frame encoding and decoding, system, storage medium
CN107147913B (en) The transmission method and device of character block
CN108881913A (en) The method and apparatus of image coding
CN106331716B (en) Video-frequency compression method and device
CN107749989B (en) The coding method of image and device
CN107172430B (en) The coding method of character block and device
CN106604032B (en) Method and device for compressing Chinese character blocks in image and method and device for compressing image
CN116016929A (en) Intra-frame prediction encoding and decoding method, electronic device, and computer-readable storage medium
CN106851294B (en) The compression method and device of image and its compression method and device of character block
CN107770539A (en) The coding method of character block and device and its coding/decoding method and device
CN108235038A (en) The method and apparatus of image coding and decoding compression
CN107197273B (en) The coding method of image and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230105

Address after: Room 740, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai, 200072

Patentee after: Shanghai Jingda Xinlian Information Technology Co.,Ltd.

Address before: Room d102, building 4, Fengye Xindu District, hi tech Zone, Xi'an City, Shaanxi Province

Patentee before: XI'AN VANXVM ELECTRONICS TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230801

Address after: 710075, 2nd Floor, Building 5, Taiwei Zhilian Center, No. 8 Tangyan South Road, High tech Zone, Xi'an City, Shaanxi Province

Patentee after: XI'AN VANXVM ELECTRONICS TECHNOLOGY Co.,Ltd.

Address before: Room 740, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai, 200072

Patentee before: Shanghai Jingda Xinlian Information Technology Co.,Ltd.