[go: up one dir, main page]

CN111567044A - Video processing method and device, coding equipment and decoding equipment - Google Patents

Video processing method and device, coding equipment and decoding equipment Download PDF

Info

Publication number
CN111567044A
CN111567044A CN201980005058.6A CN201980005058A CN111567044A CN 111567044 A CN111567044 A CN 111567044A CN 201980005058 A CN201980005058 A CN 201980005058A CN 111567044 A CN111567044 A CN 111567044A
Authority
CN
China
Prior art keywords
video
pixel precision
processed
type
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201980005058.6A
Other languages
Chinese (zh)
Inventor
孟学苇
郑萧桢
王苫社
马思伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
SZ DJI Technology Co Ltd
Original Assignee
Peking University
SZ DJI Technology 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 Peking University, SZ DJI Technology Co Ltd filed Critical Peking University
Publication of CN111567044A publication Critical patent/CN111567044A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • 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
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding
    • 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
    • H04N19/51Motion estimation or motion compensation
    • H04N19/523Motion estimation or motion compensation with sub-pixel accuracy
    • 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
    • H04N19/51Motion estimation or motion compensation
    • H04N19/53Multi-resolution motion estimation; Hierarchical motion estimation

Landscapes

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

Abstract

A video processing method, a device, an encoding device and a decoding device, wherein the method can comprise the following steps: determining the video type of the obtained video to be processed; if the video type of the video to be processed is a preset video type, modifying each pixel precision value in the initial pixel precision set to obtain a target pixel precision set; and coding the video to be processed based on the target pixel precision set to obtain a coded video. The embodiment of the invention can improve the coding performance of the terminal equipment.

Description

一种视频处理方法、装置、编码设备及解码设备A video processing method, device, encoding device and decoding device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种视频处理方法、装置、编码设备及解码设备。The present invention relates to the field of communication technologies, and in particular, to a video processing method, an apparatus, an encoding device and a decoding device.

背景技术Background technique

随着信息时代的不断发展,在日常生活中,越来越多的用户会通过照相机或者摄像机拍摄视频的方式来记录或者存储某些内容,由于拍摄得到视频的数据量较大,终端设备在存储或者传输视频时,需要将视频内容进行编码处理,然后将编码后的视频进行存储或者传输。在需要显示视频时,通过与编码处理时相对应的解码方式对编码后的视频进行解码并显示。With the continuous development of the information age, in daily life, more and more users will record or store certain content by shooting videos with cameras or video cameras. Or when transmitting a video, the video content needs to be encoded, and then the encoded video is stored or transmitted. When the video needs to be displayed, the encoded video is decoded and displayed by a decoding method corresponding to the encoding process.

在对视频进行编码处理过程中,关键技术之一是帧间预测。帧间预测的主要思想是通过视频中当前帧的运动矢量和参考帧得到预测帧,在此过程中,运动矢量的像素精度选择直接关系到帧间预测的质量,进而也影响了视频编码质量。因此,在数字视频编码技术领域中,如何选择编码处理时的像素精度成为当今研究的热点问题。In the process of encoding video, one of the key technologies is inter-frame prediction. The main idea of inter-frame prediction is to obtain the predicted frame from the motion vector of the current frame in the video and the reference frame. In this process, the selection of the pixel precision of the motion vector is directly related to the quality of the inter-frame prediction, which in turn affects the video coding quality. Therefore, in the field of digital video coding technology, how to choose the pixel precision in the coding process has become a hot issue in current research.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种视频处理方法、装置、编码设备及解码设备,可以提高终端设备的编码性能。Embodiments of the present invention provide a video processing method, apparatus, encoding device, and decoding device, which can improve the encoding performance of the terminal device.

第一方面,本发明实施例提供了一种视频处理方法,包括:In a first aspect, an embodiment of the present invention provides a video processing method, including:

确定获取到的待处理视频的视频类型;Determine the video type of the obtained video to be processed;

如果所述待处理视频的视频类型为预设视频类型,则将初始像素精度集合中各个像素精度值进行修改,得到目标像素精度集合;If the video type of the video to be processed is a preset video type, then modifying each pixel precision value in the initial pixel precision set to obtain a target pixel precision set;

基于所述目标像素精度集合对所述待处理视频进行编码处理,得到编码视频。The to-be-processed video is encoded based on the target pixel precision set to obtain an encoded video.

第二方面,本发明实施例提供了另一种视频处理方法,包括:In a second aspect, an embodiment of the present invention provides another video processing method, including:

接收编码视频;receive encoded video;

当所述编码视频中包括标识信息时,确定所述编码视频对应的视频类型为预设视频类型;When the encoded video includes identification information, determine that the video type corresponding to the encoded video is a preset video type;

基于目标像素精度集合对所述编码视频进行解码处理;decoding the encoded video based on the target pixel precision set;

所述目标像素精度集合是针对初始像素精度集合中各个像素精度值进行修改获得的。The target pixel precision set is obtained by modifying each pixel precision value in the initial pixel precision set.

第三方面,本发明实施例提供了一种视频处理装置,包括确定单元和处理单元:In a third aspect, an embodiment of the present invention provides a video processing apparatus, including a determination unit and a processing unit:

确定单元,用于确定获取到的待处理视频的视频类型;A determination unit for determining the video type of the acquired video to be processed;

处理单元,用于如果确定单元确定出所述待处理视频的视频类型为预设视频类型,则将初始像素精度集合中各个像素精度值进行修改,得到目标像素精度集合;a processing unit, configured to modify each pixel precision value in the initial pixel precision set to obtain a target pixel precision set if the determining unit determines that the video type of the video to be processed is a preset video type;

所述处理单元,还用于基于所述目标像素精度集合对所述待处理视频进行编码处理,得到编码视频。The processing unit is further configured to perform encoding processing on the to-be-processed video based on the target pixel precision set to obtain an encoded video.

第四方面,本发明实施例还提供了另一种视频处理装置,包括接收单元和处理单元:In a fourth aspect, an embodiment of the present invention further provides another video processing apparatus, including a receiving unit and a processing unit:

接收单元,用于接收编码视频;a receiving unit for receiving the encoded video;

处理单元,用于当所述编码视频中包括标识信息时,确定所述编码视频对应的视频类型为预设视频类型;a processing unit, configured to determine that the video type corresponding to the encoded video is a preset video type when the encoded video includes identification information;

所述处理单元,还用于基于目标像素精度集合对所述编码视频进行解码处理;The processing unit is further configured to perform decoding processing on the encoded video based on the target pixel precision set;

所述目标像素精度集合是针对初始像素精度集合中各个像素精度值进行修改获得的。The target pixel precision set is obtained by modifying each pixel precision value in the initial pixel precision set.

第五方面,本发明实施例提供了一种编码设备,其特征在于,包括存储器和处理器,所述存储器和所述处理器相连接,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的视频处理方法。In a fifth aspect, an embodiment of the present invention provides an encoding device, characterized in that it includes a memory and a processor, the memory is connected to the processor, and the memory is used to store a computer program, and the computer program includes Program instructions, the processor is configured to invoke the program instructions to execute the video processing method of the first aspect.

第六方面,本发明实施例提供了一种解码设备,其特征在于,包括存储器和处理器,所述存储器和所述处理器相连接,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第二方面的视频处理方法。In a sixth aspect, an embodiment of the present invention provides a decoding device, characterized in that it includes a memory and a processor, the memory is connected to the processor, and the memory is used to store a computer program, and the computer program includes Program instructions, the processor is configured to invoke the program instructions to execute the video processing method of the second aspect.

第七方面,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有第一计算机程序指令,所述第一计算机程序指令被处理器执行时,用于执行第一方面的视频处理方法;所述计算机存储介质中还存储有第二计算机程序指令,所述第二计算机程序指令被处理器执行时,用于执行第二方面的视频处理方法。In a seventh aspect, an embodiment of the present invention further provides a computer storage medium, where first computer program instructions are stored in the computer storage medium, and when the first computer program instructions are executed by a processor, are used to execute the first aspect The video processing method of the second aspect is further stored in the computer storage medium, and the second computer program instructions are used to execute the video processing method of the second aspect when executed by the processor.

本发明实施例中,终端设备对获取到的待处理视频的视频类型进行判断,如果所述待处理视频的视频类型为预设视频类型时,则将初始像素精度集合中各个像素精度值增大,得到目标像素精度集合,进一步的,基于所述目标像素精度集合对待处理视频进行编码处理,得到编码视频。上述对待处理视频进行编码处理的过程中,根据待处理视频的视频类型确定编码处理时使用的目标像素精度集合,实现了有针对性的为不同视频类型的待处理视频选择目标像素精度集合,从而可提高编码视频的质量。In this embodiment of the present invention, the terminal device judges the acquired video type of the video to be processed, and if the video type of the video to be processed is a preset video type, increases each pixel precision value in the initial pixel precision set to obtain a target pixel precision set, and further, perform encoding processing on the video to be processed based on the target pixel precision set to obtain an encoded video. In the above process of encoding the video to be processed, the target pixel precision set used in the encoding process is determined according to the video type of the video to be processed, so as to achieve targeted selection of the target pixel precision set for the to-be-processed videos of different video types, thereby. Improves the quality of encoded video.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明实施例提供的一种无人机航拍的场景图;1 is a scene diagram of a drone aerial photography provided by an embodiment of the present invention;

图2a为本发明实施例提供的一种运动估计的示意图;FIG. 2a is a schematic diagram of motion estimation according to an embodiment of the present invention;

图2b为本发明实施例提供的一种确定运动矢量的示意图;2b is a schematic diagram of determining a motion vector according to an embodiment of the present invention;

图3a为本发明实施例提供的另一种运动估计的示意图;3a is a schematic diagram of another motion estimation provided by an embodiment of the present invention;

图3b为本发明实施例提供的又一种运动估计的示意图;3b is a schematic diagram of still another motion estimation provided by an embodiment of the present invention;

图4为本发明实施例提供的一种视频处理方法的流程示意图;4 is a schematic flowchart of a video processing method according to an embodiment of the present invention;

图5为本发明实施例提供的一种编码系统的示意图;5 is a schematic diagram of an encoding system according to an embodiment of the present invention;

图6为本发明实施例提供的一种交互图;FIG. 6 is an interaction diagram provided by an embodiment of the present invention;

图7为本发明实施例提供的一种编码设备的结构示意图;7 is a schematic structural diagram of an encoding device according to an embodiment of the present invention;

图8为本发明实施例提供的一种解码设备的结构示意图。FIG. 8 is a schematic structural diagram of a decoding device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明实施例针对视频编码中像素精度选择问题,提出了一种视频处理方法,所述方法可以根据待处理视频的视频类型,有针对性的设置像素精度集合以进行编码处理,可以提高视频编码的性能。具体地,本发明实施例提供的视频处理方法可包括:确定获取到的待处理视频的视频类型;如果所述待处理视频的视频类型为预设视频类型,则将初始像素精度集合中各个像素精度值进行修改,得到目标像素精度集合;基于所述目标像素精度集合对所述待处理视频进行编码处理,得到编码视频。上述对待处理视频进行编码处理的过程中,根据待处理视频的视频类型,对初始像素精度集合进行相应的修改,以得到适用于所述待处理视频的像素精度集合,实现了有针对性的为不同视频类型的待处理视频选择目标像素精度集合,从而可提高编码视频的质量。Aiming at the problem of pixel precision selection in video coding, the embodiment of the present invention proposes a video processing method. The method can set a set of pixel precisions for coding processing in a targeted manner according to the video type of the video to be processed, which can improve video coding. performance. Specifically, the video processing method provided by the embodiment of the present invention may include: determining the acquired video type of the video to be processed; if the video type of the to-be-processed video is a preset video type, The precision value is modified to obtain a target pixel precision set; the to-be-processed video is encoded based on the target pixel precision set to obtain an encoded video. In the above process of encoding the video to be processed, according to the video type of the video to be processed, the initial pixel precision set is modified accordingly, so as to obtain a pixel precision set suitable for the video to be processed, and a targeted The target pixel precision set is selected for the to-be-processed videos of different video types, so that the quality of the encoded video can be improved.

本发明实施例提供的视频处理方法可以应用各种视频编码传输的应用场景中,下面以应用在无人机航拍的应用场景中为例具体介绍所述视频处理方法。参考图1,为本发明实施例提供的一种无人机航拍的场景图,假设图1中包括无人机101,摄像区域102,显示设备103。其中,无人机101上挂载有摄像装置1011,所述摄像装置可以用于拍摄视频和拍摄图像,所述无人机101上还可以配置有云台1012,所述摄像装置1011可以通过云台1012挂载于无人机101上。摄像区域102中包括车辆、树木以及河流,所述摄像装置1011对摄像区域102进行拍摄,得到待处理视频。The video processing method provided by the embodiment of the present invention can be applied to various application scenarios of video encoding and transmission. The video processing method is specifically described below by taking the application scenario of drone aerial photography as an example. Referring to FIG. 1 , which is a scene diagram of a drone aerial photography provided by an embodiment of the present invention, it is assumed that FIG. 1 includes a drone 101 , a camera area 102 , and a display device 103 . A camera device 1011 is mounted on the drone 101, and the camera device can be used to shoot videos and images, and the drone 101 can also be equipped with a pan-tilt 1012, and the camera device 1011 can be used to capture video through the cloud. The station 1012 is mounted on the drone 101 . The imaging area 102 includes vehicles, trees and rivers, and the imaging device 1011 photographs the imaging area 102 to obtain a video to be processed.

无人机101中可默认设置了初始像素精度集合,该初始像素精度集合中各个像素精度可能不是对所有视频类型的视频都适用,因此在获取到待处理视频之后,无人机101不是直接使用初始像素精度集合对所述待处理视频进行编码处理,而是判断所述待处理视频的视频类型,进一步确定所述待处理视频所属的视频类型是否适合使用初始像素精度集合进行编码。如果判断出所述待处理视频所属的视频类型可以使用初始像素精度集合进行编码,则基于所述初始像素精度集合对所述待处理视频进行编码处理;如果判断出所述待处理视频所属的视频类型不适合使用初始像素精度集合,则将初始像素精度集合中包括的各个像素精度值修改,以使得修改后的各个像素精度值适用于所述待处理视频所属的视频类型,各个修改后的像素精度值组成了目标像素精度集合。接下来,无人机101基于目标像素精度集合对待处理视频进行编码处理。The initial pixel precision set may be set by default in the drone 101. Each pixel precision in the initial pixel precision set may not be applicable to all video types. Therefore, after obtaining the video to be processed, the drone 101 does not directly use it. The initial pixel precision set performs encoding processing on the to-be-processed video, but determines the video type of the to-be-processed video, and further determines whether the video type to which the to-be-processed video belongs is suitable for encoding using the initial pixel precision set. If it is determined that the video type to which the to-be-processed video belongs can be encoded using the initial pixel precision set, the to-be-processed video is encoded based on the initial pixel precision set; if it is determined that the video to which the to-be-processed video belongs If the type is not suitable for using the initial pixel precision set, then modify each pixel precision value included in the initial pixel precision set, so that each modified pixel precision value is suitable for the video type to which the video to be processed belongs. The precision values make up the target pixel precision set. Next, the UAV 101 encodes the video to be processed based on the target pixel precision set.

可选的,无人机101将对待处理视频进行编码处理后得到的编码视频发送给解码端,此处所述的解码端可以配置于无人机101中,也可以为独立于无人机的解码设备,解码端采用相应的解码策略对编码视频进行解码,最后将解码后的视频发送给显示设备103,显示设备101可以为带有显示屏的编码设备,在接收到解码端发送的解码后的视频时,可以将解码后的视频显示在显示屏上,以使得用户可以观看视频。Optionally, the UAV 101 sends the encoded video obtained by encoding the video to be processed to the decoding end. The decoding end described here may be configured in the UAV 101, or may be independent of the UAV. Decoding device, the decoding end uses a corresponding decoding strategy to decode the encoded video, and finally sends the decoded video to the display device 103. The display device 101 can be an encoding device with a display screen. After receiving the decoded video sent by the decoding end When the video is decoded, the decoded video can be displayed on the display screen so that the user can watch the video.

在一个实施例中,视频是指将一系列静态影像以电信号的方式加以捕捉、纪录、处理、储存、传送与重现的各种技术,通过照相机或者摄像机等拍摄装置拍摄得到的原始视频中包含大量的冗余信息,所以未经过压缩的视频数据量非常大,存储起来比较困难,同时也不便于在网络中进行传输。例如,一秒钟的数字电视视频的数据量约为1113KB,如果假设传输带宽为1M,比特率为9123840,则传输一秒钟的数字电视视频需要9秒钟,也即用户想要观看一秒钟的数字电视视频需要等到9秒钟,大大降低了用户体验。再如,一段未经压缩的10秒钟的视频的数据量大约是2.4G,假设一个内存为16G的手机,除去系统占用的部分,剩下的存储空间最多是12G,最多只能存储50秒视频。In one embodiment, video refers to various technologies for capturing, recording, processing, storing, transmitting and reproducing a series of static images in the form of electrical signals, and in the original video obtained by shooting devices such as cameras or camcorders It contains a lot of redundant information, so the amount of uncompressed video data is very large, it is difficult to store, and it is also inconvenient to transmit in the network. For example, the data volume of one second of digital TV video is about 1113KB. If it is assumed that the transmission bandwidth is 1M and the bit rate is 9123840, it takes 9 seconds to transmit one second of digital TV video, that is, the user wants to watch one second The clock's digital TV video needs to wait until 9 seconds, which greatly reduces the user experience. For another example, the data volume of an uncompressed 10-second video is about 2.4G. Suppose a mobile phone with a memory of 16G, after removing the part occupied by the system, the remaining storage space is at most 12G, which can only store at most 50 seconds. video.

因此,为了解决视频存储难、传输难的问题,需要对原始视频进行压缩处理。所谓的对原始视频进行压缩处理是为了除去原始视频中包含的大量的冗余信息,例如时间冗余、视觉冗余以及空间冗余等,所述对原始视频进行压缩处理的过程实质上是对视频进行编码的过程。在本发明实施例中,所述待处理视频即为原始视频,视频编码过程中的关键技术之一是帧间预测,所述帧间预测技术是利用视频相邻帧之间的时域相关性,使用之前已经编码的重构帧作为参考帧,通过运动估计和运动补偿的方法对当前帧进行预测,从而除去视频的时间冗余信息。简单来说,帧间预测的理论基础就是活动图像临近帧中的景物存在着一定的相关性,在编码时不需要传递每一帧的所有信息,而只需要传递帧与帧之间的差值即可。Therefore, in order to solve the problems of difficult video storage and transmission, it is necessary to compress the original video. The so-called compressing the original video is to remove a large amount of redundant information contained in the original video, such as temporal redundancy, visual redundancy, and spatial redundancy. The process of encoding video. In this embodiment of the present invention, the video to be processed is the original video, and one of the key technologies in the video coding process is inter-frame prediction, which utilizes the temporal correlation between adjacent video frames. , using the previously encoded reconstructed frame as a reference frame, and predicting the current frame by means of motion estimation and motion compensation, so as to remove the temporal redundancy information of the video. To put it simply, the theoretical basis of inter-frame prediction is that there is a certain correlation between the scenes in the adjacent frames of the moving image. It is not necessary to transmit all the information of each frame during encoding, but only the difference between frames. That's it.

视频可以看做是由多帧图像组成的,对视频进行编码处理是指对视频包括的每一帧图像进行编码。在一个实施例中,对视频中的任一帧图像进行编码时,首先将该帧图像划分成多个编码区域,进一步再将每个编码区域划分成多个编码单元,每个编码单元包括多个编码块,对每个编码块依次进行帧间预测。下面以当前帧的某个编码单元中的目标编码块为例,介绍帧间预测的过程:在时域中找到当前帧对应的参考帧,所述参考帧为时域中当前帧附近的已编码帧中的任意一帧;在参考帧中搜索与目标编码块相似的相似块,确定目标编码块与相似块之间的相对位置(如图2a和图2b所示),所述相对位置称为运动矢量(Motion Vector,MV)(为了方便描述,以下将确定运动矢量的过程称为运动估计);根据运动矢量,以及运动矢量的相关信息和参考帧得到目标编码块对应的预测块,通过上述相似的过程可以得到当前帧的每个编码块对应的预测块,从而便可得到当前帧的预测帧。Video can be regarded as being composed of multiple frames of images, and encoding the video refers to encoding each frame of image included in the video. In one embodiment, when encoding any frame image in the video, the frame image is firstly divided into multiple coding regions, and each coding region is further divided into multiple coding units, and each coding unit includes multiple coding units. coding blocks, and performing inter-frame prediction on each coding block in turn. The following takes the target coding block in a certain coding unit of the current frame as an example to introduce the process of inter-frame prediction: find the reference frame corresponding to the current frame in the time domain, and the reference frame is an encoded frame near the current frame in the time domain Any frame in the frame; search for similar blocks similar to the target coding block in the reference frame, and determine the relative position between the target coding block and the similar block (as shown in Figure 2a and Figure 2b), the relative position is called Motion vector (Motion Vector, MV) (for the convenience of description, the process of determining the motion vector is called motion estimation hereinafter); according to the motion vector, as well as the related information of the motion vector and the reference frame, the prediction block corresponding to the target coding block is obtained. A prediction block corresponding to each coding block of the current frame can be obtained through a similar process, so that the predicted frame of the current frame can be obtained.

在一个实施例中,上述运动矢量的相关信息包括在运动估计过程中所使用的像素精度(也可以理解为运动矢量的像素精度)、运动矢量残差(Motion vector difference,MVD)等。其中,MVD是指通过运动估计过程得到的运动矢量与预测运动矢量(motion vectorprediction,MVP)之间的差异,所述MVP是利用多个临近的已编码块与当前编码块之间的多个MV计算得到的。像素精度值越大,表示像素精度的精确度越低,运动估计准确度越低,像素精度值越小,表示像素精度的精确度越高,运动估计准确度越高。举例来说,参考图3a和图3b为本发明实施例提供的两种运动估计的示意图,在上述两图中,黑色点表示整像素点,白色点表示1/2像素点,假设301表示当前帧中的一个目标编码块,302表示参考帧中的相似块。假设图3a使用的像素精度为整像素精度,箭头303表示目标编码块对应的运动矢量,也就是目标编码块在前一帧图像中和在当前帧图像中的位置差异。假设在图3b使用的像素精度为1/2像素精,304表示目标编码块对应的运动矢量,由图3a和图3b对比可知,304表示的运动矢量比303表示的运动矢量更精准。In one embodiment, the above-mentioned related information of the motion vector includes the pixel precision used in the motion estimation process (which can also be understood as the pixel precision of the motion vector), the motion vector difference (Motion vector difference, MVD), and the like. The MVD refers to the difference between the motion vector obtained through the motion estimation process and the predicted motion vector (motion vector prediction, MVP), where the MVP uses multiple MVs between multiple adjacent coded blocks and the current coded block calculated. The larger the pixel precision value, the lower the accuracy of the pixel precision, the lower the motion estimation accuracy, the smaller the pixel precision value, the higher the pixel precision accuracy, the higher the motion estimation accuracy. For example, referring to FIG. 3a and FIG. 3b are schematic diagrams of two kinds of motion estimation provided by the embodiments of the present invention. In the above two figures, black dots represent whole pixels, white dots represent 1/2 pixels, and it is assumed that 301 represents the current A target coded block in the frame, 302 represents a similar block in the reference frame. Assuming that the pixel precision used in FIG. 3a is integer pixel precision, arrow 303 represents the motion vector corresponding to the target coding block, that is, the position difference of the target coding block in the previous frame image and the current frame image. Assuming that the pixel precision used in Figure 3b is 1/2 pixel precision, 304 represents the motion vector corresponding to the target coding block. From the comparison of Figure 3a and Figure 3b, it can be seen that the motion vector represented by 304 is more accurate than the motion vector represented by 303.

考虑到人的视觉系统对某些细节不敏感,一段视频中可能某些运动细节使用低像素精度进行编码处理即可,还有一些运动细节需要使用高像素精度进行编码处理的,基于这种情况,为了提高帧间预测质量,编码设备可采用自适应运动矢量精度(AdaptiveMotion Vector Resolution,AMVR)技术,确定帧间预测过程中所使用的运动矢量的像素精度,通过以上描述可知AMVR技术实质上决定的是MVD的像素精度。在一个实施例中,所述AMVR技术的主要原理是:编码设备可以设置一个像素精度集合,该像素精度集合中可包括至少两个像素精度,在对某段视频的某个编码单元进行编码处理时,可以根据该编码单元的特点自适应地从所述像素精度集合中选择相应的像素精度,作为MVD的像素精度。Considering that the human visual system is not sensitive to some details, some motion details in a video may be encoded with low pixel precision, and some motion details need to be encoded with high pixel precision. Based on this situation , in order to improve the quality of inter-frame prediction, the coding device can use the Adaptive Motion Vector Resolution (AMVR) technology to determine the pixel accuracy of the motion vector used in the inter-frame prediction process. It can be seen from the above description that the AMVR technology essentially determines is the pixel precision of the MVD. In one embodiment, the main principle of the AMVR technology is: the encoding device may set a pixel precision set, and the pixel precision set may include at least two pixel precisions, and the encoding process is performed on a certain coding unit of a certain video. , the corresponding pixel precision can be adaptively selected from the pixel precision set as the pixel precision of the MVD according to the characteristics of the coding unit.

应当理解的,编码设备设置一个像素精度集合,在对视频进行编码时,从像素精度集合中为每个编码单元选择合适的像素精度进行编码,这样能保证在去除视频中视觉冗余的同时,也减少了编码设备处理的数据量,节省了部分终端功耗。例如,像素精度集合可以为(整像素精度,1/2像素精度,1/4像素精度),或者像素精度集合还可以为(整像素精度、4像素精度和1/4像素精度)。It should be understood that the encoding device sets a pixel precision set, and when encoding the video, selects the appropriate pixel precision for each coding unit from the pixel precision set to encode, so as to ensure that while removing visual redundancy in the video, It also reduces the amount of data processed by the encoding device and saves some terminal power consumption. For example, the pixel precision set may be (integer pixel precision, 1/2 pixel precision, 1/4 pixel precision), or the pixel precision set may also be (integer pixel precision, 4 pixel precision, and 1/4 pixel precision).

在一个实施例中,不同视频类型下的视频内容的特点不同,视频内容的特点不同,导致在对利用AMVR技术进行视频编码时所使用的像素精度集合也有所不同。通常情况下,视频类型可包括自然视频和屏幕内容视频,自然视频是指通过摄像装置对某些场景进行拍摄得到的,未经过其他处理的视频;屏幕内容视频一般指编码设备的屏幕上显示的内容,主要有计算机屏幕、电视屏幕、手机屏幕等等内容的视频。这类视频不仅包括一些自然图像,还包括一些文本、图形、动画、游戏等由计算机产生的视觉内容,属于自然和人造图像混合形成的一种视频。和自然视频相比,屏幕内容视频往往具有陡峭的边缘、高纯的色彩、强烈的对比等,也往往有更加规律性,更加简单的运动信息。In one embodiment, the characteristics of video content under different video types are different, and the characteristics of the video content are different, resulting in different sets of pixel precisions used in video coding using the AMVR technology. Usually, video types can include natural video and screen content video. Natural video refers to the video obtained by shooting certain scenes through a camera device without other processing; screen content video generally refers to the video displayed on the screen of the encoding device. Content, mainly video of computer screen, TV screen, mobile phone screen and so on. This type of video includes not only some natural images, but also some text, graphics, animations, games and other visual contents generated by computers, which belong to a kind of video formed by a mixture of natural and artificial images. Compared with natural videos, screen content videos often have steep edges, high-purity colors, strong contrast, etc., and also tend to have more regular and simpler motion information.

由于自然视频和屏幕内容视频之间的差别,该像素精度集合中的几个像素精度可能不适合应用于对屏幕内容视频或自然视频进行编码处理,因此,本申请将编码设备设置的上述像素精度集合(例如上所述,整像素精度、1/2像素精度和1/4像素精度)称为初始像素精度集合,在对屏幕内容视频进行编码时,将对初始像素精度集合中各个像素精度值进行修改,得到适用于屏幕内容视频的目标像素精度集合。同理的,编码设备设置的初始像素精度集合可能适用于屏幕内容视频,若待处理视频为自然视频时,同样也需要对初始像素精度集合中各个像素精度进行修改,得到适用于自然视频的目标像素精度集合。Due to the difference between the natural video and the screen content video, several pixel precisions in this pixel precision set may not be suitable for encoding the screen content video or the natural video. Therefore, this application sets the above pixel precision for the encoding device Sets (for example, integer pixel precision, 1/2 pixel precision, and 1/4 pixel precision as described above) are called the initial pixel precision set. When encoding the screen content video, each pixel precision value in the initial pixel precision set will be used. Modifications are made to obtain a target pixel-accuracy set suitable for on-screen content video. Similarly, the initial pixel precision set set by the encoding device may be suitable for screen content video. If the video to be processed is a natural video, it is also necessary to modify each pixel precision in the initial pixel precision set to obtain the target suitable for natural video. Pixel precision collection.

请参见图4,为本发明实施例提供的一种视频处理方法,所述视频处理方法可用于任何能够实现编码功能的编码设备中,所述视频处理方法可具体由编码设备的处理器执行。所述视频处理方法可包括以下步骤:Referring to FIG. 4 , it is a video processing method provided by an embodiment of the present invention. The video processing method can be used in any encoding device capable of implementing an encoding function, and the video processing method can be specifically executed by a processor of the encoding device. The video processing method may include the following steps:

步骤S401、编码设备确定获取到的待处理视频的视频类型。Step S401, the encoding device determines the video type of the acquired video to be processed.

在一个实施例中,所述编码设备获取到的待处理视频可以是通过编码设备上配置的摄像装置对摄像对象进行拍摄得到的,或者所述待处理视频也可以是一个独立的摄像设备对摄像对象拍摄得到并发送给编码设备的。In one embodiment, the to-be-processed video acquired by the encoding device may be obtained by photographing a camera object by a camera configured on the encoding device, or the to-be-processed video may also be a camera taken by an independent camera device. The object is captured and sent to the encoding device.

在一个实施例中,通过不同摄像设备对摄像对象进行拍摄所得的视频格式也可以不同,因此一段视频可以包括多种视频格式,例如avi,mp4,mts以及mp3等。可选的,所述编码设备获取到的所述待处理视频的视格式可以为上述视频格式中的任意一种。In one embodiment, the video formats obtained by photographing the camera objects by different camera devices may also be different, so a video may include multiple video formats, such as avi, mp4, mts, and mp3. Optionally, the video format of the to-be-processed video acquired by the encoding device may be any one of the foregoing video formats.

作为一种可行的实施方式,可以根据视频内容的产生方式将视频可以分类为自然视频和屏幕内容视频,自然视频可以指通过相机或者摄像机直接拍摄得到的视频,也就是说自然视频中包括多帧自然图像,例如,日常手机拍摄的小视频;屏幕内容视频一般是指编码设备的屏幕上显示的内容,此处所述的编码设备主要可包括计算机、电视机以及手机等编码设备。具体来讲,所述屏幕内容视频中不仅包括一些自然图像,还包括一些文本、图形、动画或者游戏等由计算机产生的视觉内容,所述屏幕内容视频是自然视频和人造图像混合形成的一种视频。例如,电影,或者通过计算机为一段演示文稿添加的播放动画等。本发明实施例中,所述编码设备获取到的待处理视频的视频类型可以为自然视频或者屏幕内容视频中的任意一种。As a feasible implementation manner, videos can be classified into natural videos and screen content videos according to the way in which the video content is generated. Natural images, for example, small videos shot by everyday mobile phones; screen content videos generally refer to the content displayed on the screen of an encoding device, and the encoding devices described here may mainly include encoding devices such as computers, televisions, and mobile phones. Specifically, the screen content video includes not only some natural images, but also some computer-generated visual content such as texts, graphics, animations, or games, and the screen content video is a kind of mixed natural video and artificial images. video. For example, a movie, or a playback animation added by the computer to a presentation, etc. In this embodiment of the present invention, the video type of the video to be processed acquired by the encoding device may be any one of natural video or screen content video.

应当理解的,上述对视频分类只是本发明实施例列举的一种可行的视频分类方法,还可以通过其他分类依据为视频类型进行分类,比如,可以根据视频内容的时长将视频分为长视频和短视频。It should be understood that the above-mentioned classification of videos is only a feasible video classification method enumerated in the embodiment of the present invention, and video types can also be classified according to other classification criteria. For example, videos can be classified into long videos and short video.

通过图2a、图2b以及图3a,图3b部分的实施例描述可知,编码设备在对不同视频类型的视频进行编码时,如果有针对性的为不同视频类型设置相应的像素精度集合,可以在提高编码视频质量的同时,节省部分终端的功耗开销。因此,本发明实施例在确定了待处理视频的视频类型之后,为待处理视频选择合适的像素精度集合,然后基于选择的所述像素精度集合对所述待处理视频进行编码处理。在一个实施例中,所述编码设备可通过步骤S402实现为待处理视频选择合适的像素精度集合。2a, 2b and FIG. 3a, the description of the embodiment in FIG. 3b shows that when the encoding device encodes videos of different video types, if the corresponding pixel precision sets are set for different video types in a targeted manner, it can be While improving the quality of the encoded video, the power consumption of some terminals is saved. Therefore, in this embodiment of the present invention, after determining the video type of the video to be processed, an appropriate pixel precision set is selected for the to-be-processed video, and then encoding processing is performed on the to-be-processed video based on the selected pixel precision set. In one embodiment, the encoding device may select an appropriate pixel precision set for the video to be processed through step S402.

应当理解的,所述待处理视频是由多帧图像组成的,在对所述待处理视频进行编码处理时,是对多帧图像中每一帧图像进行处理的,因此,以下所述的确定获取到待处理视频的视频类型,实质上是确定正在处理的待处理视频的当前帧的视频类型。It should be understood that the to-be-processed video is composed of multiple frames of images, and when the to-be-processed video is encoded, each frame of the multiple frames of images is processed. Therefore, the following determination Obtaining the video type of the video to be processed is essentially determining the video type of the current frame of the video to be processed.

在一个实施例中,所述步骤S401的实现方式可以包括:确定所述待处理视频对应的哈希值;若所述哈希值不大于阈值,则确定所述待处理视频的视频类型为预设视频类型;若所述哈希值大于所述阈值,则确定所述待处理视频的视频类型不是所述预设视频类型。也就是说,编码设备可以根据待处理视频对应的哈希值确定待处理视频所属的视频类型。其中,所述阈值是用于判定视频类型的一个预设值,该值可以由编码设备设置。在本发明实施例中,预设视频类型可以是编码设备设置的,所述预设视频类型可以包括屏幕内容视频或者自然视频中的任意一种或多种,在其他实施例中,所述预设视频类型也可以包括长视频或者短视频中的任意一种。In one embodiment, the implementation of step S401 may include: determining a hash value corresponding to the video to be processed; if the hash value is not greater than a threshold, determining that the video type of the video to be processed is a pre-processed video. Set a video type; if the hash value is greater than the threshold, it is determined that the video type of the video to be processed is not the preset video type. That is, the encoding device may determine the video type to which the video to be processed belongs according to the hash value corresponding to the video to be processed. Wherein, the threshold is a preset value for determining the video type, and the value can be set by the encoding device. In this embodiment of the present invention, the preset video type may be set by an encoding device, and the preset video type may include any one or more of screen content video or natural video. In other embodiments, the preset video type may include It is assumed that the video type may also include either a long video or a short video.

假设编码设备获取到待处理视频之后,开始对待处理视频的目标帧进行编码处理之前,首先需要计算目标帧的哈希值,如果目标帧的哈希值小于或等于阈值,则确定所述目标帧是预设视频类型;如果目标帧的哈希值大于阈值,则确定所述目标帧不是预设视频类型。进一步的,根据判断的结果,选择编码处理时所需的像素精度集合。Suppose that after the encoding device obtains the video to be processed, before starting to encode the target frame of the video to be processed, it first needs to calculate the hash value of the target frame. If the hash value of the target frame is less than or equal to the threshold, then determine the target frame is a preset video type; if the hash value of the target frame is greater than the threshold, it is determined that the target frame is not a preset video type. Further, according to the judgment result, a set of pixel precisions required for encoding processing is selected.

在另一个实施例中,所述步骤S401的实现方式还可以包括:调用视频类型识别模型对所述待处理视频进行识别,得到识别结果;若所述识别结果所指示的视频类型为预设视频类型,则确定所述待处理视频的视频类型为预设视频类型。也就是说,编码设备中可存储有视频类型识别模型,该视频类型识别模式是通过包含有不同视频类型的视频样本训练得到的,编码设备调用该模型对所述待处理视频进行识别,得到识别结果。所述识别结果可以包括待处理视频属于某种视频类型的概率,将概率较高的视频类型确定为待处理视频的视频类型。例如,假设编码设备调用视频类型识别模型对待处理视频进行识别,得到的识别结果可以为自然视频30%,屏幕内容视频可以为70%,根据该识别结果,确定所述待处理视频为屏幕内容视频。In another embodiment, the implementation of step S401 may further include: invoking a video type identification model to identify the to-be-processed video to obtain an identification result; if the video type indicated by the identification result is a preset video type, it is determined that the video type of the video to be processed is a preset video type. That is to say, a video type recognition model can be stored in the encoding device. The video type recognition mode is obtained by training video samples containing different video types. The encoding device calls the model to recognize the video to be processed, and obtains the recognition result. The identification result may include a probability that the video to be processed belongs to a certain video type, and a video type with a higher probability is determined as the video type of the video to be processed. For example, assuming that the encoding device invokes the video type identification model to identify the video to be processed, the obtained identification result may be 30% of the natural video and 70% of the screen content video. According to the identification result, it is determined that the to-be-processed video is the screen content video .

步骤S402、如果所述待处理视频的视频类型为预设视频类型,则将初始像素精度集合中各个像素精度值增大,得到目标像素精度集合。Step S402: If the video type of the video to be processed is a preset video type, increase each pixel precision value in the initial pixel precision set to obtain a target pixel precision set.

在一个实施例中,所述初始像素精度集合可以是编码设备默认的像素精度集合,也可以是编码设备在前一帧进行编码处理时所使用的像素精度集合。假设所述初始像素精度集合是编码设备默认的像素精度集合,编码设备设置初始像素精度集合的方式可以为:根据历史视频编码处理时使用的像素精度集合确定所述初始像素精度集合,例如,编码设备获取最近5次视频处理时所使用的像素精度集合,其中有4次视频编码处理时使用的像素精度集合相同均为(1/2像素精度,1/4像素精度,整像素精度),则将(1/2像素精度,1/4像素精度,整像素精度)确定为默认的初始像素精度。在其他实施例中,所述初始像素精度也可以是编码设备根据获取到的设置操作进行设置的,在编码设备进行编码处理之前,用户可以通过编码设备的用户界面设置编码时的初始像素精度集合,或者用户还可以通过用户界面进行一些其他的与编码有关的配置操作。In one embodiment, the initial pixel precision set may be the default pixel precision set of the encoding device, or may be the pixel precision set used by the encoding device when the encoding process of the previous frame is performed. Assuming that the initial pixel precision set is the default pixel precision set of the encoding device, the encoding device may set the initial pixel precision set by: determining the initial pixel precision set according to the pixel precision set used in historical video encoding processing, for example, encoding The device obtains the pixel precision set used in the last 5 video processing, among which the pixel precision set used in 4 video encoding processing is the same (1/2 pixel precision, 1/4 pixel precision, integer pixel precision), then Determines (1/2 pixel precision, 1/4 pixel precision, integer pixel precision) as the default initial pixel precision. In other embodiments, the initial pixel precision may also be set by the encoding device according to the acquired setting operation. Before the encoding device performs the encoding process, the user may set the initial pixel precision set during encoding through the user interface of the encoding device , or the user can also perform some other encoding-related configuration operations through the user interface.

在一个实施例中,本发明实施例在步骤S401中如果确定出所述待处理视频的视频类型为预设视频类型之后,则获取编码设备中当前设置的初始像素精度集合,如果所述初始像素精度集合中包括的各个像素精度满足对所述预设视频类型的视频进行编码时的像素精度要求,则可以直接使用初始像素精度集合对所述待处理图像进行编码处理;如果所述初始像素精度集合中包括的各个像素精度存在某一个或多个像素精度,不满足对所述预设视频类型的视频进行编码时的像素精度要求,则将相应的像素精度值进行修改,最后将经过修改后的初始像素精度集合,作为对所述待处理视频进行编码处理的目标像素精度集合。其中,所述对像素精度值的修改可以包括增大或者减少。In one embodiment, in the embodiment of the present invention, if it is determined in step S401 that the video type of the video to be processed is a preset video type, the initial pixel precision set currently set in the encoding device is obtained, if the initial pixel precision Each pixel precision included in the precision set meets the pixel precision requirement when encoding the video of the preset video type, then the initial pixel precision set may be used directly to encode the image to be processed; if the initial pixel precision Each pixel precision included in the set has one or more pixel precisions, and does not meet the pixel precision requirements when encoding the video of the preset video type, then the corresponding pixel precision value is modified, and finally the modified The initial pixel precision set is used as the target pixel precision set for encoding the video to be processed. Wherein, the modification to the pixel precision value may include increase or decrease.

在一个实施例中,所述将初始像素精度集合中各个像素精度值进行修改,得到目标像素精度集合的实现方式可以为:根据所述预设视频类型,确定像素精度值调整规则;按照像素精度值调整规则将初始像素精度集合中包括的各个像素精度值进行修改,得到目标像素精度集合。其中,在本发明实施例中,根据所述预设视频类型确定像素精度值调整规则的实现方式可以是根据预设视频类型的运动规律和待处理视频的视频内容确定像素精度值调整规则。举例来说,像素精度值调整规则为:修改后的像素精度值和修改之前相应的像素精度值之间的差值小于或等于7个像素。再如,调整规则还可以设置为:修改后的像素精度和修改之前相应的像素精度值之间的差值小于或等于1/2像素精度等。应当理解的,上述只是本发明实施例列举的一种修改像素精度值的方法,对于具体的修改方法本发明实施例中不做具体限定。In an embodiment, the implementation manner of modifying each pixel precision value in the initial pixel precision set to obtain the target pixel precision set may be: according to the preset video type, determining a pixel precision value adjustment rule; according to the pixel precision The value adjustment rule modifies each pixel precision value included in the initial pixel precision set to obtain the target pixel precision set. Wherein, in the embodiment of the present invention, the implementation manner of determining the pixel precision value adjustment rule according to the preset video type may be to determine the pixel precision value adjustment rule according to the motion rule of the preset video type and the video content of the video to be processed. For example, the pixel precision value adjustment rule is: the difference between the modified pixel precision value and the corresponding pixel precision value before the modification is less than or equal to 7 pixels. For another example, the adjustment rule may also be set as: the difference between the modified pixel precision and the corresponding pixel precision value before the modification is less than or equal to 1/2 pixel precision, and so on. It should be understood that the above is only a method for modifying the pixel precision value enumerated in the embodiment of the present invention, and the specific modification method is not specifically limited in the embodiment of the present invention.

在一个实施例中,即使对于同一段视频,采用不同的编码模式对其进行编码处理时所需的像素精度集合也不相同。在本发明实施例中,假设编码模式包括第一类编码模式和第二类编码模式,所述第一类编码模式可以指帧间inter编码模式和仿射affine编码模式中的任意一种,所述第二类编码模式指inter编码模式和affine编码模式中的另外一种。对应于两种编码模式,所述初始像素精度集合可包括第一初始像素精度集合和第二初始像素精度集合。其中,第一类编码模式对应的初始像素精度集合可以是第一初始像素精度集合,第二类编码模式下对应的初始像素精度集合可以是第二初始像素精度集合。在其他实施例中,第一类编码模式对应初始像素精度集合也可以是第二初始像素精度集合,第二类编码模式对应的初始像素精度集合也可以是第一初始像素精度集合。In one embodiment, even for the same piece of video, the required pixel precision sets are different when using different coding modes to encode it. In this embodiment of the present invention, it is assumed that the encoding mode includes a first type encoding mode and a second type encoding mode, and the first type encoding mode may refer to any one of an inter-frame inter encoding mode and an affine encoding mode, so The second type of coding mode refers to the other of the inter coding mode and the affine coding mode. Corresponding to the two encoding modes, the initial set of pixel precisions may include a first set of initial pixel precisions and a second set of initial pixel precisions. The initial pixel precision set corresponding to the first type of coding mode may be the first initial pixel precision set, and the corresponding initial pixel precision set in the second type of coding mode may be the second initial pixel precision set. In other embodiments, the initial pixel precision set corresponding to the first type of coding mode may also be the second initial pixel precision set, and the initial pixel precision set corresponding to the second type of coding mode may also be the first initial pixel precision set.

在一个实施例中,上述inter编码模式和affine编码模式的主要区别是,inter编码模式只关注了视频中平移运动的运动信息,affine编码模式关注了更多的运动信息,比如缩放、旋转,透视运动等无规则的运动。通过前述描述可知,在利用inter编码模式进行帧间预测时,帧间预测的处理对象是一帧图像中的某个编码块,而affine编码模式的处理对象不再是整个编码块,而是要将整个编码块划分为多个编码子块,将每个编码子块作为处理对象。这样一来,affine编码模式下每个编码子块都会对应一个运动矢量,多个编码子块对应的运动矢量组成了affine编码模式下的运动矢量场,affine编码模式下的运动补偿则指利用运动矢量场和参考帧得到预测帧。在一个实施例中,affine编码模式下每个编码块包括的各个编码子块的运动矢量可以通过该编码块上的控制点的参数计算得到。通常情况下,在affine编码模式下每个编码块上的控制点的数量可以为两个,也可以为三个。对于具体如何通过控制点的参数计算得到affine编码模式下每个编码块对应的各个编码字块的运动矢量可以采用现有技术中相关方法,在此不再赘述。In one embodiment, the main difference between the inter coding mode and the affine coding mode is that the inter coding mode only pays attention to the motion information of translational motion in the video, while the affine coding mode pays attention to more motion information, such as zoom, rotation, perspective Irregular movements such as sports. It can be seen from the foregoing description that when using the inter coding mode for inter prediction, the processing object of the inter prediction is a certain coding block in a frame of image, and the processing object of the affine coding mode is no longer the entire coding block. Divide the entire coding block into multiple coding sub-blocks, and take each coding sub-block as the processing object. In this way, each coding sub-block in affine coding mode corresponds to a motion vector, and the motion vectors corresponding to multiple coding sub-blocks form a motion vector field in affine coding mode. Motion compensation in affine coding mode refers to the use of motion Vector fields and reference frames result in predicted frames. In one embodiment, the motion vector of each coding sub-block included in each coding block in the affine coding mode can be obtained by calculating the parameters of the control points on the coding block. Normally, in affine coding mode, the number of control points on each coding block can be two or three. As for how to obtain the motion vector of each coded word block corresponding to each coded block in the affine coding mode by calculating the parameters of the control point, a related method in the prior art can be used, and details are not repeated here.

在一个实施例中,由上述描述可知,在确定了所述待处理视频的视频类型为预设视频类型后,为待处理视频确定对应的目标像素精度集合之前,首先要判断对所述待处理视频进行编码处理时所使用的编码模式,然后再进一步根据编码模式选择需要调整的初始像素精度集合,最后对需要调整的初始像素精度集合中各个像素精度进行增大调整,得到目标像素精度集合。In one embodiment, as can be seen from the above description, after it is determined that the video type of the video to be processed is a preset video type, before determining the corresponding target pixel precision set for the video to be processed, it is first necessary to determine whether the video to be processed is The encoding mode used when the video is encoded, and then further selects the initial pixel precision set to be adjusted according to the encoding mode, and finally increases and adjusts each pixel precision in the initial pixel precision set to be adjusted to obtain the target pixel precision set.

具体地,所述初始像素精度集合包括第一初始像素精度集合和第二初始像素精度集合,所述目标像素精度集合包括第一目标像素精度集合和第二目标像素精度集合,所述将初始像素精度集合中各个像素精度值增大,得到目标像素精度集合,包括:获取对所述待处理视频进行编码处理时使用的编码模式;若所述编码模式为第一类编码模式,则将所述第一初始像素精度集合中各个像素精度值进行修改,得到第一目标像素精度集合;若所述编码模式为第二类编码模式,则将所述第二初始像素精度集合中各个像素精度值进行修改,得到第二目标像素精度集合。Specifically, the initial pixel precision set includes a first initial pixel precision set and a second initial pixel precision set, the target pixel precision set includes a first target pixel precision set and a second target pixel precision set, and the initial pixel precision set The precision value of each pixel in the precision set is increased to obtain a target pixel precision set, which includes: obtaining an encoding mode used when encoding the video to be processed; if the encoding mode is the first type of encoding mode, Each pixel precision value in the first initial pixel precision set is modified to obtain a first target pixel precision set; if the encoding mode is the second type of encoding mode, each pixel precision value in the second initial pixel precision set is modified. Modify to obtain the second target pixel precision set.

在一个实施例中,所述对所述待处理视频进行编码处理时使用的编码模式可以是编码设备根据所述待处理视频中包括的运动信息进行选择的,具体地,如果编码设备判断出所述待处理视频中包括旋转、平移、缩放等多种运动信息,则可选择第一类编码模式为所述待处理视频进行编码;如果编码设备判断出所述待处理视频中只包括平移运动信息,则可选择第二类编码模式为所述待处理视频进行编码。在其他实施例中,所述对所述待处理视频进行编码处理时使用的编码模式也可以编码设备根据用户在用户界面输入的设置操作确定的。In one embodiment, the encoding mode used in the encoding process of the video to be processed may be selected by the encoding device according to the motion information included in the video to be processed. If the video to be processed includes rotation, translation, zoom and other motion information, the first type of encoding mode can be selected to encode the video to be processed; if the encoding device determines that the video to be processed only includes translation motion information , the second type of encoding mode can be selected to encode the to-be-processed video. In other embodiments, the encoding mode used when encoding the video to be processed may also be determined by the encoding device according to the setting operation input by the user on the user interface.

举例来说,假设编码设备设置了在第一编码模式下,第一初始像素精度集合为(1/2像素精度,整像素精度,1/4像素精度);在第二编码模式下,第二初始像素精度集合为(1/4像素精度,1/8像素精度,1/16像素精度)。假设编码设备获取到一段待处理视频,且判断所述待处理视频的视频类型为预设视频类型,进一步的,编码设备确定对所述待处理视频进行编码处理时所需的编码模式,如果确定所述编码模式为第一类编码模式,则将第一初始像素精度集合(整像素精度,1/2像素精度,1/4像素精度)中各个像素精度值进行修改,得到第一目标像素精度集合,可以表示为(整像素精度,4像素精度和8像素精度);如果确定所述编码模式为第二类编码模式,则将第二初始像素精度集合(1/4像素精度,1/8像素精度,1/16像素精度)中各个像素精度值进行修改,得到第二目标像素精度集合,可以表示为(1/2像素精度,整像素精度,2像素精度)。For example, assuming that the encoding device is set in the first encoding mode, the first initial pixel precision set is (1/2 pixel precision, integer pixel precision, 1/4 pixel precision); in the second encoding mode, the second The initial pixel precision set is (1/4 pixel precision, 1/8 pixel precision, 1/16 pixel precision). Assuming that the encoding device obtains a piece of video to be processed, and judges that the video type of the video to be processed is a preset video type, further, the encoding device determines the encoding mode required for encoding the video to be processed, if it is determined The encoding mode is the first type encoding mode, then modify each pixel precision value in the first initial pixel precision set (integer pixel precision, 1/2 pixel precision, 1/4 pixel precision) to obtain the first target pixel precision set, which can be expressed as (integer pixel precision, 4 pixel precision and 8 pixel precision); if it is determined that the encoding mode is the second type of encoding mode, the second initial pixel precision set (1/4 pixel precision, 1/8 Each pixel precision value in the pixel precision, 1/16 pixel precision) is modified to obtain a second target pixel precision set, which can be expressed as (1/2 pixel precision, integer pixel precision, 2 pixel precision).

步骤S403、基于所述目标像素精度集合对所述待处理视频进行编码处理,得到编码视频。Step S403: Encode the to-be-processed video based on the target pixel precision set to obtain an encoded video.

在一个实施例中,通过步骤S402确定了所述待处理视频对应的目标像素精度集合之后,基于所述目标像素精度集合对所述待处理视频进行帧间预测,进而对帧间预测后的待处理视频进行其他的编码处理,比如变换、量化、熵编码等,得到编码视频。其中,所述基于所述目标像素精度集合对所述待处理视频进行帧间预测实质上是对所述待处理视频的每帧图像进行帧间预测。In one embodiment, after the target pixel precision set corresponding to the video to be processed is determined in step S402, inter-frame prediction is performed on the to-be-processed video based on the target pixel precision set, and then the inter-predicted to-be-processed video is subjected to inter-frame prediction. Process the video to perform other encoding processes, such as transformation, quantization, entropy encoding, etc., to obtain an encoded video. The performing inter-frame prediction on the video to be processed based on the target pixel precision set is substantially performing inter-frame prediction on each frame of the video to be processed.

在一个实施例中,对所述处理视频进行编码处理得到编码视频后,可以以码流的形式将所述编码视频传输给解码端,由解码端对编码视频进行解码处理,解码端可以将解码得到的视频传输给显示设备,由显示设备进行显示。通过对上述待处理视频进行编码、解码、显示处理之后,待处理视频中包括的一些冗余信息被消除,大大减小了待处理视频的数据量,提高了视频传输效率,同时也提高了用户观看体验。比如,假设一段一秒钟的数字电视视频,通过1M的传输宽带进行传输,在未进行编码处理的情况下,需要传输9秒钟,也就是用户需要等到9秒钟才能观看一段一秒钟的数字电视视频;在采用本发明实施例的视频处理方法进行处理后,可能仅需要从需要传输1秒钟。In one embodiment, after encoding the processed video to obtain the encoded video, the encoded video may be transmitted to the decoding end in the form of a code stream, and the decoding end performs decoding processing on the encoded video, and the decoding end may decode the encoded video. The obtained video is transmitted to the display device and displayed by the display device. After encoding, decoding and displaying the above-mentioned video to be processed, some redundant information included in the video to be processed is eliminated, which greatly reduces the data volume of the video to be processed, improves the video transmission efficiency, and also improves the user experience. viewing experience. For example, assuming that a one-second digital TV video is transmitted through a 1M transmission bandwidth, without encoding processing, it needs to be transmitted for 9 seconds, that is, the user needs to wait for 9 seconds to watch a one-second video. Digital TV video; after being processed by the video processing method of the embodiment of the present invention, it may only need to be transmitted for 1 second.

在一个实施例中,基于所述目标像素精度结对所述目标待处理视频中每帧图像进行编码处理后,为每帧图像添加能够标识该帧图像所属视频类型的标识信息,将所述待处理视频中各帧图像都进行上述处理之后,得到编码视频,所述编码视频中包括了标识信息,将编码视频和标识信息发送给解码端,以使得解码端根据每帧图像的编码情况,进行解码。具体地,所述基于所述目标像素精度集合对所述待处理视频进行编码处理,得到编码视频,包括:为所述编码视频添加标识信息;将添加了所述标识信息的编码视频发送给解码端,所述标识信息用于指示所述解码端基于所述标识信息对所述编码视频进行解码。In one embodiment, after encoding and processing each frame of the target video to be processed based on the target pixel accuracy, adding identification information capable of identifying the video type to which the frame of image belongs to each frame of the image, and encoding the to-be-processed image After the above-mentioned processing is performed on each frame image in the video, an encoded video is obtained, and the encoded video includes identification information, and the encoded video and identification information are sent to the decoding end, so that the decoding end decodes according to the encoding situation of each frame of image. . Specifically, performing encoding processing on the to-be-processed video based on the target pixel precision set to obtain an encoded video includes: adding identification information to the encoded video; sending the encoded video to which the identification information is added to decoding end, the identification information is used to instruct the decoding end to decode the encoded video based on the identification information.

在一个实施例中,编码设备在确定了所述待处理视频对应的目标像素精度集合之后,可以为目标像素精度集合中包括的各个像素精度设置索引标识,这样一来,编码设备通过索引标识便可知道对某一帧图像进行编码处理时所使用的像素精度。其中,目标像素精度集合中包括的各像素精度设置的索引标识可以为:假设目标像素精度集合为(整像素精度,4像素精度,8像素精度),索引标识为:0表示整像素精度,00表示4像素精度,01表示8像素精度。In one embodiment, after determining the target pixel precision set corresponding to the video to be processed, the encoding device may set an index identifier for each pixel precision included in the target pixel precision set. You can know the pixel precision used to encode a frame of images. Wherein, the index identifier of each pixel precision setting included in the target pixel precision set may be: assuming that the target pixel precision set is (integer pixel precision, 4 pixel precision, 8 pixel precision), the index identifier is: 0 means integer pixel precision, 00 It means 4 pixel precision, 01 means 8 pixel precision.

编码设备在对待处理视频进行编码处理得到编码视频后,可以将索引标识和编码视频一起发送给解码器,所述索引标识用于指示所述解码端基于所述索引标识对编码视频进行解码。具体地,所述基于所述目标像素精度集合对所述待处理视频进行编码处理,得到编码视频,包括:为目标像素精度集合中包括的各个像素精度设置索引标识;确定对所述待处理视频进行编码处理时使用的所述目标像素精度集合中的目标像素精度,以及所述目标像素精度对应的索引标识;为所述编码视频添加所述索引标识,并将添加了所述索引标识的编码视频发送给解码端,所述索引标识用于指示所述解码端基于所述索引标识对编码视频进行解码。After encoding the to-be-processed video to obtain the encoded video, the encoding device may send the index identifier together with the encoded video to the decoder, where the index identifier is used to instruct the decoding end to decode the encoded video based on the index identifier. Specifically, performing encoding processing on the to-be-processed video based on the target pixel precision set to obtain an encoded video includes: setting an index identifier for each pixel precision included in the target pixel precision set; The target pixel precision in the target pixel precision set used during encoding processing, and the index mark corresponding to the target pixel precision; add the index mark to the encoded video, and add the coding with the index mark The video is sent to the decoding end, and the index identifier is used to instruct the decoding end to decode the encoded video based on the index identifier.

本发明实施例中,编码设备对获取到的待处理视频的视频类型进行判断,如果所述待处理视频的视频类型为预设视频类型时,则将初始像素精度集合中各个像素精度值增大,得到目标像素精度集合,进一步的,基于所述目标像素精度集合对待处理视频进行编码处理,得到编码视频。上述对待处理视频进行编码处理的过程中,根据待处理视频的视频类型确定编码处理时使用的目标像素精度集合,实现了有针对性的为不同视频类型的待处理视频选择目标像素精度集合,从而可提高编码视频的质量。In this embodiment of the present invention, the encoding device determines the acquired video type of the video to be processed, and if the video type of the to-be-processed video is a preset video type, increases each pixel precision value in the initial pixel precision set to obtain a target pixel precision set, and further, perform encoding processing on the video to be processed based on the target pixel precision set to obtain an encoded video. In the above process of encoding the video to be processed, the target pixel precision set used in the encoding process is determined according to the video type of the video to be processed, so as to achieve targeted selection of the target pixel precision set for the to-be-processed videos of different video types, thereby. Improves the quality of encoded video.

参考图5,为本发明实施例提供的一种编码系统,所述编码系统中可包括编码端501和解码端502,所述编码端501和所述解码端502可以配置于同一终端设备中,或者所述编码端501和所述解码端502也可以是相互独立的两个设备。在图5所述的编码系统中,所述编码端501用于采用合适的像素精度集合对待处理视频进行压缩编码处理,以减少待处理视频中包括的冗余信息,编码端501将对待处理视频进行编码处理后得到的编码视频发送给解码端,解码端502采用与编码端相对应的像素精度集合以及其他编码信息对编码视频进行解码处理。Referring to FIG. 5, an encoding system provided by an embodiment of the present invention may include an encoding end 501 and a decoding end 502, and the encoding end 501 and the decoding end 502 may be configured in the same terminal device, Alternatively, the encoding end 501 and the decoding end 502 may also be two independent devices. In the encoding system shown in FIG. 5 , the encoding end 501 is configured to perform compression encoding on the video to be processed by using a suitable set of pixel precisions to reduce redundant information included in the video to be processed, and the encoding end 501 will The encoded video obtained after the encoding process is sent to the decoding end, and the decoding end 502 uses the pixel precision set corresponding to the encoding end and other encoding information to decode the encoded video.

参考图6,为本发明实施例提供的一种交互图,下面结合图6来描述图5中编码端501和解码端502在对视频进行编解码处理时的交互流程。在一个实施例中,编码端501在步骤S601中获取到待处理视频之后,确定所述待处理视频的视频类型。根据待处理视频的视频类型选择对待处理视频进行编码处理时所需的目标像素精度集合。具体地,如果编码端501在步骤S602中确定出待处理视频的视频类型为预设视频类型,则将编码端501中存储的初始像素精度集合中各个像素精度进行修改,得到目标像素精度集合,进一步的在步骤S603中基于目标像素精度集合对所述待处理视频进行编码处理;如果编码端501确定出待处理视频的视频类型不是预设视频类型,则使用解码端501中存储的初始像素进行集合对所述待处理视频进行编码处理。Referring to FIG. 6 , which is an interaction diagram provided by an embodiment of the present invention, the following describes the interaction flow of the encoding end 501 and the decoding end 502 in FIG. 5 when encoding and decoding the video with reference to FIG. 6 . In one embodiment, after acquiring the video to be processed in step S601, the encoding end 501 determines the video type of the video to be processed. The target pixel precision set required for encoding the to-be-processed video is selected according to the video type of the to-be-processed video. Specifically, if the encoding end 501 determines in step S602 that the video type of the video to be processed is the preset video type, then each pixel precision in the initial pixel precision set stored in the encoding end 501 is modified to obtain the target pixel precision set, Further, in step S603, the video to be processed is encoded based on the target pixel precision set; if the encoding terminal 501 determines that the video type of the video to be processed is not a preset video type, the initial pixel stored in the decoding terminal 501 is used to perform the encoding process. The set performs encoding processing on the video to be processed.

可选的,步骤S602中所述的预设视频类型可以包括屏幕内容视频和自然视频中的任意一种或多种,或者预设视频类型也可以包括长视频和短视频中的任意一种,或者预设视频类型还可以为其他视频类型,本发明实施例不对预设视频类型进行限定。在一个实施例中,对于编码端501确定待处理视频的视频类型的方法可参见图4实施例中相关内容的描述,在此不再赘述。Optionally, the preset video type described in step S602 may include any one or more of screen content video and natural video, or the preset video type may also include any one of long video and short video, Alternatively, the preset video type may also be other video types, and the embodiment of the present invention does not limit the preset video type. In one embodiment, for the method for the encoding end 501 to determine the video type of the video to be processed, reference may be made to the description of the related content in the embodiment of FIG. 4 , which will not be repeated here.

编码端501对待处理视频进行编码的编码模式可以第一类编码模式和第二类编码模式,其中第一类编码模式可以包括inter编码模式和affine编码模式中的任意一种,所述第二类编码模式可以包括inter编码模式和affine编码模式中的一种。在不同的编码模式下,编码端501对应的初始像素精度集合也不相同。具体地,第一类编码模式对应的初始像素精度集合可以为第一初始像素精度集合,第二类编码模式对应的初始像素精度集合可以为第二初始像素精度集合。在编码端501确定出所述待处理视频的视频类型为预设视频类型后,确定目标像素精度集合之前,编码端501还需要确定出编码模式:如果编码模式为第一类型编码模式,则编码端501将第一初始像素精度集合中各个像素精度值进行调整,得到第一目标像素精度集合;如果编码模式为第二类编码模式,则编码端501将第二初始像素精度集合中的各个像素精度值进行调整,得到第二目标像素精度集合。The encoding mode used by the encoding end 501 to encode the video to be processed may be a first type encoding mode and a second type encoding mode, where the first type encoding mode may include any one of an inter encoding mode and an affine encoding mode, and the second type encoding mode The encoding mode may include one of an inter encoding mode and an affine encoding mode. In different encoding modes, the initial pixel precision sets corresponding to the encoding end 501 are also different. Specifically, the initial pixel precision set corresponding to the first type of coding mode may be the first initial pixel precision set, and the initial pixel precision set corresponding to the second type of coding mode may be the second initial pixel precision set. After the encoding end 501 determines that the video type of the video to be processed is the preset video type, and before determining the target pixel precision set, the encoding end 501 also needs to determine the encoding mode: if the encoding mode is the first type encoding mode, the encoding The end 501 adjusts each pixel precision value in the first initial pixel precision set to obtain a first target pixel precision set; if the encoding mode is the second type of encoding mode, the encoding end 501 adjusts each pixel in the second initial pixel precision set. The precision value is adjusted to obtain the second target pixel precision set.

在图5所述的编码系统中,编码端501通过步骤S603基于目标像素精度集合对待处理视频进行编码处理,得到编码视频后,还可以通过步骤S604为编码视频添加标识信息,并将添加了标识信息的编码视频发送解码端502。其中,所述标识信息是指用于标识编码视频对应的视频类型为预设视频类型的信息,换句话说,解码端502若检测到编码视频中包括此标识信息,则可确定编码视频对应的视频类型为预设视频类型。In the encoding system shown in FIG. 5 , the encoding end 501 performs encoding processing on the video to be processed based on the target pixel precision set in step S603, and after obtaining the encoded video, it can also add identification information to the encoded video in step S604, and add the identification information to the encoded video. The encoded video of the information is sent to the decoding end 502 . The identification information refers to information used to identify that the video type corresponding to the encoded video is a preset video type. In other words, if the decoding end 502 detects that the encoded video includes this identification information, it can determine the corresponding video type of the encoded video. The video type is the preset video type.

解码端502在步骤S605中接收编码端501发送的编码视频,并可以提取编码视频中包括的信息,如果在步骤S606中确定出所述编码视频中包括标识信息时,则确定接收到的编码视频对应的视频类型为预设视频类型;进一步的,解码端502可以获取到编码端501为预设视频类型设置的目标像素精度集合,并通过步骤S607基于目标像素精度集合对所述编码视频进行解码处理。The decoding end 502 receives the encoded video sent by the encoding end 501 in step S605, and can extract the information included in the encoded video. If it is determined in step S606 that the encoded video includes identification information, then determine the received encoded video. The corresponding video type is a preset video type; further, the decoding end 502 can obtain the target pixel precision set set by the encoding end 501 for the preset video type, and decode the encoded video based on the target pixel precision set by step S607 deal with.

在一个实施例中,编码端501在执行步骤S603得到编码视频之后,除了为编码视频添加标识信息,还可以为编码视频中添加索引标识,所述索引标识是用来标识编码端501对待处理视频进行编码处理时所使用的目标像素精度,该目标像素精度是属于目标像素精度集合中的任意一个。可以理解的,待处理视频是由多帧图像组成的,因此对待处理视频进行视频编码处理时也是以帧为单位进行处理的,对各帧图像进行编码处理之后,以码流的形式将包括各帧图像编码结果的编码视频发送给解码端。所以,上述对待处理视频进行编码处理时所使用的目标像素精度实质上是说对待处理视频的各帧图像而言的。In one embodiment, after the encoding end 501 obtains the encoded video by performing step S603, in addition to adding identification information to the encoded video, an index identification may also be added to the encoded video, and the index identification is used to identify the video to be processed by the encoding end 501 The target pixel precision used in the encoding process, the target pixel precision belongs to any one of the target pixel precision set. It can be understood that the video to be processed is composed of multiple frames of images, so the video encoding processing of the video to be processed is also processed in units of frames. The encoded video of the frame image encoding result is sent to the decoding end. Therefore, the target pixel precision used in the encoding process of the video to be processed is essentially for each frame of the video to be processed.

编码端501将添加了索引标识的编码视频发送给解码端502,解码端502从目标像素精度集合中,确定出所述索引标识所标识的目标像素精度;进一步的,基于目标像素精度对所述编码视频进行解码处理。解码端502基于目标精度对编码视频进行解码处理后,得到可显示或者可存储的数据量较小的视频。The encoding end 501 sends the encoded video with the index mark added to the decoding end 502, and the decoding end 502 determines the target pixel precision identified by the index mark from the target pixel precision set; further, based on the target pixel precision The encoded video is decoded. After decoding the encoded video based on the target precision, the decoding end 502 obtains a video with a smaller amount of data that can be displayed or stored.

在本发明实施例提供的编码系统中,编码端501根据待处理视频的视频类型,设置相应的目标像素精度集合对待处理视频进行编码处理,提高了视频编码的质量,解码端502根据编码端501发送的编码视频中包括的标识信息可以准确的选择目标像素精度集合,对编码视频进行解码,可保证视频内容不被破坏,提高了解码质量。In the encoding system provided by the embodiment of the present invention, the encoding end 501 sets a corresponding target pixel precision set to encode the to-be-processed video according to the video type of the video to be processed, which improves the quality of video encoding. The identification information included in the sent encoded video can accurately select the target pixel precision set, and decode the encoded video, which can ensure that the video content is not damaged and improve the decoding quality.

参考图7,为本发明实施例提供的一种编码设备的结构示意图,如图7所述的编码设备可包括:存储器701和处理器702,其中存储器701和处理器702通过总线703连接,存储器701中存储有程序代码,存储器702调用存储器701中的程序代码。Referring to FIG. 7 , which is a schematic structural diagram of an encoding device provided by an embodiment of the present invention, the encoding device described in FIG. 7 may include: a memory 701 and a processor 702 , wherein the memory 701 and the processor 702 are connected through a bus 703 , and the memory Program code is stored in 701 , and memory 702 calls the program code in memory 701 .

所述存储器701可以包括易失性存储器(volatile memory),如随机存取存储器(random-access memory,RAM);存储器701也可以包括非易失性存储器(non-volatilememory),如快闪存储器(flash memory),固态硬盘(solid-state drive,SSD)等;存储器701还可以包括上述种类的存储器的组合。The memory 701 may include a volatile memory (volatile memory), such as random-access memory (RAM); the memory 701 may also include a non-volatile memory (non-volatile memory), such as a flash memory ( flash memory), solid-state drive (solid-state drive, SSD), etc.; the memory 701 may also include a combination of the above-mentioned types of memory.

所述处理器702可以是中央处理器(Central Processing Unit,CPU)。所述处理器702还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)等。该PLD可以是现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)等。所述处理器702也可以为上述结构的组合。The processor 702 may be a central processing unit (Central Processing Unit, CPU). The processor 702 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or the like. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), or the like. The processor 702 may also be a combination of the above structures.

本发明实施例中,所述存储器701用于存储计算机程序,所述计算机程序包括程序指令,处理器702用于执行存储器701存储的程序指令,用来实现上述图4所示的实施例中的相应方法的步骤。In this embodiment of the present invention, the memory 701 is used to store a computer program, and the computer program includes program instructions, and the processor 702 is used to execute the program instructions stored in the memory 701 to implement the above-mentioned embodiment shown in FIG. 4 . corresponding method steps.

在一个实施例中,所述处理器702被配置调用所述程序指令时执行:确定获取到的待处理视频的视频类型;如果所述待处理视频的视频类型为预设视频类型,则将初始像素精度集合中各个像素精度值进行修改,得到目标像素精度集合;基于所述目标像素精度集合对所述待处理视频进行编码处理,得到编码视频。In one embodiment, the processor 702 is configured to execute when invoking the program instructions: determine the acquired video type of the video to be processed; if the video type of the video to be processed is a preset video type, then initialize the Each pixel precision value in the pixel precision set is modified to obtain a target pixel precision set; the to-be-processed video is encoded based on the target pixel precision set to obtain an encoded video.

在一个实施例中,所述处理器702在确定获取到的待处理视频的视频类型时,执行如下操作:确定所述待处理视频对应的哈希值;若所述哈希值不大于阈值,则确定所述待处理视频的视频类型为预设视频类型;若所述哈希值大于所述阈值,则确定所述待处理视频的视频类型不是所述预设视频类型。In one embodiment, when determining the acquired video type of the video to be processed, the processor 702 performs the following operations: determining a hash value corresponding to the video to be processed; if the hash value is not greater than a threshold, Then, it is determined that the video type of the video to be processed is a preset video type; if the hash value is greater than the threshold, it is determined that the video type of the to-be-processed video is not the preset video type.

在一个实施例中,所述处理器702在确定获取到的待处理视频的视频类型时,执行如下操作:调用视频类型识别模型对所述待处理视频进行识别,得到识别结果;若所述识别结果所指示的视频类型为预设视频类型,则确定所述待处理视频的视频类型为预设视频类型。In one embodiment, when determining the acquired video type of the video to be processed, the processor 702 performs the following operations: calling a video type identification model to identify the to-be-processed video to obtain an identification result; if the identification If the video type indicated by the result is the preset video type, it is determined that the video type of the to-be-processed video is the preset video type.

在一个实施例中,所述初始像素精度集合包括第一初始像素精度集合和第二初始像素精度集合,所述目标像素精度集合包括第一目标像素精度集合和第二目标像素精度集合,所述处理器在将初始像素精度集合中各个像素精度值进行修改,得到目标像素精度集合时,执行如下操作:获取对所述待处理视频进行编码处理时使用的编码模式;若所述编码模式为第一类编码模式,则将所述第一初始像素精度集合中各个像素精度值进行修改,得到第一目标像素精度集合;若所述编码模式为第二类编码模式,则将所述第二初始像素精度集合中各个像素精度值进行修改,得到第二目标像素精度集合。In one embodiment, the initial pixel precision set includes a first initial pixel precision set and a second initial pixel precision set, the target pixel precision set includes a first target pixel precision set and a second target pixel precision set, the When the processor modifies each pixel precision value in the initial pixel precision set to obtain the target pixel precision set, the processor performs the following operations: obtaining the encoding mode used when encoding the video to be processed; if the encoding mode is the first one type of coding mode, modify each pixel precision value in the first initial pixel precision set to obtain a first target pixel precision set; if the coding mode is the second type of coding mode, the second initial Each pixel precision value in the pixel precision set is modified to obtain a second target pixel precision set.

在一个实施例中,所述第一类编码模式可以包括帧间inter编码模式和仿射affine编码模式中的任意一种,所述第二类编码模式可以包括帧间inter编码模式和所述affine编码模式中的另外一种。In one embodiment, the first type of coding mode may include any one of an inter-frame inter coding mode and an affine coding mode, and the second type of coding mode may include an inter-frame inter coding mode and the affine coding mode Another type of encoding mode.

在一个实施例中,所述处理器702在基于所述目标像素精度集合对所述待处理视频进行编码处理,得到编码视频时,执行如下操作:为所述编码视频添加标识信息;将添加了所述标识信息的编码视频发送给解码端,所述标识信息用于指示所述解码端基于所述标识信息对所述编码视频进行解码。In one embodiment, when the processor 702 encodes the video to be processed based on the target pixel precision set to obtain an encoded video, the processor 702 performs the following operations: adding identification information to the encoded video; adding the added The encoded video of the identification information is sent to the decoding end, and the identification information is used to instruct the decoding end to decode the encoded video based on the identification information.

在一个实施例中,所述处理器702在基于所述目标像素精度集合对所述待处理视频进行编码处理,得到编码视频时,执行如下操作:为目标像素精度集合中包括的各个像素精度设置索引标识;确定对所述待处理视频进行编码处理时使用的所述目标像素精度集合中的目标像素精度,以及所述目标像素精度对应的索引标识;为所述编码视频添加所述索引标识,并将添加了所述索引标识的编码视频发送给解码端,所述索引标识用于指示所述解码端基于所述索引标识对编码视频进行解码。In one embodiment, the processor 702 performs the following operations when encoding the video to be processed based on the target pixel precision set to obtain an encoded video: setting the pixel precision for each pixel precision included in the target pixel precision set index identification; determine the target pixel accuracy in the target pixel accuracy set used when encoding the video to be processed, and the index identification corresponding to the target pixel accuracy; add the index identification to the encoded video, and send the encoded video to which the index identifier is added to the decoding end, where the index identifier is used to instruct the decoding end to decode the encoded video based on the index identifier.

参考图8,为本发明实施例提供的一种解码设备的结构示意图,如图8所述的解码设备可包括:存储器801和处理器802,其中存储器801和处理器802通过总线803连接,存储器801中存储有程序代码,存储器802调用存储器801中的程序代码。Referring to FIG. 8 , which is a schematic structural diagram of a decoding device provided by an embodiment of the present invention, the decoding device described in FIG. 8 may include: a memory 801 and a processor 802 , wherein the memory 801 and the processor 802 are connected through a bus 803 , and the memory Program code is stored in 801 , and memory 802 calls the program code in memory 801 .

所述存储器801可以包括易失性存储器(volatile memory),如随机存取存储器(random-access memory,RAM);存储器801也可以包括非易失性存储器(non-volatilememory),如快闪存储器(flash memory),固态硬盘(solid-state drive,SSD)等;存储器801还可以包括上述种类的存储器的组合。The memory 801 may include volatile memory (volatile memory), such as random-access memory (random-access memory, RAM); the memory 801 may also include non-volatile memory (non-volatile memory), such as flash memory ( flash memory), solid-state drive (solid-state drive, SSD), etc.; the memory 801 may also include a combination of the above-mentioned types of memory.

所述处理器802可以是中央处理器(Central Processing Unit,CPU)。所述处理器802还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)等。该PLD可以是现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)等。所述处理器802也可以为上述结构的组合。The processor 802 may be a central processing unit (Central Processing Unit, CPU). The processor 802 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or the like. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), or the like. The processor 802 may also be a combination of the above structures.

本发明实施例中,所述存储器801用于存储计算机程序,所述计算机程序包括程序指令,处理器802用于执行存储器801存储的程序指令。In this embodiment of the present invention, the memory 801 is used to store a computer program, and the computer program includes program instructions, and the processor 802 is used to execute the program instructions stored in the memory 801 .

在一个实施例中,所述处理器802被配置调用所述程序指令时执行:接收编码视频;当所述编码视频中包括标识信息时,确定所述编码视频对应的视频类型为预设视频类型;基于目标像素精度集合对所述编码视频进行解码处理;所述目标像素精度集合是针对初始像素精度集合中各个像素精度值进行修改获得的。In one embodiment, the processor 802 is configured to execute when invoking the program instructions: receive an encoded video; when the encoded video includes identification information, determine that a video type corresponding to the encoded video is a preset video type performing decoding processing on the encoded video based on a target pixel precision set; the target pixel precision set is obtained by modifying each pixel precision value in the initial pixel precision set.

在一个实施例中,所述编码视频中还包括索引标识,所述处理器802在基于目标像素精度集合对所述编码视频进行解码处理时,执行如下操作:从所述目标像素精度集合中,确定所述索引标识所标识的目标像素精度;基于所述目标像素精度对所述编码视频进行解码处理。In one embodiment, the encoded video further includes an index identifier, and when performing decoding processing on the encoded video based on the target pixel precision set, the processor 802 performs the following operations: from the target pixel precision set, determining the target pixel precision identified by the index identifier; and performing decoding processing on the encoded video based on the target pixel precision.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.

以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is only a part of the embodiments of the present invention, and of course, it cannot limit the scope of the rights of the present invention, so the equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims (21)

1. A video processing method, comprising:
determining the video type of the obtained video to be processed;
if the video type of the video to be processed is a preset video type, modifying each pixel precision value in the initial pixel precision set to obtain a target pixel precision set;
and coding the video to be processed based on the target pixel precision set to obtain a coded video.
2. The method of claim 1, wherein the determining the video type of the acquired video to be processed comprises:
determining a hash value corresponding to the video to be processed;
if the hash value is not greater than the threshold value, determining that the video type of the video to be processed is a preset video type;
and if the hash value is larger than the threshold value, determining that the video type of the video to be processed is not the preset video type.
3. The method of claim 1, wherein the determining the video type of the acquired video to be processed comprises:
calling a video type identification model to identify the video to be processed to obtain an identification result;
and if the video type indicated by the identification result is a preset video type, determining that the video type of the video to be processed is the preset video type.
4. The method of claim 1, wherein the initial set of pixel precisions comprises a first initial set of pixel precisions and a second initial set of pixel precisions, the target set of pixel precisions comprises a first target set of pixel precisions and a second target set of pixel precisions,
the modifying each pixel precision value in the initial pixel precision set to obtain a target pixel precision set includes:
acquiring a coding mode used when the video to be processed is coded;
if the coding mode is a first type of coding mode, modifying each pixel precision value in the first initial pixel precision set to obtain a first target pixel precision set;
and if the coding mode is a second type of coding mode, modifying each pixel precision value in the second initial pixel precision set to obtain a second target pixel precision set.
5. The method of claim 4, wherein the first type of coding mode comprises any one of an inter-frame coding mode and an affine coding mode, and wherein the second type of coding mode comprises the other one of the inter-frame coding mode and the affine coding mode.
6. The method of claim 1, wherein the encoding the video to be processed based on the target set of pixel precisions to obtain an encoded video, comprises:
adding identification information to the encoded video;
and sending the coded video added with the identification information to a decoding end, wherein the identification information is used for indicating the decoding end to decode the coded video based on the identification information.
7. The method of claim 1, wherein the encoding the video to be processed based on the target set of pixel precisions to obtain an encoded video, comprises:
setting index identification for each pixel precision included in the target pixel precision set;
determining target pixel precision in the target pixel precision set used when the video to be processed is coded and an index identification corresponding to the target pixel precision;
and adding the index identifier to the coded video, and sending the coded video added with the index identifier to a decoding end, wherein the index identifier is used for indicating the decoding end to decode the coded video based on the index identifier.
8. A video processing method, comprising:
receiving an encoded video;
when the coded video comprises the identification information, determining that the video type corresponding to the coded video is a preset video type;
decoding the encoded video based on a target pixel precision set;
the target pixel precision set is obtained by modifying each pixel precision value in the initial pixel precision set.
9. The method of claim 8, wherein the encoded video further comprises an index identifier, and wherein the decoding the encoded video based on the target set of pixel precisions comprises:
determining, from the set of target pixel accuracies, a target pixel accuracy identified by the index identification;
and decoding the coded video based on the target pixel precision.
10. A video processing apparatus, comprising:
the determining unit is used for determining the video type of the acquired video to be processed;
the processing unit is used for modifying each pixel precision value in the initial pixel precision set to obtain a target pixel precision set if the determining unit determines that the video type of the video to be processed is a preset video type;
and the processing unit is further configured to perform encoding processing on the video to be processed based on the target pixel precision set to obtain an encoded video.
11. A video processing apparatus, comprising:
a receiving unit for receiving encoded video;
the processing unit is used for determining the video type corresponding to the coded video as a preset video type when the coded video comprises the identification information;
the processing unit is further configured to perform decoding processing on the encoded video based on a target pixel precision set;
the target pixel precision set is obtained by modifying each pixel precision value in the initial pixel precision set.
12. An encoding device, comprising a memory and a processor:
the memory for storing program code;
the processor, invoking the program code, when executed, is configured to perform the following:
determining the video type of the obtained video to be processed;
if the video type of the video to be processed is a preset video type, modifying each pixel precision value in the initial pixel precision set to obtain a target pixel precision set;
and coding the video to be processed based on the target pixel precision set to obtain a coded video.
13. The encoding device of claim 12, wherein the processor, when determining the video type of the acquired video to be processed, performs the following:
determining a hash value corresponding to the video to be processed;
if the hash value is not greater than the threshold value, determining that the video type of the video to be processed is a preset video type;
and if the hash value is larger than the threshold value, determining that the video type of the video to be processed is not the preset video type.
14. The encoding device of claim 12, wherein the processor, when determining the video type of the acquired video to be processed, performs the following:
calling a video type identification model to identify the video to be processed to obtain an identification result;
and if the video type indicated by the identification result is a preset video type, determining that the video type of the video to be processed is the preset video type.
15. The encoding device of claim 12, wherein the initial set of pixel precisions comprises a first initial set of pixel precisions and a second initial set of pixel precisions, the target set of pixel precisions comprises a first target set of pixel precisions and a second target set of pixel precisions,
when the processor modifies each pixel precision value in the initial pixel precision set to obtain a target pixel precision set, the following operations are executed:
acquiring a coding mode used when the video to be processed is coded;
if the coding mode is a first type of coding mode, modifying each pixel precision value in the first initial pixel precision set to obtain a first target pixel precision set;
and if the coding mode is a second type of coding mode, modifying each pixel precision value in the second initial pixel precision set to obtain a second target pixel precision set.
16. The encoding device according to claim 15, wherein the first type of encoding mode includes any one of an inter-frame encoding mode and an affine encoding mode, and the second type of encoding mode includes the other one of the inter-frame encoding mode and the affine encoding mode.
17. The encoding device according to claim 12, wherein the processor, when performing encoding processing on the video to be processed based on the target pixel precision set to obtain an encoded video, performs the following operations:
adding identification information to the encoded video;
and sending the coded video added with the identification information to a decoding end, wherein the identification information is used for indicating the decoding end to decode the coded video based on the identification information.
18. The encoding device according to claim 12, wherein the processor, when performing encoding processing on the video to be processed based on the target pixel precision set to obtain an encoded video, performs the following operations:
setting index identification for each pixel precision included in the target pixel precision set;
determining target pixel precision in the target pixel precision set used when the video to be processed is coded and an index identification corresponding to the target pixel precision;
and adding the index identifier to the coded video, and sending the coded video added with the index identifier to a decoding end, wherein the index identifier is used for indicating the decoding end to decode the coded video based on the index identifier.
19. A decoding device, comprising a memory and a processor:
the memory for storing program code;
the processor, invoking the program code, when executed, is configured to perform the following:
receiving an encoded video;
when the coded video comprises the identification information, determining that the video type corresponding to the coded video is a preset video type;
decoding the encoded video based on a target pixel precision set;
the target pixel precision set is obtained by modifying each pixel precision value in the initial pixel precision set.
20. The decoding device according to claim 19, wherein the encoded video further includes an index identifier, and the processor performs the following operations when performing a decoding process on the encoded video based on the target set of pixel precisions:
determining, from the set of target pixel accuracies, a target pixel accuracy identified by the index identification;
and decoding the coded video based on the target pixel precision.
21. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a first computer program comprising first program instructions that, when executed by a processor, cause the processor to perform the video processing method of any of claims 1-7; alternatively, the computer readable storage medium stores a second computer program comprising second program instructions which, when executed by a processor, cause the processor to carry out the video processing method according to claim 8 or 9.
CN201980005058.6A 2019-03-13 2019-03-13 Video processing method and device, coding equipment and decoding equipment Pending CN111567044A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/078050 WO2020181540A1 (en) 2019-03-13 2019-03-13 Video processing method and device, encoding apparatus, and decoding apparatus

Publications (1)

Publication Number Publication Date
CN111567044A true CN111567044A (en) 2020-08-21

Family

ID=72075486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980005058.6A Pending CN111567044A (en) 2019-03-13 2019-03-13 Video processing method and device, coding equipment and decoding equipment

Country Status (2)

Country Link
CN (1) CN111567044A (en)
WO (1) WO2020181540A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100296580A1 (en) * 2009-05-21 2010-11-25 Metoevi Isabelle Method and system for efficient video transcoding
CN102598665A (en) * 2009-11-06 2012-07-18 高通股份有限公司 Control of video encoding based on image capture parameters
CN103260020A (en) * 2012-02-18 2013-08-21 张新安 Quick integer pixel motion estimation method of AVS-M video coding
US20140126644A1 (en) * 2011-06-30 2014-05-08 Telefonaktiebolaget L M Ericsson (Publ) A Method a Decoder and Encoder for Processing a Motion Vector
CN105900420A (en) * 2014-01-08 2016-08-24 微软技术许可有限责任公司 Choose motion vector precision
CN105981382A (en) * 2014-09-30 2016-09-28 微软技术许可有限责任公司 Hash-Based Encoder Decisions for Video Coding
CN106331703A (en) * 2015-07-03 2017-01-11 华为技术有限公司 Video coding and decoding method, and video coding and decoding device
CN107005708A (en) * 2014-09-26 2017-08-01 Vid拓展公司 Decoding is replicated in the block of use time block vector forecasting

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102206084B1 (en) * 2017-07-07 2021-01-21 삼성전자주식회사 Motion vector encoding apparatus and encoding method determined by adaptive motion vector resolution, and motion vector decoding apparatus and decoding method
CN116708780A (en) * 2017-08-11 2023-09-05 华为技术有限公司 Video image coding and decoding method, device and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100296580A1 (en) * 2009-05-21 2010-11-25 Metoevi Isabelle Method and system for efficient video transcoding
CN102598665A (en) * 2009-11-06 2012-07-18 高通股份有限公司 Control of video encoding based on image capture parameters
US20140126644A1 (en) * 2011-06-30 2014-05-08 Telefonaktiebolaget L M Ericsson (Publ) A Method a Decoder and Encoder for Processing a Motion Vector
CN103260020A (en) * 2012-02-18 2013-08-21 张新安 Quick integer pixel motion estimation method of AVS-M video coding
CN105900420A (en) * 2014-01-08 2016-08-24 微软技术许可有限责任公司 Choose motion vector precision
CN107005708A (en) * 2014-09-26 2017-08-01 Vid拓展公司 Decoding is replicated in the block of use time block vector forecasting
CN105981382A (en) * 2014-09-30 2016-09-28 微软技术许可有限责任公司 Hash-Based Encoder Decisions for Video Coding
CN106331703A (en) * 2015-07-03 2017-01-11 华为技术有限公司 Video coding and decoding method, and video coding and decoding device

Also Published As

Publication number Publication date
WO2020181540A1 (en) 2020-09-17

Similar Documents

Publication Publication Date Title
US11057646B2 (en) Image processor and image processing method
US10003768B2 (en) Apparatus and methods for frame interpolation based on spatial considerations
US11412228B2 (en) Method and apparatus for video encoding and decoding
US12231645B2 (en) Frame skipping techniques in video encoding and decoding method
US12069288B2 (en) Inter prediction method and related apparatus
CN109996072A (en) The processing method and processing device of video image
US12034954B2 (en) Encoder and decoder with support of sub-layer picture rates in video coding
US20230007273A1 (en) Encoder, a decoder and corresponding methods using intra block copy (ibc) dedicated buffer and default value refreshing for luma and chroma component
WO2017129023A1 (en) Decoding method, encoding method, decoding apparatus, and encoding apparatus
US20250301125A1 (en) Prediction weighted table-based image/video coding method and apparatus
CN108141610A (en) For coding and decoding the method and apparatus of the image based on light field and corresponding computer program product
KR20150068192A (en) Methed, device and system for processing image based on cloud server
US20140009642A1 (en) Image input apparatus with high-speed, high-quality still image successive capturing capability and still image successive capturing method using the same
CN114466192A (en) Image/video super-resolution
CN116848843A (en) Switchable dense motion vector field interpolation
JP2021118403A (en) Image processing device, control method thereof, program, and image processing system
KR20230081711A (en) Motion Coding Using Geometric Models for Video Compression
CN117750030B (en) Video encoding method, device, equipment and storage medium
US20220224912A1 (en) Image encoding/decoding method and device using affine tmvp, and method for transmitting bit stream
US20250294156A1 (en) Video Processing Method and Apparatus
CN115462090B (en) Advanced video coding device, encoder, method, storage medium and apparatus
KR102836646B1 (en) Matrix-based intra prediction device and method
KR100719841B1 (en) How to create and display thumbnails
CN114830665A (en) Affine motion model restriction
WO2024226920A1 (en) Syntax for image/video compression with generic codebook-based representation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination