CN113271466B - Image encoding method, decoding method, transmission method, storage device, and processing device - Google Patents

Image encoding method, decoding method, transmission method, storage device, and processing device Download PDF

Info

Publication number
CN113271466B
CN113271466B CN202010095200.5A CN202010095200A CN113271466B CN 113271466 B CN113271466 B CN 113271466B CN 202010095200 A CN202010095200 A CN 202010095200A CN 113271466 B CN113271466 B CN 113271466B
Authority
CN
China
Prior art keywords
data
component
lapb
image
value
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
CN202010095200.5A
Other languages
Chinese (zh)
Other versions
CN113271466A (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.)
Beijing Digibird Technology Co ltd
Original Assignee
Beijing Digibird 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 Beijing Digibird Technology Co ltd filed Critical Beijing Digibird Technology Co ltd
Priority to CN202010095200.5A priority Critical patent/CN113271466B/en
Publication of CN113271466A publication Critical patent/CN113271466A/en
Application granted granted Critical
Publication of CN113271466B publication Critical patent/CN113271466B/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/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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder

Landscapes

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

Abstract

The invention discloses an image coding method, a decoding method, a transmission method, a storage device and a processing device, belongs to the technical field of image transmission, and aims to divide image data into main data and auxiliary data, wherein the main data and the auxiliary data contain less information and can restore complete image data through integration, and complete video information is transmitted in a double-current mode, so that the problems of computer unnatural image color information loss and image font fuzzy color cast caused by an original YUV420 video sampling mode are solved.

Description

Image encoding method, decoding method, transmission method, storage device, and processing device
Technical Field
The invention belongs to the technical field of image transmission, and particularly relates to an image encoding method, a decoding method, a transmission method, a storage device and a processing device.
Background
With the increase of the demand of video networking transmission, exchange and storage, the video coding and decoding technology has wide application in the fields of internet, security protection, professional audio and video and the like. Whether software coding and decoding are carried out by using a computer or special embedded chip coding and decoding are used, compression standards such as H.264 and H.265 are mostly used, the bandwidth can be compressed very low, and the method is very beneficial to transmission, storage and exchange. These compression standards support YUV sampling formats that include YUV444, YUV422, YUV420, and so on.
Among the sampling formats, YUV444 has the best imaging quality, but the largest information amount, so the commonly used sampling format is YUV420, because this way can directly save the transmitted information amount, is beneficial to compressing the bandwidth, has better effect under natural images, and is a compromise scheme. However, for the unnatural image of a computer, since part of color information is lost in the conversion process, the edge details of the character image in the video picture are distorted, and font blurring or color cast is caused.
With the increasingly widespread use of computer video signals, the use of this technology cannot meet the requirements of people for image quality. However, the higher the quality of the image, the larger the data amount, and the larger the data amount, the transmission load will be caused by the excessive data, which is a contradiction. However, the improvement of image quality is a necessary trend, so that the problem needs to be solved urgently.
Disclosure of Invention
To solve the above problems, it is an object of the present invention to provide an image encoding method that splits image data based on YUV444 color space into main data and auxiliary data; the main data adopts a YUV420 data format, the Y component of the main data comprises Y values of all pixel points, the U component of the main data comprises U _ AVG of each pixel unit, and the V component of the main data comprises V _ AVG of each pixel unit; the auxiliary data adopts a YUV420 data format, and comprises U values and V values of 3 pixel points in the pixel unit; the pixel unit is a pixel lattice consisting of 4 preset adjacent pixel points; the U _ AVG is a correlation value which maps the U value of each pixel point in the pixel unit according to a first rule; and the V _ AVG is a correlation value which maps the V value of each pixel point in the pixel unit according to a second rule.
In some preferred examples, the Y value of each pixel point is arranged into the Y component of the main data according to a relative positional relationship; each U _ AVG is arranged to the U component of the main data according to the relative position relation of each pixel unit; each of the V _ AVGs is arranged to the V component of the main data in accordance with the relative positional relationship of each of the pixel units.
In some preferred examples, the Y component of the secondary data consists of U _ Lc and V _ Lc; wherein c is an odd number, U _ Lc is a set of U values of each pixel point in the odd-numbered line of the image data, and V _ Lc is a set of V values of the pixel points in the odd-numbered line of the image data; the U component of the auxiliary data consists of U _ LaPb and V _ LaPb; the V component of the auxiliary data consists of U _ LAPb and V _ LAPb; wherein, a =0,4,8 … …; a = a +2; b is an odd number; u _ LaPb is the U value of the pixel point of the a-th row and the b-th column of the image data; v _ LaPb is the V value of the pixel point of the a-th row and the b-th column of the image data; u _ LAPb is the U value of the pixel point of the A row and b column of the image data; and V _ LAPb is the V value of the pixel point of the A row and the b column of the image data.
In some preferred examples, each of the U _ Lc is arranged in a relative positional relationship to an upper half or a lower half of a Y component in the secondary data; each V _ Lc is arranged in a region opposite to the U _ Lc in the Y component in the auxiliary data according to a relative position relationship, namely the lower half part or the upper half part of the Y component; arranging the U _ LaPb to the upper half part or the lower half part of the U component in the auxiliary data according to the relative position relation; each V _ LaPb is arranged in a relative position relationship to a region opposite to the U _ LaPb in the U component in the auxiliary data, namely the lower half or the upper half of the U component; each U _ LAPb is arranged to the upper half part or the lower half part of the V component in the auxiliary data according to the relative position relation; each of the V _ lapbs is arranged in a relative positional relationship to an area of the V component in the secondary data that is opposite to the U _ LAPb, i.e., a lower half or an upper half of the V component.
In some preferred examples, the Y component of the secondary data consists of U _ Pc and V _ Pc; wherein c is an odd number, U _ Pc is a set of U values of each pixel point in the odd-numbered row of the image data, and V _ Pc is a set of V values of each pixel point in the odd-numbered row of the image data; the U component of the auxiliary data consists of U _ LaPb and V _ LaPb; the V component of the auxiliary data consists of U _ LaPB and V _ LaPB; wherein, a is odd; b =0,4,8 … …; b = B +2; U-LaPb is the U value of the pixel point of the a-th row and b-th column of the image data; v _ LaPb is the V value of the pixel point of the a-th row and the b-th column of the image data; u _ LaPB is the U value of the pixel point of the a-th row and the B-th column of the image data; and V _ LaPB is the V value of the pixel point of the a-th row and the B-th column of the image data.
In some preferred examples, each of the U _ Pc is arranged to the left half or the right half of the Y component in the secondary data in a relative positional relationship; each V _ Pc is arranged in a region opposite to the U _ Pc in the Y component in the auxiliary data according to a relative position relationship, namely the right half or the left half of the Y component; arranging the U _ LaPb into the left half or the right half of the U component in the auxiliary data according to the relative position relation; each V _ LaPb is arranged in a relative position relationship to a region opposite to the U _ LaPb in the U component in the auxiliary data, namely the right half or the left half of the U component; arranging the U _ LaPBs into the left half or the right half of the V component in the auxiliary data according to the relative position relation; each of the V _ lapbs is arranged in a relative positional relationship to an area of the V component in the secondary data opposite to the U _ LaPB, that is, a right half or a left half of the V component.
In some preferred examples, the first rule is the formula: u _ AVG = (U) 1 +U 2 + U 3 +U 4 ) The/4 indicates that U _ AVG is equal to the average value of U values of all 4 pixel points in the pixel unit; the second rule is a formula: v _ AVG = (V) 1 +V 2 +V 3 +V 4 ) And/4, wherein the V _ AVG is equal to the average value of the V values of all 4 pixel points in the pixel unit.
A second object of the present invention is to provide an image decoding method, based on the above image encoding method, for integrating the main data and the auxiliary data to restore the image data; "integration" specifically includes the steps of: s401, solving a U value and a V value of each pixel point in the pixel unit according to the inverse rule of the first rule and the second rule; s402, merging the U value and the V value which are calculated in the step S401 with the main data.
The invention also aims to provide an image transmission method, which transmits complete video information in a double-stream mode, solves the problems of color information loss of computer unnatural images and fuzzy color cast of image fonts caused by the original YUV420 video sampling mode, and comprises the following steps: s1, acquiring the image data; s2, executing the image coding method on the image data to obtain the main data and the auxiliary data; s3, transmitting the main data and the auxiliary data from the transmitting end to the receiving end; s4, executing the image decoding method on the transmitted main data and the transmitted auxiliary data to obtain the image data; and S5, using the image data for display.
In some preferred examples, the image data is data converted from an RGB color space to a YUV color space, or YUV raw data.
In some preferred examples, the h.264 or h.265 standard is adopted when the transmitting end and the receiving end decompress the main data and the auxiliary data.
It is a fourth object of the present invention to provide a storage device, in which a plurality of programs are stored, the programs being adapted to be loaded and executed by a processor to implement the image transmission method described above.
The fifth purpose of the invention is to provide a processing device, which comprises a processor and a storage device; a processor adapted to execute various programs; a storage device adapted to store a plurality of programs; the program is adapted to be loaded and executed by a processor to implement the image transmission method as described above.
The invention has the beneficial effects that:
1) The invention adopts a double-flow splitting and integrating mode, the main data can be displayed without the auxiliary data, and meanwhile, the invention can be compatible with other mature coding and decoding equipment.
2) Compared with other YUV420 format data, the main data has better display effect.
3) The invention ensures the image quality of YUV444 by using a double-current splitting and integrating mode, and has no damage, color cast and blur after network transmission.
4) The invention has wide application scenes and can realize high-quality compression, transmission, exchange and display of various video sources.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is a schematic diagram of the data content of a pixel cell in image data;
FIG. 2 is a schematic diagram of the data content of a pixel unit in main data;
FIG. 3 is a schematic diagram of data content in a splitting process of image data based on a first splitting mode;
FIG. 4 is a schematic diagram of the data content of the main data in the first splitting mode;
FIG. 5 is a schematic diagram of the data content of the auxiliary data in the first splitting mode;
FIG. 6 is a schematic diagram of data content in a splitting process of image data based on a second splitting mode;
FIG. 7 is a schematic diagram of the data content of the main data in the second splitting mode;
fig. 8 is a schematic diagram of the data content of the secondary data in the second splitting mode.
Detailed Description
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and are not intended to limit the scope of the present invention.
Example 1:
the embodiment discloses an image coding method, which splits image data based on YUV444 color space into main data and auxiliary data.
The main data adopts YUV420 data format, the Y component of the main data comprises Y values of all pixel points, the U component of the main data comprises U _ AVG of each pixel unit, and the V component of the main data comprises V _ AVG of each pixel unit. The pixel unit is a pixel lattice composed of preset 4 adjacent pixel points. Fig. 1 shows a case of information contained in one pixel unit in image data, and fig. 2 shows a case of information contained in one pixel unit in main data.
The contents of the main data are understood as follows: referring to fig. 3 and fig. 4, in the splitting process, U _ AVG and V _ AVG of a pixel unit of image data are recorded in the pixel unit, and in this embodiment, the data is recorded in a pixel point at the upper left corner of the pixel unit. After splitting, each data is moved to a position corresponding to the grid pattern. The main data includes a Y value corresponding to each pixel point and U _ AVG and V _ AVG of each pixel unit. Arranging the Y value of each pixel point into the Y component of the main data according to the relative position relation; each U _ AVG is arranged to the U component of the main data according to the relative position relationship of each pixel unit; each V _ AVG is arranged to the V component of the main data in accordance with the relative positional relationship of each pixel unit.
The auxiliary data includes U and V values of 3 pixels in a pixel unit.
The auxiliary data also adopts YUV420 data format, and the following two ways of combining data can be adopted:
firstly, the Y component of the auxiliary data consists of U _ Lc and V _ Lc; the U component of the auxiliary data is composed of U _ LaPb and V _ LaPb; the V component of the secondary data is composed of U _ LAPb and V _ LAPb.
Wherein c is an odd number, U _ Lc is a set of U values of each pixel point in an odd-numbered line of the image data, and V _ Lc is a set of V values of pixel points in the odd-numbered line of the image data; a =0,4,8 … …; a = a +2; b is an odd number; u _ LaPb is the U value of the pixel point of the a-th row and the b-th column of the image data; v _ LaPb is the V value of the pixel point of the a-th row and b-th column of the image data; u _ LAPb is the U value of the pixel point of the A row and b column of the image data; v _ LAPb is the V value of the pixel point of the A row and b column of the image data.
Referring to fig. 3 to fig. 5, in the splitting process, the data is also moved to the position corresponding to the checkered pattern according to the pattern in the drawing, and the content of the specifically split auxiliary data is as shown in fig. 5. Each U _ Lc is arranged on the upper half part or the lower half part of the Y component in the auxiliary data according to the relative position relation; each V _ Lc is arranged in a region opposite to the U _ Lc in the Y component in the auxiliary data according to the relative position relationship, namely the lower half part or the upper half part of the Y component; arranging the U _ LaPb in the upper half or the lower half of the U component in the auxiliary data according to the relative position relation; each V _ LaPb is arranged in a region opposite to the U _ LaPb in the U component in the auxiliary data according to the relative position relationship, namely the lower half part or the upper half part of the U component; each U _ LAPb is arranged on the upper half part or the lower half part of the V component in the auxiliary data according to the relative position relation; each V _ LAPb is arranged in the secondary data in a region opposed to U _ LAPb in the V component, i.e., the lower half or the upper half of the V component, in a relative positional relationship.
Secondly, the Y component of the auxiliary data consists of U _ Pc and V _ Pc; the U component of the auxiliary data is composed of U _ LaPb and V _ LaPb; the V component of the auxiliary data consists of U _ LaPB and V _ LaPB;
wherein c is an odd number, U _ Pc is a set of U values of each pixel point in the odd-numbered row of the image data, and V _ Pc is a set of V values of each pixel point in the odd-numbered row of the image data; a is an odd number; b =0,4,8 … …; b = B +2; U-LaPb is the U value of the pixel point of the a-th row and b-th column of the image data; v _ LaPb is the V value of the pixel point of the a-th row and b-th column of the image data; u _ LaPB is the U value of the pixel point of the a-th row and the B-th column of the image data; v _ LaPB is the V value of the pixel point of the a-th row and B-column of the image data.
Referring to fig. 6 to 8, in the splitting process, the data is also moved to the position corresponding to the checkered pattern according to the pattern in the drawing, and the content of the specifically split auxiliary data is as shown in fig. 8. Arranging the U _ Pc into the left half or the right half of the Y component in the auxiliary data according to the relative position relation; arranging each V _ Pc in a region opposite to the U _ Pc in the Y component in the auxiliary data according to the relative position relationship, namely the right half part or the left half part of the Y component; arranging the U _ LaPb into the left half or the right half of the U component in the auxiliary data according to the relative position relation; each V _ LaPb is arranged in a relative position relationship to a region opposite to the U _ LaPb in the U component in the auxiliary data, namely the right half or the left half of the U component; arranging the U _ LaPBs into the left half or the right half of the V component in the auxiliary data according to the relative position relation; each V _ LaPB is arranged in the auxiliary data in a relative positional relationship to an area opposite to U _ LaPB in the V component, that is, a right half or a left half of the V component.
The auxiliary data can be set optionally according to one of the two modes, and the main purpose of setting the mode is to ensure that the sampling mode meets the YUV420 format requirement and ensure the data relevance of the YUV 420. The requirements of encoding and decoding are met, and the encoding and decoding effects are improved.
The format of the main data and the format of the auxiliary data are both set to YUV420 because the most common decompression standards are h.264 and h.265 standards, and the common software and hardware codecs for h.264 and h.265 are only compatible with the format of YUV420, so the YUV420 format is the first choice of the main data and the auxiliary data for controlling the development cost.
U _ AVG is a correlation value that maps the U value of each pixel in the pixel unit according to a first rule, where the first rule is a formula: u _ AVG = (U) 1 +U 2 +U 3 +U 4 ) /4, which means that U _ AVG equals to the U value of all 4 pixels in the pixel unitAnd (4) average value.
The V _ AVG is a correlation value that maps the V value of each pixel point in the pixel unit according to a second rule, and the second rule is a formula: v _ AVG = (V) 1 +V 2 +V 3 +V 4 ) And/4, wherein the V _ AVG is equal to the average value of the V values of all 4 pixel points in the pixel unit.
The coded data adopts mean value processing, which is beneficial to relieving the phenomena of color cast and fuzzy display of the text image during decoding and displaying.
The split main data and the split auxiliary data can be compressed and transmitted by using an existing compression algorithm, and the split main data and the split auxiliary data can be decompressed and then reintegrated to restore image data, which will be described in detail in embodiments presented later.
Example 2:
this embodiment discloses an image decoding method based on embodiment 1, which integrates main data and auxiliary data to restore image data.
"integration" specifically includes the following steps:
s401, solving the U value and the V value of each pixel point in the pixel unit according to the inverse rule of the first rule and the second rule (namely, the U value and the V value of 3 known pixel points and the associated values U _ AVG and V _ AVG can obtain the U value and the V value of all the pixel points in the pixel unit);
s402 and S401 combine the main data with the U and V values obtained by the calculation.
After integration, each pixel point in the main data contains the respective Y value, U value and V value, that is, the image data is restored, and the image data contains all image information at this time, so that the problems of image color information loss and image font fuzzy color cast can be avoided when displaying.
Example 3:
the present embodiment discloses an image transmission method based on embodiment 1 and embodiment 2, including the steps of:
s1, acquiring the image data in the embodiment 1. The image data may be data converted from an RGB color space to a YUV color space; or YUV color space, which can be used directly.
And S2, performing the image coding method in the embodiment 1 on the image data to obtain the main data and the auxiliary data in the embodiment 1.
And S3, transmitting the main data and the auxiliary data from the transmitting end to the receiving end. The H.264 or H.265 standard is adopted in the transmission process.
And S4, performing the image decoding method in the embodiment 2 on the transmitted main data and the transmitted auxiliary data to obtain image data.
And S5, using the image data for display.
In the method, the image data is split and transmitted, and the transmitted main data and the auxiliary data are integrated to restore the image data, so that the image quality is ensured during display. In addition, the transmitted main data may be displayed separately without being integrated with the auxiliary data.
The problems of color information loss of unnatural images of a computer and fuzzy color cast of image fonts caused by the original YUV420 video sampling mode are solved. The invention has wide application scenes and can realize high-quality compression, transmission, exchange and display of various video sources.
Example 4:
the present embodiment discloses a storage device in which a plurality of programs are stored, the programs being adapted to be loaded and executed by a processor to implement the image transmission method in embodiment 3.
Example 5:
the embodiment discloses a processing device, which comprises a processor and a storage device; a processor adapted to execute various programs; a storage device adapted to store a plurality of programs; the program is adapted to be loaded and executed by a processor to implement the image transmission method in embodiment 3.
While the invention has been described with reference to a preferred embodiment, various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention, and particularly, features shown in the various embodiments may be combined in any suitable manner without departing from the scope of the invention. It is intended that the invention not be limited to the particular embodiments disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.
In the description of the present invention, the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like, which indicate directions or positional relationships, are based on the directions or positional relationships shown in the drawings, which are for convenience of description only, and do not indicate or imply that the devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Furthermore, it should be noted that, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, article, or apparatus 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, article, or apparatus.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.

Claims (9)

1. An image encoding method characterized by: dividing image data based on a YUV444 color space into main data and auxiliary data;
the main data adopts a YUV420 data format, the Y component of the main data comprises Y values of all pixel points, the U component of the main data comprises U _ AVG of each pixel unit, and the V component of the main data comprises V _ AVG of each pixel unit;
arranging the Y value of each pixel point into the Y component of the main data according to the relative position relation;
each U _ AVG is arranged to the U component of the main data according to the relative position relation of each pixel unit;
each of the V _ AVGs is arranged to the V component of the main data in accordance with the relative positional relationship of each of the pixel units;
the auxiliary data adopts a YUV420 data format, and comprises U values and V values of 3 pixel points in the pixel unit;
the Y component of the auxiliary data is composed of U _ Lc and V _ Lc;
wherein c is an odd number, U _ Lc is a set of U values of each pixel point in the odd-numbered line of the image data, and V _ Lc is a set of V values of the pixel points in the odd-numbered line of the image data;
the U component of the auxiliary data is composed of U _ LaPb and V _ LaPb;
the V component of the secondary data is composed of U _ LAPb and V _ LAPb;
wherein, a =0,4,8 … …; a = a +2; b is an odd number; u _ LaPb is the U value of the pixel point of the a-th row and the b-th column of the image data; v _ LaPb is the V value of the pixel point of the a-th row and the b-th column of the image data; u _ LAPb is the U value of the pixel point of the A row and b column of the image data; v _ LAPb is the V value of the pixel point of the A row and b column of the image data;
each U _ Lc is arranged on the upper half part or the lower half part of the Y component in the auxiliary data according to the relative position relation;
each V _ Lc is arranged in a region opposite to the U _ Lc in the Y component in the auxiliary data according to a relative position relationship, namely the lower half part or the upper half part of the Y component;
arranging the U _ LaPb to the upper half part or the lower half part of the U component in the auxiliary data according to the relative position relation;
each V _ LaPb is arranged in a relative position relationship to a region opposite to the U _ LaPb in the U component in the auxiliary data, namely the lower half or the upper half of the U component;
each U _ LAPb is arranged to the upper half part or the lower half part of the V component in the auxiliary data according to the relative position relation;
each V _ LAPb is arranged in a region of the V component in the secondary data opposite to the U _ LAPb according to a relative positional relationship, that is, a lower half or an upper half of the V component;
the pixel unit is a pixel lattice consisting of 4 preset adjacent pixel points;
the U _ AVG is a correlation value which maps the U value of each pixel point in the pixel unit according to a first rule; the V _ AVG is a correlation value which maps the V value of each pixel point in the pixel unit according to a second rule;
the first rule is a formula: u _ AVG = (U) 1 +U 2 +U 3 +U 4 ) The/4 indicates that U _ AVG is equal to the average value of U values of all 4 pixel points in the pixel unit;
the second rule is a formula: v _ AVG = (V) 1 +V 2 +V 3 +V 4 ) And/4, wherein the V _ AVG is equal to the average value of the V values of all 4 pixel points in the pixel unit.
2. The image encoding method according to claim 1, wherein:
the Y component of the auxiliary data is composed of U _ Pc and V _ Pc;
wherein c is an odd number, U _ Pc is a set of U values of each pixel point in the odd-numbered row of the image data, and V _ Pc is a set of V values of each pixel point in the odd-numbered row of the image data;
the U component of the auxiliary data consists of U _ LaPb and V _ LaPb;
the V component of the auxiliary data consists of U _ LaPB and V _ LaPB;
wherein, a is odd; b =0,4,8 … …; b = B +2; U-LaPb is the U value of the pixel point of the a-th row and b-th column of the image data; v _ LaPb is the V value of the pixel point of the a-th row and the b-th column of the image data; u _ LaPB is the U value of the pixel point of the a-th row and the B-th column of the image data; and V _ LaPB is the V value of the pixel point of the a-th row and the B-th column of the image data.
3. The image encoding method according to claim 2, wherein:
arranging the U _ Pc to the left half part or the right half part of the Y component in the auxiliary data according to the relative position relation;
arranging each V _ Pc in a relative position relation to a region opposite to the U _ Pc in the Y component in the auxiliary data, namely the right half part or the left half part of the Y component;
arranging the U _ LaPb to the left half part or the right half part of the U component in the auxiliary data according to the relative position relation;
arranging each V _ LaPb in a relative position relation to a region opposite to the U _ LaPb in the U component in the auxiliary data, namely the right half part or the left half part of the U component;
arranging the U _ LaPBs into the left half or the right half of the V component in the auxiliary data according to the relative position relation;
each of the V _ lapbs is arranged in a relative positional relationship to an area of the V component in the secondary data opposite to the U _ LaPB, that is, a right half or a left half of the V component.
4. An image decoding method, wherein the main data and the auxiliary data are integrated to restore the image data based on the image encoding method according to any one of claims 1 to 3;
"integration" specifically includes the following steps:
s401, solving a U value and a V value of each pixel point in the pixel unit according to the inverse rule of the first rule and the second rule;
and S402, combining the U value and the V value which are calculated in the step S401 with the main data.
5. An image transmission method, comprising the steps of:
s1, acquiring the image data of any one of claims 1-3;
s2, performing the image coding method of any one of claims 1 to 3 on the image data to obtain the main data and the auxiliary data of any one of claims 1 to 3;
s3, transmitting the main data and the auxiliary data to a receiving end from a transmitting end;
s4, performing the image decoding method of claim 4 on the transmitted main data and the auxiliary data to obtain the image data;
and S5, using the image data for display.
6. The image transmission method according to claim 5, characterized in that: the image data is data converted from an RGB color space to a YUV color space, or YUV original data.
7. The image transmission method according to claim 5, characterized in that: and the transmitting end and the receiving end adopt H.264 or H.265 standards when decompressing the main data and the auxiliary data.
8. A storage device in which a plurality of programs are stored, wherein said programs are adapted to be loaded and executed by a processor to implement the image transmission method according to any one of claims 6 to 7.
9. A processing device comprising a processor and a storage device; a processor adapted to execute various programs; a storage device adapted to store a plurality of programs; the method is characterized in that: the program is adapted to be loaded and executed by a processor to implement the image transmission method of any one of claims 6 to 7.
CN202010095200.5A 2020-02-14 2020-02-14 Image encoding method, decoding method, transmission method, storage device, and processing device Active CN113271466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010095200.5A CN113271466B (en) 2020-02-14 2020-02-14 Image encoding method, decoding method, transmission method, storage device, and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010095200.5A CN113271466B (en) 2020-02-14 2020-02-14 Image encoding method, decoding method, transmission method, storage device, and processing device

Publications (2)

Publication Number Publication Date
CN113271466A CN113271466A (en) 2021-08-17
CN113271466B true CN113271466B (en) 2022-12-02

Family

ID=77227363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010095200.5A Active CN113271466B (en) 2020-02-14 2020-02-14 Image encoding method, decoding method, transmission method, storage device, and processing device

Country Status (1)

Country Link
CN (1) CN113271466B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MY162861A (en) * 2007-09-24 2017-07-31 Koninl Philips Electronics Nv Method and system for encoding a video data signal, encoded video data signal, method and system for decoding a video data signal
US9979960B2 (en) * 2012-10-01 2018-05-22 Microsoft Technology Licensing, Llc Frame packing and unpacking between frames of chroma sampling formats with different chroma resolutions
US9749646B2 (en) * 2015-01-16 2017-08-29 Microsoft Technology Licensing, Llc Encoding/decoding of high chroma resolution details
CN109951715B (en) * 2019-02-25 2020-09-22 北京新兴东方航空装备股份有限公司 H.264-based YUV444 image coding and decoding method

Also Published As

Publication number Publication date
CN113271466A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US10242646B2 (en) RGB to YUV format conversion and inverse conversion method and circuit for depth packing and depacking
US11463700B2 (en) Video picture processing method and apparatus
EP3369242B1 (en) Compressing and uncompressing method for high bit-depth medical gray scale images
US8184127B2 (en) Apparatus for and method of generating graphic data, and information recording medium
US7215708B2 (en) Resolution downscaling of video images
US7894681B2 (en) Sequential decoding of progressive coded JPEGS
CN106331712B (en) A kind of video image compressing method
CN108271024A (en) Image coding, coding/decoding method and device
CN112995664B (en) Image sampling format conversion method, computer-readable storage medium, and encoder
CN102308582B (en) Method for the segmentation encoding of an image
JP2000050274A (en) Method and device for changing size of image frame including field mode coding
CN111738951B (en) Image processing method and device
US20050196056A1 (en) Image coding and decoding method
US8055069B2 (en) Image data sampling method
EP1850290A2 (en) Image processing apparatus and method for preventing degradation of image quality when bit format of image is converted
CN114788280A (en) Video coding and decoding method and device
CN113271466B (en) Image encoding method, decoding method, transmission method, storage device, and processing device
CN110619667B (en) PNG picture compression method and system
CN114467298A (en) Image signal conversion processing method and device and terminal equipment
US20070046792A1 (en) Image compositing
KR20060056558A (en) Encoding and decoding method for video
US20060274953A1 (en) Signal processing method, signal processing apparatus, computer-readable medium and a data recording medium
US20050286803A1 (en) Image processing apparatus, display device, image processing method, and image processing program
CN116347089B (en) JPEG image processing method and device, electronic equipment and storage medium
CN115623217B (en) Image preprocessing method, device and system

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