WO2013185494A1 - 图像编码方法、图像解码方法及图像编码器和图像解码器 - Google Patents

图像编码方法、图像解码方法及图像编码器和图像解码器 Download PDF

Info

Publication number
WO2013185494A1
WO2013185494A1 PCT/CN2013/072207 CN2013072207W WO2013185494A1 WO 2013185494 A1 WO2013185494 A1 WO 2013185494A1 CN 2013072207 W CN2013072207 W CN 2013072207W WO 2013185494 A1 WO2013185494 A1 WO 2013185494A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
frame
bit
low
information
Prior art date
Application number
PCT/CN2013/072207
Other languages
English (en)
French (fr)
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 华为技术有限公司
Publication of WO2013185494A1 publication Critical patent/WO2013185494A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234327Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by decomposing into layers, e.g. base layer and one or more enhancement layers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
    • H04N19/34Scalability techniques involving progressive bit-plane based encoding of the enhancement layer, e.g. fine granular scalability [FGS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/65Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using error resilience
    • H04N19/66Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using error resilience involving data partitioning, i.e. separation of data into packets or partitions according to importance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2381Adapting the multiplex stream to a specific network, e.g. an Internet Protocol [IP] network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/188Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a video data packet, e.g. a network abstraction layer [NAL] unit

Definitions

  • the present invention relates to the field of computers, and in particular, to an image encoding method, an image decoding method, and an image encoder and an image decoder. Background technique
  • an encoder higher than 8 bits wide is required to encode an image higher than 8 bits wide to obtain a corresponding code stream; and, When decoding a code stream corresponding to an 8-bit wide image, it is necessary to use a decoder higher than 8 bits wide to decode a code stream corresponding to an image higher than 8 bits wide.
  • the prior art has at least the following problems:
  • the prior art has high computational complexity for encoding and decoding images, which makes the structure of the encoder and decoder used complicated and costly. Therefore, the cost of encoding and decoding corresponding images in the prior art is high.
  • the present invention provides an image encoding method, an image decoding method, and an image encoder and an image decoder.
  • the technical solution is as follows:
  • An image encoding method comprising:
  • the one frame image includes a first bit wide bit
  • the one frame high image includes a second bit wide bit
  • the one frame low image includes a two-bit wide bit, the first bit width being greater than the second bit width and less than twice the second bit width
  • encoding the one-frame high-order image to obtain a first network data packet
  • the first The network data packet includes frame identification information of the one-frame image, valid bit information of the one-bit high-order image, and an image type, where the frame identification information is used to identify the one-frame image, and the one-frame high-order image Valid bit information And a bit in the one-frame image included in the one-frame high-order image, where the image type included in the first network data packet is a high-level image;
  • the valid bit information of the lower frame image of the one frame is used to indicate bits in the one frame image included in the lower frame image of the one frame, and the image type included in the second network data packet is a low bit image.
  • a method for decoding a network data packet corresponding to the image comprising: decoding a network data packet to obtain a first image, a second image, and frame identification information of the first image and the second image, The effective bit information and the image type, wherein the bit width of the first image is the first bit width, the bit width of the second image is the second bit width, and the image type of the first image is parsed as the high image And the image type of the second image is a low-level image;
  • a first wide reconstructed image the first bit width being greater than the second bit width and less than or equal to twice the second bit width.
  • An image encoder comprising:
  • a dividing module configured to divide a frame image into a frame high image and a frame low image, the one frame image includes a first bit wide bit, and the one frame high image includes a second bit wide bit, the one The frame lower image includes a second bit wide bit, the first bit width being greater than the second bit width and less than twice the second bit width;
  • a first encoding module configured to encode a frame high image divided by the dividing module to obtain a first network data packet, where the first network data packet includes frame identification information of the one frame image, the one frame The effective bit information of the high-order image and the image type, the frame identification information is used to identify the one-frame image, and the valid bit information of the one-frame high-order image is used to indicate the one frame included in the one-frame high-order image a bit in the image, the image type included in the first network data packet is a high-level image;
  • a second encoding module configured to encode a frame low image divided by the dividing module to obtain a second network data packet, where the second network data packet includes frame identification information of the one frame image, the one frame Valid bit information and image type of the lower image, the valid bit information of the lower image of the one frame is used to indicate bits in the one image included in the lower image of the one frame, and the second network data packet includes The image type is a low image.
  • An image decoder for decoding a network packet corresponding to the image the image decoder comprising:
  • a decoding module configured to decode a network data packet to obtain a first image, a second image, and frame identification information, valid bit information, and an image type of the first image and the second image, where the bit of the first image
  • the width is the first bit width
  • the bit width of the second image is the second bit width
  • the image type of the first image is parsed as the high image and the image type of the second image is the low image
  • a reconstruction module configured to: frame identification information, valid bit information, and image type of the first image obtained by decoding by the decoding module, and frame identification information, valid bit information, and image type of the second image, The first image and the second image are reconstructed to obtain a reconstructed image of a first bit width, the first bit width being greater than the second bit width and less than or equal to twice the second bit width.
  • the image of the first bit width of one frame is divided into a high-order image of a second bit width of one frame and a low-order image of a second bit width of one frame, and the high-order image of the frame is encoded.
  • a network data packet the first network data packet includes frame identification information of the frame image, valid bit information of the high-order image of the frame, and an image type, and the lower-order image of the frame is encoded to obtain a second network data packet, and the second network data
  • the packet includes frame identification information of the frame image, valid bit information of the low-order image of the frame, and an image type.
  • the network transmission packet corresponding to the image is decoded to obtain a first image of the second bit width and a second bit width.
  • a second image, frame identification information of the first image and the second image, valid bit information, and image type parsing the image type of the first image as a high image and the image type of the second image as a low image;
  • Frame identification information, valid bit information and image type, and frame identification information, valid bit information and image type of the second image for the first image and Image reconstruction to obtain a first width of the reconstructed image.
  • the first bit width is greater than the second bit width, so in the embodiment, the second bit wide encoder can be used to encode the first bit wide image, and the second bit wide encoder can be used to decode The first wide image is output, which reduces the cost of encoding and decoding.
  • FIG. 1 is a flowchart of a method for image coding according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for image encoding according to another embodiment of the present invention.
  • 3 is a schematic structural diagram of an image A, a high image A1, and a low image A2 according to another embodiment of the present invention
  • 4 is a schematic structural diagram of an image B, a high-order image B1, and a low-order image B2 according to another embodiment of the present invention
  • FIG. 5 is a flowchart of a method for encoding an image according to another embodiment of the present invention.
  • FIG. 6 is a flow chart of a method for image decoding provided by another embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for decoding an image according to another embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for decoding an image according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an image encoder provided by another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an image decoder provided by another embodiment of the present invention.
  • an embodiment of the present invention provides a method for image coding, including:
  • Step 101 Divide a frame image into a frame high image and a frame low image, the frame image includes a first bit wide bit, the frame high image includes a second bit wide bit, and the frame low image includes the second bit a wide bit, the first bit width being greater than the second bit width and less than twice the second bit width;
  • Step 102 Encoding the high-order image of the frame to obtain a first network data packet, where the first network data packet includes frame identification information of the frame image, valid bit information and image type of the high-order image of the frame, and the frame identification information is used by the frame identifier information.
  • the valid bit information of the high-order image of the frame is used to indicate a bit in the frame image included in the high-order image of the frame, and the image type included in the first network data packet is a high-order image;
  • the frame identification information of the frame image may be a timestamp of the frame image or a frame number of the frame image, etc.; the network data packet may be an RTP (Real-time Transport Protocol) packet or the like.
  • RTP Real-time Transport Protocol
  • Step 103 Encoding the low-order image of the frame to obtain a second network data packet, where the second network data packet includes frame identification information of the frame image, valid bit information and image type of the low-order image of the frame, and the low-level image of the frame
  • the valid bit information is used to indicate bits in the frame image included in the low-order image of the frame
  • the image type included in the second network data packet is a low-order image.
  • the image of the first bit width of one frame is divided into the high bitmap of the second bit width of one frame.
  • the first network data packet corresponding to the frame high image is obtained by encoding the high image of the frame with a low bit image of the second bit width of the frame, and the first network transmission packet includes the frame identification information of the frame image and the frame high position.
  • the effective bit information and the image type of the image, the low-order image of the frame is encoded to obtain a second network data packet corresponding to the low-order image of the frame, and the second network data packet includes frame identification information of the frame image, and the effective image of the lower-order image of the frame Bit information and image type.
  • the first bit width is greater than the second bit width, so in the embodiment, the second bit wide encoder can be used to encode the first bit wide image, thus reducing the coding cost.
  • Embodiments of the present invention provide a method for image coding.
  • the transmitting end encodes the image of the first bit width by using the method provided in this embodiment. Referring to FIG. 2, the method includes:
  • Step 201 Divide a frame image into a frame high image and a frame low bitmap, where the frame image includes a first bit wide bit, the frame high image includes a second bit width ratio, and the frame low image includes The second bit width ratio feature, the first bit width is greater than the second bit width and less than or equal to twice the second bit width; wherein, there are various ways to divide one frame image into one frame high image and one frame low image.
  • a preferred manner is provided, specifically:
  • the frame image is divided into a frame high image and a low frame image according to the first difference value and the second difference value, which may specifically include the following two methods:
  • the low second bit width bit corresponding to one frame image is formed into a frame low image
  • the high first difference bit corresponding to the frame image is formed into a low first difference bit corresponding to one frame high image
  • the second difference preset bit is added to the frame high order image to obtain a second bit wide bit included in the frame high order image.
  • the preset bit may be 0 bits or 1 bit.
  • a frame image A includes a first bit wide bit, a first bit width is 12 bits, and a second bit width is 8 bits, and a first space between the first bit width and the second bit width is calculated.
  • the difference is 4, the second difference between the second bit width and the first difference is calculated as 4, and the lower 8 bits corresponding to one frame image A are composed into one frame lower image A2, and the frame image A is correspondingly high.
  • 4-bit bits form a high-order image A1
  • the lower 4 bits of the frame are added to the frame high order image A1 by 4 preset bits. Assuming that the preset bit is 0, the frame high image A1 is supplemented with 4 bits 0, and 8 bits included in the frame high order image A1 are obtained. .
  • the high second bit wide bit corresponding to one frame image is formed into one frame high bit image
  • the low first difference bit bit corresponding to the frame image is formed into a high first difference bit bit corresponding to one frame low bit image
  • the lower frame image of the frame is supplemented with a second difference preset bit to obtain a second bit wide bit included in the lower frame image of the frame.
  • a frame image B includes a first bit wide bit, the first bit width is 12 bits, and the second bit width is 8 bits, and the first between the first bit width and the second bit width is calculated.
  • the difference is 4, and the second difference between the second bit width and the first difference is calculated as 4, and the upper 8 bits corresponding to one frame image B are formed into one frame high image B1, and the frame image B is correspondingly low.
  • the 4-bit bit constitutes the upper 4 bits of the lower-order image B2 of one frame, and adds 4 preset bits to the lower-order image B2 of the frame, assuming that the preset bit is 0, that is, adding 4 bits 0 to the lower-order image B2 of the frame,
  • the frame lower image B2 includes 8 bits.
  • Step 202 Obtain valid bit information of the high-order image of the frame and valid bit information of the lower-order image of the frame, where the valid bit information of the high-order image of the frame is used to indicate a bit in the frame image included in the high-order image of the frame, and the The valid bit information of the frame lower image is used to indicate a bit in the frame image included in the lower frame image of the frame;
  • the method may be: acquiring valid bit information of the high image of the frame, and valid bit information of the high image of the frame may be used to indicate the high image of the frame.
  • the included low first difference bit is a bit in the frame image, and the valid bit information of the low image of the frame is obtained, and the valid bit information of the low image of the frame can be used to indicate the second bit included in the low image of the frame.
  • the wide bits are the bits in the frame image.
  • valid bit information of the frame upper image A1 is obtained, and the valid bit information of the frame high image A1 is used to indicate the frame high image A1.
  • the included lower 4-bit bits are bits in the frame image A, and the valid bit information of the lower-order image A2 of the frame is acquired, and the significant bit information of the lower-order image A2 of the frame is used to indicate the 8-bit bits included in the lower-order image A2 of the frame. Is the bit in image A of the frame.
  • the method may be: acquiring valid bit information of the lower image of the frame, and valid bit information of the low image of the frame may be used to indicate that the low image of the frame includes The high first difference bit is the bit in the frame image, and the high bit of the frame is obtained The significant bit information of the image, and the significant bit information of the high image of the frame may be used to indicate that the second bit width bit included in the high image of the frame is a bit in the frame image.
  • valid bit information of the frame lower image B2 is acquired, and the valid bit information of the frame lower image B2 is used to indicate the frame lower image B2.
  • the included high 4-bit bit is the bit in the frame image B, and the valid bit information of the frame high-order image B1 is obtained, and the valid bit information of the frame high-order image B1 is used to indicate the 8-bit bit included in the frame high-order image B1. Is the bit in the image B of the frame.
  • Step 203 encoding a high-order image of the frame to obtain a code stream of the high-order image of the frame, and setting a code stream of the high-order image of the frame, including frame identification information of the frame image, valid bit information and an image type of the high-order image of the frame, and The image type is a high-level image, and the frame identification information is used to identify the frame image;
  • the first encoder is used to encode the high-order image of the frame to obtain a code stream of the high-order image of the frame, and the code stream of the high-order image of the frame includes image content and additional information of the high-order image of the frame, and the high-order image of the frame is set.
  • the additional information of the code stream includes frame identification information of the frame image, valid bit information of the high-order image of the frame, and an image type, and the image type is a high-order image, and the frame identification information is used to identify the frame image; wherein, the first encoding
  • the bit width of the device is the second bit width.
  • the code stream obtained by the first encoder to obtain the high-order image of the frame includes an image content portion and an additional information portion, wherein the image content portion carries the image content of the high-order image of the frame, and the additional information portion carries the additional information of the high-order image of the frame, and
  • the additional information part may further set the frame identification information of the frame image, the valid bit information of the high-order image of the frame, and the image type, so that the additional information for setting the code stream of the high-order image of the frame includes the frame image.
  • Frame identification information, valid bit information of the high-order image of the frame, and image type may be set.
  • the first image encoder with a bit width of 8 bits is used to encode the frame high image, and the code stream A1 of the frame high image A1 is obtained, and the code stream A1 is set.
  • the frame identification information IDA of the frame image A, the effective bit information of the frame upper image A1, and the image type are included;
  • the first encoder having a bit width of 8 bits is used.
  • the frame upper image is encoded to obtain a code stream B1 of the frame upper image B1, and the code stream B1 is set to include the frame identification information IDB of the frame image B, the valid bit information of the frame upper image B1, and the image type.
  • Step 204 Packetizing a code stream of the high-order image of the frame to obtain a first network data packet corresponding to the high-order image of the frame;
  • the code stream of the one-frame high-order image A1 shown in FIG. 3 is packaged to obtain the first network data packet A1 corresponding to the frame high-order image A1, and a pair as shown in FIG.
  • the code stream of the frame high-order image B1 is packetized to obtain a first network data packet Bio corresponding to the frame high-order image B1.
  • Step 205 encoding a low image of the frame to obtain a code stream of the low-order image of the frame, and setting a code stream of the low-order image of the frame, including frame identification information of the frame image, valid bit information and image type of the low-order image of the frame, and The image type is a low image;
  • the second encoder is used to encode the low-order image of the frame to obtain a code stream of the low-order image of the frame, where the code stream of the lower-order image includes image content and additional information of the lower-order image of the frame, and the low-order image of the frame is set.
  • the additional information of the code stream includes the frame identification information of the frame image, the effective bit information of the low-order image of the frame, and the image type, and the image type is a low-order image; wherein the bit width of the second encoder is the second bit width.
  • the frame lower image A2 is encoded by a second encoder having a bit width of 8 bits, and a code stream A2 of the frame lower image A2 is obtained, and the code stream is set.
  • A2 includes frame identification information IDA of the frame image A, effective bit information of the frame lower image A2, and image type;
  • a frame lower image B2 as shown in FIG. 4 a second encoder pair having a bit width of 8 bits is used.
  • the frame lower image B2 is encoded to obtain a code stream B2 of the frame lower image B2, and the code stream B2 is set to include frame identification information IDB of the frame image B, valid bit information and image type of the frame lower image B2.
  • Step 206 Packetizing the code stream of the low-order image of the frame to obtain a second network data packet corresponding to the lower-order image of the frame.
  • the code stream of the one-frame lower-order image A2 as shown in FIG. 3 is packaged to obtain the second network data packet A2 corresponding to the frame lower-order image A2, and a pair as shown in FIG.
  • the code stream of the frame lower bitmap image B2 is packetized to obtain the second network data packet corresponding to the frame lower bitmap image B2.
  • the network packet corresponding to the frame image is obtained by performing compression encoding on the frame image, and then the network corresponding to the frame image can be obtained.
  • the packet is sent to the receiver.
  • the image of the first bit width of one frame is divided into a high-order image of a second bit width of one frame and a low-order image of a second bit width of one frame, and the high-order image of the frame is encoded to obtain a corresponding image of the high-order image of the frame.
  • a first network data packet and the first network data packet includes frame identification information of the frame image, the frame
  • the effective bit information and the image type of the high-order image, the low-order image of the frame is encoded to obtain a second network data packet corresponding to the lower-order image of the frame
  • the second network data packet includes frame identification information of the frame image, and the lower-order image of the frame Valid bit information and image type.
  • the first bit width is greater than the second bit width, so in the embodiment, the second bit wide encoder can be used to encode the first bit wide image, thus reducing the coding cost; in addition, in this embodiment The second bit wide memory can be used to store the code stream of the upper image corresponding to the first bit wide image and the code stream of the lower bit image, thereby saving memory space.
  • Embodiments of the present invention provide a method for image coding. In this embodiment, for the image of the first bit width, the transmitting end encodes the image of the first bit width by using the method provided in this embodiment. Referring to FIG. 5, the method includes:
  • Step 301 Divide a frame image into a frame high image and a frame low bitmap, where the frame image includes a first bit wide bit, the frame high image includes a second bit wide bit, and the frame low image includes a second bit width, the first bit width being greater than the second bit width and less than or equal to twice the second bit width; specifically, calculating the first difference between the first bit width and the second bit width, calculating The second difference between the two-bit width and the first difference is divided into one frame high image and one frame low image according to the first difference value and the second difference value.
  • Step 302 Obtain valid bit information of the high-order image of the frame and valid bit information of the low-order image of the frame, where the valid bit information of the high-order image of the frame is used to indicate a bit in the frame image included in the high-order image of the frame, and the The valid bit information of the frame lower image is used to indicate a bit in the frame image included in the lower frame image of the frame;
  • step 202 For details of the operations in this step, refer to the corresponding content in step 202 of the foregoing embodiment, which is not described in detail herein.
  • Step 303 Encoding the high-order image of the frame to obtain a code stream of the high-order image of the frame;
  • the first high-order image is encoded by the first encoder to obtain a code stream of the high-order image of the frame, wherein a bit width of the first encoder is a second bit width.
  • Step 304 packetizing a code stream of the high-order image of the frame to obtain a first network data packet corresponding to the high-order image of the frame, and setting a packet header of the first network data packet corresponding to the high-order image of the frame to carry the frame image Frame identification information, valid bit information of the high-order image of the frame, and an image type, and the image type is a high-order image, and the frame identification information is used to identify the frame image;
  • the first network data packet corresponding to the high-order image of the frame includes at least a packet header and a code stream of the high-order image of the frame.
  • Step 305 encoding the low image of the frame to obtain a code stream of the lower image of the frame
  • the lower image of the frame is encoded by the second encoder to obtain a code stream of the low-order image of the frame, wherein the bit width of the second encoder is the second bit width.
  • Step 306 Packetizing a code stream of the low-order image of the frame to obtain a second network data packet corresponding to the lower-order image of the frame, and setting a packet header of the second network data packet corresponding to the lower-order image of the frame to carry frame identification information of the frame image,
  • the valid bit information and image type of the low-order image of the frame, and the image type is a low-level image.
  • the second network data packet corresponding to the low-order image of the frame includes at least a packet header and a code stream of the high-order image of the frame.
  • the network packet corresponding to the frame image is obtained by performing compression encoding on the frame image, and then the network data packet corresponding to the frame image is sent to the receiving end.
  • the image of the first bit width of one frame is divided into a high-order image of a second bit width of one frame and a low-order image of a second bit width of one frame, and the high-order image of the frame is encoded to obtain a corresponding image of the high-order image of the frame.
  • a first network data packet and the packet header of the first network data packet includes frame identification information of the frame image, valid bit information of the high-order image of the frame, and an image type, and the low-order image of the frame is encoded and packed to obtain a low-order image of the frame.
  • Corresponding second network data packet, and the packet header of the second network data packet includes frame identification information of the frame image, valid bit information of the lower frame image, and an image type.
  • the first bit width is greater than the second bit width, so in the embodiment, the second bit wide encoder can be used to encode the first bit wide image, thus reducing the coding cost; in addition, in this embodiment The second bit wide memory can be used to store the code stream of the upper image and the bit stream of the lower image corresponding to the image of the first bit width, thereby saving memory space.
  • an embodiment of the present invention provides a method for image decoding, including:
  • Step 401 Decoding a network data packet to obtain frame identification information, effective bit information, and image type of the first image, the second image, and the first image and the second image, where the bit width of the first image is the first bit width.
  • the bit width of the second image is the second bit width, and the image type of the first image is parsed as a high image and The image type of the second image is a low image;
  • Step 402 Reconstruct the first image and the second image according to the frame identification information, the valid bit information, and the image type of the first image, and the frame identification information, the valid bit information, and the image type of the second image, to obtain the first
  • the reconstructed image of the bit width, the first bit width is greater than the second bit width and less than twice the second bit width.
  • the network transmission packet is decoded to obtain a second bit width first image, a second bit width second image, and frame identification information, effective bit information, and image type of the first image and the second image. And parsing the image type of the first image as the high image and the image type of the second image as the low image; the frame identification information, the valid bit information and the image type according to the first image, and the frame identification information and the valid bit information of the second image And the image type, reconstructing the first image and the second image to obtain a reconstructed image of the first bit width.
  • the first bit width is greater than the second bit width, so in the embodiment, the second bit wide encoder can be used to decode the first bit wide image, thus reducing the decoding cost.
  • Embodiments of the present invention provide a method for image decoding.
  • the transmitting end encodes the image by using the foregoing encoding method to obtain a first network data packet and a second network data packet corresponding to the image, and the receiving end receives the first network data packet corresponding to the image sent by the transmitting end, and the second network.
  • the data packet is then decoded by using the method provided in this embodiment. Referring to FIG. 7, the method includes:
  • Step 501 Unpacking the first network data packet to obtain a first code stream, and unpacking the second network data packet corresponding to the image to obtain a second code stream;
  • the first network data packet is decapsulated to obtain a first code stream
  • the second network data packet is decapsulated to obtain a second code stream.
  • the first network data packet A1 is decapsulated to obtain a first code stream A1
  • the second network data packet A2 is decapsulated to obtain a second code stream A2
  • the first network data packet B1 is decapsulated.
  • Step 502 Decode the first code stream to obtain a first image corresponding to the first code stream, frame identification information of the first image, valid bit information, and an image type.
  • the bit width of the first image is the first bit width, and the image is parsed.
  • the image type is a high image;
  • the first decoder is used to decode the first code stream to obtain additional information of the first image and the first image, and the frame identification information, the valid bit information, and the image type of the first image are extracted from the additional information of the first image.
  • the bit width of the first decoder is the second bit width, and the bit width of the first image is the second bit width,
  • the image type is precipitated as a high image.
  • the first code stream A1 is decoded by the first decoder having a bit width of 8 bits to obtain additional information of the 8-bit first image A1 and the first image A1, from the first
  • the frame identification information IDA, the valid bit information, and the image type of the first image A1 are extracted from the additional information of the image A1, and the image type is parsed as a high-order image.
  • the first code stream B1 is decoded by the first decoder having a bit width of 8 bits to obtain additional information of the 8-bit first image B1 and the first image B1, and the first information is extracted from the additional information of the first image B1.
  • the frame identification information IDB, the valid bit information and the image type of an image B1 are parsed out as the high-order image.
  • Step 503 Decoding the second code stream to obtain a second image width second image corresponding to the second code stream, second frame image identification information, valid bit information, and image type, and parsing the image type into a low image ;
  • the second code stream is decoded by the second decoder to obtain additional information of the second image and the second image, and the frame identification information, the valid bit information, and the image type of the second image are extracted from the additional information of the second image.
  • the bit width of the second decoder is the second bit width
  • the bit width of the second image is the second bit width
  • the image type is parsed as a low-order image.
  • the second code stream A2 is decoded by the second decoder having a bit width of 8 bits to obtain additional information of the 8-bit second image A2 and the second image A2, and the second information is extracted from the additional information of the second image A2.
  • the frame identification information IDA, the valid bit information, and the image type of the image A2 are analyzed, and the lower image of the image type is parsed.
  • the second code stream B2 is decoded by the second decoder having a bit width of 8 bits to obtain additional information of the 8-bit second image B2 and the second image B2, and the second information is extracted from the additional information of the second image B2.
  • the frame identification information IDB, the valid bit information, and the image type of the two images B2 are parsed, and the lower image of the image type is parsed.
  • Step 504 Determine, according to the frame identification information of the first image and the frame identification information of the second image, a frame of the first image and a frame of the second image included in the same frame image;
  • the first image A1 and the second image A2 belong to the same frame image A according to the frame identification information IDA corresponding to the first image A1 and the frame identification information IDA corresponding to the second image A2;
  • Step 505 Parsing an image type of the first image of the frame and determining that the first image of the frame is a high-order image of the frame image, and extracting the first valid from the first image of the frame according to the valid bit information of the first image of the frame. Bit, the first valid bit is a bit in the frame image;
  • the image type of the first image of the frame is parsed as a high-order image, and the first image of the frame is determined as a high-order image of the frame image, and the first frame is determined according to the valid bit information of the first image of the frame.
  • the first valid bit included in the image, the first valid bit is a bit in the frame image, and the determined first valid bit is extracted from the second bit wide bit included in the first image of the frame.
  • the image type of the first image A1 of the frame is parsed as a low-order image, and the first image of the frame is determined to be a high-order image of the frame image A, and the frame is determined according to the valid information of the first image A1 of the frame.
  • the lower 4 bits included in an image are the first significant bits, and the lower 4 bits of the first significant bit are extracted from the 8 bits included in the first image A1 of the frame.
  • the image type of the first image B1 of the frame is parsed as a high-order image, and the first image of the frame is determined as the high-order image of the frame image B, and the frame is determined according to the valid information of the first image B1 of the frame.
  • the 8 bits included in the first image are the first valid bits, and 8 first valid bits are extracted from the first image of the frame.
  • Step 506 Parsing an image type of the second image of the frame and determining that the second image of the frame is a low-level image of the frame image, and extracting a second valid from the second image of the frame according to the valid bit information of the second image of the frame. Bit, the second significant bit is a bit in the frame image;
  • the image type of the second image of the frame is parsed as a low-order image, and the second image of the frame is determined as a low-level image of the frame image, and the frame is determined according to the valid bit information of the second image of the frame.
  • the second valid bit included in the image, the second valid bit is a bit in the frame image, and the determined second valid bit is extracted from the second bit wide bit included in the second image of the frame.
  • the image type of the second image A2 of the frame is parsed as a low-order image, and the second image of the frame is determined as a low-order image of the frame image A, and the frame is determined according to the valid information of the second image A2 of the frame.
  • the 8 bits included in the two images are all the second valid bits, and 8 second valid bits are extracted from the first image of the frame.
  • the image type of the second image B2 of the frame is parsed as a low-order image, and the second image of the frame is determined as a low-order image of the frame image B, and the frame is determined according to the valid information of the second image B2 of the frame.
  • the upper 4-bit bit included in the second image is the second valid bit, and the upper 4 bits of the second significant bit are extracted from the 8 bits included in the second image of the frame.
  • Step 507 According to the frame, the first image is a high-order image and the second image of the frame is a low-order image, and the first valid bit and the second valid bit are combined into a reconstructed image with a frame width of a first bit width.
  • the first valid bit is the high order bit of the one-frame image according to the first image of the frame
  • the second valid bit is the low-order bit of the one-frame image according to the second image of the frame
  • the second bit A valid bit and a second significant bit form a reconstructed image having a frame width of a first bit width.
  • the first bit width is 12 bits
  • the lower 4 bits of the first valid bit extracted from the first image A1 of the frame and the 8 bits of the effective bit extracted from the second image A2 of the frame constitute a first bit width reconstruction.
  • Image eight the lower 4 bits of the first valid bit extracted from the first image A1 of the frame and the 8 bits of the effective bit extracted from the second image A2 of the frame.
  • the 8-bit first significant bit extracted from the first image B1 of the frame and the upper 4 significant bits extracted from the second image B2 of the frame constitute a reconstructed image B of the first bit width.
  • the first network data packet is decoded to obtain a first image of a second bit width, frame identification information, valid bit information, and image type of the first image, and the image type is a high-level image;
  • the data packet is decoded to obtain a second image of the second bit width, frame identification information, effective bit information and image type of the second image, and the image type is a low-level image; frame identification information, valid bit information and image type according to the first image And the frame identification information, the valid bit information, and the image type of the second image, and reconstructing the first image and the second image to obtain a reconstructed image of the first bit width.
  • the first bit width is greater than the second bit width, so in the embodiment, the second bit wide encoder can be used to decode the first bit wide image, thus reducing the decoding cost; in addition, in this embodiment, The second bit wide memory can be used to store the first code stream and the second code stream corresponding to the first bit wide image, thereby saving memory space.
  • Embodiments of the present invention provide a method for image decoding. The transmitting end encodes the image by using the foregoing encoding method to obtain a first network data packet and a second network data packet corresponding to the image, and the receiving end receives the first network data packet corresponding to the image sent by the transmitting end, and the second network. The data packet is then decoded by using the method provided in this embodiment. Referring to FIG. 8, the method includes:
  • Step 601 Unpacking the first network data packet to obtain a first code stream, frame identification information, valid bit information, and image type of the first image corresponding to the first code stream, and parsing the image type of the first image into a high-order image
  • unpacking the second network data packet to obtain a second code stream, frame identification information, valid bit information, and image type of the second image corresponding to the second code stream, and parsing the image type of the second image to a low level Image
  • the first network data packet is decapsulated to obtain a packet header and a first code stream included in the first network data packet, and frame identification information of the first image corresponding to the first code stream is extracted from a packet header of the first network data packet.
  • valid bit information and image type parsing the image type of the first image as a high-order image; decapsulating the second network data packet to obtain a packet header and a second code stream of the second network data packet, from a packet header of the second network data packet.
  • the frame identification information, the valid bit information and the image type of the second image corresponding to the second code stream are extracted, and the image type of the second image is parsed as a low-level image.
  • Step 602 Decoding the first code stream to obtain a first image of a second bit width corresponding to the first code stream;
  • the first code stream is decoded by the first decoder to obtain a first image
  • the bit width of the first decoder is the second bit width
  • the bit width of the first image is the second bit width
  • Step 603 Decoding the second code stream to obtain a second image width second image corresponding to the second code stream
  • the second code stream is decoded by the second decoder to obtain a second image
  • the bit width of the second decoder is the second bit width
  • the bit width of the second image is the second bit width
  • Step 604 Determine, according to the frame identification information of the first image and the frame identification information of the second image, a frame of the first image and a frame of the second image included in the same frame image;
  • Step 605 Parsing an image type of the first image of the frame into a high-order image and determining that the first image is a high-order image of the frame image, and analyzing an image type of the second image of the frame as a low-order image and determining that the second image is a lower image of the frame image;
  • Step 606 Extract a first valid bit from the first image of the frame according to valid bit information of the first image of the frame, where the first valid bit is a bit in the frame image;
  • the first valid bit included in the first image of the frame is determined according to the valid bit information of the first image of the frame, where the first valid bit is a bit in the frame image, and the second image includes a second image from the frame.
  • the determined first valid bit is extracted from the bit width bits.
  • Step 607 Extract a second valid bit from the second image of the frame according to valid bit information of the second image of the frame, where the second valid bit is a bit in the frame image;
  • the second valid bit included in the second image of the frame is determined according to the valid bit information of the second image of the frame, where the second valid bit is a bit in the frame image, and the second image includes a second image from the frame.
  • the determined second valid bit is extracted from the bit width bits.
  • Step 608 According to the frame, the first image is a high-order image and the second image of the frame is a low-order image, and the first valid bit and the second valid bit are combined into a reconstructed image with a frame width of a first bit width.
  • the first valid bit is the high-order image according to the first image of the frame
  • the second valid bit is the lower-order bit of the one-frame image according to the low-order image of the second image
  • the first The valid bit and the second significant bit form a reconstructed image having a frame width of the first bit width
  • the first network data packet is decoded to obtain a first image of the second bit width, frame identification information, valid bit information, and image type of the first image, and the image type of the first image is analyzed as a high image.
  • Decoding the second network data packet to obtain a second image of the second bit width, frame identification information, effective bit information and image type of the second image, and parsing the image type of the second image as a lower image; according to the first image
  • the frame identification information, the valid bit information and the image type, and the frame identification information, the valid bit information and the image type of the second image are reconstructed to obtain a reconstructed image of the first bit width.
  • the first bit width is greater than the second bit width, so in the embodiment, the second bit wide encoder can be used to decode the first bit width image, thereby reducing the decoding cost; in addition, in this embodiment, The second bit wide memory can be used to store the first code stream and the second code stream corresponding to the first bit wide image, thereby saving memory space.
  • an image encoder including:
  • a dividing module 701 configured to divide a frame image into a frame high image and a frame low image, the frame image includes a first bit wide bit, the frame high image includes a second bit wide bit, and the frame low image includes Two bits wide, the first bit width being greater than the second bit width and less than twice the second bit width;
  • the first encoding module 702 is configured to encode the frame high-order image divided by the dividing module 701 to obtain a first network data packet, where the first network data packet includes frame identification information of the frame image, and valid bit information of the frame high-order image. And an image type, the frame identification information is used to identify the frame image, the valid bit information of the high-order image of the frame is used to indicate a bit in the frame image included in the high-order image of the frame, and the image type included in the first network data packet is High image
  • a second encoding module configured to encode the low-order image of the frame divided by the dividing module 701 to obtain a second network data packet, where the second network data packet includes frame identification information of the frame image, and valid bit information of the low-order image of the frame and The image type, the valid bit information of the low-order image of the frame is used to indicate a bit in the frame image included in the low-order image of the frame, and the image type included in the second network data packet is a low-order image.
  • the dividing module 701 includes:
  • a first dividing unit configured to calculate a first difference between the first bit width and the second bit width, and calculate a second difference between the second bit width and the first difference, corresponding to the frame image
  • the low second bit width bit constitutes one frame low bit image
  • the high first difference bit bit corresponding to the frame image is formed into a low first difference bit bit corresponding to one frame high image, and the second difference is added to the frame high image.
  • a second dividing unit configured to calculate a first difference between the first bit width and the second bit width, and calculate a second difference between the second bit width and the first difference a value, the high second bit width bit corresponding to the frame image is formed into a frame high image, and the low first difference bit corresponding to the frame image is formed into a high first difference bit corresponding to one frame low image, The lower frame of the frame is supplemented with a second difference of preset bits.
  • the first encoding module 702 includes:
  • a first coding unit configured to encode the high-order image of the frame to obtain a code stream of the high-order image of the frame, and set additional information of the code stream of the high-order image of the frame, including frame identification information of the frame image, and a valid bit of the high-order image of the frame Information and image type, the code stream of the high image of the frame is packaged to obtain a first network data packet; or
  • a second coding unit configured to encode the high-order image of the frame to obtain a code stream of the high-order image of the frame, and package the code stream of the high-order image of the frame to obtain a first network data packet, and set a packet header of the first network data packet to carry the Frame identification information of the frame image, valid bit information of the high-order image of the frame, and image type.
  • the second encoding module 703 includes:
  • a third coding unit configured to encode the low-order image of the frame to obtain a code stream of the low-order image of the frame, and set additional information of the code stream of the low-order image of the frame, including frame identification information of the frame image, and a valid bit of the low-order image of the frame Information and image type, packetizing the code stream of the low-order image of the frame to obtain a second network data packet;
  • a fourth coding unit configured to encode the low-order image of the frame to obtain a code stream of the low-order image of the frame, and package the code stream of the low-order image of the frame to obtain a second network data packet, and set a packet header of the second network data packet to carry the Frame identification information of the frame image, valid bit information of the lower image of the frame, and image type.
  • the device further includes:
  • An obtaining module configured to obtain valid bit information of the high image of the frame and a valid bit of the low image of the frame
  • the image of the first bit width of one frame is divided into a high-order image of a second bit width of one frame and a low-order image of a second bit width of one frame, and the high-order image of the frame is encoded to obtain a high-order image pair of the frame.
  • the first network data packet, and the first network data packet includes frame identification information of the frame image, valid bit information of the high-order image of the frame, and an image type, and the low-order image of the frame is encoded and packed to obtain a low-level image corresponding to the frame.
  • a second network data packet wherein the second network data packet includes frame identification information of the frame image, valid bit information of the low-order image of the frame, and an image type.
  • an embodiment of the present invention provides an image decoder for decoding a network data packet corresponding to an image obtained by the image encoder, including:
  • the decoding module 801 is configured to decode the network data packet to obtain frame identification information, valid bit information, and image type of the first image, the second image, and the first image and the second image, where the bit width of the first image is One bit wide, the bit width of the second image is the second bit width, and the image type of the first image is parsed as the high image and the image type of the second image is the low image;
  • the reconstruction module 802 is configured to: according to the frame identification information, the valid bit information, and the image type of the first image decoded by the decoding module 801, and the frame identification information, the valid bit information, and the image type of the second image, to the first image and the first image
  • the two images are reconstructed to obtain a first bit wide reconstructed image, the first bit width being greater than the second bit width and less than or equal to twice the second bit width.
  • the decoding module 801 includes:
  • a first decoding unit configured to unpack the first network data packet to obtain a first code stream, decode the first code stream to obtain a first image, and extract a frame of the first image from the additional information of the first code stream Identification information, valid bit information, and image type, parsing the image type of the first image as a high-order image; and second decoding unit, configured to decode the second network data packet to obtain a second code stream, and decode the second code stream Obtaining a second image, and extracting frame identification information, valid bit information, and image type of the second image from the additional information of the second code stream, and parsing the image type of the second image into a lower image.
  • the decoding module 801 includes:
  • a third decoding unit configured to unpack the first network data packet to obtain a first code stream, and extract frame identification information and valid bit information of the first image corresponding to the first code stream from a packet header of the first network data packet And the image type, the first code stream is decoded to obtain a first image, and the image type of the first image is parsed as a high-level image; a fourth decoding unit, configured to unpack the second network data packet to obtain a second code stream, and extract frame identification information and valid bit information of the second image corresponding to the second code stream from a packet header of the second network data packet And the image type, the second code stream is decoded to obtain a second image, and the image type of the second image is parsed as a low-level image.
  • the reconstruction module 803 includes:
  • a first determining unit configured to determine, according to the frame identification information of the first image and the frame identification information of the second image, a frame of the first image and a frame of the second image that are included in the same frame image;
  • a second determining unit configured to parse an image type of the first image of the frame and determine that the first image of the frame is a high-order image of a frame image determined by the first determining unit, and parse the image type of the second image of the frame and determine The second image of the frame is a low-level image of a frame image determined by the first determining unit;
  • a first acquiring unit configured to obtain a first valid bit from the first image of the frame according to valid bit information of the first image of the frame, where the first valid bit is a bit in the frame image;
  • a second acquiring unit configured to obtain a second valid bit from the second image of the frame according to valid bit information of the second image of the frame, where the second valid bit is a bit in the frame image;
  • a component unit configured to determine, according to the second determining unit, that the first image of the frame is a high-order image and the second image of the frame is a low-level image, and the first valid bit and the second valid bit form a reconstructed image of the first position of the frame .
  • the network transmission packet is decoded to obtain a second bit width first image, a second bit width second image, and frame identification information, effective bit information, and image type of the first image and the second image. And parsing the image type of the first image as the high image and the image type of the second image as the low image; the frame identification information, the valid bit information and the image type according to the first image, and the frame identification information and the valid bit information of the second image And the image type, reconstructing the first image and the second image to obtain a reconstructed image of the first bit width.
  • the first bit width is greater than the second bit width, so in the embodiment, the second bit wide encoder can be used to decode the first bit width image, thereby reducing the decoding cost; in addition, in this embodiment, The second bit wide memory can be used to store the first code stream and the second code stream corresponding to the first bit wide image, thereby saving memory space.
  • the above mentioned storage medium may be a read only memory, a disk Or a CD or the like. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Landscapes

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

Abstract

本发明公开了一种图像编码方法、图像解码方法及图像编码器和图像解码器,属于计算机领域。所述编码的方法包括:将一帧图像划分成一帧高位图像和一帧低位图像,所述一帧图像包括第一位宽个比特,所述一帧高位图像包括第二位宽个比特,所述一帧低位图像包括第二位宽个比特,所述第一位宽大于所述第二位宽且小于两倍所述第二位宽;对所述一帧高位图像进行编码得到第一网络数据包,所述第一网络数据包中包括所述一帧图像的帧标识信息,所述一帧高位图像的有效位信息和图像类型;对所述一帧低位图像进行编码得到第二网络数据包,所述第二网络数据包中包括所述一帧图像的帧标识信息,所述一帧低位图像的有效位信息和图像类型。本发明能够减少编码的成本。

Description

图像编码方法、 图像解码方法及图像编码器和图像解码器 技术领域
本发明涉及计算机领域,特别涉及一种图像编码方法、 图像解码方法及图 像编码器和图像解码器。 背景技术
目前图像大多为 8比特位宽的图像,但随着视频体验中对图像效果的要求 提高, 8比特位宽的图像提供的图像效果已无法满足视频体验的要求, 于是目 前又出现了高于 8比特位宽的图像来提供更好的图像效果, 例如, 目前出现了 10比特位宽或 12比特位宽的图像等。
其中,对高于 8比特位宽的图像进行编码时, 需要采用高于 8比特位宽的 编码器来对高于 8比特位宽的图像进行编码, 得到对应的码流; 以及, 对高于 8比特位宽的图像对应的码流进行解码时, 需要采用高于 8比特位宽的解码器 来对高于 8比特位宽的图像对应的码流进行解码。
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: 现有技术对图像进行编码以及解码的运算复杂度较高,使得采用的编码器 和解码器的结构复杂且成本较高, 所以现有技术对应图像进行编解码的成本 高。
发明内容
为了减少编解码的成本, 本发明提供了一种图像编码方法、 图像解码方法 及图像编码器和图像解码器。 所述技术方案如下:
一种图像编码方法, 所述方法包括:
将一帧图像划分成一帧高位图像和一帧低位图像,所述一帧图像包括第一 位宽个比特,所述一帧高位图像包括第二位宽个比特,所述一帧低位图像包括 第二位宽个比特, 所述第一位宽大于所述第二位宽且小于两倍所述第二位宽; 对所述一帧高位图像进行编码得到第一网络数据包,所述第一网络数据包 中包括所述一帧图像的帧标识信息,所述一帧高位图像的有效位信息和图像类 型,所述帧标识信息用于标识所述一帧图像,所述一帧高位图像的有效位信息 用于指示所述一帧高位图像中包括的所述一帧图像中的比特,所述第一网络数 据包包括的图像类型为高位图像;
对所述一帧低位图像进行编码得到第二网络数据包,所述第二网络数据包 中包括所述一帧图像的帧标识信息,所述一帧低位图像的有效位信息和图像类 型,所述一帧低位图像的有效位信息用于指示所述一帧低位图像中包括的所述 一帧图像中的比特, 所述第二网络数据包包括的图像类型为低位图像。
一种对所述图像对应的网络数据包进行解码的方法, 所述方法包括: 对网络数据包进行解码得到第一图像、第二图像以及所述第一图像和第二 图像的帧标识信息、 有效位信息和图像类型, 其中, 所述第一图像的位宽为第 一位宽,所述第二图像的位宽为第二位宽,解析出所述第一图像的图像类型为 高位图像以及所述第二图像的图像类型为低位图像;
根据所述第一图像的帧标识信息、有效位信息和图像类型, 以及所述第二 图像的帧标识信息、有效位信息和图像类型,对所述第一图像和第二图像进行 重建, 得到第一位宽的重建图像, 所述第一位宽大于所述第二位宽且小于或等 于两倍所述第二位宽。
一种图像编码器, 所述图像编码器包括:
划分模块, 用于将一帧图像划分成一帧高位图像和一帧低位图像,所述一 帧图像包括第一位宽个比特,所述一帧高位图像包括第二位宽个比特, 所述一 帧低位图像包括第二位宽个比特,所述第一位宽大于所述第二位宽且小于两倍 所述第二位宽;
第一编码模块,用于对所述划分模块划分的一帧高位图像进行编码得到第 一网络数据包,所述第一网络数据包中包括所述一帧图像的帧标识信息,所述 一帧高位图像的有效位信息和图像类型,所述帧标识信息用于标识所述一帧图 像,所述一帧高位图像的有效位信息用于指示所述一帧高位图像中包括的所述 一帧图像中的比特, 所述第一网络数据包包括的图像类型为高位图像;
第二编码模块,用于对所述划分模块划分的一帧低位图像进行编码得到第 二网络数据包,所述第二网络数据包中包括所述一帧图像的帧标识信息,所述 一帧低位图像的有效位信息和图像类型,所述一帧低位图像的有效位信息用于 指示所述一帧低位图像中包括的所述一帧图像中的比特,所述第二网络数据包 包括的图像类型为低位图像。 一种对所述图像对应的网络数据包进行解码的图像解码器,所述图像解码 器包括:
解码模块, 用于对网络数据包进行解码得到第一图像、第二图像以及所述 第一图像和第二图像的帧标识信息、 有效位信息和图像类型, 其中, 所述第一 图像的位宽为第一位宽, 所述第二图像的位宽为第二位宽,解析出所述第一图 像的图像类型为高位图像以及所述第二图像的图像类型为低位图像;
重建模块, 用于根据所述解码模块解码得到的所述第一图像的帧标识信 息、 有效位信息和图像类型, 以及所述第二图像的帧标识信息、 有效位信息和 图像类型, 对所述第一图像和第二图像进行重建, 得到第一位宽的重建图像, 所述第一位宽大于所述第二位宽且小于或等于两倍所述第二位宽。
在本发明实施例中, 在发射端,将一帧第一位宽的图像划分成一帧第二位 宽的高位图像和一帧第二位宽的低位图像,对该帧高位图像进行编码得到第一 网络数据包,第一网络数据包中包括该帧图像的帧标识信息、该帧高位图像的 有效位信息和图像类型, 对该帧低位图像进行编码得到第二网络数据包,第二 网络数据包中包括该帧图像的帧标识信息、该帧低位图像的有效位信息和图像 类型;在接收端,对图像对应的网络传输包进行解码得到第二位宽的第一图像、 第二位宽的第二图像,第一图像和第二图像的帧标识信息、有效位信息和图像 类型,解析第一图像的图像类型为高位图像以及第二图像的图像类型为低位图 像; 根据第一图像的帧标识信息、 有效位信息和图像类型, 以及第二图像的帧 标识信息、 有效位信息和图像类型, 对第一图像和第二图像进行重建, 得到第 一位宽的重建图像。其中, 第一位宽大于第二位宽, 所以在本实施例中可以使 用第二位宽的编码器来对第一位宽的图像进行编码,以及可以使用第二位宽的 编码器来解码出第一位宽的图像, 如此降低编码和解码的成本。 附图说明
图 1是本发明实施例提供的一种图像编码的方法流程图;
图 2是本发明另一实施例提供的一种图像编码的方法流程图;
图 3是本发明另一实施例提供的图像 A、 高位图像 A1和低位图像 A2结 构示意图; 图 4是本发明另一实施例提供的图像 B、 高位图像 B1和低位图像 B2结 构示意图;
图 5是本发明另 -实施例提供的- -种图像编码的方法流程图
图 6是本发明另 -实施例提供的- -种图像解码的方法流程图
图 7是本发明另 -实施例提供的- -种图像解码的方法流程图
图 8是本发明另 -实施例提供的- -种图像解码的方法流程图
图 9是本发明另 -实施例提供的- -种图像编码器结构示意图
图 10是本发明另 -实施例提供的- -种图像解码器结构示意图 具体实施方式
为使本发明的目的、技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一歩地详细描述。 参见图 1, 本发明实施例提供了一种图像编码的方法, 包括:
歩骤 101 : 将一帧图像划分成一帧高位图像和一帧低位图像, 该帧图像包 括第一位宽个比特, 该帧高位图像包括第二位宽个比特, 该帧低位图像包括第 二位宽个比特, 第一位宽大于所述第二位宽且小于两倍第二位宽;
歩骤 102: 对该帧高位图像进行编码得到第一网络数据包, 第一网络数据 包中包括该帧图像的帧标识信息, 该帧高位图像的有效位信息和图像类型, 该 帧标识信息用于标识该帧图像,该帧高位图像的有效位信息用于指示该帧高位 图像中包括的该帧图像中的比特, 第一网络数据包包括的图像类型为高位图 像;
其中,该帧图像的帧标识信息可以为该帧图像的时间戳或该帧图像的帧序 号等; 网络数据包可以为 RTP (Real-time Transport Protocol, 实时传输协议) 包等。
歩骤 103 : 对该帧低位图像进行编码得到第二网络数据包, 第二网络数据 包中包括该帧图像的帧标识信息, 该帧低位图像的有效位信息和图像类型, 该 帧低位图像的有效位信息用于指示该帧低位图像中包括的该帧图像中的比特, 第二网络数据包包括的图像类型为低位图像。
在本发明实施例中,将一帧第一位宽的图像划分成一帧第二位宽的高位图 像和一帧第二位宽的低位图像,对该帧高位图像进行编码得到该帧高位图像对 应的第一网络数据包,第一网络传输包中包括该帧图像的帧标识信息、该帧高 位图像的有效位信息和图像类型,对该帧低位图像进行编码得到该帧低位图像 对应的第二网络数据包, 第二网络数据包中包括该帧图像的帧标识信息、该帧 低位图像的有效位信息和图像类型。其中, 第一位宽大于第二位宽, 所以在本 实施例中可以使用第二位宽的编码器来对第一位宽的图像进行编码,如此降低 编码成本。 本发明实施例提供了一种图像编码的方法。其中, 在本实施例中, 对于第 一位宽的图像, 发送端通过本实施例提供的方法对第一位宽的图像进行编码, 参见图 2, 该方法包括:
歩骤 201 : 将一帧图像划分成一帧高位图像和一帧低位图, 其中, 该帧图 像包括第一位宽个比特, 该帧高位图像包括第二位宽个比, 该帧低位图像包括 第二位宽个比特征, 第一位宽大于第二位宽且小于或等于两倍的第二位宽; 其中,将一帧图像划分成一帧高位图像和一帧低位图像的方式有多种, 在 本实施例中, 提供一种优选的方式, 具体为:
计算第一位宽与第二位宽之间的第一差值,计算第二位宽与第一差值之间 的第二差值,根据第一差值和第二差值将一帧图像划分成一帧高位图像和一帧 低位图像。
其中,根据第一差值和第二差值将一帧图像划分成一帧高位图像和一帧低 位图像, 可以具体包括如下两种方式:
第一、将一帧图像对应的低第二位宽位比特组成一帧低位图像, 将该帧图 像对应的高第一差值位比特组成一帧高位图像对应的低第一差值位比特,向该 帧高位图像补充第二差值个预设比特,得到该帧高位图像包括的第二位宽个比 特。
其中, 预设比特可以为 0比特或 1比特。
例如, 参见图 3, 假设一帧图像 A包括第一位宽个比特, 第一位宽为 12 比特, 第二位宽为 8比特, 计算第一位宽与第二位宽之间的第一差值为 4, 计 算第二位宽与第一差值之间的第二差值为 4,将一帧图像 A对应的低 8位比特 组成一帧低位图像 A2, 将该帧图像 A对应高 4位比特组成一帧高位图像 A1 的低 4位比特, 向该帧高位图像 A1补充 4个预设比特, 假设预设比特为 0, 即向该帧高位图像 A1补充 4个比特 0, 得到该帧高位图像 A1包括的 8个比 特。
第二、将一帧图像对应的高第二位宽比特组成一帧高位图像,将该帧图像 对应的低第一差值位比特组成一帧低位图像对应的高第一差值位比特,向该帧 低位图像补充第二差值个预设比特, 得到该帧低位图像包括的第二位宽个比 特。
例如, 参见图 4, 假设一帧图像 B包括第一位宽个比特, 第一位宽为 12 比特, 第二位宽为 8比特, 计算第一位宽与第二位宽之间的第一差值为 4, 计 算第二位宽与第一差值之间的第二差值为 4,将一帧图像 B对应的高 8位比特 组成一帧高位图像 B1 , 将该帧图像 B对应低 4位比特组成一帧低位图像 B2 的高 4位比特, 并向该帧低位图像 B2补充 4个预设比特, 假设预设比特为 0, 即向该帧低位图像 B2补充 4个比特 0,得到该帧低位图像 B2包括的 8个比特。
歩骤 202: 获取该帧高位图像的有效位信息和该帧低位图像的有效位信 息,该帧高位图像的有效位信息用于指示该帧高位图像中包括的该帧图像中的 比特,以及该帧低位图像的有效位信息用于指示该帧低位图像中包括的该帧图 像中的比特;
其中, 如果采用第一方式对一帧图像进行划分, 则本歩骤可以具体为: 获 取该帧高位图像的有效位信息,且该帧高位图像的有效位信息可以用于指示该 帧高位图像中包括的低第一差值位比特为该帧图像中的比特,以及获取该帧低 位图像的有效位信息,且该帧低位图像的有效位信息可以用于指示该帧低位图 像包括的第二位宽位比特为该帧图像中的比特。
例如, 对于如图 3所示的一帧高位图像 A1和一帧低位图像 A2, 获取该 帧高位图像 A1的有效位信息, 且该帧高位图像 A1的有效位信息用于指示该 帧高位图像 A1包括的低 4位比特为该帧图像 A中的比特,以及获取该帧低位 图像 A2的有效位信息, 且该帧低位图像 A2的有效位信息用于指示该帧低位 图像 A2包括的 8位比特为该帧图像 A中的比特。
其中, 如果采用第二方式对一帧图像进行划分, 则本歩骤可以具体为: 获 取该帧低位图像的有效位信息,且该帧低位图像的有效位信息可以用于指示该 帧低位图像包括的高第一差值位比特为该帧图像中的比特,以及获取该帧高位 图像的有效位信息,且该帧高位图像的有效位信息可以用于指示该帧高位图像 包括的第二位宽位比特为该帧图像中的比特。
例如,对于如图 4所示的一帧高位图像 B1和一帧低位图像 B2,获取该帧 低位图像 B2的有效位信息, 且该帧低位图像 B2的有效位信息用于指示该帧 低位图像 B2包括的高 4位比特为该帧图像 B中的比特, 以及获取该帧高位图 像 B1的有效位信息, 且该帧高位图像 B1的有效位信息用于指示该帧高位图 像 B1包括的 8位比特为该帧图像 B中的比特。
歩骤 203: 对该帧高位图像进行编码得到该帧高位图像的码流, 设置该帧 高位图像的码流包括该帧图像的帧标识信息、该帧高位图像的有效位信息和图 像类型, 且该图像类型为高位图像, 该帧标识信息用于标识该帧图像;
具体地,采用第一编码器对该帧高位图像进行编码, 得到该帧高位图像的 码流, 该帧高位图像的码流包括该帧高位图像的图像内容和附加信息, 设置该 帧高位图像的码流的附加信息包括该帧图像的帧标识信息、该帧高位图像的有 效位信息和图像类型, 且该图像类型为高位图像, 该帧标识信息用于标识该帧 图像; 其中, 第一编码器的位宽为第二位宽。
其中,采用第一编码器得到该帧高位图像的码流包括图像内容部分和附加 信息部分, 图像内容部分中携带该帧高位图像的图像内容, 附加信息部分携带 该帧高位图像的附加信息, 且在本实施例中, 可以设置附加信息部分还携带该 帧图像的帧标识信息、该帧高位图像的有效位信息和图像类型, 如此实现设置 该帧高位图像的码流的附加信息包括该帧图像的帧标识信息、该帧高位图像的 有效位信息和图像类型。
例如, 对于如图 3所示的一帧高位图像 A1 , 采用位宽为 8比特的第一编 码器对该帧高位图像进行编码, 得到该帧高位图像 A1 的码流 A1 , 设置该码 流 A1包括该帧图像 A的帧标识信息 IDA、 该帧高位图像 A1的有效位信息和 图像类型; 对于如图 4所示的一帧高位图像 B1 , 采用位宽为 8比特的第一编 码器对该帧高位图像进行编码,得到该帧高位图像 B1的码流 B1 ,设置该码流 B1包括该帧图像 B的帧标识信息 IDB、 该帧高位图像 B1的有效位信息和图 像类型。
歩骤 204: 对该帧高位图像的码流进行打包得到该帧高位图像对应的第一 网络数据包; 例如, 在本实施例中, 对如图 3所示的一帧高位图像 A1的码流进行打包 得到该帧高位图像 A1对应的第一网络数据包 A1 , 以及, 对如图 4所示的一 帧高位图像 B1的码流进行打包得到该帧高位图像 B1对应的第一网络数据包 Bi o
歩骤 205: 对该帧低图像进行编码得到该帧低位图像的码流, 设置该帧低 位图像的码流包括该帧图像的帧标识信息、该帧低位图像的有效位信息和图像 类型, 且图像类型为低位图像;
具体地,采用第二编码器对该帧低位图像进行编码, 得到该帧低位图像的 码流, 该帧低位图像的码流包括该帧低位图像的图像内容和附加信息, 设置该 帧低位图像的码流的附加信息包括该帧图像的帧标识信息、该帧低位图像的有 效位信息和图像类型, 且图像类型为低位图像; 其中, 第二编码器的位宽为第 二位宽。
例如, 对于如图 3所示的一帧低位图像 A2, 采用位宽为 8比特的第二编 码器对该帧低位图像 A2进行编码, 得到该帧低位图像 A2的码流 A2, 设置该 码流 A2包括该帧图像 A的帧标识信息 IDA、 该帧低位图像 A2的有效位信息 和图像类型; 对于如图 4所示的一帧低位图像 B2, 采用位宽为 8比特的第二 编码器对该帧低位图像 B2进行编码, 得到该帧低位图像 B2的码流 B2, 设置 该码流 B2包括该帧图像 B的帧标识信息 IDB、 该帧低位图像 B2的有效位信 息和图像类型。
歩骤 206: 对该帧低位图像的码流进行打包得到该帧低位图像对应的第二 网络数据包。
例如, 在本实施例中, 对如图 3所示的一帧低位图像 A2的码流进行打包 得到该帧低位图像 A2对应的第二网络数据包 A2, 以及, 对如图 4所示的一 帧低位图像 B2的码流进行打包得到该帧低位图像 B2对应的第二网络数据包 如此完成对该帧图像进行压缩编码得到该帧图像对应的网络数据包,然后 可将该帧图像对应的网络数据包发送给接收端。
在本发明实施例中,将一帧第一位宽的图像划分成一帧第二位宽的高位图 像和一帧第二位宽的低位图像,对该帧高位图像进行编码得到该帧高位图像对 应的第一网络数据包, 且第一网络数据包中包括该帧图像的帧标识信息、该帧 高位图像的有效位信息和图像类型,对该帧低位图像进行编码得到该帧低位图 像对应的第二网络数据包, 且第二网络数据包中包括该帧图像的帧标识信息、 该帧低位图像的有效位信息和图像类型。其中, 第一位宽大于第二位宽, 所以 在本实施例中可以使用第二位宽的编码器来对第一位宽的图像进行编码,如此 降低编码成本; 另外, 在本实施例中, 可以使用第二位宽的内存来存储第一位 宽的图像对应的高位图像的码流和低位图像的码流, 节省了内存空间。 本发明实施例提供了一种图像编码的方法。其中, 在本实施例中, 对于第 一位宽的图像, 发送端通过本实施例提供的方法对第一位宽的图像进行编码, 参见图 5, 该方法包括:
歩骤 301 : 将一帧图像划分成一帧高位图像和一帧低位图, 其中, 该帧图 像包括第一位宽个比特, 该帧高位图像包括第二位宽个比特, 该帧低位图像包 括第二位宽个比特, 第一位宽大于第二位宽且小于或等于两倍的第二位宽; 具体地,计算第一位宽与第二位宽之间的第一差值,计算第二位宽与第一 差值之间的第二差值,根据第一差值和第二差值将一帧图像划分成一帧高位图 像和一帧低位图像。
其中,根据第一差值和第二差值将一帧图像划分成一帧高位图像和一帧低 位图像的操作, 可以参见上述实施例的歩骤 201中的相应内容, 在此不再详细 说明。
歩骤 302 : 获取该帧高位图像的有效位信息和该帧低位图像的有效位信 息,该帧高位图像的有效位信息用于指示该帧高位图像中包括的该帧图像中的 比特,以及该帧低位图像的有效位信息用于指示该帧低位图像中包括的该帧图 像中的比特;
其中, 本歩骤的详细操作可以参见上述实施例的歩骤 202中的相应内容, 在此不再详细说明。
歩骤 303 : 对该帧高位图像进行编码得到该帧高位图像的码流;
具体地,采用第一编码器对该帧高位图像进行编码, 得到该帧高位图像的 码流, 其中, 第一编码器的位宽为第二位宽。
歩骤 304: 对该帧高位图像的码流进行打包得到该帧高位图像对应的第一 网络数据包,设置该帧高位图像对应的第一网络数据包的包头携带该帧图像的 帧标识信息、该帧高位图像的有效位信息和图像类型, 且该图像类型为高位图 像, 该帧标识信息用于标识该帧图像;
其中,该帧高位图像对应的第一网络数据包至少包括包头和该帧高位图像 的码流。
歩骤 305: 对该帧低图像进行编码得到该帧低位图像的码流;
具体地,采用第二编码器对该帧低位图像进行编码, 得到该帧低位图像的 码流, 其中, 第二编码器的位宽为第二位宽。
歩骤 306: 对该帧低位图像的码流进行打包得到该帧低位图像对应的第二 网络数据包,设置该帧低位图像对应的第二网络数据包的包头携带该帧图像的 帧标识信息、该帧低位图像的有效位信息和图像类型, 且该图像类型为低位图 像。
其中,该帧低位图像对应的第二网络数据包至少包括包头和该帧高位图像 的码流。
如此完成对该帧图像进行压缩编码得到该帧图像对应的网络数据包,然后 可将该帧图像对应的网络数据包发送给接收端。
在本发明实施例中,将一帧第一位宽的图像划分成一帧第二位宽的高位图 像和一帧第二位宽的低位图像,对该帧高位图像进行编码得到该帧高位图像对 应的第一网络数据包, 且第一网络数据包的包头中包括该帧图像的帧标识信 息、该帧高位图像的有效位信息和图像类型,对该帧低位图像进行编码打包得 到该帧低位图像对应的第二网络数据包,且第二网络数据包的包头中包括该帧 图像的帧标识信息、 该帧低位图像的有效位信息和图像类型。其中, 第一位宽 大于第二位宽,所以在本实施例中可以使用第二位宽的编码器来对第一位宽的 图像进行编码, 如此降低编码成本; 另外, 在本实施例中, 可以使用第二位宽 的内存来存储第一位宽的图像对应的高位图像的码流和低位图像的码流,节省 了内存空间。 参见图 6, 本发明实施例提供了一种图像解码的方法, 包括:
歩骤 401 : 对网络数据包进行解码得到第一图像、 第二图像以及第一图像 和第二图像的帧标识信息、有效位信息和图像类型,第一图像的位宽为第一位 宽,第二图像的位宽为第二位宽, 解析出第一图像的图像类型为高位图像以及 第二图像的图像类型为低位图像;
歩骤 402: 根据第一图像的帧标识信息、 有效位信息和图像类型, 以及第 二图像的帧标识信息、有效位信息和图像类型,对第一图像和第二图像进行重 建, 得到第一位宽的重建图像, 第一位宽大于第二位宽且小于两倍第二位宽。
在本发明实施例中,对网络传输包进行解码得到第二位宽的第一图像、第 二位宽的第二图像以及第一图像和第二图像的帧标识信息、有效位信息和图像 类型,解析第一图像的图像类型为高位图像以及第二图像的图像类型为低位图 像; 根据第一图像的帧标识信息、 有效位信息和图像类型, 以及第二图像的帧 标识信息、 有效位信息和图像类型, 对第一图像和第二图像进行重建, 得到第 一位宽的重建图像。其中, 第一位宽大于第二位宽, 所以在本实施例中可以使 用第二位宽的编码器来解码出第一位宽的图像, 如此降低解码成本。 本发明实施例提供了一种图像解码的方法。其中, 发送端利用上述编码的 方法对图像进行编码得到该图像对应的第一网络数据包和第二网络数据包,接 收端接收发送端发送的该图像对应的第一网络数据包和第二网络数据包,然后 利用本实施例提供的方法进行解码, 参见图 7, 该方法包括:
歩骤 501 : 对第一网络数据包进行解包得到第一码流, 以及对该图像对应 的第二网络数据包进行解包得到第二码流;
具体地, 对第一网络数据包进行解封装得到第一码流, 以及, 对第二网络 数据包进行解封装得到第二码流。
例如, 对第一网络数据包 A1进行进行解封装, 得到第一码流 A1 , 对第 二网络数据包 A2进行解封装, 得到第二码流 A2; 对第一网络数据包 B1进行 解封装, 得到第一码流 B1 , 以及, 对第二网络数据包 B2进行封装得到第二码 流 B2。
歩骤 502: 对第一码流进行解码得到第一码流对应的第一图像、 第一图像 的帧标识信息、 有效位信息和图像类型, 第一图像的位宽为第一位宽, 解析出 该图像类型为高位图像;
具体地,采用第一解码器对第一码流进行解码得到第一图像和第一图像的 附加信息, 从第一图像的附加信息中提取第一图像的帧标识信息、有效位信息 和图像类型, 第一解码器的位宽为第二位宽, 第一图像的位宽为第二位宽, 解 析出该图像类型为高位图像。
例如,假设第二位宽为 8比特,采用位宽为 8比特的第一解码器对第一码 流 A1进行解码得到 8比特的第一图像 A1和第一图像 A1的附加信息, 从第 一图像 A1的附加信息中提取第一图像 A1的帧标识信息 IDA、 有效位信息和 图像类型, 解析出该图像类型为高位图像。
再如, 采用位宽为 8比特的第一解码器对第一码流 B1进行解码得到 8比 特的第一图像 B1和第一图像 B1的附加信息,从第一图像 B1的附加信息中提 取第一图像 B1的帧标识信息 IDB、 有效位信息和图像类型, 解析出该图像类 型为高位图像。
歩骤 503 : 对第二码流进行解码得到第二码流对应的第二位宽的第二图 像、第二图像的帧标识信息、 有效位信息和图像类型, 且解析该图像类型为低 位图像;
具体地,采用第二解码器对第二码流进行解码得到第二图像和第二图像的 附加信息, 从第二图像的附加信息中提取第二图像的帧标识信息、有效位信息 和图像类型, 第二解码器的位宽为第二位宽, 第二图像的位宽为第二位宽, 解 析该图像类型为低位图像。
例如, 采用位宽为 8比特的第二解码器对第二码流 A2进行解码得到 8比 特的第二图像 A2和第二图像 A2的附加信息, 从第二图像 A2的附加信息中 提取第二图像 A2的帧标识信息 IDA、 有效位信息和图像类型, 解析该图像类 型的低位图像。
再如, 采用位宽为 8比特的第二解码器对第二码流 B2进行解码得到 8比 特的第二图像 B2和第二图像 B2的附加信息,从第二图像 B2的附加信息中提 取第二图像 B2的帧标识信息 IDB、 有效位信息和图像类型, 解析该图像类型 的低位图像。
歩骤 504: 根据第一图像的帧标识信息和第二图像的帧标识信息确定出属 性于同一帧图像包括的一帧第一图像和一帧第二图像;
例如, 根据第一图像 A1对应的帧标识信息 IDA和第二图像 A2对应的帧 标识信息 IDA确定出第一图像 A1和第二图像 A2属于同一帧图像 A;
再如, 根据第一图像 B1对应的帧标识信息 IDB和第二图像 B2对应的帧 标识信息 IDB确定出第一图像 B1和第二图像 B2属于同一帧图像 B。 歩骤 505: 解析该帧第一图像的图像类型并确定出该帧第一图像为该帧图 像的高位图像,根据该帧第一图像的有效位信息从该帧第一图像中提取第一有 效比特, 第一有效比特为该帧图像中的比特;
具体地,解析该帧第一图像的图像类型为高位图像, 并据此确定出该帧第 一图像为该帧图像的高位图像,根据该帧第一图像的有效位信息确定出该帧第 一图像中包括的第一有效比特, 第一有效比特为该帧图像中的比特, 从该帧第 一图像包括的第二位宽个比特中提取确定出的第一有效比特。
例如, 解析该帧第一图像 A1的图像类型为低位图像, 并据此确定出该帧 第一图像为该帧图像 A的高位图像,根据该帧第一图像 A1的有效信息确定出 该帧第一图像中包括的低 4位比特为第一有效比特, 从该帧第一图像 A1包括 的 8个比特中提取低 4位第一有效比特。
再如, 解析该帧第一图像 B1的图像类型为高位图像, 并据此确定出该帧 第一图像为该帧图像 B的高位图像,根据该帧第一图像 B1的有效信息确定出 该帧第一图像中包括的 8 个比特为第一有效比特, 从该帧第一图像中提取 8 个第一有效比特。
歩骤 506: 解析该帧第二图像的图像类型并确定出该帧第二图像为该帧图 像的低位图像,根据该帧第二图像的有效位信息从该帧第二图像中提取第二有 效比特, 第二有效比特为该帧图像中的比特;
具体地,解析该帧第二图像的图像类型为低位图像, 并据此确定出该帧第 二图像为该帧图像的低位图像,根据该帧第二图像的有效位信息确定出该帧第 二图像中包括的第二有效比特, 第二有效比特为该帧图像中的比特, 从该帧第 二图像包括的第二位宽个比特中提取确定出的第二有效比特。
例如, 解析该帧第二图像 A2的图像类型为低位图像, 并据此确定出该帧 第二图像为该帧图像 A的低位图像,根据该帧第二图像 A2的有效信息确定出 该帧第二图像中包括的 8个比特都为第二有效比特, 从该帧第一图像中提取 8 个第二有效比特。
再如, 解析该帧第二图像 B2的图像类型为低位图像, 并据此确定出该帧 第二图像为该帧图像 B的低位图像,根据该帧第二图像 B2的有效信息确定出 该帧第二图像中包括的高 4位比特为第二有效比特, 从该帧第二图像包括的 8 个比特中提取高 4位第二有效比特。 歩骤 507: 根据该帧第一图像为高位图像以及该帧第二图像为低位图像, 将第一有效比特和第二有效比特组成一帧位宽为第一位宽的重建图像。
具体地,根据该帧第一图像为高位图像将第一有效比特作为一帧图像的高 位比特,根据该帧第二图像为低位图像将第二有效比特作为一帧图像的低位比 特, 然后将第一有效比特和第二有效比特组成一帧位宽为第一位宽的重建图 像。
例如, 第一位宽为 12比特, 将从该帧第一图像 A1中提取的低 4位第一 有效比特和从该帧第二图像 A2中提取的 8位有效比特组成第一位宽的重建图 像八。
再如, 将从该帧第一图像 B1中提取的 8位第一有效比特和从该帧第二图 像 B2中提取的高 4位第二有效比特组成第一位宽的重建图像 B。
在本发明实施例中, 对第一网络数据包进行解码得到第二位宽的第一图 像, 第一图像的帧标识信息、 有效位信息和图像类型, 图像类型为高位图像; 对第二网络数据包进行解码得到第二位宽的第二图像, 第二图像的帧标识信 息、 有效位信息和图像类型, 图像类型为低位图像; 根据第一图像的帧标识信 息、 有效位信息和图像类型, 以及第二图像的帧标识信息、 有效位信息和图像 类型, 对第一图像和第二图像进行重建, 得到第一位宽的重建图像。 其中, 第 一位宽大于第二位宽,所以在本实施例中可以使用第二位宽的编码器来解码出 第一位宽的图像, 如此降低解码成本; 另外, 在本实施例中, 可以使用第二位 宽的内存来存储第一位宽的图像对应的第一码流和第二码流, 节省了内存空 间。 本发明实施例提供了一种图像解码的方法。其中, 发送端利用上述编码的 方法对图像进行编码得到该图像对应的第一网络数据包和第二网络数据包,接 收端接收发送端发送的该图像对应的第一网络数据包和第二网络数据包,然后 利用本实施例提供的方法进行解码, 参见图 8, 该方法包括:
歩骤 601 : 对第一网络数据包进行解包得到第一码流, 第一码流对应的第 一图像的帧标识信息、有效位信息和图像类型,解析第一图像的图像类型为高 位图像, 以及对第二网络数据包进行解包得到第二码流, 第二码流对应的第二 图像的帧标识信息、有效位信息和图像类型,解析第二图像的图像类型为低位 图像;
具体地,对第一网络数据包进行解封装得到第一网络数据包包括的包头和 第一码流,从第一网络数据包的包头中提取第一码流对应的第一图像的帧标识 信息、 有效位信息和图像类型, 解析第一图像的图像类型为高位图像; 对第二 网络数据包进行解封装得到第二网络数据包的包头和第二码流,从第二网络数 据包的包头中提取第二码流对应的第二图像的帧标识信息、有效位信息和图像 类型, 解析第二图像的图像类型为低位图像。
歩骤 602 : 对第一码流进行解码得到第一码流对应的第二位宽的第一图 像;
具体地,采用第一解码器对第一码流进行解码得到第一图像,第一解码器 的位宽为第二位宽, 第一图像的位宽为第二位宽。
歩骤 603 : 对第二码流进行解码得到第二码流对应的第二位宽的第二图 像;
具体地,采用第二解码器对第二码流进行解码得到第二图像,第二解码器 的位宽为第二位宽, 第二图像的位宽为第二位宽。
歩骤 604: 根据第一图像的帧标识信息和第二图像的帧标识信息确定出属 性于同一帧图像包括的一帧第一图像和一帧第二图像;
歩骤 605 : 解析该帧第一图像的图像类型为高位图像并确定出第一图像为 该帧图像的高位图像,以及解析该帧第二图像的图像类型为低位图像并确定出 第二图像为该帧图像的低位图像;
歩骤 606: 根据该帧第一图像的有效位信息从该帧第一图像中提取第一有 效比特, 第一有效比特为该帧图像中的比特;
具体地,根据该帧第一图像的有效位信息确定出该帧第一图像中包括的第 一有效比特,第一有效比特为该帧图像中的比特, 从该帧第一图像包括的第二 位宽个比特中提取确定出的第一有效比特。
歩骤 607 : 根据该帧第二图像的有效位信息从该帧第二图像中提取第二有 效比特, 第二有效比特为该帧图像中的比特;
具体地,根据该帧第二图像的有效位信息确定出该帧第二图像中包括的第 二有效比特,第二有效比特为该帧图像中的比特, 从该帧第二图像包括的第二 位宽个比特中提取确定出的第二有效比特。 歩骤 608: 根据该帧第一图像为高位图像以及该帧第二图像为低位图像, 将第一有效比特和第二有效比特组成一帧位宽为第一位宽的重建图像。
具体地,根据该帧第一图像为高位图像将第一有效比特作为一帧图像高位 比特, 根据该帧第二图像为低位图像将第二有效比特作为一帧图像的低位比 特, 然后将第一有效比特和第二有效比特组成一帧位宽为第一位宽的重建图 像。
在本发明实施例中, 对第一网络数据包进行解码得到第二位宽的第一图 像, 第一图像的帧标识信息、 有效位信息和图像类型, 解析第一图像的图像类 型为高位图像; 对第二网络数据包进行解码得到第二位宽的第二图像, 第二图 像的帧标识信息、有效位信息和图像类型,解析第二图像的图像类型为低位图 像; 根据第一图像的帧标识信息、 有效位信息和图像类型, 以及第二图像的帧 标识信息、 有效位信息和图像类型, 对第一图像和第二图像进行重建, 得到第 一位宽的重建图像。其中, 第一位宽大于第二位宽, 所以在本实施例中可以使 用第二位宽的编码器来解码出第一位宽的图像, 如此降低解码成本; 另外, 在 本实施例中,可以使用第二位宽的内存来存储第一位宽的图像对应的第一码流 和第二码流, 节省了内存空间。 参见图 9, 本发明实施例提供了一种图像编码器, 包括:
划分模块 701, 用于将一帧图像划分成一帧高位图像和一帧低位图像, 该 帧图像包括第一位宽个比特, 该帧高位图像包括第二位宽个比特, 该帧低位图 像包括第二位宽个比特, 第一位宽大于第二位宽且小于两倍第二位宽;
第一编码模块 702, 用于对划分模块 701划分的该帧高位图像进行编码得 到第一网络数据包,第一网络数据包中包括该帧图像的帧标识信息, 该帧高位 图像的有效位信息和图像类型, 该帧标识信息用于标识该帧图像, 该帧高位图 像的有效位信息用于指示该帧高位图像中包括的该帧图像中的比特,第一网络 数据包包括的图像类型为高位图像;
第二编码模块,用于对划分模块 701划分的该帧低位图像进行编码得到第 二网络数据包,第二网络数据包中包括该帧图像的帧标识信息, 该帧低位图像 的有效位信息和图像类型,该帧低位图像的有效位信息用于指示该帧低位图像 中包括的该帧图像中的比特, 第二网络数据包包括的图像类型为低位图像。 其中, 划分模块 701包括:
第一划分单元,用于计算第一位宽与第二位宽之间的第一差值, 以及计算 第二位宽与第一差值之间的第二差值,将该帧图像对应的低第二位宽位比特组 成一帧低位图像,将该帧图像对应的高第一差值位比特组成一帧高位图像对应 的低第一差值位比特, 向该帧高位图像补充第二差值个预设比特; 或者, 第二划分单元,用于计算第一位宽与第二位宽之间的第一差值, 以及计算 第二位宽与第一差值之间的第二差值,将该帧图像对应的高第二位宽位比特组 成一帧高位图像,将该帧图像对应的低第一差值位比特组成一帧低位图像对应 的高第一差值位比特, 向该帧低位图像补充第二差值个预设比特。
其中, 第一编码模块 702包括:
第一编码单元, 用于对该帧高位图像进行编码得到该帧高位图像的码流, 设置该帧高位图像的码流的附加信息包括该帧图像的帧标识信息,该帧高位图 像的有效位信息和图像类型,对该帧高位图像的码流进行打包得到第一网络数 据包; 或者,
第二编码单元, 用于对该帧高位图像进行编码得到该帧高位图像的码流, 对该帧高位图像的码流进行打包得到第一网络数据包,设置第一网络数据包的 包头携带该帧图像的帧标识信息、 该帧高位图像的有效位信息和图像类型。
其中, 第二编码模块 703包括:
第三编码单元, 用于对该帧低位图像进行编码得到该帧低位图像的码流, 设置该帧低位图像的码流的附加信息包括该帧图像的帧标识信息,该帧低位图 像的有效位信息和图像类型,对该帧低位图像的码流进行打包得到第二网络数 据包; 或者,
第四编码单元, 用于对该帧低位图像进行编码得到该帧低位图像的码流, 对该帧低位图像的码流进行打包得到第二网络数据包,设置第二网络数据包的 包头携带该帧图像的帧标识信息、 该帧低位图像的有效位信息和图像类型。
进一歩地, 该装置还包括:
获取模块,用于获取该帧高位图像的有效位信息和该帧低位图像的有效位 自
在本发明实施例中,将一帧第一位宽的图像划分成一帧第二位宽的高位图 像和一帧第二位宽的低位图像,对该帧高位图像进行编码得到该帧高位图像对 应的第一网络数据包, 且第一网络数据包中包括该帧图像的帧标识信息、该帧 高位图像的有效位信息和图像类型,对该帧低位图像进行编码打包得到该帧低 位图像对应的第二网络数据包,且第二网络数据包中包括该帧图像的帧标识信 息、 该帧低位图像的有效位信息和图像类型。 其中, 第一位宽大于第二位宽, 所以在本实施例中可以使用第二位宽的编码器来对第一位宽的图像进行编码, 如此降低编码成本; 另外, 在本实施例中, 可以使用第二位宽的内存来存储第 一位宽的图像对应的高位图像的码流和低位图像的码流, 节省了内存空间。 参见图 10, 本发明实施例提供了一种对上述图像编码器得到的图像对应 的网络数据包进行解码的图像解码器, 包括:
解码模块 801, 用于对网络数据包进行解码得到第一图像、 第二图像以及 第一图像和第二图像的帧标识信息、 有效位信息和图像类型, 其中, 第一图像 的位宽为第一位宽,第二图像的位宽为第二位宽, 解析出第一图像的图像类型 为高位图像以及第二图像的图像类型为低位图像;
重建模块 802,用于根据解码模块 801解码得到的第一图像的帧标识信息、 有效位信息和图像类型,以及第二图像的帧标识信息、有效位信息和图像类型, 对第一图像和第二图像进行重建, 得到第一位宽的重建图像,第一位宽大于所 述第二位宽且小于或等于两倍第二位宽。
其中, 解码模块 801包括:
第一解码单元,用于对第一网络数据包进行解包得到第一码流, 对第一码 流进行解码得到第一图像,以及从第一码流的附加信息中提取第一图像的帧标 识信息、 有效位信息和图像类型, 解析出第一图像的图像类型为高位图像; 第二解码单元,用于对第二网络数据包进行解码得到第二码流, 对第二码 流进行解码得到第二图像,以及从第二码流的附加信息中提取第二图像的帧标 识信息、 有效位信息和图像类型, 解析出第二图像的图像类型为低位图像。
其中, 解码模块 801包括:
第三解码单元,用于对第一网络数据包进行解包得到第一码流, 以及从第 一网络数据包的包头中提取第一码流对应的第一图像的帧标识信息、有效位信 息和图像类型,对第一码流进行解码得到第一图像,解析出第一图像的图像类 型为高位图像; 第四解码单元,用于对第二网络数据包进行解包得到第二码流, 以及从第 二网络数据包的包头中提取第二码流对应的第二图像的帧标识信息、有效位信 息和图像类型,对第二码流进行解码得到第二图像,解析出第二图像的图像类 型为低位图像。
其中, 重建模块 803包括:
第一确定单元, 用于根据第一图像的帧标识信息和第二图像的帧标识信 息, 确定出属于同一帧图像包括的一帧第一图像和一帧第二图像;
第二确定单元,用于解析该帧第一图像的图像类型并确定出该帧第一图像 为第一确定单元确定的一帧图像的高位图像,以及解析该帧第二图像的图像类 型并确定出该帧第二图像为第一确定单元确定的一帧图像的低位图像;
第一获取单元,用于根据该帧第一图像的有效位信息从该帧第一图像中获 取第一有效比特, 第一有效比特为该帧图像中的比特;
第二获取单元,用于根据该帧第二图像的有效位信息从该帧第二图像中获 取第二有效比特, 第二有效比特为该帧图像中的比特;
组成单元,用于根据第二确定单元确定出的该帧第一图像为高位图像以及 该帧第二图像为低位图像,将第一有效比特和第二有效比特组成一帧第一位置 的重建图像。
在本发明实施例中,对网络传输包进行解码得到第二位宽的第一图像、第 二位宽的第二图像以及第一图像和第二图像的帧标识信息、有效位信息和图像 类型,解析第一图像的图像类型为高位图像以及第二图像的图像类型为低位图 像; 根据第一图像的帧标识信息、 有效位信息和图像类型, 以及第二图像的帧 标识信息、 有效位信息和图像类型, 对第一图像和第二图像进行重建, 得到第 一位宽的重建图像。其中, 第一位宽大于第二位宽, 所以在本实施例中可以使 用第二位宽的编码器来解码出第一位宽的图像, 如此降低解码成本; 另外, 在 本实施例中,可以使用第二位宽的内存来存储第一位宽的图像对应的第一码流 和第二码流, 节省了内存空间。 本领域普通技术人员可以理解实现上述实施例的全部或部分歩骤可以通 过硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储 于一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储器,磁盘 或光盘等。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精 神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保 护范围之内。

Claims

权 利 要 求
1、 一种图像编码方法, 其特征在于, 所述方法包括:
将一帧图像划分成一帧高位图像和一帧低位图像,所述一帧图像包括第一 位宽个比特,所述一帧高位图像包括第二位宽个比特,所述一帧低位图像包括 第二位宽个比特, 所述第一位宽大于所述第二位宽且小于两倍的所述第二位 宽;
对所述一帧高位图像进行编码得到第一网络数据包,所述第一网络数据包 中包括所述一帧图像的帧标识信息,所述一帧高位图像的有效位信息和图像类 型,所述帧标识信息用于标识所述一帧图像,所述一帧高位图像的有效位信息 用于指示所述一帧高位图像中包括的所述一帧图像中的比特,所述第一网络数 据包包括的图像类型为高位图像;
对所述一帧低位图像进行编码得到第二网络数据包,所述第二网络数据包 中包括所述一帧图像的帧标识信息,所述一帧低位图像的有效位信息和图像类 型,所述一帧低位图像的有效位信息用于指示所述一帧低位图像中包括的所述 一帧图像中的比特, 所述第二网络数据包包括的图像类型为低位图像。
2、 如权利要求 1所述的方法, 其特征在于, 所述将一帧图像划分成一帧 高位图像和一帧低位图像, 包括:
计算所述第一位宽与所述第二位宽之间的第一差值,以及计算所述第二位 宽与所述第一差值之间的第二差值,将所述一帧图像对应的低第二位宽位比特 组成一帧低位图像,将所述一帧图像对应的高第一差值位比特组成一帧高位图 像对应的低第一差值位比特, 向所述一帧高位图像补充第二差值个预设比特; 或者,
计算所述第一位宽与所述第二位宽之间的第一差值,以及计算所述第二位 宽与所述第一差值之间的第二差值,将所述一帧图像对应的高第二位宽位比特 组成一帧高位图像,将所述一帧图像对应的低第一差值位比特组成一帧低位图 像对应的高第一差值位比特, 向所述一帧低位图像补充第二差值个预设比特。
3、 如权利要求 1所述的方法, 其特征在于, 所述对所述一帧高位图像进 行编码得到第一网络数据包, 包括: 对所述一帧高位图像进行编码得到所述一帧高位图像的码流,设置所述码 流的附加信息包括所述一帧图像的帧标识信息,所述一帧高位图像的有效位信 息和图像类型, 对所述码流进行打包得到第一网络数据包; 或者,
对所述一帧高位图像进行编码得到所述一帧高位图像的码流,对所述码流 进行打包得到第一网络数据包,设置所述第一网络数据包的包头携带所述一帧 图像的帧标识信息、 所述一帧高位图像的有效位信息和图像类型。
4、 如权利要求 1所述的方法, 其特征在于, 所述对所述一帧低位图像进 行编码得到第二网络数据包, 包括:
对所述一帧低位图像进行编码得到所述一帧低位图像的码流,设置所述码 流的附加信息包括所述一帧图像的帧标识信息,所述一帧低位图像的有效位信 息和图像类型, 对所述码流进行打包得到第二网络数据包; 或者,
对所述一帧低位图像进行编码得到所述一帧低位图像的码流,对所述码流 进行打包得到第二网络数据包,设置所述第二网络数据包的包头携带所述一帧 图像的帧标识信息、 所述一帧低位图像的有效位信息和图像类型。
5、 一种对权利要求 1得到的图像对应的网络数据包进行解码的方法, 其 特征在于, 所述方法包括:
对网络数据包进行解码得到第一图像、第二图像以及所述第一图像和第二 图像的帧标识信息、 有效位信息和图像类型, 其中, 所述第一图像的位宽为第 一位宽,所述第二图像的位宽为第二位宽,解析出所述第一图像的图像类型为 高位图像以及所述第二图像的图像类型为低位图像;
根据所述第一图像的帧标识信息、有效位信息和图像类型, 以及所述第二 图像的帧标识信息、有效位信息和图像类型,对所述第一图像和第二图像进行 重建, 得到第一位宽的重建图像, 所述第一位宽大于所述第二位宽且小于或等 于两倍所述第二位宽。
6、 如权利要求 5所述的方法, 其特征在于, 所述对网络数据包进行解码 得到第一图像、第二图像以及所述第一图像和第二图像的帧标识信息、有效位 信息和图像类型, 包括: 对第一网络数据包进行解包得到第一码流,对所述第 -码流进行解码得到 ;一图像, 以及从所述第一码流的附加信息中提取所述; ;一图像的帧标识信 、、 有效位信息和图像类型;
对第二网络数据包进行解码得到第二码流,对所述第 二码流进行解码得到 ;二图像, 以及从所述第二码流的附加信息中提取所述; ;二图像的帧标识信 、、 有效位信息和图像类型。
7、 如权利要求 5所述的方法, 其特征在于, 所述对网络数据包进行解码 得到第一图像、第二图像以及所述第一图像和第二图像的帧标识信息、有效位 信息和图像类型, 包括:
对第一网络数据包进行解包得到第一码流,以及从所述第一网络数据包的 包头中提取所述第一码流对应的第一图像的帧标识信息、有效位信息和图像类 型, 对所述第一码流进行解码得到第一图像;
对第二网络数据包进行解包得到第二码流,以及从所述第二网络数据包的 包头中提取所述第二码流对应的第二图像的帧标识信息、有效位信息和图像类
8、 如权利要求 5至 7任一项权利要求所述的方法, 其特征在于, 所述根 据所述第一图像的帧标识信息、有效位信息和图像类型, 以及所述第二图像的 帧标识信息、 有效位信息和图像类型, 对所述第一图像和第二图像进行重建, 得到第一位宽的重建图像, 包括:
根据所述第一图像的帧标识信息和第二图像的帧标识信息,确定出属于同 一帧图像包括的一帧第一图像和一帧第二图像;
解析所述一帧第一图像的图像类型并确定出所述一帧第一图像为所述一 帧图像的高位图像,以及解析所述一帧第二图像的图像类型并确定出所述一帧 第二图像为所述一帧图像的低位图像;
根据所述一帧第一图像的有效位信息从所述一帧第一图像中获取第一有 效比特, 所述第一有效比特为所述一帧图像中的比特;
根据所述一帧第二图像的有效位信息从所述一帧第二图像中获取第二有 效比特, 所述第二有效比特为所述一帧图像中的比特; 根据所述一帧第一图像为高位图像以及所述一帧第二图像为低位图像,将 所述第一有效比特和所述第二有效比特组成一帧第一位宽的重建图像。
9、 一种图像编码器, 其特征在于, 所述图像编码器包括:
划分模块, 用于将一帧图像划分成一帧高位图像和一帧低位图像,所述一 帧图像包括第一位宽个比特,所述一帧高位图像包括第二位宽个比特, 所述一 帧低位图像包括第二位宽个比特,所述第一位宽大于所述第二位宽且小于两倍 所述第二位宽;
第一编码模块,用于对所述划分模块划分的一帧高位图像进行编码得到第 一网络数据包,所述第一网络数据包中包括所述一帧图像的帧标识信息,所述 一帧高位图像的有效位信息和图像类型,所述帧标识信息用于标识所述一帧图 像,所述一帧高位图像的有效位信息用于指示所述一帧高位图像中包括的所述 一帧图像中的比特, 所述第一网络数据包包括的图像类型为高位图像;
第二编码模块,用于对所述划分模块划分的一帧低位图像进行编码得到第 二网络数据包,所述第二网络数据包中包括所述一帧图像的帧标识信息,所述 一帧低位图像的有效位信息和图像类型,所述一帧低位图像的有效位信息用于 指示所述一帧低位图像中包括的所述一帧图像中的比特,所述第二网络数据包 包括的图像类型为低位图像。
10、 如权利要求 9所述的图像编码器, 其特征在于, 所述划分模块包括: 第一划分单元, 用于计算所述第一位宽与所述第二位宽之间的第一差值, 以及计算所述第二位宽与所述第一差值之间的第二差值,将所述一帧图像对应 的低第二位宽位比特组成一帧低位图像,将所述一帧图像对应的高第一差值位 比特组成一帧高位图像对应的低第一差值位比特,向所述一帧高位图像补充第 二差值个预设比特; 或者,
第二划分单元, 用于计算所述第一位宽与所述第二位宽之间的第一差值, 以及计算所述第二位宽与所述第一差值之间的第二差值,将所述一帧图像对应 的高第二位宽位比特组成一帧高位图像,将所述一帧图像对应的低第一差值位 比特组成一帧低位图像对应的高第一差值位比特,向所述一帧低位图像补充第 二差值个预设比特。
11、 如权利要求 9所述的图像编码器, 其特征在于, 所述第一编码模块包 括:
第一编码单元,用于对所述一帧高位图像进行编码得到所述一帧高位图像 的码流, 设置所述码流的附加信息包括所述一帧图像的帧标识信息,所述一帧 高位图像的有效位信息和图像类型, 对所述码流进行打包得到第一网络数据 包; 或者,
第二编码单元,用于对所述一帧高位图像进行编码得到所述一帧高位图像 的码流,对所述码流进行打包得到第一网络数据包, 设置所述第一网络数据包 的包头携带所述一帧图像的帧标识信息、所述一帧高位图像的有效位信息和图 像类型。
12、 如权利要求 9所述的图像编码器, 其特征在于, 所述第二编码模块包 括:
第三编码单元,用于对所述一帧低位图像进行编码得到所述一帧低位图像 的码流, 设置所述码流的附加信息包括所述一帧图像的帧标识信息,所述一帧 低位图像的有效位信息和图像类型, 对所述码流进行打包得到第二网络数据 包; 或者,
第四编码单元,用于对所述一帧低位图像进行编码得到所述一帧低位图像 的码流,对所述码流进行打包得到第二网络数据包, 设置所述第二网络数据包 的包头携带所述一帧图像的帧标识信息、所述一帧低位图像的有效位信息和图 像类型。
13、一种对权利要求 9得到的图像对应的网络数据包进行解码的图像解码 器, 其特征在于, 所述图像解码器包括:
解码模块, 用于对网络数据包进行解码得到第一图像、第二图像以及所述 第一图像和第二图像的帧标识信息、 有效位信息和图像类型, 其中, 所述第一 图像的位宽为第一位宽, 所述第二图像的位宽为第二位宽,解析出所述第一图 像的图像类型为高位图像以及所述第二图像的图像类型为低位图像;
重建模块, 用于根据所述解码模块解码得到的所述第一图像的帧标识信 息、 有效位信息和图像类型, 以及所述第二图像的帧标识信息、 有效位信息和 图像类型, 对所述第一图像和第二图像进行重建, 得到第一位宽的重建图像, 所述第一位宽大于所述第二位宽且小于或等于两倍所述第二位宽。
14、 如权利要求 13所述的图像解码器, 其特征在于, 所述解码模块包括: 第一解码单元,用于对第一网络数据包进行解包得到第一码流, 对所述第 一码流进行解码得到第一图像,以及从所述第一码流的附加信息中提取所述第 一图像的帧标识信息、有效位信息和图像类型,解析出所述第一图像的图像类 型为高位图像;
第二解码单元,用于对第二网络数据包进行解码得到第二码流, 对所述第 二码流进行解码得到第二图像,以及从所述第二码流的附加信息中提取所述第 二图像的帧标识信息、有效位信息和图像类型,解析出所述第二图像的图像类 型为低位图像。
15、 如权利要求 13所述的图像解码器, 其特征在于, 所述解码模块包括: 第三解码单元,用于对第一网络数据包进行解包得到第一码流, 以及从所 述第一网络数据包的包头中提取所述第一码流对应的第一图像的帧标识信息、 有效位信息和图像类型, 对所述第一码流进行解码得到第一图像,解析出所述 第一图像的图像类型为高位图像;
第四解码单元,用于对第二网络数据包进行解包得到第二码流, 以及从所 述第二网络数据包的包头中提取所述第二码流对应的第二图像的帧标识信息、 有效位信息和图像类型, 对所述第二码流进行解码得到第二图像,解析出所述 第二图像的图像类型为低位图像。
16、如权利要求 13至 15任一项权利要求所述的图像解码器,其特征在于, 所述重建模块包括:
第一确定单元,用于根据所述第一图像的帧标识信息和第二图像的帧标识 信息, 确定出属于同一帧图像包括的一帧第一图像和一帧第二图像;
第二确定单元,用于解析所述一帧第一图像的图像类型并确定出所述一帧 第一图像为所述第一确定单元确定的一帧图像的高位图像,以及解析所述一帧 第二图像的图像类型并确定出所述一帧第二图像为所述第一确定单元确定的 一帧图像的低位图像;
第一获取单元,用于根据所述一帧第一图像的有效位信息从所述一帧第一 图像中获取第一有效比特, 所述第一有效比特为所述一帧图像中的比特; 第二获取单元,用于根据所述一帧第二图像的有效位信息从所述一帧第二 图像中获取第二有效比特, 所述第二有效比特为所述一帧图像中的比特; 组成单元,用于根据所述第二确定单元确定出所述一帧第一图像为高位图 像以及所述一帧第二图像为低位图像,将所述第一获取单元获取的第一有效比 特和所述第二获取单元获取的第二有效比特组成一帧第一位置的重建图像。
PCT/CN2013/072207 2012-06-12 2013-03-06 图像编码方法、图像解码方法及图像编码器和图像解码器 WO2013185494A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012101927415A CN102724553A (zh) 2012-06-12 2012-06-12 图像编码方法、图像解码方法及图像编码器和图像解码器
CN201210192741.5 2012-06-12

Publications (1)

Publication Number Publication Date
WO2013185494A1 true WO2013185494A1 (zh) 2013-12-19

Family

ID=46950195

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/072207 WO2013185494A1 (zh) 2012-06-12 2013-03-06 图像编码方法、图像解码方法及图像编码器和图像解码器

Country Status (2)

Country Link
CN (1) CN102724553A (zh)
WO (1) WO2013185494A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724553A (zh) * 2012-06-12 2012-10-10 华为技术有限公司 图像编码方法、图像解码方法及图像编码器和图像解码器
CN105516542B (zh) * 2014-09-26 2019-03-05 北京同步科技有限公司 基于硬件编码器的多通道视频同步系统及其同步方法
CN109618171A (zh) * 2018-05-07 2019-04-12 杭州新瀚光电科技有限公司 红外图像实时传输压缩算法
CN109600618B (zh) * 2018-12-19 2021-12-24 上海数迹智能科技有限公司 视频压缩方法、解压缩方法、装置、终端和介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040135903A1 (en) * 2002-10-11 2004-07-15 Brooks Lane C. In-stream lossless compression of digital image sensor data
US20090097561A1 (en) * 2007-10-15 2009-04-16 Yi-Jen Chiu Bit depth enhancement for scalable video coding
CN102387356A (zh) * 2010-09-06 2012-03-21 索尼公司 图像处理设备和方法
CN102724553A (zh) * 2012-06-12 2012-10-10 华为技术有限公司 图像编码方法、图像解码方法及图像编码器和图像解码器

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040135903A1 (en) * 2002-10-11 2004-07-15 Brooks Lane C. In-stream lossless compression of digital image sensor data
US20090097561A1 (en) * 2007-10-15 2009-04-16 Yi-Jen Chiu Bit depth enhancement for scalable video coding
CN102387356A (zh) * 2010-09-06 2012-03-21 索尼公司 图像处理设备和方法
CN102724553A (zh) * 2012-06-12 2012-10-10 华为技术有限公司 图像编码方法、图像解码方法及图像编码器和图像解码器

Also Published As

Publication number Publication date
CN102724553A (zh) 2012-10-10

Similar Documents

Publication Publication Date Title
US11227612B2 (en) Audio frame loss and recovery with redundant frames
EP4105927B1 (en) Selective forward error correction for spatial audio codecs
JP2014523693A5 (zh)
JP4724452B2 (ja) デジタルメディア汎用基本ストリーム
MX2023010008A (es) Metodo y aparato de codificacion de datos de imagen y metodo y aparato de decodificacion de datos de imagen.
JP2005327442A5 (zh)
US9083944B2 (en) Encoding apparatus, decoding apparatus, encoding method, and decoding method
CN108847248B (zh) 蓝牙设备音频处理方法、系统、可读存储介质和蓝牙设备
JP4875204B2 (ja) 符号化オーディオデータを処理するための装置及び方法
RU2011105660A (ru) Способ и устройство для синхронизации сильно сжатых данных улучшающего слоя
RU2013158832A (ru) Сокращение задержки при кодировании и декодировании видео
WO2013185494A1 (zh) 图像编码方法、图像解码方法及图像编码器和图像解码器
BR112020016948A2 (pt) Métodos e dispositivos para gerar ou decodificar um fluxo de bits compreendendo sinais de áudio imersivos
TWI504275B (zh) 視頻處理方法和處理資料的系統
JP2019537332A5 (zh)
JP2013541295A5 (zh)
CN104935944A (zh) 一种视频数据编码、解码的方法和装置
WO2014174763A1 (ja) 処理装置、集積回路、処理方法、およびプログラム
CN114333862A (zh) 音频编码方法、解码方法、装置、设备、存储介质及产品
US20240040147A1 (en) Data processing method and apparatus, computer device, and storage medium
TWI384459B (zh) 音框檔頭之自動偵測方法
JP2005506775A5 (zh)
JP6158423B2 (ja) 奥行情報の符号化および復号化方法、システムおよび装置
CN105407351A (zh) 一种从实时传输协议数据包中重建编码方式的方法和装置
JP2022507027A (ja) スケーラブルビデオ符号化及び伝送のための方法、装置、コンピュータプログラム、及びコンピュータ可読媒体

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

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

Country of ref document: EP

Kind code of ref document: A1