CN115278264B - Image amplification and OSD superposition coding method and system - Google Patents

Image amplification and OSD superposition coding method and system Download PDF

Info

Publication number
CN115278264B
CN115278264B CN202211171415.6A CN202211171415A CN115278264B CN 115278264 B CN115278264 B CN 115278264B CN 202211171415 A CN202211171415 A CN 202211171415A CN 115278264 B CN115278264 B CN 115278264B
Authority
CN
China
Prior art keywords
data
code stream
osd
image
size
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
CN202211171415.6A
Other languages
Chinese (zh)
Other versions
CN115278264A (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.)
Zhejiang Xinmai Microelectronics Co ltd
Original Assignee
Hangzhou Xiongmai Integrated Circuit 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 Hangzhou Xiongmai Integrated Circuit Technology Co Ltd filed Critical Hangzhou Xiongmai Integrated Circuit Technology Co Ltd
Priority to CN202211171415.6A priority Critical patent/CN115278264B/en
Publication of CN115278264A publication Critical patent/CN115278264A/en
Application granted granted Critical
Publication of CN115278264B publication Critical patent/CN115278264B/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/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/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/186Methods 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 a colour or a chrominance component
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/445Receiver circuitry for the reception of television signals according to analogue transmission standards for displaying additional information

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a method and a system for image amplification and OSD superposition coding, wherein the method comprises the following steps: compressing and storing an original image into a memory to generate original image compressed data; extracting the original image compressed data from the memory, decompressing the original image compressed data, and decompressing the original image compressed data, wherein the decompressed original image compressed data comprises brightness data and chrominance data of an original image; inputting the decompressed luminance data and chrominance data into an image amplification module for amplification operation; obtaining OSD data needing screen display, and superposing the OSD data and image amplification data after an original image is amplified; the method and the system change the original three times of reading and writing into one time of reading and writing when simultaneously supporting the functions of image amplification and OSD (on screen display) superposition coding, thereby effectively reducing the storage bandwidth.

Description

Image amplification and OSD superposition coding method and system
Technical Field
The present invention relates to the field of image coding technologies, and in particular, to a method and a system for image amplification and OSD superposition coding.
Background
In the prior art, the related image amplification and OSD superposition coding method is implemented by a scheme of reading and writing the memory three times during superposition and final coding, please refer to a processing schematic diagram of the prior art shown in fig. 1, in the prior art, image amplification needs to perform one read-write operation with the memory, OSD superposition needs to perform one read-write operation with the memory, and finally image coding also needs to perform one read-write operation with the memory; the above three times of reading and writing operations with the memory greatly waste the storage bandwidth, and because each reading and writing operation needs to store the corresponding image, the memory needs to reserve at least twice of the storage space of the complete read-write image as the storage space of the image to be read and the storage space of the image to be written, thereby greatly wasting the storage resources.
Disclosure of Invention
One of the objects of the present invention is to provide an image enlarging and OSD superposition coding method and system, which changes the original three times of reading and writing into one time of reading and writing when simultaneously supporting the image enlarging and OSD (on screen display) superposition coding functions, thereby effectively reducing the storage bandwidth.
Another object of the present invention is to provide a method and a system for image amplification and OSD superposition coding, in which a custom image decompression module is provided, and the original image amplification module, the original OSD superposition coding module, and the original image coding module are connected in series in the execution flow through the custom image decompression module, so that a memory space at least 2 times that of a complete image does not need to be configured in the case of one-time reading and writing, and the overhead of the memory space is reduced.
Another object of the present invention is to provide a method and system for image enlargement and OSD superposition coding, which can perform up (image enlargement) and OSD operations required after data is taken out of a memory once, thereby avoiding data storage of image enlargement in the image enlargement step, performing OSD operations, and finally performing a waiting time for a standard coding operation, thereby improving coding efficiency.
Another object of the present invention is to provide a method and system for image enlargement and OSD superposition coding, wherein the method and system set a custom compression module to store custom compressed data in a memory, so that only the memory is required to provide a storage space of a complete image less than 1 time, and the memory capacity overhead is reduced.
To achieve at least one of the above objects, the present invention further provides an image enlargement and OSD superimposition coding method, the method including:
compressing and storing an original image into a memory to generate original image compressed data;
extracting the compressed data of the original image from an internal memory, decompressing the data of the original image, and decompressing the data of the original image, wherein the data of the original image comprises brightness data and chroma data;
inputting the decompressed luminance data and chrominance data into an image amplification module for amplification operation;
obtaining OSD data needing screen display, and superposing the OSD data and image amplification data after an original image is amplified;
and storing the superposed data into a cache for splicing and then executing standard image coding operation.
According to a preferred embodiment of the present invention, the method for extracting raw image data comprises: preferentially extracting the size value of the code stream from the memory, wherein the size value of the code stream is calculated every fixed line number according to the customized compression ratio, and the size value of the code stream is counted every fixed image block size after the extraction; and further extracting the corresponding code stream from the memory according to the size value of the code stream, executing the alignment operation of the code stream after the size of each fixed block of the extracted code stream is large, and caching the extracted code stream.
According to another preferred embodiment of the present invention, the extracted code stream includes a luminance code stream and a chrominance code stream, the threshold values of the buffer space of the luminance code stream and the buffer space of the chrominance code stream are set respectively, and if the spare threshold value of the buffer space of the luminance code stream and the chrominance code stream is greater than the corresponding threshold value of the buffer space, a new corresponding request for extracting the luminance code stream and the chrominance code stream is generated.
According to another preferred embodiment of the invention, after the code stream is extracted, whether the current code stream has the corresponding OSD superimposed data or not is judged, if the OSD superimposed data exists, the corresponding OSD superimposed data are read in sequence; if not, directly decompressing the extracted code stream; wherein the OSD superimposition data is superimposed and aligned in the vertical and horizontal directions according to the image block size in a standard image encoder.
According to another preferred embodiment of the present invention, the decompression method comprises: the method comprises the steps of firstly decompressing a brightness component code stream, extracting a brightness code stream size value and a code stream, then generating a plurality of first brightness code stream decompression block data according to the size of a decompression block, further combining the first brightness code stream decompression block data according to the size of a standard coding block to generate second brightness code stream decompression block data, and converting the second brightness code stream decompression block data into first structure cache data capable of inquiring the first brightness code stream decompression block.
According to another preferred embodiment of the present invention, the decompression method comprises: the chrominance code stream comprises a blue component code stream and a red component code stream, and the blue component code stream and the red component code stream are further subjected to decompression and cache operations in sequence after the luminance component code stream is decompressed and structurally cached; the method for decompressing the blue component code stream comprises the following steps: after the blue component code stream size value and the code stream data are extracted, generating a plurality of first blue code stream decompression block data according to the size of a decompression block, further combining the first blue code stream decompression block data according to the size of a standard coding block to form second blue code stream decompression block data, and converting the second blue code stream decompression block data into second structure cache data capable of inquiring the first blue code stream decompression block data; the red component code stream decompression method comprises the following steps: after the red component code stream size value and the code stream data are extracted, a plurality of first red code stream decompression block data are generated according to the size of a decompression block, the first red code stream decompression block data are further combined according to the size of a standard coding block to form second red code stream decompression block data, and the second red code stream decompression block data are converted into third structure cache data capable of inquiring the first red code stream decompression block data.
According to another preferred embodiment of the present invention, the first structure cache data, the second structure cache data and the third structure cache data are data stored in the FIFO cache sequentially, and the image enlarging operation and the OSD data superimposing operation are performed on the first structure cache data, the second structure cache data and the third structure cache data sequentially; if the current OSD data is decompressed, performing image amplification and OSD data superposition of the decompressed data with the current decompression block size, and performing analysis operation of the decompressed data with the next decompression block size; and if the current OSD data is not decompressed, waiting for the OSD data to be decompressed and then executing the analysis operation of the next decompressed data with the decompressed block size when the decompressed data with the decompressed block size is analyzed for the first time.
According to another preferred embodiment of the present invention, after the standard encoder obtains the parsed data, the standard encoder compresses the parsed luminance component data and the parsed chrominance component data into a standard code stream after obtaining the parsed data.
To achieve at least one of the above objects, the present invention further provides an image enlargement and OSD superposition coding system which performs the above-mentioned image enlargement and OSD superposition coding method.
The present invention further provides a computer-readable storage medium storing a computer program that can be executed by a processor to perform one of the above-described image enlargement and OSD superposition coding methods.
Drawings
Fig. 1 is a flow chart illustrating a method for image enlargement and OSD superposition coding according to the present invention.
Fig. 2 is a schematic diagram showing interaction between an image enlargement and OSD superposition coding method and a memory according to the present invention.
FIG. 3 is a block diagram of the data extraction module of the present invention.
Fig. 4 is a schematic diagram showing the value of Tab value (code stream size value) in the present invention.
Fig. 5 shows a splicing diagram of a standard encoder before processing data.
Detailed Description
The following description is presented to disclose the invention so as to enable any person skilled in the art to practice the invention. The preferred embodiments in the following description are given by way of example only, and other obvious variations will occur to those skilled in the art. The basic principles of the invention, as defined in the following description, may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
It is understood that the terms "a" and "an" should be interpreted as meaning that a number of one element or element is one in one embodiment, while a number of other elements is one in another embodiment, and the terms "a" and "an" should not be interpreted as limiting the number.
Referring to fig. 1-5, the present invention discloses an image enlarging and OSD superposition coding method and system, wherein the system includes: the system comprises a custom compression module, a data extraction module, a custom decompression module, an image amplification module, an OSD data superposition module and a cache coding module. The user-defined compression module compresses original image data into image compression code stream data with a specified size, stores the image compression code stream data into a memory, and also stores corresponding OSD compression code stream data which needs to be superposed in the memory.
Referring to the interaction diagram with the memory shown in fig. 2, the memory compressed code stream data is read out by the read module, after the compressed code stream data is read by the data extraction module, the image compressed code stream data and the OSD compressed code stream data are decompressed by the custom decompression module, the decompression block with a fixed size is generated by the decompression operation, the decompression block corresponding to the image data is input into the image amplification module for image amplification, the OSD data required to perform the OSD superimposition operation is input into the OSD data superimposition module, the OSD superimposition operation is performed on the amplified image, and the superimposed data is further put into the cache coding module for standard coding operation.
Specifically, please refer to the schematic flow diagram of the data extracting module shown in fig. 3, where the image compression code stream includes 3 parts, which are a compression code stream on the Y (luminance) component and a compression code stream on the C (chrominance) component, respectively; the original image is subjected to user-defined compression in a YC420 format, an example is given, the data extracting module extracts a compressed code stream and a compressed code stream size value (Tab) value, after a standard coding request signal is obtained, the Tab value is preferentially extracted from an internal memory, the size of a standard coding block is preferentially set to be 32 × 32, in the process of extracting the Tab value, tab values of 4 lines and 8 lines are firstly extracted from a brightness Y code stream component, wherein the Tab value on the brightness Y code stream component is counted once every 32x8 (horizontal 48x8 blocks); and further extracting 2 Tab values of 8 lines on the blue Cb code stream component, and the Tab values of the blue Cb code stream component are counted once every 16x8 (horizontal 28x 8 blocks); further extracting Tab values of 2 lines and 8 lines on the red Cr code stream component, wherein the Tab values of the red Cr code stream component are counted once every 16x8 (horizontal 28x 8 blocks). After the extraction of the Tab value of the compressed code stream size is finished, 32 lines of custom code streams are further extracted, wherein the extraction method of the image compressed code stream comprises the following steps: firstly, extracting 4 code streams of 8 lines on a brightness Y component, and carrying out byte alignment on the extracted brightness Y component code streams every 32x8 (horizontal 48x8 blocks) in size; then extracting 2 code streams of 8 lines on the blue color component Cb, wherein the blue color Cb component code streams are byte aligned once in the size of 16x8 (horizontal 2x8 blocks); the bitstream of 28 lines on the red Cr component, which is byte-aligned once per 16x8 (horizontal 2x8 blocks), is further extracted. And further judging whether OSD superposition operation is needed or not, and if so, extracting corresponding OSD data from the memory. And if not, directly inputting the extracted image data on different components into the image amplification module.
It should be noted that, in the present invention, it is preferable to read a Tab value every 8 rows, wherein the Tab value calculation method includes: tab _ num = (Hnum/32); wherein, each Tab value is represented by 10 bits, and Hnum is an effective point number of one line of the original image (32 alignment is taken upwards); after reading the Tab value and the code stream data, further storing the Tab value and the code stream data into a cache, wherein the cache in the cache coding module preferably selects a double-port FIFO cache, and the double-port FIFO cache is utilized to execute dynamic cache operation, so that the cache size can be saved. The invention executes different FIFO cache operations aiming at code streams with different components, and the specific method comprises the following steps:
after the code stream data of 32 lines is read, 4 code streams with 2048x8 (128 x 128) size are stored in a cache for the code stream on the brightness Y component, and if the FIFO cache space for the code stream on the brightness Y component is greater than a first cache space threshold value, a new code stream request for the Y component is generated. And storing 2 code streams with the size of 1024x8 (64 x 128) in a cache aiming at the code stream on the blue Cb component, and if the FIFO cache space of the code stream on the blue Cb component is larger than a second cache space threshold value, generating a new code stream request. And storing 2 code streams with the size of 1024x8 (64 x 128) in a cache aiming at the code stream on the red Cr component, and if the FIFO cache space of the code stream on the red Cr component is larger than a third cache space threshold value, generating a new code stream request. In the present invention, the first cache space threshold may be preferably set to 1024 bytes, and the second cache space threshold and the third cache space threshold may be preferably set to 512 bytes. It should be noted that, the data of the OSD blocks can be converted into a form of horizontal and vertical 32 alignment by software, so that the data can be more conveniently superimposed in a form of 32 × 32 blocks; meanwhile, the overlap of OSD block superposition is supported (the overlap area can only be 32x32 blocks as a unit), and the final display of the overlap area can be configured through a register; and the maximum number of stackable blocks of the OSD data superposition module for each frame can be configured by a register. Please refer to fig. 4, which shows a schematic diagram of the value of the Tab value (code stream size value) in the present invention, wherein the content of the Tab value in each 8 rows includes:
the 48bit indication signal is: bit15-0 = {3'h0, Y _blk _hnum, Y _ level } (wherein Y _ level is original brightness Y compression level 4bit, Y _blk _numis 8x8 blocks of 9 bit), bit31-16 = {3' h0, C _blk _hnum, C _level } (wherein C _ level is 4bit for original image chroma C compression level and 9bit for 8x8 blocks), bit47-32 = { code stream indicating how many times 128 bits are written }, and code stream Tab value 1 is put at the lower level, and 12 Tab values are stored in sequence every 128 bits.
After the image data caching is finished, further utilizing a user-defined decompression module to perform decompression operation on each component of the cached image data to generate a decompression block, wherein the decompression operation on the brightness Y component comprises the following steps: carrying out 32x8 decompression on the extracted code stream and Tab value according to the brightness Y component, successively decompressing into 4 decompression blocks of 32x8 in the vertical direction, and overlapping the four decompression blocks in the vertical direction to form a sum 32x32 block; in order to reduce the waste of buffer and conveniently take out a certain 32x8 block in subsequent operations, converting 32x32 block data (1024 pixel points in total, 8bit per pixel point) of a Y component into 8 first structure buffer data of 16x 64; further, decompressing the blue Cb component data; decompressing the extracted blue Cb component bitstream value and Tab value according to the blue Cb component 16x8, and sequentially decompressing into 2 16x8 decompression blocks in the vertical direction (i.e., forming a 16x16 block); in order to reduce the waste of cache and conveniently take out a certain 16x8 decompression block in subsequent operations, 16x16 block data (256 pixel points in total, 8bit per pixel point) of the blue Cb component is converted into 8 second cache structure data of 4x 64; finally, decompressing red Cr component data; decompressing the extracted code stream value and Tab value according to the red Cr component 16x8, and sequentially decompressing 2 16x8 decompression blocks (namely forming a 16x16 block) in the vertical direction; in order to reduce the waste of buffer and facilitate the subsequent operation of taking out a certain 16 × 8 decompression block, 16 × 16 block data (256 pixel points in total, 8bit per pixel point) of the red Cr component is converted into 8 third structure cache data of 4 × 64.
And inputting the code stream into an image amplification (up) module and an OSD module, and controlling the input of the code stream according to an air break (the hollow block in an FIFO queue is more than or equal to 2) formed by the output of the image amplification module and the OSD module. And if the number of the current code streams in the FIFO queue is less than a preset value, for example, 4 code stream blocks are in the FIFO queue, and the number of the current code stream blocks is less than 2, generating a code stream request, and decompressing new code stream blocks into the FIFO queue from the memory. It should be noted that: as shown in fig. 4, in the process of decompressing the code stream, the first 4 bytes of each 8 lines of the code stream are non-code stream values; the first byte is the decompression quantization level of Y, the second byte is the decompression quantization level of C, and the third and fourth bytes are the number of the entire 8-line code stream.
It should be noted that, in a preferred embodiment of the present invention, the image enlargement operation is performed on the basis of the original per 32 lines, and the video YC format data is performed on the basis of the parallel up (image enlargement) operation per 8 lines. The image enlargement operation is performed on each frame of the video, first the luminance Y component, then the blue Cb component and finally the red Cr component. The core technology of the invention is that the image amplification operation directly follows the decompression operation of the previous step, so that the image amplification does not need to acquire image data from the memory again, thereby reducing the waiting time for reading the memory data and improving the efficiency of image processing. If the image which is processed and amplified at present needs to be superposed with OSD, the superposed OSD is stored in the FIFO queue after amplification. The OSD superimposition image data is aligned with the standard 32x32 block size, so that multiple blocks cannot be superimposed and displayed in the same 32x32 block (to be distinguished from the superimposition operation, after all, only one OSD block content is displayed in the superimposition operation). It should be noted that the image enlargement operation itself is the prior art, and the technical improvement point of the present invention is to improve the image enlargement and OSD flow, so the present invention does not explain in detail how to enlarge the image.
Referring to fig. 5 specifically, after the operations of code stream decompression, image amplification and OSD data superposition are completed, the processed data is further input into the standard encoder module by performing the relevant image splicing operation, which is exemplified by the standard encoder H265 in the present invention, and the processed image data includes luminance Y component code stream data with a size of 32 × 32 blocks, blue Cb component code stream data with a size of 16 × 16 blocks, and red component code stream data with a size of 16 × 16 blocks. In which the 16 × 16 block-sized blue Cb component stream data and red component stream data are subjected to the structure shown in the right side of fig. 5, forming complete video data in YC format.
In particular, according to embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The computer program, when executed by a Central Processing Unit (CPU), performs the above-described functions defined in the method of the present application. It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wire segments, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless section, wire section, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be understood by those skilled in the art that the embodiments of the present invention described above and illustrated in the accompanying drawings are illustrative only and not restrictive of the broad invention, and that the objects of the invention have been fully and effectively achieved and that the functional and structural principles of the present invention have been shown and described in the embodiments and that modifications and variations may be resorted to without departing from the principles described herein.

Claims (5)

1. A method of image enlargement and OSD superposition coding, the method comprising:
compressing and storing the original image in an internal memory to generate original image compressed data;
extracting the original image compressed data from the memory, decompressing the original image compressed data, and decompressing the original image compressed data, wherein the decompressed original image compressed data comprises brightness data and chrominance data of an original image;
inputting the decompressed luminance data and chrominance data into an image amplification module for amplification operation;
obtaining OSD data needing screen display, and superposing the OSD data and image amplification data after an original image is amplified;
storing the superposed data into a cache for splicing and then executing standard image coding operation;
the raw image data extraction includes: firstly extracting the size value of the code stream from the memory,
the code stream size value is obtained by counting every other fixed image block size;
further extracting corresponding code streams from the memory according to the size values of the code streams, performing code stream alignment operation after extracting the code streams every fixed block size, and caching the extracted code streams;
the extracted code stream comprises a brightness code stream and a chrominance code stream, cache space thresholds of the brightness code stream and the chrominance code stream are respectively set, and if the spare cache space of the corresponding brightness code stream and the chrominance code stream is larger than the corresponding cache space threshold, a new corresponding brightness code stream and chrominance code stream extraction request is generated;
the decompressing the original image compressed data comprises: decompressing a luminance component code stream, extracting a luminance code stream size value and a code stream, generating a plurality of first luminance code stream decompression block data according to a decompression block size, further combining the first luminance code stream decompression block data according to a standard coding block size, generating second luminance code stream decompression block data, and converting the second luminance code stream decompression block data into first structure cache data capable of inquiring the first luminance code stream decompression block;
the chrominance code stream comprises a blue component code stream and a red component code stream, and the blue component code stream and the red component code stream are further subjected to decompression and cache operations in sequence after the luminance component code stream is decompressed and structurally cached; the blue component code stream decompression method comprises the following steps: after the blue component code stream size value and the code stream data are extracted, generating a plurality of first blue code stream decompression block data according to the size of a decompression block, further combining the first blue code stream decompression block data according to the size of a standard coding block to form second blue code stream decompression block data, and converting the second blue code stream decompression block data into second structure cache data capable of inquiring the first blue code stream decompression block data; the red component code stream decompression method comprises the following steps: after the red component code stream size value and the code stream data are extracted, generating a plurality of first red code stream decompression block data according to the size of a decompression block, further combining the first red code stream decompression block data according to the size of a standard coding block to form second red code stream decompression block data, and converting the second red code stream decompression block data into third structure cache data capable of inquiring the first red code stream decompression block data;
the first structure cache data, the second structure cache data and the third structure cache data are data stored in an FIFO cache in sequence, and image amplification operation and OSD data superposition operation are respectively executed on the first structure cache data, the second structure cache data and the third structure cache data in sequence; if the current OSD data is decompressed, performing image amplification and OSD data superposition of the decompressed data with the current decompression block size, and performing analysis operation of the decompressed data with the next decompression block size; and if the current OSD data is not decompressed, waiting for the OSD data to be decompressed and then executing the analysis operation of the next decompressed data with the decompressed block size when the decompressed data with the decompressed block size is analyzed for the first time.
2. The image amplification and OSD superposition coding method of claim 1, wherein after the code stream is extracted, whether the current code stream has corresponding OSD superimposed data is judged, and if the current code stream has the corresponding OSD superimposed data, the corresponding OSD superimposed data is sequentially read; if not, directly decompressing the extracted code stream; and the OSD overlapping data is overlapped and aligned in the vertical and horizontal directions according to the size of the image block in the standard image encoder.
3. The method of claim 1, wherein the standard encoding operation comprises: after the analyzed data is obtained, the analyzed luminance component data and the analyzed chrominance component data are compressed into standard code streams.
4. An image enlargement and OSD superimposition coding system comprising:
customizing a compression module;
a data extraction module;
customizing a decompression module;
an image magnification module;
an OSD data superposition module;
a cache coding module;
the custom compression module compresses original image data into image compression code stream data with a specified size, stores the image compression code stream data into a memory, and also stores corresponding OSD compression code stream data to be superimposed in the memory, and the system executes an image amplification and OSD superimposition coding method as claimed in any one of claims 1 to 3.
5. A computer-readable storage medium storing a computer program that can be executed by a processor to perform an image enlargement and OSD superimposition encoding method according to any one of claims 1 to 3.
CN202211171415.6A 2022-09-26 2022-09-26 Image amplification and OSD superposition coding method and system Active CN115278264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211171415.6A CN115278264B (en) 2022-09-26 2022-09-26 Image amplification and OSD superposition coding method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211171415.6A CN115278264B (en) 2022-09-26 2022-09-26 Image amplification and OSD superposition coding method and system

Publications (2)

Publication Number Publication Date
CN115278264A CN115278264A (en) 2022-11-01
CN115278264B true CN115278264B (en) 2023-02-28

Family

ID=83756971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211171415.6A Active CN115278264B (en) 2022-09-26 2022-09-26 Image amplification and OSD superposition coding method and system

Country Status (1)

Country Link
CN (1) CN115278264B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000333166A (en) * 1999-05-19 2000-11-30 Hitachi Ltd Means for decoding high efficiency coded image and image display device having the means
CN101150682A (en) * 2007-08-28 2008-03-26 西安交通大学 A graphic OSD controller integrated into video processing chip
CN101304533A (en) * 2008-06-24 2008-11-12 北京中星微电子有限公司 Video processing apparatus
CN101377922A (en) * 2008-08-01 2009-03-04 青岛海信电器股份有限公司 Method for generating and displaying OSD
WO2010077063A2 (en) * 2008-12-30 2010-07-08 엘지전자 주식회사 Image display and method for controlling the same
CN103856804A (en) * 2012-12-06 2014-06-11 索尼公司 Information processing apparatus, method and system, and output apparatus and method
WO2015146646A1 (en) * 2014-03-28 2015-10-01 ソニー株式会社 Image decoding device and method
CN105578190A (en) * 2016-02-03 2016-05-11 珠海全志科技股份有限公司 Lossless compression method and system for video hard decoding
CN109429069A (en) * 2017-08-23 2019-03-05 珠海全志科技股份有限公司 A kind of display stream condensing encoder and display engine
CN112835730A (en) * 2021-03-08 2021-05-25 上海肇观电子科技有限公司 Image storage, memory allocation, image synthesis method, device, equipment and medium
CN113132650A (en) * 2019-12-31 2021-07-16 深圳开阳电子股份有限公司 Video image display processing control device and method and display terminal
CN113592714A (en) * 2021-08-05 2021-11-02 杭州雄迈集成电路技术股份有限公司 Image amplification method, module and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU6766096A (en) * 1995-08-04 1997-03-05 Microsoft Corporation Method and system for rendering graphical objects to image chunks and combining image layers into a display image
JP2000347638A (en) * 1999-06-07 2000-12-15 Hitachi Ltd Osd device, coding video decoding device using it, and digital broadcast receiving device using the decoding device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000333166A (en) * 1999-05-19 2000-11-30 Hitachi Ltd Means for decoding high efficiency coded image and image display device having the means
CN101150682A (en) * 2007-08-28 2008-03-26 西安交通大学 A graphic OSD controller integrated into video processing chip
CN101304533A (en) * 2008-06-24 2008-11-12 北京中星微电子有限公司 Video processing apparatus
CN101377922A (en) * 2008-08-01 2009-03-04 青岛海信电器股份有限公司 Method for generating and displaying OSD
WO2010077063A2 (en) * 2008-12-30 2010-07-08 엘지전자 주식회사 Image display and method for controlling the same
CN103856804A (en) * 2012-12-06 2014-06-11 索尼公司 Information processing apparatus, method and system, and output apparatus and method
WO2015146646A1 (en) * 2014-03-28 2015-10-01 ソニー株式会社 Image decoding device and method
CN105578190A (en) * 2016-02-03 2016-05-11 珠海全志科技股份有限公司 Lossless compression method and system for video hard decoding
CN109429069A (en) * 2017-08-23 2019-03-05 珠海全志科技股份有限公司 A kind of display stream condensing encoder and display engine
CN113132650A (en) * 2019-12-31 2021-07-16 深圳开阳电子股份有限公司 Video image display processing control device and method and display terminal
CN112835730A (en) * 2021-03-08 2021-05-25 上海肇观电子科技有限公司 Image storage, memory allocation, image synthesis method, device, equipment and medium
CN113592714A (en) * 2021-08-05 2021-11-02 杭州雄迈集成电路技术股份有限公司 Image amplification method, module and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
视频芯片中的OSD核的设计及FPGA的实现;罗韬等;《吉林大学学报(工学版)》;20081115(第06期) *

Also Published As

Publication number Publication date
CN115278264A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
US11012489B2 (en) Picture file processing method, picture file processing device, and storage medium
WO2022252488A1 (en) Image compression method and apparatus, electronic device, and readable storage medium
CN108833938B (en) Method and apparatus for selecting video covers
US8014615B2 (en) System and method for decompressing video data and alpha channel data using a single stream
WO2020224551A1 (en) Information compression/decompression methods and apparatuses, and storage medium
US20160119621A1 (en) Image processing method and display apparatus
US20230336747A1 (en) Sample Adaptive Offset
US20230336733A1 (en) Sample Adaptive Offset
US20090262126A1 (en) System and Method for Separated Image Compression
CN114040246A (en) Image format conversion method, device, equipment and storage medium of graphic processor
CN113613008A (en) Video encoding and decoding method and device, electronic equipment and storage medium
CN113573059B (en) Image display method, image display apparatus, storage medium, and electronic apparatus
CN112991412B (en) Liquid crystal instrument sequence frame animation performance optimization method and liquid crystal instrument
CN112468792B (en) Image recognition method and device, electronic equipment and storage medium
CN115278264B (en) Image amplification and OSD superposition coding method and system
CN112153388A (en) Image compression method, device and related equipment
CN105554375A (en) Method and device of video preview in digital video recorder
CN110619667B (en) PNG picture compression method and system
CN102118616A (en) Picture decoding method and picture decoder
CN109379591B (en) Image transcoding method, electronic device and computer readable storage medium
CN115760539A (en) Image processing method and device and network equipment
CN114979541A (en) Video display system
US10362319B2 (en) Techniques for compressing multiple-channel images
CN110876069A (en) Method, device and equipment for acquiring video screenshot and storage medium
CN111131857A (en) Image compression method and device 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
CP03 Change of name, title or address

Address after: 311422 4th floor, building 9, Yinhu innovation center, 9 Fuxian Road, Yinhu street, Fuyang District, Hangzhou City, Zhejiang Province

Patentee after: Zhejiang Xinmai Microelectronics Co.,Ltd.

Address before: 311400 4th floor, building 9, Yinhu innovation center, No.9 Fuxian Road, Yinhu street, Fuyang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou xiongmai integrated circuit technology Co.,Ltd.

CP03 Change of name, title or address