发明名称 |
Video encoding method and a video encoding apparatus using the same |
摘要 |
The present application provides a video encoding method that includes setting frame types for a video sequence; obtaining a B frame; determining whether a current macroblock of the B frame satisfies a Direct prediction mode, and if yes determining whether the current macroblock satisfies a Skip prediction mode; if the current macroblock does not meet either mode, computing at least one of a mode cost after performing motion compensation on the current macroblock using two bidirectional prediction motion vectors obtained in the Direct prediction mode; a mode cost after performing motion compensation on the current macroblock using a forward prediction motion vector obtained in the Direct prediction mode; and a mode cost after performing motion compensation on the current macroblock using a backward prediction motion vector obtained in the Direct prediction mode; and selecting a mode with a smallest cost as an optimal prediction direction to encode the current macroblock. |
申请公布号 |
US9307241(B2) |
申请公布日期 |
2016.04.05 |
申请号 |
US201313954837 |
申请日期 |
2013.07.30 |
申请人 |
TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED |
发明人 |
Yu Chenchen;Lv Jing;Chen JingChang;Zheng Quanzhan;Wang Ronggang;Wan Jie;Gao Wen |
分类号 |
H04N7/36;H04N19/577;H04N19/105;H04N19/176;H04N19/147;H04N19/513;H04N7/12;H04N11/04 |
主分类号 |
H04N7/36 |
代理机构 |
Morgan, Lewis & Bockius LLP |
代理人 |
Morgan, Lewis & Bockius LLP |
主权项 |
1. A video encoding method, the method comprising:
at a video encoding apparatus having memory and one or more processors:
setting frame types for a plurality of video frames in a video sequence;obtaining a video frame set as a B frame from the plurality of video frames;determining whether a current macroblock of the video frame satisfies a Direct prediction mode, and when the current macroblock satisfies the Direct prediction mode, further determining whether the current macroblock satisfies a Skip prediction mode;if the current macroblock does not satisfy the Direct prediction mode or the current macroblock does not satisfy the Skip prediction mode, computing at least one of a plurality of mode costs, including:
a mode cost after performing motion compensation on the current macroblock using two bidirectional prediction motion vectors obtained in the Direct prediction mode;a mode cost after performing motion compensation on the current macroblock using a forward prediction motion vector obtained in the Direct prediction mode; anda mode cost after performing motion compensation on the current macroblock using a backward prediction motion vector obtained in the Direct prediction mode; andselecting a mode with a smallest cost in the plurality of mode costs as an optimal prediction direction to encode the current macroblock. |
地址 |
Shenzhen, Guangdong Province CN |