Data updating method and system

文档序号:1642120 发布日期:2019-12-20 浏览:36次 中文

阅读说明:本技术 数据更新方法及系统 (Data updating method and system ) 是由 范志刚 马传文 于 2019-10-11 设计创作,主要内容包括:本公开提供一种数据更新方法及系统,涉及电子信息技术领域,能够解决因编码参考帧数据更新不及时造成图像编码效率低的问题。具体技术方案为:基于参考区域的图像编码方法,在确定图像区域后,获取图像区域对应的预设编码参考区域,根据预设规则判断该预设编码参考区域是否需要更新,当该预设编码参考区域需要更新时,根据备选编码参考区域对该预设编码参考区域进行更新;将更新后的预设编码参考区域向解码设备发送。本公开用于数据更新。(The invention provides a data updating method and system, relates to the technical field of electronic information, and can solve the problem of low image coding efficiency caused by untimely updating of coding reference frame data. The specific technical scheme is as follows: the image coding method based on the reference area comprises the steps of obtaining a preset coding reference area corresponding to an image area after the image area is determined, judging whether the preset coding reference area needs to be updated according to a preset rule, and updating the preset coding reference area according to an alternative coding reference area when the preset coding reference area needs to be updated; and sending the updated preset coding reference region to a decoding device. The present disclosure is for data updating.)

1. A data updating method applied to an encoding apparatus, the method comprising:

acquiring a preset coding reference region corresponding to a target region, wherein the target region comprises at least one image frame, and the preset coding reference region is used for coding the image frame in the target region;

acquiring parameter information corresponding to the preset coding reference region, wherein the parameter information comprises at least one of identification information, use frequency and use time corresponding to the preset coding reference region;

and when the parameter information accords with a preset rule, updating the preset coding reference area.

2. The method of claim 1, wherein before updating the preset coded reference region, the method further comprises:

analyzing the parameter information corresponding to the preset coding reference region, and acquiring the use frequency information corresponding to the preset coding reference region according to an analysis result, wherein the use frequency information refers to the frequency information corresponding to the preset coding reference region when the preset coding reference region is used for coding the image frame;

when the using frequency is lower than a preset frequency value, determining that the parameter information conforms to a preset rule;

or acquiring the use time corresponding to the preset coding reference region according to the analysis result, wherein the use time is the time corresponding to the preset coding reference region which is used for coding the image frame last time;

and when the service time and the preset time value are greater than a preset interval value, determining that the parameter information conforms to a preset rule.

3. The method of claim 1, wherein before updating the preset coded reference region, the method further comprises:

analyzing parameter information corresponding to the preset coding reference region, and determining identification information corresponding to the preset coding reference region according to an analysis result, wherein the identification information is used for indicating whether the preset coding reference region is a preset image or not;

and when the identification information shows that the preset coding reference area is a preset image, determining that the parameter information conforms to a preset rule.

4. The method of claim 1, wherein the updating the pre-defined coded reference region comprises:

acquiring position information corresponding to the preset coding reference region according to the parameter information of the preset coding reference region;

according to the position information, finding an alternative coding reference region corresponding to the position information in an alternative coding reference region list, wherein the alternative coding reference region list comprises at least one alternative coding reference region, and the alternative coding reference region is generated according to historical coding data;

and updating the preset coding reference region through the alternative reference region.

5. The method according to any of claims 1-4, wherein after updating the pre-set coded reference region, the method further comprises

Generating an updating instruction according to the updated preset coding reference region, wherein the updating instruction is used for instructing a decoding device to update a preset decoding reference region according to the preset coding reference region;

sending the update instruction to the decoding device.

6. The method according to claim 5, wherein after updating the preset coded reference region, the method further comprises,

acquiring a preset decoding reference area list sent by decoding equipment, wherein the preset decoding reference area list comprises at least one preset decoding reference area;

comparing the reference areas in the preset decoding reference area list and the preset coding reference area list area by area;

when the preset decoding reference area list is inconsistent with a preset coding reference area in the preset coding reference area list, generating a first updating instruction, wherein the first updating instruction is used for instructing the decoding equipment to update the preset decoding reference area list according to the preset coding reference area list;

a first update instruction is sent to the decoding device.

7. A data updating method applied to a decoding device, the method comprising:

receiving an update instruction, wherein the update instruction comprises an updated preset coding reference region and parameter information corresponding to the updated preset coding reference region, and the update instruction information is used for indicating that the preset coding reference region is updated according to the updated preset coding reference region;

and updating the corresponding preset decoding reference area in the preset decoding reference area list according to the updating instruction.

8. A data update system, comprising an encoding device and a decoding device,

the encoding device is connected with the decoding device;

the encoding device is used for acquiring a preset encoding reference region corresponding to a target region, and the preset encoding reference region is used for encoding an image frame in the target region;

acquiring parameter information corresponding to the preset coding reference region, wherein the parameter information comprises at least one of identification information, use frequency and use time corresponding to the preset coding reference region;

according to the parameter information, when the parameter information accords with a preset rule, updating the preset coding reference area;

generating an updating instruction according to the updated preset coding reference region and sending the updating instruction to the decoding equipment, wherein the updating instruction is used for indicating the decoding equipment to update the preset decoding reference region according to the preset coding reference region;

the decoding device is configured to receive an update instruction, where the update instruction includes an updated preset coding reference region and parameter information corresponding to the updated preset coding reference region, and the update instruction information is used to instruct to update the preset coding reference region according to the updated preset coding reference region;

and updating the corresponding preset decoding reference area in the preset decoding reference area list according to the updating instruction.

9. The system of claim 8, wherein the encoding device is further configured to,

analyzing parameter information corresponding to the preset coding reference region, and determining identification information corresponding to the preset coding reference region according to an analysis result, wherein the identification information is used for indicating whether the preset coding reference region is a preset image or not;

and when the identification information shows that the preset coding reference area is a preset image, determining that the parameter information conforms to a preset rule.

10. The system of claim 8, wherein the encoding device is further configured to,

acquiring position information corresponding to the preset coding reference region according to the parameter information of the preset coding reference region;

according to the position information, finding an alternative coding reference region corresponding to the position information in an alternative coding reference region list, wherein the alternative coding reference region list comprises at least one alternative coding reference region, and the alternative coding reference region is generated according to historical coding data;

and updating the preset coding reference region through the alternative reference region.

Technical Field

The present disclosure relates to the field of electronic information technologies, and in particular, to a data updating method and system.

Background

In the field of image processing, in order to reduce redundant information in image data, data is stored and transmitted in a more efficient format through image coding techniques. In the prior art, an image is encoded by an inter-frame reference image, and the encoding process includes the following steps: when the current frame image is coded, the current frame and the reference frame are compared, partial data which are the same as or similar to the reference frame are removed, and the position of the same data is marked, so that the coding purpose is achieved. However, in the prior art, the inter-frame reference image is generated according to an image corresponding to a preset position of the image to be encoded, such as an image of a previous frame or two previous frames of the image to be encoded. However, in practical applications, an image to be encoded is not always unchanged, for example, the image to be encoded is a display image of a computer desktop, and the image to be encoded changes along with the operation of a user on the computer, and an inter-frame reference image corresponding to the image to be encoded should also change continuously, but in the prior art, the reference frame image does not change along with the change, thereby causing a problem of low encoding efficiency.

Disclosure of Invention

The embodiment of the disclosure provides a data updating method and system, which can solve the problem of low image coding efficiency caused by untimely updating of coding reference frame data. The technical scheme is as follows:

according to a first aspect of the embodiments of the present disclosure, there is provided a data updating method applied to an encoding device, the method including:

acquiring a preset coding reference region corresponding to a target region, wherein the target region comprises at least one image frame, and the preset coding reference region of the target region is used for coding the image frame in the target region;

acquiring parameter information corresponding to the preset coding reference region, wherein the parameter information comprises at least one of identification information, use frequency and use time corresponding to the preset coding reference region;

and updating the preset coding reference area when the parameter information accords with a preset rule according to the parameter information.

In one embodiment, the updating the pre-set coded reference region in the method includes:

analyzing the parameter information corresponding to the preset coding reference region, and acquiring the use frequency information corresponding to the preset coding reference region according to the analysis result, wherein the use frequency information is the frequency information corresponding to the preset coding reference region when the preset coding reference region is used for coding the image frame;

when the using frequency is lower than a preset frequency value, determining that the parameter information accords with a preset rule;

or acquiring the use time corresponding to the preset coding reference region according to the analysis result, wherein the use time is the time corresponding to the preset coding reference region which is used for coding the image frame last time;

and when the service time and the preset time value are greater than the preset interval value, determining that the parameter information conforms to a preset rule.

In one embodiment, the updating the pre-set coded reference region in the method includes:

analyzing the parameter information corresponding to the preset coding reference region, and determining identification information corresponding to the preset coding reference region according to an analysis result, wherein the identification information is used for indicating whether the preset coding reference region is a preset image or not;

and when the identification information shows that the preset coding reference area is a preset image, determining that the parameter information accords with a preset rule.

In one embodiment, the updating the pre-set coded reference region in the method includes:

acquiring position information corresponding to the preset coding reference region according to the parameter information of the preset coding reference region;

according to the position information, finding an alternative coding reference region corresponding to the position information in an alternative coding reference region list, wherein the alternative coding reference region list comprises at least one alternative coding reference region, and the alternative coding reference region is generated according to historical coding data;

and updating the preset coding reference region through the alternative reference region.

In one embodiment, the method further comprises, after updating the preset coded reference region:

generating an updating instruction according to the updated preset coding reference area, wherein the updating instruction is used for instructing the decoding equipment to update the preset decoding reference area according to the preset coding reference area;

the update instruction is sent to the decoding device.

In one embodiment, the method further comprises, after updating the preset coded reference region:

acquiring a preset decoding reference area list sent by decoding equipment, wherein the preset decoding reference area list comprises at least one preset decoding reference area;

comparing the reference areas in the preset decoding reference area list and the preset coding reference area list area by area;

when the preset decoding reference area list is inconsistent with a preset coding reference area in the preset coding reference area list, generating a first updating instruction, wherein the first updating instruction is used for instructing the decoding equipment to update the preset decoding reference area list according to the preset coding reference area list;

a first update instruction is sent to the decoding device.

The data updating method provided by the embodiment of the disclosure is applied to coding equipment, and is based on an image coding method of a reference region, after the image region is determined, a preset coding reference region corresponding to the image region is obtained, whether the preset coding reference region needs to be updated or not is judged according to a preset rule, and when the preset coding reference region needs to be updated, the preset coding reference region is updated according to an alternative coding reference region; and sending the updated preset coding reference region to a decoding device. By updating the preset coding reference region, the referenceability of the preset coding reference region can be improved, the data volume of coding processing and decoding processing is reduced, and the coding and decoding efficiency is improved.

According to a second aspect of the embodiments of the present disclosure, there is provided a data updating method applied to a decoding device, including:

receiving an update instruction, wherein the update instruction comprises an updated preset coding reference region and parameter information corresponding to the updated preset coding reference region, and the update instruction information is used for indicating that the preset coding reference region is updated according to the updated preset coding reference region;

and updating the corresponding preset decoding reference area in the preset decoding reference area list according to the updating instruction.

According to a third aspect of the embodiments of the present disclosure, there is provided a data update system, including: an encoding device and a decoding device are provided,

the coding device is connected with the decoding device;

the encoding device is used for acquiring a preset encoding reference area corresponding to a target area, wherein the target area comprises at least one image frame, and the preset encoding reference area is used for encoding the image frame in the target area;

acquiring parameter information corresponding to the preset coding reference region, wherein the parameter information comprises at least one of identification information, use frequency and use time corresponding to the preset coding reference region;

updating the preset coding reference area when the parameter information accords with a preset rule according to the parameter information;

generating an updating instruction according to the updated preset coding reference region and sending the updating instruction to the decoding equipment, wherein the updating instruction is used for indicating the decoding equipment to update the preset decoding reference region according to the preset coding reference region;

the decoding device is configured to receive an update instruction, where the update instruction includes an updated preset coding reference region and parameter information corresponding to the updated preset coding reference region, and the update instruction information is used to instruct to update the preset coding reference region according to the updated preset coding reference region;

and updating the corresponding preset decoding reference area in the preset decoding reference area list according to the updating instruction.

The encoding device in the system, in one embodiment, is further configured to,

analyzing the parameter information corresponding to the preset coding reference region, and determining identification information corresponding to the preset coding reference region according to an analysis result, wherein the identification information is used for indicating whether the preset coding reference region is a preset image or not;

and when the identification information shows that the preset coding reference area is a preset image, determining that the parameter information accords with a preset rule.

The encoding device in the system, in one embodiment, is further configured to,

acquiring position information corresponding to the preset coding reference region according to the parameter information of the preset coding reference region;

according to the position information, finding an alternative coding reference region corresponding to the position information in an alternative coding reference region list, wherein the alternative coding reference region list comprises at least one alternative coding reference region, and the alternative coding reference region is generated according to historical coding data;

and updating the preset coding reference region through the alternative reference region.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.

Fig. 1 is a flow chart of a data updating method provided by an embodiment of the present disclosure;

fig. 2 is a flowchart 1 of a data updating method provided by an embodiment of the present disclosure;

fig. 3 is a schematic diagram of a data updating system provided in an embodiment of the present disclosure.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

The embodiment of the present disclosure provides a data updating method applied to an encoding device, as shown in fig. 1, the data updating method includes the following steps:

101. and acquiring a preset coding reference region corresponding to the target region.

The target area comprises at least one image frame, and the preset coding reference area is used for coding the image frame in the target area.

The preset encoding reference region is generated based on the history encoding data of the image frame displayed in the target region. The preset coding reference regions may be divided according to the types of scenes and image contents, and the reference regions may be the same size or different sizes. The image to be coded can be basically covered by presetting the coding reference regions, namely, most of the images needing to be coded can be spliced from the N preset coding reference regions.

When the target region includes a plurality of preset encoding reference regions, a preset encoding reference region list may be generated according to the preset encoding reference regions. The preset coding reference area list comprises a reference area number, reference area data and a reference area data address, and the address information is used for indicating the address of a specific block in the reference area corresponding to the target area.

Further, the image frame may be divided, wherein the image region is a region generated by dividing the image frame, and the image frame is an image frame to be encoded. The image frame comprises at least one macroblock, a macroblock comprising at least one pixel. The image frame may be a single image frame or any image frame in the video data, which is not limited by the present disclosure.

Correspondingly, the encoding device sends the preset encoding reference area to the corresponding decoding device, the decoding device stores the preset encoding reference area and then generates the preset decoding reference area, and the content of the preset encoding reference area is consistent with that of the preset decoding reference area.

The method provided by the embodiment of the disclosure determines a preset coding reference area corresponding to the position image area based on a fixed position; the image at the fixed position is changed continuously with the processing of the image by the user, so that whether to update the preset encoding reference area is required to be determined in the encoding processing of the changed image. For example: the fixed position is the upper right corner of the computer display desktop, and when a user uses the computer, the image of the computer display desktop can be changed continuously, and at the moment, the coding reference area needs to be updated. Therefore, how to update the feature data of the image to reduce the code rate to the maximum extent is the key of the multi-frame block reference.

According to the method provided by the disclosure, whether the time needing to be updated is determined according to the preset time or not through the preset coding reference area corresponding to the image area can be judged according to the preset time, or the judgment is carried out according to the decoding effect of the decoding device, if the decoding data amount corresponding to the decoding device in the preset time period is increased, the number of available reference frames is greatly reduced, and at the moment, the preset coding reference area needs to be updated.

Therefore, the method replaces the prior art that the updating strategy is set for the regular time or based on the scene switching, improves the updating efficiency and the coding efficiency.

102. And acquiring the parameter information corresponding to the preset coding reference area.

The parameter information includes at least one of identification information, usage frequency information, and usage time information corresponding to the preset encoding reference region.

The use time refers to the time when the preset coding reference area is used as the reference area last time, and the probability that the data at the earlier time displayed by the use time is updated is higher; the later the time the data is updated is less likely

The frequency of use refers to the frequency of use in a preset time period of the preset coding reference area; the higher the frequency value is, the higher the reference value of the preset coding reference area is, and the less the possibility of updating is.

The mark information is used to indicate whether the preset coding reference area is a special-purpose image, such as a toolbar image or a task bar image in Word software. The special purpose image is based on an application computer, a desktop application icon of the computer is basically invariable, and a toolbar and a task bar of the application are basically similar or identical; such special images are of the lowest priority at the time of data update and are not generally updated when there is no special case.

103. And updating the preset coding reference area when the parameter information accords with a preset rule according to the parameter information.

When the method provided by the embodiment of the present disclosure determines that the parameter information conforms to the preset rule, that is, when it is determined that the preset coding reference region needs to be updated, the preset coding reference region may be updated through the candidate coding reference region, and the specific steps may include:

acquiring position information corresponding to the image area according to the parameter information of the preset coding reference area;

according to the position information, finding a corresponding alternative coding reference region in the position information in an alternative coding reference region list;

and updating the preset coding reference region through the alternative reference region.

The candidate reference region is generated according to historical encoded data, for example, an image region encoded according to a preset encoding reference region, for example, when a contrast difference between a certain image region and a preset encoding reference region is large when the certain image region is encoded according to the preset encoding reference region, the image region may be used as the candidate reference region.

The data updating method provided by the present disclosure, after updating the preset coding reference region, further includes,

generating an updating instruction according to the updated preset coding reference area, wherein the updating instruction is used for instructing the decoding equipment to update the preset decoding reference area according to the preset coding reference area;

the update instruction is sent to the decoding device.

Specifically, the update instruction may be generated according to the reference information corresponding to the updated coding reference region and the updated coding reference region, where the coding information is used to indicate the coding reference region of the image region.

Further after updating the preset encoding reference region, it is further determined whether the reference region of the receiving device is consistent with the preset decoding reference region of the encoding device, and the specific steps include,

acquiring a preset decoding reference area list sent by decoding equipment, wherein the preset decoding reference area list comprises at least one preset decoding reference area data;

comparing a preset decoding reference area in the preset decoding reference area list with a reference area in the preset coding reference area list;

when a preset decoding reference area in the preset decoding reference area list is inconsistent with a preset coding reference area in the preset coding reference area list, generating a first updating instruction, wherein the first updating instruction is used for indicating that the preset decoding reference area list is updated according to the preset coding reference area list;

a first update instruction is sent to the encoding device.

By judging whether the preset coding reference region stored by the decoding equipment is consistent with the preset coding reference region stored by the coding equipment or not, the coding and decoding efficiency can be ensured, and the coding and decoding processing accuracy can be improved.

The data updating method provided by the embodiment of the disclosure is applied to coding equipment, and is based on an image coding method of a reference region, after the image region is determined, a preset coding reference region corresponding to the image region is obtained, whether the preset coding reference region needs to be updated or not is judged according to a preset rule, and when the preset coding reference region needs to be updated, the preset coding reference region is updated according to an alternative coding reference region; and sending the updated preset coding reference region to a decoding device. By updating the preset coding reference region, the referenceability of the preset coding reference region can be improved, the data volume of coding processing and decoding processing is reduced, and the coding and decoding efficiency is improved.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于自适应分离或捆绑方式的数据压缩、解压方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类