WO2012088847A1 - 一种帧间预测方法、装置 - Google Patents

一种帧间预测方法、装置 Download PDF

Info

Publication number
WO2012088847A1
WO2012088847A1 PCT/CN2011/076243 CN2011076243W WO2012088847A1 WO 2012088847 A1 WO2012088847 A1 WO 2012088847A1 CN 2011076243 W CN2011076243 W CN 2011076243W WO 2012088847 A1 WO2012088847 A1 WO 2012088847A1
Authority
WO
WIPO (PCT)
Prior art keywords
reference frame
current
frame
current reference
list
Prior art date
Application number
PCT/CN2011/076243
Other languages
English (en)
French (fr)
Inventor
舒倩
Original Assignee
深圳市融创天下科技股份有限公司
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 深圳市融创天下科技股份有限公司 filed Critical 深圳市融创天下科技股份有限公司
Publication of WO2012088847A1 publication Critical patent/WO2012088847A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction

Definitions

  • the present invention relates to the field of video coding, and in particular, to an interframe prediction method and apparatus. Background technique
  • intra prediction is typically used to eliminate spatial redundancy of the image
  • interframe prediction is used to eliminate temporal redundancy.
  • the inter-frame information redundancy of the video source is much larger than that in the frame, which makes the inter-frame coding method extremely important in video coding.
  • the current mainstream B-frame prediction method uses a forward-coded frame and a backward-coded frame as the forward-back reference frame of the current coded B frame, respectively, using the similarity between the current coded B frame and the forward-back reference frame. Compresses the information of the current encoded B frame. This has a good effect when the reference frame has a high degree of approximation to the currently encoded B frame, but as the degree of approximation decreases, the compression effect drops dramatically. This problem is particularly noticeable when encoding sources such as low frame rate and global lens advancement. Summary of the invention
  • the purpose of the embodiments of the present invention is to provide an inter-frame prediction method, which aims to solve the problem that the reference frame encountered in the prior art has a small degree of approximation to the current coded frame, especially in the case of low frame rate, global lens advancement, and the like.
  • it causes a problem that the compression of the current encoded frame is relatively low.
  • the present invention provides an inter prediction method, where the method includes:
  • Step 101 preset a first parameter M
  • Step 102 Select a reference frame list
  • Step 103 Determine whether the reference frame list is a forward reference list or a backward reference list; if it is the forward reference list, execute step 104, if it is the backward reference list, perform step 105;
  • Step 104 The first current reference frame in the forward reference frame list is not processed, and the first current reference frame is further processed according to the relationship between the first current reference frame and the current coded frame, and the forward reference frame is processed. The list is updated, and the first current reference frame has been processed, and the process proceeds to step 106;
  • Step 105 If the second current reference frame in the backward reference frame list is not processed, further processing the second current reference frame according to a relationship between the second current reference frame and a current coded frame, where Updating to the reference frame list, and labeling that the second current reference frame has been processed; Step 106: Add 1 to the first parameter M to determine whether M is greater than 1, if yes, execute step 107; if otherwise, perform step 102;
  • Step 107 Perform inter prediction on the current encoded frame by using the updated forward reference frame list and the updated backward reference frame list.
  • the present invention also provides an inter prediction apparatus, the apparatus comprising:
  • An initializing unit configured to preset a first parameter M
  • a first determining unit configured to select a reference frame list, and determine whether the reference frame list is a forward reference list or a backward reference list;
  • a reference frame unit configured to: when the reference frame list is a forward reference frame list, if the first current reference frame in the forward reference frame list is not processed, further according to the first current reference frame and current Encoding the frame to process the first current reference frame, updating the forward reference frame list, and marking that the first current reference frame has been processed; setting the first parameter M plus 1;
  • the reference frame list is a backward reference frame list
  • the second current reference frame in the backward reference frame list is not processed, further according to the relationship between the second current reference frame and the current coded frame Processing the second current reference frame, updating the backward reference frame list, and marking that the second current reference frame has been processed; setting the first parameter M plus 1;
  • a prediction unit configured to determine whether the first parameter M is greater than 1, and if yes, perform inter prediction on the current coded frame by using the updated forward reference frame list or the updated backward reference frame list; The first judging unit continues to operate.
  • the present invention provides an interframe prediction method and apparatus.
  • the method and apparatus process the current reference frame Listk_refi according to different methods by differentiating the relationship between the current reference frame and the current coded frame in the frame list, and obtaining the updated current.
  • reference frame cmr _ Listk _ ref l improving the similarity of the current reference frame and the encoded frame after updating, so as to achieve optimization of the current encoded frame compression.
  • the lens-to-frame lens variation is greater.
  • the improvement in compression performance will be more significant.
  • FIG. 1 is a flow chart of a method of a first preferred embodiment of the inter prediction method of the present invention
  • FIG. 2 is a flow chart of a method of a second preferred embodiment of the inter prediction method of the present invention
  • FIG. 3 is a flowchart of a method of a third preferred embodiment of the inter prediction method of the present invention.
  • FIG. 4 is a block diagram showing the structure of a preferred embodiment of the inter prediction apparatus of the present invention.
  • the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. For the convenience of description, only the parts related to the embodiments of the present invention are shown. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • the present invention proposes a new interframe prediction method for B frames.
  • the method determines the motion of the lens according to the relationship between the current reference frame and the current coded frame, and performs up-and-down sampling processing according to the method of zooming in or zooming out of the lens respectively, thereby improving the similarity between the current reference frame and the encoded frame, thereby achieving optimization of the current
  • the compression effect of the encoded frame At low frame rates, the lens-to-frame lens variation is greater. In this case, with the frame prediction method of the present invention, the improvement in compression performance will be more significant.
  • Step 101 Presetting a first parameter M and a second parameter K, M and K are integers; M initial value is 0;
  • Step 102 Select a reference frame list; that is, select ListK, K may be 0 or 1, where ListO is set as a forward reference list, and Listl is a backward reference list;
  • Step 103 Determine whether the second parameter K in the reference frame list is 0, if it is 0, execute step 104, if not 0, execute step 105;
  • Step 104 The reference frame list is a forward reference frame list; if the first current reference frame L ⁇ t_r in the forward reference frame list (the first current reference frame in the present invention may be a forward reference frame) If any of the reference frames in the list is unprocessed, the first current reference frame _ ⁇ /; is further processed according to the relationship between the first current reference frame Z _ r e /; and the current coded frame/mme, for the forward reference The frame list is updated, and the first current reference frame ⁇ _ ⁇ _ ⁇ /; in the updated forward reference frame list is obtained, and the first current reference frame L ⁇ t_r in the forward reference frame list is marked and processed. Go to step 106;
  • Step 105 The reference frame list is a backward reference frame list; if the second current reference frame L ⁇ t_r in the backward reference frame list (the second current reference frame in the present invention may be a backward reference frame) If any of the reference frames in the list is unprocessed, the second current reference frame is further processed according to the relationship between the second current reference frame _r e /; and the current coded frame / mme, and the backward reference frame list is updated, Obtaining the second current reference frame in the updated backward reference frame list, and labeling the second current reference frame in the backward reference frame list has been processed, proceeding to step 106;
  • Step 106 Setting the first parameter M plus 1, determining whether M is greater than 1, if yes, executing step 107; if otherwise, performing step 102;
  • Step 107 Perform inter prediction on the current coded frame by using the updated forward reference frame list and the updated backward reference frame list.
  • the method processes the current reference frame Listk refi according to different methods by using a relationship between the current reference frame and the current encoded frame in the reference frame list, and obtains the updated current reference frame curr_Listk.
  • the similarity between the current reference frame and the encoded frame after updating is improved, thereby achieving the compression effect of optimizing the current encoded frame.
  • the lens-to-frame lens variation is greater.
  • the improvement in compression performance will be more significant.
  • Step 201 Presetting a first parameter M and a second parameter K, M and K are integers; 0;
  • Step 202 Select a reference frame list; that is, select ListK, K may be 0 or 1, where ListO is set as a forward reference frame list, and Listl is a backward reference frame list;
  • Step 203 Determine whether the second parameter K in the reference frame list is 0, if K is 0, it is a forward reference frame list, if not 0, a backward reference frame list; and determine the forward reference list. Whether the second current reference frame in the first current reference frame or the backward reference list has not been processed; if K is 0 and the first current reference frame is not processed, step 204 is performed, if K is not 0 and the second current reference is If the frame has not been processed, step 204 is performed;
  • Step 204 Determine the action of the lens according to the relationship between the first current reference frame L ⁇ t_r or the second current reference frame _r in the backward reference frame list and the current coded frame/ rame in the forward reference frame list, if the lens is pulled Step 205 is performed, if the lens is zoomed out, step 206 is performed; if there is no lens zooming in or out, step 207 is performed;
  • the step of processing the first current reference frame or the second current reference frame to obtain the second reference frame is: performing upsampling on the first current reference frame or the second current reference frame to obtain a second reference frame.
  • the first current reference frame or the second current reference frame is processed to obtain a fourth reference frame, which is specifically:
  • Step 207 The first current reference frame in the forward reference frame list or the second current reference frame in the backward reference list is not processed, that is, the updated first current reference frame or the second current reference is directly set.
  • the frame c M rr_Z ⁇ _r is the first current reference frame or the second current reference frame Z s _r e /; and indicates that the first current reference frame or the second current reference frame has been processed;
  • Step 208 setting the first parameter M plus 1, determining whether M is greater than 1, if yes, executing step 209; otherwise, performing step 202;
  • Step 209 Perform inter prediction on the current encoded frame by using the updated forward reference frame list and the updated backward reference frame list.
  • the method By determining the relationship between the current reference frame and the current encoded frame, the method performs up-and-down sampling processing according to the method of zooming in or zooming out of the lens, thereby improving the similarity between the updated current reference frame and the encoded frame, thereby achieving optimization of the current encoding.
  • the compression effect of the frame At low frame rate, the lens change between frames is larger. At this time, with the frame prediction method of the present invention, the improvement of compression performance will be more significant.
  • Embodiment 3 provides an inter-frame prediction method for a B frame, specifically: Step 301: Presetting a first parameter M and a second parameter K, M and K are integers; 0; Step 302: Select a reference frame list; that is, select ListK, K can be 0 or 1, where ListO is set as a forward reference list, and Listl is a backward reference list;
  • Step 303 Determine whether the second parameter K in the reference frame list is 0. If it is 0, the current reference frame list is a forward reference frame list, and is not 0, that is, the current reference frame list is a backward reference frame list; Further determining that the first current reference frame in the forward reference list has not been processed, performing step 304, if, and the second reference frame in the backward reference list has not been processed, performing step 304;
  • Step 304 Determine the action of the lens according to the relationship between the second current reference frame in the forward reference frame list or the second current reference frame in the backward reference frame list and the current coded frame. If the lens is zoomed in, perform step 305. Step 306; if there is no lens zooming in, then step 307;
  • the step is specifically performed: performing upsampling on the first current reference frame or the second current reference frame to obtain a second reference frame; performing boundary pixel deletion on the second reference frame, acquiring the first current reference frame or the second
  • the current reference frame has a third reference frame of the same resolution; and the boundary pixel deletion method of the second reference frame is specifically:
  • Listk ref t (m, n) Listk ref ⁇ (m + d— heiflit k, + d _ width k )
  • Z e / ' is a second reference frame, "is a third reference frame, o _width k , o - height k is to ⁇ _ r e y; the first current reference frame or the column of the second current reference frame Number and number of lines, m - widt , - ⁇ '" is the number of columns and rows of the second reference frame wK';
  • m , composer is the row and column label of the pixel (the row number and column of the pixels of all reference frames) The labels are all m, "representation"; d _ width k - ⁇ m_ width to _ width k )12
  • Step 306 If the lens is zoomed out, the first current reference frame or the second current reference frame Z s _r is processed to obtain a fourth reference frame L _r ", and the fourth reference frame Z ⁇ _r is further processed to obtain a fifth reference frame ' ⁇ - ⁇ ""; and setting the processed first current reference frame or second current reference frame as a fifth reference frame L ⁇ t_r e /T, and labeling the first current reference frame or the first The second current reference frame has been processed; go to step 308;
  • the step body is implemented as: performing downsampling on the first current reference frame or the second current reference frame to obtain a fourth reference frame; performing boundary pixel fill expansion on the fourth reference frame, acquiring the first current reference frame or the Said second current reference frame having said fifth reference frame of the same resolution;
  • the method for performing boundary pixel fill expansion on the fourth reference frame is specifically: column filling:
  • Step 307 No processing is performed on the first current reference frame in the forward reference frame list or the second current reference frame in the backward reference list, that is, directly setting the updated first current reference frame or second current reference frame Curr _ Listk _ ref i is the first current reference frame or the second current reference frame Listk _ ref, and indicates that the first current reference frame or the second current reference frame has been processed, and then proceeds to step 308;
  • Step 308 setting the first parameter M plus 1, determining whether M is greater than 1, if yes, executing step 309; if otherwise, performing step 302;
  • Step 309 Perform inter prediction on the current encoded frame by using the updated forward reference frame list and the updated backward reference frame list.
  • the method performs up-and-down sampling processing according to the relationship that the current reference frame and the current encoded frame are respectively zoomed in or out according to the lens, and further performs pixel deletion on the second reference frame, and performs pixel expansion on the fourth reference frame. So that the updated current reference frame has the same resolution as the current reference frame, avoiding memory reallocation and facilitating code compatibility. Thereby, the similarity between the updated reference frame and the encoded frame is further improved, and the compression effect of the current encoded frame is optimized. At low frame rates, the lens-to-frame lens variation is greater. In this case, with the frame prediction method of the present invention, the improvement in compression performance will be more significant.
  • Embodiment 4 further provides an inter prediction apparatus, where the apparatus includes: an initializing unit 401, configured to preset a first parameter M, and an initial value of 0;
  • the first determining unit 402 is configured to select a reference frame list, and determine whether the reference frame list is a forward reference list or a backward reference list;
  • a reference frame unit 403 configured to: when the reference frame list is a forward reference frame list, if the first current reference frame in the forward reference frame list is not processed, further according to the first current in the forward reference frame list Processing the first current reference frame by the relationship between the reference frame and the current coded frame, updating the forward reference frame list, obtaining the first current reference frame in the updated forward reference frame list, and marking that the first current reference frame has been processed Pass; set the first parameter M plus 1;
  • the reference frame list is a backward reference frame list
  • the second current reference frame in the backward reference frame list is not processed, further according to the second current reference frame in the backward reference frame list and the current coding
  • the relationship of the frame processes the second current reference frame, updates the backward reference frame list, obtains the second current reference frame in the updated backward reference frame list, and indicates that the second current reference frame has been processed; Parameter M plus 1;
  • the prediction unit 404 is configured to determine whether the first parameter M is greater than 1, and if yes, perform inter prediction on the current encoded frame by using the updated forward reference frame list or the updated backward reference frame list; if not, the first determining unit Keep running.
  • the reference frame unit 403 is further used to further according to the forward reference frame list. Processing a first current reference frame in a relationship between the first current reference frame and the current encoded frame, and updating the forward reference frame list to obtain a first current reference frame in the updated forward reference frame list, and And processing, according to the relationship between the second current reference frame and the current encoded frame in the backward reference frame list, the second current reference frame, and updating the backward reference frame list to obtain the updated backward reference frame list.
  • the second current reference frame is specifically:
  • the first current reference frame or the second current reference frame is processed to obtain a second reference frame, and the processed first current reference frame or second second current reference frame is set to Two reference frames;
  • the first current reference frame or the second current reference frame is not processed; the first current reference frame or the second current reference frame is set as the first current reference frame or the second current reference frame;
  • the method of processing the first current reference frame or the second current reference frame to obtain the second reference frame is: performing upsampling on the first current reference frame or the second current reference frame to obtain a second reference frame;
  • the first current reference frame or the second current reference frame in the frame list is processed, and the fourth reference frame is obtained by: downsampling the first or second current reference frame in the current reference list to obtain a fourth reference frame.
  • the reference frame unit 403 is configured to: after obtaining the second reference frame, further processing the second reference frame to obtain a third reference frame; and processing the processed first current reference frame. Or the second current reference frame is set as a third reference frame.
  • the reference frame unit 403 is configured to process the second reference frame, and obtain the third reference frame as follows:
  • the method for performing boundary pixel deletion on the second reference frame is specifically:
  • Listk _ ref t (m, n) Listk _ ref t (m + d _ heifht k , n + d _ width k )
  • L _ r is the second reference ⁇
  • "is the third reference ⁇ , o _ width k , o height k is the number of columns of the first current reference frame or the second current reference frame ⁇ - 1 ⁇
  • m - widt is the number of columns and rows of the second reference frame ⁇ - ', m
  • the reference frame unit 403 is configured to: after obtaining the fourth reference frame, further processing the fourth reference frame to obtain a fifth reference frame; and processing the processed first current reference frame or the second current reference The frame is set to the fifth reference frame.
  • the reference frame unit 403 is configured to process the fourth reference frame, and obtain the fifth reference frame as follows:
  • the method for performing boundary pixel fill expansion on the fourth reference frame is specifically: column filling:
  • L _r is the fourth reference frame
  • ⁇ ⁇ '" is the fifth reference frame
  • " is the number of columns of the first current reference frame or the second current reference frame ⁇ - ⁇
  • the number of rows, m _ widt , m- ⁇ " is the number of columns and rows of the fourth reference frame ⁇ _ ", m, the row label and the column label of the pixel (the row and column labels of the pixels of all reference frames are Use m, M to represent);
  • the present invention determines The relationship between the current reference frame and the current encoded frame is subjected to up-and-down sampling processing according to the manner in which the lens is zoomed in or out, and the second reference frame is further deleted by pixels, and the
  • the storage medium may be a ROM, a RAM, a magnetic disk, an optical disk, or the like.

Landscapes

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

Description

一种帧间预测方法、 装置 技术领域
本发明涉及视频编码领域, 尤其涉及一种帧间预测方法、 装置。 背景技术
在视频编码中,通常使用帧内预测来消除图像的空间冗余度, 使用帧间预 测来消除时间冗余度。 其中视频源的帧间信息冗余度相比较于帧内的要大得 多, 这就使得帧间编码方法在视频编码中显得极为重要。
帧间预测根据预测方向的不同分为: P帧预测和 B帧预测。 目前主流的 B 帧预测方法采用前向已编码的帧以及后向已编码的帧, 分别作为当前编码 B 帧的前后向参考帧, 利用当前编码 B帧与前后向参考帧之间的相似性,压缩当 前编码 B帧的信息。这在参考帧与当前编码 B帧具有高近似度时, 具有很好的 效果,但随着两者间近似度的降低,压缩效果也会急剧下降。尤其在对低帧率、 全局镜头推进等片源进行编码时, 这个问题将显著凸现。 发明内容
本发明实施例的目的在于提出一种帧间预测方法,旨在解决现有技术中遇 到的参考帧与当前编码帧近似度较小, 尤其在对低帧率、全局镜头推进等片源 进行编码时, 导致压缩当前编码帧效果比较低的问题。
本发明提供一种帧间预测方法, 所述的方法包括:
步骤 101 : 预设第一参数 M;
步骤 102 : 选取参考帧列表;
步骤 103 : 判断所述参考帧列表是前向参考列表还是后向参考列表; 若为 所述前向参考列表则执行步骤 104, 若为所述后向参考列表则执行步骤 105; 步骤 104: 若所述前向参考帧列表内的第一当前参考帧未处理过, 则进一 步根据所述第一当前参考帧与当前编码帧的关系处理所述第一当前参考帧,对 所述前向参考帧列表进行更新, 并标注所述第一当前参考帧已处理过,进入步 骤 106;
步骤 105: 若所述后向参考帧列表内的第二当前参考帧未处理过, 则进一 步根据所述第二当前参考帧与当前编码帧的关系处理所述第二当前参考帧,对 所述后向参考帧列表进行更新, 并标注所述第二当前参考帧已处理过; 步骤 106 : 将所述第一参数 M加 1, 判断 M是否大于 1, 若是则执行步骤 107; 若否则执行步骤 102 ;
步骤 107 : 通过更新后的前向参考帧列表和更新后的后向参考帧列表对所 述当前编码帧进行帧间预测。
本发明还提供了一种帧间预测装置, 该装置包括:
初始化单元, 用于预设第一参数 M;
第一判断单元,用于选取参考帧列表,判断所述参考帧列表是前向参考列 表还是后向参考列表;
参考帧单元,用于当所述参考帧列表为前向参考帧列表, 若所述前向参考 帧列表内的第一当前参考帧未处理过,则进一步根据所述第一当前参考帧与当 前编码帧的关系处理所述第一当前参考帧, 对所述前向参考帧列表进行更新, 并标注所述第一当前参考帧已处理过; 设置所述第一参数 M加 1 ;
用于当所述参考帧列表为后向参考帧列表,若所述后向参考帧列表内的第 二当前参考帧未处理过,则进一步根据所述第二当前参考帧与当前编码帧的关 系处理所述第二当前参考帧,对所述后向参考帧列表进行更新, 并标注所述第 二当前参考帧已处理过; 设置所述第一参数 M加 1 ;
预测单元, 用于判断所述第一参数 M是否大于 1, 若是则通过更新后的前 向参考帧列表或更新后的后向参考帧列表对所述当前编码帧进行帧间预测;若 否则所述第一判断单元继续运行。
本发明提出一种帧间预测方法及装置,该方法及装置通过参考帧列表内当 前参考帧与当前编码帧的关系不同, 按照不同的方法来处理当前参考帧 Listk _ refi,获取更新后的当前参考帧 cmr _ Listk _ refl ,提高了更新后当前参考帧 与编码帧的相似度, 从而达到了优化当前编码帧的压缩效果。在低帧率时, 帧 与帧之间的镜头变化更大, 此时采用本发明的帧预测方法,压缩性能的提升将 更为显著。 附图说明
下面将结合附图及实施例对本发明作进一步说明, 附图中:
图 1是本发明的帧间预测方法的第一优选实施例的方法流程图
图 2是本发明的帧间预测方法的第二优选实施例的方法流程图
图 3是本发明的帧间预测方法的第三优选实施例的方法流程图
图 4是本发明的帧间预测装置的优选实施例的结构示意图。 具体实施方式 为了使本发明的目的、技术方案及优点更加清楚明白, 以下结合附图和实 施例, 对本发明进行进一步详细说明, 为了便于说明, 仅示出了与本发明实施 例相关的部分。 应当理解, 此处所描写的具体实施例, 仅仅用于解释本发明, 并不用以限制本发明。
本发明提出一种新的 B帧的帧间预测方法。该方法通过根据当前参考帧与 当前编码帧的关系确定镜头的动作,分别按照镜头拉远或拉近的方式进行上下 采样处理, 提高了当前参考帧与编码帧的相似度, 从而达到了优化当前编码帧 的压缩效果。在低帧率时, 帧与帧之间的镜头变化更大, 此时采用本发明的帧 预测方法, 压缩性能的提升将更为显著。
实施例 1, 参见图 1, 该方法主要应用于 B帧的帧间预测, 具体为: 步骤 101 : 预设第一参数 M与第二参数 K, M与 K为整数; M初始值为 0; 步骤 102: 选取参考帧列表; 即选取 ListK, K可以为 0或 1, 在此设置 ListO为前向参考列表, Listl为后向参考列表;
步骤 103: 判断所述的参考帧列表中的第二参数 K是否为 0, 若为 0则执 行步骤 104, 若不为 0则执行步骤 105;
步骤 104: 所述参考帧列表为前向参考帧列表; 若前向参考帧列表内的第 一当前参考帧 L^t _ r (本发明所述的第一当前参考帧可以为前向参考帧列表 中任一个参考帧)未处理过, 则进一步根据第一当前参考帧 Z _ re /;与当前编 码帧 /mme的关系处理第一当前参考帧 _^/;, 对所述前向参考帧列表进行 更新, 获取更新后的前向参考帧列表中的第一当前参考帧 ^ _ ^ _ ^/;, 并 标注前向参考帧列表内的第一当前参考帧 L^t _ r 已处理过, 进入步骤 106;
步骤 105: 所述参考帧列表为后向参考帧列表; 若后向参考帧列表内的第 二当前参考帧 L^t _ r (本发明所述的第二当前参考帧可以为后向参考帧列表 中任一个参考帧)未处理过, 则进一步根据第二当前参考帧 _ re /;与当前编 码帧/ mme的关系处理第二当前参考帧, 对所述后向参考帧列表进行更新, 获 取更新后的后向参考帧列表中的第二当前参考帧,并标注后向参考帧列表内的 第二当前参考帧已处理过, 进入步骤 106;
步骤 106:设置第一参数 M加 1,判断 M是否大于 1,若是则执行步骤 107; 若否则执行步骤 102;
步骤 107: 通过更新后的前向参考帧列表和更新后的后向参考帧列表对当 前编码帧进行帧间预测。
该方法通过参考帧列表内当前参考帧与当前编码帧的关系不同,按照不同 的方法来处理当前参考帧 Listk refi, 获取更新后的当前参考帧 curr— Listk , 提高了更新后当前参考帧与编码帧的相似度,从而达到了优化当前编码帧的压 缩效果。在低帧率时, 帧与帧之间的镜头变化更大, 此时采用本发明的帧预测 方法, 压缩性能的提升将更为显著。 实施例 2, 参见图 2, 本发明提供了一种 B帧的帧间预测方法 , 具体为: 步骤 201 : 预设第一参数 M与第二参数 K, M与 K为整数; M初始值为 0; 步骤 202: 选取参考帧列表; 即选取 ListK, K可以为 0或 1, 在此设置 ListO为前向参考帧列表, Listl为后向参考帧列表;
步骤 203: 判断所述的参考帧列表中的第二参数 K是否为 0, 若 K为 0为 前向参考帧列表, 若不为 0为后向参考帧列表; 以及确定前向参考列表中的第 一当前参考帧或后向参考列表中的第二当前参考帧是否未处理过; 若 K 为 0 且第一当前参考帧未处理过则执行步骤 204, 若 K不为 0且第二当前参考帧未 被处理过则执行步骤 204;
步骤 204 : 根据前向参考帧列表中第一当前参考帧 L^t _ r 或后向参考 帧列表中第二当前参考帧 _ r 与当前编码帧 /rame的关系确定镜头的动 作, 若是镜头拉近则执行步骤 205, 若是镜头拉远则执行步骤 206; 若不存在 镜头推远或拉近, 执行步骤 207;
^ (镜头拉进) 进入步骤 205;
else ^ (镜头推远) 进入步骤 206;
进入步骤 207。
步骤 205 : 若是镜头拉近则对第一当前参考帧或第二当前参考帧 L^t _ r 进行处理,得到第二参考帧 L _ r , 并将更新后的第一当前参考帧或第二当 前参考帧 curr _ Listk _ refi设置为第二参考帧, curr _ Listk _ refi = Listk _ ref;; 并标注 第一当前参考帧或第二当前参考帧已处理过; 执行步骤 208;
该步骤中对第一当前参考帧或第二当前参考帧进行处理得到第二参考帧 具体为: 对第一当前参考帧或第二当前参考帧进行上采样, 得到第二参考帧。
步骤 206: 若为镜头拉远则对第一当前参考帧或第二当前参考帧 s _ re/; 进行处理, 得到第四参考帧 ^ _ r ", 并将更新后的第一当前参考帧或第二 当前参考帧 t¾rr _ L^t_ re/;.设置为第四参考帧, curr _ Listk _ refi = Listk _ ref^; 并标 注第一当前参考帧或第二当前参考帧已处理过; 执行步骤 208;
该步骤中对第一当前参考帧或第二当前参考帧进行处理,得到第四参考帧 具体为:
对第一当前参考帧或第二当前参考帧进行下采样, 得到第四参考帧。
步骤 207: 前向参考帧列表内的第一当前参考帧或后向参考列表内的第二 当前参考帧不进行处理,即直接设置更新后的第一当前参考帧或第二当前参考 帧 cMrr_Z^_r 为第一当前参考帧或第二当前参考帧 Z s _re/;,并标注第一当 前参考帧或第二当前参考帧已处理过;
步骤 208:设置第一参数 M加 1,判断 M是否大于 1,若是则执行步骤 209; 若否则执行步骤 202;
步骤 209: 通过更新后的前向参考帧列表和更新后的后向参考帧列表对所 述当前编码帧进行帧间预测。
该方法通过确定当前参考帧与当前编码帧的关系,分别按照镜头拉远或拉 近的方式进行上下采样处理, 提高了更新后的当前参考帧与编码帧的相似度, 从而达到了优化当前编码帧的压缩效果。在低帧率时, 帧与帧之间的镜头变化 更大, 此时采用本发明的帧预测方法, 压缩性能的提升将更为显著
实施例 3, 参见图 3, 本发明提供了一种 B帧的帧间预测方法 , 具体为: 步骤 301: 预设第一参数 M与第二参数 K, M与 K为整数; M初始值为 0; 步骤 302: 选取参考帧列表; 即选取 ListK, K可以为 0或 1, 在此设置 ListO为前向参考列表, Listl为后向参考列表;
步骤 303: 判断所述的参考帧列表中的第二参数 K是否为 0, 若为 0即当 前参考帧列表为前向参考帧列表, 不为 0 即当前参考帧列表为后向参考帧列 表; 进一步确定前向参考列表内的第一当前参考帧未处理过, 执行步骤 304, 若, 以及后向参考列表内的第二参考帧没有处理过, 执行步骤 304;
步骤 304: 根据前向参考帧列表中的第一当前参考帧或后向参考帧列表 中第二当前参考帧与当前编码帧的关系确定镜头的动作,若是镜头拉近则执行 步骤 305, 若是镜头拉远则执行步骤 306; 若不存在镜头推远拉近, 则执行步 骤 307;
^ (镜头拉进) 进入步骤 305;
else ^ (镜头推远) 进入步骤 306;
进入步骤 307。
步骤 305: 若是镜头拉近则对第一当前参考帧或第二当前参考帧 s _re/; 进行处理,得到第二参考帧 L _r ,进一步对第二参考帧 L _r 进行处理, 得到第三参考帧 L^t_r '; 并将处理后的第一当前参考帧或第二当前参考帧 设置为第三参考帧, curr _Listk _ ί = Listk _ref:, 并标注第一当前参考帧或第二 当前参考帧已处理过, 进入步骤 308;
该步骤具体实现为:对第一当前参考帧或第二当前参考帧进行上采样,得 到第二参考帧; 将第二参考帧进行边界像素删除, 获取与第一当前参考帧或所 述第二当前参考帧具有相同分辨率的第三参考帧;并且将第二参考帧进行边界 像素删除方法具体为:
Listk reft (m, n) = Listk ref{ (m + d— heiflit k, + d _ width k ) 其中 Z e/'为第二参考帧, "为第三参考帧, o _widthk、 o— height k 为 to^_rey;所述第一当前参考帧或所述第二当前参考帧的列数与行数, m-widt 、 -^' "为第二参考帧 wK' 的列数与行数; m、 „为像素的 行标号与列标号 (所有的参考帧的像素的行标号和列标号均使用 m、 《表示); d _ width k -{m_ width t-o _ widthk )12
d _ height t -{m_ height t-o _ height k )12
步骤 306: 若为镜头拉远则对第一当前参考帧或第二当前参考帧 Z s _r 进行处理, 得到第四参考帧 L _r ", 进一步对第四参考帧 Z^_r "进行处 理, 得到第五参考帧 '^-^^""; 并将处理后的第一当前参考帧或第二当前参 考帧设置为第五参考帧 L^t_re/T, 并标注第一当前参考帧或第二当前参考帧 已处理过; 进入步骤 308;
该步骤体实现为: 对第一当前参考帧或第二当前参考帧进行下采样,得到 第四参考帧; 对第四参考帧进行边界像素填充扩展, 获取与所述第一当前参考 帧或所述第二当前参考帧具有相同分辨率的所述第五参考帧;
其中对第四参考帧进行边界像素填充扩展的方法具体为: 列填充:
Listk refi (m,0) 0 <n -<d _ width k
Listk refi (m,n) Listk refi (m,n) d width t≤n -<o_ widthk— d— width
Listk rej (m' ° widthk 1) o width, -d _ width k≤n -<o _ width, 行填充:
Listk— rej 0 < m -< d _ height
Listk refi (m,n) Listk refi (m,n) d height k <n o _ heightk— d _ height k
Listk— rej (° height k o height k -d _ height k≤ n o— height k 其中 L _r 为第四参考帧, tolr 为第五参考帧、 °-width 。Χ 为 所述第一当前参考帧或所述第二当前参考帧1 的列数与行数, m_width"k、 为所述第四参考帧^ _ "的列数与行数, m、 n为像 素的行标号与列标号 (所有的参考帧的像素的行标号和列标号均使用 m、 M表 d _ width k - {o _ widthk—m— width k ) / 2
d _ height k - {o _ height k—m— height t ) l 2
步骤 307 : 对前向参考帧列表中的第一当前参考帧或后向参考列表内的第 二当前参考帧不进行处理,即直接设置更新后的第一当前参考帧或第二当前参 考帧 Curr _ Listk _ refi为第一当前参考帧或第二当前参考帧 Listk _ ref,,并标注第一 当前参考帧或第二当前参考帧已处理过, 然后进入步骤 308;
步骤 308 :设置第一参数 M加 1,判断 M是否大于 1,若是则执行步骤 309; 若否则执行步骤 302 ;
步骤 309 : 通过更新后的前向参考帧列表和更新后的后向参考帧列表对所 述当前编码帧进行帧间预测。
该方法通过确定当前参考帧与当前编码帧的关系,分别按照镜头拉远或拉 近的方式进行上下采样处理, 并且进一步对第二参考帧进行了像素删除,对第 四参考帧进行了像素扩展,使得更新后的当前参考帧与当前参考帧具有相同的 分辨率, 避免了内存的重新分配, 便于代码的兼容。从而进一步提高了更新后 的参考帧与编码帧的相似度,达到了优化当前编码帧的压缩效果。在低帧率时, 帧与帧之间的镜头变化更大, 此时采用本发明的帧预测方法,压缩性能的提升 将更为显著。
实施例 4, 参见图 4, 本发明还提供了一种帧间预测装置, 该装置包括: 初始化单元 401, 用于预设第一参数 M, M初始值为 0 ;
第一判断单元 402, 用于选取参考帧列表, 判断所述参考帧列表是前向参 考列表还是后向参考列表;
参考帧单元 403, 用于当所述参考帧列表为前向参考帧列表, 若前向参考 帧列表内的第一当前参考帧未处理过,则进一步根据前向参考帧列表中的第一 当前参考帧与当前编码帧的关系处理第一当前参考帧,对前向参考帧列表进行 更新, 获取更新后的前向参考帧列表中的第一当前参考帧, 并标注第一当前参 考帧已处理过; 设置第一参数 M加 1 ;
用于当所述参考帧列表为后向参考帧列表,若后向参考帧列表内的第二当 前参考帧未处理过,则进一步根据后向参考帧列表中的第二当前参考帧与当前 编码帧的关系处理第二当前参考帧,对后向参考帧列表进行更新, 获取更新后 的后向参考帧列表中的第二当前参考帧, 并标注第二当前参考帧已处理过; 设 置第一参数 M加 1 ;
预测单元 404, 用于判断第一参数 M是否大于 1, 若是则通过更新后的前 向参考帧列表或更新后的后向参考帧列表对当前编码帧进行帧间预测;若否则 第一判断单元继续运行。
对应于实施例 2, 参考帧单元 403进一步用于进一步根据前向参考帧列表 中的第一当前参考帧与当前编码帧的关系处理第一当前参考帧,并对所述前向 参考帧列表进行更新, 获取更新后的前向参考帧列表中的第一当前参考帧, 以 及进一步根据后向参考帧列表中的第二当前参考帧与当前编码帧的关系处理 第二当前参考帧, 并对所述后向参考帧列表进行更新, 获取更新后的后向参考 帧列表中的第二当前参考帧具体为:
根据所述第一当前参考帧或所述第二当前参考帧与所述当前编码帧的关 系确定镜头的动作;
若是镜头拉近则对所述第一当前参考帧或所述第二当前参考帧进行处理, 得到第二参考帧,并将处理后的第一当前参考帧或第二二当前参考帧设置为第二 参考帧;
若是镜头拉远则对所述第一当前参考帧或所述第二当前参考帧进行处理, 得到第四参考帧,并将处理后的第一当前参考帧或第二二当前参考帧设置为第四 参考帧;
否则,对所述第一当前参考帧或所述第二当前参考帧不进行处理; 设置处 理后的第一当前参考帧或第二当前参考帧为第一当前参考帧或第二当前参考 帧;
其中对将第一当前参考帧或第二当前参考帧进行处理,得到第二参考帧具 体为: 对第一当前参考帧或第二当前参考帧进行上采样, 得到第二参考帧; 对 当前参考帧列表中的第一当前参考帧或第二当前参考帧进行处理,得到第四参 考帧具体为:对当前参考列表中的第一或第二当前参考帧进行下采样,得到第 四参考帧。
对应于实施例 3, 所述的参考帧单元 403, 用于得到所述第二参考帧后, 进一步对第二参考帧进行处理,得到第三参考帧; 并将处理后的第一当前参考 帧或第二当前参考帧设置为第三参考帧。
其中参考帧单元 403 用于对第二参考帧进行处理, 得到第三参考帧具体 为:
将第二参考帧进行边界像素删除,获取与所述第一当前参考帧或所述第二 当前参考帧具有相同分辨率的所述第三参考帧;
所述的将第二参考帧进行边界像素删除方法具体为:
Listk _ reft (m, n) = Listk _ reft (m + d _ heifht k , n + d _ width k )
其中 L _ r 为第二参考中贞, "为第三参考中贞, o _ widthk、 o height k 为所述第一当前参考帧或所述第二当前参考帧 ^ - 1^的列数与行数, m- widt 、 — ^g^为第二参考帧^ - ' 的列数与行数, m、 为像素的 行标号与列标号 (所有的参考帧的像素的行标号和列标号均使用 m、 M表示); d _ width k - (m_ width k-o _ widthk )12
d _ height k -{m_ height k-o _ height k )12
所述的参考帧单元 403, 用于得到所述的第四参考帧后, 进一步对第四参 考帧进行处理,得到第五参考帧; 并将处理后的第一当前参考帧或第二当前参 考帧设置为第五参考帧。
其中参考帧单元 403 用于对第四参考帧进行处理, 得到第五参考帧具体 为:
对第四参考帧进行边界像素填充扩展,获取与第一当前参考帧或第二当前 参考帧具有相同分辨率的第五参考帧;
所述的对第四参考帧进行边界像素填充扩展的方法具体为: 列填充:
Listk reft (m,0) Q < n d— width k
Listk reft ( ,n) Listk reft (m,n) d width k <n -<o_ widthk— d— width
Listk refi (m, o width k 1) o width, - d width k <n -<o width 行填充:
Listk— rej 0 < m -< d _ height
Listk— rej\ (m^n) Listk— rej (m^n) d height t <n -<o_ height k— d— height t
Listk refi (o height k o height k— d— height k < n -<o_ height k
其中 L _r 为第四参考帧, ^Κ'"为第五参考帧、 ° - Widthk、 " 为所述第一当前参考帧或所述第二当前参考帧 ^^-^^的列数与行数, m_widt 、 m- ^" 为第四参考帧^ _ "的列数与行数, m、 为像素的 行标号与列标号 (所有的参考帧的像素的行标号和列标号均使用 m、 M表示); d _ width k - o_ widthk—m— width k)/2 d _ height k -{o _ height k—m— height k)/2 综上所述, 本发明通过确定当前参考帧与当前编码帧的关系, 分别按照镜 头拉远或拉近的方式进行上下采样处理,并且进一步对第二参考帧进行了像素 删除,对第四参考帧进行了像素扩展, 使得更新后的当前参考帧与当前参考帧 具有相同的分辨率, 避免了内存的重新分配, 便于代码的兼容。从而进一步提 高了更新后的当前参考帧与编码帧的相似度,达到了优化当前编码帧的压缩效 果。在低帧率时,帧与帧之间的镜头变化更大,此时采用本发明的帧预测方法, 压缩性能的提升将更为显著。
本领域的普通技术人员可以理解,实现上述实施例方法中的全部或部分步 骤是可以通过程序指令相关硬件来完成的,所述的程序可以存储于一计算机可 读取存储介质中, 所述的存储介质可以为 R0M、 RAM, 磁盘、 光盘等。
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发 明的精神和原则之内所作的任何修改、等同替换和改进等, 均应包含在本发明 的保护范围之内。

Claims

权 利 要 求
1、 一种帧间预测方法, 其特征在于, 所述的方法包括:
步骤 101 : 预设第一参数 M;
步骤 102 : 选取参考帧列表;
步骤 103 : 判断所述参考帧列表是前向参考列表还是后向参考列表; 若为 所述前向参考列表则执行步骤 104, 若为所述后向参考列表则执行步骤 105; 步骤 104: 若所述前向参考帧列表内的第一当前参考帧未处理过, 则进一 步根据所述第一当前参考帧与当前编码帧的关系处理所述第一当前参考帧,对 所述前向参考帧列表进行更新, 并标注所述第一当前参考帧已处理过,进入步 骤 106;
步骤 105: 若所述后向参考帧列表内的第二当前参考帧未处理过, 则进一 步根据所述第二当前参考帧与当前编码帧的关系处理所述第二当前参考帧,对 所述后向参考帧列表进行更新, 并标注所述第二当前参考帧已处理过;
步骤 106: 将所述第一参数 M加 1, 判断 M是否大于 1, 若是则执行步骤 107; 若否则执行步骤 102 ;
步骤 107: 通过更新后的前向参考帧列表和更新后的后向参考帧列表对所 述当前编码帧进行帧间预测。
2、 根据权利要求 1所述的帧间预测方法, 其特征在于, 所述的步骤 104 中,进一步根据所述第一当前参考帧与当前编码帧的关系处理所述第一当前参 考帧, 并对所述前向参考帧列表进行更新, 以及所述的步骤 105中, 进一步根 据所述第二当前参考帧与当前编码帧的关系处理所述第二当前参考帧,并对所 述后向参考帧列表进行更新具体为:
步骤 1041 : 根据所述第一当前参考帧或所述第二当前参考帧与所述当前 编码帧的关系确定镜头的动作;
步骤 1042 : 若是镜头拉近则对所述第一当前参考帧或所述第二当前参考 帧进行处理,得到第二参考帧, 并将处理后的第一当前参考帧或第二当前参考 帧设置为第二参考帧; 若是镜头拉远则对所述第一当前参考帧或所述第二当前参考帧进行处理, 得到第四参考帧,并将处理后的第一当前参考帧或第二当前参考帧设置为第四 参考帧;
否则, 对所述第一当前参考帧或所述第二当前参考帧不进行处理。
3、 根据权利要求 2所述的帧间预测方法, 其特征在于, 所述的步骤 1042 中, 若是镜头拉近则对所述第一当前参考帧或所述第二当前参考帧进行处理, 得到第二参考帧具体为:
对所述第一当前参考帧或所述第二当前参考帧进行上采样,得到所述第二 参考帧。
4、 根据权利要求 2所述的帧间预测方法, 其特征在于, 所述的步骤 1042 中, 得到所述第二参考帧后, 进一步对所述第二参考帧进行处理, 得到第三参 考帧; 并将处理后的第一当前参考帧或第二当前参考帧设置为所述第三参考 帧。
5、 根据权利要求 4所述的帧间预测方法, 其特征在于, 所述的步骤 1042 中, 进一步对所述第二参考帧进行处理, 得到第三参考帧具体为:
将所述第二参考帧进行边界像素删除,获取与所述第一当前参考帧或所述 第二当前参考帧具有相同分辨率的所述第三参考帧。
6、 根据权利要求 5所述的帧间预测方法, 其特征在于, 所述的步骤 1042 中, 将所述第二参考帧进行边界像素删除方法具体为:
Listk ref{ ( , n) = Listk ref{ (m + d _ heifht k,n + d— width k )
其中 Ζϋ_ ·为所述第二参考帧, 为所述第三参考帧, o_widthk、 为所述第一当前参考帧或所述第二当前参考帧的列数与行数, m-widt 、 m-^W为所述第二参考帧^ _ ' 的列数与行数, m、 "为像 素的行标号与列标号;
d _ width k -{m_ width k-o _ widthk )12
d _ height k -{m_ height k-o _ height k )12
7、 根据权利要求 2 所述的帧预测方法, 其特征在于, 所述的步骤 1042 中, 若是镜头拉远则对所述第一当前参考帧或所述第二当前参考帧进行处理, 得到第四参考帧具体为:
对所述第一当前参考帧或所述第二当前参考帧进行下采样,得到所述第四 参考帧。
8、 根据权利要求 7 所述的帧预测方法, 其特征在于, 所述的步骤 1042 中, 得到所述第四参考帧后, 进一步对所述第四参考帧进行处理, 得到第五参 考帧; 并将处理后的第一当前参考帧或第二当前参考帧设置为所述第五参考 帧。
9、 根据权利要求 8 所述的帧预测方法, 其特征在于, 所述的步骤 1042 中, 进一步对所述第四参考帧进行处理, 得到第五参考帧具体为:
将所述第四参考帧进行边界像素填充扩展,获取与所述第一当前参考帧或 所述第二当前参考帧具有相同分辨率的所述第五参考帧。
10、 根据权利要求 9所述的帧预测方法, 其特征在于, 所述的步骤 1042 中, 将所述第四参考帧进行边界像素填充扩展的方法具体为:
列填充:
Listk refi (m,0) Q < n d— width k
Listk reft ( ,n) Listk reft (m,n) d width k <n -<o_ widthk— d— width
Listk rej (m, ° width k 1) o width, - d width k <n -<o width 行填充:
Listk reft (0,n) 0 < m -< d— height k
Listk— rej\ (m^n) Listk— rej (m^n) d height k <n -<o_ height k— d— height t
Listk— rej (o height k o height k -d _ height t≤ n o— height k
其中 toK '为所述第四参考帧, ^K"为所述第五参考帧、 °_wldthk 为所述第一当前参考帧或所述第二当前参考帧的列数与行数 m_widt 、 为所述第四参考帧^ _ "的列数与行数, m、 n为 素的行标号与列标号;
d _ width k =(o_ widthk—m— width k)/2
d _ height k = (o_ height k—m— height k)/2
11、 一种帧间预测装置, 其特征在于, 该装置包括:
初始化单元, 用于预设第一参数 M;
第一判断单元,用于选取参考帧列表,判断所述参考帧列表是前向参考列 表还是后向参考列表;
参考帧单元,用于当所述参考帧列表为前向参考帧列表, 若所述前向参考 帧列表内的第一当前参考帧未处理过,则进一步根据所述第一当前参考帧与当 前编码帧的关系处理所述第一当前参考帧, 对所述前向参考帧列表进行更新, 并标注所述第一当前参考帧已处理过; 设置所述第一参数 M加 1 ;
用于当所述参考帧列表为后向参考帧列表,若所述后向参考帧列表内的第 二当前参考帧未处理过,则进一步根据所述第二当前参考帧与当前编码帧的关 系处理所述第二当前参考帧,对所述后向参考帧列表进行更新, 并标注所述第 二当前参考帧已处理过; 设置所述第一参数 M加 1 ;
预测单元, 用于判断所述第一参数 M是否大于 1, 若是则通过更新后的前 向参考帧列表或更新后的后向参考帧列表对所述当前编码帧进行帧间预测;若 否则所述第一判断单元继续运行。
12、 根据权利要求 11所述的帧间预测装置, 其特征在于, 所述的参考帧 单元用于进一步根据所述第一当前参考帧与当前编码帧的关系处理所述第一 当前参考帧, 并对所述前向参考帧列表进行更新, 以及所述的步骤 105中, 进 一步根据所述第二当前参考帧与当前编码帧的关系处理所述第二当前参考帧, 并对所述后向参考帧列表进行更新具体为:
根据所述第一当前参考帧或所述第二当前参考帧与所述当前编码帧的关 系确定镜头的动作;
若是镜头拉近则对所述第一当前参考帧或所述第二当前参考帧进行处理, 得到第二参考帧,并将处理后的第一当前参考帧或第二当前参考帧设置为第二 参考帧;
若是镜头拉远则对所述第一当前参考帧或所述第二当前参考帧进行处理, 得到第四参考帧,并将处理后的第一当前参考帧或第二当前参考帧设置为第四 参考帧; 否则, 对所述第一当前参考帧或所述第二当前参考帧不进行处理。
13、 根据权利要求 12所述的帧间预测装置, 其特征在于, 所述的参考帧 单元用于若是镜头拉近则对所述第一当前参考帧或所述第二当前参考帧进行 处理,得到第二参考帧具体为:对所述第一当前参考帧或所述第二当前参考帧 进行上采样, 得到所述第二参考帧。
14、 根据权利要求 13所述的帧间预测装置, 其特征在于, 所述的参考帧 单元用于得到所述第二参考帧后,进一步对所述第二参考帧进行处理,得到第 三参考帧;并将处理后的第一当前参考帧或第二当前参考帧设置为所述第三参 考帧。
15、 根据权利要求 14所述的帧间预测装置, 其特征在于, 所述的参考帧 单元用于进一步对所述第二参考帧进行处理, 得到第三参考帧具体为:
将所述第二参考帧进行边界像素删除,获取与所述第一当前参考帧或所述 第二当前参考帧具有相同分辨率的所述第三参考帧;
所述将所述第二参考帧进行边界像素删除方法具体为:
Listk ref{ ( , n) = Listk ref{ (m + d _ heifht k , n + d— width k )
其中 to^ _ r 为所述第二参考帧, ^ -W为所述第三参考帧, o width 为所述第一当前参考帧或所述第二当前参考帧的列数与行数, m-widt 、 m-^W为所述第二参考帧^ _ ' 的列数与行数, m、 "为像 素的行标号与列标号;
d _ width k - {m _ width k - o _ widthk ) 12
d _ height k - {m _ height k - o _ heightk ) 12
16、 根据权利要求 12所述的帧间预测装置, 其特征在于, 所述参考帧单 元用于若是镜头拉远则对所述第一当前参考帧或所述第二当前参考帧进行处 理, 得到第四参考帧具体为:
对所述第一当前参考帧或所述第二当前参考帧进行下采样,得到所述第四 参考帧。
17、 根据权利要求 16所述的帧间预测装置, 其特征在于, 所述参考帧单 元用于得到所述第四参考帧后,进一步对所述第四参考帧进行处理,得到第五 参考帧;并将处理后的第一当前参考帧或第二当前参考帧设置为所述第五参考 帧。
18、 根据权利要求 17所述的帧间预测装置, 其特征在于, 所述的参考帧 单元用于进一步对所述第四参考帧进行处理, 得到第五参考帧具体为:
将所述第四参考帧进行边界像素填充扩展,获取与所述第一当前参考帧或 所述第二当前参考帧具有相同分辨率的所述第五参考帧;
将所述第四参考帧进行边界像素填充扩展的方法具体为:
列填充:
Listk refi (m,0) , Q < η d— width k
Listk reft ( ,n) Listk reft (m,n) d width k <n -<o_ widthk -d _ width
Listk rej (m' ° width k 1) o width, -d _ width k <n -<o _ width, 行填充:
Listk— refi (0,w) 0 < m -< d— height k
Listk— rej\ (m^n) Listk— rej (m^n) d height k <n -<o_ height k— d— height t
Listk— refi (° height k o height k -d _ height k < n -<o_ height k
其中 toK '为所述第四参考帧, ^K"为所述第五参考帧、 °_wldthk
为所述第一当前参考帧或所述第二当前参考帧的列数与行数 m_widt 、 为所述第四参考帧^ _ "的列数与行数, m、 n为 素的行标号与列标号;
d _ width k =(o_ widthk—m— width k)/2
d _ height k = (o_ height k—m— height k)/2
PCT/CN2011/076243 2010-12-28 2011-06-24 一种帧间预测方法、装置 WO2012088847A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010610121.XA CN102572419B (zh) 2010-12-28 2010-12-28 一种帧间预测方法、装置
CN201010610121.X 2010-12-28

Publications (1)

Publication Number Publication Date
WO2012088847A1 true WO2012088847A1 (zh) 2012-07-05

Family

ID=46382270

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076243 WO2012088847A1 (zh) 2010-12-28 2011-06-24 一种帧间预测方法、装置

Country Status (2)

Country Link
CN (1) CN102572419B (zh)
WO (1) WO2012088847A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9794569B2 (en) * 2013-01-30 2017-10-17 Intel Corporation Content adaptive partitioning for prediction and coding for next generation video

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252692A (zh) * 2008-03-07 2008-08-27 炬力集成电路设计有限公司 一种帧间预测方法、装置及视频编解码设备
CN101578879A (zh) * 2006-11-07 2009-11-11 三星电子株式会社 用于视频帧间预测编码/解码的方法和装置
CN101783949A (zh) * 2010-02-22 2010-07-21 深圳市融创天下科技发展有限公司 一种skip块模式选择方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101511016B (zh) * 2009-03-13 2010-08-11 西安交通大学 基于hhi分层b帧预测结构的多视点视频编码的改进方法
CN101547368B (zh) * 2009-04-24 2011-03-09 炬力集成电路设计有限公司 一种图像中参考帧的处理装置、方法以及解码器
CN101720042A (zh) * 2009-11-27 2010-06-02 宁波大学 一种多视点视频信号的编码方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101578879A (zh) * 2006-11-07 2009-11-11 三星电子株式会社 用于视频帧间预测编码/解码的方法和装置
CN101252692A (zh) * 2008-03-07 2008-08-27 炬力集成电路设计有限公司 一种帧间预测方法、装置及视频编解码设备
CN101783949A (zh) * 2010-02-22 2010-07-21 深圳市融创天下科技发展有限公司 一种skip块模式选择方法

Also Published As

Publication number Publication date
CN102572419B (zh) 2014-09-03
CN102572419A (zh) 2012-07-11

Similar Documents

Publication Publication Date Title
JP4928627B2 (ja) 動き推定の探索範囲の適応選択方法及び装置
TWI399097B (zh) 用於編碼視訊之系統及方法,以及電腦可讀取媒體
JP5619692B2 (ja) より正確な動き情報を用いたフレーム補間
JP6073892B2 (ja) 電子デバイス上での参照ピクチャセット信号オーバーヘッドの削減
KR101390620B1 (ko) 비디오 인코딩을 위한 전력 효율적인 움직임 추정 기법
JP2011509594A (ja) ビデオ符号化及び復号においてdc変化パラメータを使用するシステム及び方法
CN110113610B (zh) 数据传输方法及装置
US10659800B2 (en) Inter prediction method and device
WO2022228104A1 (zh) 视频的转码方法、装置、电子设备及存储介质
WO2017005141A1 (zh) 参考图像编码和解码的方法、编码设备和解码设备
JP2013183360A (ja) 動画像符号化装置及びプログラム、動画像復号装置及びプログラム、並びに、動画像配信システム
CN112543329B (zh) 视频编码方法和用于减小编码视频的文件大小的方法
US20230042575A1 (en) Methods and systems for estimating motion in multimedia pictures
CN111669600B (zh) 视频编码方法、装置、编码器及存储装置
Gao et al. Structure-preserving motion estimation for learned video compression
CN114128260A (zh) 全局运动矢量的高效编码
WO2012088847A1 (zh) 一种帧间预测方法、装置
CN108833920B (zh) 一种基于光流和块匹配的dvc边信息融合方法
Borchert et al. On extrapolating side information in distributed video coding
KR101668133B1 (ko) 화상 데이터의 블록을 예측하는 방법, 이 방법을 실행하는 복호 장치 및 부호화 장치
US20110051815A1 (en) Method and apparatus for encoding data and method and apparatus for decoding data
WO2012088848A1 (zh) 一种帧间预测方法、装置
US20230412796A1 (en) Systems and methods for hybrid machine learning and dct-based video compression
WO2020168509A1 (zh) 视频编码方法、视频解码方法、装置以及电子设备
Lee et al. Distributed video codec with spatiotemporal side information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11852590

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 14-11-2013)

122 Ep: pct application non-entry in european phase

Ref document number: 11852590

Country of ref document: EP

Kind code of ref document: A1