WO2016119196A1 - 图像编码方法、装置以及图像处理设备 - Google Patents

图像编码方法、装置以及图像处理设备 Download PDF

Info

Publication number
WO2016119196A1
WO2016119196A1 PCT/CN2015/071904 CN2015071904W WO2016119196A1 WO 2016119196 A1 WO2016119196 A1 WO 2016119196A1 CN 2015071904 W CN2015071904 W CN 2015071904W WO 2016119196 A1 WO2016119196 A1 WO 2016119196A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
palette
encoding
encoded
components
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.)
Ceased
Application number
PCT/CN2015/071904
Other languages
English (en)
French (fr)
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to PCT/CN2015/071904 priority Critical patent/WO2016119196A1/zh
Priority to CN201580049133.0A priority patent/CN106688236B/zh
Publication of WO2016119196A1 publication Critical patent/WO2016119196A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding

Definitions

  • the present invention relates to the field of graphic image technology, and in particular, to an image encoding method, apparatus, and image processing apparatus.
  • Palette-based coding is widely used in graphic image technology (especially video coding technology).
  • a coding unit for the image area to be encoded, for example, a coding unit (CU), including a plurality of pixels having color values (for example, RGB mode, having 24 bits of true color); in order to reduce the storage bits
  • the storage capacity of the image image which can usually point the pixel to the data index of the palette.
  • the color value of each output pixel can be determined by looking up a palette with a corresponding data index.
  • the palette is a set of pixel values. For pixels whose pixel values are in the palette, only the pixel index corresponding to the pixel value in the palette is used. Thereby, only the palette and the index corresponding to the pixels in the coding unit can be bit-stream encoded, and the bit cost of the coding can be reduced.
  • a scheme using a non-palette mode for example, an escape mode
  • the pixel value of the pixel may be directly used for encoding; or the pixel may be further predicted, and the pixel is not toned.
  • the prediction index in the board prediction table (which may be referred to as an escape predictor table) and the corresponding flag are encoded.
  • Embodiments of the present invention provide an image encoding method, apparatus, and image processing apparatus. Even images that are not in the 4:4:4 signal format can be applied with palette-based encoding, further increasing the compression ratio to reduce the bit cost of encoding.
  • an image encoding method including:
  • the palette includes a first portion and a second portion, each item of the first portion having a plurality of components including a luminance component and a chrominance component, Each item of the second part has a luminance component;
  • the pixel index corresponding to the pixel of the palette mode and the encoding information corresponding to the pixel of the non-palette mode are used for bit stream encoding.
  • an image encoding apparatus including:
  • a mode determining unit determining, by using a palette mode, a plurality of pixels in the image region to be encoded, and determining to adopt a non-palette mode for the other one or more pixels in the image region to be encoded;
  • a palette determining unit that determines a palette corresponding to the image region to be encoded; wherein the palette includes a first portion and a second portion, each item of the first portion having a luminance component and a chrominance component a plurality of components, each of the second portions having a luminance component;
  • a pixel index determining unit configured to determine a corresponding pixel index for the pixel adopting the palette mode
  • the encoding information determining unit determines corresponding encoding information for the pixels adopting the non-pal palette mode
  • the bitstream encoding unit performs bitstream encoding on the palette, using a pixel index corresponding to the pixel of the palette mode and encoding information corresponding to the pixel in the non-palette mode.
  • an image processing apparatus comprising the image encoding apparatus as described above.
  • a computer readable program wherein when the program is executed in an image processing apparatus, the program causes a computer to perform image encoding as described above in the image processing apparatus method.
  • a storage medium storing a computer readable program, wherein the computer readable program causes a computer to perform an image encoding method as described above in an image processing apparatus.
  • An advantageous effect of an embodiment of the present invention is to determine a palette corresponding to an image region to be encoded; wherein the palette includes a first portion and a second portion, each item of the first portion having a luminance component and a chrominance component a plurality of components, each of the second portions having a luminance component; and the palette, the pixel index corresponding to the pixel of the palette mode and the encoding information corresponding to the pixel using the non-palette mode Bitstream encoding.
  • FIG. 1 is a schematic diagram of an example of a coding unit according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of another example of a coding unit according to an embodiment of the present invention.
  • 3 is a schematic diagram showing the distribution of luminance samples and chroma samples in an image of a 4:4:4 signal format
  • FIG. 4 is a schematic diagram showing the distribution of luminance samples and chroma samples in an image of a 4:2:2 signal format
  • FIG. 5 is a schematic diagram showing the distribution of luminance samples and chroma samples in an image of a 4:2:0 signal format
  • FIG. 6 is a schematic flow chart of an image encoding method according to an embodiment of the present invention.
  • FIG. 9 is another schematic flowchart of an image encoding method according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an image encoding apparatus according to an embodiment of the present invention.
  • Figure 11 is a block diagram showing the structure of an image processing apparatus according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram showing an example of a coding unit according to an embodiment of the present invention, showing a case of a coding unit (CU).
  • the coding unit has 8 ⁇ 8 pixels; pixels having the same pixel value use the same symbol to represent pixel values, such as C0, C1, ..., C8.
  • C6, C7, and C8 in FIG. 1 can be considered to adopt a non-palette mode (which can also be called an escape mode).
  • the non-palette mode is adopted for C6, C7, and C8 in FIG. 1, and the other pixels are illustrated by using the palette mode as an example.
  • FIG. 2 is a schematic diagram of another example of a coding unit according to an embodiment of the present invention, showing an index situation after the coding unit of FIG. 1 adopts a Palette.
  • the index of the pixel value C0 in the palette is 0, the index of the pixel value C1 in the palette is 1, the index of the pixel value C2 in the palette is 2, and the pixel value C3 is adjusted.
  • the index in the swatch is 3, the index of the pixel value C4 in the palette is 4, and the index of the pixel value C5 in the palette is 5.
  • 3 is a schematic diagram of luminance (luma) sample and chroma sample distribution in an image of 4:4:4 signal format, as shown in FIG. 3, in a 4:4:4 signal format image, each pixel Both correspond to one luminance sample and one chrominance sample. For example, one luminance component Y and two chrominance components UV are transmitted for each pixel.
  • 4 is a schematic diagram of luminance sample and chrominance sample distribution in an image of a 4:2:2 signal format. As shown in FIG. 4, in a 4:2:2 signal format image, each pixel has a luminance sample and Every two pixels have a chroma sample.
  • 5 is a schematic diagram of luminance sample and chrominance sample distribution in an image of a 4:2:0 signal format. As shown in FIG. 5, in a 4:2:0 signal format image, each pixel has a luminance sample and There is one chroma sample every four pixels.
  • the present invention is not limited to the above signal format.
  • the following describes the embodiment of the present invention by taking the 4:2:2 signal format and the 4:2:0 signal format as an example.
  • FIG. 6 is a schematic flowchart of an image encoding method according to an embodiment of the present invention. As shown in FIG. 6, the encoding method includes:
  • Step 601 determining, by using a palette mode, a plurality of pixels in the image region to be encoded, and determining to adopt a non-palette mode for the other one or more pixels in the image region to be encoded;
  • Step 602 determining a palette corresponding to the image region to be encoded; wherein the palette includes a first portion and a second portion, each item of the first portion having a plurality of components including a luminance component and a chrominance component Each of the second portions has a luminance component;
  • Step 603 determining a corresponding pixel index for the pixel adopting the palette mode
  • Step 604 determining corresponding coding information for using pixels in the non-palette mode
  • Step 605 Perform bitstream encoding on the color palette, using a pixel index corresponding to the pixel of the palette mode and encoding information corresponding to the pixel in the non-palette mode.
  • the to-be-coded image area may be a current coding unit (CU) or a current maximum coding unit (LCU).
  • CU current coding unit
  • LCU current maximum coding unit
  • the palette may include a first portion and a second portion, wherein each item of the first portion has a plurality of components including a luminance component and a chrominance component, each of the second portions having a luminance component.
  • the plurality of components are YUV, wherein Y is the luminance component, and U and V are the chrominance components; Or the plurality of components is YCbCr, wherein Y is the luminance component, and Cb and Cr are the chrominance components.
  • the invention is not limited thereto, and for example, other color components may also be used.
  • Table 1 is a practical example of a color palette of an embodiment of the present invention. As shown in Table 1, the palette may have, for example, 64 items, each item being identified by an index (e.g., 0, 1, ..., 63), and each item representing a pixel value.
  • an index e.g., 0, 1, ..., 63
  • the palette can include two parts.
  • the length of the first part is Part1PaletteNum, where each item has three components of YUV, and the index corresponding to the first part may be (0, Part1PaletteNum-1), that is, (0, 31) shown in Table 1.
  • the length of the second part is Part2PaletteNum, where each item has a Y component, and the index corresponding to the second part may be (Part1PaletteNum, Part1PaletteNum+Part2PaletteNum-1), that is, (32, 63) shown in Table 1.
  • first part and the second part in Table 1 are arranged in order, but the invention is not limited thereto, for example, the first part may be arranged behind the second part, or the first part and the second part may also be mixed. arrangement.
  • the palette shown in Table 1 will be described as an example.
  • the order of execution of steps 601 to 605 is not limited, and a specific execution order may be determined according to actual conditions.
  • the order of step 603 and step 604 can be exchanged, or the pixel index can be encoded after determining the pixel index in step 603, and so on.
  • a related technique can be employed for prediction, thereby further reducing the bit cost.
  • prediction techniques can also be used for prediction, thereby further reducing the bit cost.
  • the pixel index of the pixel in the palette is bit-stream encoded.
  • a plurality of components of the pixel value of the pixel may be encoded, or only a single component (for example, a luminance component) of the pixel value of the pixel may be encoded.
  • a single component for example, a luminance component
  • determining the encoding information for the pixel with the coordinates of (x, y) in the non-palette mode may include: determining whether the chroma component corresponding to the pixel (x, y) has been encoded, wherein the corresponding chroma The coordinates of the component are (x/SubWidthC, y/SubHeightC); in the case where the chrominance component of the coordinate (x/SubWidthC, y/SubHeightC) has been encoded, the luminance component of the pixel (x, y) is determined to be encoded. information;
  • the chrominance component whose coordinates are (x/SubWidthC, y/SubHeightC) is not encoded, it is possible to first encode whether to represent only a single component (for example, a Y component) or a plurality of components (for example, three components of YUV).
  • the flag bit is encoded.
  • the encoding information further includes a luminance component of the pixel (x, y) and a corresponding chrominance component, and the color is (x/SubWidthC, y/SubHeightC)
  • the degree component is marked as having been encoded; otherwise, it is determined that the encoded information further includes a luminance component of the pixel (x, y).
  • SubWidthC and SubHeightC are predetermined based on the signal format.
  • Table 2 shows an example of a specific determination.
  • the SubWidthC and SubHeightC are 2 and 1, respectively.
  • Figure 7 shows a practical example of a chroma sample corresponding to the 4:2:2 signal format.
  • the pixel (2x, y) and the pixel (2x +1, y) share the same chrominance sample. Therefore, U(x, y) and V(x, y) can be encoded in either of the above two pixels, whether in a palette mode or a non-palette mode.
  • the SubWidthC and SubHeightC are 2 and 2, respectively.
  • Figure 8 shows a practical example of a chroma sample corresponding to the 4:2:0 signal format.
  • pixels (2x, 2y), pixels (2x+1, 2y), pixels (2x, 2y+1), and pixels (2x+1, 2y+1) Share the same chroma sample. Therefore, U(x, y) and V(x, y) can be encoded in any of the above four pixels In either the palette mode or the non-palette mode.
  • performing bitstream encoding on the encoding information corresponding to the pixels in the non-palette mode may specifically include: if the encoding information is a plurality of components of the pixel value, The plurality of components are encoded; and in the case where the encoded information is a luminance component of the pixel value, the luminance component is encoded. Further, an identification bit indicating that the encoded information is a plurality of components, and/or an identification bit indicating that the encoded information is a luminance component may be encoded.
  • the luminance component is 122
  • the corresponding chrominance component is (78, 63); here, the corresponding The coordinates of the chrominance component are (x/2, y). If the corresponding chroma component has been encoded, then only the luma component 122 is encoded for the pixel (x, y), in which case it is not necessary to encode the flag indicating that only one component is encoded, since it can be coordinated by The chrominance component of (x/2, y) has been determined by encoding this condition;
  • an identification bit (eg, 0 or 1) indicating that only a single component or three components are encoded may be encoded; if the flag indicates a pair The three components are encoded (eg, the flag is 0), the luminance component 122 and the corresponding chrominance component (78, 63) are encoded, and the chrominance component labeled (x/2, y) is labeled If it is encoded; if the flag indicates that only a single component is encoded (eg, the flag is 1), then only the luminance component 122 is encoded.
  • the pixel index of the pixel (x, y) is located in the first portion of the palette, for example, the pixel index is at (0, When Part1PaletteNum-1) is within range
  • the pixel of the pixel (x, y) is used at the time of decoding to index a plurality of components corresponding to the palette. That is, for the pixel (x, y), the corresponding pixel value YUV component in the palette is valid; and the chrominance component having the coordinates (x/SubWidthC, y/SubHeightC) is recorded as encoded.
  • Table 3 shows a pseudo code example of an embodiment of the present invention, where the example is based on JCTVC-S 1005, and the prediction method of the palette of JCTVC-S1005 is used.
  • the present invention is not limited thereto, and for example, appropriate modifications or adjustments can also be made.
  • FIG. 9 is another schematic flowchart of an image encoding method according to an embodiment of the present invention, showing a case where encoding information is determined one by one for each pixel in a CU.
  • the image encoding method includes:
  • Step 901 Determine a mode of each pixel in the CU.
  • Step 902 determining a palette of the CU.
  • the specific content of the palette may be as described above, and may include two parts.
  • step 903 it is determined whether the current pixel (x, y) adopts a non-palette mode; in the case of adopting the palette mode, step 910 is performed, and in the case of adopting the non-palette mode, step 904 is performed.
  • Step 904 it is judged whether the chrominance component of the corresponding coordinate (x/SubWidthC, y/SubHeightC) has been encoded; if the chrominance component of (x/SubWidthC, y/SubHeightC) has been encoded, then the step is performed. 905, otherwise step 906 is performed.
  • the values of SubWidthC and SubHeightC can be determined according to the signal format of the image, as described above.
  • Step 905 determining a luminance component of the current pixel as the encoding information of the pixel
  • Step 906 it is determined whether to encode a plurality of components or a single component; in the case of encoding a plurality of components, step 907 is performed, and in the case of encoding a single component, step 909 is performed;
  • Step 907 Determine that the encoding information includes an identifier bit indicating that a plurality of components are encoded, and a plurality of components of the current pixel.
  • step 908 the chrominance component having the coordinates (x/SubWidthC, y/SubHeightC) is marked as encoded.
  • Step 909 determining that the encoding information includes an identifier bit indicating that a single component is encoded, and a luminance component of the current pixel.
  • Step 910 determining a corresponding pixel index based on the color palette.
  • step 911 it is determined whether there are other pixels, and if so, step 903 is performed for the next pixel.
  • bit stream encoding may be performed immediately, or after the scanning is completed. There are pixels for bitstream encoding, and the timing of encoding can be determined according to actual conditions.
  • the palette corresponding to the image region to be encoded is determined; wherein the palette comprises a first portion and a second portion, each item of the first portion having a plurality of components including a luminance component and a chrominance component a component, each item of the second portion has a luminance component; for the color palette, a pixel index corresponding to a pixel of a palette mode and an encoding information corresponding to a pixel of a non-palette mode are used for bit stream encoding .
  • An embodiment of the present invention provides an image encoding apparatus, which corresponds to the image encoding method in Embodiment 1, and the same content is not described herein again.
  • FIG. 10 is a schematic diagram of an image encoding apparatus according to an embodiment of the present invention. As shown in FIG. 10, the encoding apparatus 1000 includes:
  • the mode determining unit 1001 determines that a palette mode is adopted for a plurality of pixels in the image region to be encoded, and determines that a non-palette mode is adopted for the other one or more pixels in the image region to be encoded;
  • a palette determining unit 1002 determining a palette corresponding to the image region to be encoded; wherein the palette includes a first portion and a second portion, each item of the first portion having a luminance component and a chrominance component a plurality of components, each of the second portions having a luminance component;
  • the pixel index determining unit 1003 determines a corresponding pixel index for the pixel adopting the palette mode
  • the encoding information determining unit 1004 determines corresponding encoding information for the pixels adopting the non-pal palette mode
  • the bit stream encoding unit 1005 performs bit stream encoding on the palette, the pixel index corresponding to the pixels in the palette mode, and the encoding information corresponding to the pixels in the non-palette mode.
  • the bitstream encoding unit 1005 may be specifically configured to: when the encoding information is a plurality of components of the pixel value, encode the multiple components; In the case of a luminance component of the pixel value, the luminance component is encoded.
  • the bitstream encoding unit 1005 may further perform bitstream encoding on the identifier bit that identifies the encoding information as a plurality of components, and/or the identifier bit that identifies the encoding information as a luminance component.
  • the encoding apparatus 1000 may further include:
  • the component determination unit 1006 determines whether the chrominance component whose coordinate is (x/SubWidthC, y/SubHeightC) is Has been encoded; wherein the SubWidthC and SubHeightC are predetermined based on a signal format, (x, y) is the coordinates of the pixel in the non-palette mode; the encoding information determining unit 1004 may specifically be used to: In the case where the chroma component of the coordinate (x/SubWidthC, y/SubHeightC) has been encoded, the luminance component of the pixel (x, y) is determined as the encoding information.
  • the encoding apparatus 1000 may further include:
  • the encoding determination unit 1007 determines whether to encode a plurality of components or a single component in a case where the chrominance component whose coordinates are (x/SubWidthC, y/SubHeightC) is not encoded; the encoding information determining unit 1004 may also For determining, in the case of encoding a plurality of components, the encoding information includes an identifier indicating encoding of a plurality of components and a plurality of components of the pixel (x, y); encoding a single component In the case, the encoding information is determined to include an identification bit that encodes a single component and a luminance component of the pixel (x, y).
  • the encoding apparatus 1000 may further include:
  • the coding flag unit 1008 marks, in the case of encoding a plurality of components, a chrominance component having a coordinate of (x/SubWidthC, y/SubHeightC) as already encoded.
  • the signal format may be 4:2:0, SubWidthC and SubHeightC are 2 and 2, respectively; or, the signal format may be 4:2:2, and SubWidthC and SubHeightC are 2 and 1, respectively.
  • the present invention is not limited thereto, and may be other signal formats, for example.
  • the plurality of components may be YUV, wherein Y is a luminance component, U and V are chrominance components; or the plurality of components may be YCbCr, where Y is a luminance component, and Cb and Cr are colors. Degree component.
  • the present invention is not limited thereto, and may be other modes, for example.
  • the pixel index of the pixel (x, y) is located in the first portion of the palette, if the coordinates (x/SubWidthC, y) The chrominance component of /SubHeightC) has been encoded, then only the pixel corresponding to the pixel (x, y) is used to index the corresponding luminance component in the palette; if the chromaticity of the coordinates (x/SubWidthC, y/SubHeightC) The components are not encoded, and the pixels of the pixel (x, y) are used at the time of decoding to index a plurality of components corresponding to the palette.
  • the palette corresponding to the image region to be encoded is determined; wherein the palette comprises a first portion and a second portion, each item of the first portion having a plurality of components including a luminance component and a chrominance component a component, each item of the second portion has a luminance component; for the color palette, a pixel index corresponding to a pixel of a palette mode and an encoding information corresponding to a pixel of a non-palette mode are used for bit stream encoding .
  • the compression ratio can be further increased to reduce the bit cost of encoding.
  • An embodiment of the present invention provides an image processing apparatus, where the image processing apparatus includes the image encoding apparatus according to Embodiment 2.
  • FIG. 11 is a block diagram showing the structure of an image processing apparatus according to an embodiment of the present invention.
  • the image processing apparatus 1100 may include a central processing unit (CPU) 100 and a memory 110; the memory 110 is coupled to the central processing unit 100.
  • the memory 110 can store various data; in addition, a program for information processing is stored, and the program is executed under the control of the central processing unit 100.
  • the functionality of image encoding device 1000 may be integrated into central processor 100.
  • the central processing unit 100 can be configured to implement the image encoding method as described in Embodiment 1.
  • the image encoding device 1000 can be configured separately from the central processing unit.
  • the image encoding device 1000 can be configured as a chip connected to the central processing unit 100, and the image encoding device 1000 can be implemented by the control of the central processing unit.
  • the image processing apparatus 1100 may further include: an input and output unit 120, a display unit 130, and the like; wherein the functions of the above components are similar to those of the prior art, and are not described herein again. It is to be noted that the image processing apparatus 1100 does not necessarily have to include all of the components shown in FIG. 11; further, the image processing apparatus 1100 may further include components not shown in FIG. 11, and reference may be made to the related art.
  • the image processing apparatus 1100 may further include: an image decoding device that can perform decoding correspondingly.
  • the image processing apparatus 1100 can implement the functions of the image decoding apparatus by the control of the central processing unit 100 as described above.
  • the image decoding device may use only the pixel of the pixel (x, y) to index the corresponding luminance component in the palette; if the chrominance component of the coordinate (x/SubWidthC, y/SubHeightC) Without being encoded, the image decoding device may use the pixels of the pixel (x, y) to index a plurality of components corresponding to the palette.
  • the embodiment of the present invention further provides a computer readable program, wherein when the program is executed in an image processing apparatus, the program causes a computer to execute the image encoding side described in Embodiment 1 in the image processing apparatus law.
  • An embodiment of the present invention further provides a storage medium storing a computer readable program, wherein the computer readable program causes a computer to execute the image encoding method described in Embodiment 1 in an image processing apparatus.
  • the above apparatus and method of the present invention may be implemented by hardware or by hardware in combination with software.
  • the present invention relates to a computer readable program that, when executed by a logic component, enables the logic component to implement the apparatus or components described above, or to cause the logic component to implement the various methods described above Or steps.
  • the present invention also relates to a storage medium for storing the above program, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, or the like.
  • One or more of the functional blocks described in the figures and/or one or more combinations of functional blocks may be implemented as a general purpose processor, digital signal processor (DSP) for performing the functions described herein.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • One or more of the functional blocks described with respect to the figures and/or one or more combinations of functional blocks may also be implemented as a combination of computing devices, eg, a combination of a DSP and a microprocessor, multiple microprocessors One or more microprocessors in conjunction with DSP communication or any other such configuration.

Landscapes

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

Abstract

一种图像编码方法、装置以及图像处理设备。所述图像编码方法包括:对待编码图像区域中各像素确定采用调色板模式还是非调色板模式;确定所述待编码图像区域对应的调色板;其中调色板中第一部分的每一项具有多个分量,第二部分的每一项具有亮度分量;为采用调色板模式的像素确定对应的像素索引;为采用非调色板模式的像素确定对应的编码信息;以及对调色板,像素索引以及编码信息进行比特流编码。由此,不仅可以对非4:4:4信号格式的图像应用基于调色板的编码,而且可以进一步提高压缩比来减少编码的比特代价。

Description

图像编码方法、装置以及图像处理设备 技术领域
本发明涉及一种图形图像技术领域,特别涉及一种图像编码方法、装置以及图像处理设备。
背景技术
基于调色板(Palette-based)的编码在图形图像技术(尤其是视频编码技术)中得到了广泛应用。在编码过程中,对于待编码图像区域,例如一个编码单元(CU,coding Unit),包含多个具有色彩值(例如采用RGB模式,具有24比特的真彩色)的像素;为了减少用于存储位图图像的存储容量,通常可以将像素指向调色板的数据索引。在译码过程中,每一输出像素的色彩值可以通过查找具有相应数据索引的调色板来决定。
其中,调色板为一系列像素值(pixel value)的集合,对于像素值位于调色板中的像素,仅需使用该像素值在调色板中对应的像素索引(pixel index)。由此可以仅将调色板以及编码单元中的像素所对应的索引进行比特流编码,可以减少编码的比特代价(bit cost)。
应该注意,上面对技术背景的介绍只是为了方便对本发明的技术方案进行清楚、完整的说明,并方便本领域技术人员的理解而阐述的。不能仅仅因为这些方案在本发明的背景技术部分进行了阐述而认为上述技术方案为本领域技术人员所公知。
发明内容
目前,为了进一步提高压缩比,出现了采用非调色板模式(例如escape mode)的方案。其中对于待编码图像区域(例如CU)中的采用非调色板模式的某一像素,可以直接使用该像素的像素值进行编码;或者可以进一步对该像素进行预测,将该像素在非调色板预测表(例如可称为escape predictor table)中的预测索引以及相应标识位(flag)进行编码。
但是,发明人发现:目前的基于调色板的编码方法仅针对信号格式为4:4:4的情况,对于非4:4:4信号格式(例如4:2:2或者4:2:0)并不适用,不能进一步提高压缩 比来减少编码的比特代价。
本发明实施例提供一种图像编码方法、装置以及图像处理设备。即使是非4:4:4信号格式的图像也可以应用基于调色板的编码,进一步提高压缩比来减少编码的比特代价。
根据本发明实施例的第一个方面,提供一种图像编码方法,包括:
对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;
确定所述待编码图像区域对应的调色板;其中所述调色板包括第一部分和第二部分,所述第一部分的每一项具有包括亮度分量和色度分量的多个分量,所述第二部分的每一项具有亮度分量;
为采用所述调色板模式的像素确定对应的像素索引;
为采用所述非调色板模式的像素确定对应的编码信息;
对所述调色板,采用所述调色板模式的像素对应的像素索引以及采用所述非调色板模式的像素对应的编码信息进行比特流编码。
根据本发明实施例的第二个方面,提供一种图像编码装置,包括:
模式确定单元,对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;
调色板确定单元,确定所述待编码图像区域对应的调色板;其中所述调色板包括第一部分和第二部分,所述第一部分的每一项具有包括亮度分量和色度分量的多个分量,所述第二部分的每一项具有亮度分量;
像素索引确定单元,为采用所述调色板模式的像素确定对应的像素索引;
编码信息确定单元,为采用所述非调色板模式的像素确定对应的编码信息;
比特流编码单元,对所述调色板,采用所述调色板模式的像素对应的像素索引以及采用所述非调色板模式的像素对应的编码信息进行比特流编码。
根据本发明实施例的第三个方面,提供一种图像处理设备,包括如上所述的图像编码装置。
根据本发明实施例的又一个方面,提供一种计算机可读程序,其中当在图像处理设备中执行所述程序时,所述程序使得计算机在所述图像处理设备中执行如上所述的图像编码方法。
根据本发明实施例的又一个方面,提供一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得计算机在图像处理设备中执行如上所述的图像编码方法。
本发明实施例的有益效果在于:确定待编码图像区域对应的调色板;其中所述调色板包括第一部分和第二部分,所述第一部分的每一项具有包括亮度分量和色度分量的多个分量,所述第二部分的每一项具有亮度分量;对所述调色板,采用调色板模式的像素对应的像素索引以及采用非调色板模式的像素对应的编码信息进行比特流编码。由此,不仅可以对非4:4:4信号格式的图像应用基于调色板的编码,而且可以进一步提高压缩比来减少编码的比特代价。
参照后文的说明和附图,详细公开了本发明的特定实施方式,指明了本发明的原理可以被采用的方式。应该理解,本发明的实施方式在范围上并不因而受到限制。在所附权利要求的精神和条款的范围内,本发明的实施方式包括许多改变、修改和等同。
针对一种实施方式描述和/或示出的特征可以以相同或类似的方式在一个或更多个其它实施方式中使用,与其它实施方式中的特征相组合,或替代其它实施方式中的特征。
应该强调,术语“包括/包含”在本文使用时指特征、整件、步骤或组件的存在,但并不排除一个或更多个其它特征、整件、步骤或组件的存在或附加。
附图说明
参照以下的附图可以更好地理解本发明的很多方面。附图中的部件不是成比例绘制的,而只是为了示出本发明的原理。为了便于示出和描述本发明的一些部分,附图中对应部分可能被放大或缩小。
在本发明的一个附图或一种实施方式中描述的元素和特征可以与一个或更多个其它附图或实施方式中示出的元素和特征相结合。此外,在附图中,类似的标号表示几个附图中对应的部件,并可用于指示多于一种实施方式中使用的对应部件。
图1是本发明实施例的编码单元的一实例示意图;
图2是本发明实施例的编码单元的另一实例示意图;
图3是4:4:4信号格式的图像中亮度样本和色度样本分布的一示意图;
图4是4:2:2信号格式的图像中亮度样本和色度样本分布的一示意图;
图5是4:2:0信号格式的图像中亮度样本和色度样本分布的一示意图;
图6是本发明实施例的图像编码方法的一流程示意图;
图7是本发明实施例的4:2:2信号格式色度样本对应的一实际例子;
图8是本发明实施例的4:2:0信号格式色度样本对应的一实际例子;
图9是本发明实施例的图像编码方法的另一流程示意图;
图10是本发明实施例的图像编码装置的一示意图;
图11是本发明实施例的图像处理设备的一构成示意图。
具体实施方式
参照附图,通过下面的说明书,本发明的前述以及其它特征将变得明显。在说明书和附图中,具体公开了本发明的特定实施方式,其表明了其中可以采用本发明的原则的部分实施方式,应了解的是,本发明不限于所描述的实施方式,相反,本发明包括落入所附权利要求的范围内的全部修改、变型以及等同物。
图1是本发明实施例的编码单元的一实例示意图,示出了一个编码单元(CU)的情况。如图1所示,该编码单元具有8×8个像素;其中具有相同像素值的像素采用同一符号来表示像素值,例如C0、C1、……、C8。
如果采用基于调色板的编码方法,则图1中的C6、C7和C8可以被认定为采用非调色板模式(也可以称为escape mode)。以图1中的C6、C7和C8采用非调色板模式,其他像素采用调色板模式为例进行说明。此时调色板Palette={C0、C1、C2、C3、C4、C5},该调色板中具有6个元素,因此像素索引可以使用3个比特表示。
图2是本发明实施例的编码单元的另一实例示意图,示出了图1的编码单元采用Palette后的索引情况。如图2所示,像素值C0在调色板中的索引为0,像素值C1在调色板中的索引为1,像素值C2在调色板中的索引为2,像素值C3在调色板中的索引为3,像素值C4在调色板中的索引为4,像素值C5在调色板中的索引为5。对于C6、C7和C8没有相应的索引值。
以上基于调色板的编码可以适用于4:4:4信号格式的图像。图3是4:4:4信号格式的图像中亮度(luma)样本和色度(chroma)样本分布的一示意图,如图3所示,4:4:4信号格式的图像中,每个像素均对应一个亮度样本和一个色度样本。例如,对于每个像素均传输一个亮度分量Y和两个色度分量UV。
但是,对于非4:4:4信号格式的图像,目前的基于调色板的编码方法难以被应用。图4是4:2:2信号格式的图像中亮度样本和色度样本分布的一示意图,如图4所示,4:2:2信号格式的图像中,每个像素均有一个亮度样本且每两个像素具有一个色度样本。图5是4:2:0信号格式的图像中亮度样本和色度样本分布的一示意图,如图5所示,4:2:0信号格式的图像中,每个像素均有一个亮度样本且每四个像素具有一个色度样本。
关于4:4:4信号格式、4:2:2信号格式以及4:2:0信号格式的具体内容可以参考相关技术。此外,本发明并不限于上述信号格式。以下仅以4:2:2信号格式以及4:2:0信号格式为例,对本发明实施例进行详细说明。
实施例1
本发明实施例提供一种图像编码方法,图6是本发明实施例的图像编码方法的一流程示意图。如图6所示,所述编码方法包括:
步骤601,对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;
步骤602,确定所述待编码图像区域对应的调色板;其中所述调色板包括第一部分和第二部分,所述第一部分的每一项具有包括亮度分量和色度分量的多个分量,所述第二部分的每一项具有亮度分量;
步骤603,为采用所述调色板模式的像素确定对应的像素索引;
步骤604,为采用所述非调色板模式的像素确定对应的编码信息;
步骤605,对所述调色板,采用所述调色板模式的像素对应的像素索引以及采用所述非调色板模式的像素对应的编码信息进行比特流编码。
在本实施例中,所述待编码图像区域可以为一当前编码单元(CU)或当前最大编码单元(LCU,Largest Coding Unit),以下以CU为例进行说明。关于如何确定采用调色板模式的像素,以及如何确定采用非调色板模式的像素,可以参考相关的任意方法。
在本实施例中,调色板可以包括第一部分和第二部分,其中第一部分的每一项具有包括亮度分量和色度分量的多个分量,第二部分的每一项具有亮度分量。
例如,所述多个分量为YUV,其中Y为所述亮度分量,U和V为所述色度分量; 或者所述多个分量为YCbCr,其中Y为所述亮度分量,Cb和Cr为所述色度分量。但本发明不限于此,例如还可以使用其他的颜色分量。
以下以YUV为例进行说明。
表1是本发明实施例的调色板的一个实际例子。如表1所示,该调色板例如可以具有64项,每一项通过一个索引(例如,0,1,……,63)标识,并且每一个项表示一个像素值。
表1
预测索引 0 1 2 …… 31 32 …… 63
Y 118 120 122 …… 112 218 …… 222
U 50 50 78 …… 117      
V 58 59 63 …… 78      
如表1所示,该调色板可以包括两个部分。第一部分的长度为Part1PaletteNum,其中每项具有YUV三个分量,该第一部分对应的索引可以为(0,Part1PaletteNum-1),即表1中所示的(0,31)。
第二部分的长度为Part2PaletteNum,其中每项具有Y分量,该第二部分对应的索引可以为(Part1PaletteNum,Part1PaletteNum+Part2PaletteNum-1),即表1中所示的(32,63)。
值得注意的是,表1中第一部分和第二部分按照顺序进行了排列,但本发明不限于此,例如第一部分可以排在第二部分的后面,或者第一部分和第二部分也可以混合起来排列。以下为简单起见,仅以如表1所示的调色板为例进行说明。
在本实施例中,对于步骤601至步骤605的执行顺序并没有限制,可以根据实际情况确定具体的执行顺序。例如步骤603和步骤604的顺序可以进行交换,或者在步骤603确定像素索引后即可将该像素索引进行编码,等等。
在本实施例中,对于调色板的比特流编码,可以采用相关技术。例如还可以采用预测技术进行预测,由此进一步减少比特代价。对于采用调色板模式的像素,对该像素在调色板中的像素索引进行比特流编码,具体如何编码也可以参考相关技术。
在本实施例中,对于采用非调色板模式的像素,可以将该像素的像素值的多个分量进行编码,也可以仅将该像素的像素值的单个分量(例如亮度分量)进行编码。具 体对多个分量进行编码还是仅对单个分量进行编码,可以根据信号格式进行确定。
具体地,为采用非调色板模式的坐标为(x,y)的像素确定编码信息,可以包括:判断像素(x,y)对应的色度分量是否已经被编码,其中该对应的色度分量的坐标为(x/SubWidthC,y/SubHeightC);在坐标为(x/SubWidthC,y/SubHeightC)的色度分量已经被编码的情况下,将像素(x,y)的亮度分量确定为编码信息;
在坐标为(x/SubWidthC,y/SubHeightC)的色度分量没有被编码的情况下,可以先将表示仅对单个分量(例如Y分量)还是对多个分量(例如YUV三个分量)进行编码的标识位进行编码。如果标识位表示对多个分量进行编码,则确定所述编码信息还包括像素(x,y)的亮度分量和对应的色度分量,并且将坐标为(x/SubWidthC,y/SubHeightC)的色度分量标记为已经被编码;否则,确定所述编码信息还包括像素(x,y)的亮度分量。
其中,SubWidthC和SubHeightC基于信号格式被预先确定。表2示出了具体确定的一例子。
表2
信号格式 SubWidthC SubHeightC
单色 1 1
4:2:0 2 2
4:2:2 2 1
4:4:4 1 1
以信号格式为4:2:2为例,所述SubWidthC和SubHeightC分别为2和1。
图7示出了4:2:2信号格式的色度样本对应的一实际例子。如图7所示,对于4:2:2信号格式,像素(2x,y)和像素(2x+1,y)共享同一色度样本。因此,U(x,y)和V(x,y)能够被编码在上述两个像素的任一个中,无论是采用调色板模式还是采用非调色板模式。
以信号格式为4:2:0为例,所述SubWidthC和SubHeightC分别为2和2。
图8示出了4:2:0信号格式的色度样本对应的一实际例子。如图8所示,对于4:2:0信号格式,像素(2x,2y)、像素(2x+1,2y)、像素(2x,2y+1)和像素(2x+1,2y+1)共享同一色度样本。因此,U(x,y)和V(x,y)能够被编码在上述四个像素的任一 个中,无论是采用调色板模式还是采用非调色板模式。
在本实施例中,对采用非调色板模式的像素所对应的编码信息进行比特流编码,具体可以包括:在所述编码信息为所述像素值的多个分量的情况下,将所述多个分量进行编码;在所述编码信息为所述像素值的亮度分量的情况下,将所述亮度分量进行编码。此外,还可以将表示所述编码信息为多个分量的标识位,和/或表示所述编码信息为亮度分量的标识位进行编码。
例如,在信号格式为4:2:2的图像中,对于某一坐标为(x,y)的像素,其亮度分量为122,对应的色度分量为(78,63);此处,对应的色度分量的坐标为(x/2,y)。如果对应的色度分量已经被编码,则对于像素(x,y)仅将亮度分量122进行编码,此时不需要将表示仅对一个分量进行编码的标识位进行编码,因为它可以由坐标为(x/2,y)的色度分量已经编码这个条件所确定;
如果对应的色度分量未被编码,则对于像素(x,y),可以先将表示仅对单个分量还是三个分量进行编码的标识位(例如0或1)进行编码;如果标识位表示对三个分量进行编码(例如该标识位为0),则将亮度分量122和和对应的色度分量(78,63)进行编码,并将坐标为(x/2,y)的色度分量标记为已编码;如果标识位表示仅对单个分量进行编码(例如该标识位为1),则仅将亮度分量122进行编码。
在本实施例中,对于采用调色板模式的像素(x,y),在该像素(x,y)的像素索引位于调色板的第一部分的情况下,例如该像素索引处于(0,Part1PaletteNum-1)范围内时,
若坐标为(x/SubWidthC,y/SubHeightC)的色度分量已经被编码,则在解码时仅使用所述像素(x,y)的像素索引在调色板中对应的亮度分量。即,对于该像素(x,y)来说,调色板中对应的像素值仅Y分量是有效的。
若坐标为(x/SubWidthC,y/SubHeightC)的色度分量没有被编码,则在解码时使用所述像素(x,y)的像素索引在调色板中对应的多个分量。即,对于该像素(x,y)来说,调色板中对应的像素值YUV分量都是有效的;并将坐标为(x/SubWidthC,y/SubHeightC)的色度分量记为已编码。
表3示出了本发明实施例的一伪代码示例,其中该示例基于JCTVC-S1005,并且使用了JCTVC-S1005的调色板的预测方法。但本发明不限于此,例如还可以进行适当变型或调整。
表3
Figure PCTCN2015071904-appb-000001
Figure PCTCN2015071904-appb-000002
Figure PCTCN2015071904-appb-000003
图9是本发明实施例的图像编码方法的另一流程示意图,示出了对一CU中的各像素逐一确定编码信息的情况。如图9所示,所述图像编码方法包括:
步骤901,确定CU中各像素的模式。
例如哪些像素采用调色板模式,哪些像素采用非调色板模式。
步骤902,确定该CU的调色板。
其中,调色板的具体内容可如上所述,可以包括两个部分。
步骤903,判断当前像素(x,y)是否采用非调色板模式;在采用调色板模式的情况下执行步骤910,在采用非调色板模式的情况下执行步骤904。
步骤904,判断相应坐标(x/SubWidthC,y/SubHeightC)的色度分量是否已经被编码;在所述(x/SubWidthC,y/SubHeightC)的色度分量已经被编码的情况下,则执行步骤905,否则执行步骤906。
其中,SubWidthC和SubHeightC的值可以根据图像的信号格式确定,如上所述。
步骤905,将当前像素的亮度分量确定为该像素的编码信息;
步骤906,判断对多个分量还是单个分量进行编码;在对多个分量进行编码的情况下执行步骤907,在对单个分量进行编码的情况下执行步骤909;
其中,例如可以根据信号格式判断是对当前像素的多个分量进行编码,还是仅对当前像素的单个分量进行编码。
步骤907,确定所述编码信息包括表示对多个分量进行编码的标识位,以及当前像素的多个分量。
步骤908,将坐标为(x/SubWidthC,y/SubHeightC)的色度分量标记为已编码。
步骤909,确定所述编码信息包括表示对单个分量进行编码的标识位,以及当前像素的亮度分量。
步骤910,基于调色板确定对应的像素索引。
步骤911,判断是否还有其他像素,如果是则对于下一像素执行步骤903。
为简单起见,图9中仅示出了如何确定采用调色板模式的像素的像素索引以及采用非调色板模式的像素的编码信息,而没有示出比特流编码等其他内容。在确定各像素的像素索引或编码信息之后,可以立即进行比特流编码,也可以在扫描完成后对所 有像素进行比特流编码,可以根据实际情况确定编码的时机。
由上述实施例可知,确定待编码图像区域对应的调色板;其中所述调色板包括第一部分和第二部分,所述第一部分的每一项具有包括亮度分量和色度分量的多个分量,所述第二部分的每一项具有亮度分量;对所述调色板,采用调色板模式的像素对应的像素索引以及采用非调色板模式的像素对应的编码信息进行比特流编码。由此,不仅可以对非4:4:4信号格式的图像应用基于调色板的编码,而且可以进一步提高压缩比来减少编码的比特代价。
实施例2
本发明实施例提供一种图像编码装置,对应于实施例1中的图像编码方法,相同的内容不再赘述。
图10是本发明实施例的图像编码装置的一示意图,如图10所示,所述编码装置1000包括:
模式确定单元1001,对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;
调色板确定单元1002,确定所述待编码图像区域对应的调色板;其中所述调色板包括第一部分和第二部分,所述第一部分的每一项具有包括亮度分量和色度分量的多个分量,所述第二部分的每一项具有亮度分量;
像素索引确定单元1003,为采用所述调色板模式的像素确定对应的像素索引;
编码信息确定单元1004,为采用所述非调色板模式的像素确定对应的编码信息;
比特流编码单元1005,对所述调色板,采用调色板模式的像素所对应的像素索引以及采用非调色板模式的像素所对应的编码信息进行比特流编码。
在本实施例中,所述比特流编码单元1005具体可以用于:在所述编码信息为所述像素值的多个分量的情况下,将所述多个分量进行编码;在所述编码信息为所述像素值的亮度分量的情况下,将所述亮度分量进行编码。此外,所述比特流编码单元1005还可以对标识所述编码信息为多个分量的标识位,和/或标识所述编码信息为亮度分量的标识位进行比特流编码。
如图10所示,所述编码装置1000还可以包括:
分量判断单元1006,判断坐标为(x/SubWidthC,y/SubHeightC)的色度分量是否 已经被编码;其中,所述SubWidthC和SubHeightC基于信号格式被预先确定,(x,y)为所述采用非调色板模式的像素的坐标;所述编码信息确定单元1004具体可以用于:在所述坐标为(x/SubWidthC,y/SubHeightC)的色度分量已经被编码的情况下,将所述像素(x,y)的所述亮度分量确定为所述编码信息。
如图10所示,所述编码装置1000还可以包括:
编码判断单元1007,在所述坐标为(x/SubWidthC,y/SubHeightC)的色度分量没有被编码的情况下,确定对多个分量还是单个分量进行编码;所述编码信息确定单元1004还可以用于:在对多个分量进行编码的情况下,确定所述编码信息包括表示对多个分量进行编码的标识位以及所述像素(x,y)的多个分量;在对单个分量进行编码的情况下,确定所述编码信息包括表示对单个分量进行编码的标识位以及所述像素(x,y)的亮度分量。
如图10所示,所述编码装置1000还可以包括:
编码标记单元1008,在对多个分量进行编码的情况下,将坐标为(x/SubWidthC,y/SubHeightC)的色度分量标记为已经被编码。
在本实施例中,所述信号格式可以为4:2:0,SubWidthC和SubHeightC分别为2和2;或者,所述信号格式可以为4:2:2,SubWidthC和SubHeightC分别为2和1。但本发明不限于此,例如还可以是其他的信号格式。
在本实施例中,所述多个分量可以为YUV,其中Y为亮度分量,U和V为色度分量;或者所述多个分量可以为YCbCr,其中Y为亮度分量,Cb和Cr为色度分量。但本发明不限于此,例如还可以是其他的模式。
在本实施例中,对于采用调色板模式的像素(x,y),在该像素(x,y)的像素索引位于调色板的第一部分的情况下,若坐标(x/SubWidthC,y/SubHeightC)的色度分量已经被编码,则在解码时仅使用像素(x,y)的像素索引在调色板中对应的亮度分量;若坐标(x/SubWidthC,y/SubHeightC)的色度分量没有被编码,则在解码时使用像素(x,y)的像素索引在调色板中对应的多个分量。
由上述实施例可知,确定待编码图像区域对应的调色板;其中所述调色板包括第一部分和第二部分,所述第一部分的每一项具有包括亮度分量和色度分量的多个分量,所述第二部分的每一项具有亮度分量;对所述调色板,采用调色板模式的像素对应的像素索引以及采用非调色板模式的像素对应的编码信息进行比特流编码。由此, 不仅可以对非4:4:4信号格式的图像应用基于调色板的编码,而且可以进一步提高压缩比来减少编码的比特代价。
实施例3
本发明实施例提供一种图像处理设备,所述图像处理设备包括:如实施例2所述的图像编码装置。
图11是本发明实施例的图像处理设备的一构成示意图。如图11所示,图像处理设备1100可以包括:中央处理器(CPU)100和存储器110;存储器110耦合到中央处理器100。其中该存储器110可存储各种数据;此外还存储信息处理的程序,并且在中央处理器100的控制下执行该程序。
在一个实施方式中,图像编码装置1000的功能可以被集成到中央处理器100中。其中,中央处理器100可以被配置为实现如实施例1所述的图像编码方法。
在另一个实施方式中,图像编码装置1000可以与中央处理器分开配置,例如可以将图像编码装置1000配置为与中央处理器100连接的芯片,通过中央处理器的控制来实现图像编码装置1000的功能。
此外,如图11所示,图像处理设备1100还可以包括:输入输出单元120和显示单元130等;其中,上述部件的功能与现有技术类似,此处不再赘述。值得注意的是,图像处理设备1100也并不是必须要包括图11中所示的所有部件;此外,图像处理设备1100还可以包括图11中没有示出的部件,可以参考现有技术。
在本实施例中,图像处理设备1100还可以包括:图像解码装置,该图像解码装置可以相应地进行解码。图像处理设备1100可以如上所述地,通过中央处理器100的控制来实现图像解码装置的功能。
其中,对于采用调色板模式的像素(x,y),在该像素(x,y)的像素索引位于调色板的第一部分的情况下,若坐标(x/SubWidthC,y/SubHeightC)的色度分量已经被编码,则所述图像解码装置可以仅使用像素(x,y)的像素索引在调色板中对应的亮度分量;若坐标(x/SubWidthC,y/SubHeightC)的色度分量没有被编码,则所述图像解码装置可以使用像素(x,y)的像素索引在调色板中对应的多个分量。
本发明实施例还提供一种计算机可读程序,其中当在图像处理设备中执行所述程序时,所述程序使得计算机在所述图像处理设备中执行实施例1所述的图像编码方 法。
本发明实施例还提供一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得计算机在图像处理设备中执行实施例1所述的的图像编码方法。
本发明以上的装置和方法可以由硬件实现,也可以由硬件结合软件实现。本发明涉及这样的计算机可读程序,当该程序被逻辑部件所执行时,能够使该逻辑部件实现上文所述的装置或构成部件,或使该逻辑部件实现上文所述的各种方法或步骤。本发明还涉及用于存储以上程序的存储介质,如硬盘、磁盘、光盘、DVD、flash存储器等。
针对附图中描述的功能方框中的一个或多个和/或功能方框的一个或多个组合,可以实现为用于执行本申请所描述功能的通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件或者其任意适当组合。针对附图描述的功能方框中的一个或多个和/或功能方框的一个或多个组合,还可以实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、与DSP通信结合的一个或多个微处理器或者任何其它这种配置。
以上结合具体的实施方式对本发明进行了描述,但本领域技术人员应该清楚,这些描述都是示例性的,并不是对本发明保护范围的限制。本领域技术人员可以根据本发明的精神和原理对本发明做出各种变型和修改,这些变型和修改也在本发明的范围内。

Claims (16)

  1. 一种图像编码方法,所述图像编码方法包括:
    对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;
    确定所述待编码图像区域对应的调色板;其中所述调色板包括第一部分和第二部分,所述第一部分的每一项具有包括亮度分量和色度分量的多个分量,所述第二部分的每一项具有亮度分量;
    为采用所述调色板模式的像素确定对应的像素索引;
    为采用所述非调色板模式的像素确定对应的编码信息;
    对所述调色板,采用所述调色板模式的像素对应的像素索引以及采用所述非调色板模式的像素对应的编码信息进行比特流编码。
  2. 根据权利要求1所述的图像编码方法,其中,在为采用所述非调色板模式的像素确定编码信息之前,所述方法还包括:
    判断坐标为(x/SubWidthC,y/SubHeightC)的色度分量是否已经被编码;其中,所述SubWidthC和SubHeightC基于信号格式被预先确定;(x,y)为所述采用非调色板模式的像素的坐标;
    并且,在所述坐标为(x/SubWidthC,y/SubHeightC)的色度分量已经被编码的情况下,将所述像素(x,y)的所述亮度分量确定为所述编码信息。
  3. 根据权利要求2所述的图像编码方法,其中,在所述坐标为(x/SubWidthC,y/SubHeightC)的色度分量没有被编码的情况下,所述方法还包括:
    判断对多个分量还是单个分量进行编码;
    并且,在对多个分量进行编码的情况下,确定所述编码信息包括表示对多个分量进行编码的标识位以及所述像素(x,y)的所述多个分量;在对单个分量进行编码的情况下,确定所述编码信息包括表示对单个分量进行编码的标识位以及所述像素(x,y)的所述亮度分量。
  4. 根据权利要求3所述的图像编码方法,其中,所述方法还包括:
    在对多个分量进行编码的情况下,将坐标为(x/SubWidthC,y/SubHeightC)的色度分量标记为已经被编码。
  5. 根据权利要求2所述的图像编码方法,其中,所述信号格式为4:2:0,所述SubWidthC和SubHeightC分别为2和2;或者
    所述信号格式为4:2:2,所述SubWidthC和SubHeightC分别为2和1。
  6. 根据权利要求1所述的图像编码方法,其中,所述多个分量为YUV,其中Y为所述亮度分量,U和V为所述色度分量;或者
    所述多个分量为YCbCr,其中Y为所述亮度分量,Cb和Cr为所述色度分量。
  7. 根据权利要求1所述的图像编码方法,其中,对于采用所述调色板模式的坐标为(x,y)的像素,在所述像素(x,y)的像素索引位于所述调色板的所述第一部分的情况下,
    若坐标为(x/SubWidthC,y/SubHeightC)的色度分量已经被编码,则在解码时仅使用所述像素(x,y)的像素索引在所述调色板中对应的所述亮度分量;
    若坐标为(x/SubWidthC,y/SubHeightC)的色度分量没有被编码,则在解码时使用所述像素(x,y)的像素索引在所述调色板中对应的所述多个分量。
  8. 一种图像编码装置,所述图像编码装置包括:
    模式确定单元,对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;
    调色板确定单元,确定所述待编码图像区域对应的调色板;其中所述调色板包括第一部分和第二部分,所述第一部分的每一项具有包括亮度分量和色度分量的多个分量,所述第二部分的每一项具有亮度分量;
    像素索引确定单元,为采用所述调色板模式的像素确定对应的像素索引;
    编码信息确定单元,为采用所述非调色板模式的像素确定对应的编码信息;
    比特流编码单元,对所述调色板,采用所述调色板模式的像素对应的像素索引以及采用所述非调色板模式的像素对应的编码信息进行比特流编码。
  9. 根据权利要求8所述的图像编码装置,其中,所述装置还包括:
    分量判断单元,判断坐标为(x/SubWidthC,y/SubHeightC)的色度分量是否已经被编码;其中,所述SubWidthC和SubHeightC基于信号格式被预先确定,(x,y)为所述采用非调色板模式的像素的坐标;
    所述编码信息确定单元具体用于:在所述坐标为(x/SubWidthC,y/SubHeightC)的色度分量已经被编码的情况下,将所述像素(x,y)的所述亮度分量确定为所述编 码信息。
  10. 根据权利要求9所述的图像编码装置,其中,所述装置还包括:
    编码判断单元,在所述坐标为(x/SubWidthC,y/SubHeightC)的色度分量没有被编码的情况下,判断对多个分量还是单个分量进行编码;
    所述编码信息确定单元还用于:在对多个分量进行编码的情况下,确定所述编码信息包括表示对多个分量进行编码的标识位以及所述像素(x,y)的所述多个分量;在对单个分量进行编码的情况下,确定所述编码信息包括表示对单个分量进行编码的标识位以及所述像素(x,y)的所述亮度分量。
  11. 根据权利要求10所述的图像编码装置,其中,所述装置还包括:
    编码标记单元,在对多个分量进行编码的情况下,将所述坐标为(x/SubWidthC,y/SubHeightC)的色度分量标记为已经被编码。
  12. 根据权利要求9所述的图像编码装置,其中,所述信号格式为4:2:0,所述SubWidthC和SubHeightC分别为2和2;或者
    所述信号格式为4:2:2,所述SubWidthC和SubHeightC分别为2和1。
  13. 根据权利要求8所述的图像编码装置,其中,所述多个分量为YUV,其中Y为所述亮度分量,U和V为所述色度分量;或者
    所述多个分量为YCbCr,其中Y为所述亮度分量,Cb和Cr为所述色度分量。
  14. 根据权利要求8所述的图像编码装置,其中,对于采用所述调色板模式的像素(x,y),在所述像素(x,y)的像素索引位于所述调色板的所述第一部分的情况下,
    若坐标为(x/SubWidthC,y/SubHeightC)的色度分量已经被编码,则在解码时仅使用所述像素(x,y)的像素索引在所述调色板中对应的所述亮度分量;
    若坐标为(x/SubWidthC,y/SubHeightC)的色度分量没有被编码,则在解码时使用所述像素(x,y)的像素索引在所述调色板中对应的所述多个分量。
  15. 一种图像处理设备,所述图像处理设备包括:如权利要求8所述的图像编码装置。
  16. 根据权利要求15所述的图像处理设备,其中,所述图像处理设备还包括:
    图像解码装置,对比特流进行解码以获得图像。
PCT/CN2015/071904 2015-01-30 2015-01-30 图像编码方法、装置以及图像处理设备 Ceased WO2016119196A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/071904 WO2016119196A1 (zh) 2015-01-30 2015-01-30 图像编码方法、装置以及图像处理设备
CN201580049133.0A CN106688236B (zh) 2015-01-30 2015-01-30 图像编码方法、装置以及图像处理设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/071904 WO2016119196A1 (zh) 2015-01-30 2015-01-30 图像编码方法、装置以及图像处理设备

Publications (1)

Publication Number Publication Date
WO2016119196A1 true WO2016119196A1 (zh) 2016-08-04

Family

ID=56542191

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071904 Ceased WO2016119196A1 (zh) 2015-01-30 2015-01-30 图像编码方法、装置以及图像处理设备

Country Status (2)

Country Link
CN (1) CN106688236B (zh)
WO (1) WO2016119196A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110909843B (zh) * 2019-11-21 2021-05-14 程烨 编码图像塑型的方法、装置、服务器和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050249292A1 (en) * 2004-05-07 2005-11-10 Ping Zhu System and method for enhancing the performance of variable length coding
CN1825978A (zh) * 2002-04-19 2006-08-30 精工爱普生株式会社 利用基数近似或利用差分码和转义码的帧压缩
US20140301474A1 (en) * 2013-04-05 2014-10-09 Qualcomm Incorporated Determining palettes in palette-based video coding
CN104244007A (zh) * 2013-06-13 2014-12-24 上海天荷电子信息有限公司 基于任意形状匹配的图像压缩方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825978A (zh) * 2002-04-19 2006-08-30 精工爱普生株式会社 利用基数近似或利用差分码和转义码的帧压缩
US20050249292A1 (en) * 2004-05-07 2005-11-10 Ping Zhu System and method for enhancing the performance of variable length coding
US20140301474A1 (en) * 2013-04-05 2014-10-09 Qualcomm Incorporated Determining palettes in palette-based video coding
CN104244007A (zh) * 2013-06-13 2014-12-24 上海天荷电子信息有限公司 基于任意形状匹配的图像压缩方法和装置

Also Published As

Publication number Publication date
CN106688236A (zh) 2017-05-17
CN106688236B (zh) 2019-06-21

Similar Documents

Publication Publication Date Title
JP7053722B2 (ja) ビットストリーム内で、ldrピクチャのピクチャ/ビデオ・フォーマットと、このldrピクチャおよびイルミネーション・ピクチャから取得された復号済みのhdrピクチャのピクチャ/ビデオ・フォーマットとをシグナリングする方法および装置
WO2016131408A1 (en) Method and apparatus for palette predictor initialization for palette coding in video and image compression
WO2018184468A1 (zh) 图片文件处理方法、设备及存储介质
WO2021114684A1 (zh) 图像处理方法、装置、计算设备和存储介质
CN110139104B (zh) 视频解码方法、装置、计算机设备和存储介质
US20220159226A1 (en) Method of layer blending and reconstruction based on the alpha channel
CN112686810A (zh) 一种图像处理的方法及装置
WO2017063168A1 (zh) 图像编码方法、装置以及图像处理设备
TWI505717B (zh) 彩色影像之接合純量嵌入圖形寫碼
CN113099230B (zh) 编码方法、装置、电子设备及计算机可读存储介质
WO2016119196A1 (zh) 图像编码方法、装置以及图像处理设备
US9749638B1 (en) Method and apparatus for encoding video with dynamic quality improvement
US20180220190A1 (en) Methods and devices for encoding/decoding videos
KR20180070593A (ko) 정보 데이터의 공통 세트에 의해 구동되는 후보 프로세스들의 세트로부터 비디오 데이터에 적용될 프로세스를 선택하기 위한 방법 및 디바이스
WO2016049843A1 (zh) 调色板的编码方法、装置以及图像处理设备
WO2015192340A1 (zh) 基于调色板的图像编码方法、装置以及图像处理设备
WO2016045077A1 (zh) 图像编码方法、装置以及图像处理设备
WO2016029420A1 (zh) 基于调色板的图像编码方法、装置以及图像处理设备
WO2016106554A1 (zh) 图像编码方法、装置以及图像处理设备
CN115243045A (zh) 基于视频场景识别应用帧相似性的视频编码方法
CN119893209A (zh) 图像处理方法及装置
CN119211562A (zh) 一种图像编解码方法及编解码器
WO2016106555A1 (zh) 图像编码方法、装置以及图像处理设备
CN105637861B (zh) 基于调色板的编码装置、方法以及图像处理设备
CN116993597A (zh) 一种图像校正方法、装置及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15879404

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15879404

Country of ref document: EP

Kind code of ref document: A1