CN101783952A - Coding optimization method and coding optimization device for images - Google Patents

Coding optimization method and coding optimization device for images Download PDF

Info

Publication number
CN101783952A
CN101783952A CN 201010118960 CN201010118960A CN101783952A CN 101783952 A CN101783952 A CN 101783952A CN 201010118960 CN201010118960 CN 201010118960 CN 201010118960 A CN201010118960 A CN 201010118960A CN 101783952 A CN101783952 A CN 101783952A
Authority
CN
China
Prior art keywords
coding
data
lossy
lossless
piecemeal
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
CN 201010118960
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.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies 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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN 201010118960 priority Critical patent/CN101783952A/en
Publication of CN101783952A publication Critical patent/CN101783952A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a coding optimization method and a coding optimization device for images. The images are partitioned into blocks; each block is analyzed so as to select a proper coding mode for each block; for areas suitable for lossless coding, the areas are coded in a lossless coding mode; and for areas suitable for lossy coding, the areas are coded in a lossy coding mode; therefore, in spite of types of the images, the optimal image quality and the least data quantity can be achieved always.

Description

Image optimization coding method and optimization code device
Technical field
The present invention relates to technical field of image processing, particularly a kind of image optimization coding method and image optimization code device.
Background technology
The computer grating image is being stored, when transmitting, in order to reduce data volume, can adopted various data compression algorithms that it is compressed, or be referred to as it is carried out image encoding.The coded system that image is encoded is from being divided into two kinds by and large: lossless compress (lossless coding) and lossy compression method (lossy coding).Lossless coding is hindered image lossless, and process is reversible, and the image of decoded image before with decoding is identical, but compression ratio is not high usually, and data volume is bigger, is suitable for simple picture, the occasion of a large amount of repetition pixel datas is arranged; And lossy compression method normally according to circumstances, under visually-acceptable situation, discard the part details, to reach very high compression ratio, data volume is less, but process is irreversible, image before decoded image and the coding is incomplete same, is suitable for complicated picture, pixel data continually varying occasion.
In real world applications, often adopt different coded systems with use occasion according to different characteristics of image.For example, for digital video, digital photos or the like, often adopt the lossy compression method coded system to obtain bigger compression ratio, because picture material is enriched changeable, human eye is also insensitive to some details of image, the partial content that loses normally is not easy to discover, even if therefore people to picture quality under the exigent situation, use the lossy compression method algorithm also to be easy to reach their requirement limitedly, for example, use jpeg algorithm, be not more than at 10: 1 o'clock, be difficult to find out the variation of compression front and back image usually at compression ratio.And when the situation that the desktop that uses a computer, document, form etc. are used, the mode that then usually adopts lossless compression-encoding is to obtain the better pictures quality, because in this class image, the color that large area region is arranged is identical, use very simple compression algorithm just can obtain satisfied compression ratio, usually can reach 5~10: 1, even can reach 20: 1, and can not lose picture quality.
But, in some application scenario, be to carry out clear and definite differentiation to above-mentioned two kinds of situations, for example when using a computer desktop, also browse photo simultaneously or watch video, use in above-mentioned two kinds of coded systems any one all can't obtain good effect separately.If only adopt the coded system that diminishes, data volume can be very little, but will see tangible image impairment for the table for computer face portion, usually can image deterioration appear in the place on literal, lines, image change border, the obvious variation of picture quality, this is unacceptable in the occasion that picture quality is had relatively high expectations; And if only adopt harmless coded system, can fully guarantee the picture quality of tabletop section, but browse content in the window for video playback or photo, use simple lossless compression algorithm just can't play a role, view data is compressed hardly or has only a spot of compression, data volume is very big, and this occasion for data volume sensitivities such as the memory capacity or the network bandwidths also is can't be received.
Summary of the invention
At above-mentioned problems of the prior art, the object of the present invention is to provide a kind of image optimization coding method and image optimization code device, it can select coded system targetedly, the image that is fit to lossless coding is adopted the lossless coding mode, the image that is fit to lossy coding is adopted the lossy coding mode, with the quality that satisfies different images simultaneously and the demand of data volume.
For achieving the above object, the present invention by the following technical solutions:
A kind of image optimization coding method comprises step:
Coding side reads the lossless coding scope of setting, the lossy coding scope, adopt predetermined lossless coding pattern that image is carried out the lossless coding data that lossless coding obtained and kept lossless coding corresponding to the part of described lossless coding scope, adopt predetermined lossy coding pattern that image is carried out the lossy coding data that lossy coding obtained and kept lossy coding corresponding to the part of described lossy coding scope, according to described lossless coding data and the described lossy coding data back data that obtain encoding, data comprise described lossless coding data behind the described coding, described lossy coding data;
Perhaps
Coding side is according to being scheduled to divide block size to image block, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, and judge respectively according to the compression ratio of the lossless coding of piecemeal whether each piecemeal is fit to lossless coding, if be fit to, the lossless coding data that keep this piecemeal, if be not suitable for, adopt predetermined lossy coding mode this piecemeal recompile to be obtained and keeps the lossy coding data of this piecemeal, lossless coding data according to described reservation, data after the lossy coding data of described reservation obtain encoding, data comprise the lossless coding data of described reservation behind the described coding, the lossy coding data of described reservation;
Perhaps
Coding side is according to being scheduled to divide block size to image block, adopt predetermined lossy coding pattern that each piecemeal is carried out lossy coding, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, and judge respectively that according to the compression ratio of the lossless coding of piecemeal each piecemeal is fit to lossless coding, if be fit to, the lossless coding data that keep this piecemeal, abandon the lossy coding data of this piecemeal, if be not suitable for, the lossy coding data that keep this piecemeal, abandon the lossless coding data of this piecemeal, determine coding back data according to the lossless coding data of described reservation and the lossy coding data of reservation, data comprise the lossless coding data of described reservation behind the described coding, the lossy coding data of described reservation.
A kind of image optimization coding method comprises step:
Coding side adopts predetermined lossy coding mode that image is carried out lossy coding, according to the predetermined block size that divides image is carried out piecemeal, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, and judge respectively according to the compression ratio of the lossless coding of piecemeal whether each piecemeal is fit to lossless coding, if be fit to, the lossless coding data that keep this piecemeal, if be not suitable for, abandon the lossless coding data of this piecemeal, determine coding back data according to the lossy coding data of described lossy coding and the lossless coding data of described reservation, data comprise the lossless coding data of described reservation behind the described coding, described lossy coding data.
A kind of image optimization code device comprises coding side, and described coding side comprises:
Read the unit that is provided with of default coding mode that the user is provided with, with the unit be set be connected, adopt predetermined lossless coding pattern that image is carried out the lossless coding unit that lossless coding obtains the lossless coding data, with the unit be set be connected, adopt predetermined lossy coding pattern that image is carried out the lossy coding unit that lossy coding obtains the lossy coding data, with the lossless coding unit, the lossy coding unit is connected, with described predetermined lossless coding pattern or described predetermined lossy coding pattern and the coding side Transmit-Receive Unit of coding back data to the decoding end transmission, data comprise described lossless coding data or described lossy coding data behind the described coding;
A kind of image optimization code device comprises coding side, and described coding side comprises:
Read the unit that is provided with of lossless coding scope that the user is provided with and lossy coding scope, with the unit be set be connected, adopt predetermined lossless coding pattern that image is carried out the lossless coding unit that lossless coding obtains the lossless coding data corresponding to the part of described lossless coding scope, with the unit be set be connected, adopt predetermined lossy coding pattern that image is carried out the lossy coding unit that lossy coding obtains the lossy coding data corresponding to the part of described lossy coding scope, be connected with the lossy coding unit with the lossless coding unit, with described predetermined lossy coding pattern, predetermined lossless coding pattern and the coding side Transmit-Receive Unit of coding back data to the decoding end transmission, data comprise described lossless coding data behind the described coding, the lossy coding data;
Perhaps
Described coding side comprises:
According to the predetermined branch module unit that divides block size image to be carried out piecemeal, be connected with a minute module unit, adopt predetermined lossless coding pattern that each piecemeal is carried out the lossless coding unit that lossless coding obtains the lossless coding data, be connected with a minute module unit, adopt predetermined lossy coding pattern that piecemeal is carried out the lossy coding unit that lossy coding obtains the lossy coding data, be connected with the lossy coding unit with the lossless coding unit, judge respectively that according to the compression ratio of lossless coding each piecemeal is fit to the adaptability judging unit of lossless coding, is connected with the adaptability judging unit with the lossy coding unit, the lossless coding data that will be fit to the piecemeal of lossless coding according to the judged result of adaptability judging unit, the lossy coding data that are fit to lossy coding, and predetermined lossless coding pattern, the coding side Transmit-Receive Unit that predetermined lossy coding pattern sends to decoding end.
A kind of image optimization code device comprises coding side, and described coding side comprises:
Adopt predetermined lossy coding mode that image is carried out the lossy coding unit that lossy coding obtains the lossy coding data, according to the predetermined branch module unit that divides block size described image to be carried out piecemeal, be connected with a minute module unit, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, obtain the lossless coding unit of the lossless coding data of each piecemeal, and be connected with the lossless coding unit, judge respectively according to the compression ratio of the lossless coding of each piecemeal whether each piecemeal is fit to the adaptability judging unit of lossless coding, if be fit to, the lossless coding data that then keep this piecemeal, if be not suitable for, then abandon the lossless coding data of this piecemeal, be connected with the adaptability judging unit with described lossy coding unit, with described lossy coding data, and the lossless coding data of each piecemeal that is kept, and predetermined lossy coding pattern, the coding side Transmit-Receive Unit that predetermined lossless coding pattern sends to decoding end.
According to image optimization coding method of the present invention and image optimization code device, mainly be by dividing coding region, for each coding region is provided with the corresponding codes pattern, each coding region adopts the corresponding codes pattern to encode respectively, or image carried out piecemeal, by each piecemeal analysis being come select proper encoding mode for each piecemeal, therefore, for the part that is fit to lossless coding, be to adopt the lossless coding mode to encode, for the part that is fit to lossy coding, be to adopt the lossy coding mode to encode, no matter thereby can reach is the image of which kind of type, always can obtain best picture quality and minimal data amount.
Description of drawings
Fig. 1 is the schematic flow sheet of image optimization coding method embodiment one of the present invention;
Fig. 2 is the schematic flow sheet of image optimization coding method embodiment two of the present invention;
Fig. 3 is the schematic flow sheet of image optimization coding method embodiment three of the present invention;
Fig. 4 is the schematic flow sheet of image optimization coding method embodiment four of the present invention;
Fig. 5 is the schematic flow sheet of image optimization coding method embodiment five of the present invention;
Fig. 6 is the structural representation of image optimization code device embodiment one of the present invention;
Fig. 7 is the structural representation of image optimization code device embodiment two of the present invention;
Fig. 8 is the structural representation of image optimization code device embodiment three of the present invention;
Fig. 9 is the structural representation of image optimization code device embodiment four of the present invention.
Embodiment
Below be described in detail at each specific embodiment of image optimization coding method of the present invention and image optimization code device.Consider that after image having been carried out coding when concrete the application, when for example image being shown, the work that also needs to decode accordingly could show, therefore, in the explanation of following each embodiment, all is simultaneously coding, decode procedure to be described.
Image optimization coding method of the present invention mainly is that each coding region adopts the corresponding codes pattern to encode respectively by the division coding region, for each coding region is provided with the corresponding codes pattern, and it specifically comprises step:
Coding side is encoded to image according to default coding mode, this default coding mode corresponding preset coding region, and described default coding mode, default coding region and coding back data are sent to decoding end, the default coding mode here can be predetermined lossless coding pattern, also can be predetermined lossy coding pattern;
To described coding back data decode, decoding end obtains decoding the back image according to the decoding schema of described default coding mode correspondence.
Based on different Considerations, when the concrete mode in coding region, when coding etc. is provided with, different set-up modes can be arranged, below be example just with wherein several concrete set-up mode, image optimization coding method of the present invention is elaborated.
Embodiment one:
Referring to shown in Figure 1, it is the schematic flow sheet of image optimization coding method embodiment one of the present invention, in the present embodiment, consider and to use different image types in different time sections, therefore by the coded system that image need use being set, satisfy the quality of different images and the demand of data volume simultaneously with this in the different time periods.
As shown in Figure 1, the image optimization coding method in the present embodiment comprises step:
Step S101: coding side receives the default coding mode that will use that the user is provided with, wherein, the default coding mode here, for contents such as use desktop documents, lossless coding pattern normally, and for contents such as video, photos, then lossy coding pattern normally enters step S102;
Step S102: the default coding mode that coding side adopts above-mentioned user to be provided with is encoded to image, and should preset coding mode and send to decoding end, enters step S 103;
Step S103: data send to decoding end behind the coding of coding side after with above-mentioned coding, and decoding end adopts the decoding schema of described default coding mode correspondence that this coded data is decoded.
In the scheme of present embodiment, it mainly is the consideration of using based on timesharing, promptly in a period of time, only use wherein a kind of function, desktop or electronic document for example only use a computer in a period of time, and in other a period of time a displaying video or browse photo, therefore can be to set corresponding different coding mode when using dissimilar functions in the different time periods, specifically can be to select the function of coded system to realize by in existing equipment or application program, increasing, can be by the suitable coding method of the according to circumstances manual selection of user.
In addition, in the above description, be to preset after coding mode sent to decoding end with coding side, the back data of will encoding again send to decode to bring in and describe, according to actual needs, also can be that coding mode is sent to decoding end simultaneously with coding back data, do not repeat them here.
In addition, in the scheme of present embodiment,, then can be initiatively to obtain the default coding mode that this coding side is using from coding side by this decoding end if the decoding end of new connection decoding device or application program is arranged.
Embodiment two:
Referring to shown in Figure 2, it is the schematic flow sheet of image optimization coding method embodiment two of the present invention, in the present embodiment, consider when using dissimilar images at the same time, the employed zone of all types of images is relatively fixing, therefore, and by difference according to image type, be the different zone of dissimilar image division, and make each zone use corresponding codes pattern separately.
As shown in Figure 2, the scheme in the present embodiment comprises step:
Step S201: coding side receives the lossless coding scope of the use lossless coding pattern of user's setting, the lossy coding scope of use lossy coding pattern, at this moment, above-mentioned default coding region comprises this lossless coding scope, lossy coding scope, default coded system has comprised predetermined lossless coding pattern, predetermined lossy coding pattern, enters step S202;
Step S202: coding side adopts predetermined lossless coding pattern that image is carried out lossless coding corresponding to the part of above-mentioned lossless coding scope, obtain the lossless coding data, adopt predetermined lossy coding pattern that image is carried out lossy coding corresponding to the part of above-mentioned lossy coding scope, obtain the lossy coding data, enter step S203;
Step S203: coding side sends the predetermined lossy coding pattern of the predetermined lossless coding pattern of above-mentioned lossless coding scope, this lossless coding scope correspondence, above-mentioned lossy coding scope, this lossy coding scope correspondence to decoding end, enter step S204;
Step S204: the lossless coding data of coding side after with lossless coding, the lossy coding data behind the lossy coding send to decoding end, enter step S205;
Step S205: decoding end adopts the decoding schema of predetermined lossless coding pattern correspondence that the lossless coding data are carried out losslessly encoding, adopted the decoding schema of predetermined lossy coding pattern correspondence that the lossy coding data are diminished decoding, and with decoded two groups of data, be the losslessly encoding data behind the losslessly encoding and diminish the decoded decoded data that diminishes, make up and obtain final decoded image.
In the scheme of present embodiment, consider and mix the situation of using, for example when handling document or desktop, also need be in window displaying video or browse photo or the like, different functional areas is relatively fixing, promptly in a certain period, each functional area generally can not change, therefore can divide different zones, make each regional work in different coded systems, with this little coding effect of data volume that obtains the high-quality and the lossy coding of lossless coding simultaneously, can use configuration tool to divide when specifically using, do not repeat them here.
In addition, in the above description, be earlier coding mode to be sent to decoding end with coding region etc. with coding side, the back data of encoding and will encode send to decoding end and describe, according to actual needs, coding side also can be to carry out simultaneously to the process that decoding end sends coding mode, coding region and coding back data, does not repeat them here.
In addition, in the scheme of present embodiment,, then can be initiatively to obtain this each default coding region and each default coding region corresponding preset coding mode from coding side by this decoding end if the decoding end of new connection decoding device or application program is arranged.
In addition, when coding region is set, generally, all be to have only a window of watching video or picture, in some cases, also may need to have a plurality of videos or picture window, for example, watch video or picture or the like simultaneously, at this moment, corresponding lossy coding scope then has a plurality of, for these a plurality of lossy coding scopes, can be to adopt different lossy coding modes respectively, generally, for the consideration on the efficient, can adopt identical lossy coding mode to each lossy coding scope.Similarly, the lossless coding scope also can have a plurality of, and the lossless coding mode that each lossless coding scope is adopted can be identical, also can be inequality.
Embodiment three:
Referring to shown in Figure 3, be the schematic flow sheet of image optimization coding method embodiment three of the present invention, in the present embodiment, consider the situation about using of mixing, be earlier image to be carried out piecemeal, then each piecemeal analyzed to judge that each piecemeal uses any coding mode.In the present embodiment, each piecemeal is carried out lossless coding, judge recently that according to the compression of lossless coding this piecemeal is to be fit to lossless coding pattern or lossy coding pattern by using the lossless coding pattern.
As shown in Figure 3, the image optimization coding method in the present embodiment comprises step:
Step S301: coding side carries out piecemeal according to the predetermined block size that divides to image, and the predetermined minute block size here can be set as required, 64*64 pixel for example, and at this moment, above-mentioned default coding region comprises this each piecemeal, enters step S302;
Step S302: coding side adopts predetermined lossless coding pattern that each piecemeal is carried out lossless coding, enters step S303;
Step S303: coding side judges respectively according to the compression ratio of the lossless coding of piecemeal whether each piecemeal is fit to lossless coding, if be fit to, enters step S304, if be not suitable for, then enters step S305;
Step S304: keep the lossless coding data of this piecemeal, enter step S306;
Step S305: adopt predetermined lossy coding mode to this piecemeal recompile, obtain the lossy coding data of this piecemeal, enter step S306;
Step S306: will the encode coded system of back data and each piecemeal of coding side sends to decoding end, and data promptly are lossless coding data that kept and the lossy coding data that adopt the lossy coding mode to obtain behind the coding here, enter step S307;
Step S307: decoding end according to the decoding process of the coded system correspondence of each piecemeal to the coding of each piecemeal after data decode, and the data of decoded each piecemeal are spliced, the back image obtains decoding, promptly, adopt the losslessly encoding pattern of predetermined lossless coding pattern correspondence that the lossless coding data are carried out losslessly encoding, obtain the losslessly encoding data, adopt the losslessly encoding pattern of predetermined lossy coding pattern correspondence that the lossy coding data are diminished decoding, obtain diminishing decoded data, then to the losslessly encoding data and diminish decoded data splice obtain decoding the back image.
In the scheme of present embodiment, consider the situation about using of mixing, for example when handling document or desktop, also need be in window displaying video or browsing pictures, and functional area is change at any time also, therefore, and by image is carried out piecemeal, and judge that respectively each piecemeal is to be fit to use lossless coding mode or lossy coding mode, thereby obtain the little coding effect of data volume of the high-quality and the lossy coding of lossless coding simultaneously.
In addition, above-mentioned when image is carried out piecemeal, with predetermined branch block size is that the 64*64 pixel is an example, when image block deficiency 64*64 pixel, it can be supplied element, correspondingly into 64*64, after decoding, for the piecemeal of these not enough 64*64 pixels, also need to abandon the content of supplying part, concrete implementation does not repeat them here.
In addition, in the above description, predetermined branch block size all is to be that example describes with 64*64, and in fact, predetermined branch block size also can be other values such as 16*16 pixel, all is 82 usually N* 82 NPixel, N is a positive integer, so that the calculating of image algorithm, according to actual needs, predetermined branch block size value also can be to adopt other value, does not repeat them here.
In addition, when above-mentioned compression according to lossless coding judges recently whether this piecemeal is fit to lossless coding, can be that compression ratio and a predetermined compression threshold with the lossless coding of this piecemeal compares, when the compression ratio of this piecemeal during greater than this predetermined compression threshold, then can be judged to be this piecemeal is to be fit to lossless coding, when the compression ratio of this piecemeal during less than this predetermined compression threshold, then can be judged to be this piecemeal and be not suitable for lossless coding, should adopt lossy coding, concrete predetermined compression threshold can carry out freely setting as required.
Embodiment four:
Referring to shown in Figure 4, it is the schematic flow sheet of image optimization coding method embodiment four of the present invention, in the present embodiment, be with the difference of the foregoing description three, consider and mixing when using, shared regional more of video or picture usually, so after image is carried out piecemeal, earlier all piecemeals are carried out lossy coding, then each piecemeal is analyzed to judge that each piecemeal is fit to use any coding mode.In the present embodiment, each piecemeal is carried out lossless coding, judge recently that according to the compression of lossless coding this piecemeal is to be fit to lossless coding pattern or lossy coding pattern by using the lossless coding pattern.
As shown in Figure 4, the image optimization coding method in the present embodiment comprises step:
Step S401: coding side carries out piecemeal according to the predetermined block size that divides to image, and adopts predetermined lossy coding pattern that each piecemeal is carried out lossy coding, and the predetermined minute block size here can be set as required, and for example the 64*64 pixel enters step S402;
Step S402: coding side adopts predetermined lossless coding pattern that each piecemeal is carried out lossless coding, enters step S403;
Step S403: coding side judges respectively according to the compression ratio of the lossless coding of piecemeal whether each piecemeal is fit to lossless coding, if be fit to, enters step S404, if be not suitable for, then enters step S405;
Step S404: keep the lossless coding data of this piecemeal, abandon the lossy coding data of this piecemeal, enter step S406;
Step S405: keep the lossy coding data of this piecemeal, abandon the lossless coding data of this piecemeal, enter step S406;
Step S406: will the encode coded system of back data and each piecemeal of coding side sends to decoding end, and data promptly are the lossless coding data that kept and the lossy coding data of reservation behind the coding here, enter step S407;
Step S407: decoding end according to the decoding process of the coded system correspondence of each piecemeal to the coding of each piecemeal after data decode, and the data of decoded each piecemeal are spliced, the back image obtains decoding.Promptly, adopt the losslessly encoding pattern of predetermined lossless coding pattern correspondence that the lossless coding data are carried out losslessly encoding, obtain the losslessly encoding data, adopt the losslessly encoding pattern of predetermined lossy coding pattern correspondence that the lossy coding data are diminished decoding, obtain diminishing decoded data, then to the losslessly encoding data and diminish decoded data splice obtain decoding the back image.
In the scheme of present embodiment, consider the situation about using of mixing, for example when handling document or desktop, also need be in window displaying video or browsing pictures, functional area is change at any time, and shared regional relatively large of video or picture, therefore, by image is carried out piecemeal, after each piecemeal has been carried out lossy coding, judge respectively that again each piecemeal is to be fit to use lossless coding mode or lossy coding mode, thereby obtain the little coding effect of data volume of the high-quality and the lossy coding of lossless coding simultaneously.
Identical in other technologies feature in the present embodiment and the foregoing description three do not repeat them here.
Embodiment five:
Referring to shown in Figure 5, it is the schematic flow sheet of image optimization coding method embodiment five of the present invention, in the present embodiment, be, consider and mix when using with the difference of the foregoing description four, if each piecemeal is all encoded, the increased frequency of corresponding encoding and decoding influences encoding-decoding efficiency, therefore earlier image is used lossy coding, again image is carried out piecemeal, then each piecemeal is analyzed to judge that each piecemeal is fit to use any coding mode.In the present embodiment, each piecemeal is carried out lossless coding, judge recently that according to the compression of lossless coding this piecemeal is to be fit to lossless coding pattern or lossy coding pattern by using the lossless coding pattern.
As shown in Figure 5, the image optimization coding method in the present embodiment comprises step:
Step S501: coding side adopts predetermined lossy coding mode that image is carried out lossy coding, obtains the lossy coding data, enters step S502;
Step S502: coding side carries out piecemeal according to the predetermined block size that divides to image, the image here is the original image of encoding, the predetermined minute block size here can be set as required, 64*64 pixel for example, and adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, enter step S503;
Step S503: coding side judges respectively according to the compression ratio of the lossless compress of piecemeal whether each piecemeal is fit to lossless coding, if be fit to, enters step S504, if be not suitable for, then enters step S505;
Step S504: keep the lossless coding data of this piecemeal, enter step S506;
Step S505: abandon the lossless coding data of this piecemeal, enter step S506;
Step S506: data and predetermined lossy coding pattern, predetermined lossless coding pattern sent to decoding end after coding side will be encoded, data promptly comprise the above-mentioned lossy coding data that obtain by lossy coding and the lossless coding data of each piecemeal of being kept behind the coding here, enter step S507;
Step S507: decoding end diminishes decoding according to the decoding process that diminishes of predetermined lossy coding mode correspondence to described lossy coding data, obtains diminishing decoded picture, enters step S508;
Step S508: decoding end is decoded to the lossless coding data of above-mentioned each piecemeal that keeps according to the losslessly encoding mode of predetermined lossless coding mode correspondence, and each piecemeal behind the losslessly encoding covered on the above-mentioned correspondence position that diminishes decoded picture, image after the decoding to the end.
In the scheme of present embodiment, consider the situation about using of mixing, for example when handling document or desktop, also need be in window displaying video or browsing pictures, and functional area is change at any time also, and if image is carried out piecemeal, and respectively each piecemeal is all encoded, correspondingly the coding side coding often, the number of times of decoding was also many when decoding end was decoded, the encoding and decoding that influence is whole, therefore, at first the image before the piecemeal is not carried out the whole image encoding that diminishes, and then image carried out piecemeal, and judge that respectively each piecemeal is to be fit to use lossless coding mode or lossy coding mode, if be fit to the lossless coding mode, again this piecemeal is carried out lossless coding, if be fit to the lossy coding mode, owing to image is carried out whole lossy coding, the lossy coding that need not to carry out repetition this moment, thereby can obtain the little coding effect of data volume of the high-quality and the lossy coding of lossless coding simultaneously, and the coding number of times is few.Accordingly, in decoding end, its need are decoded to the lossy coding image of integral body and the lossless coding data that kept, be not to decode at each piecemeal, the decoding number of times significantly reduces, especially under the considerably less situation of the number of the piecemeal that is fit to the lossless coding mode, the decoding number of times has still less further improved decoding efficiency.
Identical in other technologies feature in the present embodiment and the foregoing description four do not repeat them here.
Image optimization coding method at the invention described above, the present invention also provides the image optimization code device, image optimization code device of the present invention comprises coding side, can also comprise decoding end, wherein, coding side is used for according to default coding mode, this default coding mode corresponding preset coding region image being encoded, and described default coding mode, default coding region and coding back data are sent to decoding end; Decoding end is used for according to the decoding schema of described default coding mode correspondence described coding back data decode, the back image that obtains decoding, and the default coding mode here can be predetermined lossless coding pattern, also can be predetermined lossy coding pattern.
Based on different Considerations, when the concrete mode during to coding region, coding etc. is provided with, different set-up modes can be arranged, thereby cause the setting of coding side, decoding end also different, below be example just with wherein several concrete set-up mode, image optimization code device of the present invention is elaborated.
Below just wherein several specific embodiments image optimization code device of the present invention is described in detail.As mentioned above, consider after image having been carried out coding, when concrete the application, also need the work of decoding accordingly, therefore, in the explanation of following each embodiment, all be to have comprised simultaneously that with this image optimization code device coding side, decoding end are illustrated.
Embodiment one:
As shown in Figure 6, be the structural representation of image optimization code device embodiment one of the present invention, as shown in the figure, in the image optimization code device of present embodiment, coding side includes:
The unit is set, is used to receive the default coding mode that will use that the user is provided with, wherein, the default coding mode here is for contents such as use desktop document, normally lossless coding pattern, and for contents such as video, photos, lossy coding pattern normally then;
With coding side the lossless coding unit that the unit is connected is set, is used for when the set default coding mode in unit being set being the lossless coding pattern, adopting predetermined lossless coding pattern that image is encoded, obtain the lossless coding data when above-mentioned;
With coding side the lossy coding unit that the unit is connected is set, is used for when the set default coding mode in unit being set being the lossy coding pattern, adopting predetermined lossy coding pattern that image is encoded, obtain the lossy coding data when above-mentioned;
The coding side Transmit-Receive Unit that is connected with above-mentioned lossless coding unit, lossy coding unit simultaneously is used for above-mentioned predetermined lossless coding pattern, lossless coding data, predetermined lossy coding pattern, lossy coding data are sent to decoding end;
Include in decoding end:
The decoding end Transmit-Receive Unit, be used for default coding mode and coding back data that the received code end sends, the default coding mode here can be above-mentioned predetermined lossless coding pattern or predetermined lossy coding pattern, and data can be above-mentioned lossless coding data or lossy coding data behind the coding here;
The losslessly encoding unit that is connected with the decoding end Transmit-Receive Unit is used to adopt the losslessly encoding pattern of predetermined lossless coding pattern correspondence that above-mentioned lossless coding data are carried out losslessly encoding, and the back image obtains decoding;
What be connected with the decoding end Transmit-Receive Unit diminishes decoding unit, is used to adopt the decoding schema that diminishes of predetermined lossy coding pattern correspondence that above-mentioned lossy coding data are diminished decoding, and the back image obtains decoding.
In the scheme of present embodiment, it mainly is the consideration of using based on timesharing, promptly in a period of time, only use wherein a kind of function, desktop or electronic document for example only use a computer in a period of time, and in other a period of time a displaying video or browse photo, therefore can be to set corresponding different coding mode when using dissimilar functions in the different time periods.
One of them idiographic flow can be:
When only using a computer desktop or electronic document, be set at and use the lossless coding pattern to encode by the unit is set, therefore, the lossless coding unit adopts predetermined lossless coding pattern that image is carried out lossless coding, obtain the lossless coding data, these lossless coding data and predetermined lossless coding pattern send to decoding end by the coding side Transmit-Receive Unit, wherein, sending predetermined lossless coding pattern can be to carry out simultaneously with the process that sends the lossless coding data, also can be that sequencing is arranged, after the decoding end Transmit-Receive Unit of decoding end receives, adopted the losslessly encoding pattern of this predetermined lossless coding pattern correspondence that these lossless coding data are carried out losslessly encoding by the losslessly encoding unit, the back image obtains decoding;
When a displaying video or browsing pictures, be set at and use the lossy coding pattern to encode by the unit is set, therefore, the lossy coding unit adopts predetermined lossy coding pattern that image is carried out lossy coding, obtain the lossy coding data, these lossy coding data and predetermined lossy coding pattern send to decoding end by the coding side Transmit-Receive Unit, wherein, sending predetermined lossy coding pattern can be to carry out simultaneously with the process that sends the lossy coding data, also can be that sequencing is arranged, after the decoding end Transmit-Receive Unit of decoding end receives, adopt the decoding schema that diminishes of this predetermined lossy coding pattern correspondence that these lossy coding data are diminished decoding by diminishing decoding unit, the back image obtains decoding.
Embodiment two:
As shown in Figure 7, it is the structural representation of image optimization code device embodiment of the present invention, in the present embodiment, mainly be by encoding respectively more afterwards for image division different lossy coding scope and lossless coding scope, as shown in the figure, in the image optimization code device of present embodiment, coding side includes:
The unit is set, be used to receive the use lossless coding pattern that the user is provided with the lossless coding scope, use the lossy coding scope of lossy coding pattern;
With the lossless coding unit that the unit is connected is set, be used to adopt predetermined lossless coding pattern that image is carried out lossless coding corresponding to the part of above-mentioned lossless coding scope, obtain the lossless coding data;
With the lossy coding unit that the unit is connected is set, be used to adopt predetermined lossy coding pattern that image is carried out lossy coding corresponding to the part of above-mentioned lossy coding scope, obtain the lossy coding data;
The coding side Transmit-Receive Unit that is connected with lossless coding unit, lossy coding unit simultaneously is used for above-mentioned lossless coding scope, predetermined lossless coding pattern, lossless coding data, lossy coding scope, predetermined lossy coding pattern, lossy coding data are sent to decoding end;
Include in decoding end:
The decoding end Transmit-Receive Unit is used for above-mentioned lossless coding scope, predetermined lossless coding pattern, lossless coding data, lossy coding scope, predetermined lossy coding pattern and lossy coding data that the received code end sends;
The losslessly encoding unit that is connected with the decoding end Transmit-Receive Unit is used to adopt the losslessly encoding pattern of predetermined lossless coding pattern correspondence that above-mentioned lossless coding data are carried out losslessly encoding, obtains the losslessly encoding data;
What be connected with the decoding end Transmit-Receive Unit diminishes decoding unit, is used to adopt the decoding schema that diminishes of predetermined lossy coding pattern correspondence that above-mentioned lossy coding data are diminished decoding, obtains diminishing decoded data;
Simultaneously with the losslessly encoding unit, diminish the covering superpositing unit that decoding unit is connected, be used for above-mentioned losslessly encoding data, diminish decoded data and carry out stack combinations and obtain image after the final decoding.
In the scheme of present embodiment, consider and mix the situation of using, for example when handling document or desktop, also need be in window displaying video or browse photo or the like, different functional areas is relatively fixing, promptly in a certain period, each functional area generally can not change, therefore can divide different zones, make each regional work, obtain the little coding effect of data volume of the high-quality and the lossy coding of lossless coding simultaneously with this in different coded systems.
Wherein, when coding region is set, generally, all be to have only a window of watching video or picture, in some cases, also may need to have a plurality of videos or picture window, for example, watch video or picture or the like simultaneously, at this moment, corresponding lossy coding scope then has a plurality of, for these a plurality of lossy coding scopes, can be to adopt different lossy coding modes respectively, generally, for the consideration on the efficient, each lossy coding scope can adopt identical lossy coding mode.Similarly, the lossless coding scope also can have a plurality of, and the lossless coding mode that each lossless coding scope is adopted can be identical, also can be inequality.
Embodiment three:
As shown in Figure 8, be the structural representation of image optimization code device embodiment three of the present invention, in the present embodiment, consider the situation about using of mixing, be by image is carried out piecemeal, and each piecemeal is analyzed to judge that each piecemeal uses any coding mode.In the present embodiment, each piecemeal is encoded, judge recently that according to the compression of lossless coding this piecemeal is to be fit to lossless coding pattern or lossy coding pattern by using the lossless coding pattern.
As shown in Figure 8, in the present embodiment, coding side includes:
Divide module unit, be used for according to the predetermined block size that divides image being carried out piecemeal, the predetermined minute block size here can be set as required, for example the 64*64 pixel;
The lossless coding unit that is connected with above-mentioned minute module unit is used to adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, obtains the lossless coding data;
The lossy coding unit that is connected with above-mentioned minute module unit is used to adopt predetermined lossy coding pattern that piecemeal is carried out lossy coding, obtains the lossy coding data of corresponding sub-block;
With the adaptability judging unit that above-mentioned lossless coding unit, lossy coding unit are connected, be used for judging respectively according to the compression ratio of lossless coding whether each piecemeal is fit to lossless coding;
The coding side Transmit-Receive Unit that is connected with above-mentioned lossy coding unit, adaptability judging unit, be used for judged result according to the adaptability judging unit, be fit to the lossless coding data of the piecemeal of lossless coding, the lossy coding data that are fit to lossy coding and predetermined lossless coding pattern, predetermined lossy coding pattern sends to decoding end;
Decoding end includes:
The decoding end Transmit-Receive Unit is used to receive lossless coding data, the lossy coding data that are fit to lossy coding and predetermined lossless coding pattern, the predetermined lossy coding pattern of the piecemeal of the suitable lossless coding that above-mentioned coding side send;
The losslessly encoding unit that is connected with the decoding end Transmit-Receive Unit is used to adopt the losslessly encoding pattern of predetermined lossless coding pattern correspondence that above-mentioned lossless coding data are carried out losslessly encoding, obtains the losslessly encoding data;
What be connected with the decoding end Transmit-Receive Unit diminishes decoding unit, is used to adopt the decoding schema that diminishes of predetermined lossy coding pattern correspondence that above-mentioned lossy coding data are diminished decoding, obtains diminishing decoded data;
Simultaneously with the losslessly encoding unit, diminish the covering superpositing unit that decoding unit is connected, be used for above-mentioned losslessly encoding data, diminish decoded data and carry out stack combinations and obtain image after the final decoding.
According to the difference that application choice needs, the course of work of this image optimization code device also can be different, below sets forth at two kinds of working methods wherein:
In a kind of working method therein, after dividing module unit that image is carried out piecemeal, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding by the lossless coding unit, obtain the lossless coding data of each piecemeal, judge according to the compression ratio that each piecemeal carries out lossless coding whether this piecemeal is fit to lossless coding by the adaptability judging unit then, if be fit to, the lossless coding data that then keep this piecemeal, if be not suitable for, illustrate that then this piecemeal should adopt the lossy coding pattern to encode, therefore adopt predetermined lossy coding pattern that this piecemeal is carried out lossy coding by the lossy coding unit, obtain the lossy coding data of this piecemeal, each piecemeal is carried out said process, thereby obtain the lossless coding data that after the adaptability judgment unit judges, remain, and the lossy coding data that obtain behind the lossy coding cell encoding, those lossless coding data, lossy coding data and predetermined lossy coding pattern, predetermined lossless coding pattern sends to decoding end, is decoded by decoding end;
In another working method, after minute module unit carries out piecemeal to image, adopt predetermined lossy coding pattern that each piecemeal is carried out lossy coding by the lossy coding unit, obtain the lossy coding data of each piecemeal, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding by the lossless coding unit then, obtain the lossless coding data of each piecemeal, judge according to the compression ratio that each piecemeal carries out lossless coding whether this piecemeal is fit to lossless coding by the adaptability judging unit then, if be fit to, the lossless coding data that then keep this piecemeal, abandon the lossy coding data of this piecemeal, if be not suitable for, illustrate that then this piecemeal should adopt the lossy coding pattern to encode, the lossy coding data that keep this piecemeal, abandon the lossless coding data of this piecemeal, those lossless coding data that remained, lossy coding data and predetermined lossy coding pattern, predetermined lossless coding pattern sends to decoding end, is decoded by decoding end.
According to the practical application needs, also can be the working method of setting other according to this device, do not repeat them here.
In addition, above-mentioned when image is carried out piecemeal, with predetermined branch block size is that the 64*64 pixel is an example, when image block deficiency 64*64 pixel, it can be supplied element, correspondingly into 64*64, after decoding, for the piecemeal of these not enough 64*64 pixels, also need to abandon the content of supplying part, concrete implementation does not repeat them here.
In addition, in the above description, predetermined branch block size all is to be that example describes with 64*64, and in fact, predetermined branch block size also can be other values such as 16*16 pixel, all is 82 usually N* 82 NPixel, N is a positive integer, so that the calculating of image algorithm, according to actual needs, predetermined branch block size value also can be to adopt other value, does not repeat them here.
In addition, when above-mentioned compression according to lossless coding judges recently whether this piecemeal is fit to lossless coding, can be that compression ratio and a predetermined compression threshold with the lossless coding of this piecemeal compares, when the compression ratio of this piecemeal during greater than this predetermined compression threshold, then can be judged to be this piecemeal is to be fit to lossless coding, when the compression ratio of this piecemeal during less than this predetermined compression threshold, then can be judged to be this piecemeal and be not suitable for lossless coding, should adopt lossy coding, concrete predetermined compression threshold can carry out freely setting as required.
Embodiment four:
As shown in Figure 9, be the structural representation of image optimization code device embodiment four of the present invention, in the present embodiment, earlier image used lossy coding, again image is carried out piecemeal, then each piecemeal is analyzed to judge that each piecemeal is fit to use any coding mode.In the present embodiment, each piecemeal is encoded, judge recently that according to the compression of lossless coding this piecemeal is to be fit to lossless coding pattern or lossy coding pattern by using the lossless coding pattern.
As shown in Figure 9, the coding side in the present embodiment includes:
The lossy coding unit is used to adopt predetermined lossy coding mode that image is carried out lossy coding, obtains the lossy coding data of figure;
Divide module unit, be used for according to the predetermined block size that divides image being carried out piecemeal, the image here is the original image of encoding, and the predetermined minute block size here can be set as required, for example the 64*64 pixel;
The lossless coding unit that is connected with minute module unit is used to adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, obtains the lossless coding data of each piecemeal;
The adaptability judging unit that is connected with the lossless coding unit, be used for judging respectively that according to the compression ratio of the lossless coding of each piecemeal whether each piecemeal is fit to lossless coding, if be fit to, then keeps the lossless coding data of this piecemeal, if be not suitable for, then abandon the lossless coding data of this piecemeal;
The coding side Transmit-Receive Unit that is connected with above-mentioned lossy coding unit, adaptability judging unit simultaneously is used for the lossless coding data of the above-mentioned lossy coding data that obtain by lossy coding and each piecemeal of being kept and predetermined lossy coding pattern, predetermined lossless coding pattern are sent to decoding end;
Wherein, decoding end includes:
The decoding end Transmit-Receive Unit, be used to receive lossy coding data that above-mentioned coding side Transmit-Receive Unit sent,, lossless coding data, predetermined lossy coding pattern and the predetermined lossless coding pattern of each piecemeal of being kept;
What be connected with the decoding end Transmit-Receive Unit diminishes decoding unit, is used for according to the decoding process that diminishes of predetermined lossy coding mode correspondence described lossy coding data being diminished decoding, obtains diminishing decoded picture;
The losslessly encoding unit that is connected with the decoding end Transmit-Receive Unit is used for according to the losslessly encoding mode of predetermined lossless coding mode correspondence the lossless coding data of above-mentioned each piecemeal that keeps being advanced can't harm the row decoding, obtains the losslessly encoding piecemeal of corresponding sub-block;
Simultaneously diminish the covering superpositing unit that decoding unit, losslessly encoding unit are connected, be used for above-mentioned losslessly encoding piecemeal is covered the above-mentioned correspondence position that diminishes decoded picture, obtain image after the final decoding with above-mentioned.
In the scheme of present embodiment, consider the situation about using of mixing, for example when handling document or desktop, also need be in window displaying video or browsing pictures, and functional area is change at any time also, and if image is carried out piecemeal, and respectively each piecemeal is all encoded, correspondingly the coding side coding often, the number of times of decoding was also many when decoding end was decoded, the encoding and decoding that influence is whole, therefore, at first the image before the piecemeal is not carried out the whole image encoding that diminishes, and then image carried out piecemeal, and judge that respectively each piecemeal is to be fit to use lossless coding mode or lossy coding mode, if be fit to the lossless coding mode, again this piecemeal is carried out lossless coding, if be fit to the lossy coding mode, owing to image is carried out whole lossy coding, the lossy coding that need not to carry out repetition this moment, thereby can obtain the little coding effect of data volume of the high-quality and the lossy coding of lossless coding simultaneously, and the coding number of times is few.Accordingly, in decoding end, its need are decoded to the lossy coding image of integral body and the lossless coding data that kept, be not to decode at each piecemeal, the decoding number of times significantly reduces, especially under the considerably less situation of the number of the piecemeal that is fit to the lossless coding mode, the decoding number of times has still less further improved decoding efficiency.
Identical in other technologies feature in the present embodiment and the foregoing description three do not repeat them here.
In addition, need to prove, above-mentioned at image optimization coding method of the present invention, in the explanation of each specific embodiment of image optimization code device, all be to encode simultaneously, the process of decoding describes, promptly after coding side is finished cataloged procedure, the back data of just will encoding send to decoding end and decode, and in the application of reality, may not be to watch image immediately, therefore, in this case, finish cataloged procedure at coding side and obtain encoding after the data of back, can be directly with should coding afterwards data be stored in the memory device with document form, when treating to watch image, from file, read these coding back data again and decode concrete storage, the mode of reading can be based on mode identical in the prior art, does not repeat them here.Owing to be to adopt the lossless coding mode to encode when coding to the part that is fit to lossless coding, adopt the lossy coding mode to encode for the part that is fit to lossy coding, no matter thereby can reach is the image of which kind of type, always can obtain best picture quality and minimal data amount, institute's data quantity stored also reduces.
Above-described embodiment of the present invention does not constitute the qualification to protection range of the present invention.Any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection range of the present invention.

Claims (10)

1. an image optimization coding method is characterized in that, comprises step:
Coding side reads the lossless coding scope of setting, the lossy coding scope, adopt predetermined lossless coding pattern that image is carried out the lossless coding data that lossless coding obtained and kept lossless coding corresponding to the part of described lossless coding scope, adopt predetermined lossy coding pattern that image is carried out the lossy coding data that lossy coding obtained and kept lossy coding corresponding to the part of described lossy coding scope, according to described lossless coding data and the described lossy coding data back data that obtain encoding, data comprise described lossless coding data behind the described coding, described lossy coding data;
Perhaps
Coding side is according to being scheduled to divide block size to image block, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, and judge respectively according to the compression ratio of the lossless coding of piecemeal whether each piecemeal is fit to lossless coding, if be fit to, the lossless coding data that keep this piecemeal, if be not suitable for, adopt predetermined lossy coding mode this piecemeal recompile to be obtained and keeps the lossy coding data of this piecemeal, lossless coding data according to described reservation, data after the lossy coding data of described reservation obtain encoding, data comprise the lossless coding data of described reservation behind the described coding, the lossy coding data of described reservation;
Perhaps
Coding side is according to being scheduled to divide block size to image block, adopt predetermined lossy coding pattern that each piecemeal is carried out lossy coding, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, and judge respectively that according to the compression ratio of the lossless coding of piecemeal each piecemeal is fit to lossless coding, if be fit to, the lossless coding data that keep this piecemeal, abandon the lossy coding data of this piecemeal, if be not suitable for, the lossy coding data that keep this piecemeal, abandon the lossless coding data of this piecemeal, determine coding back data according to the lossless coding data of described reservation and the lossy coding data of reservation, data comprise the lossless coding data of described reservation behind the described coding, the lossy coding data of described reservation.
2. image optimization coding method according to claim 1 is characterized in that, also comprises step:
Coding side with described predetermined lossless coding pattern, default diminish coding mode, described coding after data send to decoding end;
Decoding end adopts the losslessly encoding pattern of described predetermined lossless coding pattern correspondence that the lossless coding data of described reservation are carried out losslessly encoding, adopt the decoding schema that diminishes of described predetermined lossy coding pattern correspondence that the lossy coding data of described reservation are diminished decoding, and the losslessly encoding data of losslessly encoding and the decoded data that diminishes that diminishes decoding are spliced and combined and obtain decoding the back image.
3. an image optimization coding method is characterized in that, comprises step:
Coding side adopts predetermined lossy coding mode that image is carried out lossy coding, according to the predetermined block size that divides image is carried out piecemeal, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, and judge respectively according to the compression ratio of the lossless coding of piecemeal whether each piecemeal is fit to lossless coding, if be fit to, the lossless coding data that keep this piecemeal, if be not suitable for, abandon the lossless coding data of this piecemeal, determine coding back data according to the lossy coding data of described lossy coding and the lossless coding data of described reservation, data comprise the lossless coding data of described reservation behind the described coding, described lossy coding data.
4. image optimization coding method according to claim 3 is characterized in that, also comprises:
Coding side with described predetermined lossless coding pattern, default diminish coding mode, described coding after data send to decoding end;
Decoding end diminishes decoding according to the decoding process that diminishes of predetermined lossy coding mode correspondence to described lossy coding data, obtains diminishing decoded picture; Losslessly encoding mode according to predetermined lossless coding mode correspondence is carried out losslessly encoding to the lossless coding data of described reservation, and each piecemeal behind the losslessly encoding is covered on the described correspondence position that diminishes decoded picture, and the back image obtains decoding.
5. an image optimization code device is characterized in that, comprises coding side, and described coding side comprises:
Read the unit that is provided with of default coding mode that the user is provided with, with the unit be set be connected, adopt predetermined lossless coding pattern that image is carried out the lossless coding unit that lossless coding obtains the lossless coding data, with the unit be set be connected, adopt predetermined lossy coding pattern that image is carried out the lossy coding unit that lossy coding obtains the lossy coding data, with the lossless coding unit, the lossy coding unit is connected, with described predetermined lossless coding pattern or described predetermined lossy coding pattern and the coding side Transmit-Receive Unit of coding back data to the decoding end transmission, data comprise described lossless coding data or described lossy coding data behind the described coding.
6. image optimization code device according to claim 5 is characterized in that, described image optimization code device also comprises decoding end, and described decoding end comprises:
The decoding end Transmit-Receive Unit of received code data that end sends, the lossless coding data that adopt the losslessly encoding pattern of described predetermined lossless coding pattern correspondence that the decoding end Transmit-Receive Unit is received are carried out losslessly encoding obtain the decoding losslessly encoding unit of back image, adopt the lossy coding data that decoding schema received the decoding end Transmit-Receive Unit of diminishing of described predetermined lossy coding pattern correspondence to diminish decoding obtain the decoding decoding unit that diminishes of back image.
7. an image optimization code device is characterized in that, comprises coding side,
Described coding side comprises: the unit that is provided with that reads lossless coding scope that the user is provided with and lossy coding scope, with the unit be set be connected, adopt predetermined lossless coding pattern that image is carried out the lossless coding unit that lossless coding obtains the lossless coding data corresponding to the part of described lossless coding scope, with the unit be set be connected, adopt predetermined lossy coding pattern that image is carried out the lossy coding unit that lossy coding obtains the lossy coding data corresponding to the part of described lossy coding scope, be connected with the lossy coding unit with the lossless coding unit, with described predetermined lossy coding pattern, predetermined lossless coding pattern and the coding side Transmit-Receive Unit of coding back data to the decoding end transmission, data comprise described lossless coding data behind the described coding, the lossy coding data;
Perhaps
Described coding side comprises: according to the predetermined branch module unit that divides block size image to be carried out piecemeal, be connected with a minute module unit, adopt predetermined lossless coding pattern that each piecemeal is carried out the lossless coding unit that lossless coding obtains the lossless coding data, be connected with a minute module unit, adopt predetermined lossy coding pattern that piecemeal is carried out the lossy coding unit that lossy coding obtains the lossy coding data, be connected with the lossy coding unit with the lossless coding unit, judge respectively that according to the compression ratio of lossless coding each piecemeal is fit to the adaptability judging unit of lossless coding, is connected with the adaptability judging unit with the lossy coding unit, the lossless coding data that will be fit to the piecemeal of lossless coding according to the judged result of adaptability judging unit, the lossy coding data that are fit to lossy coding, and predetermined lossless coding pattern, the coding side Transmit-Receive Unit that predetermined lossy coding pattern sends to decoding end.
8. image optimization code device according to claim 7 is characterized in that, described image optimization code device also comprises decoding end, and described decoding end comprises:
The decoding end Transmit-Receive Unit of received code data that end sends, the lossless coding data that adopt the losslessly encoding pattern of described predetermined lossless coding pattern correspondence that the decoding end Transmit-Receive Unit is received are carried out the losslessly encoding unit that losslessly encoding obtains the losslessly encoding data, adopt the lossy coding data that decoding schema received the decoding end Transmit-Receive Unit that diminish of described predetermined lossy coding pattern correspondence to diminish the decoding unit that diminishes that decoding obtains diminishing decoded data, with the losslessly encoding unit with diminish decoding unit and be connected, with described losslessly encoding data with diminish the covering superpositing unit that the decoded data stack combinations obtains described decoding back image.
9. an image optimization code device is characterized in that, comprises coding side, and described coding side comprises:
Adopt predetermined lossy coding mode that image is carried out the lossy coding unit that lossy coding obtains the lossy coding data, according to the predetermined branch module unit that divides block size described image to be carried out piecemeal, be connected with a minute module unit, adopt predetermined lossless coding pattern that each piecemeal is carried out lossless coding, obtain the lossless coding unit of the lossless coding data of each piecemeal, and be connected with the lossless coding unit, judge respectively according to the compression ratio of the lossless coding of each piecemeal whether each piecemeal is fit to the adaptability judging unit of lossless coding, if be fit to, the lossless coding data that then keep this piecemeal, if be not suitable for, then abandon the lossless coding data of this piecemeal, be connected with the adaptability judging unit with described lossy coding unit, with described lossy coding data, and the lossless coding data of each piecemeal that is kept, and predetermined lossy coding pattern, the coding side Transmit-Receive Unit that predetermined lossless coding pattern sends to decoding end.
10. image optimization code device according to claim 9 is characterized in that, described image optimization code device also comprises decoding end, and described decoding end comprises:
The decoding end Transmit-Receive Unit of received code data that end sends, the decoding process that diminishes according to predetermined lossy coding mode correspondence diminishes decoding to the lossy coding data that the decoding end Transmit-Receive Unit is received, obtain diminishing the decoding unit that diminishes of decoded picture, losslessly encoding mode according to predetermined lossless coding mode correspondence is carried out losslessly encoding to the lossless coding data that the decoding end Transmit-Receive Unit is received, obtain the losslessly encoding unit of the losslessly encoding piecemeal of corresponding sub-block, and diminish decoding unit and be connected with the losslessly encoding unit, each described losslessly encoding piecemeal is covered the covering superpositing unit that obtains described decoding back image on the described correspondence position that diminishes decoded picture.
CN 201010118960 2010-03-01 2010-03-01 Coding optimization method and coding optimization device for images Pending CN101783952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010118960 CN101783952A (en) 2010-03-01 2010-03-01 Coding optimization method and coding optimization device for images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010118960 CN101783952A (en) 2010-03-01 2010-03-01 Coding optimization method and coding optimization device for images

Publications (1)

Publication Number Publication Date
CN101783952A true CN101783952A (en) 2010-07-21

Family

ID=42523738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010118960 Pending CN101783952A (en) 2010-03-01 2010-03-01 Coding optimization method and coding optimization device for images

Country Status (1)

Country Link
CN (1) CN101783952A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289829A (en) * 2011-07-12 2011-12-21 北京朗玛数联科技有限公司 Method and device for storing and restoring image and system for processing image
CN102497546A (en) * 2011-11-28 2012-06-13 同济大学 Screen image compression device and compression method thereof
CN103686182A (en) * 2013-12-13 2014-03-26 洪雪荣 Method and system for coding screen display information
WO2015136485A1 (en) * 2014-03-13 2015-09-17 Huawei Technologies Co., Ltd. Improved screen content and mixed content coding
CN105379287A (en) * 2013-07-09 2016-03-02 佳能株式会社 Image coding apparatus, image coding method, and program, and image decoding apparatus, image decoding method and program
CN105979265A (en) * 2016-05-05 2016-09-28 贵州白山云科技有限公司 Image compression method and apparatus
CN107181928A (en) * 2017-07-21 2017-09-19 苏睿 Conference system and data transmission method
CN107615746A (en) * 2015-09-28 2018-01-19 谷歌有限责任公司 For the Integrated Solution being intelligently imaged
CN107665128A (en) * 2017-09-13 2018-02-06 深信服科技股份有限公司 Image processing method, system, server and readable storage medium storing program for executing
CN108319493A (en) * 2017-06-28 2018-07-24 新华三云计算技术有限公司 Data processing method, device and machine readable storage medium
CN110545432A (en) * 2018-05-28 2019-12-06 深信服科技股份有限公司 image encoding and decoding methods, related devices and storage medium
CN110545445A (en) * 2018-05-28 2019-12-06 深信服科技股份有限公司 Video compression method and device, server and computer readable storage medium
CN110913223A (en) * 2018-09-18 2020-03-24 佳能株式会社 Image decompression apparatus, control method thereof, and computer-readable storage medium
CN111343454A (en) * 2019-01-29 2020-06-26 杭州海康慧影科技有限公司 Image processing method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471312A (en) * 2002-07-26 2004-01-28 包头钢铁学院 Selective medical image compression method
WO2004102398A1 (en) * 2003-05-14 2004-11-25 Sharp Kabushiki Kaisha Document data output device capable of appropriately outputting document data containing a text and layout information
CN1747525A (en) * 2004-09-08 2006-03-15 佳能株式会社 Image encoding apparatus and method
CN1968418A (en) * 2005-10-06 2007-05-23 三星电子株式会社 System and method for image data processing using hybrid type
CN101106709A (en) * 2006-07-10 2008-01-16 逐点半导体(上海)有限公司 Image compression method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471312A (en) * 2002-07-26 2004-01-28 包头钢铁学院 Selective medical image compression method
WO2004102398A1 (en) * 2003-05-14 2004-11-25 Sharp Kabushiki Kaisha Document data output device capable of appropriately outputting document data containing a text and layout information
CN1747525A (en) * 2004-09-08 2006-03-15 佳能株式会社 Image encoding apparatus and method
CN1968418A (en) * 2005-10-06 2007-05-23 三星电子株式会社 System and method for image data processing using hybrid type
CN101106709A (en) * 2006-07-10 2008-01-16 逐点半导体(上海)有限公司 Image compression method

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289829A (en) * 2011-07-12 2011-12-21 北京朗玛数联科技有限公司 Method and device for storing and restoring image and system for processing image
CN102497546A (en) * 2011-11-28 2012-06-13 同济大学 Screen image compression device and compression method thereof
CN102497546B (en) * 2011-11-28 2014-03-05 同济大学 Screen image compression device and compression method thereof
CN105379287A (en) * 2013-07-09 2016-03-02 佳能株式会社 Image coding apparatus, image coding method, and program, and image decoding apparatus, image decoding method and program
US10666963B2 (en) 2013-07-09 2020-05-26 Canon Kabushiki Kaisha Image coding apparatus, image coding method, and program, and image decoding apparatus, image decoding method and program
CN103686182B (en) * 2013-12-13 2016-12-21 洪雪荣 The coded method of a kind of displaying information on screen and coding system
CN103686182A (en) * 2013-12-13 2014-03-26 洪雪荣 Method and system for coding screen display information
WO2015136485A1 (en) * 2014-03-13 2015-09-17 Huawei Technologies Co., Ltd. Improved screen content and mixed content coding
CN106063263A (en) * 2014-03-13 2016-10-26 华为技术有限公司 Improved screen content and mixed content coding
CN107615746A (en) * 2015-09-28 2018-01-19 谷歌有限责任公司 For the Integrated Solution being intelligently imaged
CN105979265A (en) * 2016-05-05 2016-09-28 贵州白山云科技有限公司 Image compression method and apparatus
CN108319493A (en) * 2017-06-28 2018-07-24 新华三云计算技术有限公司 Data processing method, device and machine readable storage medium
CN107181928A (en) * 2017-07-21 2017-09-19 苏睿 Conference system and data transmission method
CN107665128A (en) * 2017-09-13 2018-02-06 深信服科技股份有限公司 Image processing method, system, server and readable storage medium storing program for executing
CN110545432A (en) * 2018-05-28 2019-12-06 深信服科技股份有限公司 image encoding and decoding methods, related devices and storage medium
CN110545445A (en) * 2018-05-28 2019-12-06 深信服科技股份有限公司 Video compression method and device, server and computer readable storage medium
CN110913223A (en) * 2018-09-18 2020-03-24 佳能株式会社 Image decompression apparatus, control method thereof, and computer-readable storage medium
CN111343454A (en) * 2019-01-29 2020-06-26 杭州海康慧影科技有限公司 Image processing method, device and system
CN111343454B (en) * 2019-01-29 2022-05-31 杭州海康慧影科技有限公司 Image processing method, device and system

Similar Documents

Publication Publication Date Title
CN101783952A (en) Coding optimization method and coding optimization device for images
KR101915037B1 (en) Method and Apparatus for Generating Video Bit Stream for Streaming High Resolution Video
CN106664414B (en) For the candidate method and device generated of single sample mode in Video coding
US11979609B2 (en) Method for performing transform index coding on basis of intra prediction mode, and device therefor
CN105704491B (en) Image encoding method, decoding method, encoding device, and decoding device
US20200302653A1 (en) A method and apparatus for encoding/decoding the geometry of a point cloud representing a 3d object
CN101931806B (en) Methods and apparatus for multi-view video coding
DE60318307T2 (en) Picture decoding method for S-pictures with buffer reset and PN switching for continuity.
US10194150B2 (en) Method and device for coding image, and method and device for decoding image
CN100568973C (en) The filter method of digital picture and filter plant
CN105247863B (en) Three-dimensional or multi-view video coding or decoded method
CN101523914B (en) Method and apparatus for encoding and decoding multi view image
US20140241439A1 (en) Transmitting Apparatus and Method Thereof for Video Processing
EP2955919A2 (en) Decoding method, encoder, and decoder
CN103986929B (en) Image processing equipment
CN102308582B (en) Method for the segmentation encoding of an image
US11949853B2 (en) Data decoding method and apparatus, and data coding method and apparatus
CN105704424A (en) Multi-image processing method, multi-point control unit, and video system
CN107105240A (en) A kind of HEVC SCC complexity control methods and its system
CN102811347A (en) Image processing device, image processing method, and program
US9344720B2 (en) Entropy coding techniques and protocol to support parallel processing with low latency
CN103517076A (en) Image transmission system and transmission end device and receiving end device thereof
US20140092987A1 (en) Entropy coding techniques and protocol to support parallel processing with low latency
CN101998104B (en) Generating method for video telephone and substitute video thereof
CN110324625B (en) Video decoding method and device

Legal Events

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

Open date: 20100721