WO2016106555A1 - Image coding method and apparatus and image processing device - Google Patents

Image coding method and apparatus and image processing device Download PDF

Info

Publication number
WO2016106555A1
WO2016106555A1 PCT/CN2014/095548 CN2014095548W WO2016106555A1 WO 2016106555 A1 WO2016106555 A1 WO 2016106555A1 CN 2014095548 W CN2014095548 W CN 2014095548W WO 2016106555 A1 WO2016106555 A1 WO 2016106555A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
palette
palette mode
pixels
information
Prior art date
Application number
PCT/CN2014/095548
Other languages
French (fr)
Chinese (zh)
Inventor
叶姜莉
付轩
朱建清
王争
徐张磊
Original Assignee
富士通株式会社
叶姜莉
付轩
朱建清
王争
徐张磊
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 富士通株式会社, 叶姜莉, 付轩, 朱建清, 王争, 徐张磊 filed Critical 富士通株式会社
Priority to PCT/CN2014/095548 priority Critical patent/WO2016106555A1/en
Publication of WO2016106555A1 publication Critical patent/WO2016106555A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • H04N1/411Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures
    • H04N1/413Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information

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 called 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.
  • the compression ratio is further increased to reduce the bit cost of encoding.
  • an image encoding method comprising:
  • the pixel prediction pixels in the image region to be encoded that can be predicted to form the sample prediction information are formed;
  • the reuse identifier bit information, and the index of the non-palette mode pixels that can be predicted in the sample prediction information are bit-stream encoded.
  • an image encoding apparatus comprising:
  • the encoding mode determining unit determines that a palette mode is adopted for the plurality of pixels in the image region to be encoded, and determines that the non-pal palette mode is adopted for the other one or more pixels in the image region to be encoded;
  • Reusing the information determining unit determining, according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-pal palette prediction information, determining the reuse identifier bit information of the pixel adopting the non-palette mode;
  • a sample prediction determining unit for pixels adopting a non-palette mode, forming prediction information of pixels in the image to be encoded that can be predicted using a non-palette mode
  • the bitstream encoding unit performs bitstream encoding on the reused identification bit information and the index of the non-palette mode pixel that can be predicted in the sample prediction information.
  • 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 execute an image encoding side as described above in an image processing apparatus law.
  • An advantageous effect of the embodiment of the present invention is that the reused identification bit information of the pixel in the non-palette mode and the index of the pixel in the non-palette mode that can be predicted in the sample prediction information are encoded; Even in the case where the non-palette prediction table is large, the pixels in the non-palette mode can be encoded using fewer bits, further reducing the bit cost of 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.
  • FIG. 3 is a schematic flow chart of an image encoding method according to an embodiment of the present invention.
  • FIG. 4 is another schematic flowchart of an image encoding method according to an embodiment of the present invention.
  • FIG. 5 is another schematic flowchart of an image encoding method according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an image encoding apparatus according to an embodiment of the present invention.
  • Fig. 7 is a block diagram showing the configuration 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.
  • the above description is directed to the palette mode and the non-palette mode.
  • the embodiment of the present invention is mainly directed to pixels in a non-palette mode, and how to perform encoding.
  • For how to encode pixels in the palette mode reference may be made to the present. Any way.
  • pixels in a non-palette mode can be predicted. If a pixel value of a non-palette mode pixel is in a pre-generated non-palette prediction table, the pixel can be used.
  • the bitstream encoding is performed on the index in the non-pal palette prediction table and the corresponding flag bit; if not in the non-palette prediction table, the pixel value and the corresponding flag bit may be encoded.
  • each index that can be predicted to be encoded using non-palette mode pixels requires 6 bits, which is cost in some scenarios. bigger.
  • the embodiments of the present invention are described in detail below.
  • FIG. 3 is a schematic flowchart of an image encoding method according to an embodiment of the present invention. As shown in FIG. 3, the encoding method includes:
  • Step 301 determining, by using a palette mode, a plurality of pixels in the image region to be encoded, and determining to adopt a non-pal palette mode for the other one or more pixels in the image region to be encoded;
  • Step 302 Determine, according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-palette prediction information, determining the reuse identifier information of the pixel adopting the non-palette mode;
  • Step 303 For pixels adopting a non-palette mode, form prediction information of pixels in the image to be encoded that can be predicted using a non-palette mode;
  • Step 304 Perform bitstream encoding on the reuse identifier bit information and the index of the non-palette mode pixel in the sample prediction information that can be predicted.
  • 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 pre-generated non-palette prediction information may be used to predict pixels in a non-palette mode, where the prediction information includes a pixel index and a corresponding pixel value, wherein different pixel indexes correspond to different ones. Pixel values. Whether or not the pixel adopting the non-palette mode can be predicted can be determined according to whether or not the pixel value of the pixel in the non-palette mode in the CU to be encoded appears in the prediction information.
  • Table 1 shows a prediction table of an embodiment of the present invention.
  • the prediction table may have, for example, 8 prediction items, each prediction item being identified by one prediction index (for example, 0, 1, ..., 7; each prediction index may be represented by 3 bits), and Each prediction term represents a pixel value.
  • each prediction term may include a plurality of color components.
  • the color component may include: a y component, a Cb component, and a Cr component; or the color component may include: an R component, a G component, or a B component.
  • the invention is not limited thereto, and for example, other color components may also be used.
  • Table 2 is a practical example of the prediction table of the embodiment of the present invention, showing prediction information of an embodiment of the present invention.
  • the prediction table may have, for example, 64 prediction items, each prediction item being identified by one prediction index (for example, 0, 1, ..., 63; each may be represented by 6 bits), and each The prediction term represents a pixel value that includes a plurality of color components (eg, yCbCr).
  • the prediction information may be generated in advance, for example, predefined on the encoding device side based on empirical values; and also predefined on the decoding device side.
  • both the encoding side and the decoding side can know the prediction information in advance, and it is not necessary to encode the prediction information by the bit stream.
  • the prediction information can also be updated based on the encoded pixel information. For example, after the encoding side determines that a pixel adopts the non-palette mode, the information of the pixel is added to the prediction table; and the same operation can be performed on the decoding side to generate the same prediction information as the encoding side, and the same does not need to pass.
  • the bitstream encodes the prediction information.
  • the prediction information may also be palette information of the encoded image area, such as a palette of the previous CU of the current CU.
  • the palette is encoded by the bitstream, so when encoding or decoding the image region to be encoded (for example, the current CU), both the encoding side and the decoding side can know the coloring of the encoded image region (for example, the previous CU) in advance. Board information.
  • the above is only a schematic representation of the non-palette prediction information of the present invention, but the present invention is not limited thereto, and a specific implementation manner may be determined according to actual conditions. For example, the size of the prediction information and the specific content can be determined as needed.
  • sample information (which may be referred to as an escape sample) may be formed according to all pixels in the CU that adopt the non-palette mode.
  • Table 3 shows an information table of pixels in a certain CU that adopt a non-palette mode.
  • the reuse identifier information of the pixel adopting the non-palette mode may be determined according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-palette prediction information; and the reuse identifier is used.
  • the bit information is bit stream encoded.
  • the reuse flag information of the pixel using the non-palette mode is the first value
  • the reuse flag information of the pixel in the non-palette mode is the second value.
  • the first value may be 1, and the second value may be 0.
  • the present invention is not limited thereto, and for example, the first value may also be 0, and accordingly the second value may be 1.
  • the first value is 1 and the second value is 0 as an example.
  • the reused identifier bit information may be bitstream encoded.
  • the encoding of the reuse flag information may be performed prior to encoding the prediction flag and/or the prediction index value of the pixel in the non-palette mode. And this part of the information can be encoded in the same way as the identification bit information of the palette, that is, the identification bit information of the palette can be reused. Therefore, in terms of hardware implementation, no additional computing circuitry is required.
  • the pixel prediction pixels that can be predicted in the non-palette mode can be formed into sample prediction information; and the non-palette mode that can be predicted is adopted.
  • the bit of the pixel in the sample prediction information is bit stream encoded.
  • Table 5 shows sample prediction information (also referred to as predicted escape sample) of pixels that can be predicted using non-palette mode determined according to Tables 3 and 2.
  • the information of index 0, 1, 2 can be bit stream encoded instead of the information whose index is 1, 2, 63.
  • the reuse flag information and the index of the pixels in the non-palette mode that can be predicted in the sample prediction information can be bit-stream encoded.
  • encoding can be performed using only the index in Table 5 (using 2 bits) instead of the index in Table 2 (using 6 bits), thereby further reducing The cost of bit coding.
  • the identifiers that identify the pixels in the non-palette mode can be predicted (eg, using 1 to be predicted), and/or the non-palette mode will be identified.
  • the pixel cannot be predicted by the identified bit (eg, using 0 to indicate that it cannot be predicted) for bitstream encoding.
  • the pixel values can be directly bitstream encoded.
  • a palette corresponding to the palette mode may be determined; for a pixel adopting a palette mode, a corresponding pixel index is determined based on the palette, and the adoption is performed
  • the pixel index corresponding to the pixels of the palette mode is bit stream encoded.
  • any one of the related methods can be adopted.
  • FIG. 4 is another flow diagram of an image encoding method according to an embodiment of the present invention, showing a case where pixels in a non-palette mode and pixels in a palette mode are processed together.
  • the encoding method includes:
  • Step 401 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 402 determining a color palette corresponding to the palette mode.
  • Step 403 Determine, according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-palette prediction information, the reuse identifier information of the pixel adopting the non-palette mode; and use the reuse identifier bit
  • the information is bitstream encoded.
  • Step 404 Form the sample prediction information into the non-palette mode pixels that can be predicted in the image region to be encoded.
  • Step 405 For pixels adopting the palette mode, determine a corresponding pixel index based on the palette, and perform bit stream encoding on the pixel index.
  • the specific content can refer to the related technology.
  • Step 406 For pixels adopting the non-palette mode, bit coding is performed on the coding information corresponding to the pixels in the non-palette mode.
  • the index of the pixel in the non-palette mode in the sample prediction information and the corresponding identification bit are bit-stream encoded; if a non-palette is adopted The pixels of the pattern cannot be predicted, and the pixel values of the pixels in the non-palette mode and the corresponding identification bits are bit-stream encoded.
  • a 1-bit flag eg, 1 indicating that it can be predicted
  • an index 0 indicated by 2 bits
  • the pixel values (using 3*8 bits, that is, including three components, each of which is represented by 8 bits) are directly subjected to bit stream encoding.
  • bit stream encoding for each pixel, it is also necessary to perform bit stream encoding by using a 1-bit flag (for example, 0, indicating that it cannot be predicted).
  • the palette information of the current CU and the like may be incorporated into the bit stream, and the related art may be specifically referred to.
  • FIG. 4 is only schematically illustrated, but the present invention is not limited thereto, and for example, the execution order of each step may be changed according to actual conditions.
  • FIG. 5 is another schematic flowchart of an image encoding method according to an embodiment of the present invention, as shown in FIG. 5,
  • the image encoding method includes:
  • Step 501 Determine a mode of each pixel in the CU and a color palette of the CU.
  • Step 502 Determine reuse identifier information of pixels in the non-palette mode.
  • Step 503 the sample prediction information is formed by pixels that can be predicted to adopt the non-palette mode.
  • Step 504 it is determined whether the current pixel adopts the non-palette mode; in the case of adopting the palette mode, step 508 is performed, and in the case of adopting the non-palette mode, step 505 is performed;
  • Step 505 it is determined whether the pixel value of the current pixel is in the non-palette prediction information, if yes, step 506 is performed, otherwise step 507 is performed;
  • Step 506 using the corresponding identifier bit and an index of the pixel in the sample prediction information as the encoding information
  • Step 507 the corresponding identification bit and the pixel value of the pixel are used as encoding information
  • Step 508 Determine a corresponding pixel index based on the color palette, and use the pixel index as the encoding information.
  • step 509 it is determined whether there are other pixels, and if so, step 504 is performed for the next pixel.
  • bit stream encoding may be performed immediately, or all pixels may be bit stream encoded after the scanning is completed, and the encoding time may be determined according to actual conditions.
  • the reused identification bit information of the pixels in the non-palette mode and the index of the pixels in the non-palette mode that can be predicted in the sample prediction information are encoded; thus, even in the non- In the case where the palette prediction table is relatively large, it is also possible to encode pixels in the non-palette mode using fewer bits, further reducing the bit cost of 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. 6 is a schematic diagram of an image encoding apparatus according to an embodiment of the present invention. As shown in FIG. 6, the encoding apparatus 600 includes:
  • the encoding mode determining unit 601 determines that a palette mode is adopted for a plurality of pixels in the image region to be encoded, and determines that a non-pal palette mode is adopted for the other one or more pixels in the image region to be encoded;
  • the reuse information determining unit 602 determines whether the pixel value of the pixel adopting the non-palette mode exists in the non-tune In the swatch prediction information, determining the reuse identifier information of the pixel adopting the non-palette mode;
  • the bitstream encoding unit 604 performs bitstream encoding on the reused identification bit information and the index of the pixel in the non-palette mode that can be predicted in the sample prediction information.
  • the bitstream encoding unit 604 may be further configured to: identify an identifier bit that is capable of being predicted by the pixel in the non-palette mode, and/or identify the adopted non-palette mode The pixels cannot be bitstream encoded by the predicted flag.
  • the reuse information determining unit 602 may be specifically configured to: if the pixel value of the pixel adopting the non-palette mode exists in the non-pal palette prediction information, The reused identification bit information of the pixels of the palette mode is determined to be the first value, and in the case where the pixel value of the pixel adopting the non-palette mode is not present in the non-palette prediction information, the adoption is not The reuse flag information of the pixels of the palette mode is determined to be the second value.
  • the first value may be 1, and the second value may be 0, but the invention is not limited thereto.
  • bitstream encoding unit 604 is further configured to: perform bitstream encoding on pixel values of pixels that are not predictable and adopt non-palette mode.
  • the image encoding apparatus 600 may further include:
  • a pixel index determining unit 606 for a pixel adopting a palette mode, determining a corresponding pixel index based on the color palette, and
  • the bitstream encoding unit 604 is further configured to: perform bitstream encoding on a pixel index corresponding to the pixel in the palette mode.
  • the non-palette prediction information may be generated in advance and updated based on the encoded pixel information.
  • the reused identification bit information of the pixels in the non-palette mode and the index of the pixels in the non-palette mode that can be predicted in the sample prediction information are encoded; thus, even in the non- In the case where the palette prediction table is relatively large, it is also possible to encode pixels in the non-palette mode using fewer bits, further reducing 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. 7 is a block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention.
  • the image processing apparatus 700 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 600 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 600 may be configured separately from the central processing unit.
  • the image encoding device 600 may be configured as a chip connected to the central processing unit 100, and the image encoding device 600 may be implemented by control of the central processing unit.
  • the image processing apparatus 700 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 700 does not necessarily have to include all of the components shown in FIG. 7; in addition, the image processing apparatus 700 may further include components not shown in FIG. 7, and reference may be made to the related art.
  • the image processing apparatus 700 may further include: an image decoding device that can perform decoding correspondingly.
  • the image processing apparatus 700 can implement the functions of the image decoding apparatus by the control of the central processing unit 100 as described above.
  • 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 method described in Embodiment 1 in the image processing apparatus.
  • 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.
  • a general purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor for performing the functions described herein can be implemented.
  • 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)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

An image coding method and apparatus and an image processing device. The image coding method comprises: determining to use a palette mode for multiple pixels in an image area to be coded, and determining to use a non-palette mode for one or more other pixels; according to whether pixel values of the pixels using the non-palette mode exist in non-palette prediction information, determining reuse flag bit information of the pixels using the non-palette mode; for the pixels using the non-palette mode, forming sample prediction information by predictable pixels using the non-palette mode; and performing bit stream coding on the reuse flag bit information and indexes, in the sample prediction information, of the predictable pixels using the non-palette mode. Pixels using a non-palette mode can be coded using few bits, and the coding bit cost is further reduced.

Description

图像编码方法、装置以及图像处理设备Image coding method, device and image processing device 技术领域Technical field
本发明涉及一种图形图像技术领域,特别涉及一种图像编码方法、装置以及图像处理设备。The present invention relates to the field of graphic image technology, and in particular, to an image encoding method, apparatus, and image processing apparatus.
背景技术Background technique
基于调色板(Palette-based)的编码在图形图像技术(尤其是视频编码技术)中得到了广泛应用。在编码过程中,对于待编码图像区域,例如一个编码单元(CU,coding Unit),包含多个具有色彩值(例如采用RGB模式,具有24比特的真彩色)的像素;为了减少用于存储位图图像的存储容量,通常可以将像素指向调色板的数据索引。在译码过程中,每一输出像素的色彩值可以通过查找具有相应数据索引的调色板来决定。Palette-based coding is widely used in graphic image technology (especially video coding technology). In the encoding process, 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. During the decoding process, the color value of each output pixel can be determined by looking up a palette with a corresponding data index.
其中,调色板为一系列像素值(pixel value)的集合,对于像素值位于调色板中的像素,仅需使用该像素值在调色板中对应的像素索引(pixel index)。由此可以仅将调色板以及编码单元中的像素所对应的索引进行比特流编码,可以减少编码的比特代价(bit cost)。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.
应该注意,上面对技术背景的介绍只是为了方便对本发明的技术方案进行清楚、完整的说明,并方便本领域技术人员的理解而阐述的。不能仅仅因为这些方案在本发明的背景技术部分进行了阐述而认为上述技术方案为本领域技术人员所公知。It should be noted that the above description of the technical background is only for the purpose of facilitating a clear and complete description of the technical solutions of the present invention, and is convenient for understanding by those skilled in the art. The above technical solutions are not considered to be well known to those skilled in the art simply because these aspects are set forth in the background section of the present invention.
发明内容Summary of the invention
目前,为了进一步提高压缩比,出现了采用非调色板模式(例如escape mode)的方案。其中对于待编码图像区域(例如CU)中的采用非调色板模式的某一像素,可以直接使用该像素的像素值进行编码;或者可以进一步对该像素进行预测,将该像素在非调色板预测表(可称为escape predictor table)中的预测索引以及相应标识位(flag)进行编码。Currently, in order to further increase the compression ratio, a scheme using a non-palette mode (for example, an escape mode) has appeared. Wherein, for a certain pixel in the image region to be encoded (for example, CU) adopting the non-palette 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 called an escape predictor table) and the corresponding flag are encoded.
但是,发明人发现,对于采用非调色板模式的像素,在非调色板预测表比较大的情况下,需要采用较多的比特进行编码,不能进一步减少编码的比特代价。 However, the inventors have found that for pixels using the non-palette mode, in the case where the non-palette prediction table is relatively large, it is necessary to use more bits for encoding, and the bit cost of encoding cannot be further reduced.
本发明实施例提供一种图像编码方法、装置以及图像处理设备。对于采用非调色板模式的像素,进一步提高压缩比来减少编码的比特代价。Embodiments of the present invention provide an image encoding method, apparatus, and image processing apparatus. For pixels that use non-palette mode, the compression ratio is further increased to reduce the bit cost of encoding.
根据本发明实施例的第一个方面,提供一种图像编码方法,所述图像编码方法包括:According to a first aspect of the embodiments of the present invention, an image encoding method is provided, the image encoding method comprising:
对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;Determining a plurality of pixels in the encoded image region to determine a palette mode, and determining to adopt a non-palette mode for the other one or more pixels in the image region to be encoded;
根据采用非调色板模式的像素的像素值是否存在于非调色板预测信息中,确定所述采用非调色板模式的像素的重用标识位信息;Determining, according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-pal palette prediction information, determining the reuse identifier bit information of the pixel adopting the non-palette mode;
对于采用非调色板模式的像素,将所述待编码图像区域中的能够被预测的采用非调色板模式的像素形成样本预测信息;For pixels adopting the non-palette mode, the pixel prediction pixels in the image region to be encoded that can be predicted to form the sample prediction information are formed;
将所述重用标识位信息,以及所述能够被预测的采用非调色板模式的像素在所述样本预测信息中的索引进行比特流编码。The reuse identifier bit information, and the index of the non-palette mode pixels that can be predicted in the sample prediction information are bit-stream encoded.
根据本发明实施例的第二个方面,提供一种图像编码装置,所述图像编码装置包括:According to a second aspect of the embodiments of the present invention, an image encoding apparatus is provided, the image encoding apparatus comprising:
编码模式确定单元,对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;The encoding mode determining unit determines that a palette mode is adopted for the plurality of pixels in the image region to be encoded, and determines that the non-pal palette mode is adopted for the other one or more pixels in the image region to be encoded;
重用信息确定单元,根据采用非调色板模式的像素的像素值是否存在于非调色板预测信息中,确定所述采用非调色板模式的像素的重用标识位信息;Reusing the information determining unit, determining, according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-pal palette prediction information, determining the reuse identifier bit information of the pixel adopting the non-palette mode;
样本预测确定单元,对于采用非调色板模式的像素,将所述待编码图像区域中的能够被预测的采用非调色板模式的像素形成样本预测信息;a sample prediction determining unit, for pixels adopting a non-palette mode, forming prediction information of pixels in the image to be encoded that can be predicted using a non-palette mode;
比特流编码单元,将所述重用标识位信息,以及所述能够被预测的采用非调色板模式的像素在所述样本预测信息中的索引进行比特流编码。The bitstream encoding unit performs bitstream encoding on the reused identification bit information and the index of the non-palette mode pixel that can be predicted in the sample prediction information.
根据本发明实施例的第三个方面,提供一种图像处理设备,包括如上所述的图像编码装置。According to a third aspect of the embodiments of the present invention, there is provided an image processing apparatus comprising the image encoding apparatus as described above.
根据本发明实施例的又一个方面,提供一种计算机可读程序,其中当在图像处理设备中执行所述程序时,所述程序使得计算机在所述图像处理设备中执行如上所述的图像编码方法。According to still another aspect of an embodiment of the present invention, a computer readable program is provided, 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.
根据本发明实施例的又一个方面,提供一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得计算机在图像处理设备中执行如上所述的图像编码方 法。According to still another aspect of an embodiment of the present invention, a storage medium storing a computer readable program, wherein the computer readable program causes a computer to execute an image encoding side as described above in an image processing apparatus law.
本发明实施例的有益效果在于,将采用非调色板模式的像素的重用标识位信息,以及能够被预测的采用非调色板模式的像素在样本预测信息中的索引进行编码;由此,即使在非调色板预测表比较大的情况下,也可以使用较少的比特对采用非调色板模式的像素进行编码,进一步减少编码的比特代价。An advantageous effect of the embodiment of the present invention is that the reused identification bit information of the pixel in the non-palette mode and the index of the pixel in the non-palette mode that can be predicted in the sample prediction information are encoded; Even in the case where the non-palette prediction table is large, the pixels in the non-palette mode can be encoded using fewer bits, further reducing the bit cost of encoding.
参照后文的说明和附图,详细公开了本发明的特定实施方式,指明了本发明的原理可以被采用的方式。应该理解,本发明的实施方式在范围上并不因而受到限制。在所附权利要求的精神和条款的范围内,本发明的实施方式包括许多改变、修改和等同。Specific embodiments of the present invention are disclosed in detail with reference to the following description and the drawings, in which <RTIgt; It should be understood that the embodiments of the invention are not limited in scope. The embodiments of the present invention include many variations, modifications, and equivalents within the scope of the appended claims.
针对一种实施方式描述和/或示出的特征可以以相同或类似的方式在一个或更多个其它实施方式中使用,与其它实施方式中的特征相组合,或替代其它实施方式中的特征。Features described and/or illustrated with respect to one embodiment may be used in one or more other embodiments in the same or similar manner, in combination with, or in place of, features in other embodiments. .
应该强调,术语“包括/包含”在本文使用时指特征、整件、步骤或组件的存在,但并不排除一个或更多个其它特征、整件、步骤或组件的存在或附加。It should be emphasized that the term "comprising" or "comprises" or "comprising" or "comprising" or "comprising" or "comprising" or "comprises"
附图说明DRAWINGS
参照以下的附图可以更好地理解本发明的很多方面。附图中的部件不是成比例绘制的,而只是为了示出本发明的原理。为了便于示出和描述本发明的一些部分,附图中对应部分可能被放大或缩小。Many aspects of the invention can be better understood with reference to the following drawings. The components in the figures are not drawn to scale, but only to illustrate the principles of the invention. In order to facilitate the illustration and description of some parts of the invention, the corresponding parts in the figures may be enlarged or reduced.
在本发明的一个附图或一种实施方式中描述的元素和特征可以与一个或更多个其它附图或实施方式中示出的元素和特征相结合。此外,在附图中,类似的标号表示几个附图中对应的部件,并可用于指示多于一种实施方式中使用的对应部件。Elements and features described in one of the figures or one embodiment of the invention may be combined with elements and features illustrated in one or more other figures or embodiments. In the accompanying drawings, like reference numerals refer to the
图1是本发明实施例的编码单元的一实例示意图;1 is a schematic diagram of an example of a coding unit according to an embodiment of the present invention;
图2是本发明实施例的编码单元的另一实例示意图;2 is a schematic diagram of another example of a coding unit according to an embodiment of the present invention;
图3是本发明实施例的图像编码方法的一流程示意图;3 is a schematic flow chart of an image encoding method according to an embodiment of the present invention;
图4是本发明实施例的图像编码方法的另一流程示意图;4 is another schematic flowchart of an image encoding method according to an embodiment of the present invention;
图5是本发明实施例的图像编码方法的另一流程示意图;FIG. 5 is another schematic flowchart of an image encoding method according to an embodiment of the present invention; FIG.
图6是本发明实施例的图像编码装置的一示意图;FIG. 6 is a schematic diagram of an image encoding apparatus according to an embodiment of the present invention; FIG.
图7是本发明实施例的图像处理设备的一构成示意图。 Fig. 7 is a block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention.
具体实施方式detailed description
参照附图,通过下面的说明书,本发明的前述以及其它特征将变得明显。在说明书和附图中,具体公开了本发明的特定实施方式,其表明了其中可以采用本发明的原则的部分实施方式,应了解的是,本发明不限于所描述的实施方式,相反,本发明包括落入所附权利要求的范围内的全部修改、变型以及等同物。The foregoing and other features of the present invention will be apparent from the The specific embodiments of the present invention are disclosed in the specification and the drawings, which are illustrated in the embodiment of the invention The invention includes all modifications, variations and equivalents falling within the scope of the appended claims.
图1是本发明实施例的编码单元的一实例示意图,示出了一个编码单元(CU)的情况。如图1所示,该编码单元具有8×8个像素;其中具有相同像素值的像素采用同一符号来表示像素值,例如C0、C1、……、C8。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). As shown in FIG. 1, 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.
如果采用基于调色板的编码方法,则图1中的C6、C7和C8可以被认定为采用非调色板模式(也可以称为escape mode)。以图1中的C6、C7和C8采用非调色板模式,其他像素采用调色板模式为例进行说明。此时调色板Palette={C0、C1、C2、C3、C4、C5},该调色板中具有6个元素,因此像素索引可以使用3个比特表示。If a palette-based encoding method is employed, 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. At this time, the palette Palette={C0, C1, C2, C3, C4, C5} has 6 elements in the palette, so the pixel index can be represented by 3 bits.
图2是本发明实施例的编码单元的另一实例示意图,示出了图1的编码单元采用Palette后的索引情况。如图2所示,像素值C0在调色板中的索引为0,像素值C1在调色板中的索引为1,像素值C2在调色板中的索引为2,像素值C3在调色板中的索引为3,像素值C4在调色板中的索引为4,像素值C5在调色板中的索引为5。对于C6、C7和C8没有相应的索引值。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. As shown in FIG. 2, 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. There is no corresponding index value for C6, C7 and C8.
以上对于调色板模式和非调色板模式进行了说明,本发明实施例主要针对采用非调色板模式的像素,说明如何进行编码,对于采用调色板模式的像素如何进行编码可以参考现有的任意方式。The above description is directed to the palette mode and the non-palette mode. The embodiment of the present invention is mainly directed to pixels in a non-palette mode, and how to perform encoding. For how to encode pixels in the palette mode, reference may be made to the present. Any way.
在某些场景下,可以对采用非调色板模式的像素进行预测,如果某一采用非调色板模式的像素的像素值在预先生成的非调色板预测表中,则可以将该像素在非调色板预测表中的索引以及相应标识位进行比特流编码;如果不在该非调色板预测表中,则可以将该像素值以及相应标识位进行编码。In some scenarios, pixels in a non-palette mode can be predicted. If a pixel value of a non-palette mode pixel is in a pre-generated non-palette prediction table, the pixel can be used. The bitstream encoding is performed on the index in the non-pal palette prediction table and the corresponding flag bit; if not in the non-palette prediction table, the pixel value and the corresponding flag bit may be encoded.
但是,如果非调色板预测表比较大(例如具有64个像素值),则每个能够被预测的采用非调色板模式的像素进行编码的索引需要6个比特,在某些场景下代价比较大。以下对本发明实施例进行详细说明。However, if the non-palette prediction table is large (for example, with 64 pixel values), each index that can be predicted to be encoded using non-palette mode pixels requires 6 bits, which is cost in some scenarios. bigger. The embodiments of the present invention are described in detail below.
实施例1 Example 1
本发明实施例提供一种图像编码方法,图3是本发明实施例的图像编码方法的一流程示意图。如图3所示,所述编码方法包括:An embodiment of the present invention provides an image encoding method, and FIG. 3 is a schematic flowchart of an image encoding method according to an embodiment of the present invention. As shown in FIG. 3, the encoding method includes:
步骤301,对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;Step 301: determining, by using a palette mode, a plurality of pixels in the image region to be encoded, and determining to adopt a non-pal palette mode for the other one or more pixels in the image region to be encoded;
步骤302,根据采用非调色板模式的像素的像素值是否存在于非调色板预测信息中,确定所述采用非调色板模式的像素的重用标识位信息;Step 302: Determine, according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-palette prediction information, determining the reuse identifier information of the pixel adopting the non-palette mode;
步骤303,对于采用非调色板模式的像素,将所述待编码图像区域中的能够被预测的采用非调色板模式的像素形成样本预测信息;Step 303: For pixels adopting a non-palette mode, form prediction information of pixels in the image to be encoded that can be predicted using a non-palette mode;
步骤304,将所述重用标识位信息,以及所述能够被预测的采用非调色板模式的像素在所述样本预测信息中的索引进行比特流编码。Step 304: Perform bitstream encoding on the reuse identifier bit information and the index of the non-palette mode pixel in the sample prediction information that can be predicted.
在本实施例中,所述待编码图像区域可以为一当前编码单元(CU)或当前最大编码单元(LCU,Largest Coding Unit),以下以CU为例进行说明。关于如何确定采用调色板模式的像素,以及如何确定采用非调色板模式的像素,可以参考相关的任意方法。In this embodiment, the to-be-coded image area may be a current coding unit (CU) or a current maximum coding unit (LCU). For information on how to determine the pixels in the palette mode and how to determine the pixels in the non-palette mode, you can refer to any of the related methods.
其中,可以采用预先生成的非调色板预测信息(例如escape predictor table)对采用非调色板模式的像素进行预测,该预测信息包括像素索引以及对应的像素值,其中不同像素索引对应不同的像素值。可以根据待编码的CU中采用非调色板模式的像素的像素值是否出现在该预测信息中,确定该采用非调色板模式的像素能否被预测。The pre-generated non-palette prediction information (for example, an escape predictor table) may be used to predict pixels in a non-palette mode, where the prediction information includes a pixel index and a corresponding pixel value, wherein different pixel indexes correspond to different ones. Pixel values. Whether or not the pixel adopting the non-palette mode can be predicted can be determined according to whether or not the pixel value of the pixel in the non-palette mode in the CU to be encoded appears in the prediction information.
表1示出了本发明实施例的一预测表。如表1所示,该预测表例如可以具有8个预测项,每一预测项通过一个预测索引(例如,0,1,……,7;每个预测索引可以采用3比特表示)标识,并且每一个预测项表示一个像素值。Table 1 shows a prediction table of an embodiment of the present invention. As shown in Table 1, the prediction table may have, for example, 8 prediction items, each prediction item being identified by one prediction index (for example, 0, 1, ..., 7; each prediction index may be represented by 3 bits), and Each prediction term represents a pixel value.
表1Table 1
预测索引 Predictive index 00 11 22 33 44 ……...... ……...... 77
像素值Pixel values C9C9 C6C6 C0C0 C12C12 C8C8 ……...... ……...... C14C14
在本实施例中,每一预测项可以包括多个颜色分量。例如,颜色分量可以包括:y分量、Cb分量以及Cr分量;或者颜色分量可以包括:R分量、G分量或者B分量。但本发明不限于此,例如还可以使用其他的颜色分量。In this embodiment, each prediction term may include a plurality of color components. For example, the color component may include: a y component, a Cb component, and a Cr component; or the color component may include: an R component, a G component, or a B component. However, the invention is not limited thereto, and for example, other color components may also be used.
以下以yCbCr为例进行说明。 The following is an example of yCbCr.
表2是本发明实施例的预测表的一个实际例子,示出了本发明实施例的预测信息。如表2所示,该预测表例如可以具有64个预测项,每一预测项通过一个预测索引(例如,0,1,……,63;每个可以采用6比特表示)标识,并且每一个预测项表示一个像素值,该像素值包括多个颜色分量(例如yCbCr)。Table 2 is a practical example of the prediction table of the embodiment of the present invention, showing prediction information of an embodiment of the present invention. As shown in Table 2, the prediction table may have, for example, 64 prediction items, each prediction item being identified by one prediction index (for example, 0, 1, ..., 63; each may be represented by 6 bits), and each The prediction term represents a pixel value that includes a plurality of color components (eg, yCbCr).
表2Table 2
预测索引 Predictive index 00 11 22 33 44 ……...... ……...... 6363
yy 118118 120120 122122 112112 218218 ……...... ……...... 222222
CbCb 5050 5050 7878 117117 118118 ……...... ……...... 133133
CrCr 5858 5959 6363 7878 125125 ……...... ……...... 124124
在本实施例中,预测信息可以被预先生成,例如根据经验值在编码设备侧预先定义;并且在解码设备侧也预先定义。由此,编码侧和解码侧均可以预先获知该预测信息,无需通过比特流对该预测信息进行编码。并且,该预测信息还可以基于被编码的像素信息被更新。例如,在编码侧判断出一像素采用非调色板模式后,将该像素的信息加入预测表中;并且在解码侧也可以进行同样的操作从而生成与编码侧相同的预测信息,同样无需通过比特流对该预测信息进行编码。In the present embodiment, the prediction information may be generated in advance, for example, predefined on the encoding device side based on empirical values; and also predefined on the decoding device side. Thereby, both the encoding side and the decoding side can know the prediction information in advance, and it is not necessary to encode the prediction information by the bit stream. And, the prediction information can also be updated based on the encoded pixel information. For example, after the encoding side determines that a pixel adopts the non-palette mode, the information of the pixel is added to the prediction table; and the same operation can be performed on the decoding side to generate the same prediction information as the encoding side, and the same does not need to pass. The bitstream encodes the prediction information.
此外,该预测信息还可以是已编码图像区域的调色板信息,例如可以是当前CU的前一CU的调色板。该调色板通过比特流被编码,因此在对待编码图像区域(例如当前CU)进行编码或者解码时,编码侧或解码侧均可以预先获知该已编码图像区域(例如前一CU)的调色板信息。Furthermore, the prediction information may also be palette information of the encoded image area, such as a palette of the previous CU of the current CU. The palette is encoded by the bitstream, so when encoding or decoding the image region to be encoded (for example, the current CU), both the encoding side and the decoding side can know the coloring of the encoded image region (for example, the previous CU) in advance. Board information.
值得注意的是,以上仅示意性示出了本发明的非调色板预测信息,但本发明不限于此,还可以根据实际情况确定具体的实施方式。例如可以根据需要确定预测信息的大小以及具体内容。It should be noted that the above is only a schematic representation of the non-palette prediction information of the present invention, but the present invention is not limited thereto, and a specific implementation manner may be determined according to actual conditions. For example, the size of the prediction information and the specific content can be determined as needed.
在本实施中,对于采用非调色板模式的像素,可以根据CU中的所有采用非调色板模式的像素形成样本信息(可以称为escape sample)。表3示出了某一CU中采用非调色板模式的像素的信息表。In the present embodiment, for pixels adopting the non-palette mode, sample information (which may be referred to as an escape sample) may be formed according to all pixels in the CU that adopt the non-palette mode. Table 3 shows an information table of pixels in a certain CU that adopt a non-palette mode.
表3table 3
索引 index 00 11 22 33 44 ……...... ……...... 1515
yy 119119 120120 122122 115115 218218 ……...... ……...... 222222
CbCb 5050 5050 7878 160160 119119 ……...... ……...... 133133
CrCr 5959 5959 6363 7878 124124 ……...... ……...... 124124
其中,表3中的第2个像素(index=1)、第3个像素(index=2)以及第16个像素(index=15)能够被表2所示的非调色板预测信息所预测。The second pixel (index=1), the third pixel (index=2), and the 16th pixel (index=15) in Table 3 can be predicted by the non-pal palette prediction information shown in Table 2. .
在本实施例中,可以根据采用非调色板模式的像素的像素值是否存在于非调色板预测信息中,确定采用非调色板模式的像素的重用标识位信息;并将该重用标识位信息进行比特流编码。In this embodiment, the reuse identifier information of the pixel adopting the non-palette mode may be determined according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-palette prediction information; and the reuse identifier is used. The bit information is bit stream encoded.
例如,在采用非调色板模式的像素的像素值存在于非调色板预测信息中的情况下,采用非调色板模式的像素的重用标识位信息为第一值;在采用非调色板模式的像素的像素值不存在于非调色板预测信息中的情况下,采用非调色板模式的像素的重用标识位信息为第二值。其中,所述第一值可以为1,所述第二值可以为0。但本发明不限于此,例如第一值也可以为0,相应地第二值可以为1。For example, in the case where the pixel value of the pixel adopting the non-palette mode exists in the non-palette prediction information, the reuse flag information of the pixel using the non-palette mode is the first value; In the case where the pixel value of the pixel of the board mode does not exist in the non-pal palette prediction information, the reuse flag information of the pixel in the non-palette mode is the second value. The first value may be 1, and the second value may be 0. However, the present invention is not limited thereto, and for example, the first value may also be 0, and accordingly the second value may be 1.
以下仅以第一值是1,第二值是0为例进行说明。Hereinafter, only the first value is 1 and the second value is 0 as an example.
表4示出了根据表3和表2所确定的采用非调色板模式的像素的重用标识位信息(也可称为ReusedFlag of escape predictor table)。如表4所示,表2中index=1,2,63的三个像素在重用标识位信息中的ReuseFlag为1,其余采用非调色板模式的像素在重用标识位信息中的ReuseFlag为0。Table 4 shows the reuse flag information (also referred to as ReusedFlag of escape predictor table) of the pixels in the non-palette mode determined according to Tables 3 and 2. As shown in Table 4, the ReuseFlag of the three pixels of index=1, 2, and 63 in Table 2 in the reuse flag information is 1, and the rest of the pixels in the non-palette mode are ReuseFlag of 0 in the reuse flag information. .
表4Table 4
索引 index 00 11 22 33 44 ……...... ……...... 6363
ReuseFlag ReuseFlag 00 11 11 00 00 ……...... ……...... 11
在本实施例中,可以将该重用标识位信息进行比特流编码。关于该重用标识位信息的编码,可以在对采用非调色板模式的像素的预测标志和/或预测索引值进行编码之前进行。并且这部分信息可以采用与调色板的标识位信息相同的方式进行编码,即可以重用调色板的标识位信息。因此,就硬件实现来说,不需要额外的计算电路。In this embodiment, the reused identifier bit information may be bitstream encoded. The encoding of the reuse flag information may be performed prior to encoding the prediction flag and/or the prediction index value of the pixel in the non-palette mode. And this part of the information can be encoded in the same way as the identification bit information of the palette, that is, the identification bit information of the palette can be reused. Therefore, in terms of hardware implementation, no additional computing circuitry is required.
在本实施例中,对于采用非调色板模式的像素,可以将CU中的能够被预测的采用非调色板模式的像素形成样本预测信息;以及将能够被预测的采用非调色板模式的像素在样本预测信息中的索引进行比特流编码。 In the present embodiment, for pixels adopting the non-palette mode, the pixel prediction pixels that can be predicted in the non-palette mode can be formed into sample prediction information; and the non-palette mode that can be predicted is adopted. The bit of the pixel in the sample prediction information is bit stream encoded.
表5示出了根据表3和表2所确定的能够被预测的采用非调色板模式的像素的样本预测信息(也可称为predicted escape sample)。Table 5 shows sample prediction information (also referred to as predicted escape sample) of pixels that can be predicted using non-palette mode determined according to Tables 3 and 2.
表5table 5
索引 index 00 11 22
y y 120120 122122 222222
CbCb 5050 7878 133133
CrCr 5959 6363 124124
如表5所示,表2中index=1,2,63的三个像素在该表5中的index分别为0,1,2。可以分别采用2比特表示。可以将index为0,1,2的信息而不是index为1,2,63的信息进行比特流编码。As shown in Table 5, the indices of the three pixels of index=1, 2, 63 in Table 2 are 0, 1, and 2 in Table 5, respectively. It can be represented by 2 bits each. The information of index 0, 1, 2 can be bit stream encoded instead of the information whose index is 1, 2, 63.
由此,可以将重用标识位信息,以及能够被预测的采用非调色板模式的像素在样本预测信息中的索引进行比特流编码。对于能够被预测的采用非调色板模式的像素而言,可以仅采用例如表5中的索引(使用2比特)而不是表2中的索引(使用6比特)进行编码,由此可以进一步减少比特编码的代价。Thereby, the reuse flag information and the index of the pixels in the non-palette mode that can be predicted in the sample prediction information can be bit-stream encoded. For pixels that can be predicted to adopt a non-palette mode, encoding can be performed using only the index in Table 5 (using 2 bits) instead of the index in Table 2 (using 6 bits), thereby further reducing The cost of bit coding.
在本实施例中,还可以将标识所述采用非调色板模式的像素能够被预测的标识位(例如使用1表示能够被预测),和/或将标识所述采用非调色板模式的像素不能够被预测的标识位(例如使用0表示不能被预测)进行比特流编码。In this embodiment, the identifiers that identify the pixels in the non-palette mode can be predicted (eg, using 1 to be predicted), and/or the non-palette mode will be identified. The pixel cannot be predicted by the identified bit (eg, using 0 to indicate that it cannot be predicted) for bitstream encoding.
此外,对于不能够被预测的采用非调色板模式的像素,可以直接将像素值进行比特流编码。对于采用调色板模式的像素,可以确定所述调色板模式所对应的调色板;对于采用调色板模式的像素,基于所述调色板确定对应的像素索引,以及将所述采用调色板模式的像素所对应的像素索引进行比特流编码。在具体实施时,可以采用相关的任意一种方法。In addition, for pixels that are not predictable in a non-palette mode, the pixel values can be directly bitstream encoded. For a pixel adopting a palette mode, a palette corresponding to the palette mode may be determined; for a pixel adopting a palette mode, a corresponding pixel index is determined based on the palette, and the adoption is performed The pixel index corresponding to the pixels of the palette mode is bit stream encoded. In the specific implementation, any one of the related methods can be adopted.
图4是本发明实施例的图像编码方法的另一流程示意图,示出了对采用非调色板模式的像素以及采用调色板模式的像素共同进行处理的情况。4 is another flow diagram of an image encoding method according to an embodiment of the present invention, showing a case where pixels in a non-palette mode and pixels in a palette mode are processed together.
如图4所示,所述编码方法包括:As shown in FIG. 4, the encoding method includes:
步骤401,对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式。Step 401: 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.
步骤402,确定所述调色板模式所对应的调色板。 Step 402, determining a color palette corresponding to the palette mode.
步骤403,根据采用非调色板模式的像素的像素值是否存在于非调色板预测信息中,确定所述采用非调色板模式的像素的重用标识位信息;并将所述重用标识位信息进行比特流编码。Step 403: Determine, according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-palette prediction information, the reuse identifier information of the pixel adopting the non-palette mode; and use the reuse identifier bit The information is bitstream encoded.
步骤404,将所述待编码图像区域中的能够被预测的采用非调色板模式的像素形成样本预测信息。Step 404: Form the sample prediction information into the non-palette mode pixels that can be predicted in the image region to be encoded.
步骤405,对于采用调色板模式的像素,基于所述调色板确定对应的像素索引,并将像素索引进行比特流编码。Step 405: For pixels adopting the palette mode, determine a corresponding pixel index based on the palette, and perform bit stream encoding on the pixel index.
关于如何确定调色板模式或非调色板模式,如何确定调色板以及如何处理采用调色板模式的像素,具体内容可以参考相关技术。How to determine the palette mode or non-palette mode, how to determine the color palette and how to deal with the pixels in the palette mode, the specific content can refer to the related technology.
步骤406,对于采用非调色板模式的像素,将采用非调色板模式的像素所对应的编码信息进行比特流编码。Step 406: For pixels adopting the non-palette mode, bit coding is performed on the coding information corresponding to the pixels in the non-palette mode.
其中,如果采用非调色板模式的像素能够被预测,则将该采用非调色板模式的像素在所述样本预测信息中的索引以及相应标识位进行比特流编码;如果采用非调色板模式的像素不能够被预测,则将该采用非调色板模式的像素的像素值以及相应标识位进行比特流编码。Wherein, if a pixel adopting the non-palette mode can be predicted, the index of the pixel in the non-palette mode in the sample prediction information and the corresponding identification bit are bit-stream encoded; if a non-palette is adopted The pixels of the pattern cannot be predicted, and the pixel values of the pixels in the non-palette mode and the corresponding identification bits are bit-stream encoded.
例如,对于如表3所示的index=1的像素,可以将1比特标识位(例如1,表示能够被预测)以及在表5中的索引0(采用2比特表示)进行比特流编码;对于如表3所示的index=2的像素,可以将1比特标识位(例如1,表示能够被预测)以及在表5中的索引1(采用2比特表示)进行比特流编码;对于如表3所示的index=15的像素,可以将1比特标识位(例如1,表示能够被预测)以及在表5中的索引2(采用2比特表示)进行比特流编码。For example, for a pixel with index=1 as shown in Table 3, a 1-bit flag (eg, 1 indicating that it can be predicted) and an index 0 (indicated by 2 bits) in Table 5 can be bitstream-encoded; A pixel of index=2 as shown in Table 3 may be bitstream-encoded with a 1-bit flag (eg, 1 indicating that it can be predicted) and an index 1 (indicated by 2 bits) in Table 5; The illustrated pixel of index=15 may be bitstream encoded with a 1-bit flag (eg, 1 indicating that it can be predicted) and an index 2 (indicated by 2 bits) in Table 5.
对于如表3所示的其他13个像素,直接将像素值(采用3*8个比特,即包括三个分量,每个分量采用8比特表示)进行比特流编码。此外,对于每个像素,还需要将1比特标识位(例如0,表示不能够被预测)进行比特流编码。For the other 13 pixels as shown in Table 3, the pixel values (using 3*8 bits, that is, including three components, each of which is represented by 8 bits) are directly subjected to bit stream encoding. In addition, for each pixel, it is also necessary to perform bit stream encoding by using a 1-bit flag (for example, 0, indicating that it cannot be predicted).
在本实施例中,还可以将当前CU的调色板信息等编入比特流中,具体可以参考相关技术。此外,图4仅示意性地进行了说明,但本发明不限于此,例如还可以根据实际情况改变各个步骤的执行顺序。In this embodiment, the palette information of the current CU and the like may be incorporated into the bit stream, and the related art may be specifically referred to. In addition, FIG. 4 is only schematically illustrated, but the present invention is not limited thereto, and for example, the execution order of each step may be changed according to actual conditions.
在本实施例中,对于一个编码单元中的各个像素,可以在进行扫描时确定各自进行编码的信息。图5是本发明实施例的图像编码方法的另一流程示意图,如图5所示, 所述图像编码方法包括:In the present embodiment, for each pixel in one coding unit, information that is encoded separately can be determined at the time of scanning. FIG. 5 is another schematic flowchart of an image encoding method according to an embodiment of the present invention, as shown in FIG. 5, The image encoding method includes:
步骤501,确定CU中各像素的模式以及该CU的调色板;Step 501: Determine a mode of each pixel in the CU and a color palette of the CU.
步骤502,确定采用非调色板模式的像素的重用标识位信息。Step 502: Determine reuse identifier information of pixels in the non-palette mode.
步骤503,将能够被预测的采用非调色板模式的像素形成样本预测信息。 Step 503, the sample prediction information is formed by pixels that can be predicted to adopt the non-palette mode.
步骤504,判断当前像素是否采用非调色板模式;在采用调色板模式的情况下执行步骤508,在采用非调色板模式的情况下执行步骤505; Step 504, it is determined whether the current pixel adopts the non-palette mode; in the case of adopting the palette mode, step 508 is performed, and in the case of adopting the non-palette mode, step 505 is performed;
步骤505,判断当前像素的像素值是否在非调色板预测信息中,如果是则执行步骤506,否则执行步骤507; Step 505, it is determined whether the pixel value of the current pixel is in the non-palette prediction information, if yes, step 506 is performed, otherwise step 507 is performed;
步骤506,将相应的标识位以及该像素在样本预测信息中的索引作为编码信息; Step 506, using the corresponding identifier bit and an index of the pixel in the sample prediction information as the encoding information;
步骤507,将相应的标识位以及该像素的像素值作为编码信息; Step 507, the corresponding identification bit and the pixel value of the pixel are used as encoding information;
步骤508,基于调色板确定对应的像素索引,并将该像素索引作为编码信息;Step 508: Determine a corresponding pixel index based on the color palette, and use the pixel index as the encoding information.
步骤509,判断是否还有其他像素,如果是则对于下一像素执行步骤504。In step 509, it is determined whether there are other pixels, and if so, step 504 is performed for the next pixel.
为简单起见,图5中仅示出了确定各像素进行编码的信息的内容,而没有示出比特流编码等其他内容。在确定各像素进行编码的信息之后,可以立即进行比特流编码,也可以在扫描完成后对所有像素进行比特流编码,可以根据实际情况确定编码的时间。For the sake of simplicity, only the content of the information for determining the encoding of each pixel is shown in FIG. 5, and other contents such as bit stream encoding are not shown. After determining the information for encoding each pixel, the bit stream encoding may be performed immediately, or all pixels may be bit stream encoded after the scanning is completed, and the encoding time may be determined according to actual conditions.
由上述实施例可知,将采用非调色板模式的像素的重用标识位信息,以及能够被预测的采用非调色板模式的像素在样本预测信息中的索引进行编码;由此,即使在非调色板预测表比较大的情况下,也可以使用较少的比特对采用非调色板模式的像素进行编码,进一步减少编码的比特代价。It can be seen from the above embodiment that the reused identification bit information of the pixels in the non-palette mode and the index of the pixels in the non-palette mode that can be predicted in the sample prediction information are encoded; thus, even in the non- In the case where the palette prediction table is relatively large, it is also possible to encode pixels in the non-palette mode using fewer bits, further reducing the bit cost of encoding.
实施例2Example 2
本发明实施例提供一种图像编码装置,对应于实施例1中的图像编码方法,相同的内容不再赘述。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.
图6是本发明实施例的图像编码装置的一示意图,如图6所示,所述编码装置600包括:FIG. 6 is a schematic diagram of an image encoding apparatus according to an embodiment of the present invention. As shown in FIG. 6, the encoding apparatus 600 includes:
编码模式确定单元601,对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;The encoding mode determining unit 601 determines that a palette mode is adopted for a plurality of pixels in the image region to be encoded, and determines that a non-pal palette mode is adopted for the other one or more pixels in the image region to be encoded;
重用信息确定单元602,根据采用非调色板模式的像素的像素值是否存在于非调 色板预测信息中,确定所述采用非调色板模式的像素的重用标识位信息;The reuse information determining unit 602 determines whether the pixel value of the pixel adopting the non-palette mode exists in the non-tune In the swatch prediction information, determining the reuse identifier information of the pixel adopting the non-palette mode;
样本预测确定单元603,对于采用非调色板模式的像素,将所述待编码图像区域中的能够被预测的采用非调色板模式的像素形成样本预测信息;The sample prediction determining unit 603, for the pixels adopting the non-palette mode, forming the sample prediction information by using the non-palette mode pixels in the image region to be encoded that can be predicted;
比特流编码单元604,将所述重用标识位信息,以及所述能够被预测的采用非调色板模式的像素在所述样本预测信息中的索引进行比特流编码。The bitstream encoding unit 604 performs bitstream encoding on the reused identification bit information and the index of the pixel in the non-palette mode that can be predicted in the sample prediction information.
在本实施例中,所述比特流编码单元604还可以用于:将标识所述采用非调色板模式的像素能够被预测的标识位,和/或将标识所述采用非调色板模式的像素不能够被预测的标识位进行比特流编码。In this embodiment, the bitstream encoding unit 604 may be further configured to: identify an identifier bit that is capable of being predicted by the pixel in the non-palette mode, and/or identify the adopted non-palette mode The pixels cannot be bitstream encoded by the predicted flag.
在本实施例中,所述重用信息确定单元602具体可以用于:在采用非调色板模式的像素的像素值存在于所述非调色板预测信息中的情况下,将所述采用非调色板模式的像素的重用标识位信息确定为第一值,在采用非调色板模式的像素的像素值不存在于所述非调色板预测信息中的情况下,将所述采用非调色板模式的像素的重用标识位信息确定为第二值。In this embodiment, the reuse information determining unit 602 may be specifically configured to: if the pixel value of the pixel adopting the non-palette mode exists in the non-pal palette prediction information, The reused identification bit information of the pixels of the palette mode is determined to be the first value, and in the case where the pixel value of the pixel adopting the non-palette mode is not present in the non-palette prediction information, the adoption is not The reuse flag information of the pixels of the palette mode is determined to be the second value.
其中,第一值可以为1,第二值可以为0,但本发明不限于此。Wherein, the first value may be 1, and the second value may be 0, but the invention is not limited thereto.
在本实施例中,所述比特流编码单元604还可以用于:将不能够被预测的采用非调色板模式的像素的像素值进行比特流编码。In this embodiment, the bitstream encoding unit 604 is further configured to: perform bitstream encoding on pixel values of pixels that are not predictable and adopt non-palette mode.
如图6所示,所述图像编码装置600还可以包括:As shown in FIG. 6, the image encoding apparatus 600 may further include:
调色板确定单元605,确定所述调色板模式所对应的调色板;a palette determining unit 605, determining a palette corresponding to the palette mode;
像素索引确定单元606,对于采用调色板模式的像素,基于所述调色板确定对应的像素索引,以及a pixel index determining unit 606, for a pixel adopting a palette mode, determining a corresponding pixel index based on the color palette, and
所述比特流编码单元604还可以用于:将所述采用调色板模式的像素所对应的像素索引进行比特流编码。The bitstream encoding unit 604 is further configured to: perform bitstream encoding on a pixel index corresponding to the pixel in the palette mode.
在本实施例中,所述非调色板预测信息可以被预先生成,并且基于被编码的像素信息被更新。In the present embodiment, the non-palette prediction information may be generated in advance and updated based on the encoded pixel information.
由上述实施例可知,将采用非调色板模式的像素的重用标识位信息,以及能够被预测的采用非调色板模式的像素在样本预测信息中的索引进行编码;由此,即使在非调色板预测表比较大的情况下,也可以使用较少的比特对采用非调色板模式的像素进行编码,进一步减少编码的比特代价。 It can be seen from the above embodiment that the reused identification bit information of the pixels in the non-palette mode and the index of the pixels in the non-palette mode that can be predicted in the sample prediction information are encoded; thus, even in the non- In the case where the palette prediction table is relatively large, it is also possible to encode pixels in the non-palette mode using fewer bits, further reducing the bit cost of encoding.
实施例3Example 3
本发明实施例提供一种图像处理设备,所述图像处理设备包括:如实施例2所述的图像编码装置。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.
图7是本发明实施例的图像处理设备的一构成示意图。如图7所示,图像处理设备700可以包括:中央处理器(CPU)100和存储器110;存储器110耦合到中央处理器100。其中该存储器110可存储各种数据;此外还存储信息处理的程序,并且在中央处理器100的控制下执行该程序。Fig. 7 is a block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. As shown in FIG. 7, the image processing apparatus 700 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.
在一个实施方式中,图像编码装置600的功能可以被集成到中央处理器100中。其中,中央处理器100可以被配置为实现如实施例1所述的图像编码方法。In one embodiment, the functionality of image encoding device 600 may be integrated into central processor 100. Wherein, the central processing unit 100 can be configured to implement the image encoding method as described in Embodiment 1.
在另一个实施方式中,图像编码装置600可以与中央处理器分开配置,例如可以将图像编码装置600配置为与中央处理器100连接的芯片,通过中央处理器的控制来实现图像编码装置600的功能。In another embodiment, the image encoding device 600 may be configured separately from the central processing unit. For example, the image encoding device 600 may be configured as a chip connected to the central processing unit 100, and the image encoding device 600 may be implemented by control of the central processing unit. Features.
此外,如图7所示,图像处理设备700还可以包括:输入输出单元120和显示单元130等;其中,上述部件的功能与现有技术类似,此处不再赘述。值得注意的是,图像处理设备700也并不是必须要包括图7中所示的所有部件;此外,图像处理设备700还可以包括图7中没有示出的部件,可以参考现有技术。In addition, as shown in FIG. 7, the image processing apparatus 700 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 700 does not necessarily have to include all of the components shown in FIG. 7; in addition, the image processing apparatus 700 may further include components not shown in FIG. 7, and reference may be made to the related art.
在本实施例中,图像处理设备700还可以包括:图像解码装置,该图像解码装置可以相应地进行解码。图像处理设备700可以如上所述地,通过中央处理器100的控制来实现图像解码装置的功能。In the present embodiment, the image processing apparatus 700 may further include: an image decoding device that can perform decoding correspondingly. The image processing apparatus 700 can implement the functions of the image decoding apparatus by the control of the central processing unit 100 as described above.
本发明实施例还提供一种计算机可读程序,其中当在图像处理设备中执行所述程序时,所述程序使得计算机在所述图像处理设备中执行实施例1所述的图像编码方法。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 method described in Embodiment 1 in the image processing apparatus.
本发明实施例还提供一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得计算机在图像处理设备中执行实施例1所述的的图像编码方法。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.
本发明以上的装置和方法可以由硬件实现,也可以由硬件结合软件实现。本发明涉及这样的计算机可读程序,当该程序被逻辑部件所执行时,能够使该逻辑部件实现上文所述的装置或构成部件,或使该逻辑部件实现上文所述的各种方法或步骤。本发明还涉及用于存储以上程序的存储介质,如硬盘、磁盘、光盘、DVD、flash存储器等。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.
针对附图中描述的功能方框中的一个或多个和/或功能方框的一个或多个组合, 可以实现为用于执行本申请所描述功能的通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件或者其任意适当组合。针对附图描述的功能方框中的一个或多个和/或功能方框的一个或多个组合,还可以实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、与DSP通信结合的一个或多个微处理器或者任何其它这种配置。For one or more of the functional blocks described in the figures and/or one or more combinations of functional blocks, A general purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor for performing the functions described herein can be implemented. Logic device, discrete hardware component, or any suitable combination thereof. 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.
以上结合具体的实施方式对本发明进行了描述,但本领域技术人员应该清楚,这些描述都是示例性的,并不是对本发明保护范围的限制。本领域技术人员可以根据本发明的精神和原理对本发明做出各种变型和修改,这些变型和修改也在本发明的范围内。 The present invention has been described in connection with the specific embodiments thereof, and it should be understood by those skilled in the art that A person skilled in the art can make various modifications and changes to the present invention within the scope of the present invention.

Claims (15)

  1. 一种图像编码方法,所述图像编码方法包括:An image encoding method, the image encoding method comprising:
    对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;Determining a plurality of pixels in the encoded image region to determine a palette mode, and determining to adopt a non-palette mode for the other one or more pixels in the image region to be encoded;
    根据采用非调色板模式的像素的像素值是否存在于非调色板预测信息中,确定所述采用非调色板模式的像素的重用标识位信息;Determining, according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-pal palette prediction information, determining the reuse identifier bit information of the pixel adopting the non-palette mode;
    对于采用非调色板模式的像素,将所述待编码图像区域中的能够被预测的采用非调色板模式的像素形成样本预测信息;For pixels adopting the non-palette mode, the pixel prediction pixels in the image region to be encoded that can be predicted to form the sample prediction information are formed;
    将所述重用标识位信息,以及所述能够被预测的采用非调色板模式的像素在所述样本预测信息中的索引进行比特流编码。The reuse identifier bit information, and the index of the non-palette mode pixels that can be predicted in the sample prediction information are bit-stream encoded.
  2. 根据权利要求1所述的图像编码方法,其中,所述方法还包括:将标识所述采用非调色板模式的像素能够被预测的标识位,和/或将标识所述采用非调色板模式的像素不能够被预测的标识位进行比特流编码。The image encoding method according to claim 1, wherein the method further comprises: identifying an identification bit that is capable of being predicted by the pixel in the non-palette mode, and/or identifying the non-palette used The pixels of the pattern cannot be bitstream encoded by the predicted flag.
  3. 根据权利要求1所述的图像编码方法,其中,在采用非调色板模式的像素的像素值存在于所述非调色板预测信息中的情况下,所述采用非调色板模式的像素的重用标识位信息为第一值,在采用非调色板模式的像素的像素值不存在于所述非调色板预测信息中的情况下,所述采用非调色板模式的像素的重用标识位信息为第二值。The image encoding method according to claim 1, wherein in a case where a pixel value of a pixel adopting a non-palette mode exists in the non-pal palette prediction information, the pixel in a non-palette mode is employed The reused identification bit information is a first value, and in the case where the pixel value of the pixel adopting the non-palette mode is not present in the non-palette prediction information, the reuse of the pixel using the non-palette mode The identification bit information is the second value.
  4. 根据权利要求3所述的图像编码方法,其中,所述第一值为1,所述第二值为0。The image encoding method according to claim 3, wherein said first value is 1 and said second value is 0.
  5. 根据权利要求1所述的图像编码方法,其中,所述方法还包括:The image encoding method according to claim 1, wherein the method further comprises:
    将不能够被预测的采用非调色板模式的像素的像素值进行比特流编码。Bitstream encoding is performed on pixel values of pixels that are not predictable using non-palette mode.
  6. 根据权利要求1所述的图像编码方法,其中,所述方法还包括:The image encoding method according to claim 1, wherein the method further comprises:
    确定所述调色板模式所对应的调色板;Determining a palette corresponding to the palette mode;
    对于采用调色板模式的像素,基于所述调色板确定对应的像素索引,以及For pixels in the palette mode, a corresponding pixel index is determined based on the palette, and
    将所述采用调色板模式的像素所对应的像素索引进行比特流编码。The pixel index corresponding to the pixel in the palette mode is bit stream encoded.
  7. 根据权利要求1所述的图像编码方法,其中,所述非调色板预测信息被预先生成,并且基于被编码的像素信息被更新。The image encoding method according to claim 1, wherein the non-palette prediction information is previously generated and updated based on the encoded pixel information.
  8. 一种图像编码装置,所述图像编码装置包括: An image encoding device, the image encoding device comprising:
    编码模式确定单元,对待编码图像区域中的多个像素确定采用调色板模式,以及对所述待编码图像区域中的其他一个或多个像素确定采用非调色板模式;The encoding mode determining unit determines that a palette mode is adopted for the plurality of pixels in the image region to be encoded, and determines that the non-pal palette mode is adopted for the other one or more pixels in the image region to be encoded;
    重用信息确定单元,根据采用非调色板模式的像素的像素值是否存在于非调色板预测信息中,确定所述采用非调色板模式的像素的重用标识位信息;Reusing the information determining unit, determining, according to whether the pixel value of the pixel adopting the non-palette mode exists in the non-pal palette prediction information, determining the reuse identifier bit information of the pixel adopting the non-palette mode;
    样本预测确定单元,对于采用非调色板模式的像素,将所述待编码图像区域中的能够被预测的采用非调色板模式的像素形成样本预测信息;a sample prediction determining unit, for pixels adopting a non-palette mode, forming prediction information of pixels in the image to be encoded that can be predicted using a non-palette mode;
    比特流编码单元,将所述重用标识位信息,以及所述能够被预测的采用非调色板模式的像素在所述样本预测信息中的索引进行比特流编码。The bitstream encoding unit performs bitstream encoding on the reused identification bit information and the index of the non-palette mode pixel that can be predicted in the sample prediction information.
  9. 根据权利要求8所述的图像编码装置,其中,所述比特流编码单元还用于:将标识所述采用非调色板模式的像素能够被预测的标识位,和/或将标识所述采用非调色板模式的像素不能够被预测的标识位进行比特流编码。The image encoding apparatus according to claim 8, wherein said bitstream encoding unit is further configured to: identify an identification bit that can identify said pixel adopting a non-palette mode, and/or will identify said adoption Pixels in non-palette mode cannot be bitstream encoded by the predicted flag.
  10. 根据权利要求8所述的图像编码装置,其中,所述重用信息确定单元用于:在采用非调色板模式的像素的像素值存在于所述非调色板预测信息中的情况下,将所述采用非调色板模式的像素的重用标识位信息确定为第一值,在采用非调色板模式的像素的像素值不存在于所述非调色板预测信息中的情况下,将所述采用非调色板模式的像素的重用标识位信息确定为第二值。The image encoding apparatus according to claim 8, wherein said reuse information determining unit is configured to: if a pixel value of a pixel adopting a non-palette mode exists in said non-pal palette prediction information, The reuse flag information of the pixel adopting the non-palette mode is determined to be a first value, and in a case where a pixel value of a pixel adopting the non-palette mode is not present in the non-pal palette prediction information, The reuse flag information of the pixel in the non-palette mode is determined to be the second value.
  11. 根据权利要求8所述的图像编码装置,其中,所述比特流编码单元还用于:将不能够被预测的采用非调色板模式的像素的像素值进行比特流编码。The image encoding apparatus according to claim 8, wherein said bit stream encoding unit is further configured to perform bit stream encoding on pixel values of pixels in a non-palette mode that cannot be predicted.
  12. 根据权利要求8所述的图像编码装置,其中,所述装置还包括:The image encoding device according to claim 8, wherein the device further comprises:
    调色板确定单元,确定所述调色板模式所对应的调色板;a palette determining unit, determining a palette corresponding to the palette mode;
    像素索引确定单元,对于采用调色板模式的像素,基于所述调色板确定对应的像素索引,以及a pixel index determining unit, for a pixel adopting a palette mode, determining a corresponding pixel index based on the palette, and
    所述比特流编码单元还用于:将所述采用调色板模式的像素所对应的像素索引进行比特流编码。The bitstream encoding unit is further configured to: perform bitstream encoding on a pixel index corresponding to the pixel in the palette mode.
  13. 根据权利要求8所述的图像编码装置,其中,所述非调色板预测信息被预先生成,并且基于被编码的像素信息被更新。The image encoding device according to claim 8, wherein the non-palette prediction information is previously generated and updated based on the encoded pixel information.
  14. 一种图像处理设备,包括:如权利要求8所述的图像编码装置。An image processing apparatus comprising: the image encoding apparatus according to claim 8.
  15. 根据权利要求14所述的图像处理设备,其中,所述图像处理设备还包括:The image processing device according to claim 14, wherein the image processing device further comprises:
    解码装置,对比特流进行解码以获得图像。 A decoding device that decodes the bitstream to obtain an image.
PCT/CN2014/095548 2014-12-30 2014-12-30 Image coding method and apparatus and image processing device WO2016106555A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/095548 WO2016106555A1 (en) 2014-12-30 2014-12-30 Image coding method and apparatus and image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/095548 WO2016106555A1 (en) 2014-12-30 2014-12-30 Image coding method and apparatus and image processing device

Publications (1)

Publication Number Publication Date
WO2016106555A1 true WO2016106555A1 (en) 2016-07-07

Family

ID=56283839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095548 WO2016106555A1 (en) 2014-12-30 2014-12-30 Image coding method and apparatus and image processing device

Country Status (1)

Country Link
WO (1) WO2016106555A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713719A (en) * 2004-06-15 2005-12-28 奥林巴斯株式会社 Image processing method
CN1716998A (en) * 2004-06-14 2006-01-04 奥林巴斯株式会社 Picture compressor and picture reproducer
US7162077B2 (en) * 2001-10-19 2007-01-09 Sharp Laboratories Of America, Inc. Palette-based image compression method, system and data file
CN101340587A (en) * 2007-07-05 2009-01-07 联发科技股份有限公司 Method for encoding input image, method and apparatus for displaying an encoded image
US20140055484A1 (en) * 2012-08-24 2014-02-27 Samsung Electronics Co., Ltd. Electronic device displaying an image by using image included in content and a method of displaying the image on the electronic device
CN104247410A (en) * 2012-03-30 2014-12-24 富士通株式会社 Color chart detection device, color chart detection method and color chart detection computer program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162077B2 (en) * 2001-10-19 2007-01-09 Sharp Laboratories Of America, Inc. Palette-based image compression method, system and data file
CN1716998A (en) * 2004-06-14 2006-01-04 奥林巴斯株式会社 Picture compressor and picture reproducer
CN1713719A (en) * 2004-06-15 2005-12-28 奥林巴斯株式会社 Image processing method
CN101340587A (en) * 2007-07-05 2009-01-07 联发科技股份有限公司 Method for encoding input image, method and apparatus for displaying an encoded image
CN104247410A (en) * 2012-03-30 2014-12-24 富士通株式会社 Color chart detection device, color chart detection method and color chart detection computer program
US20140055484A1 (en) * 2012-08-24 2014-02-27 Samsung Electronics Co., Ltd. Electronic device displaying an image by using image included in content and a method of displaying the image on the electronic device

Similar Documents

Publication Publication Date Title
US11302036B2 (en) Color conversion between color spaces using reduced dimension embeddings
JP2016076924A (en) Method of pulse-code modulation and pallet coding for video coding
US20160100178A1 (en) Method of color palette coding applicable to electronic device and electronic device using the same
JP6252225B2 (en) Image processing apparatus, image processing method, and image forming apparatus
WO2017063168A1 (en) Image coding method and apparatus, and image processing device
TW201926993A (en) Video decoding apparatus and video decoding method
JP7067655B2 (en) Image coding equipment, image decoding equipment, and image processing equipment
US20150023416A1 (en) Image encoding device and image decoding device
WO2016106555A1 (en) Image coding method and apparatus and image processing device
WO2016049843A1 (en) Palette coding method and apparatus and image processing device
WO2016106554A1 (en) Image coding method and apparatus and image processing device
US20220004857A1 (en) Neural network processing apparatus, neural network processing method, and neural network processing program
WO2016045077A1 (en) Image coding method and apparatus and image processing device
WO2016106553A1 (en) Image coding method and apparatus and image processing device
WO2016192053A1 (en) Copy information coding method and apparatus, and image processing device
WO2016119196A1 (en) Image coding method, apparatus, and image processing device
CN112449201B (en) Decoding method, encoding method, corresponding devices, electronic equipment and storage medium
WO2016192055A1 (en) Image coding method and apparatus using prediction information and image processing device
CN112449186B (en) Encoding method, decoding method, corresponding devices, electronic equipment and storage medium
WO2016192054A1 (en) Image coding method and apparatus using prediction information and image processing device
WO2016197317A1 (en) Copy information encoding and decoding method and apparatus, and image processing device
WO2015192340A1 (en) Palette-based image coding method, device and image processing device
WO2016029419A1 (en) Image encoding method and device, and image processing device
WO2016033791A1 (en) Generating method and apparatus for palette, and image processing device
WO2016197312A1 (en) Method and apparatus for encoding pixel index and image processing device

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: 14909367

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: 14909367

Country of ref document: EP

Kind code of ref document: A1