CN106454348B - A kind of video coding-decoding method and device - Google Patents

A kind of video coding-decoding method and device Download PDF

Info

Publication number
CN106454348B
CN106454348B CN201510474219.XA CN201510474219A CN106454348B CN 106454348 B CN106454348 B CN 106454348B CN 201510474219 A CN201510474219 A CN 201510474219A CN 106454348 B CN106454348 B CN 106454348B
Authority
CN
China
Prior art keywords
zone
action
image
pixel
value
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
CN201510474219.XA
Other languages
Chinese (zh)
Other versions
CN106454348A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510474219.XA priority Critical patent/CN106454348B/en
Publication of CN106454348A publication Critical patent/CN106454348A/en
Application granted granted Critical
Publication of CN106454348B publication Critical patent/CN106454348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working

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 video coding-decoding method and devices, to improve video image quality.The method for video coding, comprising: image more to be encoded and contrast images obtain the first zone of action, and the contrast images are the previous frame image adjacent with the image to be encoded;Amendment zone of action is determined according to the first zone of action and the second zone of action, and second zone of action is to determine according to the comparison result of the contrast images and the previous frame image adjacent with the contrast images;The amendment active area image is encoded using the first video encoding unit;And the non-active region area image in addition to the amendment zone of action is encoded using the second video encoding unit.

Description

A kind of video coding-decoding method and device
Technical field
The present invention relates to technical field of video processing more particularly to a kind of video coding-decoding methods and device.
Background technique
VoLTE, that is, Voice over LTE is by LTE (Long Time Evolution, long term evolution) network conduct The voice solution of service access, IMS (IP Multimedia Subsystem, IP multimedia subsystem) network implementations Service control Certainly scheme, it supports the communication services such as high definition voice, HD video, can also realize intercommunication compatible with the now net voice of 2G/3G. VoLTE can provide high definition voice, low latency video calling.Currently, the partial parameters of VoLTE video calling can be arranged such as table 1:
Table 1
For different video resolution and frame per second, terminal is to network side log on bandwidth.In terminal bandwidth application Afterwards, network side should guarantee to be supplied to terminal wireless, transmission and resources of core network as far as possible, guarantee that video calling is normally carried out.
Terminal then encodes collected video, and input video can be pressed figure using H.264 by the algorithm of specific coding Picture frame carries out in frame or interframe encode, and the code stream that coding generates then is sent to other side by network;Receive other side simultaneously The code stream sended over is decoded, and is finally presented on mobile phone screen.
The problem of video coding-decoding method used in existing VoLTE call is primarily present is as follows: when network bandwidth not When meeting the bandwidth of terminal application, encodes frame per second and quality fluctuates.For example, when terminal bandwidth application is 1216Kbps, But network side ensures that bandwidth only has 500Kbps, in this case, terminal can reduce code by way of reducing frame per second Rate adapts to the actual bandwidth of network.
At that time, when reducing code rate, it will moving image discontinuous problem occur, reduce video speech quality and user Experience.As shown in table 2, the frame per second for terminal VoLTE call video coding adjusts situation:
Table 2
As shown in Table 2, terminal is in carrying out VoLTE video call process, if network bandwidth cannot reach the band of application Width, terminal reduce the frame per second of coding in Video coding, although meeting network bandwidth in this way, for moving image meeting Discontinuous situation is generated, video speech quality and user experience are reduced.
Summary of the invention
The embodiment of the present invention provides a kind of video coding-decoding method and device, to improve video image quality.
The embodiment of the present invention provides a kind of method for video coding, comprising:
Image more to be encoded and contrast images obtain the first zone of action, and the contrast images are and the figure to be encoded As adjacent previous frame image;
It is determined according to the first zone of action and the second zone of action and corrects zone of action, according to second zone of action What the comparison result of the contrast images and the previous frame image adjacent with the contrast images was determined;
The amendment active area image is encoded using the first video encoding unit;And it is compiled using the second video Code unit encodes the non-active region area image in addition to the amendment zone of action.
Wherein, compare contrast images and image to be encoded obtain the first zone of action, specifically include:
Determine the error image of the contrast images Yu the image to be encoded;
The error image is divided into the sub- error image of preset quantity;
The sum of pixel value for including according to each sub- error image determines the first zone of action.
Preferably, the sum of pixel difference for including according to each sub- error image determines the first zone of action, specifically include:
Coordinate value of the sum of the record pixel value greater than all pixels point that the sub- error image of preset threshold includes, the seat Scale value includes abscissa value and ordinate value;
The smallest first pixel of the sum of abscissa value and ordinate value and abscissa value and ordinate value are determined respectively The sum of maximum second pixel;
It determines using the coordinate of the first pixel as starting point coordinate and with the horizontal seat of the first pixel and the second pixel The absolute difference of scale value is that the absolute difference of wide ordinate value with the first pixel and the second pixel is high rectangle Region is first zone of action.
Preferably, the sum of pixel difference for including according to each sub- error image determines the first zone of action, specifically include:
Coordinate value of the sum of the record pixel value greater than all pixels point that the sub- error image of preset threshold includes, the seat Scale value includes abscissa value and ordinate value;
The smallest first pixel of the sum of abscissa value and ordinate value and abscissa value and ordinate value are determined respectively The sum of maximum second pixel;
First pixel and the second pixel are determined according to the first pixel coordinate value and the second pixel coordinate value Center point coordinate value;
It determines using the central point as the center of circle, between the central point and first pixel or the second pixel Distance be the border circular areas of radius be first zone of action.
Preferably, being encoded using the first video encoding unit to the amendment active area image, specifically include:
Inactive region image pixel value in the image to be encoded in addition to the amendment active area image is set It is zero to obtain the first image to be encoded;
The described first image to be encoded is encoded using the first video encoding unit.
Preferably, using the second video encoding unit to except it is described amendment zone of action in addition to non-active region area image into Row coding, specifically includes:
Amendment active area image pixel value described in the image to be encoded is set to zero and obtains the second image to be encoded;
The described second image to be encoded is encoded using the second video encoding unit.
Preferably, obtaining amendment zone of action according to the first zone of action and the second zone of action, specifically include:
Compare first zone of action and second zone of action;
If first zone of action is less than second zone of action, determine the amendment zone of action for described the Two zone of action;
If first zone of action is greater than second zone of action, first zone of action and institute are counted respectively State the pixel quantity for including in the second zone of action;
If the pixel quantity that first zone of action includes is no more than the pixel number for including in second zone of action The presupposition multiple of amount, it is determined that the amendment zone of action is second zone of action, otherwise, it determines first behaviour area Domain is the amendment zone of action.
Preferably, also being wrapped before being encoded using the first video encoding unit to the amendment active area image It includes:
Judge whether the amendment zone of action and second zone of action are identical;
When the judgment result is No, the amendment active area image is encoded using the first video encoding unit; And the non-active region area image in addition to the amendment zone of action is encoded using the second video encoding unit;Sentencing Disconnected result is when being, to encode merely with the first video encoding unit to the amendment active area image.
Method for video coding provided in an embodiment of the present invention can also include:
Image after respectively encoding the first video encoding unit and the second video encoding unit is quantified and is organized Code stream is sent to decoding end, wherein includes for identifying amendment zone of action in the code stream of the first video encoding unit output Marker.
The embodiment of the present invention provides a kind of video encoding/decoding method, comprising:
Receive coding side send, include for identify correct zone of action marker first via encoding code stream;
The first via encoding code stream is decoded using the first video decoding unit;
The video for being shown the video and graph compound that decoding obtains to screen according to the marker of the amendment zone of action On the corresponding position of image.
Preferably, while receiving the first via encoding code stream, further includes:
Receive the second road encoding code stream that the coding side is sent;
Second road encoding code stream is decoded and is exported to screen using the second video decoding unit and is shown.
The embodiment of the present invention provides a kind of video coding apparatus, comprising:
Initialization unit, for simultaneously initialize two video encoding units, wherein the first video encoding unit be used for pair Active area image is encoded, and the second video encoding unit is for encoding non-active region area image;
First comparing unit obtains the first zone of action, the comparison diagram for image more to be encoded and contrast images As being the previous frame image adjacent with the image to be encoded;
Second comparing unit, it is described for determining amendment zone of action according to the first zone of action and the second zone of action Second zone of action is true according to the comparison result of the contrast images and the previous frame image adjacent with the contrast images It makes;
First video encoding unit, for being encoded to the amendment active area image;
Second video encoding unit, for being compiled to the non-active region area image in addition to the amendment zone of action Code.
First comparing unit, specifically includes:
First determines subelement, for determining the error image of the contrast images Yu the image to be encoded;
Image divides subelement, for the error image to be divided into the sub- error image of preset quantity;
Second determines that subelement, the sum of pixel value for including according to each sub- error image determine the first zone of action.
Described second determines subelement, and the sub- error image for being greater than preset threshold specifically for the sum of record pixel value includes All pixels point coordinate value, the coordinate value includes abscissa value and ordinate value;Abscissa value and vertical seat are determined respectively The smallest first pixel of the sum of scale value and maximum second pixel of the sum of abscissa value and ordinate value;It determines with first The coordinate of pixel is starting point coordinate and with the absolute difference of the abscissa value of the first pixel and the second pixel is The absolute difference of wide ordinate value with the first pixel and the second pixel is that high rectangular area is first activity Region;Or
Described second determines subelement, and the sub- error image for being greater than preset threshold specifically for the sum of record pixel value includes All pixels point coordinate value, the coordinate value includes abscissa value and ordinate value;Abscissa value and vertical seat are determined respectively The smallest first pixel of the sum of scale value and maximum second pixel of the sum of abscissa value and ordinate value;According to the first picture Vegetarian refreshments coordinate value and the second pixel coordinate value determine the center point coordinate value of first pixel and the second pixel;It determines Using the central point as the center of circle, with the distance between the central point and first pixel or the second pixel for radius Border circular areas be first zone of action.
Second comparing unit, comprising:
Comparing subunit is used for first zone of action and second zone of action;
Third determines subelement, if for first zone of action be less than second zone of action, determine described in Amendment zone of action is second zone of action;And the statistical result according to statistic unit, in first zone of action When the pixel quantity for including is not more than the presupposition multiple of the pixel quantity in second zone of action included, the amendment is determined Zone of action is second zone of action, otherwise, it determines first zone of action is the amendment zone of action;
Subelement is counted, for being greater than second zone of action in first zone of action, counts described the respectively The pixel quantity for including in one zone of action and second zone of action.
Preferably, video decoder provided in an embodiment of the present invention, further includes judging unit, in which:
The judging unit, for being encoded in first video encoding unit to the amendment active area image Before, judge whether the amendment zone of action and second zone of action are identical;
First video encoding unit, for the judging result in the judging unit be it is no when, to the amendment work Dynamic area image is encoded;And when the judging result of the judging unit is to be, to the amendment active area image It is encoded;
Second video encoding unit, for the judging result in the judging unit be it is no when, to remove the amendment activity Non-active region area image other than region is encoded.
The embodiment of the present invention provides a kind of video decoder, comprising:
Receiving unit, for receive coding side transmission, include for identify the marker for correcting zone of action the Encoding code stream all the way;
First video decoding unit, for being decoded to the first via encoding code stream;And it is lived according to the amendment On the corresponding position for the video image that the marker in dynamic region shows video and graph compound that decoding obtains to screen.
The video decoder further includes the second video decoding unit, in which:
The receiving unit is also used to while receiving the first via encoding code stream, is received the coding side and is sent The second road encoding code stream;
Second video decoding unit is carried out for being decoded and exporting to second road encoding code stream to screen Display.
Video coding-decoding method and device provided in an embodiment of the present invention utilize the first view when encoding to image Frequency decoding unit encodes zone of action, and is encoded using the second video encoding unit to inactive region, by In by video image zone of action and inactive region encode respectively, in this way, if necessary to reduce coding frame per second when, Inactive region coding frame per second can be only reduced, to guarantee the high coding frame per second of moving image, improves video image quality.Phase It answers, in decoding end, active area image is encoded respectively using the first video decoding unit and the second video decoding unit To the code stream that encodes of code stream and non-active region area image be decoded, to guarantee the decoded accuracy of decoding end.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, 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 implementation process diagram of method for video coding in the embodiment of the present invention;
Fig. 2 is in the embodiment of the present invention, and the first zone of action determines embodiment of the method schematic diagram;
Fig. 3 is in the embodiment of the present invention, and error image divides schematic diagram;
Fig. 4 a is the determination embodiment of the method schematic diagram in the embodiment of the present invention, when the first zone of action is rectangular area;
Fig. 4 b is in the embodiment of the present invention, to determine the first behaviour area of rectangle according to the first pixel and the second pixel The schematic diagram in domain;
Fig. 5 a is the determination embodiment of the method schematic diagram in the embodiment of the present invention, when the first zone of action is border circular areas;
Fig. 5 b is in the embodiment of the present invention, to determine round first behaviour area according to the first pixel and the second pixel The schematic diagram in domain;
Fig. 6 is to determine the embodiment flow chart of amendment zone of action in the embodiment of the present invention;
Fig. 7 is in the embodiment of the present invention, and VoLTE terminal implements the implementation of method for video coding provided in an embodiment of the present invention Flow diagram;
Fig. 8 is video encoding/decoding method implementation process diagram in the embodiment of the present invention;
Fig. 9 is the structural schematic diagram of video coding apparatus in the embodiment of the present invention;
Figure 10 is the structural schematic diagram of video decoder in the embodiment of the present invention.
Specific embodiment
In order to improve video image quality, the embodiment of the invention provides a kind of video coding-decoding method and devices.
Below in conjunction with Figure of description, preferred embodiment of the present invention will be described, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this hair The feature in embodiment and embodiment in bright can be combined with each other.
In method for video coding provided in an embodiment of the present invention, asynchronous frame per second is carried out for video image subregion and is compiled parallel Code, treats motion parts and stationary part in video image with a certain discrimination, in this way, can only drop when if necessary to reduce coding frame per second The coding frame per second of low stationary part guarantees the coding frame per second of motion parts, as far as possible to guarantee video image quality.
For ease of description, in the embodiment of the present invention, stationary part image region is known as inactive region, it will be quiet Stop subregion area image is known as non-active region area image, and motion parts region is known as zone of action, by motion parts area Area image is known as active area image.
For video image, video capture scene can be divided into zone of action and inactive region, and zone of action is Refer to the variation of personage, article and vehicle etc. in the multi-frame video image of shooting, inactive region refers to the multi-frame video figure of shooting Indeclinable background or static personage, article etc. as in.In the embodiment of the present invention, by video image different zones into Row identification, to zone of action using high frame per second encode, to inactive region using low frame per second coding, two regions coding side into Row parallel encoding, in decoding end parallel decoding, realization is encoded and is transmitted respectively to different zones video image, in this way, When coding side being needed to reduce coding frame per second, inactive region coding frame per second can be only reduced, does not reduce zone of action coding frame per second, To improve video image quality.
In the embodiment of the present invention, two video encoding units are needed while initializing in coding side, one for activity Area video image is encoded, and one for encoding inactive region video image.For ease of description, of the invention It is referred to as the first video encoding unit and the second video encoding unit in embodiment.Wherein, the first video encoding unit and The coding frame per second of second video encoding unit may be the same or different, wherein the coding frame per second of the first video encoding unit Not less than the coding frame per second of the second video encoding unit.
When it is implemented, the code distinguishability of two video encoding units can be identical resolution ratio, it is also possible to not Same resolution ratio.Usually, the code distinguishability of the second video encoding unit is more than or equal to the volume of the first video encoding unit Code distinguishability.Two video encoding units based on initialization can be according to shown in Fig. 1 when encoding to video image Process carry out:
S11, image more to be encoded and contrast images obtain the first zone of action.
Wherein, contrast images are the previous frame image adjacent with image to be encoded, i.e., adjacent with image to be encoded and shooting A frame image of the time before image to be encoded.
When it is implemented, for the first frame image in the sequence of video images of shooting, due to there is no contrast images, Therefore, directly it can be encoded using the second video encoding unit, and in the buffer by first frame image storage, made For the contrast images of the second frame image in sequence of video images.
S12, amendment zone of action is determined according to the first zone of action and the second zone of action.
Wherein, knot compared with the second zone of action refers to according to contrast images and the previous frame image adjacent with contrast images What fruit was determined.
For the second frame video image in sequence of video images, since it only exists the first zone of action, Can zone of action directly be corrected using the first zone of action as it.
S13, amendment active area image is encoded using the first video encoding unit;And it is compiled using the second video Code unit encodes the non-active region area image in addition to correcting zone of action.
When it is implemented, can determine the first zone of action according to process shown in Fig. 2 in step S11:
S111, the error image for determining contrast images Yu image to be encoded.
When it is implemented, the luminance component of image to be encoded and contrast images can be subtracted each other, contrast images are obtained With the error image C (i, j) of image to be encoded, whereinThe respectively coordinate value of error image pixel, wherein i is cross Coordinate value and j ordinate value.
S112, the sub- error image that obtained error image is divided into preset quantity.
For example, can divide error image as unit of 16*16, obtained each sub- error image resolution ratio is 16*16, Calculate the sum of the pixel value of pixel in each sub- error image, it is assumed that be M (k, l), wherein k, l are respectively sub- error image The abscissa value and ordinate value of starting point coordinate.The starting point coordinate of image typically refers to the pixel positioned at the image upper left corner Coordinate.
The sum of S113, the pixel value for including according to each sub- error image determine the first zone of action.
As shown in figure 3, schematic diagram is divided for error image, if including in each sub- error image that error image divides Each pixel, for example, if including 16*16 pixel in each error image when being divided as unit of 16*16.Fig. 3 In by taking pixel quantity that each sub-picture pack contains is 4*4 as an example.Each pixel corresponds to different pixel values, can characterize the picture The color of vegetarian refreshments, and position of each pixel in image can be indicated with the coordinate value (x, y) of pixel, x is horizontal seat Scale value, y are ordinate value.
When it is implemented, can be, but not limited to determine image to be encoded according to following two embodiment in step S113 The first zone of action.
The first embodiment, the first zone of action are rectangular area
By the first zone of action be rectangular area for, can be described using following parameter the first zone of action (x, y, W, h), wherein x is the abscissa of the first zone of action origin coordinates, and y is the ordinate of the first zone of action origin coordinates, and w is The width of first zone of action, h are the height of the first zone of action.
As shown in fig. 4 a, the first zone of action can be determined according to following below scheme:
The coordinate of the sum of S11311, record pixel value greater than all pixels point that the sub- error image of preset threshold includes Value.
When it is implemented, preset threshold can be preset, usually between [512,8192], 1024 are generally taken.? In step S11311, entire error image may search for, search all sub- error images that M (k, l) is greater than preset threshold, and remember Record M (k, l) is greater than coordinate value (including the abscissa value and vertical of all sub- error images all pixels point for including of preset threshold Coordinate value).
S11312, the smallest first pixel of the sum of abscissa value and ordinate value and abscissa value are determined respectively and is indulged Maximum second pixel of the sum of coordinate value.
When it is implemented, in all pixels point that all sub- error images that M (k, l) is greater than preset threshold include, really Determine the smallest first pixel of the sum of abscissa value and ordinate value and the sum of abscissa value and ordinate value maximum second Pixel.
S11313, it determines using the coordinate of the first pixel as starting point coordinate and with the first pixel and the second pixel The absolute difference of abscissa value be the absolute difference of wide ordinate value with the first pixel and the second pixel be high Rectangular area be the first zone of action.
It as shown in Figure 4 b, is the schematic diagram that the first zone of action is determined according to the first pixel and the second pixel.I.e. Using the first pixel coordinate as starting point coordinate, the second pixel abscissa value subtracts what the first pixel abscissa value obtained Numerical value is the width of the first zone of action, and it is that the second pixel ordinate value, which subtracts numerical value that the first pixel ordinate value obtains, The height of one zone of action.
Second of embodiment, the first zone of action are border circular areas
By the first zone of action be border circular areas for, can be described using following parameter the first zone of action (x, y, R), wherein (x, y) is the first zone of action central coordinate of circle, and r is the radius of the first zone of action.
As shown in Figure 5 a, the first zone of action can be determined according to following below scheme:
The coordinate of the sum of S11321, record pixel value greater than all pixels point that the sub- error image of preset threshold includes Value.
When it is implemented, preset threshold can be preset, usually between [512,8192], 1024 are generally taken.? In step S11311, entire error image may search for, search all sub- error images that M (k, l) is greater than preset threshold, and remember Record M (k, l) is greater than coordinate value (including the abscissa value and vertical of all sub- error images all pixels point for including of preset threshold Coordinate value).
S11322, the smallest first pixel of the sum of abscissa value and ordinate value and abscissa value are determined respectively and is indulged Maximum second pixel of the sum of coordinate value.
When it is implemented, in all pixels point that all sub- error images that M (k, l) is greater than preset threshold include, really Determine the smallest first pixel of the sum of abscissa value and ordinate value and the sum of abscissa value and ordinate value maximum second Pixel.
S11323, the first pixel and the second pixel are determined according to the first pixel coordinate value and the second pixel coordinate value The center point coordinate value of point.
Specifically, averaging and taking after the abscissa value of the first pixel is added with the abscissa value of the second pixel The abscissa value that coordinate is put centered on whole, after the ordinate value of the ordinate value of the first pixel and the second pixel is added The ordinate value of coordinate is put centered on averaging and being rounded.
S11324, it determines using the central point as the center of circle, between the central point and the first pixel or the second pixel Distance be the border circular areas of radius be the first zone of action.
It as shown in Figure 5 b, is the schematic diagram that the first zone of action is determined according to the first pixel and the second pixel.
When it is implemented, the determination method of the second zone of action is similar with the determination method of the first zone of action, instruction ginseng Different from the two field pictures of calculating, which is not described herein again.
When it is implemented, amendment zone of action can be obtained according to process shown in fig. 6 in step s 12:
S61, compare the first zone of action and the second zone of action.
If S62, the first zone of action determine that amendment zone of action is second behaviour area less than the second zone of action Domain;If the first zone of action is greater than second zone of action, counted in the first zone of action and the second zone of action respectively The pixel quantity for including.
S63, judge whether the pixel quantity that the first zone of action includes is greater than the pixel quantity that the second zone of action includes Presupposition multiple, if so, execute step S64, it is no to then follow the steps S65.
S64, the first zone of action is determined as amendment zone of action, process terminates.
S65, determine the second zone of action for amendment zone of action.
Process according to figure 6 is it is found that amendment zone of action may be the first zone of action, it is also possible to for the second activity Region, i.e. amendment zone of action may be identical as the zone of action that last time encodes, and in this case, is obtaining amendment activity It behind region, can further compare amendment zone of action and the second zone of action, illustrate that the zone of action of this coding does not become Change, in this way, for inactive region, it is also identical when being encoded with the last time, therefore, inactive region can not be carried out Coding if amendment zone of action is different from the second zone of action, that is, corrects behaviour area to reduce the data processing amount of coding side Domain is the first zone of action, since compared with last time coding, zone of action sends variation, so that inactive region also becomes Change, to need to re-start inactive region coding.
It,, can be the following steps are included: judgement amendment be lived before executing step S13 in the embodiment of the present invention based on this Whether dynamic region and the second zone of action are identical.And when the judgment result is No, step S13 is executed;It is yes in judging result When, the amendment active area image is encoded merely with the first video encoding unit.
Specifically, for correct zone of action image, can will in image to be encoded except amendment active area image with Outer inactive region image pixel value is set to zero and obtains the first image to be encoded;Using the first video encoding unit to first to Coded image is encoded.For non-active region area image, active area image pixel value can will be corrected in image to be encoded It is set to zero and obtains the second image to be encoded;The second image to be encoded is encoded using the second video encoding unit.
After coding side encodes every frame video image in sequence of video images using the above method, respectively by Image after one video encoding unit and the second video encoding unit coding is quantified and organizes to be sent to decoding end for code stream, It wherein, include for identifying the marker for correcting zone of action in the code stream of the first video encoding unit output.Specifically, such as It is rectangle that fruit, which corrects zone of action, then the marker can be (x, y, w, h), wherein x is amendment zone of action origin coordinates Abscissa, y are the ordinate for correcting zone of action origin coordinates, and w is the width for correcting zone of action, and h is amendment zone of action It is high.If correcting zone of action is circle, which can be (x, y, r), wherein (x, y) is amendment zone of action circle Heart coordinate, r are the radius for correcting zone of action.
Video coding-decoding method provided in an embodiment of the present invention can be applied in VoLTE video call service, in video Calling terminal and called terminal carry out encoding and decoding using video coding-decoding method provided in an embodiment of the present invention and are in communication process Can, in this way, can only be reduced wherein in calling terminal or called terminal when adapting to network bandwidth needs reduces coding frame per second Inactive region video encoding unit (i.e. the second video encoding unit) coding frame per second, without reducing zone of action therein The coding frame per second of video encoding unit (i.e. the first video encoding unit), to guarantee the picture quality of moving image.Certainly, this hair The video coding-decoding method that bright embodiment provides also can be applied in other scenes.
Embodiment in order to better understand the present invention is compiled below with VoLTE video in video call process image For the process of code, the process that the image in encoded video image sequence is encoded is treated to the embodiment of the present invention and is said It is bright.
As shown in fig. 7, the method for video coding that VoLTE terminal is implemented, may comprise steps of:
When S71, VoLTE terminal initiate video calling, two video encoding units are initialized.
Wherein, two video encoding units of initialization are respectively the first view for being encoded to active area image Frequency coding unit and the second video encoding unit for being encoded to non-active region area image.First video encoding unit Encode the coding frame per second that frame per second is not less than the second video encoding unit.Two encoders can be the setting of encoded video identical Resolution ratio is also possible to different resolution.Usually the code distinguishability of non-active region area image is more than or equal to zone of action The code distinguishability of image.
S72, when receiving the first frame image in sequence of video images, encoded simultaneously by the second video encoding unit Image after coding is subjected to quantization group as bit stream to decoding end, and the image received is stored in caching conduct pair Compare image.
When it is implemented, the caching image received and the process that the image received is encoded and sent can be simultaneously Row executes, and can also first cache re-encoding, can also first encode and cache again.
S73, when receiving the second frame image in sequence of video images, compare the image that receives and contrast images meter Calculation obtains the zone of action in image.
When it is implemented, zone of action can be characterized using rectangular area, corresponding describing mode be (x, y, w, H), wherein x is the abscissa of zone of action origin coordinates, and y is the ordinate of zone of action origin coordinates, and w is zone of action Width, h are the height of zone of action.Can also characterize zone of action using border circular areas, corresponding describing mode be (x, y, R), wherein (x, y) is zone of action central coordinate of circle, and r is the radius of zone of action.
S74, active area image is encoded using the first video encoding unit, for except active area image with Outer non-active region area image is encoded using the second video encoding unit;And the image after coding is subjected to quantization group becomes Bit stream is to decoding end.
S75, the second frame image received is stored in caching, substitutes first frame image as cache image.
Wherein, step S75 can be executed parallel with step S74, can also be executed prior to step S74.
For n-th (n is greater than 2) the frame image received, can be executed according to following below scheme:
S76, the contrast images for comparing the n-th frame image received and storing in caching obtain the behaviour area of n-th frame image Domain.
Specifically, the n-th frame image in sequence of video images is compared n-th frame image and is obtained with (n-1) frame image The zone of action of n-th frame image.
The zone of action of S77, the zone of action for comparing n-th frame image and (n-1) frame image obtain amendment zone of action.
Specifically, can be according to the zone of action of the image of process CIMS n-th frame shown in Fig. 6 and the work of (n-1) frame image Dynamic region obtains amendment zone of action, and which is not described herein again.
S78, judge whether amendment zone of action is identical as the zone of action of (n-1) frame image, if so, executing step Otherwise S79 executes step S710.
S79, coding is carried out merely with amendment active area image of first video encoding unit to n-th frame image and to volume Image quantization tissue after code is that code stream is sent to decoding end, and executes step S711.
S710, coding is carried out using amendment active area image of first video encoding unit to n-th frame image and to volume Image quantization tissue after code is that code stream is sent to decoding end;Simultaneously using the second video encoding unit to being removed in n-th frame image Image other than amendment zone of action carries out coding and is that code stream is sent to decoding end to the image quantization tissue after coding.
It wherein, further include the marker for identifying zone of action in the code stream of the first video encoding unit output, so that solution Code end, according to the marker of mark zone of action, correctly shows decoded video image after to the code stream decoding received.Tool Body, if being decoded to inactive region (includes non-active region area image encoding amount i.e. in the code stream of coding side transmission The code stream obtained after change), then it will be carried out after active area image and inactive region image superposition according to zone of action marker Display (does not include non-active region area image in the code stream of coding side transmission to encode if be not decoded inactive region The code stream obtained after quantization), then it is identified as after being decoded to zone of action according to zone of action and is superimposed active area image In the video image being had been displayed to screen.
S711, n-th frame image is deposited into caching substitution (n-1) frame image image as a comparison such as.
Step S76~step S711 is weighed, until video calling terminates, is without video image input in sequence of video images Only.
The embodiment of the invention provides a kind of method for video coding, by initializing two Video codings simultaneously in coding side Unit is respectively used to treat the active area image of coded image and non-active region area image is encoded, specifically, receiving When to image to be encoded, it is first determined the variation of the zone of action and zone of action of image to be encoded obtains amendment zone of action, Amendment active area image is encoded, for non-active region area image, if amendment zone of action changes, to non- Active area image is encoded, if amendment zone of action does not change, is not encoded to non-active region area image, with Reduce the data processing amount of coding side.
Correspondingly, when carrying out video decoding, need to initialize two video decoding units simultaneously in video decoding end, One is used to be decoded zone of action video image, another is for being decoded inactive region video image. It should be noted that if decoding end receives code stream all the way when coding side is only needed to amendment active area image coding, If coding side needs respectively to encode amendment active area image and non-active region area image, decoding end receives simultaneously To two-way code stream, wherein the marker of mark amendment zone of action is carried in code stream all the way.Based on this, the embodiment of the present invention is mentioned The video encoding/decoding method of confession can be according to flow implementation shown in Fig. 8:
S81, receive coding side send, include for identify amendment zone of action marker the first via coding code Stream.
When it is implemented, sending code all the way to decoding end when coding side only needs to encode amendment zone of action Stream, wherein including for identifying the marker of zone of action (x, y, w, h) or (x, y, r).
S82, first via encoding code stream is decoded using the first video decoding unit;
S83, the video for being shown the video and graph compound that decoding obtains to screen according to the marker of amendment zone of action On the corresponding position of image.
When it is implemented, the image for being obtained decoding according to amendment zone of action marker (x, y, w, h) or (x, y, r) On the corresponding position for the video image that the current screen that is added to is shown.
When it is implemented, above-mentioned video encoding/decoding method receives while can also being included in reception first via encoding code stream The second road encoding code stream that coding side is sent;And second road encoding code stream is solved using the second video decoding unit Code and exporting to screen is shown.
In video encoding/decoding method provided in an embodiment of the present invention, two video decoding units are initialized simultaneously in decoding end, One for being decoded to active area image, one is used to be decoded non-active region area image, encodes when receiving It holds and is decoded simultaneously basis using zone of action video decoding unit when the code stream encoded to active area image sent Correctly to show on the corresponding position for the video image that the marker of zone of action shows the obtained image superposition of decoding to screen Show video image;If receiving two-way code stream simultaneously, code stream is the code stream that active area image encodes, another way all the way Code stream is the code stream that non-active region area image encodes, then using zone of action video decoding unit to the behaviour area received Area image code stream is decoded, and using inactive region video decoding unit to the inactive region image code stream received into The active area image that decoding obtains is added in the inactive region that decoding obtains by row decoding according to zone of action marker And it exports and is shown.
When video encoding/decoding method provided in an embodiment of the present invention is applied in VoLTE video call service, VoLTE terminal exists When initiating video calling, while two video decoding units are initialized, if receiving zone of action code stream all the way, utilizes it In a video decoding unit active area image is decoded, and very will the obtained activity of decoding according to zone of action marker Area image is added on the corresponding position of video image that screen is currently shown, and non-active region area image remains unchanged.If Two-way code stream is received simultaneously, then the two-way code stream received is decoded respectively using two video decoding units, and root Decoded active area image is added on decoded non-active region area image according to zone of action marker and is exported extremely Screen is shown.
Based on the same inventive concept, corresponding video coding apparatus and video solution are also each provided in the embodiment of the present invention Code device, since the principle that above-mentioned apparatus and equipment solve the problems, such as is similar to method for video coding and video encoding/decoding method respectively, Therefore the implementation of above-mentioned apparatus may refer to the implementation of method, and overlaps will not be repeated.
As shown in figure 9, being the structural schematic diagram of video coding apparatus provided in an embodiment of the present invention, may include:
First comparing unit 91 obtains the first zone of action, the comparison for image more to be encoded and contrast images Image is the previous frame image adjacent with the image to be encoded;
Second comparing unit 92, for determining amendment zone of action, institute according to the first zone of action and the second zone of action Stating the second zone of action is the comparison result according to the contrast images and the previous frame image adjacent with the contrast images It determines;
First video encoding unit 93, for being encoded to the amendment active area image;
Second video encoding unit 94, for being compiled to the non-active region area image in addition to the amendment zone of action Code.
Preferably, the first comparing unit 91, may include:
First determines subelement, for determining the error image of the contrast images Yu the image to be encoded;
Image divides subelement, for the error image to be divided into the sub- error image of preset quantity;
Second determines that subelement, the sum of pixel value for including according to each sub- error image determine the first zone of action.
Wherein, it second determines subelement, the sub- error image packet of preset threshold is greater than specifically for the sum of record pixel value The coordinate value of all pixels point contained, the coordinate value include abscissa value and ordinate value;Abscissa value is determined respectively and is indulged The smallest first pixel of the sum of coordinate value and maximum second pixel of the sum of abscissa value and ordinate value;It determines with the The coordinate of one pixel is for starting point coordinate and with the absolute difference of the abscissa value of the first pixel and the second pixel Absolute difference for wide ordinate value with the first pixel and the second pixel is that high rectangular area is described first living Dynamic region;Or the sum of record pixel value is greater than the coordinate value for all pixels point that the sub- error image of preset threshold includes, institute Stating coordinate value includes abscissa value and ordinate value;The smallest first pixel of the sum of abscissa value and ordinate value is determined respectively And maximum second pixel of the sum of abscissa value and ordinate value;It is sat according to the first pixel coordinate value and the second pixel Scale value determines the center point coordinate value of first pixel and the second pixel;It determines using the central point as the center of circle, with institute Stating the border circular areas that the distance between central point and first pixel or the second pixel are radius is described first living Dynamic region.
When it is implemented, second determines that subelement may include:
First logging modle, for recording the sum of pixel value greater than all pixels that the sub- error image of preset threshold includes The coordinate value of point, the coordinate value includes abscissa value and ordinate value;
First determining module, for determining the smallest first pixel of the sum of abscissa value and ordinate value and cross respectively Maximum second pixel of the sum of coordinate value and ordinate value;
Second determining module, for determine using the coordinate of the first pixel be starting point coordinate and with the first pixel with The absolute difference of the abscissa value of second pixel is the difference of wide ordinate value with the first pixel and the second pixel Absolute value is that high rectangular area is first zone of action.
Alternatively, second determines subelement, may include:
Second logging modle, for recording the sum of pixel value greater than all pixels that the sub- error image of preset threshold includes The coordinate value of point, the coordinate value includes abscissa value and ordinate value;
Third determining module, for determining the smallest first pixel of the sum of abscissa value and ordinate value and cross respectively Maximum second pixel of the sum of coordinate value and ordinate value;
4th determining module, for determining first picture according to the first pixel coordinate value and the second pixel coordinate value The center point coordinate value of vegetarian refreshments and the second pixel;
5th determining module, for determining using the central point as the center of circle, with the central point and first pixel Or second the distance between pixel be the border circular areas of radius be first zone of action.
When it is implemented, the first video encoding unit 93 can be used for that the amendment activity will be removed in the image to be encoded Inactive region image pixel value other than area image is set to zero and obtains the first image to be encoded;And it is to be encoded to described first Image is encoded.
Second video encoding unit 94 can be used for that active area image pixel will be corrected described in the image to be encoded Value is set to zero and obtains the second image to be encoded;And the described second image to be encoded is encoded.
When it is implemented, the second comparing unit 92, may include:
Comparing subunit is used for first zone of action and second zone of action;
Third determines subelement, if for first zone of action be less than second zone of action, determine described in Amendment zone of action is second zone of action;And the statistical result according to statistic unit, in first zone of action When the pixel quantity for including is not more than the presupposition multiple of the pixel quantity in second zone of action included, the amendment is determined Zone of action is second zone of action, otherwise, it determines first zone of action is the amendment zone of action;
Subelement is counted, for being greater than second zone of action in first zone of action, counts described the respectively The pixel quantity for including in one zone of action and second zone of action.
When it is implemented, video coding apparatus provided in an embodiment of the present invention, can also include judging unit, in which:
Judging unit can be used for compiling the amendment active area image in first video encoding unit 93 Before code, judge whether the amendment zone of action and second zone of action are identical;
First video encoding unit 93 can be used for when the judging result of the judging unit is no, to the amendment Active area image is encoded;And when the judging result of the judging unit is to be, to amendment zone of action figure As being encoded.
Second video encoding unit 94, for the judging result in the judging unit be it is no when, to except the amendment work Non-active region area image other than dynamic region is encoded.
When it is implemented, video coding apparatus provided in an embodiment of the present invention, can also include:
Transmission unit, for respectively carrying out the image after the first video encoding unit and the second video encoding unit coding Quantify and organize to be sent to decoding end for code stream, wherein includes for identifying in the code stream of the first video encoding unit output Correct the marker of zone of action.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist Implement to realize the function of each module (or unit) in same or multiple softwares or hardware when the present invention.
As shown in Figure 10, it is the structural schematic diagram of video decoder provided in an embodiment of the present invention, may include:
Receiving unit 101, for receive coding side transmission, include for identify correct zone of action marker First via encoding code stream;
First video decoding unit 102, for being decoded to the first via encoding code stream;And according to the amendment On the corresponding position for the video image that the marker of zone of action shows the obtained video and graph compound of decoding to screen.
When it is implemented, video decoder provided in an embodiment of the present invention can also include the second video decoding unit, Wherein:
Receiving unit 101 can be also used for while receiving the first via encoding code stream, receive the coding side hair The the second road encoding code stream sent;
Second video decoding unit 103 can be also used for being decoded second road encoding code stream and exporting to screen Curtain is shown.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist Implement to realize the function of each module (or unit) in same or multiple softwares or hardware when the present invention.
Video coding-decoding method and device provided in an embodiment of the present invention initialize two Video codings in coding side simultaneously Unit, when being encoded to video image, using the first video decoding unit to the zone of action in the image judged It is encoded, and the inactive region in the image judged is encoded using the second video decoding unit, due to By in video image zone of action and inactive region encode respectively, in this way, if necessary to reduce coding frame per second when, can Only to reduce the coding frame per second of inactive region coding unit (i.e. the second video encoding unit), to guarantee that the high of moving image is compiled Code frame per second, improves video image quality.Correspondingly, in decoding end, while two decoders are initialized, respectively to zone of action The code stream that the code stream and non-active region area image that image encodes encode is decoded, to guarantee the decoded standard of decoding end True property.
Video coding-decoding method provided in an embodiment of the present invention by initializing two Video coding lists in coding side simultaneously Member, and initialize two video decoding units simultaneously in decoding end, to treat the active area image of coded image and non-live Dynamic area image carries out asynchronous frame per second coding, to can only reduce non-active region area image when needing to reduce coding frame per second Coding frame per second, without reduce active area image encode frame per second, so as to avoid due to coding frame per second decline lead to motion diagram As discontinuous problem, realize under the premise of not replacing and being transformed existing terminal encoder, to the fortune in video image Dynamic part is encoded the non-athletic part of video image using low coding frame per second, ensure that using high coding frame per second coding Video image quality improves user experience.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (16)

1. a kind of method for video coding characterized by comprising
Image more to be encoded and contrast images obtain the first zone of action, and the contrast images are and the image phase to be encoded Adjacent previous frame image;
Determine that amendment zone of action, second zone of action are according to according to the first zone of action and the second zone of action What the comparison result of contrast images and the previous frame image adjacent with the contrast images was determined, comprising: more described One zone of action and second zone of action;If first zone of action is less than second zone of action, institute is determined Stating amendment zone of action is second zone of action;If first zone of action is greater than second zone of action, point The pixel quantity for including in first zone of action and second zone of action is not counted;If the first zone of action packet Presupposition multiple of the pixel quantity contained no more than the pixel quantity for including in second zone of action, it is determined that the amendment is lived Dynamic region is second zone of action, otherwise, it determines first zone of action is the amendment zone of action;
The amendment active area image is encoded using the first video encoding unit;And utilize the second Video coding list Member encodes the non-active region area image in addition to the amendment zone of action.
2. the method as described in claim 1, which is characterized in that compare contrast images and image to be encoded obtains the first behaviour area Domain specifically includes:
Determine the error image of the contrast images Yu the image to be encoded;
The error image is divided into the sub- error image of preset quantity;
The sum of pixel value for including according to each sub- error image determines the first zone of action.
3. method according to claim 2, which is characterized in that the sum of pixel difference for including according to each sub- error image is true Fixed first zone of action, specifically includes:
Coordinate value of the sum of the record pixel value greater than all pixels point that the sub- error image of preset threshold includes, the coordinate value Including abscissa value and ordinate value;
The smallest first pixel of the sum of abscissa value and ordinate value and the sum of abscissa value and ordinate value are determined respectively Maximum second pixel;
It determines using the coordinate of the first pixel as starting point coordinate and with the abscissa value of the first pixel and the second pixel Absolute difference be the absolute difference of wide ordinate value with the first pixel and the second pixel be high rectangular area For first zone of action.
4. method according to claim 2, which is characterized in that the sum of pixel difference for including according to each sub- error image is true Fixed first zone of action, specifically includes:
Coordinate value of the sum of the record pixel value greater than all pixels point that the sub- error image of preset threshold includes, the coordinate value Including abscissa value and ordinate value;
The smallest first pixel of the sum of abscissa value and ordinate value and the sum of abscissa value and ordinate value are determined respectively Maximum second pixel;
It is determined in first pixel and the second pixel according to the first pixel coordinate value and the second pixel coordinate value Heart point coordinate value;
Determine using the central point as the center of circle, between the central point and first pixel or the second pixel away from It is first zone of action from the border circular areas for radius.
5. the method as described in claim 1, which is characterized in that using the first video encoding unit to the amendment zone of action Image is encoded, and is specifically included:
Inactive region image pixel value in the image to be encoded in addition to the amendment active area image is set to zero Obtain the first image to be encoded;
The described first image to be encoded is encoded using the first video encoding unit.
6. the method as described in claim 1, which is characterized in that using the second video encoding unit to except the amendment behaviour area Non-active region area image other than domain is encoded, and is specifically included:
Amendment active area image pixel value described in the image to be encoded is set to zero and obtains the second image to be encoded;
The described second image to be encoded is encoded using the second video encoding unit.
7. the method as described in claim 1, which is characterized in that in the first video encoding unit of utilization to the amendment behaviour area Before area image is encoded, further includes:
Judge whether the amendment zone of action and second zone of action are identical;
When the judgment result is No, the amendment active area image is encoded using the first video encoding unit;And The non-active region area image in addition to the amendment zone of action is encoded using the second video encoding unit;It is tied in judgement Fruit is when being, to encode merely with the first video encoding unit to the amendment active area image.
8. such as method as claimed in any one of claims 1 to 7, which is characterized in that further include:
The image after the first video encoding unit and the second video encoding unit coding is quantified respectively and is organized as code stream It is sent to decoding end, wherein include the mark for identifying amendment zone of action in the code stream of the first video encoding unit output Know position.
9. a kind of video encoding/decoding method characterized by comprising
Receive coding side send, include for identify correct zone of action marker first via encoding code stream, wherein The first via encoding code stream is what the coding side was encoded using coding method described in claim 1;
The first via encoding code stream is decoded using the first video decoding unit;
The video image for being shown the video and graph compound that decoding obtains to screen according to the marker of the amendment zone of action Corresponding position on.
10. method as claimed in claim 9, which is characterized in that while receiving the first via encoding code stream, also wrap It includes:
Receive the second road encoding code stream that the coding side is sent;
Second road encoding code stream is decoded and is exported to screen using the second video decoding unit and is shown.
11. a kind of video coding apparatus characterized by comprising
First comparing unit obtains the first zone of action for image more to be encoded and contrast images, and the contrast images are The previous frame image adjacent with the image to be encoded;
Second comparing unit corrects zone of action for determining according to the first zone of action and the second zone of action, and described second Zone of action is to be determined according to the comparison result of the contrast images and the previous frame image adjacent with the contrast images , comprising: comparing subunit is used for first zone of action and second zone of action;Third determines subelement, If being less than second zone of action for first zone of action, determine that the amendment zone of action is described second living Dynamic region;And the statistical result according to statistic unit, in the pixel quantity that first zone of action includes no more than described When the presupposition multiple for the pixel quantity for including in the second zone of action, determine that the amendment zone of action is second behaviour area Domain, otherwise, it determines first zone of action is the amendment zone of action;Subelement is counted, in first activity Region is greater than second zone of action, counts the picture for including in first zone of action and second zone of action respectively Prime number amount;
First video encoding unit, for being encoded to the amendment active area image;
Second video encoding unit, for being encoded to the non-active region area image in addition to the amendment zone of action.
12. device as claimed in claim 11, which is characterized in that first comparing unit specifically includes:
First determines subelement, for determining the error image of the contrast images Yu the image to be encoded;
Image divides subelement, for the error image to be divided into the sub- error image of preset quantity;
Second determines that subelement, the sum of pixel value for including according to each sub- error image determine the first zone of action.
13. device as claimed in claim 12, which is characterized in that
Described second determines subelement, is greater than the institute that the sub- error image of preset threshold includes specifically for the sum of record pixel value There is the coordinate value of pixel, the coordinate value includes abscissa value and ordinate value;Abscissa value and ordinate value are determined respectively The sum of the smallest first pixel and maximum second pixel of the sum of abscissa value and ordinate value;It determines with the first pixel The coordinate of point be starting point coordinate and with the absolute difference of the abscissa value of the first pixel and the second pixel be it is wide, with The absolute difference of the ordinate value of first pixel and the second pixel is that high rectangular area is first zone of action; Or the sum of record pixel value is greater than the coordinate value for all pixels point that the sub- error image of preset threshold includes, the coordinate value Including abscissa value and ordinate value;The smallest first pixel of the sum of abscissa value and ordinate value and horizontal seat are determined respectively Maximum second pixel of the sum of scale value and ordinate value;It is determined according to the first pixel coordinate value and the second pixel coordinate value The center point coordinate value of first pixel and the second pixel;It determines using the central point as the center of circle, with the central point The distance between first pixel or second pixel are that the border circular areas of radius is first zone of action.
14. device as claimed in claim 11, which is characterized in that further include judging unit, in which:
The judging unit, for carrying out encoding it to the amendment active area image in first video encoding unit Before, judge whether the amendment zone of action and second zone of action are identical;
First video encoding unit, for the judging result in the judging unit be it is no when, to the amendment behaviour area Area image is encoded;And when the judging result of the judging unit is to be, the amendment active area image is carried out Coding;
Second video encoding unit, for the judging result in the judging unit be it is no when, to remove the amendment activity Non-active region area image other than region is encoded.
15. a kind of video decoder characterized by comprising
Receiving unit, for receive coding side transmission, include for identify correct zone of action marker the first via Encoding code stream, wherein the first via encoding code stream is that the coding side is compiled using coding method described in claim 1 What code obtained;
First video decoding unit, for being decoded to the first via encoding code stream;And according to the amendment behaviour area On the corresponding position for the video image that the marker in domain shows the obtained video and graph compound of decoding to screen.
16. device as claimed in claim 15, which is characterized in that further include the second video decoding unit, in which:
The receiving unit is also used to while receiving the first via encoding code stream, receive that the coding side sends the Two road encoding code streams;
Second video decoding unit is shown for second road encoding code stream to be decoded and exported to screen Show.
CN201510474219.XA 2015-08-05 2015-08-05 A kind of video coding-decoding method and device Active CN106454348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510474219.XA CN106454348B (en) 2015-08-05 2015-08-05 A kind of video coding-decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510474219.XA CN106454348B (en) 2015-08-05 2015-08-05 A kind of video coding-decoding method and device

Publications (2)

Publication Number Publication Date
CN106454348A CN106454348A (en) 2017-02-22
CN106454348B true CN106454348B (en) 2019-08-13

Family

ID=58092650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510474219.XA Active CN106454348B (en) 2015-08-05 2015-08-05 A kind of video coding-decoding method and device

Country Status (1)

Country Link
CN (1) CN106454348B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107801093B (en) * 2017-10-26 2020-01-07 深圳市量子视觉科技有限公司 Video rendering method and device, computer equipment and readable storage medium
CN108174200A (en) * 2017-11-28 2018-06-15 西安万像电子科技有限公司 Image transfer method and device
CN110139168B (en) * 2018-02-02 2021-07-13 中南大学 Video encoding method, video encoding device, computer equipment and storage medium
CN110035289B (en) * 2019-04-24 2022-04-01 润电能源科学技术有限公司 Layered compression method, system and related device for screen image
CN110708507A (en) * 2019-09-23 2020-01-17 深圳市景阳信息技术有限公司 Monitoring video data transmission method and device and terminal equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6178204B1 (en) * 1998-03-30 2001-01-23 Intel Corporation Adaptive control of video encoder's bit allocation based on user-selected region-of-interest indication feedback from video decoder
CN101321287A (en) * 2008-07-08 2008-12-10 浙江大学 Video encoding method based on movement object detection
CN101742321A (en) * 2010-01-12 2010-06-16 浙江大学 Layer decomposition-based Method and device for encoding and decoding video
CN101742325A (en) * 2008-11-11 2010-06-16 北京中星微电子有限公司 Video coding method and coder
CN102006473A (en) * 2010-11-18 2011-04-06 无锡中星微电子有限公司 Video encoder and encoding method, and video decoder and decoding method
CN102413320A (en) * 2011-12-21 2012-04-11 上海大学 Method for realizing wireless network intelligent video monitoring system
CN103702014A (en) * 2013-12-31 2014-04-02 中国科学院深圳先进技术研究院 Non-contact physiological parameter detection method, system and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6178204B1 (en) * 1998-03-30 2001-01-23 Intel Corporation Adaptive control of video encoder's bit allocation based on user-selected region-of-interest indication feedback from video decoder
CN101321287A (en) * 2008-07-08 2008-12-10 浙江大学 Video encoding method based on movement object detection
CN101742325A (en) * 2008-11-11 2010-06-16 北京中星微电子有限公司 Video coding method and coder
CN101742321A (en) * 2010-01-12 2010-06-16 浙江大学 Layer decomposition-based Method and device for encoding and decoding video
CN102006473A (en) * 2010-11-18 2011-04-06 无锡中星微电子有限公司 Video encoder and encoding method, and video decoder and decoding method
CN102413320A (en) * 2011-12-21 2012-04-11 上海大学 Method for realizing wireless network intelligent video monitoring system
CN103702014A (en) * 2013-12-31 2014-04-02 中国科学院深圳先进技术研究院 Non-contact physiological parameter detection method, system and device

Also Published As

Publication number Publication date
CN106454348A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106454348B (en) A kind of video coding-decoding method and device
EP2916543B1 (en) Method for coding/decoding depth image and coding/decoding device
US20160044329A1 (en) Image Predictive Coding Method and Image Encoder
CN110430441B (en) Cloud mobile phone video acquisition method, system, device and storage medium
EP3606050A1 (en) Video frame coding method, terminal, and storage medium
WO2017066346A1 (en) Method and apparatus for optimizing video streaming for virtual reality
CN108737825A (en) Method for coding video data, device, computer equipment and storage medium
CN102984495A (en) Video image processing method and device
CN103634556B (en) Information transmission method, information receiving method and electronic apparatus
CN110708570B (en) Video coding rate determining method, device, equipment and storage medium
CN106961603A (en) Intracoded frame code rate allocation method and device
EP3793198A1 (en) Device capability negotiation method and apparatus, and computer storage medium
CN104768063A (en) Video coding method and device
KR20150131175A (en) Resilience in the presence of missing media segments in dynamic adaptive streaming over http
CN112437301B (en) Code rate control method and device for visual analysis, storage medium and terminal
CN109688407A (en) Reference block selection method, device, electronic equipment and the storage medium of coding unit
CN106713901B (en) A kind of method for evaluating video quality and device
CN109087656B (en) Multimedia conference sound mixing method and device based on MCU
CN114374841B (en) Optimization method and device for video coding rate control and electronic equipment
CN116170582A (en) Video data processing method, device, computer equipment and storage medium
CN113747160B (en) Video coding configuration method, device, equipment and computer readable storage medium
CN105208388B (en) Dynamically adjustment encodes the method and system of frame per second in video communication
CN111617466A (en) Method and device for determining coding format and method for realizing cloud game
WO2024183508A1 (en) Video coding method and apparatus, device, and storage medium
US20240098316A1 (en) Video encoding method and apparatus, real-time communication method and apparatus, device, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant