CN115550668A - Video image compression method, system, storage medium and equipment - Google Patents

Video image compression method, system, storage medium and equipment Download PDF

Info

Publication number
CN115550668A
CN115550668A CN202211136445.3A CN202211136445A CN115550668A CN 115550668 A CN115550668 A CN 115550668A CN 202211136445 A CN202211136445 A CN 202211136445A CN 115550668 A CN115550668 A CN 115550668A
Authority
CN
China
Prior art keywords
image
data
area
video
module
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
CN202211136445.3A
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.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center 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 Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202211136445.3A priority Critical patent/CN115550668A/en
Publication of CN115550668A publication Critical patent/CN115550668A/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/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • 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/167Position within a video image, e.g. region of interest [ROI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Abstract

The invention provides a video image compression method, a system, a storage medium and equipment, wherein the method comprises the following steps: monitoring whether each frame of the video image changes in real time; in response to monitoring that the current frame of the video image changes, transmitting data of a change area of the current frame to the VGA control module, and judging whether the change area is smaller than a preset area; in response to the fact that the change area is smaller than the preset area, compressing the data of the change area to obtain compressed data; decompressing the compressed data to obtain a first image, acquiring a second image obtained after the previous frame is decompressed, integrating the first image and the second image to obtain a new image, and displaying the new image. The invention greatly saves the compression burden and reduces the compression time; the utilization rate of network bandwidth is reduced, and delay is reduced on the whole; thereby improving the efficiency of remote image transmission.

Description

Video image compression method, system, storage medium and equipment
Technical Field
The present invention relates to the field of video technologies, and in particular, to a method, a system, a storage medium, and a device for compressing video images.
Background
KVM, abbreviated as Keyboard, video or Mouse, is capable of accessing and controlling a computer by directly connecting Keyboard, video and Mouse ports. The KVM provides true motherboard level access and supports multi-platform servers and serial devices. The KVM over IP solution has a sophisticated multi-site failover functionality, a direct interface that conforms to the new server management standard (IPMI), and a function to map local storage media to a remote location. The KVM over IP converts analog information such as video and control of a connected management object into a digital signal, compresses the digital signal into an IP (Internet Protocol) packet, and transmits the packet via a network. The client of the control device receives the IP packet from the management object, decodes the IP packet, reassembles the IP packet into the original digital mode, and then converts the IP packet into an analog form to be transmitted to the screen of the control client. After the administrator sees the current information state of the managed object through the control screen, a local keyboard and mouse are used to issue a series of control commands, and the control commands are combined and encrypted into an IP packet through the control client and transmitted to the KVM over IP through the network. The KVM over IP unpacks the IP packets, converts to video, controls the analog signal and transmits to the managed object, thus making a corresponding action on the managed object.
FIG. 1 shows one of the prior art KVM over IP implementations. As shown in fig. 1, image data (JPEG format) of a host is converted into AXI (Advanced eXtensible Interface, a bus protocol) bus data through a PCIe (peripheral component interconnect express) controller, and the AXI bus data is transmitted to a VGA (Video Graphics Array) IP, the VGA IP processes the Video data, the Video data is stored into an external DDR through a DDR controller (the DDR is a memory space unique to VGA display), the image information read from the DDR and stored in the DDR is read out, then the Video data is converted into a DVI (Digital Visual Interface, digital Video Interface) signal according to the VSEA standard, the DVI signal is converted into an analog signal through a Digital-to-analog converter, and the analog signal is output to an external display screen through a VGA Interface, which is a local display function. The video compression Controller captures image information from a DVI interface given by the VGA IP, and then stores the compressed image data into an external DDR of a BMC (Baseboard Management Controller) system (the DDR is a memory space used by the BMC system) through processing such as YUV (a color coding method) conversion, JPEG image compression, and the like. And the application program running on the ARM reads the compressed image data from the DDR (double data rate synchronous dynamic random access memory) by calling the Ethernet controller, and the remote terminal decompresses the compressed data after receiving the compressed data and displays the decompressed data on a screen through the remote terminal of the Ethernet transmission. This is a video remote display function.
JPEG (Joint Photographic Experts Group ): the group was created in 1986, and the JPEG standard published in 1992 was recognized in 1994 as ISO10918-1, which was the standard for picture compression. JPEG compression is a lossy compression. The compression process comprises the following steps:
(1) RGB2YUV: VGA video source data are in RGB format, and each pixel point has three base colors of red, green and blue; the JPEG file is color represented by YUV color space, Y represents brightness, and U and V represent chroma;
(2) YUV sampling: because the human eyes have higher sensitivity to the difference of brightness than the change of color, part of chrominance information can be properly removed during sampling;
(3) 8 × 8block conversion: JPEG compression is performed in units of 8 by 8 blocks (empirical values);
(4) DCT transformation: the conversion from time domain to frequency domain is beneficial to removing high-frequency information which has small influence on human eyes;
(5) And (3) quantification: the process of discarding the high frequency region data in combination with the DCT transform is called quantization;
(6) And (3) encoding: the main objective is to maximally save the storage space of characters (codes) according to the frequency of use, usually by huffman coding;
(7) Adding a file header: including information such as the start flag, length, quantization table, etc.
The main problems in the prior art are as follows: the JPEG compression speed is a main bottleneck for limiting the performance of the whole system, JPEG needs to compress each frame of image, and when an input image is not changed, the JPEG is subjected to invalid compression; secondly, the speed of JPEG compression is that in the YUV444 mode, for RGB (color mode of red, green, and blue) images input in real time, JPEG compression completes both the YUV data reading process and the compression process, and completes the data output process. The current way to solve this problem is: and compressing the image by using a JPEG compression mode of a normal flow. And comparing whether the data of the two frames are the same or not to determine that the following frame needs not to be compressed.
However, for certain situations, such as video images in KVM applications, the video images are characterized by small changes between consecutive frames, which results in wasted compression resources and inefficient compression.
Disclosure of Invention
In view of the above, the present invention provides a video image compression method, system, storage medium and device, so as to solve the problem of low image compression efficiency in image transmission in the video image remote display function.
Based on the above object, the present invention provides a video image compression method, comprising the following steps:
monitoring whether each frame of the video image changes in real time;
in response to monitoring that the current frame of the video image changes, transmitting data of a change area of the current frame to the VGA control module, and judging whether the change area is smaller than a preset area;
in response to the fact that the change area is smaller than the preset area, compressing the data of the change area to obtain compressed data;
decompressing the compressed data to obtain a first image, acquiring a second image obtained after the decompression of the previous frame, integrating the first image and the second image to obtain a new image, and displaying the new image.
In some embodiments, the method further comprises:
dividing the image of the current frame into a plurality of blocks, and configuring a unique corresponding number for each block;
and storing a mapping table containing the serial numbers of the blocks and the corresponding video memory addresses through a monitoring module.
In some embodiments, in response to monitoring that a current frame of the video image changes, transmitting data of a changed area of the current frame to the VGA control module, and determining whether the changed area is smaller than a preset area includes:
in response to the fact that the current frame of the video image is monitored to change, transmitting data of a change area to the VGA control module, and writing the received data into the AXI channel by the VGA control module;
recording the video memory address of the written data by a monitoring module, acquiring the number of blocks corresponding to the data based on a mapping table, and judging whether the number of the blocks is less than a preset threshold value or not;
in response to the number of blocks being less than a preset threshold, determining that the changed area is less than a preset area.
In some embodiments, the method further comprises:
in response to the fact that the number of the blocks is smaller than a preset threshold value, the numbers of the blocks corresponding to the data are sequentially transmitted to a data acquisition module based on a mapping table, and therefore the data acquisition module can acquire the video memory addresses of the data;
and the data acquisition module reads the block data from the corresponding video memory position based on the video memory address of the data and transmits the block data to the RGB2YUV module.
In some embodiments, the method further comprises:
and the RGB2YUV module converts each block of data into YUV data, and sequentially transmits the YUV data to the compression module according to the sequence of the Y component, the U component and the V component.
In some embodiments, integrating the first image with the second image comprises:
and integrating the first image and the second image according to the block flag.
In some embodiments, the method further comprises:
and in response to the changed area being larger than or equal to the preset area, compressing all data of the current frame.
In another aspect of the present invention, there is also provided a video image compression system, including:
the monitoring module is configured for monitoring whether each frame of the video image changes in real time;
the judging module is configured to respond to the monitored change of the current frame of the video image, transmit data of a change area of the current frame to the VGA control module, and judge whether the change area is smaller than a preset area;
the compression module is configured to compress the data in the change area to obtain compressed data in response to the change area being smaller than the preset area; and
and the integration module is configured to decompress the compressed data to obtain a first image, obtain a second image obtained after the decompression of the previous frame, integrate the first image with the second image to obtain a new image, and display the new image.
In yet another aspect of the present invention, a computer-readable storage medium is also provided, storing computer program instructions, which when executed by a processor, implement the above-described method.
In yet another aspect of the present invention, a computer device is further provided, which includes a memory and a processor, the memory storing a computer program, and the computer program executing the method when executed by the processor.
The invention has at least the following beneficial technical effects:
according to the video image compression method, the host system does not update data into the video memory when the video image picture is unchanged, and the host system updates the changed local image data into the video memory when the image picture only has local change; specifically, when the change area of the image is smaller than the preset area, the image is compressed and transmitted only aiming at the change area, and the decompressed image is integrated with the image of the previous frame, so that a new image is formed for display, thereby greatly saving the compression burden and reducing the compression time; the utilization rate of network bandwidth is reduced, and delay is reduced on the whole; thereby improving the efficiency of remote image transmission.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of one implementation of a KVM over IP provided in accordance with the prior art;
FIG. 2 is a diagram illustrating a video image compression method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a method for implementing video image compression according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an implementation of a mapping table according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a transmission process of compressed data according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a video image compression system according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a computer-readable storage medium for implementing a video image compression method according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a computer device for executing a video image compression method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two non-identical entities with the same name or different parameters, and it should be understood that "first" and "second" are only used for convenience of description and should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements does not include all of the other steps or elements inherent in the list.
In view of the above object, a first aspect of the embodiments of the present invention proposes an embodiment of a video image compression method. Fig. 2 is a schematic diagram illustrating an embodiment of a video image compression method provided by the present invention. As shown in fig. 2, the embodiment of the present invention includes the following steps:
s10, monitoring whether each frame of a video image changes in real time;
step S20, responding to the monitored change of the current frame of the video image, transmitting the data of the change area of the current frame to the VGA control module, and judging whether the change area is smaller than a preset area or not;
s30, in response to the fact that the change area is smaller than the preset area, compressing the data of the change area to obtain compressed data;
and S40, decompressing the compressed data to obtain a first image, acquiring a second image obtained after the decompression of the previous frame, integrating the first image and the second image to obtain a new image, and displaying the new image.
According to the video image compression method, when the video image picture is not changed, the host system does not update data in the video memory, and when the image picture only has local change, the host system updates the changed local image data in the video memory; specifically, when the change area of the image is smaller than the preset area, the image is compressed and transmitted only for the change area, and the decompressed image is integrated with the image of the previous frame to form a new image for display, so that the compression burden is greatly saved, and the compression time is reduced; the utilization rate of network bandwidth is reduced, and delay is reduced on the whole; thereby improving the efficiency of remote image transmission.
Through practical application analysis, in remote terminal display application, the frequency of human operation is very low, the frequency of image change is very low, so that the situations that a large number of adjacent frames are not changed and the change is very small can occur, therefore, the embodiment of the invention greatly saves network bandwidth, saves the data volume and time of the image after Ethernet packing and compression, accelerates the transmission of image data and reduces delay.
In some embodiments, the method further comprises: dividing the image of the current frame into a plurality of blocks, and configuring a unique corresponding number for each block; and storing a mapping table containing the serial numbers of the blocks and the corresponding video memory addresses through a monitoring module.
In some embodiments, in response to monitoring that a current frame of the video image changes, transmitting data of a changed area of the current frame to the VGA control module, and determining whether the changed area is smaller than a preset area includes: in response to the fact that the current frame of the video image is monitored to change, transmitting data of a change area to the VGA control module, and writing the received data into the AXI channel by the VGA control module; recording the video memory address of the written data by a monitoring module, acquiring the number of blocks corresponding to the data based on a mapping table, and judging whether the number of the blocks is less than a preset threshold value or not; in response to the number of blocks being less than a preset threshold, determining that the change area is less than a preset area.
In some embodiments, the method further comprises: in response to the fact that the number of the blocks is smaller than a preset threshold value, sequentially transmitting the numbers of the blocks corresponding to the data to a data acquisition module based on a mapping table so that the data acquisition module can acquire the video memory addresses of the data; and the data acquisition module reads the block data from the corresponding video memory position based on the video memory address of the data and transmits the block data to the RGB2YUV module.
In some embodiments, the method further comprises: and the RGB2YUV module converts each block of data into YUV data, and sequentially transmits the YUV data to the compression module according to the sequence of the Y component, the U component and the V component.
In some embodiments, integrating the first image with the second image comprises: and integrating the first image and the second image according to the block flag.
In some embodiments, the method further comprises: and in response to the fact that the changed area is larger than or equal to the preset area, compressing all data of the current frame.
In another embodiment, when the image is not changed, the image is not compressed, but the last compression result is adopted.
Fig. 3 is a schematic structural diagram of a method for implementing video image compression according to an embodiment of the present invention. As shown in fig. 3, the video image compression method according to the embodiment of the present invention is implemented as follows:
1) The operating system runs on the server host, generates desktop image data, and transmits the desktop image data to a Video Graphics Array (VGA) control module through a peripheral component interconnect express (PCIe) Interface, and the VGA control module converts the received data into AXI (Advanced eXtensible Interface) Interface data and writes the AXI Interface data into a corresponding position of the Video memory space. The process is characterized in that: when the desktop image of the host computer is not changed, data can not be transmitted to the VGA control module, and when the desktop image is partially changed, only partial data can be transmitted to the VGA control module.
2) The monitoring module is responsible for monitoring data changes on the AXI interface, when write operation on an AXI channel occurs, currently written address data is recorded, and the monitoring module locally reserves a mapping table of mapping relation between addresses and blocks (blocks), namely a video memory address corresponding to each block. By monitoring the write address data on the AXI channel, the corresponding block number can be found correspondingly.
3) After transmission of one frame of data is completed, the monitoring module checks the number of the monitored updated block blocks, if the number exceeds a preset threshold value, the current frame is considered to be changed greatly, and all the current frame is compressed. And when the monitored number of the updated block blocks is smaller than a preset threshold value, transmitting the updated blcok number to the data acquisition module.
4) And the data acquisition module searches a corresponding video memory address from the mapping table according to the updated block number transmitted by the monitoring module, reads a block data from a corresponding position in the video memory, and transmits the block data to the RGB2YUV module.
5) The RGB2YUV module converts RGB (color modes of three colors of Red, green, and Blue) data into YUV (a color coding method) data in units of one block, and then sends the YUV data to the JPEG compression module in the order of Y component, U component, and V component. JPEG (Joint Photographic Experts Group), a standard for contone still image compression, is the most commonly used image file format with the suffix of the file being jpg or JPEG.
6) The compression module compresses the data and then stores the compressed data to a corresponding position in the memory.
7) When the compressed image data is transmitted by the Ethernet, a group of block _ flag block flag bits need to be transmitted to a remote terminal;
8) The remote terminal needs to store a decompressed result (namely a second image) of the compressed data received in the previous frame, and decodes the decompressed image (namely the first image) according to the received new data, and then merges the two images according to the received block _ flag information to form a new image for displaying.
Specifically, with reference to the schematic diagram of fig. 4 showing the implementation manner of the mapping table provided according to the embodiment of the present invention, the implementation manner of the mapping table between the blcok number and the video memory address is as follows:
for resolution rsl _ h x rsl _ w, e.g., 1280x1024. For the first 8x8block data block [1], then the starting address addr _ n =0, starting from addr _ n, reading to the address addr _ n + (8 x 4-1), addr _ m = (8-1) xrsl _ w, reading to the address addr _ m + (8 x 4-1), where the above address range is the data of the first block. For the nth blcok data block [ n ], the start address is addr _ n = Y + 8 + rsl_w + X8, where X = n is left over for (rsl _ w/8) and Y = n is rounded for (rsl _ w/8).
Further, the embodiment of the snooping module determining which block corresponds to the data being written is as follows:
and acquiring an address ADDR _ IN of the current AXI writing channel, rounding the address pair (rsl _ w/8) to obtain S, subtracting S x rsl _ w from the address, rounding the 8 to obtain T, and setting the corresponding block to be S x (rsl _ w/8) + T +1. At this time, the flag position of the block is set to 1 (note: setting flag array block [ ], each blcok corresponds to a flag block [ i ],1 represents that the blcok is changed, 0 is an initial value, represents that the blcok is not changed, and when a frame starts, the flag positions are all set to 0).
And after one frame is finished, checking the number of 1 in the blcok _ flag, if the number is greater than the threshold value, completely compressing the current frame, and if the number is less than the threshold value, sending the block _ flag to a subsequent module.
The conversion process of the RGB2YUV (RGB to YUV) module is as follows:
and finding a video memory address with the block _ flag being 1 in the mapping table according to the array block _ flag, starting to read data of the block from the video memory after finding, converting the data into a YUV format according to a formula, and finally writing the YUV format into an FIFO (First Input First Output) according to the sequence of the Y component, the U component and the V component for a JPEG compression module.
Y=0.2990R+0.5870G+0.1140B;
U=-0.1684R-0.3316G+0.5B+128;
V=0.5R-0.4187G-0.0813B+128。
Fig. 5 is a schematic diagram illustrating a transmission process of compressed data according to an embodiment of the present invention. As shown in fig. 5, the transmission process of the compressed data is as follows:
before transmitting a current frame, block _ flag array data is transmitted, and then compressed data of the frame is transmitted; and after receiving the current frame after decompression, the remote terminal integrates the current frame into the compression result of the previous frame according to the flag condition of the block _ flag.
The video image compression method provided by the embodiment of the invention can be applied to the realization process of a JPEG compression module in the research and development of a BMC (Baseboard Management Controller) chip. The embodiment of the invention has the characteristics that: (1) Judging the content to be compressed according to the behavior of the host computer for updating the video memory; (2) When the contents of the front frame and the rear frame are not changed, the compression is not needed; (3) When the content of the current and the latter frames is small, only the changed part is compressed; and (4) the remote terminal carries out image synthesis according to the flag bit.
In a second aspect of the embodiments of the present invention, a video image compression system is further provided. Fig. 6 is a schematic diagram of an embodiment of a video image compression system provided by the present invention. As shown in fig. 6, a video image compression system includes: the monitoring module 10 is configured to monitor whether each frame of the video image changes in real time; the judging module 20 is configured to transmit data of a change area of the current frame to the VGA control module in response to monitoring that the current frame of the video image changes, and judge whether the change area is smaller than a preset area; the compression module 30 is configured to compress the data in the change area to obtain compressed data in response to the change area being smaller than the preset area; and an integration module 40 configured to decompress the compressed data to obtain a first image, acquire a second image obtained after the decompression of the previous frame, integrate the first image with the second image to obtain a new image, and display the new image.
In a third aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, and fig. 7 is a schematic diagram illustrating a computer-readable storage medium implementing a video image compression method according to an embodiment of the present invention. As shown in fig. 7, the computer-readable storage medium 3 stores computer program instructions 31. The computer program instructions 31, when executed by a processor, implement the method of any of the embodiments described above.
It is to be understood that all embodiments, features and advantages set forth above with respect to the video image compression method according to the present invention apply equally, without conflict with one another, to the video image compression system and the storage medium according to the present invention.
In a fourth aspect of the embodiments of the present invention, there is further provided a computer device, including a memory 402 and a processor 401 as shown in fig. 8, where the memory 402 stores therein a computer program, and the computer program implements the method of any one of the above embodiments when executed by the processor 401.
Fig. 8 is a schematic hardware structure diagram of an embodiment of a computer device for executing a video image compression method according to the present invention. Taking the computer device shown in fig. 8 as an example, the computer device includes a processor 401 and a memory 402, and may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 8 illustrates an example of a connection by a bus. The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the video image compression system. The output device 404 may include a display device such as a display screen.
The memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the video image compression method in the embodiment of the present application. The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by use of a video image compression method, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 401 executes various functional applications of the server and data processing, i.e., implements the video image compression method of the above-described method embodiment, by running the non-volatile software programs, instructions, and modules stored in the memory 402.
Finally, it is noted that the computer-readable storage medium (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM may be available in a variety of forms such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant only to be exemplary, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method of compressing video images, comprising the steps of:
monitoring whether each frame of the video image changes in real time;
in response to the fact that the current frame of the video image is monitored to change, transmitting data of a change area of the current frame to a VGA control module, and judging whether the change area is smaller than a preset area or not;
in response to the fact that the change area is smaller than the preset area, compressing the data of the change area to obtain compressed data;
decompressing the compressed data to obtain a first image, acquiring a second image obtained after the decompression of the previous frame, integrating the first image and the second image to obtain a new image, and displaying the new image.
2. The method of claim 1, further comprising:
dividing the image of the current frame into a plurality of blocks, and configuring a unique corresponding number for each block;
and storing a mapping table containing the serial numbers of the blocks and the corresponding video memory addresses through a monitoring module.
3. The method of claim 2, wherein in response to monitoring that a current frame of the video image changes, transmitting data of a changed area of the current frame to a VGA control module, and determining whether the changed area is smaller than a preset area comprises:
in response to monitoring that the current frame of the video image changes, transmitting data of the changed area to the VGA control module, and writing the received data into an AXI channel by the VGA control module;
recording the video memory address of the written data by a monitoring module, acquiring the number of blocks corresponding to the data based on the mapping table, and judging whether the number of the blocks is smaller than a preset threshold value or not;
in response to the number of blocks being less than a preset threshold, determining that the change area is less than the preset area.
4. The method of claim 3, further comprising:
responding to the fact that the number of the blocks is smaller than the preset threshold value, and sequentially transmitting the numbers of the blocks corresponding to the data to a data acquisition module based on the mapping table so that the data acquisition module can acquire the video memory addresses of the data;
and the data acquisition module reads block data from a corresponding video memory position based on the video memory address of the data and transmits the block data to the RGB2YUV module.
5. The method of claim 4, further comprising:
and the RGB2YUV module converts each block data into YUV data, and sequentially transmits the YUV data to the compression module according to the sequence of the Y component, the U component and the V component.
6. The method of claim 1, wherein integrating the first image with the second image comprises:
and integrating the first image and the second image according to the block flag bit.
7. The method of claim 1, further comprising:
and in response to the changed area being larger than or equal to the preset area, compressing all data of the current frame.
8. A video image compression system, comprising:
the monitoring module is configured for monitoring whether each frame of the video image changes in real time;
the judging module is configured to respond to the monitored change of the current frame of the video image, transmit data of a change area of the current frame to the VGA control module, and judge whether the change area is smaller than a preset area;
the compression module is configured to compress the data in the change area to obtain compressed data in response to the change area being smaller than the preset area; and
and the integration module is configured to decompress the compressed data to obtain a first image, obtain a second image obtained after the decompression of the previous frame, integrate the first image with the second image to obtain a new image, and display the new image.
9. A computer-readable storage medium, characterized in that computer program instructions are stored which, when executed by a processor, implement the method according to any one of claims 1-7.
10. A computer arrangement comprising a memory and a processor, characterized in that a computer program is stored in the memory, which computer program, when being executed by the processor, is adapted to carry out the method of any one of the claims 1-7.
CN202211136445.3A 2022-09-19 2022-09-19 Video image compression method, system, storage medium and equipment Pending CN115550668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211136445.3A CN115550668A (en) 2022-09-19 2022-09-19 Video image compression method, system, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211136445.3A CN115550668A (en) 2022-09-19 2022-09-19 Video image compression method, system, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN115550668A true CN115550668A (en) 2022-12-30

Family

ID=84726647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211136445.3A Pending CN115550668A (en) 2022-09-19 2022-09-19 Video image compression method, system, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN115550668A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115802047A (en) * 2023-01-19 2023-03-14 苏州浪潮智能科技有限公司 Video data transmission method and related device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115802047A (en) * 2023-01-19 2023-03-14 苏州浪潮智能科技有限公司 Video data transmission method and related device

Similar Documents

Publication Publication Date Title
WO2022252488A1 (en) Image compression method and apparatus, electronic device, and readable storage medium
US20040042547A1 (en) Method and apparatus for digitizing and compressing remote video signals
US9172907B2 (en) Method and apparatus for dynamically adjusting aspect ratio of images during a video call
WO2006023173A2 (en) Method and apparatus for caching, compressing, and transmitting video signals
JP2007531355A (en) Improved system for video digitization and image correction for use with a computer management system
US5519436A (en) Static image background reference for video teleconferencing applications
JP2008503908A (en) Image processing system and method with tag-based communication protocol
CN113079379A (en) Video compression method, device, equipment and computer readable storage medium
CN111625211B (en) Screen projection method and device, android device and display device
WO2020224551A1 (en) Information compression/decompression methods and apparatuses, and storage medium
CN111193948A (en) Picture transmission and display method and system of display terminal
US6446155B1 (en) Resource bus interface
CN115550668A (en) Video image compression method, system, storage medium and equipment
US20100103183A1 (en) Remote multiple image processing apparatus
CN113709490A (en) Video compression method, device, system and medium
CN112423046A (en) Method, device and equipment for transmitting video data and readable storage medium
CN104253804A (en) Method and device for transmitting image data
CN112948151A (en) Program interface image transmission method, substrate management controller and remote control equipment
CN110740352B (en) SPICE protocol-based difference image display method in video card transparent transmission environment
US10304213B2 (en) Near lossless compression scheme and system for processing high dynamic range (HDR) images
CN114125463A (en) Video compression method, system, storage medium and equipment
CN116634089A (en) Video transmission method, device, equipment and storage medium
CN115278301B (en) Video processing method, system and equipment
KR102460123B1 (en) Electronic device for compressing image using compression attributes generated in image acquisition process using image sensor and method for operating thefeof
CN110545446A (en) desktop image encoding and decoding methods, related devices and storage medium

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