CN109587502B - Method, device, equipment and computer readable storage medium for intra-frame compression - Google Patents

Method, device, equipment and computer readable storage medium for intra-frame compression Download PDF

Info

Publication number
CN109587502B
CN109587502B CN201811639838.XA CN201811639838A CN109587502B CN 109587502 B CN109587502 B CN 109587502B CN 201811639838 A CN201811639838 A CN 201811639838A CN 109587502 B CN109587502 B CN 109587502B
Authority
CN
China
Prior art keywords
frame
intra
analysis
downsampled
frame prediction
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.)
Active
Application number
CN201811639838.XA
Other languages
Chinese (zh)
Other versions
CN109587502A (en
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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething 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 Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201811639838.XA priority Critical patent/CN109587502B/en
Publication of CN109587502A publication Critical patent/CN109587502A/en
Application granted granted Critical
Publication of CN109587502B publication Critical patent/CN109587502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • 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/172Methods 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 picture, frame or field
    • 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

Abstract

The application discloses a method for intra-frame compression, comprising the following steps: pre-analyzing each input frame to obtain a pre-analysis result; acquiring a pre-analysis intra-frame prediction result of the downsampled frame from the pre-analysis result; calculating intra-frame prediction results of other sizes of the downsampled frame according to the pre-analysis intra-frame prediction results; and compressing each downsampled frame according to the intra-frame prediction result of each size. According to the method and the device, the intra-frame prediction results of other sizes of the downsampled frames are calculated according to the pre-analysis intra-frame prediction results, finally, the downsampled frames are compressed according to the intra-frame prediction results of all sizes, the intra-frame prediction results of all sizes of the input frames do not need to be calculated in sequence, the intra-frame prediction process is simplified, and the purpose of reducing the calculation complexity of intra-frame compression is achieved. The application also provides a system, equipment and a computer readable storage medium for intra-frame compression, which have the beneficial effects.

Description

Method, device, equipment and computer readable storage medium for intra-frame compression
Technical Field
The present invention relates to the field of digital video coding, and in particular, to a method, apparatus, device, and computer readable storage medium for intra-frame compression.
Background
With the rapid development of multimedia technology, video data of various resolutions (including standard definition, high definition and ultra high definition video) are sequentially presented, and transmission and storage of the video data face a great challenge. To meet the evolving needs of video data compression and transmission, a new generation of high efficiency video coding standard (High Efficiency Video Coding, HEVC/H.265) was formulated by the video coding Joint expert group (Joint Collaborative Team on Video Coding, JCT-VC) of the ISO/IEC and ITU-T organizations. At the same video quality, HEVC reduces the code stream by about half compared to the previous generation video coding standard h.264.
The main means of video compression in the development and popularization stage at present is to remove the redundant information in frames or between frames through prediction. Prediction is one of the core technologies of video compression, and accordingly, two prediction modes of video compression are intra-frame prediction and inter-frame prediction. Intra prediction of HEVC supports sizes of 4x4, 8x8, 16x16, 32x32, 64x64, etc., and intra prediction of luminance and chrominance.
The HEVC intra prediction mode is richer and more versatile than h.264 and more suitable for encoding high resolution video, but this also increases the computational complexity of HEVC intra coding.
Therefore, how to reduce the computational complexity of intra-frame compression is a technical problem that a person skilled in the art needs to solve.
Disclosure of Invention
An object of the present application is to provide a method, apparatus, device and computer readable storage medium for intra-frame compression, which are used for reducing the computational complexity of intra-frame compression.
In order to solve the above technical problem, the present application provides a method for intra-frame compression, which includes:
pre-analyzing each input frame to obtain a pre-analysis result;
acquiring an intra-frame prediction result of the pre-analysis of the downsampled frame from the pre-analysis result;
calculating intra-frame prediction results of other sizes of the downsampled frames according to the pre-analysis intra-frame prediction results;
and compressing each downsampled frame according to the intra-frame prediction result of each size.
Optionally, the pre-analyzing each input frame to obtain a pre-analysis result includes:
downsampling each input frame to obtain downsampled frames;
dividing the downsampled frame by preset macro blocks, and calculating the pre-analysis intra-frame prediction result according to each obtained preset macro block;
calculating the combination cost of P, B frames of the downsampled frames according to the pre-analysis intra-frame prediction result;
and selecting a combination mode of P, B frames with the minimum cost as a frame type of the downsampled frames, and taking the frame type as the pre-analysis result.
Optionally, after compressing each downsampled frame according to the intra prediction result of each size, the method further includes:
and carrying out inter-frame compression on each downsampled frame according to the pre-analysis result.
Optionally, the preset macroblock is specifically an 8×8 block.
Optionally, the preset macroblock is specifically a 4×4 block.
Optionally, calculating the intra-prediction results of other sizes of the downsampled frame according to the pre-analysis intra-prediction result includes:
determining each pixel value of the downsampled frame according to the pre-analysis intra-frame prediction result;
obtaining reference pixels of macro blocks with various sizes, and filtering the reference pixels;
and calculating predicted pixel values of the macro blocks with the sizes according to the filtered reference pixels, and calculating intra-frame prediction results with other sizes of the downsampled frames according to the predicted pixel values.
The present application also provides an apparatus for intra-frame compression, the apparatus comprising:
the pre-analysis module is used for carrying out pre-analysis on each input frame to obtain a pre-analysis result;
the acquisition module is used for acquiring a pre-analysis intra-frame prediction result of the downsampling frame from the pre-analysis result;
a calculation module, configured to calculate intra-frame prediction results of other sizes of the downsampled frame according to the pre-analysis intra-frame prediction result;
and the compression module is used for compressing each downsampled frame according to the intra-frame prediction result of each size.
Optionally, the pre-analysis module includes:
the downsampling submodule is used for downsampling each input frame to obtain downsampled frames;
the dividing sub-module is used for dividing the downsampling frame into preset macro blocks and calculating the prediction result in the pre-analysis frame according to the obtained preset macro blocks;
a first calculation sub-module, configured to calculate a combination cost of P, B frames of the downsampled frame according to the pre-analysis intra-frame prediction result;
and the selecting submodule is used for selecting a combination mode of P, B frames with the minimum cost as a frame type of the downsampled frames and taking the frame type as the pre-analysis result.
The present application also provides an intra-frame compression apparatus including:
a memory for storing a computer program;
a processor for performing the steps of the method of intra-frame compression as claimed in any one of the preceding claims when said computer program is executed.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a method of intra-frame compression as described in any of the above.
The method for intra-frame compression provided by the application comprises the following steps: pre-analyzing each input frame to obtain a pre-analysis result; acquiring a pre-analysis intra-frame prediction result of the downsampled frame from the pre-analysis result; calculating intra-frame prediction results of other sizes of the downsampled frame according to the pre-analysis intra-frame prediction results; and compressing each downsampled frame according to the intra-frame prediction result of each size.
According to the technical scheme, based on the fact that 8x8 intra-frame prediction in the pre-analysis result uses a downsampled frame of an original frame, the picture content is unchanged, so that the correlation degree between the pre-analysis intra-frame prediction result in the pre-analysis result and the standard intra-frame prediction result is extremely high, the pre-analysis intra-frame prediction result of the downsampled frame is obtained from the pre-analysis result, then intra-frame prediction results of other sizes of the downsampled frame are calculated according to the pre-analysis intra-frame prediction results, finally the downsampled frames are compressed according to the intra-frame prediction results of all sizes, the intra-frame prediction results of all sizes of the input frames do not need to be calculated in sequence, the intra-frame prediction process is simplified, and the purpose of reducing the calculation complexity of intra-frame compression is achieved. The present application also provides an apparatus, a device, and a computer readable storage medium for intra-frame compression, which have the above beneficial effects and are not described herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of a method of intra-frame compression according to an embodiment of the present application;
FIG. 2 is a flow chart showing an actual implementation of S103 in the method of intra-frame compression provided in FIG. 1;
FIG. 3 is a flow chart showing an actual implementation of S101 in the method of intra-frame compression provided in FIG. 1;
FIG. 4 is a block diagram of an apparatus for intra-frame compression according to an embodiment of the present application;
FIG. 5 is a block diagram of another apparatus for intra-frame compression according to an embodiment of the present application;
fig. 6 is a block diagram of an intra-frame compression apparatus according to an embodiment of the present application.
Detailed Description
The core of the present application is to provide a method, apparatus, device and computer readable storage medium for intra-frame compression, which are used for reducing the computational complexity of intra-frame compression.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a flowchart of a method for intra-frame compression according to an embodiment of the present application.
The method specifically comprises the following steps:
s101: pre-analyzing each input frame to obtain a pre-analysis result;
pre-analysis is a processing module of an approximate coding process commonly adopted by the HEVC encoder at present, for example, a best-known open source HEVC encoder x265, which implements a pre-analysis function called as a look head, including functions such as frame type decision, adaptive quantization AQ, cut, reduced intra prediction, reduced ME, and the like. As shown in MSU published encoder competition test report of Moscow university, x265 is superior to other HEVC encoders of the same kind in compression efficiency, and the main reason is that the encoder has a pre-analysis module with excellent effect.
However, x265 implements simplified intra-frame prediction in the look ahead portion to obtain an pre-analysis intra-frame prediction result, but the pre-analysis intra-frame prediction result is not applied to the subsequent encoding process except for performing frame type judgment, which causes a certain waste of computing resources.
S102: acquiring a pre-analysis intra-frame prediction result of the downsampled frame from the pre-analysis result;
based on the simplified intra-frame prediction in the pre-analysis result, the downsampled frame of the original frame is used, the picture content is unchanged, so that the correlation degree between the pre-analysis intra-frame prediction result in the pre-analysis result and the standard intra-frame prediction result is particularly high, the pre-analysis intra-frame prediction result of the downsampled frame is obtained from the pre-analysis result and is used for compressing the downsampled frame, the intra-frame prediction process is simplified, and the calculation complexity of intra-frame compression is reduced;
optionally, the pre-analysis intra-frame prediction result mentioned herein may be specifically an 8x8 intra-frame prediction result, and the user may change the pre-analysis process according to needs or personal preference, so that the pre-analysis intra-frame prediction result in the obtained pre-analysis result may also be a 4x4 intra-frame prediction result, a 16x16 intra-frame prediction result, or a 32x32 intra-frame prediction result, which is not specifically limited in this application.
S103: calculating intra-frame prediction results of other sizes of the downsampled frame according to the pre-analysis intra-frame prediction results;
the intra-prediction results of the other sizes of the downsampled frames mentioned herein are intra-prediction results of other sizes than the pre-analysis intra-prediction result, for example, when the pre-analysis intra-prediction result is an 8x8 intra-prediction result, the intra-prediction results of the other sizes of the downsampled frames may specifically include a 4x4 intra-prediction result, a 16x16 intra-prediction result, and a 32x32 intra-prediction result;
according to the method and the device, the intra-frame prediction results of other sizes of the downsampled frame are calculated according to the pre-analysis intra-frame prediction results, the intra-frame prediction results of all sizes of the input frame do not need to be calculated in sequence, and the intra-frame prediction process is further simplified;
alternatively, the method for calculating the intra-prediction result of the other size of the downsampled frame according to the pre-analysis intra-prediction result may specifically be as shown in fig. 2, where each pixel value of the downsampled frame is determined according to the pre-analysis intra-prediction result, and then calculating the intra-prediction result of the other size of the sampled frame;
referring to fig. 2, fig. 2 is a flowchart of a practical implementation of S103 in the method of intra-frame compression provided in fig. 1.
The method specifically comprises the following steps:
s201: determining each pixel value of the downsampled frame according to the pre-analysis intra-frame prediction result;
s202: obtaining reference pixels of macro blocks with various sizes, and filtering the reference pixels;
s203: and calculating predicted pixel values of macro blocks with various sizes according to the filtered reference pixels, and calculating intra-frame prediction results of other sizes of downsampled frames according to the predicted pixel values.
Alternatively, the intra-frame prediction results of other sizes of the downsampled frame are calculated according to the pre-analysis intra-frame prediction results, and in particular, the intra-frame prediction results of other sizes of the downsampled frame may be simply derived according to the pre-analysis intra-frame prediction results.
S104: and compressing each downsampled frame according to the intra-frame prediction result of each size.
After determining the intra-frame prediction results of each size of the downsampled frame, selecting the minimum of the rate distortion costs from a plurality of intra-frame prediction results as the optimal intra-frame prediction result by adopting a rate distortion optimization technology, and then compressing the downsampled frame according to the optimal intra-frame prediction result.
Based on the technical scheme, the method for intra-frame compression provided by the application comprises the steps of obtaining the pre-analysis intra-frame prediction result of a downsampled frame from the pre-analysis result, calculating the intra-frame prediction results of other sizes of the downsampled frame according to the pre-analysis intra-frame prediction result, and finally compressing each downsampled frame according to the intra-frame prediction results of each size, so that the intra-frame prediction results of each size of an input frame do not need to be calculated in sequence, the intra-frame prediction process is simplified, and the aim of reducing the calculation complexity of intra-frame compression is fulfilled.
For the step S101 of the previous embodiment, the pre-analysis is performed on each input frame to obtain a pre-analysis result, and the specific process may be as shown in fig. 3, and referring to fig. 3, fig. 3 is a flowchart of a practical implementation of S101 in the method of intra-frame compression provided in fig. 1.
The method specifically comprises the following steps:
s301: downsampling each input frame to obtain downsampled frames;
s302: dividing the downsampled frame into preset macro blocks, and calculating a pre-analysis intra-frame prediction result according to each obtained preset macro block;
optionally, the preset macroblock mentioned herein may be an 8×8 block, or may be a 4×4 block, or may be a 16×16 block or other sizes, where the preset macroblock may correspondingly obtain an 8×8 intra-frame prediction result, a 4×4 intra-frame prediction result, a 16×16 intra-frame prediction result, and the user may change the pre-analysis process according to the requirement.
S303: calculating the combination cost of P, B frames of the downsampled frames according to the pre-analysis intra-frame prediction result;
s304: the combination mode of P, B frames with the minimum cost is selected as the frame type of the downsampled frames, and the frame type is used as the pre-analysis result.
Preferably, after each downsampled frame is compressed according to the intra-frame prediction result of each size, each downsampled frame may be inter-compressed according to the pre-analysis result.
Referring to fig. 4, fig. 4 is a block diagram of an apparatus for intra-frame compression according to an embodiment of the present application.
The apparatus may include:
the pre-analysis module 100 is configured to perform pre-analysis on each input frame to obtain a pre-analysis result;
an obtaining module 200, configured to obtain a pre-analysis intra-frame prediction result of the downsampled frame from the pre-analysis result;
a calculation module 300, configured to calculate intra-frame prediction results of other sizes of the downsampled frame according to the pre-analysis intra-frame prediction results;
the compression module 400 is configured to compress each downsampled frame according to the intra prediction result of each size.
Referring to fig. 5, fig. 5 is a block diagram of another apparatus for intra-frame compression according to an embodiment of the present application.
The pre-analysis module 100 may include:
the downsampling submodule is used for downsampling each input frame to obtain downsampled frames;
the dividing sub-module is used for dividing the downsampling frames by preset macro blocks and calculating a pre-analysis intra-frame prediction result according to the obtained preset macro blocks;
a first calculation sub-module, configured to calculate a combination cost of P, B frames of the downsampled frame according to the pre-analysis intra-frame prediction result;
and the selecting submodule is used for selecting the combination mode of the P, B frame with the minimum cost as the frame type of the downsampled frame and taking the frame type as the pre-analysis result.
The apparatus may further include:
and the inter-frame module is used for carrying out inter-frame compression on each downsampled frame according to the pre-analysis result.
The calculation module 300 may include:
a determining submodule, configured to determine each pixel value of the downsampled frame according to the pre-analysis intra-frame prediction result;
the acquisition sub-module is used for acquiring reference pixels of macro blocks with various sizes and filtering the reference pixels;
and the second calculation sub-module is used for calculating the predicted pixel value of the macro block with each size according to the filtered reference pixel and calculating the intra-frame prediction results of other sizes of the downsampled frame according to the predicted pixel value.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Referring to fig. 6, fig. 6 is a block diagram of an intra-frame compression device according to an embodiment of the present application.
In this embodiment, the intra-frame compression device 1 may be a PC (personal computer), a smart phone, a tablet computer, a palm computer, or a portable computer.
As shown in fig. 6, the intra-frame compression device 1 may include a memory 11, a processor 12, and a bus 13.
The memory 11 includes at least one type of readable storage medium including flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the intra frame compression device 1, for example a hard disk of the intra frame compression device 1. The memory 11 may in other embodiments also be an external storage device of the intra frame compression device 1, such as a plug-in hard disk provided on the intra frame compression device 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like. Further, the memory 11 may also include both the internal storage unit and the external storage device of the intra-frame compression device 1. The memory 11 may be used not only for storing application software installed in the intra-frame compression apparatus 1 and various types of data, such as codes of the intra-frame compression program 01, but also for temporarily storing data that has been output or is to be output.
The processor 12 may in some embodiments be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip for running program code or processing data stored in the memory 11, e.g. executing the intra-frame compression program 01, etc.
The bus 13 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus.
Further, the intra-frame compression device may also comprise a network interface 14, which network interface 14 may optionally comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the device 1 and other electronic devices.
Optionally, the device 1 may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the intra-frame compression device 1 and for displaying a visual user interface.
Fig. 6 shows only the intra-frame compression device 1 with components 11-14 and intra-frame compression procedure 01, it will be appreciated by a person skilled in the art that the structure shown in fig. 6 does not constitute a limitation of the intra-frame compression device 1, and may comprise fewer or more components than shown, or may combine certain components, or a different arrangement of components.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus, device, and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that, the foregoing reference numerals of the embodiments of the present invention are merely for describing the embodiments, and do not represent the advantages and disadvantages of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures disclosed herein or equivalent processes shown in the accompanying drawings, or any application, directly or indirectly, of the same technical field as defined by the claims.

Claims (9)

1. A method of intra-frame compression, the method comprising: pre-analyzing each input frame to obtain a pre-analysis result; the pre-analysis result is the frame type of the downsampled frame;
acquiring an intra-frame prediction result of the pre-analysis of the downsampled frame under the target size from the pre-analysis process;
calculating intra-frame prediction results of other sizes of the downsampled frames according to the pre-analysis intra-frame prediction results;
selecting an intra-frame prediction result with the minimum rate distortion cost from the intra-frame prediction results of all sizes as an optimal intra-frame prediction result, and compressing all the downsampled frames according to the optimal intra-frame prediction result;
and calculating the intra-frame prediction results of other sizes of the downsampled frame according to the pre-analysis intra-frame prediction results, wherein the method comprises the following steps:
determining each pixel value of the downsampled frame according to the pre-analysis intra-frame prediction result;
obtaining reference pixels of macro blocks with various sizes, and filtering the reference pixels;
and calculating predicted pixel values of the macro blocks with the sizes according to the filtered reference pixels, and calculating intra-frame prediction results with other sizes of the downsampled frames according to the predicted pixel values.
2. The method of claim 1, wherein pre-analyzing each input frame to obtain a pre-analysis result comprises:
downsampling each input frame to obtain downsampled frames;
dividing the downsampled frame by preset macro blocks, and calculating the pre-analysis intra-frame prediction result according to each obtained preset macro block;
calculating the combination cost of P, B frames of the downsampled frames according to the pre-analysis intra-frame prediction result;
and selecting a combination mode of P, B frames with the minimum cost as a frame type of the downsampled frames, and taking the frame type as the pre-analysis result.
3. The method of claim 2, further comprising, after compressing each of the downsampled frames according to intra prediction results for each size:
and carrying out inter-frame compression on each downsampled frame according to the pre-analysis result.
4. The method according to claim 2, wherein the preset macro block is in particular an 8x8 block.
5. The method according to claim 2, wherein the preset macro block is in particular a 4x4 block.
6. An apparatus for intra-frame compression, the apparatus comprising:
the pre-analysis module is used for carrying out pre-analysis on each input frame to obtain a pre-analysis result; the pre-analysis result is the frame type of the downsampled frame;
the acquisition module is used for acquiring a pre-analysis intra-frame prediction result of the downsampled frame under the target size from the pre-analysis process;
a calculation module, configured to calculate intra-frame prediction results of other sizes of the downsampled frame according to the pre-analysis intra-frame prediction result;
the compression module is used for selecting an intra-frame prediction result with the minimum rate distortion cost from the intra-frame prediction results of all the sizes as an optimal intra-frame prediction result, and compressing all the downsampled frames according to the optimal intra-frame prediction result;
the computing module is specifically configured to:
determining each pixel value of the downsampled frame according to the pre-analysis intra-frame prediction result;
obtaining reference pixels of macro blocks with various sizes, and filtering the reference pixels;
and calculating predicted pixel values of the macro blocks with the sizes according to the filtered reference pixels, and calculating intra-frame prediction results with other sizes of the downsampled frames according to the predicted pixel values.
7. The apparatus of claim 6, wherein the pre-analysis module comprises:
the downsampling submodule is used for downsampling each input frame to obtain downsampled frames;
the dividing sub-module is used for dividing the downsampling frame into preset macro blocks and calculating the prediction result in the pre-analysis frame according to the obtained preset macro blocks;
a first calculation sub-module, configured to calculate a combination cost of P, B frames of the downsampled frame according to the pre-analysis intra-frame prediction result;
and the selecting submodule is used for selecting a combination mode of P, B frames with the minimum cost as a frame type of the downsampled frames and taking the frame type as the pre-analysis result.
8. An intra-frame compression apparatus, characterized in that the intra-frame compression apparatus comprises:
a memory for storing a computer program;
processor for implementing the steps of the method of intra-frame compression according to any one of claims 1 to 5 when executing said computer program.
9. A computer readable storage medium having stored thereon a computer program executable by one or more processors to implement the steps of the method of intra-frame compression of any of claims 1 to 5.
CN201811639838.XA 2018-12-29 2018-12-29 Method, device, equipment and computer readable storage medium for intra-frame compression Active CN109587502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811639838.XA CN109587502B (en) 2018-12-29 2018-12-29 Method, device, equipment and computer readable storage medium for intra-frame compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811639838.XA CN109587502B (en) 2018-12-29 2018-12-29 Method, device, equipment and computer readable storage medium for intra-frame compression

Publications (2)

Publication Number Publication Date
CN109587502A CN109587502A (en) 2019-04-05
CN109587502B true CN109587502B (en) 2023-05-09

Family

ID=65933599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811639838.XA Active CN109587502B (en) 2018-12-29 2018-12-29 Method, device, equipment and computer readable storage medium for intra-frame compression

Country Status (1)

Country Link
CN (1) CN109587502B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113196779B (en) * 2019-10-10 2022-05-20 无锡安科迪智能技术有限公司 Method and device for compressing video clip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517080A (en) * 2012-06-21 2014-01-15 北京数码视讯科技股份有限公司 Real-time video stream encoder and real-time video stream encoding method
CN105915925A (en) * 2015-07-24 2016-08-31 乐视云计算有限公司 Coding unit construction method based on HEVC and coding unit construction device thereof
CN106961603A (en) * 2017-03-07 2017-07-18 腾讯科技(深圳)有限公司 Intracoded frame code rate allocation method and device
CN108924553A (en) * 2018-06-20 2018-11-30 腾讯科技(深圳)有限公司 Video coding, coding/decoding method, device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2191651A1 (en) * 2007-09-28 2010-06-02 Dolby Laboratories Licensing Corporation Video compression and tranmission techniques
US10455230B2 (en) * 2015-01-09 2019-10-22 Avago Technologies International Sales Pte. Limited Methods for improving low-cost video/image compression

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517080A (en) * 2012-06-21 2014-01-15 北京数码视讯科技股份有限公司 Real-time video stream encoder and real-time video stream encoding method
CN105915925A (en) * 2015-07-24 2016-08-31 乐视云计算有限公司 Coding unit construction method based on HEVC and coding unit construction device thereof
CN106961603A (en) * 2017-03-07 2017-07-18 腾讯科技(深圳)有限公司 Intracoded frame code rate allocation method and device
CN108924553A (en) * 2018-06-20 2018-11-30 腾讯科技(深圳)有限公司 Video coding, coding/decoding method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109587502A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
WO2022022297A1 (en) Video decoding method and apparatus, video encoding method and apparatus, device, and storage medium
EP3114838B1 (en) Hash table construction and availability checking for hash-based block matching
JP2006222968A (en) Method and device for coding video screen in inter-screen or in-screen mode
KR20210064362A (en) Method and apparatus for video coding
JP2023504408A (en) Method and apparatus for chroma sampling
CN114009048B (en) Filtering apparatus and method in video coding
WO2021077914A1 (en) Video coding method and apparatus, computer device and storage medium
CN111757111B (en) Video coding method, device, equipment and storage medium
US8290041B2 (en) Communication terminal
CN104704826A (en) Two-step quantization and coding method and apparatus
WO2023005830A1 (en) Predictive coding method and apparatus, and electronic device
CN109495742B (en) Video frame coding method, device and equipment
CN110300302B (en) Video coding method, device and storage medium
CN109587502B (en) Method, device, equipment and computer readable storage medium for intra-frame compression
US20220417530A1 (en) Image decoding device, image decoding method, and program
CN105100799A (en) Method for reducing intraframe coding time delay in HEVC encoder
JP2009089267A (en) Method and device for intra predictive coding, and program
WO2021196035A1 (en) Video coding method and apparatus
CN111182310A (en) Video processing method and device, computer readable medium and electronic equipment
US20220060754A1 (en) Apparatus and method for de-blocking filtering
CN114079769A (en) Video encoding method, apparatus, device and computer readable storage medium
CN113038179A (en) Video encoding method, video decoding method, video encoding device, video decoding device and electronic equipment
JP2022526547A (en) Image processing methods and electronic devices
JP2017005688A (en) Video encoding method and system using adaptive color conversion
CN114885160A (en) Video encoding and decoding method and device, computer readable medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant