CN115209145A - Video compression method, system, device and readable storage medium - Google Patents

Video compression method, system, device and readable storage medium Download PDF

Info

Publication number
CN115209145A
CN115209145A CN202211118396.0A CN202211118396A CN115209145A CN 115209145 A CN115209145 A CN 115209145A CN 202211118396 A CN202211118396 A CN 202211118396A CN 115209145 A CN115209145 A CN 115209145A
Authority
CN
China
Prior art keywords
video data
target
video
block
component
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
CN202211118396.0A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211118396.0A priority Critical patent/CN115209145A/en
Publication of CN115209145A publication Critical patent/CN115209145A/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/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • 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/156Availability of hardware or computational resources, e.g. encoding based on power-saving criteria
    • 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/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
    • H04N19/423Methods 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 characterised by memory arrangements
    • H04N19/426Methods 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 characterised by memory arrangements using memory downsizing methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The application discloses a video compression method, a system, a device and a readable storage medium, and relates to the field of data processing. When video data similar to the target video data of the first target position in the current frame video data exists in the area to be compared corresponding to the first target position in the previous frame video data, the similar video data is used for generating repeated mark information, so that the target video data is not converted and video compressed according to the second target position and the repeated mark information, the video display device can directly call the video data of the second target position as the target video data to be displayed, and when the change of a video picture at a server host side is small or the video picture is not changed, the data amount of format conversion, video compression and transmission can be greatly reduced, and further the processing amount and the power consumption of a substrate management control chip are reduced.

Description

一种视频压缩方法、系统、装置及可读存储介质A video compression method, system, device and readable storage medium

技术领域technical field

本申请涉及数据处理领域,特别涉及一种视频压缩方法、系统、装置及可读存储介质。The present application relates to the field of data processing, and in particular, to a video compression method, system, device and readable storage medium.

背景技术Background technique

请参照图1,图1为现有技术中一种视频压缩的结构框图。传统的基板管理控制芯片中视频的处理流程为:将服务器主机端的视频数据传输至基板管理控制芯片的VGA(Video Graphics Array,视频图形阵列)处理后,生成RGB(red-green-blue,红-绿-蓝)格式的原始视频数据,通过色彩空间转换模块(RGB2YUV),将原始的RGB格式的视频数据转换为YUV格式的视频数据,然后将YUV格式的视频数据存储至FIFO(First Input FirstOutput,先入先出队列)),按照后级压缩模块对压缩格式的要求,按照BLOCK的顺序输入给压缩模块进行压缩,并在完成压缩之后,将数据写入存储模块,EMAC(Ethernet AccessController,以太网控制器)驱动读取存储模块中完成压缩的数据,以将视频传输至视频显示装置,实现远程显示。Please refer to FIG. 1 , which is a structural block diagram of a video compression in the prior art. The video processing flow in the traditional baseboard management control chip is as follows: after the video data on the server host side is transmitted to the VGA (Video Graphics Array, video graphics array) of the baseboard management control chip for processing, RGB (red-green-blue, red- green-blue) format, convert the original RGB format video data into YUV format video data through the color space conversion module (RGB2YUV), and then store the YUV format video data in FIFO (First Input First Output, First-in, first-out queue)), according to the compression format requirements of the subsequent compression module, input it to the compression module for compression in the order of BLOCK, and after the compression is completed, write the data to the storage module, EMAC (Ethernet Access Controller, Ethernet control) drive to read the compressed data in the storage module to transmit the video to the video display device for remote display.

但是,在基板管理控制芯片的应用场景中,服务器主机端视频画面的变化很小或者视频画面不发生变化的可能性是很大的(尤其是监控场景下),但现有技术中针对上述情况,依旧会对不发生变化或者发生变化很小的视频数据进行色彩空间转换及视频压缩的处理,此时相当于处理了很多的重复数据,导致基板管理控制芯片的处理量较大,功耗较大。However, in the application scenario of the baseboard management control chip, there is a high possibility that the video image on the server host side changes very little or the video image does not change (especially in the monitoring scenario). , the color space conversion and video compression processing will still be performed on the video data that does not change or changes very little. At this time, it is equivalent to processing a lot of repeated data, resulting in a large processing capacity of the baseboard management control chip and a relatively high power consumption. big.

发明内容SUMMARY OF THE INVENTION

本申请的目的是提供一种视频压缩方法、系统、装置及可读存储介质,在服务器主机端视频画面的变化很小或者视频画面不发生变化时,可以大大减少格式转换、压缩及传输的数据量,进而减小了基板管理控制芯片的处理量和功耗。The purpose of this application is to provide a video compression method, system, device and readable storage medium, which can greatly reduce the data for format conversion, compression and transmission when the change of the video picture on the server host side is small or the video picture does not change. Therefore, the processing capacity and power consumption of the baseboard management control chip are reduced.

为解决上述技术问题,本申请提供了一种视频压缩方法,包括:In order to solve the above-mentioned technical problems, the present application provides a video compression method, including:

接收当前帧的块视频数据;Receive block video data of the current frame;

根据当前帧的所述块视频数据中目标视频数据的第一目标位置确定与当前帧的块视频数据对应的上一帧的块视频数据中与所述第一目标位置对应的待比较区域;Determine the to-be-compared area corresponding to the first target position in the block video data of the previous frame corresponding to the block video data of the current frame according to the first target position of the target video data in the block video data of the current frame;

确定所述待比较区域的视频数据中是否存在与所述目标视频数据相似的视频数据;Determine whether there is video data similar to the target video data in the video data of the area to be compared;

若存在,则获取与所述目标视频数据相似的视频数据在上一帧的所述视频数据中的第二目标位置,并生成重复标志信息,以根据所述第二目标位置及重复标志信息不对所述目标视频数据进行转换及视频压缩;If it exists, obtain the second target position of the video data similar to the target video data in the video data of the previous frame, and generate repetition mark information, so that the second target position and the repetition mark information are incorrect The target video data is converted and video compressed;

将所述第二目标位置及所述重复标志信息发送至视频显示装置,以使所述视频显示装置调用所述第二目标位置的视频数据作为目标视频数据并进行显示。Sending the second target position and the repetition flag information to a video display device, so that the video display device calls and displays the video data of the second target position as target video data.

优选地,根据当前帧的所述块视频数据中目标视频数据的第一目标位置确定与当前帧的块视频数据对应的上一帧的块视频数据中与所述第一目标位置对应的待比较区域,包括:Preferably, the block video data of the previous frame corresponding to the block video data of the current frame is determined according to the first target position of the target video data in the block video data of the current frame, which corresponds to the first target position to be compared area, including:

确定与当前帧的所述块视频数据对应的上一帧的所述块视频数据;determining the block video data of the previous frame corresponding to the block video data of the current frame;

将上一帧的所述块视频数据中以所述第一目标位置为中心的预设范围内的区域划分为待比较区域。A region within a preset range centered on the first target position in the block video data of the previous frame is divided into regions to be compared.

优选地,所述目标视频数据为目标像素点;Preferably, the target video data is a target pixel;

将上一帧的所述块视频数据中以所述第一目标位置为中心的预设范围内的区域划分为待比较区域,包括:Divide an area within a preset range centered on the first target position in the block video data of the previous frame into an area to be compared, including:

将上一帧的所述块视频数据中以所述第一目标位置为中心的米字型结构或N*N宫格结构所构成的区域划分为待比较区域;Divide the area formed by the rice-shaped structure or the N*N palace lattice structure centered on the first target position in the block video data of the previous frame as the area to be compared;

所述第一目标位置与所述待比较区域的任意边沿连接经过的像素点个数不超过预设个数,N为不小于3的整数。The number of pixel points through which the first target position is connected to any edge of the area to be compared does not exceed a preset number, and N is an integer not less than 3.

优选地,将上一帧的所述块视频数据中以所述第一目标位置为中心的米字型结构或N*N宫格结构所构成的区域划分为待比较区域之后,还包括:Preferably, after dividing the area formed by the rice-shaped structure or the N*N grid structure centered on the first target position in the block video data of the previous frame into the area to be compared, the method further includes:

为所述待比较区域中的各个像素点设定一一对应的坐标;Set a one-to-one corresponding coordinate for each pixel in the area to be compared;

获取与所述目标视频数据相似的视频数据在上一帧的所述视频数据中的第二目标位置,包括:Obtaining the second target position of video data similar to the target video data in the video data of the previous frame, including:

获取与所述目标像素点相似的像素点在上一帧的所述视频数据中的坐标。The coordinates of the pixels similar to the target pixel in the video data of the previous frame are obtained.

优选地,所述坐标包括横坐标和纵坐标。Preferably, the coordinates include abscissa and ordinate.

优选地,确定所述待比较区域的视频数据中是否存在与所述目标视频数据相似的视频数据之后,还包括:Preferably, after determining whether there is video data similar to the target video data in the video data of the area to be compared, the method further includes:

若不存在,则对当前帧的所述块视频数据进行色彩空间转换以将当前帧的块视频数据由RGB格式转换为YUV格式;If it does not exist, then perform color space conversion on the block video data of the current frame to convert the block video data of the current frame from RGB format to YUV format;

对所述YUV格式的当前帧的块视频数据进行压缩,得到当前帧的压缩视频数据;The block video data of the current frame of the YUV format is compressed to obtain the compressed video data of the current frame;

将所述当前帧的压缩视频数据发送至所述视频显示装置,以显示对应的视频画面。Sending the compressed video data of the current frame to the video display device to display a corresponding video picture.

优选地,所述当前帧的块视频数据为16*16的块视频数据。Preferably, the block video data of the current frame is 16*16 block video data.

优选地,对所述YUV格式的当前帧的块视频数据进行压缩,得到当前帧的压缩视频数据,包括:Preferably, the block video data of the current frame in the YUV format is compressed to obtain the compressed video data of the current frame, including:

在YUV420模式下,先接收16*16的Y分量并进行压缩,并对8*8的U分量及8*8的V分量进行缓存;In YUV420 mode, the 16*16 Y component is first received and compressed, and the 8*8 U component and the 8*8 V component are cached;

在16*16的 Y分量压缩完成之后,依次接收所述8*8的U分量和所述8*8的V分量并依次进行压缩。After the compression of the 16*16 Y component is completed, the 8*8 U component and the 8*8 V component are sequentially received and sequentially compressed.

优选地,对所述YUV格式的当前帧的块视频数据进行压缩,得到当前帧的压缩视频数据,包括:Preferably, the block video data of the current frame in the YUV format is compressed to obtain the compressed video data of the current frame, including:

在YUV422模式下,先接收16*16的Y分量并进行压缩,并将16*8的U分量及16*8的V分量进行缓存;In YUV422 mode, the 16*16 Y component is first received and compressed, and the 16*8 U component and the 16*8 V component are cached;

在16*16的 Y分量压缩完成之后,依次接收所述16*8的U分量和所述16*8的V分量并依次进行压缩。After the compression of the 16*16 Y component is completed, the 16*8 U component and the 16*8 V component are sequentially received and sequentially compressed.

优选地,对所述YUV格式的当前帧的块视频数据进行压缩,得到当前帧的压缩视频数据,包括:Preferably, the block video data of the current frame in the YUV format is compressed to obtain the compressed video data of the current frame, including:

在YUV444模式下,先接收第一组8*8的Y分量并进行压缩,并对第二组8*8的Y分量、16*16的U分量及16*16的V分量进行缓存;In YUV444 mode, the first group of 8*8 Y components is received and compressed, and the second group of 8*8 Y components, 16*16 U components and 16*16 V components are cached;

在所述第一组8*8的Y分量压缩完成之后,依次接收所述第一组8*8的U分量、第一组8*8的V分量、第二组8*8的Y分量、第二组8*8的U分量及第二组8*8的V分量并依次进行压缩。After the compression of the Y component of the first group of 8*8 is completed, the U component of the first group of 8*8, the V component of the first group of 8*8, the Y component of the second group of 8*8, The U component of the second group of 8*8 and the V component of the second group of 8*8 are compressed in sequence.

优选地,确定所述待比较区域的视频数据中是否存在与所述目标视频数据相似的视频数据,包括:Preferably, determining whether video data similar to the target video data exists in the video data of the area to be compared includes:

计算所述待比较区域中的各个视频数据和所述目标视频数据的相似度;Calculate the similarity between each video data in the to-be-compared area and the target video data;

确定计算的各个所述相似度是否存在大于相似阈值的相似度;determining whether each of the calculated similarities has a similarity greater than a similarity threshold;

若存在,则判定所述相似度大于所述相似阈值的视频数据与所述目标视频数据相似,并进入获取与所述目标视频数据相似的视频数据在上一帧的所述视频数据中的第二目标位置的步骤;If it exists, determine that the video data with the similarity greater than the similarity threshold is similar to the target video data, and enter the first step of obtaining the video data similar to the target video data in the video data of the previous frame. 2. the steps of the target location;

若不存在,则判定所述待比较区域中不存在与所述目标视频数据相似的视频数据。If not, it is determined that there is no video data similar to the target video data in the to-be-compared area.

优选地,所述目标视频数据为目标像素点;计算所述待比较区域中的各个视频数据和所述目标视频数据的相似度,包括:Preferably, the target video data is a target pixel; calculating the similarity between each video data in the to-be-compared area and the target video data, including:

计算所述待比较区域中的各个像素点与所述目标像素点的相似度。Calculate the similarity between each pixel in the to-be-compared area and the target pixel.

为解决上述技术问题,本申请还提供了一种视频压缩系统,包括:In order to solve the above-mentioned technical problems, the present application also provides a video compression system, including:

视频数据接收单元,用于接收当前帧的块视频数据;a video data receiving unit for receiving the block video data of the current frame;

区域确定单元,用于根据当前帧的所述块视频数据中目标视频数据的第一目标位置确定与当前帧的块视频数据对应的上一帧的块视频数据中与所述第一目标位置对应的待比较区域;A region determination unit, configured to determine the block video data of the previous frame corresponding to the block video data of the current frame according to the first target position of the target video data in the block video data of the current frame, which corresponds to the first target position the area to be compared;

相似数据确定单元,用于确定所述待比较区域的视频数据中是否存在与所述目标视频数据相似的视频数据;a similar data determination unit, configured to determine whether there is video data similar to the target video data in the video data of the area to be compared;

位置确定单元,用于在所述待比较区域的视频数据中存在与所述目标视频数据相似的视频数据时,获取与所述目标视频数据相似的视频数据在上一帧的所述视频数据中的第二目标位置,并生成重复标志信息,以根据所述第二目标位置及重复标志信息不对所述目标视频数据进行转换及视频压缩;A position determination unit, configured to obtain video data similar to the target video data in the video data of the previous frame when there is video data similar to the target video data in the video data of the area to be compared the second target position, and generate repetition mark information, to not carry out conversion and video compression to the target video data according to the second target position and the repetition mark information;

数据发送单元,用于将所述第二目标位置及所述重复标志信息发送至视频显示装置,以使所述视频显示装置调用所述第二目标位置的视频数据作为目标视频数据并进行显示。A data sending unit, configured to send the second target position and the repetition flag information to a video display device, so that the video display device calls the video data of the second target position as target video data and displays it.

为解决上述技术问题,本申请还提供了一种视频压缩装置,包括:In order to solve the above-mentioned technical problems, the present application also provides a video compression device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于在存储计算机程序时,实现如上述所述的视频压缩方法的步骤。The processor is configured to implement the steps of the above-mentioned video compression method when the computer program is stored.

为解决上述技术问题,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述所述的视频压缩方法的步骤。In order to solve the above technical problems, the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the video compression method as described above is implemented A step of.

本申请提供了一种视频压缩方法,涉及数据处理领域。该方案中,在上一帧视频数据中与第一目标位置对应的待比较区域存在与当前帧视频数据中第一目标位置的目标视频数据相似的视频数据时,将相似的视频数据第二目标位置并生成重复标志信息,以根据第二目标位置及重复标志信息不对目标视频数据进行转换及视频压缩,视频显示装置则可直接调用第二目标位置的视频数据作为目标视频数据进行显示即可,在服务器主机端视频画面的变化很小或者视频画面不发生变化时,可以大大减少格式转换、视频压缩及传输的数据量,进而减小了基板管理控制芯片的处理量和功耗。The present application provides a video compression method, which relates to the field of data processing. In this scheme, when there is video data similar to the target video data of the first target position in the video data of the current frame in the to-be-compared area corresponding to the first target position in the video data of the previous frame, the similar video data is set to the second target position. position and generate repeating mark information, so as not to convert and compress the target video data according to the second target position and the repeating mark information, the video display device can directly call the video data of the second target position to display as the target video data, When the change of the video picture on the server host side is small or the video picture does not change, the data volume of format conversion, video compression and transmission can be greatly reduced, thereby reducing the processing volume and power consumption of the baseboard management control chip.

本申请还提供了一种视频压缩系统、装置及可读存储介质,与上述描述的视频压缩方法具有相同的有益效果。The present application also provides a video compression system, device and readable storage medium, which have the same beneficial effects as the video compression method described above.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the prior art and the accompanying drawings required in the embodiments. 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为现有技术中一种视频压缩的结构框图;Fig. 1 is a structural block diagram of a video compression in the prior art;

图2为现有技术中的一种块视频数据的分解示意图;Fig. 2 is the decomposition schematic diagram of a kind of block video data in the prior art;

图3为本申请提供的一种视频压缩方法的流程示意图;3 is a schematic flowchart of a video compression method provided by the application;

图4为本申请提供的一种视频压缩的系统框图;4 is a system block diagram of a video compression provided by the application;

图5为本申请提供的一种待比较区域的示意图;5 is a schematic diagram of a region to be compared provided by the present application;

图6为本申请提供的一种RGB视频数据的分解示意图;Fig. 6 is the decomposition schematic diagram of a kind of RGB video data provided by this application;

图7为本申请提供的一种视频压缩系统的结构框图;7 is a structural block diagram of a video compression system provided by the application;

图8为本申请提供的一种视频压缩装置的结构框图。FIG. 8 is a structural block diagram of a video compression apparatus provided by the present application.

具体实施方式Detailed ways

本申请的核心是提供一种视频压缩方法、系统、装置及可读存储介质,在服务器主机端视频画面的变化很小或者视频画面不发生变化时,可以大大减少格式转换、压缩及传输的数据量,进而减小了基板管理控制芯片的处理量和功耗。The core of this application is to provide a video compression method, system, device and readable storage medium, which can greatly reduce the data for format conversion, compression and transmission when the change of the video picture on the server host side is small or the video picture does not change. Therefore, the processing capacity and power consumption of the baseboard management control chip are reduced.

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

首先对现有技术中BLOCK模式传输视频数据的具体方式进行描述:具体请参照图2,图2为现有技术中的一种块视频数据的分解示意图。其中,图2中右侧的每一个小方框表示图2中左侧的8*8像素点,图2中右侧的大方框表示16*16像素点,长方框是8*16像素点。Cb为U分量,Cr为V分量。First, the specific manner of transmitting video data in the BLOCK mode in the prior art is described: for details, please refer to FIG. 2 , which is a schematic exploded view of a block video data in the prior art. Among them, each small box on the right side in Figure 2 represents 8*8 pixels on the left side in Figure 2, the large box on the right side in Figure 2 represents 16*16 pixels, and the long box is 8*16 pixels . Cb is the U component, and Cr is the V component.

以YUV420举例,Y块表示4个8*8像素点的Y分量,Cb块表示1个8*8块的U分量,Cr块表示1个8*8块的V分量。Taking YUV420 as an example, the Y block represents the Y component of four 8*8 pixels, the Cb block represents the U component of one 8*8 block, and the Cr block represents the V component of one 8*8 block.

详细的视频数据处理流程为:VGA将原始视频数据写入DDR(双倍速率同步动态随机存储器)的地址空间,比如设定从地址0x1000_0000到0x2000_0000的空间,然后在写到尾空间后,写指针再重新从0x1000_0000开始写。后级要及时读走DDR中已写入的原始视频数据,避免DDR的地址空间中的原始视频数据未被读取就被覆盖。然后经过色彩空间转换模块进行色彩空间转换,将原始视频数据从RGB格式转换为YUV格式。然后将Y、U、V数据用片内的存储资源进行缓存(缓存至FIFO),按照BLOCK格式转换的需求,需要16个Y_FIFO,16个U_FIFO,16个V_FIFO组成的FIFO阵列,现有技术中,BLOCK_CONVERT(BLOCK转换模块)接收视频压缩模块发出的读数据的控制信息,值得注意的是,BLOCK转换模块不关心视频压缩模块发出的读地址,而是BLOCK转换模块自身产生读写控制逻辑。The detailed video data processing flow is: VGA writes the original video data into the address space of DDR (Double Rate Synchronous Dynamic Random Access Memory), for example, set the space from address 0x1000_0000 to 0x2000_0000, and then write the pointer after writing to the tail space. Then start writing again from 0x1000_0000. The post-stage should read the original video data written in the DDR in time to avoid the original video data in the address space of the DDR from being overwritten without being read. Then the color space conversion module performs color space conversion to convert the original video data from RGB format to YUV format. Then, the Y, U, V data are buffered (buffered to FIFO) with on-chip storage resources. According to the requirements of BLOCK format conversion, a FIFO array composed of 16 Y_FIFOs, 16 U_FIFOs, and 16 V_FIFOs is required. In the prior art , BLOCK_CONVERT (BLOCK conversion module) receives the control information of the read data sent by the video compression module. It is worth noting that the BLOCK conversion module does not care about the read address sent by the video compression module, but the BLOCK conversion module itself generates read and write control logic.

具体地,YUV写逻辑为:在YUV420模式下,(保留全部的Y数据,保留偶数行偶数列的U/V数据);Specifically, the YUV write logic is: in YUV420 mode, (retain all Y data, retain U/V data in even rows and even columns);

将第0/16/32/48…行的Y数据写进Y_FIFO_0;Write the Y data of row 0/16/32/48... into Y_FIFO_0;

将第1/17/33/49…行的Y数据写进Y_FIFO_1;Write the Y data of line 1/17/33/49... into Y_FIFO_1;

将第2/18/34/50…行的Y数据写进Y_FIFO_2;Write the Y data of line 2/18/34/50... into Y_FIFO_2;

……...

第15/31/47/63…行的Y数据写进Y_FIFO_15。The Y data of line 15/31/47/63... is written into Y_FIFO_15.

将第0/16/32/48…行的偶数列U数据写进U_FIFO_0;Write the even column U data of row 0/16/32/48... into U_FIFO_0;

将第2/18/34/50…行的偶数列U数据写进U_FIFO_1;Write the even column U data of row 2/18/34/50... into U_FIFO_1;

……...

将第14/30/46/62…行的偶数列U数据写进U_FIFO_7。Write even column U data of row 14/30/46/62... into U_FIFO_7.

将第0/16/32/48…行的偶数列U数据写进V_FIFO_0;Write the even column U data of row 0/16/32/48... into V_FIFO_0;

将第2/18/34/50…行的偶数列U数据写进V_FIFO_1;Write the even column U data of row 2/18/34/50... into V_FIFO_1;

……...

将第14/30/46/62…行的偶数列U数据写进V_FIFO_7。Write even column U data of row 14/30/46/62... into V_FIFO_7.

在YUV422模式下,(保留全部的Y数据,保留偶数列的U/V数据);In YUV422 mode, (retain all Y data, retain U/V data of even columns);

将第0/16/32/48…行的Y数据写进Y_FIFO_0;Write the Y data of row 0/16/32/48... into Y_FIFO_0;

将第1/17/33/49…行的Y数据写进Y_FIFO_1;Write the Y data of line 1/17/33/49... into Y_FIFO_1;

将第2/18/34/50…行的Y数据写进Y_FIFO_2;Write the Y data of line 2/18/34/50... into Y_FIFO_2;

……...

将第15/31/47/63…行的Y数据写进Y_FIFO_15。Write the Y data of lines 15/31/47/63... into Y_FIFO_15.

将第0/16/32/48…行的偶数列U数据写进U_FIFO_0;Write the even column U data of row 0/16/32/48... into U_FIFO_0;

将第1/17/33/49…行的偶数列U数据写进U_FIFO_1;Write the even column U data of row 1/17/33/49... into U_FIFO_1;

将第2/18/34/50…行的偶数列U数据写进U_FIFO_2;Write the even column U data of row 2/18/34/50... into U_FIFO_2;

……...

将第15/31/47/63…行偶数列的U数据写进U_FIFO_15。Write the U data of the 15/31/47/63... rows and even columns into U_FIFO_15.

将第0/16/32/48…行的偶数列V数据写进V_FIFO_0;Write the even column V data of row 0/16/32/48... into V_FIFO_0;

将第1/17/33/49…行的偶数列V数据写进V_FIFO_1;Write the even column V data of row 1/17/33/49... into V_FIFO_1;

将第2/18/34/50…行的偶数列V数据写进V_FIFO_2;Write the even column V data of row 2/18/34/50... into V_FIFO_2;

……...

将第15/31/47/63…行偶数列的V数据写进V_FIFO_15。Write the V data of the 15/31/47/63... rows and even columns into V_FIFO_15.

在YUV444模式下,(保留全部行全部列的Y/U/V数据);In YUV444 mode, (retain Y/U/V data of all rows and all columns);

将第0/8/16/24…行的Y数据写进Y_FIFO_0;Write the Y data of row 0/8/16/24... into Y_FIFO_0;

将第1/9/17/25…行的Y数据写进Y_FIFO_1;Write the Y data of row 1/9/17/25... into Y_FIFO_1;

将第2/10/18/26…行的Y数据写进Y_FIFO_2;Write the Y data of line 2/10/18/26... into Y_FIFO_2;

……...

将第7/15/23/31…行的Y数据写进Y_FIFO_7。Write the Y data of lines 7/15/23/31... into Y_FIFO_7.

将第0/8/16/24…行的U数据写进U_FIFO_0;Write the U data of row 0/8/16/24... into U_FIFO_0;

将第1/9/17/25…行的U数据写进U_FIFO_1;Write the U data of lines 1/9/17/25... into U_FIFO_1;

将第2/10/18/26…行的U数据写进U_FIFO_2;Write the U data of line 2/10/18/26... into U_FIFO_2;

……...

将第7/15/23/31…行的U数据写进U_FIFO_7。Write the U data of lines 7/15/23/31... into U_FIFO_7.

将第0/8/16/24…行的V数据写进V_FIFO_0;Write the V data of row 0/8/16/24... into V_FIFO_0;

将第1/9/17/25…行的V数据写进V_FIFO_1;Write the V data of row 1/9/17/25... into V_FIFO_1;

将第2/10/18/26…行的V数据写进V_FIFO_2;Write the V data of row 2/10/18/26... into V_FIFO_2;

……...

将第7/15/23/31…行的V数据写进V_FIFO_7。Write the V data of lines 7/15/23/31... into V_FIFO_7.

具体地,YUV读逻辑为:在YUV420模式下,FIFO队列不关心视频压缩模块发出的读地址,而只关心视频压缩模块发出的读使能,依次去读16次Y_FIFO_0,16次Y_FIFO_1……16次Y_FIFO_15。8次U_FIFO_0,8次U_FIFO_1,8次U_FIFO_7,8次V_FIFO_0,8次V_FIFO_1,8次V_FIFO_7,然后依次循环。Specifically, the YUV read logic is: in YUV420 mode, the FIFO queue does not care about the read address issued by the video compression module, but only cares about the read enable issued by the video compression module, and reads Y_FIFO_0 16 times, Y_FIFO_1 16 times...16 Times Y_FIFO_15. 8 times U_FIFO_0, 8 times U_FIFO_1, 8 times U_FIFO_7, 8 times V_FIFO_0, 8 times V_FIFO_1, 8 times V_FIFO_7, and then cycle in turn.

在YUV422模式下,FIFO队列不关心视频压缩模块发出的读地址,而只关心视频压缩模块发出的读使能,依次去读16次Y_FIFO_0,16次Y_FIFO_1……16次Y_FIFO_15,8次U_FIFO_0,8次U_FIFO_1,……8次U_FIFO_15,8次V_FIFO_0,8次V_FIFO_1,……8次V_FIFO_15。In YUV422 mode, the FIFO queue does not care about the read address issued by the video compression module, but only cares about the read enable issued by the video compression module, and reads Y_FIFO_0, 16 times, Y_FIFO_1, 16 times, Y_FIFO_15, 8 times, U_FIFO_0, 8 in turn. Times U_FIFO_1, ... 8 times U_FIFO_15, 8 times V_FIFO_0, 8 times V_FIFO_1, ... 8 times V_FIFO_15.

在YUV444模式下,FIFO队列不关心视频压缩模块发出的读地址,而只关心视频压缩模块发出的读使能,依次去读8次Y_FIFO_0,8次Y_FIFO_1……8次Y_FIFO_7。8次U_FIFO_0,8次U_FIFO_1,8次U_FIFO_7,8次V_FIFO_0,8次V_FIFO_1,8次V_FIFO_7。In YUV444 mode, the FIFO queue does not care about the read address issued by the video compression module, but only cares about the read enable issued by the video compression module, and reads Y_FIFO_0, 8 Y_FIFO_1...8 times Y_FIFO_7 in turn. 8 times U_FIFO_0, 8 U_FIFO_1 times, 8 times U_FIFO_7, 8 times V_FIFO_0, 8 times V_FIFO_1, 8 times V_FIFO_7.

可见,服务器主机端视频画面的变化很小或者视频画面不发生变化的可能性是很大的(尤其是监控场景下),但现有技术中针对上述情况,依旧会对不发生变化或者发生变化很小的视频数据全部进行色彩空间转换及视频压缩的处理,此时相当于处理了很多的重复数据,导致基板管理控制芯片的处理量较大,功耗较大。It can be seen that there is a high possibility that the video picture on the server host side changes very little or the video picture does not change (especially in the monitoring scenario). All the very small video data is processed by color space conversion and video compression, which is equivalent to processing a lot of repeated data, resulting in a large processing capacity and high power consumption of the baseboard management control chip.

请参照图3和图4,图3为本申请提供的一种视频压缩方法的流程示意图,图4为本申请提供的一种视频压缩的系统框图,该方法包括:Please refer to FIG. 3 and FIG. 4. FIG. 3 is a schematic flowchart of a video compression method provided by the application, and FIG. 4 is a system block diagram of a video compression provided by the application. The method includes:

S31:接收当前帧的块视频数据;S31: Receive block video data of the current frame;

S32:根据当前帧的块视频数据中目标视频数据的第一目标位置确定与当前帧的块视频数据对应的上一帧的块视频数据中与第一目标位置对应的待比较区域;S32: Determine the area to be compared corresponding to the first target position in the block video data of the previous frame corresponding to the block video data of the current frame according to the first target position of the target video data in the block video data of the current frame;

由于需要判断当前帧的块视频数据和上一帧的块视频数据对应的画面是否完全相同,或者其画面的变化是否较小。因此,本申请中在接收到当前帧的块视频数据时,需要先确定需要比较的当前帧的块视频数据中目标视频数据对应的第一目标位置,然后根据此第一目标位置确定上一帧的块视频数据中与第一目标位置对应的待比较区域,以将当前帧的块视频数据和上一帧的块视频数据进行比较。It is necessary to judge whether the pictures corresponding to the block video data of the current frame and the block video data of the previous frame are exactly the same, or whether the changes of the pictures are small. Therefore, in the present application, when the block video data of the current frame is received, it is necessary to first determine the first target position corresponding to the target video data in the block video data of the current frame to be compared, and then determine the previous frame according to the first target position. The to-be-compared area corresponding to the first target position in the block video data of , to compare the block video data of the current frame with the block video data of the previous frame.

需要说明的是,本申请中并不是直接将当前帧的块视频数据中的第一目标位置对应的目标视频数据与上一帧的块视频数据的第一目标位置中的视频数据进行比较,而是将当前帧的块视频数据中的第一目标位置对应的目标视频数据与上一帧的块视频数据中与第一目标位置对应的待比较区域的视频数据进行比较,其目的为:不仅判断当前帧的视频画面与上一帧的视频画面是否相同,还判断其是否相似,从而在后续可以进一步减少对视频数据进行转换和压缩的数据量,减小芯片的处理量。It should be noted that, in this application, the target video data corresponding to the first target position in the block video data of the current frame is not directly compared with the video data in the first target position of the block video data of the previous frame, and It is to compare the target video data corresponding to the first target position in the block video data of the current frame with the video data of the region to be compared corresponding to the first target position in the block video data of the previous frame, and its purpose is: not only to judge Whether the video picture of the current frame is the same as the video picture of the previous frame is also judged whether they are similar, so that the amount of data for converting and compressing the video data can be further reduced and the processing amount of the chip can be reduced.

作为一种优选的实施例,根据当前帧的块视频数据中目标视频数据的第一目标位置确定与当前帧的块视频数据对应的上一帧的块视频数据中与第一目标位置对应的待比较区域,包括:As a preferred embodiment, the block video data of the previous frame corresponding to the block video data of the current frame is determined according to the first target position of the target video data in the block video data of the current frame, which corresponds to the first target position. Compare areas, including:

确定与当前帧的块视频数据对应的上一帧的块视频数据;Determine the block video data of the previous frame corresponding to the block video data of the current frame;

将上一帧的块视频数据中以第一目标位置为中心的预设范围内的区域划分为待比较区域。A region within a preset range centered on the first target position in the block video data of the previous frame is divided into regions to be compared.

本实施例旨在限定一种确定待比较区域的具体实现方式,具体地,考虑到视频画面的变化较小时,通常只在某个范围内进行变化,例如,由于摄像头抖动引起的监控画面微变等,此时与目标视频数据相似或者相同的视频数据通常在以第一目标位置为中心的某个区域内。This embodiment aims to limit a specific implementation manner of determining the area to be compared. Specifically, considering that the change of the video picture is small, the change is usually only performed within a certain range. For example, the monitoring picture changes slightly due to camera shake. etc. At this time, the video data similar to or the same as the target video data is usually in a certain area centered on the first target position.

因此,本申请中将上一帧的块视频数据中以第一目标位置为中心的预设范围内的区域划分为待比较区域。Therefore, in the present application, an area within a preset range centered on the first target position in the block video data of the previous frame is divided into an area to be compared.

其中,此待比较区域可以为以第一目标位置为中心且半径为预设长度的范围,也可以为以第一目标位置为中心且包括预设个像素点的区域的范围等,本申请在此不做限定。Wherein, the area to be compared may be a range centered on the first target position and a radius of a preset length, or may be a range centered on the first target position and including a preset number of pixels, etc. This is not limited.

作为一种优选的实施例,目标视频数据为目标像素点;As a preferred embodiment, the target video data is a target pixel;

将上一帧的块视频数据中以第一目标位置为中心的预设范围内的区域划分为待比较区域,包括:Divide the area within the preset range centered on the first target position in the block video data of the previous frame into the area to be compared, including:

将上一帧的块视频数据中以第一目标位置为中心的米字型结构或N*N宫格结构所构成的区域划分为待比较区域;In the block video data of the previous frame, the area formed by the rice-shaped structure or the N*N palace lattice structure centered on the first target position is divided into the area to be compared;

第一目标位置与待比较区域的任意边沿连接经过的像素点个数不超过预设个数,N为不小于3的整数。The number of pixels passing through the connection between the first target position and any edge of the area to be compared does not exceed the preset number, and N is an integer not less than 3.

本实施例旨在限定待比较区域的具体实现方式,具体地,在目标视频数据为目标像素点时,本申请中的待比较区域可以为以第一目标位置为中心的米字型结构构成的区域,或者是以第一目标位置为中心的N*N宫格结构构成的区域。在一具体实施例中,待比较区域中包括9个像素点,且以目标像素点为中心。具体可参照图5,图5为本申请提供的一种待比较区域的示意图。This embodiment aims to limit the specific implementation of the area to be compared. Specifically, when the target video data is the target pixel point, the area to be compared in this application may be formed of a rice-shaped structure centered on the first target position. area, or an area composed of an N*N grid structure centered on the first target position. In a specific embodiment, the to-be-compared area includes 9 pixel points, and is centered on the target pixel point. For details, please refer to FIG. 5 , which is a schematic diagram of a region to be compared provided by the present application.

S33:确定待比较区域的视频数据中是否存在与目标视频数据相似的视频数据;S33: determine whether there is video data similar to the target video data in the video data of the area to be compared;

S34:若存在,则获取与目标视频数据相似的视频数据在上一帧的视频数据中的第二目标位置以根据第二目标位置及重复标志信息不对目标视频数据进行转换及视频压缩;S34: if there is, then obtain the second target position of the video data similar to the target video data in the video data of the previous frame so as not to convert the target video data and compress the video according to the second target position and the repetition mark information;

具体地,在上述确定待比较区域之后,确定待比较区域中的视频数据是否存在与目标视频数据相似的视频数据,若存在,则表示当前帧的视频数据与上一帧的视频数据对应的画面相同或者画面变化较小。具体地,在当前帧的第一目标位置的视频数据与上一帧的第一目标位置的视频数据相同时,表示两帧的视频画面相同,也即,视频画面没有发生变化。在当前帧的第一目标位置的视频数据与上一帧的待比较区域中除第一目标位置之外的其他位置的视频数据相似时,表示两帧的视频画面相似,也即,视频画面发生的变化较小。Specifically, after determining the area to be compared, it is determined whether the video data in the area to be compared has video data similar to the target video data, and if so, it means that the video data of the current frame corresponds to the video data of the previous frame. The same or the screen changes less. Specifically, when the video data of the first target position of the current frame is the same as the video data of the first target position of the previous frame, it means that the video pictures of the two frames are the same, that is, the video pictures have not changed. When the video data of the first target position of the current frame is similar to the video data of other positions except the first target position in the to-be-compared area of the previous frame, it indicates that the video pictures of the two frames are similar, that is, the video picture occurs. changes are small.

具体地,在上述待比较区域中的视频数据中存在与第一目标位置的视频数据相似的视频数据时,获取该相似的视频数据的第二目标位置,以便后续基于此第二目标位置对当前帧的视频数据进行处理。Specifically, when there is video data similar to the video data of the first target position in the video data in the above-mentioned area to be compared, obtain the second target position of the similar video data, so that the current frame of video data for processing.

作为一种优选的实施例,将上一帧的块视频数据中以第一目标位置为中心的米字型结构或N*N宫格结构所构成的区域划分为待比较区域之后,还包括:As a preferred embodiment, after dividing the area formed by the m-shaped structure or the N*N grid structure centered on the first target position in the block video data of the previous frame into the area to be compared, it also includes:

为待比较区域中的各个像素点设定一一对应的坐标;Set one-to-one corresponding coordinates for each pixel in the area to be compared;

获取与目标视频数据相似的视频数据在上一帧的视频数据中的第二目标位置,包括:Obtain the second target position of video data similar to the target video data in the video data of the previous frame, including:

获取与目标像素点相似的像素点在上一帧的视频数据中的坐标。Get the coordinates of the pixels similar to the target pixel in the video data of the previous frame.

具体地,在上述目标视频数据为目标像素点且待比较区域为以第一目标位置为中心的米字型结构或N*N宫格结构所构成的区域时,待比较区域中包括若干个以第一目标位置为中心的像素点。此时,本申请中为待比较区域中的每个像素点设置一一对应的坐标,具体可参照图5,图5中,目标像素点的坐标为(1,1),相邻的像素点作为待比较区域,具体在图5中表示为(0,0)至(2,2)。Specifically, when the above-mentioned target video data is the target pixel point and the area to be compared is an area formed by a m-shaped structure or an N*N grid structure centered on the first target position, the area to be compared includes several The first target position is the center pixel. At this time, in this application, a one-to-one correspondence is set for each pixel in the area to be compared. For details, please refer to Figure 5. In Figure 5, the coordinates of the target pixel are (1, 1), and the adjacent pixels As the region to be compared, it is specifically represented as (0,0) to (2,2) in FIG. 5 .

作为一种优选的实施例,坐标包括横坐标和纵坐标。此时,获取与目标视频数据相似的视频数据在上一帧的视频数据中的第二目标位置的具体方式为:获取与目标视频数据相似的视频数据在待比较区域中的坐标(其具体可以为横坐标和纵坐标)。As a preferred embodiment, the coordinates include abscissa and ordinate. At this time, the specific method of obtaining the second target position of the video data similar to the target video data in the video data of the previous frame is: obtaining the coordinates of the video data similar to the target video data in the to-be-compared area (which may specifically be as abscissa and ordinate).

作为一种优选的实施例,确定待比较区域的视频数据中是否存在与目标视频数据相似的视频数据,包括:As a preferred embodiment, determining whether there is video data similar to the target video data in the video data of the area to be compared includes:

计算待比较区域中的各个视频数据和目标视频数据的相似度;Calculate the similarity of each video data in the area to be compared and the target video data;

确定计算的各个相似度是否存在大于相似阈值的相似度;Determine whether each calculated similarity has a similarity greater than a similarity threshold;

若存在,则判定相似度大于相似阈值的视频数据与目标视频数据相似,并进入获取与目标视频数据相似的视频数据在上一帧的视频数据中的第二目标位置的步骤;If there is, then determine that the video data whose similarity is greater than the similarity threshold is similar to the target video data, and enter the step of obtaining the second target position of the video data similar to the target video data in the video data of the previous frame;

若不存在,则判定待比较区域中不存在与目标视频数据相似的视频数据。If not, it is determined that there is no video data similar to the target video data in the area to be compared.

具体地,本申请旨在限定确定待比较区域的视频数据中是否存在与目标视频数据相似的视频数据的具体实现方式。首先,计算待比较区域中的各个视频数据和目标视频数据的相似度,并在各个相似度中存在大于相似阈值的相似度时,判定二者对应的视频数据相似,此时,获取相似度大于相似阈值对应的视频数据的第二目标位置,以便后续基于第二目标位置对视频数据进行处理。Specifically, the present application aims to define a specific implementation manner of determining whether there is video data similar to the target video data in the video data of the area to be compared. First, the similarity between each video data in the area to be compared and the target video data is calculated, and when there is a similarity greater than the similarity threshold in each similarity, it is determined that the corresponding video data of the two are similar. At this time, the obtained similarity is greater than The second target position of the video data corresponding to the similarity threshold, so that the video data can be subsequently processed based on the second target position.

作为一种优选的实施例,目标视频数据为目标像素点;计算待比较区域中的各个视频数据和目标视频数据的相似度,包括:As a preferred embodiment, the target video data is the target pixel point; calculating the similarity between each video data in the area to be compared and the target video data, including:

计算待比较区域中的各个像素点与目标像素点的相似度。Calculate the similarity between each pixel in the area to be compared and the target pixel.

具体地,本申请中计算相似度的具体方式为:计算待比较区域中各个像素点的像素值和目标像素点的像素值之间的相似度。具体地,相似阈值可以但不限于为90%。Specifically, the specific method for calculating the similarity in this application is: calculating the similarity between the pixel value of each pixel point in the area to be compared and the pixel value of the target pixel point. Specifically, the similarity threshold may be, but not limited to, 90%.

S15:将第二目标位置及重复标志信息发送至视频显示装置,以使视频显示装置调用第二目标位置的视频数据作为目标视频数据并进行显示。S15: Send the second target position and the repetition flag information to the video display device, so that the video display device calls the video data of the second target position as the target video data and displays it.

在上述获取到相似的视频数据对应的第二目标位置之后,还生成重复标志信息,并将第二目标位置和重复标志信息发送至视频显示装置,其中,重复标志信息和第二目标位置的格式可以为32位,其具体可以为:{16’HFFFFFFFF,8’Hx,8’Hy},其中,16’HFFFFFFFF为重复标志信息,8’Hx 为第二目标位置的横坐标,8’Hx为第二目标位置的纵坐标。第二目标位置具体即图5中的(0,0)、(2,1)等。此时被标记为相似的视频数据将不再进行色彩空间转换和视频压缩的步骤,而是直接从视频压缩对应的缓存中根据第二目标位置的位置信息,直接从上一帧的压缩结果缓存中获得压缩数据即可。视频显示装置也直接从上一帧的显示画面中调取与第二目标位置对应的视频数据,并直接对其进行显示即可。After the above-mentioned acquisition of the second target position corresponding to the similar video data, the repetition mark information is also generated, and the second target position and the repetition mark information are sent to the video display device, wherein the format of the repetition mark information and the second target position It can be 32 bits, which can be specifically: {16'HFFFFFFFF, 8'Hx, 8'Hy}, where 16'HFFFFFFFF is the repetition flag information, 8'Hx is the abscissa of the second target position, and 8'Hx is The ordinate of the second target position. Specifically, the second target position is (0, 0), (2, 1) and the like in FIG. 5 . At this time, the video data marked as similar will no longer undergo the steps of color space conversion and video compression, but will be directly cached from the compression result of the previous frame according to the position information of the second target position in the cache corresponding to the video compression. to obtain compressed data. The video display device can also directly retrieve the video data corresponding to the second target position from the display image of the previous frame, and directly display it.

通过本申请中的方式,在视频画面相同或者变化较小的情况下,可以减少对视频数据进行色彩空间转换及视频压缩处理的工作量,此外,模块之间传输的数据也由原来的视频数据替换为重复标志信息和第二目标位置,相比之下,还减小了传输的数据量。With the method in this application, in the case of the same video picture or small changes, the workload of performing color space conversion and video compression processing on video data can be reduced. Instead of repeating the flag information and the second destination position, the amount of data transferred is also reduced by comparison.

在上述实施例的基础上:On the basis of the above-mentioned embodiment:

作为一种优选的实施例,确定待比较区域的视频数据中是否存在与目标视频数据相似的视频数据之后,还包括:As a preferred embodiment, after determining whether there is video data similar to the target video data in the video data of the area to be compared, the method further includes:

若不存在,则对当前帧的块视频数据进行色彩空间转换以将当前帧的块视频数据由RGB格式转换为YUV格式;If it does not exist, then perform color space conversion on the block video data of the current frame to convert the block video data of the current frame from RGB format to YUV format;

对YUV格式的当前帧的块视频数据进行压缩,得到当前帧的压缩视频数据;Compress the block video data of the current frame in the YUV format to obtain the compressed video data of the current frame;

将当前帧的压缩视频数据发送至视频显示装置,以显示对应的视频画面。Send the compressed video data of the current frame to the video display device to display the corresponding video picture.

具体地,在上述确定待比较区域中的视频数据中不存在与目标视频数据相似的视频数据时,判定当前帧的块视频数据与上一帧的块视频数据既不相同也不相似,也即对应的视频画面完全不同或者变化较大。此时,对当前帧的块视频数据进行普通的处理流程。其具体为:对当前帧的块视频数据进行色彩空间转换处理,以将其由RGB格式转换为YUV格式,再对YUV格式的当前帧的块视频数据进行压缩处理,以得到当前帧的压缩视频数据,并可以对当前帧的压缩视频数据进行存储,具体可存储至图4中的存储模块中,在视频显示装置需要对其进行显示时,对存储模块进行读取,将其通过EMAC传输至视频显示装置,以显示对应的视频画面。Specifically, when it is determined that there is no video data similar to the target video data in the video data in the area to be compared, it is determined that the block video data of the current frame is neither the same nor similar to the block video data of the previous frame, that is, The corresponding video images are completely different or vary greatly. At this time, the normal processing flow is performed on the block video data of the current frame. Specifically, the color space conversion process is performed on the block video data of the current frame to convert it from the RGB format to the YUV format, and then the block video data of the current frame in the YUV format is compressed to obtain the compressed video of the current frame. data, and can store the compressed video data of the current frame, specifically, it can be stored in the storage module in Figure 4. When the video display device needs to display it, the storage module is read, and it is transmitted through EMAC to A video display device to display a corresponding video picture.

此外,还需要说明的是,上述描述的当前帧的块视频数据和上一帧的块视频数据均为RGB视频数据。其在视频数据传输过程中, 当前帧的块视频数据存储至图4中的RGBFIFO队列中,上一帧的块视频数据存储至图4中的RGB缓存中,由图4中的比较模块分别对RGB FIFO队列和RGB缓存进行读取,以获取当前帧的块视频数据和上一帧的块视频数据,然后对两帧块视频数据进行比较。In addition, it should also be noted that the block video data of the current frame and the block video data of the previous frame described above are both RGB video data. In the process of video data transmission, the block video data of the current frame is stored in the RGBFIFO queue in FIG. 4, the block video data of the previous frame is stored in the RGB buffer in FIG. 4, and the comparison modules in FIG. The RGB FIFO queue and the RGB buffer are read to obtain the block video data of the current frame and the block video data of the previous frame, and then compare the block video data of the two frames.

作为一种优选的实施例,当前帧的块视频数据为16*16的块视频数据.As a preferred embodiment, the block video data of the current frame is 16*16 block video data.

具体地,本申请中当前帧的块视频数据为16*16的块视频数据。也即是按照16*16的尺寸读取RGB原始块数据,对于不同的压缩格式(YUV444/YUV422/YUV420)下,视频压缩对YUV格式的块视频数据的要求是不同的,因此需要先对Y/U/V分量的视频数据进行缓存。Specifically, the block video data of the current frame in this application is 16*16 block video data. That is to say, the RGB original block data is read according to the size of 16*16. For different compression formats (YUV444/YUV422/YUV420), video compression has different requirements for block video data in YUV format. /U/V component video data is buffered.

请参照图6,图6为本申请提供的一种RGB视频数据的分解示意图。将16*16的块视频数据分解为Y分量、U分量和V分量,并将Y分量、U分量和V分量分别划分为4部分,每部分的尺寸为8*8。Please refer to FIG. 6 , which is a schematic exploded view of RGB video data provided by the present application. The 16*16 block video data is decomposed into Y component, U component and V component, and the Y component, U component and V component are divided into 4 parts respectively, and the size of each part is 8*8.

作为一种优选的实施例,对YUV格式的当前帧的块视频数据进行压缩,得到当前帧的压缩视频数据,包括:As a preferred embodiment, the block video data of the current frame in the YUV format is compressed to obtain the compressed video data of the current frame, including:

在YUV420模式下,先接收16*16的Y分量并进行压缩,并对8*8的U分量及8*8的V分量进行缓存;In YUV420 mode, the 16*16 Y component is first received and compressed, and the 8*8 U component and the 8*8 V component are cached;

在16*16的 Y分量压缩完成之后,依次接收8*8的U分量和8*8的V分量并依次进行压缩。After the compression of the 16*16 Y component is completed, the 8*8 U component and the 8*8 V component are sequentially received and compressed in sequence.

具体的,以图4中的各个虚拟模块为执行主体进行描述,即为:在视频压缩模块为YUV420模式下,先将16*16的Y分量发送至视频压缩模块,并将8*8的U分量存储至U分量缓存模块及将8*8的V分量存储至V分量缓存模块;在16*16的 Y分量发送完成之后,依次将8*8的U分量和8*8的V分量发送视频压缩模块。Specifically, each virtual module in FIG. 4 is used as the execution subject for description, that is: when the video compression module is in the YUV420 mode, the 16*16 Y component is first sent to the video compression module, and the 8*8 U component is sent to the video compression module. The component is stored in the U component buffer module and the 8*8 V component is stored in the V component buffer module; after the 16*16 Y component is sent, the 8*8 U component and the 8*8 V component are sent to the video in turn Compression module.

具体地,在YUV420压缩格式下:将当前帧的块视频数据经过色彩空间转换之后,先将16*16的Y分量传递给后级的视频压缩模块。同时只保留偶数行和偶数列的U/V分量,且分别用U_BUFFER(U分量缓存模块)和V_BUFFER(V分量缓存模块)进行缓存。待Y分量传输完成后,再将U分量(8*8)传递给后级的视频压缩模块,以及将V分量(8*8)传递给后级的视频压缩模块。Specifically, in the YUV420 compression format: after the block video data of the current frame is subjected to color space conversion, the 16*16 Y component is first transmitted to the video compression module of the subsequent stage. At the same time, only the U/V components of even-numbered rows and even-numbered columns are retained, and U_BUFFER (U component buffer module) and V_BUFFER (V component buffer module) are used for buffering respectively. After the transmission of the Y component is completed, the U component (8*8) is passed to the video compression module of the subsequent stage, and the V component (8*8) is passed to the video compression module of the subsequent stage.

作为一种优选的实施例,对YUV格式的当前帧的块视频数据进行压缩,得到当前帧的压缩视频数据,包括:As a preferred embodiment, the block video data of the current frame in the YUV format is compressed to obtain the compressed video data of the current frame, including:

在YUV422模式下,先接收16*16的Y分量并进行压缩,并将16*8的U分量及16*8的V分量进行缓存;In YUV422 mode, the 16*16 Y component is first received and compressed, and the 16*8 U component and the 16*8 V component are cached;

在16*16的 Y分量压缩完成之后,依次接收16*8的U分量和16*8的V分量并依次进行压缩。After the compression of the 16*16 Y component is completed, the 16*8 U component and the 16*8 V component are sequentially received and compressed in sequence.

具体的,以图4中的各个虚拟模块为执行主体进行描述,即为:在视频压缩模块在YUV422模式下,先将16*16的Y分量发送至视频压缩模块,并将16*8的U分量存储至U分量缓存模块及将16*8的V分量存储至V分量缓存模块;在16*16的 Y分量发送完成之后,依次将16*8的U分量和16*8的V分量发送视频压缩模块。Specifically, each virtual module in FIG. 4 is used as the execution subject for description, that is: when the video compression module is in the YUV422 mode, the 16*16 Y component is first sent to the video compression module, and the 16*8 U component is sent to the video compression module. The component is stored in the U component buffer module and the 16*8 V component is stored in the V component buffer module; after the 16*16 Y component is sent, the 16*8 U component and the 16*8 V component are sent to the video in turn Compression module.

具体地,在YUV422压缩格式下:当前帧的块视频数据经过色彩空间转换之后,先将16*16的Y分量传递给后级的视频压缩模块。同时只保留偶数列的U/V分量,且分别用U_BUFFER(U分量缓存模块)和V_BUFFER(V分量缓存模块)进行缓存。待Y分量传输完成后,再将U分量(16*8)传递给后级的视频压缩模块,以及将V分量(16*8)传递给后级的视频压缩模块。Specifically, in the YUV422 compression format: after the block video data of the current frame has undergone color space conversion, the 16*16 Y component is first transmitted to the video compression module of the subsequent stage. At the same time, only the U/V components of the even-numbered columns are retained, and U_BUFFER (U component buffer module) and V_BUFFER (V component buffer module) are used for buffering respectively. After the transmission of the Y component is completed, the U component (16*8) is passed to the video compression module of the subsequent stage, and the V component (16*8) is passed to the video compression module of the subsequent stage.

作为一种优选的实施例,对所述YUV格式的当前帧的块视频数据进行压缩,得到当前帧的压缩视频数据,包括:As a preferred embodiment, the block video data of the current frame in the YUV format is compressed to obtain the compressed video data of the current frame, including:

在YUV444模式下,先接收第一组8*8的Y分量并进行压缩,并对第二组8*8的Y分量、16*16的U分量及16*16的V分量进行缓存;In YUV444 mode, the first group of 8*8 Y components is received and compressed, and the second group of 8*8 Y components, 16*16 U components and 16*16 V components are cached;

在所述第一组8*8的Y分量压缩完成之后,依次接收所述第一组8*8的U分量、第一组8*8的V分量、第二组8*8的Y分量、第二组8*8的U分量及第二组8*8的V分量并依次进行压缩。After the compression of the Y component of the first group of 8*8 is completed, the U component of the first group of 8*8, the V component of the first group of 8*8, the Y component of the second group of 8*8, The U component of the second group of 8*8 and the V component of the second group of 8*8 are compressed in sequence.

具体的,以图4中的各个虚拟模块为执行主体进行描述,即为:在视频压缩模块在YUV444模式下,先将第一组8*8的Y分量发送至视频压缩模块,并将第二组8*8的Y分量存储至Y分量缓存模块、16*16的U分量存储至U分量缓存模块及将16*16的V分量存储至V分量缓存模块;Specifically, each virtual module in FIG. 4 is used as the execution subject for description, that is: when the video compression module is in the YUV444 mode, the first group of 8*8 Y components is first sent to the video compression module, and the second The Y component of group 8*8 is stored in the Y component buffer module, the U component of 16*16 is stored in the U component buffer module, and the V component of 16*16 is stored in the V component buffer module;

在第一组8*8的Y分量发送完成之后,依次将第一组8*8的U分量、第一组8*8的V分量、第二组8*8的Y分量、第二组8*8的U分量及第二组8*8的V分量发送视频压缩模块。After the Y component of the first group of 8*8 is sent, the U component of the first group of 8*8, the V component of the first group of 8*8, the Y component of the second group of 8*8, the second group of 8 *8 U component and second group 8*8 V component send video compression module.

具体地,在YUV444压缩格式下:当前帧的块视频数据(16*16)经过色彩空间转换之后,先将第一组8*8的Y分量传递给后级的视频压缩模块。同时保留所有行和列的Y/U/V分量,且分别用Y_BUFFER/U_BUFFER和V_BUFFER进行缓存。待第一组Y分量传输完成后,再将第一组U分量(8*8)传递给后级的视频压缩模块和第一组V分量(8*8)传递给后级的视频压缩模块。然后再依次传递第2/3/4组的Y/U/V分量。Specifically, in the YUV444 compression format: after the block video data (16*16) of the current frame undergoes color space conversion, the first group of 8*8 Y components are first passed to the video compression module of the subsequent stage. At the same time, the Y/U/V components of all rows and columns are retained and buffered with Y_BUFFER/U_BUFFER and V_BUFFER respectively. After the transmission of the first set of Y components is completed, the first set of U components (8*8) are passed to the video compression module of the subsequent stage and the first set of V components (8*8) are passed to the video compression module of the subsequent stage. Then pass the Y/U/V components of the 2/3/4 groups in turn.

综上,通过本申请中的视频压缩方法,在服务器主机端视频画面的变化很小或者视频画面不发生变化时,可以大大减少格式转换、压缩及传输的数据量,进而减小了基板管理控制芯片的处理量和功耗。In summary, through the video compression method in the present application, when the change of the video picture on the server host side is small or the video picture does not change, the data volume of format conversion, compression and transmission can be greatly reduced, thereby reducing the baseboard management control. The processing capacity and power consumption of the chip.

为解决上述技术问题,本申请还提供了一种视频压缩系统,请参照图7,图7为本申请提供的一种视频压缩系统的结构框图,该系统包括:In order to solve the above-mentioned technical problems, the application also provides a video compression system, please refer to FIG. 7 , which is a structural block diagram of a video compression system provided by the application, and the system includes:

视频数据接收单元71,用于接收当前帧的块视频数据;Video data receiving unit 71, for receiving the block video data of the current frame;

区域确定单元72,用于根据当前帧的块视频数据中目标视频数据的第一目标位置确定与当前帧的块视频数据对应的上一帧的块视频数据中与第一目标位置对应的待比较区域;The area determination unit 72 is used for determining the block video data of the previous frame corresponding to the block video data of the current frame according to the first target position of the target video data in the block video data of the current frame to be compared with the first target position. area;

相似数据确定单元73,用于确定待比较区域的视频数据中是否存在与目标视频数据相似的视频数据;Similar data determination unit 73, for determining whether there is video data similar to the target video data in the video data of the area to be compared;

位置确定单元74,用于在待比较区域的视频数据中存在与目标视频数据相似的视频数据时,获取与目标视频数据相似的视频数据在上一帧的视频数据中的第二目标位置,并生成重复标志信息,以根据第二目标位置及重复标志信息不对目标视频数据进行转换及视频压缩;The position determination unit 74 is used to obtain the second target position of the video data similar to the target video data in the video data of the previous frame when there is video data similar to the target video data in the video data of the area to be compared, and generating repeating marker information, so as not to convert and compress the target video data according to the second target position and the repeating marker information;

数据发送单元75,用于将第二目标位置及重复标志信息发送至视频显示装置,以使视频显示装置调用第二目标位置的视频数据作为目标视频数据并进行显示。The data sending unit 75 is configured to send the second target position and the repetition flag information to the video display device, so that the video display device calls the video data of the second target position as the target video data and displays it.

对于视频压缩系统的介绍请参照上述实施例,本申请在此不再赘述。For the introduction of the video compression system, please refer to the above-mentioned embodiments, which will not be repeated in this application.

为解决上述技术问题,本申请还提供了一种视频压缩装置,请参照图8,图8为本申请提供的一种视频压缩装置的结构框图,该装置包括:In order to solve the above technical problems, the present application also provides a video compression device. Please refer to FIG. 8 . FIG. 8 is a structural block diagram of the video compression device provided by the present application. The device includes:

存储器81,用于存储计算机程序;memory 81 for storing computer programs;

处理器82,用于在存储计算机程序时,实现如上述的视频压缩方法的步骤。The processor 82 is configured to implement the steps of the above-mentioned video compression method when the computer program is stored.

对于视频压缩装置的介绍请参照上述实施例,本申请在此不再赘述。For the introduction of the video compression apparatus, please refer to the above-mentioned embodiments, which will not be repeated in this application.

为解决上述技术问题,本申请还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述的视频压缩方法的步骤。对于计算机可读存储介质的介绍请参照上述实施例,本申请在此不再赘述。To solve the above technical problems, the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to implement the steps of the above-mentioned video compression method. For the introduction of the computer-readable storage medium, please refer to the above-mentioned embodiments, which will not be repeated in this application.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的状况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article, or device that includes the element.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其他实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (15)

1. A method of video compression, comprising:
receiving block video data of a current frame;
determining a region to be compared corresponding to a first target position in block video data of a previous frame corresponding to the block video data of the current frame according to the first target position of the target video data in the block video data of the current frame;
determining whether video data similar to the target video data exists in the video data of the area to be compared;
if the target video data exists, acquiring a second target position of the video data similar to the target video data in the video data of the previous frame, and generating repeated mark information so as not to convert and compress the target video data according to the second target position and the repeated mark information;
and sending the second target position and the repeated mark information to a video display device so that the video display device calls the video data of the second target position as target video data and displays the target video data.
2. The video compression method of claim 1, wherein determining the area to be compared corresponding to the first target position in the block video data of the previous frame corresponding to the block video data of the current frame according to the first target position of the target video data in the block video data of the current frame comprises:
determining the block video data of a previous frame corresponding to the block video data of a current frame;
and dividing an area in a preset range taking the first target position as the center in the block video data of the previous frame into areas to be compared.
3. The video compression method of claim 2, wherein the target video data is a target pixel point;
dividing an area within a preset range with the first target position as a center in the block video data of the previous frame into areas to be compared, including:
dividing a region formed by a rice-shaped structure or an N-x-N grid structure taking the first target position as the center in the block of video data of the previous frame into regions to be compared;
the number of pixel points which are connected and pass through between the first target position and any edge of the area to be compared is not more than a preset number, and N is an integer not less than 3.
4. The video compression method of claim 3, wherein after dividing a region, which is formed by a mi-shaped structure or an N x N grid structure centered on the first target position, in the block of video data of a previous frame into regions to be compared, further comprising:
setting one-to-one corresponding coordinates for each pixel point in the area to be compared;
acquiring a second target position of video data similar to the target video data in the video data of the previous frame, including:
and acquiring coordinates of pixels similar to the target pixel in the video data of the previous frame.
5. The video compression method of claim 4, wherein the coordinates comprise an abscissa and an ordinate.
6. The video compression method of claim 1, wherein after determining whether video data similar to the target video data exists in the video data of the area to be compared, further comprising:
if not, performing color space conversion on the block video data of the current frame to convert the block video data of the current frame from an RGB format to a YUV format;
compressing the block video data of the current frame in the YUV format to obtain compressed video data of the current frame;
and sending the compressed video data of the current frame to the video display device so as to display a corresponding video picture.
7. The video compression method of claim 6, wherein the block video data of the current frame is 16 x 16 block video data.
8. The video compression method of claim 7, wherein compressing the block video data of the current frame in YUV format to obtain the compressed video data of the current frame comprises:
in a YUV420 mode, receiving and compressing a 16-by-16Y component, and caching a U component of 8*8 and a V component of 8*8;
after the compression of the Y component of 16 × 16 is completed, the U component of 8*8 and the V component of 8*8 are sequentially received and sequentially compressed.
9. The video compression method of claim 7, wherein compressing the block video data of the current frame in YUV format to obtain the compressed video data of the current frame comprises:
in a YUV422 mode, receiving and compressing a 16X 16Y component, and caching a 16X 8U component and a 16X 8V component;
after the compression of the Y component of 16 × 16 is completed, the U component of 16 × 8 and the V component of 16 × 8 are sequentially received and sequentially compressed.
10. The video compression method of claim 7, wherein compressing the block video data of the current frame in YUV format to obtain the compressed video data of the current frame comprises:
in YUV444 mode, receiving and compressing Y component of 8*8 of first group, and buffering Y component, U component of 16 × 16 and V component of 16 × 16 of second group 8*8;
after the compression of the Y component of the first group 8*8 is completed, the U component of the first group 8*8, the V component of the first group 8*8, the Y component of the second group 8*8, the U component of the second group 8*8 and the V component of the second group 8*8 are sequentially received and sequentially compressed.
11. The video compression method according to any one of claims 1 to 10, wherein determining whether video data similar to the target video data exists in the video data of the area to be compared comprises:
calculating the similarity between each video data in the area to be compared and the target video data;
determining whether the calculated similarity exists or not;
if so, judging that the video data with the similarity degree larger than the similarity threshold is similar to the target video data, and acquiring a second target position of the video data similar to the target video data in the video data of the previous frame;
and if the target video data does not exist, judging that the video data similar to the target video data does not exist in the area to be compared.
12. The video compression method of claim 11, wherein the target video data is a target pixel point; calculating the similarity between each video data in the area to be compared and the target video data, including:
and calculating the similarity between each pixel point in the area to be compared and the target pixel point.
13. A video compression system, comprising:
a video data receiving unit for receiving block video data of a current frame;
the area determining unit is used for determining an area to be compared, corresponding to a first target position, in the block video data of the previous frame corresponding to the block video data of the current frame according to the first target position of the target video data in the block video data of the current frame;
a similar data determining unit, configured to determine whether video data similar to the target video data exists in the video data of the region to be compared;
a position determining unit, configured to, when video data similar to the target video data exists in the video data of the region to be compared, obtain a second target position in the video data of a previous frame of the video data similar to the target video data, and generate repeat flag information, so as not to perform conversion and video compression on the target video data according to the second target position and the repeat flag information;
and the data sending unit is used for sending the second target position and the repeated mark information to a video display device so that the video display device calls the video data of the second target position as target video data and displays the target video data.
14. A video compression apparatus, comprising:
a memory for storing a computer program;
processor for implementing the steps of the video compression method according to any one of claims 1 to 12 when storing a computer program.
15. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the video compression method according to any one of claims 1-12.
CN202211118396.0A 2022-09-15 2022-09-15 Video compression method, system, device and readable storage medium Pending CN115209145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211118396.0A CN115209145A (en) 2022-09-15 2022-09-15 Video compression method, system, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211118396.0A CN115209145A (en) 2022-09-15 2022-09-15 Video compression method, system, device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115209145A true CN115209145A (en) 2022-10-18

Family

ID=83573539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211118396.0A Pending CN115209145A (en) 2022-09-15 2022-09-15 Video compression method, system, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115209145A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460414A (en) * 2022-11-11 2022-12-09 苏州浪潮智能科技有限公司 Video compression method and system of baseboard management control chip and related components
CN115695915A (en) * 2022-11-01 2023-02-03 山东云海国创云计算装备产业创新中心有限公司 A video data processing system, method, device and storage medium
CN116828200A (en) * 2023-08-29 2023-09-29 苏州浪潮智能科技有限公司 Image processing method, processing device, equipment and medium
CN118338002A (en) * 2024-06-12 2024-07-12 山东云海国创云计算装备产业创新中心有限公司 BMC video compression method, device and system and baseboard management controller
CN118842932A (en) * 2024-09-23 2024-10-25 山东云海国创云计算装备产业创新中心有限公司 Video processing method, device, electronic equipment, medium and product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111093079A (en) * 2019-12-30 2020-05-01 西安万像电子科技有限公司 Image processing method and device
CN112804532A (en) * 2021-01-07 2021-05-14 苏州浪潮智能科技有限公司 Image data acquisition method, system and related device
CN113079379A (en) * 2021-03-26 2021-07-06 山东英信计算机技术有限公司 Video compression method, device, equipment and computer readable storage medium
CN113709490A (en) * 2021-07-30 2021-11-26 山东云海国创云计算装备产业创新中心有限公司 Video compression method, device, system and medium
CN113873255A (en) * 2021-12-06 2021-12-31 苏州浪潮智能科技有限公司 Video data transmission method, video data decoding method and related devices
CN114125448A (en) * 2020-08-31 2022-03-01 华为技术有限公司 Video encoding method, decoding method and related devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111093079A (en) * 2019-12-30 2020-05-01 西安万像电子科技有限公司 Image processing method and device
CN114125448A (en) * 2020-08-31 2022-03-01 华为技术有限公司 Video encoding method, decoding method and related devices
CN112804532A (en) * 2021-01-07 2021-05-14 苏州浪潮智能科技有限公司 Image data acquisition method, system and related device
CN113079379A (en) * 2021-03-26 2021-07-06 山东英信计算机技术有限公司 Video compression method, device, equipment and computer readable storage medium
CN113709490A (en) * 2021-07-30 2021-11-26 山东云海国创云计算装备产业创新中心有限公司 Video compression method, device, system and medium
CN113873255A (en) * 2021-12-06 2021-12-31 苏州浪潮智能科技有限公司 Video data transmission method, video data decoding method and related devices

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115695915A (en) * 2022-11-01 2023-02-03 山东云海国创云计算装备产业创新中心有限公司 A video data processing system, method, device and storage medium
CN115460414A (en) * 2022-11-11 2022-12-09 苏州浪潮智能科技有限公司 Video compression method and system of baseboard management control chip and related components
CN115460414B (en) * 2022-11-11 2023-03-07 苏州浪潮智能科技有限公司 Video compression method and system of baseboard management control chip and related components
WO2024098715A1 (en) * 2022-11-11 2024-05-16 苏州元脑智能科技有限公司 Video compression method and system for baseboard management control chip, and related components
CN116828200A (en) * 2023-08-29 2023-09-29 苏州浪潮智能科技有限公司 Image processing method, processing device, equipment and medium
CN116828200B (en) * 2023-08-29 2024-01-23 苏州浪潮智能科技有限公司 Image processing method, processing device, equipment and medium
CN118338002A (en) * 2024-06-12 2024-07-12 山东云海国创云计算装备产业创新中心有限公司 BMC video compression method, device and system and baseboard management controller
CN118338002B (en) * 2024-06-12 2024-09-24 山东云海国创云计算装备产业创新中心有限公司 BMC video compression method, device and system and baseboard management controller
CN118842932A (en) * 2024-09-23 2024-10-25 山东云海国创云计算装备产业创新中心有限公司 Video processing method, device, electronic equipment, medium and product

Similar Documents

Publication Publication Date Title
CN115209145A (en) Video compression method, system, device and readable storage medium
WO2020047843A1 (en) Method and system for transmitting video image data, storage medium, and program product
CN115460414B (en) Video compression method and system of baseboard management control chip and related components
CN103248797A (en) Video resolution enhancing method and module based on FPGA (field programmable gate array)
CN114051145B (en) A video compression processing method, device and medium
CN108171645B (en) A lucky imaging processing system based on FPGA
CN112235579B (en) Video processing method, computer-readable storage medium and electronic device
CN111340835A (en) FPGA-based video image edge detection system
US7423642B2 (en) Efficient video frame capturing
CN104952088A (en) Method for compressing and decompressing display data
CN104268098A (en) On-chip cache system for transformation on ultrahigh-definition video frame rates
US11930198B2 (en) Image processing method and apparatus, and related assembly
CN114554126B (en) Baseboard management control chip, video data transmission method and server
CN114302087B (en) MIPI data transmission mode conversion method and device and electronic equipment
CN114584782A (en) Image sending method and device and electronic equipment
WO2021035643A1 (en) Monitoring image generation method, apparatus, device, system, and image processing device
CN116166185A (en) Caching method, image transmission method, electronic device and storage medium
CN115002304A (en) Video image resolution self-adaptive conversion device
CN113658049A (en) Image transposition method, equipment and computer readable storage medium
CN118214820B (en) Image data processing method, product, equipment and medium
CN118646893B (en) Video data processing method, product, equipment and storage medium
CN111724295A (en) A collaborative access method and system for external memory, and collaborative access architecture
CN113613039B (en) Video transmission method, system, computing device and computer storage medium
CN100534187C (en) Output buffer method of pixel data of joint image expert group image
WO2024001970A1 (en) Event data processing method and related device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20221018