WO2015115644A1 - 画像符号化装置、画像復号装置、符号化ストリーム変換装置、画像符号化方法、及び画像復号方法 - Google Patents
画像符号化装置、画像復号装置、符号化ストリーム変換装置、画像符号化方法、及び画像復号方法 Download PDFInfo
- Publication number
- WO2015115644A1 WO2015115644A1 PCT/JP2015/052855 JP2015052855W WO2015115644A1 WO 2015115644 A1 WO2015115644 A1 WO 2015115644A1 JP 2015052855 W JP2015052855 W JP 2015052855W WO 2015115644 A1 WO2015115644 A1 WO 2015115644A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- unit
- picture
- encoding
- prediction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/107—Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/114—Adapting the group of pictures [GOP] structure, e.g. number of B-frames between two anchor frames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/117—Filters, e.g. for pre-processing or post-processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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 an image region, e.g. an object
- H04N19/172—Methods 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 an image region, e.g. an object the region being a picture, frame or field
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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 an image region, e.g. an object
- H04N19/176—Methods 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 an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/184—Methods 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 bits, e.g. of the compressed video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/40—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/43—Hardware specially adapted for motion estimation or compensation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/439—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation using cascaded computational arrangements for performing a single operation, e.g. filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/44—Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
- H04N19/513—Processing of motion vectors
- H04N19/517—Processing of motion vectors by encoding
- H04N19/52—Processing of motion vectors by encoding by predictive encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
- H04N19/58—Motion compensation with long-term prediction, i.e. the reference frame for a current frame not being the temporally closest one
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
Definitions
- the present invention relates to an image encoding device and an image encoding method for encoding an image with high efficiency, an image decoding device and an image decoding method for decoding an image encoded with high efficiency, and an encoded stream conversion device. Is.
- an input color image is divided into maximum encoding blocks of a predetermined size, and the maximum encoding block is further finely encoded. Is divided into hierarchical blocks. Further, the encoded block is divided into finer prediction blocks, and prediction errors are generated by performing intra prediction and motion compensation prediction on the prediction block. Further, the prediction error is hierarchically divided into transform blocks in the coding block, and each transform coefficient is entropy coded to achieve a high compression rate.
- the coding structure shown in FIG. A block having a high value is searched, and encoding using motion compensated prediction with the search target block as a prediction value is performed.
- a picture that uses motion compensation prediction at this time is predicted from an inter picture
- a picture that is a search (reference) destination for motion compensation prediction is a reference picture, and is predicted from only coded pixels in a picture to be coded without using motion compensation.
- a picture is called an intra picture.
- bi-directional prediction which is motion compensation that refers to both past and future pictures in the display order, is known to be able to realize highly accurate prediction.
- FIG. 31 shows an example of setting a randomly accessible picture (Intra (Random Access Point (IRAP) picture described in Non-Patent Document 1). Inter-pictures are allowed to refer to pictures that are temporally earlier than intra-pictures, but inter-pictures that are later in decoding order (encoding order) and display order than IRAP pictures are temporally older than IRAP pictures across the IRAP pictures. The previous picture cannot be referred to.
- IRAP Random Access Point
- the reference destination of motion compensation prediction is limited. In this case, even when decoding is started from the middle of the encoded bitstream, if decoding is performed from the IRAP, a picture subsequent to the IRAP picture in the display order can always be correctly decoded, and reproduction in the middle of the encoded sequence can be realized. it can.
- Non-Patent Document 1 defines IDR (Instantaneous Decoding Refresh) pictures, CRA (Clean Random Access) pictures, and BLA (Broken Link Access) pictures as IRAP pictures.
- IDR pictures guarantee normal decoding of later pictures
- CRA and BLA pictures guarantee normal decoding of pictures whose decoding order and display order are later. Yes.
- the pictures after the IRAP picture are always in the decoding order after the IRAP picture so that the pictures after the IRAP picture can be reproduced in the display order at the time of random access from the IRAP picture. That is, in all IRAP pictures, it is common that normal decoding is possible for the pictures that are later in the display order.
- Non-Patent Document 2 also has a similar random access function. However, in Non-Patent Document 2, only an IDR picture is defined as a random access picture.
- the present invention has been made to solve the above-described problems, and is an image encoding device, an image decoding device, an encoded stream conversion device, an image code, and the like that can improve encoding efficiency while maintaining a random access interval.
- An object is to obtain a conversion method and an image decoding method.
- An image encoding apparatus includes a block dividing unit that divides an input image into blocks of encoding processing units, an encoding mode determining unit that determines an encoding mode for blocks divided by the block dividing unit, An image encoding device that performs an encoding process on a block divided by a block dividing unit according to an encoding mode determined by an encoding mode determining unit and outputs compressed data of the block, the block dividing unit A prediction image generation unit that generates a prediction image of the block divided by the block, a difference image generation unit that generates a difference image between the block divided by the block division unit and the prediction image generated by the prediction image generation unit, and a difference An image compression unit that compresses the difference image generated by the image generation unit and outputs compressed data of the difference image; A local decoded image generation unit that expands the differential image compressed by the compression unit and adds the expanded differential image and the predicted image generated by the predicted image generation unit to generate a local decoded image; and a local decoded
- the encoding unit encodes the picture position information indicating the position of the reference picture and the identification information indicating that the randomly accessible inter picture is randomly accessible, and the encoded data of the picture position information and the identification information Is multiplexed into a bitstream.
- the block division unit that divides the input image into blocks of the encoding processing unit
- the encoding mode determination unit that determines the encoding mode for the block divided by the block division unit
- the encoding mode determination unit An image coding apparatus that performs coding processing on a block divided by a block dividing unit according to a coding mode and outputs compressed data of the block, and is a predicted image of a block divided by the block dividing unit
- a difference image generation unit that generates a difference image between a block divided by the block division unit and a prediction image generated by the prediction image generation unit, and a difference generated by the difference image generation unit
- An image compression unit that compresses an image and outputs compressed data of the difference image, and a difference compressed by the image compression unit
- a local decoded image generation unit that generates a local decoded image by expanding the image, adds the expanded difference image and the prediction image generated by the prediction image generation unit, and a local decoded image generated by the local decoded image generation unit
- a random accessible intra picture with the first encoding order and the closest encoding order is set as the reference picture.
- the motion compensation prediction is performed using the set reference picture for the prediction process, the encoding unit encodes identification information indicating that the randomly accessible inter picture is randomly accessible, and the encoded data of the identification information is encoded. It is multiplexed in a bit stream.
- An image decoding apparatus is an image decoding apparatus that generates a decoded image by inputting a bit stream obtained by compressing and encoding an image in units of blocks, and includes compressed data and encoding modes related to each block from the bit stream
- a decoding unit that decodes the image, a decoded image that references a decoded pixel according to the encoding mode decoded by the decoding unit, generates a predicted image for each block, and decompresses the compressed data decoded by the decoding unit
- a difference image generation unit that generates a difference image
- a decoded image generation unit that generates a decoded image by adding the difference image generated by the difference image generation unit and the prediction image generated by the prediction image generation unit
- a filtering processing unit that performs filtering processing on the decoded image generated by the decoded image generating unit, Decoding the identification information indicating whether the intermediate picture is a randomly accessible inter picture, and decoding the picture position information indicating the position of the reference picture to be referred
- an image decoding apparatus that generates a decoded image by inputting a bitstream obtained by compressing and encoding an image in units of blocks, and a decoding unit that decodes compressed data and an encoding mode related to each block from the bitstream;
- the decoded pixel is referred to, a prediction image generation unit that generates a prediction image for each block, and a compressed image decoded by the decoding unit is expanded to generate a difference image Generated by a difference image generation unit, a decoded image generation unit that generates a decoded image by adding the difference image generated by the difference image generation unit and the prediction image generated by the prediction image generation unit, and a decoded image generation unit
- a filtering processing unit that performs a filtering process on the decoded image.
- the predicted image generation unit When decoding the identification information indicating whether it is an accessible inter picture and the predicted image generation unit decodes the randomly accessible inter picture identified by the identification information, the decoding order of the randomly accessible inter picture On the other hand, a randomly accessible intra picture having the first decoding order and the closest decoding order is set as a reference picture, and motion compensated prediction using the set reference picture for prediction processing is performed.
- An encoded stream conversion apparatus is an encoded stream conversion apparatus that inputs a bit stream obtained by compressing and encoding an image in units of blocks and outputs a re-encoded bit stream, and decodes the bit stream.
- An image decoding unit that generates a decoded image and identifies a randomly accessible intra picture, and a re-encoding target intra picture that is re-encoded from the identified random accessible intra picture to a randomly accessible inter picture
- a re-encoding setting unit for setting the re-encoding target intra-picture, a re-encoding unit for re-encoding the re-encoding target intra-picture, and a re-encoding target intra-picture re-encoded by the bit stream and the re-encoding unit.
- a bitstream synthesis unit that synthesizes and outputs a re-encoded bitstream
- a re-encoding unit that encodes identification information indicating that a picture re-encoded to a randomly accessible inter-picture is randomly accessible, and re-encodes the encoded data of the identification information Are multiplexed.
- the encoding mode determining unit determines the encoding mode for the blocks divided by the block dividing unit.
- An image encoding method for performing an encoding process on a block divided by a block dividing unit according to the encoding mode and outputting compressed data of the block wherein the predicted image generating unit includes a block dividing unit A prediction image of the block divided by the step, the difference image generation unit generates a difference image between the block divided by the block division unit and the prediction image generated by the prediction image generation unit, the image compression unit, The difference image generated by the difference image generation unit is compressed, the compressed data of the difference image is output, and the local decoded image generation unit The difference image compressed by the unit is expanded, the decoded difference image is added to the predicted image generated by the predicted image generation unit to generate a local decoded image, and the filtering processing unit is generated by the local decoded image generation unit A filter
- the predictive image generation unit encodes a random accessible inter picture
- the encoding order of the randomly accessible inter picture is Therefore, an intra picture that can be accessed in random order with the encoding order first and the encoding order closest is set as the reference picture. Then, the motion compensated prediction is performed using the set reference picture for the prediction process, and the encoding unit encodes identification information indicating that the randomly accessible inter picture is randomly accessible, and encodes the identification information. Data is multiplexed into a bit stream.
- An image decoding method is an image decoding method for generating a decoded image by inputting a bit stream obtained by compressing and encoding an image in units of blocks, wherein the decoding unit performs compressed data relating to each block from the bit stream.
- the prediction image generation unit generates a prediction image for each block with reference to the decoded pixels according to the encoding mode decoded by the decoding unit, and the difference image generation unit decodes the encoding mode.
- the compressed data decoded by the unit is expanded to generate a difference image
- the decoded image generation unit adds the difference image generated by the difference image generation unit and the prediction image generated by the prediction image generation unit to decode An image is generated
- the filtering processing unit performs filtering processing on the decoded image generated by the decoded image generating unit.
- the reference picture is set from a plurality of randomly accessible intra pictures, and the setting is performed.
- the motion compensation prediction is performed using the reference picture for the prediction process, and the encoding unit encodes the picture position information indicating the position of the reference picture and the identification information indicating that the randomly accessible inter picture is randomly accessible. Since the encoded data of the picture position information and the identification information is multiplexed into the bit stream, random access is possible even in the inter picture, and the encoding efficiency can be improved while maintaining the random access interval. There is an effect that can be done.
- the predictive image generating unit encodes a randomly accessible inter picture
- the encoding order of the randomly accessible inter picture is used.
- a random accessible intra picture with the first encoding order and the closest encoding order is set as a reference picture, and motion compensated prediction is performed using the set reference picture for prediction processing. Since the identification information indicating that the randomly accessible inter picture is randomly accessible is encoded and the encoded data of the identification information is multiplexed into the bitstream, the randomly accessible inter picture refers to The information for identifying the intra picture is no longer necessary, and the code amount of the information to be encoded is reduced. There is an effect that can be.
- the decoding unit decodes the identification information indicating which inter picture is a randomly accessible inter picture, and the random access inter picture
- decoding picture position information indicating the position of a reference picture to be referred to when generating a predicted image and the predicted image generating unit decodes a randomly accessible inter picture identified by the identification information, a plurality of random Since the picture indicated by the picture position information among the accessible intra pictures is set as a reference picture and the motion compensated prediction using the set reference picture for prediction processing is performed, the inter picture that can be accessed randomly Correctly decode the encoded bitstream containing There is an effect that can be.
- the re-encoding unit encodes identification information indicating that a picture re-encoded to a randomly accessible inter-picture is randomly accessible, Since the encoded data of the identification information is configured to be multiplexed on the re-encoded bit stream, an encoded bit stream having a smaller code amount than that of the encoded bit stream generated by the image encoding device or the like can be generated. effective.
- (A) shows the distribution of the encoding block and prediction block after a division
- (b) is explanatory drawing which shows the condition where encoding mode m ( Bn ) is allocated by hierarchy division
- Each prediction block P i n the coded block B n is an explanatory diagram showing an example of a selectable intra prediction modes. It is explanatory drawing which shows an example of the pixel used when producing
- FIG. It is explanatory drawing which shows the trade-off relationship of a random access interval and encoding efficiency. It is explanatory drawing which shows the random access implementation example by the nonpatent literatures 1 and 2, and the random access implementation example by Embodiment 1.
- FIG. It is explanatory drawing which shows the random access implementation example by Embodiment 1 which used together the IRAP picture which is not a long-term reference picture. It is explanatory drawing which shows the implementation example of the random access by the inter picture in which random access is possible. It is explanatory drawing in the case of showing the position of the reference picture used at the time of random access by the number of movement bytes from the information which identifies the inter picture which can be accessed randomly.
- FIG. 1 is a block diagram showing an image encoding apparatus according to Embodiment 1 of the present invention.
- the feature of the present invention is that random access is also possible in an inter picture using mainly the motion compensated prediction unit 5, the motion compensated prediction frame memory 12, and the variable length coding unit 13 in the configuration of FIG.
- the block division unit 1 and the slice division unit 14 constitute a block division unit described in the claims
- the encoding control unit 2 constitutes an encoding mode determination unit
- a changeover switch 3 an intra prediction unit 4
- the motion compensation prediction unit 5 and the predicted image generation unit are configured.
- the subtracting unit 6 constitutes a difference image generating unit
- the transform / quantization unit 7 constitutes an image compression unit
- the inverse quantization / inverse transform unit 8 and the addition unit 9 constitute a local decoded image generation unit.
- the loop filter unit 11 constitutes a filtering processing unit
- the variable length coding unit 13 constitutes an encoding unit.
- the video signal to be processed by the image coding apparatus according to the first embodiment is a color video in an arbitrary color space such as a YUV signal composed of a luminance signal and two color difference signals, or an RGB signal output from a digital image sensor.
- the video frame is an arbitrary video signal such as a monochrome image signal or an infrared image signal, in which a video frame is composed of a horizontal / vertical two-dimensional digital sample (pixel) sequence.
- the gradation of each pixel may be 8 bits, or a gradation of 10 bits, 12 bits, or the like.
- the input signal may be a still image signal instead of a video signal because the still image signal can be interpreted as a video signal composed of only one frame.
- the input video signal is YUV4: 2 in which the two color difference components U and V are subsampled in half both vertically and horizontally with respect to the luminance component Y: 0 format
- the two color difference components U and V are the luminance component Y
- YUV 4: 4: 4 format signal having the same number of samples.
- each signal is regarded as a YUV 4: 4: 4 format signal and YUV 4: Performs the same encoding as the 4: 4 format.
- the correspondence of each signal (RGB) in RGB 4: 4: 4 format to each signal (YUV) in YUV 4: 4: 4 format is not limited (can be arbitrarily set).
- each signal is regarded as a monochrome image signal and is independently encoded in monochrome (YUV 4: 0: 0) to generate a bit stream. May be.
- picture The processing data unit corresponding to each frame of the video is referred to as “picture”.
- “picture” is described as a signal of a video frame that has been sequentially scanned (progressive scan).
- the “picture” may be a field image signal which is a unit constituting a video frame.
- the slice dividing unit 14 when a video signal is input as an input image, the slice dividing unit 14 performs a process of dividing the input image into one or more partial images called “slices” according to the slice division information determined by the encoding control unit 2. carry out.
- the slice division unit can be finely divided to a coding block unit described later.
- the slice dividing unit 1 Each time the block dividing unit 1 inputs the slice divided by the slice dividing unit 14, the slice dividing unit 1 divides the slice into maximum coding blocks that are coding blocks of the maximum size determined by the coding control unit 2, and Until the upper limit number of hierarchies determined by the encoding control unit 2 is reached, a process of dividing the maximum encoded block hierarchically into each encoded block is performed. That is, the block dividing unit 1 divides the slice into each encoded block in accordance with the division determined by the encoding control unit 2, and performs a process of outputting the encoded block. Each coding block is divided into one or a plurality of prediction blocks which are prediction processing units.
- the encoding control unit 2 determines the maximum size of the encoded block that is a processing unit when the encoding process is performed, and sets the upper limit number of layers when the encoded block of the maximum size is hierarchically divided. By determining, the process of determining the size of each encoded block is performed.
- the encoding control unit 2 also includes one or more selectable encoding modes (one or more intra encoding modes having different prediction block sizes indicating prediction processing units, one or more inter codes having different prediction block sizes, and the like).
- the coding mode to be applied to the coding block output from the block dividing unit 1 is selected from among the coding modes.
- the selection method there is a method of selecting a coding mode having the highest coding efficiency for the coding block output from the block dividing unit 1 from one or more selectable coding modes.
- the coding control unit 2 sets the intra prediction parameters used when performing the intra prediction processing on the coding block in the intra coding mode.
- the coding mode having the highest coding efficiency is the inter coding mode, determined for each prediction block that is the prediction processing unit indicated by the intra coding mode, the inter prediction process for the coding block is performed in the inter coding mode.
- the process which determines the inter prediction parameter used when implementing for every prediction block which is a prediction process unit which the said inter coding mode shows is implemented.
- the encoding control unit 2 performs a process of determining a prediction difference encoding parameter to be given to the transform / quantization unit 7 and the inverse quantization / inverse transform unit 8.
- the prediction difference coding parameter includes transform block partition information indicating transform block partition information that is a unit of orthogonal transform processing in the coded block, and a quantization parameter that specifies a quantization step size when transform coefficients are quantized. Etc. are included.
- FIG. 19 is an explanatory diagram showing a conversion block size when performing compression processing (conversion processing and quantization processing) of a luminance signal and a color difference signal in a YUV 4: 2: 0 format signal.
- the transform block size is determined by hierarchically dividing the encoded block into a quadtree. For example, whether or not to divide the transform block so that the evaluation value is minimized based on the amount of code when the transform block is divided and when the transform block is not divided, the evaluation scale that takes into account the coding error, etc. By determining this, it is possible to determine the optimal transform block division shape from the viewpoint of the trade-off between the code amount and the coding error.
- the encoded block is hierarchically divided into one or a plurality of square transform blocks.
- the encoding block is hierarchically divided into one or a plurality of square transform blocks in the same manner as the luminance signal.
- the conversion block size of the color difference signal is half the vertical and horizontal sizes of the corresponding luminance signal conversion block.
- the input signal format is a YUV 4: 2: 2 signal
- quadtree-like hierarchical division similar to the luminance signal is performed.
- the shape of the divided block is a rectangle in which the number of pixels in the vertical direction is twice the number of pixels in the horizontal direction
- the divided block is further divided into two parts in the vertical direction, so that the YUV 4: 2: 0 signal
- the color difference signal is composed of two conversion blocks having the same block size (half the vertical and horizontal sizes of the luminance signal conversion block).
- the color difference signal conversion block is always divided in the same manner as the luminance signal conversion block to be the same size conversion block.
- the division information of the conversion block of the luminance signal is output to the variable length encoding unit 13 as a conversion block division flag indicating whether or not to divide for each layer, for example.
- the changeover switch 3 outputs the coded block output from the block dividing unit 1 to the intra prediction unit 4 and the coding control unit 2. If the coding mode determined by the above is the inter coding mode, a process of outputting the coding block output from the block dividing unit 1 to the motion compensation prediction unit 5 is performed.
- the intra prediction unit 4 When the intra control mode is selected by the encoding control unit 2 as the encoding mode corresponding to the encoded block output from the changeover switch 3, the intra prediction unit 4 is stored locally in the intra prediction memory 10. With reference to the decoded image, an intra prediction process (intraframe prediction process) using the intra prediction parameter determined by the encoding control unit 2 is performed to generate an intra predicted image.
- the intra prediction unit 4 constitutes an intra prediction unit.
- the intra prediction unit 4 performs an intra prediction process (intraframe prediction process) using the intra prediction parameter of the luminance signal to generate a prediction image of the luminance signal.
- the intra prediction parameter of the color difference signal indicates that the same prediction mode as the intra prediction mode for the luminance signal is used (the intra prediction parameter indicates the luminance color difference common intra prediction mode (DM mode)).
- DM mode luminance color difference common intra prediction mode
- the intra prediction parameter of the color difference signal indicates the vertical direction prediction mode or the horizontal direction prediction mode
- the directionality prediction for the color difference signal is performed to generate a prediction image of the color difference signal.
- the intra prediction parameter of the color difference signal indicates the luminance correlation use color difference signal prediction mode (LM mode)
- LM mode luminance correlation use color difference signal prediction mode
- a correlation parameter indicating the correlation between the luminance signal and the color difference signal is calculated using the signal, and a predicted image of the color difference signal is generated using the correlation parameter and the luminance signal corresponding to the block of the color difference signal to be predicted.
- the input signal format is a YUV 4: 4: 4 signal
- the DM mode or the LM mode processing may be performed and the other prediction modes may not be selected.
- the edge position of the luminance signal and the color difference signal has a high correlation. Therefore, by prohibiting the prediction mode different from the luminance signal from being applied to the color difference signal, the intra prediction mode of the color difference signal is prohibited. Thus, it is possible to improve the coding efficiency.
- the color difference signal has half the number of pixels in the horizontal direction compared to the luminance signal. Becomes a rectangular block. Therefore, as shown in FIG. 25, when the luminance signal and the color difference signal indicate the same direction prediction on the YUV 4: 4: 4 signal, the YUV 4: 4: 4 signal is converted into a YUV 4: 2: 2 signal.
- the prediction direction of the color difference signal is different from the prediction direction of the luminance signal. Specifically, as shown in FIG.
- the intra prediction mode used for the luminance signal is used.
- the index is converted into an index of an intra prediction mode used for prediction of the color difference signal, and the prediction process of the color difference signal in the intra prediction mode corresponding to the converted index is performed.
- an index conversion table may be prepared, and the index may be converted by referring to the conversion table.
- a conversion formula is prepared in advance, and the index is converted according to the conversion formula. You may comprise. With this configuration, it is possible to perform appropriate prediction of the color difference signal according to the format of the YUV 4: 2: 2 signal only by converting the index without changing the directionality prediction process itself.
- the motion compensation prediction unit 5 and the motion compensation prediction frame memory 12 A motion vector is searched by comparing locally decoded images of one frame or more stored in the image, and the motion vector and an inter prediction parameter such as a frame number to be determined determined by the encoding control unit 2 are used to encode the code.
- a process for generating an inter-predicted image by performing an inter prediction process (motion-compensated prediction process) on a block is performed.
- the subtraction unit 6 subtracts the intra prediction image generated by the intra prediction unit 4 or the inter prediction image generated by the motion compensated prediction unit 5 from the encoded block output from the block division unit 1 and performs the subtraction.
- the process which outputs the prediction difference signal which shows the difference image which is a result to the conversion and quantization part 7 is implemented.
- the transform / quantization unit 7 refers to the transform block division information included in the prediction difference coding parameter determined by the coding control unit 2 and performs orthogonal transform processing on the prediction difference signal output from the subtraction unit 6 (for example, DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), orthogonal transform processing such as KL transform, which is previously designed for a specific learning sequence, is performed for each transform block, and transform coefficients are calculated. Then, referring to the quantization parameter included in the prediction differential encoding parameter, the transform coefficient of the transform block unit is quantized, and the compressed data, which is the transform coefficient after quantization, is inversely quantized / inverse transform unit 8 and variable A process of outputting to the long encoding unit 13 is performed.
- DCT Discrete Cosine Transform
- DST Discrete Sine Transform
- FIG. 10 is an explanatory diagram illustrating an example of a 4 ⁇ 4 DCT quantization matrix.
- the numbers in the figure indicate the scaling value of the quantization step size of each transform coefficient. For example, in order to suppress the encoding bit rate, as shown in FIG. 10, by scaling the quantization step size to a larger value for the higher frequency transform coefficient, the higher frequency generated in a complex image region or the like. It is possible to perform coding without dropping information on low-frequency coefficients that greatly affect subjective quality while suppressing the amount of codes by suppressing conversion coefficients. Thus, when it is desired to control the quantization step size for each transform coefficient, a quantization matrix may be used.
- the quantization matrix can use an independent matrix for each color signal and coding mode (intra coding or inter coding) with each orthogonal transform size. It is possible to select whether to use a quantization matrix that is commonly prepared in advance by the decoding apparatus or an already encoded quantization matrix or to use a new quantization matrix. Accordingly, the transform / quantization unit 7 sets flag information indicating whether or not to use a new quantization matrix for each orthogonal transform size for each color signal and coding mode, in a quantization matrix parameter to be encoded. .
- each scaling value of the quantization matrix as shown in FIG. 10 is set as a quantization matrix parameter to be encoded.
- a new quantization matrix is not used, as an initial value, a quantization matrix prepared in advance by the image encoding device and the image decoding device, or a quantization matrix that has already been encoded is used.
- an index for specifying a matrix to be used is set as a quantization matrix parameter to be encoded.
- the inverse quantization / inverse transform unit 8 refers to the quantization parameter and transform block division information included in the prediction difference coding parameter determined by the coding control unit 2, and transforms and transforms the transform block / quantization unit 7 in units of transform blocks.
- a local decoded prediction difference corresponding to the prediction difference signal output from the subtracting unit 6 is obtained by inversely quantizing the output compressed data and performing an inverse orthogonal transform process on the transform coefficient that is the compressed data after the inverse quantization.
- a process of calculating a signal is performed.
- the transform / quantization unit 7 uses the quantization matrix to perform the quantization process, the corresponding inverse quantization can be performed by referring to the quantization matrix even during the inverse quantization process. Perform the process.
- the addition unit 9 includes the local decoded prediction difference signal calculated by the inverse quantization / inverse conversion unit 8, the intra prediction image generated by the intra prediction unit 4, or the inter prediction image generated by the motion compensation prediction unit 5. Are added to calculate a locally decoded image corresponding to the encoded block output from the block dividing unit 1.
- the intra prediction memory 10 is a recording medium that stores the locally decoded image calculated by the adding unit 9.
- the loop filter unit 11 performs a predetermined filtering process on the local decoded image calculated by the adding unit 9 and performs a process of outputting the local decoded image after the filter process. Specifically, filter (deblocking filter) processing that reduces distortion occurring at the boundaries of transform blocks and prediction blocks, processing for adaptively adding an offset (pixel adaptive offset) for each pixel, Wiener filter, etc. Performs adaptive filter processing for adaptively switching linear filters and performing filter processing.
- the loop filter unit 11 determines whether or not to perform each of the deblocking filter process, the pixel adaptive offset process, and the adaptive filter process, and performs variable-length coding using the valid flag of each process as header information. To the unit 13. When a plurality of the above filter processes are used, each filter process is performed in order. FIG. 11 shows a configuration example of the loop filter unit 11 when a plurality of filter processes are used. Generally, the more types of filter processing that are used, the better the image quality, but the higher the processing load. That is, image quality and processing load are in a trade-off relationship. In addition, the image quality improvement effect of each filter process varies depending on the characteristics of the image to be filtered.
- the filter processing to be used may be determined according to the processing load allowed by the image encoding device and the characteristics of the encoding target image. For example, when it is desired to reduce processing impossibility as compared with the configuration of FIG. 11, it may be configured by only deblocking filter processing and pixel adaptive offset processing.
- the deblocking filter process various parameters used for selecting the filter strength applied to the block boundary can be changed from the initial values.
- the parameter is output to the variable length coding unit 13 as header information.
- the pixel adaptive offset process first, an image is divided into a plurality of blocks, and when the offset process is not performed for each block, it is defined as one of the class classification methods, and a plurality of class classifications prepared in advance are used. One classification method is selected from the methods. Next, each pixel in the block is classified by the selected class classification method, and an offset value for compensating the coding distortion is calculated for each class. Finally, the image quality of the locally decoded image is improved by performing a process of adding the offset value to the luminance value of the locally decoded image.
- block division information, an index indicating the class classification method of each block, and offset information for specifying an offset value of each class in block units are output to the variable length coding unit 13 as header information.
- the pixel adaptive offset processing for example, it may be always divided into fixed-size block units such as a maximum coding block, and a class classification method may be selected for each block to perform adaptive offset processing for each class.
- the block division information becomes unnecessary, the code amount is reduced by the amount of code required for the block division information, and the coding efficiency can be improved.
- the filter designed for each class is output to the variable length encoding unit 13 as header information.
- the class classification method there are a simple method for spatially dividing an image at equal intervals, and a method for classifying an image according to local characteristics (dispersion, etc.) of each block.
- the number of classes used in the adaptive filter processing may be set in advance as a value common to the image encoding device and the image decoding device, or may be a parameter to be encoded. Compared to the former, the latter can set the number of classes to be used freely, so the image quality improvement effect will be improved, but on the other hand, the amount of code will be increased to encode the number of classes. To do.
- the video signal When performing the pixel adaptive offset process and the adaptive filter process, as shown in FIG. 11, the video signal needs to be referred to by the loop filter unit 11, so that the video signal is input to the loop filter unit 11. In addition, it is necessary to change the image encoding apparatus of FIG.
- the motion compensated prediction frame memory 12 is a recording medium that stores a locally decoded image after the filter processing of the loop filter unit 11.
- the variable length coding unit 13 outputs the compressed data output from the transform / quantization unit 7 and the output signal of the coding control unit 2 (block division information in the largest coding block, coding mode, prediction difference coding parameter, Intra prediction parameters or inter prediction parameters) and motion vectors output from the motion compensation prediction unit 5 (when the encoding mode is the inter encoding mode) are variable length encoded to generate encoded data. Further, as illustrated in FIG. 13, the variable length encoding unit 13 encodes a sequence level header and a picture level header as header information of the encoded bit stream, and generates an encoded bit stream together with the picture data.
- picture data is composed of one or more slice data
- each slice data is a combination of a slice level header and the encoded data in the slice.
- the sequence level header includes the image size, the color signal format, the bit depth of the signal value of the luminance signal and the color difference signal, and each filter process (adaptive filter process, pixel adaptive offset process, deblocking filter process) in the loop filter unit 11 in sequence units.
- filter process adaptive filter process, pixel adaptive offset process, deblocking filter process
- header information that is common to each sequence unit such as valid flag information of) and valid flag information of a quantization matrix, is collected.
- the picture level header is a collection of header information set in units of pictures, such as an index of a sequence level header to be referenced, the number of reference pictures at the time of motion compensation, an entropy coding probability table initialization flag, and a quantization matrix parameter. .
- the slice level header includes position information indicating where the slice is located in the picture, an index indicating which picture level header is referred to, a slice coding type (intra coding, inter coding, etc.), and a loop filter. 8 is a summary of parameters in units of slices such as flag information indicating whether or not each filter process (adaptive filter process, pixel adaptive offset process, deblocking filter process) in the unit 11 is performed.
- each header information and picture data is identified by a NAL unit.
- a sequence parameter set (corresponding to the above sequence level header), a picture parameter header (corresponding to the above picture level header), and slice data are each defined as a unique NAL unit type, together with identification information (index) of the NAL unit type Encoded.
- the picture data is defined as an access unit and indicates a unit of data access including encoded data of one picture.
- the NAL unit type of slice data in the corresponding access unit is encoded as an IRAP picture.
- This IRAP picture is encoded as an intra picture that is encoded only by intra prediction so that it can be normally decoded even if decoding is started from the picture.
- IDR pictures, CRA pictures, and BLA pictures are defined as IRAP pictures.
- Non-Patent Document 2 except that only IDR pictures are defined as randomly accessible pictures.
- the description will be made on the assumption that the IRAP picture of Non-Patent Document 1 is used.
- Non-Patent Document 2 a similar process can be realized by replacing the IRAP picture with an IDR picture.
- this embodiment defines an inter picture that can be randomly accessed.
- FIG. 33 shows a conventional random access implementation example (FIG. 33 (a)) according to Non-Patent Documents 1 and 2 described in FIG. 32 and a random access implementation example (FIG. 33 (b)) according to the present embodiment.
- FIG. 33A IRAP pictures that are intra pictures are inserted every other picture.
- FIG. 33 (b) the number of inter pictures is larger than in FIG. 33 (a).
- the “inter picture” shown in white is displayed earlier than the randomly accessible inter picture whose display order is the previous (display time is in the past). The picture of is not referenced.
- the randomly accessible inter picture is an inter picture that refers only to a long-term reference picture.
- the long-term reference picture is a buffer management of a normal reference picture defined in Non-Patent Documents 1 and 2 (a short-term reference picture defined in Non-Patent Documents 1 and 2).
- a reference picture stored in a reference picture buffer prepared for long-term storage is shown. That is, the long-term reference picture is stored in the long-term storage buffer in the motion compensated prediction frame memory 12.
- a picture that is referenced by a randomly accessible inter picture is referred to as a “reference picture used during random access”. As shown in FIG.
- the reference picture used at random access is a picture that can also refer to a picture other than the randomly accessible inter picture (for example, the inter picture in FIG. 33B).
- reference pictures used at random access are limited to intra pictures that can be normally decoded by the picture alone.
- the reference pictures used during random access may be set at a fixed picture interval, or a picture suitable for each scene may be selected.
- the background image may be set as a reference picture used at random access.
- which intra picture is set as a reference picture to be used during random access is determined according to a rule determined in advance in the encoding apparatus, a determination method in the course of encoding, a determination method outside the encoding apparatus, etc. Various methods are conceivable depending on the application.
- various setting methods can be considered for setting an inter picture that can be randomly accessed, depending on the application. For example, it is set in advance based on the evaluation value indicating the correlation with the reference picture used at random access. That is, an inter picture having a large correlation with the reference picture used during random access is set as an inter picture that can be randomly accessed. As another example, there is a method of setting at a constant picture interval.
- the inter-picture set as a randomly accessible picture generates a prediction image by performing motion compensation prediction with reference to one or more long-term reference pictures in the motion compensation prediction unit 5.
- the variable length encoding unit 13 encodes information regarding an inter picture that can be randomly accessed. That is, the variable-length encoding unit 13 encodes supplementary information (identification information) indicating that it is a randomly accessible inter-picture as Supplemental Enhancement Information (SEI) in an access unit of a randomly accessible inter-picture.
- SEI Supplemental Enhancement Information
- This SEI includes picture position information indicating the picture number of a long-term reference picture that can be independently decoded (reference picture used at random access) that is referred to by the inter picture of the access unit. Therefore, at the time of random access on the decoding side, random access is also possible for the inter picture of the access unit having the SEI in addition to the IRAP picture. In this case, after decoding the long-term reference picture indicated by the SEI, the inter picture that refers only to the long-term reference picture is decoded. That is, in the image decoding device of FIG. 3 described later, when the variable length decoding unit 31 constituting the decoding unit decodes the SEI from the encoded data multiplexed in the bitstream, the image decoding device is included in the SEI.
- a decoded image of an intra picture that is a long-term reference picture with a picture number indicated by the picture position information indicated is decoded, and the decoded image of the intra picture is stored in the motion compensated prediction frame memory 39, and then the motion compensation unit 35
- the motion compensation unit 35 By referring to the decoded picture of the intra picture stored in the motion compensated prediction frame memory 39 and performing the motion compensated prediction of the randomly accessible inter picture indicated by the SEI, it is possible to randomly access the SEI indicated by the SEI. Intermediate decoding (random access) from the inter picture can be realized.
- the long-term reference picture that is a reference picture used at random access is an IRAP picture, but an intra picture that is not an IRAP picture may be used as a long-term reference picture. Furthermore, it is not necessary for all IRAP pictures to be long-term reference pictures, and IRAP pictures that are not long-term reference pictures may be used together as in the example of FIG.
- the number of long-term reference pictures referred to by randomly accessible inter pictures is determined in advance as a common value between the image encoding device and the decoding device.
- the number of picture numbers of long-term reference pictures to be encoded as supplementary information is equal to the predetermined number of long-term reference pictures. Alternatively, the long-term reference picture number may be encoded as supplementary information.
- the number of long-term reference pictures to be referred to can be adaptively changed according to the situation, and the encoding efficiency of randomly accessible inter pictures can be improved.
- not only intra pictures that use only the picture for prediction but also inter pictures that can be used for motion compensation can be used as random access points, thereby realizing highly efficient coding compared to Non-Patent Documents 1 and 2. it can.
- a block division unit 1 an encoding control unit 2, a changeover switch 3, an intra prediction unit 4, a motion compensation prediction unit 5, a subtraction unit 6, a transform / quantization unit, which are components of the image encoding device 7, each of the inverse quantization / inverse transform unit 8, the adder 9, the intra prediction memory 10, the loop filter unit 11, the motion compensation prediction frame memory 12, the variable length coding unit 13, and the slice division unit 14 Hardware (for example, a semiconductor integrated circuit on which a CPU is mounted, a one-chip microcomputer, or the like) is assumed.
- Hardware for example, a semiconductor integrated circuit on which a CPU is mounted, a one-chip microcomputer, or the like
- FIG. 2 is a flowchart showing the processing contents (image coding method) of the image coding apparatus according to Embodiment 1 of the present invention.
- FIG. 3 is a block diagram showing an image decoding apparatus according to Embodiment 1 of the present invention.
- the image decoding apparatus is also characterized in that it can be randomly accessed from the inter picture.
- the variable length decoding unit 31 constitutes a decoding unit
- the inverse quantization / inverse transformation unit 32 constitutes a difference image generation unit
- the changeover switch 33, the intra prediction unit 34, and the motion compensation unit 35 constitute a prediction image generation unit. Is configured.
- the adding unit 36 constitutes a decoded image generation unit
- the loop filter unit 38 constitutes a filtering processing unit.
- FIG. 3 when the variable length decoding unit 31 receives the encoded bit stream generated by the image encoding device of FIG.
- the header information such as a sequence level header, a picture level header, and a slice level header is extracted from the bit stream.
- variable-length decoding is performed on the block division information indicating the division status of each encoded block divided hierarchically from the encoded bitstream.
- the header information includes information indicating that each of the YUV 4: 4: 4 format signal and the RGB 4: 4: 4 format signal is regarded as a monochrome image signal and is independently encoded in monochrome (YUV 4: 0: 0). Included, the encoded bit stream of each color signal can be independently decoded.
- decoding is started in the display order by starting from the picture of the access unit having the SEI indicating that the IRAP picture or the randomly accessible inter picture. Pictures subsequent to the picture can be correctly decoded. Specifically, SEI indicating that it is a randomly accessible inter picture is decoded, and first, the picture number of the long-term reference picture included in this SEI, that is, the picture number of the long-term reference picture referred to by the picture of the access unit Referring to, the picture with the picture number indicated is decoded.
- the motion compensation unit 35 refers to the long-term reference picture decoded and stored in the motion compensation prediction frame memory 39 (motion compensation prediction memory), and the access unit including the SEI
- the inter-picture motion compensation prediction is performed, and the inter-picture is decoded.
- a picture whose display order is later than the inter picture is decoded.
- the number of long-term reference pictures referred to by randomly accessible inter-pictures is determined in advance as a common value in the image coding apparatus and decoding apparatus, and the picture numbers of the long-term reference pictures corresponding to the determined number of long-term reference pictures Is decrypted.
- the image decoding apparatus decodes the number of long-term reference pictures to be referenced, and the long-term reference is the same as the number of decoded long-term reference pictures
- a decoding apparatus for decoding the picture number of a picture is configured. Generated by an image encoding device that improves the coding efficiency of randomly accessible inter-pictures by adaptively changing the number of reference pictures by configuring to decode the number of long-term reference pictures encoded in this way Stream can be decoded correctly.
- variable length decoding unit 31 performs variable length decoding of the quantization matrix parameter, and specifies the quantization matrix.
- the quantization matrix parameter is set as an initial value, a quantization matrix prepared in advance in the image encoding device and the image decoding device, or When indicating that the quantization matrix has already been decoded (not a new quantization matrix), the quantization matrix is identified with reference to the index information identifying which quantization matrix of the matrix, When the quantization matrix parameter indicates that a new quantization matrix is used, the quantization matrix is specified as a quantization matrix that uses the quantization matrix included in the quantization matrix parameter.
- variable length decoding unit 31 refers to each header information to identify the slice division state, identifies the maximum coding block included in the slice data of each slice, refers to the block division information, and determines the maximum A coding block that is a unit for performing a decoding process by hierarchically dividing the coding block is specified, and compressed data, a coding mode, and an intra prediction parameter related to each coding block (the coding mode is an intra coding mode). ), A variable length decoding process for the inter prediction parameter (when the encoding mode is the inter encoding mode), the motion vector (when the encoding mode is the inter encoding mode), and the prediction differential encoding parameter. carry out.
- the inverse quantization / inverse transform unit 32 refers to the quantization parameter and transform block division information included in the prediction difference encoding parameter variable length decoded by the variable length decoding unit 31, and the variable length decoding unit 31 performs variable length decoding. 1 is inversely quantized to the transform block unit, and inverse orthogonal transform processing is performed on the transform coefficient that is the compressed data after inverse quantization, and is output from the inverse quantization / inverse transform unit 8 in FIG. A process of calculating the same decoded prediction difference signal as the local decoding prediction difference signal is performed.
- the division state of the transform block in the coding block is specified from the transform block division information.
- the transform block size is determined by hierarchically dividing the encoded block into quadtrees as shown in FIG.
- the encoded block is hierarchically divided into one or a plurality of square transform blocks.
- the encoding block is hierarchically divided into one or a plurality of square transform blocks in the same manner as the luminance signal.
- the conversion block size of the color difference signal is half the vertical and horizontal sizes of the corresponding luminance signal conversion block.
- the input signal format is a YUV 4: 2: 2 signal
- quadtree-like hierarchical division similar to the luminance signal is performed.
- the shape of the divided block is a rectangle in which the number of pixels in the vertical direction is twice the number of pixels in the horizontal direction
- the divided block is further divided into two parts in the vertical direction, so that the YUV 4: 2: 0 signal
- the color difference signal is composed of two conversion blocks having the same block size (half the vertical and horizontal sizes of the luminance signal conversion block).
- the color difference signal conversion block is always divided in the same manner as the luminance signal conversion block so as to be the same size conversion block.
- each header information variable-length decoded by the variable-length decoding unit 31 indicates that inverse quantization processing is to be performed using the quantization matrix in the slice
- inverse quantization is performed using the quantization matrix.
- Process Specifically, inverse quantization processing is performed using a quantization matrix specified from each header information.
- the changeover switch 33 outputs the intra-prediction parameter variable-length decoded by the variable-length decoding unit 31 to the intra-prediction unit 34 if the coding mode variable-length decoded by the variable-length decoding unit 31 is the intra-coding mode. If the encoding mode variable-length decoded by the variable-length decoding unit 31 is an inter-coding mode, a process of outputting the inter prediction parameters and motion vectors variable-length decoded by the variable-length decoding unit 31 to the motion compensation unit 35 carry out.
- the intra prediction unit 34 is stored in the intra prediction memory 37 when the coding mode related to the coding block specified from the block division information subjected to variable length decoding by the variable length decoding unit 31 is the intra coding mode. With reference to the decoded image, an intra prediction process (intraframe prediction process) using the intra prediction parameter output from the changeover switch 33 is performed to generate an intra predicted image.
- the intra prediction unit 34 constitutes an intra prediction unit.
- the intra prediction unit 34 performs an intra prediction process (intra-frame prediction process) using the intra prediction parameter for the luminance signal, and generates a prediction image of the luminance signal.
- the intra prediction parameter of the color difference signal indicates that the same prediction mode as the intra prediction mode for the luminance signal is used (the intra prediction parameter indicates the luminance color difference common intra prediction mode (DM mode)).
- DM mode luminance color difference common intra prediction mode
- the intra prediction parameter of the color difference signal indicates the vertical direction prediction mode or the horizontal direction prediction mode
- the directionality prediction for the color difference signal is performed to generate a prediction image of the color difference signal.
- the intra prediction parameter of the color difference signal indicates the luminance correlation use color difference signal prediction mode (LM mode)
- LM mode luminance correlation use color difference signal prediction mode
- a correlation parameter indicating the correlation between the luminance signal and the color difference signal is calculated using the signal, and a predicted image of the color difference signal is generated using the correlation parameter and the luminance signal corresponding to the block of the color difference signal to be predicted.
- the image coding apparatus is configured to perform the DM mode or LM mode processing and not select other prediction modes.
- the image decoding apparatus has the same configuration so that the encoded bitstream generated from the image encoding apparatus can be decoded.
- the edge position of the luminance signal and the color difference signal has a high correlation. Therefore, by prohibiting the prediction mode different from the luminance signal from being applied to the color difference signal, the intra prediction mode of the color difference signal is prohibited. Thus, it is possible to improve the coding efficiency.
- the color difference signal has half the number of pixels in the horizontal direction compared to the luminance signal. Becomes a rectangular block. Therefore, as shown in FIG. 25, when a YUV4: 4: 4 signal is converted into a YUV4: 2: 2 signal, in order to predict the luminance signal and the color difference signal in the same direction, YUV4: 2 : On two signals, in the case of directional prediction other than the vertical prediction and the horizontal prediction, the prediction direction of the color difference signal is different from the prediction direction of the luminance signal. Specifically, as shown in FIG.
- the intra prediction mode used for the luminance signal is used.
- the index is converted into an index of an intra prediction mode used for prediction of the color difference signal, and the prediction process of the color difference signal in the intra prediction mode corresponding to the converted index is performed.
- an index conversion table may be prepared, and the index may be converted by referring to the conversion table.
- a conversion formula is prepared in advance, and the index is converted according to the conversion formula. You may comprise. With this configuration, it is possible to perform appropriate prediction of the color difference signal according to the format of the YUV 4: 2: 2 signal only by converting the index without changing the directionality prediction process itself.
- the motion compensation unit 35 is stored in the motion compensation prediction frame memory 39 when the coding mode related to the coding block specified from the block division information variable-length decoded by the variable-length decoding unit 31 is the inter-coding mode.
- the inter prediction process motion compensation prediction process using the motion vector output from the changeover switch 33 and the inter prediction parameter is performed while referring to the decoded image, and the process of generating the inter prediction image is performed.
- the addition unit 36 adds the decoded prediction difference signal calculated by the inverse quantization / inverse conversion unit 32 and the intra prediction image generated by the intra prediction unit 34 or the inter prediction image generated by the motion compensation unit 35. Then, a process of calculating the same decoded image as the local decoded image output from the adding unit 9 in FIG. 1 is performed.
- the intra prediction memory 37 is a recording medium that stores the decoded image calculated by the adding unit 36 as a reference image used in the intra prediction process.
- the loop filter unit 38 performs a predetermined filter process on the decoded image calculated by the adding unit 36 and performs a process of outputting the decoded image after the filter process. Specifically, filter (deblocking filter) processing that reduces distortion occurring at the boundaries of transform blocks and prediction blocks, processing for adaptively adding an offset (pixel adaptive offset) for each pixel, Wiener filter, etc. Performs adaptive filter processing for adaptively switching linear filters and performing filter processing.
- the loop filter unit 38 performs each of the above deblocking filter processing, pixel adaptive offset processing, and adaptive filter processing with reference to each header information variable-length decoded by the variable-length decoding unit 31 in the corresponding slice. Specify whether or not.
- the loop filter unit 38 is configured as shown in FIG. 11 if the loop filter unit 11 of the image encoding device is configured as shown in FIG. 11, a loop filter unit 38 is configured as shown in FIG. The Naturally, if the loop filter unit 11 of the image encoding device is configured by deblocking filter processing and pixel adaptive offset processing, the loop filter unit 38 is also configured by deblocking filter processing and pixel adaptive offset processing.
- deblocking filter processing with reference to the header information that has been subjected to variable length decoding by the variable length decoding unit 31, there is information for changing various parameters used for selecting the filter strength applied to the block boundary from the initial value. Based on the change information, deblocking filter processing is performed. When there is no change information, it is performed according to a predetermined method.
- the decoded image is divided based on the block division information of the pixel adaptive offset processing variable-length decoded by the variable-length decoding unit 31, and the variable-length decoding unit 31 performs variable-length decoding on the block basis. If the index indicating the block classification method is not an index indicating that “offset processing is not performed”, each pixel in the block is classified according to the class classification method indicated by the index. To do.
- the same class classification method candidate as the pixel classification method candidate of the pixel adaptive offset process of the loop filter unit 11 is prepared in advance as a class classification method candidate. Then, a process of adding the offset to the luminance value of the decoded image is performed with reference to the offset information specifying the offset value of each class in block units.
- the block division information is not encoded, and the image is always divided into fixed-size block units (for example, the maximum encoded block unit).
- the loop filter unit 38 also has a pixel adaptive offset in units of blocks having the same fixed size as the loop filter unit 11. Perform the process.
- the motion compensation prediction frame memory 39 is a recording medium that stores the decoded image after the filter processing of the loop filter unit 38 as a reference image used in the inter prediction processing (motion compensation prediction processing).
- a variable length decoding unit 31 an inverse quantization / inverse conversion unit 32, a changeover switch 33, an intra prediction unit 34, a motion compensation unit 35, an addition unit 36, and an intra prediction component that are components of the image decoding device.
- each of the memory 37, the loop filter unit 38, and the motion compensation prediction frame memory 39 is configured by dedicated hardware (for example, a semiconductor integrated circuit on which a CPU is mounted, a one-chip microcomputer, or the like).
- FIG. 4 is a flowchart showing the processing contents (image decoding method) of the image decoding apparatus according to Embodiment 1 of the present invention.
- each frame image of a video is used as an input image, intra prediction from encoded neighboring pixels or motion compensation prediction between adjacent frames is performed, and an obtained prediction difference signal is obtained.
- An image encoding device that performs compression processing by orthogonal transform / quantization and then performs variable length encoding to generate an encoded bitstream, and an image that decodes the encoded bitstream output from the image encoding device A decoding apparatus will be described.
- the image encoding apparatus in FIG. 1 performs intra-frame and inter-frame adaptive encoding by dividing a video signal into blocks of various sizes in response to local changes in the spatial and temporal directions of the video signal. It is characterized by.
- a video signal has a characteristic that the complexity of the signal changes locally in space and time.
- a small image such as a picture with a uniform signal characteristic in a relatively wide image area such as the sky or a wall, or a picture containing a person or fine texture, on a video frame.
- a pattern having a complicated texture pattern in the region may be mixed.
- Even when viewed temporally, the change in the pattern of the sky and the wall locally in the time direction is small, but because the outline of the moving person or object moves rigidly or non-rigidly in time, the temporal change Is big.
- a prediction difference signal with small signal power and entropy is generated by temporal and spatial prediction to reduce the overall code amount.
- the parameters used for the prediction are set as large as possible in the image signal region. If it can be applied uniformly, the code amount of the parameter can be reduced.
- the same prediction parameter is applied to a large image region with respect to an image signal pattern having a large temporal and spatial change, the number of prediction differential signals increases because prediction errors increase. . Therefore, in a region where the temporal and spatial changes are large, the block size for performing the prediction process by applying the same prediction parameter is reduced, the amount of parameter data used for prediction is increased, and the power and entropy of the prediction difference signal are increased. It is desirable to reduce
- the first embodiment in order to perform coding adapted to the general characteristics of such a video signal, first, prediction processing or the like is started from a predetermined maximum block size, and the video signal region is divided hierarchically. In addition, the prediction process and the encoding process of the prediction difference are adapted for each divided area.
- the encoding control unit 2 determines the slice division state of a picture to be encoded (current picture), and also determines the size of the maximum encoding block used for encoding the picture and the hierarchy for dividing the maximum encoding block into layers. The upper limit of the number is determined (step ST1 in FIG. 2).
- the same size may be determined for all the pictures according to the resolution of the video signal of the input image, or the local motion of the video signal of the input image
- the size difference may be quantified as a parameter, and a small size may be determined for a picture with high motion, while a large size may be determined for a picture with little motion.
- the upper limit of the number of division layers can be determined by, for example, determining the same number of layers for all pictures according to the resolution of the video signal of the input image, or when the motion of the video signal of the input image is severe There is a method in which the number of hierarchies is increased so that finer movements can be detected, and when there are few movements, the number of hierarchies is set to be suppressed.
- the size of the maximum coding block and the upper limit of the number of layers into which the maximum coding block is divided may be encoded in a sequence level header or the like, or the image decoding apparatus side may determine the same without encoding. Processing may be performed.
- the former increases the code amount of the header information, but it is not necessary to perform the determination process on the image decoding device side, so that the processing load on the image decoding device can be suppressed, and an optimum value is set on the image coding device side. You can search and send. On the contrary, since the determination process is performed on the image decoding apparatus side, the processing load on the image decoding apparatus increases, but the code amount of the header information does not increase.
- the minimum block size of the coding block is used instead of the upper limit of the number of division hierarchies. May be encoded.
- the size of the block when the maximum encoded block is divided up to the upper limit of the number of division layers is the minimum block size of the encoded block
- the size of the maximum encoded block and the size of the encoded block are determined on the image decoding device side.
- the upper limit of the number of divided hierarchies can be specified from the minimum block size.
- the encoding control unit 2 selects an encoding mode corresponding to each encoding block divided hierarchically from one or more available encoding modes (step ST2). That is, the encoding control unit 2 divides the image area of the maximum encoding block size into encoded blocks having the encoding block size hierarchically until reaching the upper limit of the number of division layers defined above. A coding mode for each coding block is determined. There are one or more intra coding modes (collectively referred to as “INTRA”) and one or more inter coding modes (collectively referred to as “INTER”). The coding control unit 2 selects a coding mode corresponding to each coding block from all coding modes available for the picture or a subset thereof.
- ITRA intra coding modes
- INTER inter coding modes
- each coding block that is hierarchically divided by the block division unit 1 to be described later is further divided into one or a plurality of prediction blocks, which are units for performing prediction processing, and the division state of the prediction block is also coded mode.
- the coding mode is an index for identifying what kind of prediction block division the intra or inter coding mode is. Since the encoding mode selection method by the encoding control unit 2 is a known technique, detailed description thereof is omitted. For example, an encoding process for an encoding block is performed using any available encoding mode. There is a method in which coding efficiency is verified by performing and a coding mode having the best coding efficiency is selected from among a plurality of available coding modes.
- the encoding control unit 2 determines a quantization parameter and a transform block division state used when the difference image is compressed for each encoding block, and is used when a prediction process is performed.
- a prediction parameter (intra prediction parameter or inter prediction parameter) is determined. However, when the encoded block is further divided into prediction block units for performing prediction processing, a prediction parameter (intra prediction parameter or inter prediction parameter) is selected for each prediction block.
- FIG. 19 is an explanatory diagram showing the conversion block size when the compression processing (conversion processing, quantization processing) of the luminance signal and the color difference signal in the 4: 2: 0 format signal is performed.
- the transform block size is determined by hierarchically dividing the encoded block into a quadtree. For example, whether or not to divide the transform block so that the evaluation value is minimized based on the amount of code when the transform block is divided and when the transform block is not divided, the evaluation scale that takes into account the coding error, etc. By determining this, it is possible to determine the optimal transform block division shape from the viewpoint of the trade-off between the code amount and the coding error.
- the encoded block is hierarchically divided into one or a plurality of square transform blocks.
- the encoding block is hierarchically divided into one or a plurality of square transform blocks in the same manner as the luminance signal.
- the conversion block size of the color difference signal is half the vertical and horizontal sizes of the corresponding luminance signal conversion block.
- the input signal format is a YUV 4: 2: 2 signal
- quadtree-like hierarchical division similar to the luminance signal is performed.
- the shape of the divided block is a rectangle in which the number of pixels in the vertical direction is twice the number of pixels in the horizontal direction
- the divided block is further divided into two parts in the vertical direction, so that the YUV 4: 2: 0 signal
- the color difference signal is composed of two conversion blocks having the same block size (half the vertical and horizontal sizes of the luminance signal conversion block).
- the color difference signal conversion block is always divided in the same manner as the luminance signal conversion block to be the same size conversion block. Configure as follows.
- the encoding control unit 2 performs predictive differential encoding including transform block partition information indicating transform block partition information in a block to be encoded, a quantization parameter that defines a quantization step size when transform coefficients are quantized, and the like.
- the parameter is output to the transform / quantization unit 7, the inverse quantization / inverse transform unit 8, and the variable length coding unit 13.
- the encoding control unit 2 outputs intra prediction parameters to the intra prediction unit 4 as necessary.
- the encoding control unit 2 outputs inter prediction parameters to the motion compensation prediction unit 5 as necessary.
- the slice dividing unit 14 divides the input image into slices that are one or more partial images according to the slice division information determined by the encoding control unit 2. Each time the slice dividing unit 1 inputs each slice from the slice dividing unit 14, the slice dividing unit 1 divides the slice into the maximum coding block size determined by the coding control unit 2, and further encodes the divided maximum coding block.
- the coding block is hierarchically divided into coding blocks determined by the coding control unit 2, and the coding blocks are output.
- FIG. 5 is an explanatory diagram showing an example in which the maximum coding block is hierarchically divided into a plurality of coding blocks.
- the maximum coding block is a coding block whose luminance component described as “0th layer” has a size of (L 0 , M 0 ).
- the encoding block is obtained by performing hierarchical division to a predetermined depth separately defined by a quadtree structure.
- the coding block is an image area of size (L n , M n ).
- the coding block of the n hierarchy expressed in B n denote the encoding modes selectable by the coding block B n with m (B n).
- the encoding mode m (B n ) may be configured to use an individual mode for each color component, or common to all color components. It may be configured to use a mode.
- description will be made assuming that it indicates a coding mode for a luminance component of a coding block of a YUV signal and 4: 2: 0 format.
- the encoded block B n is divided by the block dividing unit 1 into one or a plurality of prediction blocks representing a prediction processing unit.
- a prediction block belonging to the coding block B n is denoted as P i n (i is a prediction block number in the n-th layer).
- FIG. 5 shows an example of P 0 0 and P 1 0 .
- How the prediction block is divided in the coding block Bn is included as information in the coding mode m ( Bn ). All the prediction blocks P i n are subjected to prediction processing according to the encoding mode m (B n ), and it is possible to select individual prediction parameters (intra prediction parameters or inter prediction parameters) for each prediction block P i n. it can.
- the encoding control unit 2 generates a block division state as illustrated in FIG. 6 for the maximum encoding block, and identifies the encoding block.
- a rectangle surrounded by a dotted line in FIG. 6A represents each coding block, and a block painted with diagonal lines in each coding block represents a division state of each prediction block.
- FIG. 6B shows, in a quadtree graph, a situation in which the encoding mode m (B n ) is assigned by hierarchical division in the example of FIG. 6A. Nodes surrounded by squares in FIG. 6B are nodes (encoding blocks) to which the encoding mode m (B n ) is assigned.
- Information of the quadtree graph is output from the encoding control unit 2 to the variable length encoding unit 13 together with the encoding mode m (B n ), and is multiplexed into the bit stream.
- the changeover switch 3 is output from the block dividing unit 1 when the encoding mode m (B n ) determined by the encoding control unit 2 is an intra encoding mode (when m (B n ) ⁇ INTRA).
- the encoded block B n is output to the intra prediction unit 4.
- the encoding mode m (B n ) determined by the encoding control unit 2 is the inter encoding mode (when m (B n ) ⁇ INTER)
- the encoded block output from the block dividing unit 1 B n is output to the motion compensation prediction unit 5.
- the coding mode m (B n ) determined by the coding control unit 2 is the intra coding mode (when m (B n ) ⁇ INTRA), and the coding block B is changed from the changeover switch 3 to the coding block B.
- n step ST3, using the intra prediction parameters determined by the encoding control unit 2 while referring to the local decoded image stored in the intra prediction memory 10, the encoding block B n and implementing intra prediction process for each of the prediction block P i n in, it generates an intra prediction image P INTRAi n (step ST4).
- the process of generating the intra predicted image is the prediction used for the prediction process. It must always be performed in units of transform blocks so that pixels adjacent to the target block are already encoded. Therefore, in a coding block in which the coding mode is the intra coding mode, the block size of the selectable transform block is limited to the size of the prediction block or smaller and the transform block is smaller than the prediction block (in the prediction block). In the case where there are a plurality of transform blocks, the intra prediction process using the intra prediction parameters defined in the prediction block is performed for each transform block to generate an intra predicted image.
- intra prediction parameters used for generating the intra prediction image P INTRAi n is a variable from the encoding control unit 2
- the data is output to the long encoding unit 13 and multiplexed into the bit stream. Details of processing contents of the intra prediction unit 4 will be described later.
- the motion-compensated prediction unit 5 has the coding mode m (B n ) determined by the coding control unit 2 in the inter coding mode (when m (B n ) ⁇ INTER), and the coding block is switched from the changeover switch 3 to the coding block.
- the motion vector Upon receiving the B n (step ST3), the motion vector by comparing the locally decoded image after the filtering process stored in the prediction block P i n and the motion compensated prediction frame memory 12 of the encoding block B n Using the motion vector and the inter prediction parameter determined by the encoding control unit 2, the inter prediction process for each prediction block P i n in the encoding block B n is performed, and the inter prediction image P generating a INTERi n (step ST5).
- the inter prediction parameters used for generating the inter prediction image P INTERi n the variable from the encoding control unit 2
- the data is output to the long encoding unit 13 and multiplexed into the bit stream.
- the motion vector searched by the motion compensation prediction unit 5 is also output to the variable length encoding unit 13 and multiplexed into the bit stream.
- Subtraction unit 6 upon receiving the encoded block B n from the block dividing unit 1 from its prediction block P i n the coded block B n, the intra prediction image P INTRAi n generated by the intra prediction unit 4 or, , by subtracting one of the inter prediction image P INTERi n generated by the motion compensation prediction unit 5, and outputs the prediction difference signal e i n representing a difference image is the subtraction result to the transform and quantization unit 7 (Step ST6).
- the transform / quantization unit 7 When the transform / quantization unit 7 receives the prediction difference signal e i n from the subtraction unit 6, the transform / quantization unit 7 refers to the transform block division information included in the prediction difference coding parameter determined by the coding control unit 2, and performs the prediction.
- orthogonal transform processing with respect to the difference signal e i n e.g., DCT (discrete cosine transform) or DST (discrete sine transform), the orthogonal transform for KL conversion and the base design have been made in advance to the particular learning sequence
- DCT discrete cosine transform
- DST discrete sine transform
- the transform / quantization unit 7 refers to the quantization parameter included in the prediction differential encoding parameter, quantizes the transform coefficient of the transform block unit, and reverses the compressed data that is the quantized transform coefficient.
- the data is output to the quantization / inverse transform unit 8 and the variable length coding unit 13 (step ST7).
- the quantization process may be performed using a quantization matrix that scales the quantization step size calculated from the quantization parameter for each transform coefficient.
- the quantization matrix an independent matrix can be used for each color signal and coding mode (intra coding or inter coding) at each orthogonal transform size.
- an image coding device and an image are used.
- the transform / quantization unit 7 sets flag information indicating whether or not to use a new quantization matrix for each orthogonal transform size for each color signal and coding mode, in a quantization matrix parameter to be encoded. .
- each scaling value of the quantization matrix as shown in FIG. 10 is set as a quantization matrix parameter to be encoded.
- a quantization matrix prepared in advance by the image encoding device and the image decoding device, or a quantization matrix that has already been encoded is used.
- an index for specifying a matrix to be used is set as a quantization matrix parameter to be encoded.
- the transform / quantization unit 7 outputs the set quantization matrix parameter to the variable length coding unit 13.
- the inverse quantization / inverse transform unit 8 When receiving the compressed data from the transform / quantization unit 7, the inverse quantization / inverse transform unit 8 refers to the quantization parameter and transform block division information included in the prediction difference coding parameter determined by the coding control unit 2. Then, the compressed data is inversely quantized for each transform block.
- the transform / quantization unit 7 uses a quantization matrix for the quantization process, the corresponding inverse quantization process is performed with reference to the quantization matrix even during the inverse quantization process.
- the inverse quantization / inverse transform unit 8 performs inverse orthogonal transform processing (for example, inverse DCT, inverse DST, inverse KL transform, etc.) on transform coefficients that are compressed data after inverse quantization for each transform block. calculates a local decoded prediction difference signal corresponding to the prediction difference signal e i n output from the subtraction unit 6 and outputs the result to adding section 9 (step ST8).
- inverse orthogonal transform processing for example, inverse
- the adding unit 9 Upon receiving the local decoded prediction difference signal from the inverse quantization / inverse transform unit 8, the adding unit 9 receives the local decoded prediction difference signal and the intra predicted image P INTRAi n generated by the intra prediction unit 4 or motion compensation.
- a local decoded image is calculated by adding one of the inter predicted images P INTERIn n generated by the prediction unit 5 (step ST9).
- the adding unit 9 outputs the locally decoded image to the loop filter unit 11 and stores the locally decoded image in the intra prediction memory 10. This locally decoded image becomes an encoded image signal used in the subsequent intra prediction processing.
- Step ST10 When the loop filter unit 11 receives the local decoded image from the addition unit 9, the loop filter unit 11 performs a predetermined filter process on the local decoded image, and stores the filtered local decoded image in the motion compensated prediction frame memory 12.
- filter deblocking filter
- Step ST10 filter (deblocking filter) processing that reduces distortion occurring at the boundaries of transform blocks and prediction blocks, processing for adaptively adding an offset (pixel adaptive offset) for each pixel, Wiener filter, etc. Performs adaptive filter processing for adaptively switching linear filters and performing filter processing.
- the loop filter unit 11 determines whether or not to perform processing for each of the above deblocking filter processing, pixel adaptive offset processing, and adaptive filter processing, and sets a valid flag of each processing as a part of the sequence level header and It outputs to the variable length encoding part 13 as a part of slice level header.
- each filter process is performed in order.
- FIG. 11 shows a configuration example of the loop filter unit 11 when a plurality of filter processes are used.
- the more types of filter processing that are used the better the image quality, but the higher the processing load. That is, image quality and processing load are in a trade-off relationship.
- the image quality improvement effect of each filter process varies depending on the characteristics of the image to be filtered. Therefore, the filter processing to be used may be determined according to the processing load allowed by the image encoding device and the characteristics of the encoding target image.
- the parameter is output to the variable length coding unit 13 as header information.
- an image is divided into a plurality of blocks, and when the offset process is not performed for each block, it is defined as one of the class classification methods, and a plurality of class classifications prepared in advance are provided.
- One classification method is selected from the methods.
- each pixel in the block is classified by the selected class classification method, and an offset value for compensating for the coding distortion is calculated for each class.
- the image quality of the locally decoded image is improved by performing a process of adding the offset value to the luminance value of the locally decoded image.
- a classifying method a method of classifying by the magnitude of the luminance value of the locally decoded image (referred to as a BO method), or a classification according to the situation around each pixel (whether it is an edge portion or the like) for each edge direction.
- EO technique a technique of classifying by the magnitude of the luminance value of the locally decoded image
- EO technique a technique of classifying by the magnitude of the luminance value
- the pixel adaptive offset processing outputs block division information, an index indicating a block class classification method, and block unit offset information to the variable length encoding unit 13 as header information.
- the adaptive offset processing may be performed for each class by always dividing the block into fixed-size blocks such as a maximum coding block and selecting a class classification method for each block. In this case, the block division information becomes unnecessary, the code amount is reduced by the amount of code required for the block division information, and the coding efficiency can be improved.
- a filter that compensates for superimposed distortion is designed for each region (local decoded image) belonging to each class. Then, the local decoded image is filtered. Then, the filter designed for each class is output to the variable length encoding unit 13 as header information.
- a class classification method there are a simple method for spatially dividing an image at equal intervals, and a method for classifying an image according to local characteristics (dispersion, etc.) of the image in units of blocks.
- the number of classes used in the adaptive filter process may be set in advance to a common value in the image encoding device and the image decoding device, or may be one of the parameters to be encoded. Compared to the former, the latter can set the number of classes to be used freely, so the image quality improvement effect will be improved, but on the other hand, the amount of code will be increased to encode the number of classes. To do.
- steps ST3 to ST9 are repeated until the processes for all the coding blocks Bn divided hierarchically are completed, and when the processes for all the coding blocks Bn are completed, the process proceeds to the process of step ST13. (Steps ST11 and ST12).
- the variable length encoding unit 13 uses the compressed data output from the transform / quantization unit 7 and the block division information (FIG. 6B) in the maximum encoding block output from the encoding control unit 2 as an example.
- the parameters (when the coding mode is the inter coding mode) and the motion vector output from the motion compensated prediction unit 5 (when the coding mode is the inter coding mode) are variable-length coded, and their codes Encoded data indicating the conversion result is generated (step ST13).
- the transform block is further divided into blocks of 4 ⁇ 4 pixel units (encoding sub-blocks) called Coefficient Group (CG), and CG Coding of coefficients is performed for each unit.
- FIG. 15 shows the coding order (scan order) of the coefficients in a 16 ⁇ 16 pixel transform block. In this way, 16 CGs in units of 4 ⁇ 4 pixels are encoded in order from the lower right CG, and each CG encodes 16 coefficients in the CG in order from the lower right coefficient.
- flag information indicating whether or not a significant (non-zero) coefficient exists in 16 coefficients in the CG is encoded, and then a significant (non-zero) coefficient exists in the CG. Only in this case, whether each coefficient in the CG is a significant (non-zero) coefficient is encoded in the above order, and finally, the coefficient value information is encoded in order for the significant (non-zero) coefficient. This is performed in the above order in units of CG. In this case, the encoding efficiency by entropy encoding can be increased by using a biased scan order so that significant (non-zero) coefficients are generated as continuously as possible.
- the coefficient after orthogonal transformation represents the lower coefficient of the lower frequency component as it is closer to the upper left, starting with the DC component located at the upper left, generally, the closer to the upper left, the more significant as the example is shown in FIG. Since many (non-zero) coefficients are generated, as shown in FIG. 15, encoding can be performed efficiently by encoding sequentially from the lower right.
- a 16 ⁇ 16 pixel conversion block has been described.
- a code in CG (encoding sub-block) unit is used in a block size other than 16 ⁇ 16 pixels, such as an 8 ⁇ 8 pixel conversion block or a 32 ⁇ 32 pixel conversion block. It shall be implemented.
- variable length encoding unit 13 encodes a sequence level header and a picture level header as header information of the encoded bit stream, and generates an encoded bit stream together with the picture data.
- picture data is composed of one or more slice data, and each slice data is a combination of a slice level header and the encoded data in the slice.
- the sequence level header includes the image size, the color signal format, the bit depth of the signal value of the luminance signal and the color difference signal, and each filter process (adaptive filter process, pixel adaptive offset process, deblocking filter process) in the loop filter unit 11 in sequence units. ) Effective flag information, quantization matrix effective flag information, and a flag indicating whether or not to perform field encoding.
- the picture level header is a collection of header information set in units of pictures such as an index of a sequence level header to be referenced, the number of reference pictures at the time of motion compensation, an entropy encoding probability table initialization flag, and the like.
- the slice level header includes position information indicating where the slice is located in the picture, an index indicating which picture level header is referred to, a slice coding type (intra coding, inter coding, etc.), and a loop filter. 8 is a summary of parameters in units of slices such as flag information indicating whether or not to perform each filter process (adaptive filter process, pixel adaptive offset process, deblocking filter process) in the unit 11.
- Intra prediction unit 4 as described above, with reference to the intra prediction parameters of the prediction block P i n, to implement intra prediction processing for the prediction block P i n, but to generate an intra prediction image P INTRAi n , will be described here intra process for generating an intra prediction image predicted block P i n in the luminance signal.
- Figure 7 is an explanatory diagram showing an example of the prediction block P i n-selectable intra prediction modes for intra-coded blocks B n, and the index value of the intra prediction mode, the prediction direction vector indicated by the intra-prediction mode Show.
- the index value of the intra prediction mode indicates the intra prediction parameter.
- the encoded pixels (2 ⁇ l i n +1) and the left encoded pixels (2 ⁇ m i n ) on the predicted image generation block are used as pixels for prediction.
- the number of pixels used for prediction may be more or less than the pixels shown in FIG. Further, in FIG. 8, pixels for one row or one column in the vicinity of the predicted image generation block are used for prediction, but two or two or more pixels may be used for prediction.
- the index value of the intra prediction mode for prediction block P i n that the predicted image generation block belongs is 0 (plane (Planar) prediction) includes a coded pixels adjacent to the top of the predicted image generation block, the predicted image generation Using the encoded pixels adjacent to the left of the block, a predicted image is generated using a value interpolated according to the distance between these pixels and the prediction target pixel in the predicted image generation block as a predicted value.
- the index value of the intra prediction mode for the prediction block P i n to which the prediction image generation block belongs is 1 (average (DC) prediction)
- encoded pixels adjacent to the prediction image generation block and the prediction image A predicted image is generated using the average value of the encoded pixels adjacent to the left of the generated block as the predicted value of the pixels in the predicted image generating block.
- the region A, B, C in FIG. 17 located at the upper end and the left end of the predicted image generation block is subjected to filter processing for smoothing the block boundary to obtain a final predicted image.
- the filter processing is performed using the following filter coefficients in the reference pixel arrangement of the filter of FIG.
- the pixel, S ′ (p 0 ) is the predicted value after the filtering process in the filtering target pixel p 0
- the block size of the predicted image generation block that performs the filtering process may be limited.
- the prediction value when the prediction value is changed by filtering only at the block edge, since the ratio of the area where the prediction value changes due to the filter processing is small in a block having a large block size, the prediction residual caused by the change in the prediction value is generated.
- the change of the difference signal is expressed by a very high frequency component, and the encoding efficiency tends to be deteriorated because the high frequency component is encoded. Also, by giving priority to encoding efficiency and not encoding this high frequency component, the change in the prediction residual signal at the block end cannot be restored, and the block boundary tends to be distorted. .
- the ratio of the area where the prediction value changes due to the filter processing is large. Therefore, the residual signal can be appropriately encoded, and the quality of the decoded image can be improved by increasing the continuity of the block boundary by this filter processing. Therefore, for example, in a predicted image generation block having a block size of 32 ⁇ 32 pixels or more, the above-described filter processing is not applied, and the above-described filter processing is applied only to blocks smaller than 32 ⁇ 32 pixels, thereby obtaining a conventional average value. It is possible to suppress an increase in the calculation amount while improving the prediction performance rather than the prediction.
- the prediction calculates the prediction value of the pixel of the predicted image generation block according to the following formula (2) Generate an image.
- the coordinates (x, y) are relative coordinates (see FIG. 9) with the upper left pixel in the predicted image generation block as the origin, and S ′ (x, y) is the predicted value at the coordinates (x, y), S (x, y) is the luminance value (decoded luminance value) of the encoded pixel at the coordinates (x, y).
- the calculated predicted value exceeds the range of values that the luminance value can take, the value is rounded so that the predicted value falls within the range.
- the expression in the first line of Expression (2) is MPEG-4 AVC / H.
- the amount of change S ( ⁇ 1, y) ⁇ S ( ⁇ 1, ⁇ 1) in the vertical direction of adjacent encoded pixels with respect to S (x, ⁇ 1), which is the predicted value of vertical direction prediction in H.264 ) Is added to the value obtained by halving, and the result of filtering so that the block boundary is smoothed is used as the predicted value.
- the expression in the second row of Expression (2) is , MPEG-4 AVC / H. The same prediction formula as the vertical direction prediction in H.264 is shown.
- the prediction calculates the prediction value of the pixel of the predicted image generation block according to the following formula (3) Generate an image.
- the coordinates (x, y) are relative coordinates (see FIG. 9) with the upper left pixel in the predicted image generation block as the origin, and S ′ (x, y) is the predicted value at the coordinates (x, y), S (x, y) is the luminance value (decoded luminance value) of the encoded pixel at the coordinates (x, y).
- the calculated predicted value exceeds the range of values that the luminance value can take, the value is rounded so that the predicted value falls within the range.
- the expression in the first line of Expression (3) is MPEG-4 AVC / H.
- the amount of change S (x, ⁇ 1) ⁇ S ( ⁇ 1, ⁇ 1) in the horizontal direction of the adjacent encoded pixel with respect to S ( ⁇ 1, y) which is the predicted value of the horizontal direction prediction in H.264 ) Is added to the value obtained by halving, and the result of filtering so that the block boundary is smoothed is used as the predicted value.
- the expression in the second row of Expression (3) is , MPEG-4 AVC / H. The same prediction formula as the horizontal prediction in H.264 is shown.
- the block size of the predicted image generation block that performs the vertical direction prediction of Expression (2) and the horizontal direction prediction of Expression (3) may be limited.
- the block edge filter of the prediction image generation block described above is used in a block having a large block size. Since the ratio of the area where the predicted value changes due to processing is small, the change in the prediction residual signal caused by the change in the predicted value is represented by a very high frequency component. Therefore, the encoding efficiency tends to deteriorate. Also, by giving priority to encoding efficiency and not encoding this high frequency component, the change in the prediction residual signal at the block end cannot be restored, and the block boundary tends to be distorted.
- the change in the prediction residual signal caused by the change in the prediction value is large when the block size is large.
- the residual signal can be appropriately encoded without being represented by such high frequency components, and the quality of the decoded image can be improved by the increase in the continuity of the block boundary by this filter processing. Therefore, for example, in a prediction image generation block having a block size of 32 ⁇ 32 pixels or more, the expressions in the second row of Expression (2) and Expression (3) are always used regardless of the coordinates of the prediction target pixel (prediction).
- the prediction direction vector ⁇ p ( Based on (dx, dy), a predicted value of a pixel in the predicted image generation block is generated. As shown in FIG. 9, when the upper left pixel of the predicted image generation block is the origin and the relative coordinates in the predicted image generation block are set to (x, y), the position of the reference pixel used for prediction is adjacent to the following L This is the intersection of pixels. However, k is a negative real number.
- the integer pixel When the reference pixel is at the integer pixel position, the integer pixel is set as the prediction value of the prediction target pixel. When the reference pixel is not at the integer pixel position, an interpolation pixel generated from the integer pixel adjacent to the reference pixel is selected. Estimated value. In the example of FIG. 8, since the reference pixel is not located at the integer pixel position, a value interpolated from two pixels adjacent to the reference pixel is set as the predicted value. Note that an interpolation pixel may be generated not only from two adjacent pixels but also from two or more adjacent pixels, and used as a predicted value.
- the processing described above to generate a predicted pixel for all the pixels of the luminance signals of the prediction block P i n in the predicted image generation block, and outputs an intra prediction image P INTRAi n.
- the intra prediction parameters used for generating the intra prediction image P INTRAi n is output to the variable length coding unit 13 for multiplexing the bitstream.
- the intra prediction unit 4 predicts the reference pixels when generating the predicted image of the predicted image generation block. Even when the encoded pixels adjacent to the image generation block are configured to be the smoothed pixels, it is possible to perform the same filtering process on the predicted image as in the above example. By doing in this way, the noise of the reference pixel by the filter process to a reference pixel is removed, and prediction accuracy can be improved by performing prediction using this.
- the filtering process on the reference pixel may be performed only in the prediction other than the average value prediction, the vertical direction prediction, and the horizontal direction prediction for performing the filtering process on the predicted image. By doing in this way, it is only necessary to perform at most one filter process for each prediction mode, and an increase in the amount of calculation can be suppressed.
- the predicted image generation process of the luminance signal has been described, but the predicted image for the color difference component is generated as follows.
- the color difference signal of the prediction block P i n conduct intra prediction processing based on the intra prediction parameter of the color difference signal (intra prediction mode), the variable length coding unit intra prediction parameter used to generate the intra-prediction image 13 is output.
- FIG. 22 is an explanatory diagram showing an example of correspondence between intra prediction parameters (index values) of color difference signals and color difference intra prediction modes.
- the intra prediction parameter of the chrominance signal indicates that the same prediction mode as the intra prediction mode for the luminance signal is used (when the intra prediction parameter indicates the luminance / chrominance common intra prediction mode (DM mode))
- the luminance signal The same intra-frame prediction is performed to generate a prediction image of the color difference signal.
- the intra prediction parameter of the color difference signal indicates the vertical direction prediction mode or the horizontal direction prediction mode
- the directionality prediction for the color difference signal is performed to generate a prediction image of the color difference signal.
- the intra prediction parameter of the color difference signal indicates the luminance correlation use color difference signal prediction mode (LM mode)
- LM mode luminance correlation use color difference signal prediction mode
- a correlation parameter indicating the correlation between the luminance signal and the color difference signal is calculated using the signal, and a predicted image of the color difference signal is generated using the correlation parameter and the luminance signal corresponding to the block of the color difference signal to be predicted.
- the DM mode or the LM mode processing may be performed and the other prediction modes may not be selected.
- the edge position of the luminance signal and the color difference signal has a high correlation. Therefore, by prohibiting the prediction mode different from the luminance signal from being applied to the color difference signal, the intra prediction mode of the color difference signal is prohibited. Thus, it is possible to improve the coding efficiency.
- a directionality prediction mode different from the luminance signal may be selected for the color difference signal.
- the color difference signal has half the number of pixels in the horizontal direction compared to the luminance signal. Becomes a rectangular block. Therefore, as shown in FIG. 25, when a YUV4: 4: 4 signal is converted into a YUV4: 2: 2 signal, in order to predict the luminance signal and the color difference signal in the same direction, YUV4: 2 : On two signals, in the case of directional prediction other than the vertical prediction and the horizontal prediction, the prediction direction of the color difference signal is different from the prediction direction of the luminance signal. Specifically, as shown in FIG.
- FIG. 28 shows an example of conversion of the intra prediction mode index in the intra prediction mode of FIG. In the conversion table of FIG. 28, when the angle of the prediction direction is ⁇ (see FIG. 27), when the direction prediction in the intra prediction mode is an angle that becomes tan ⁇ shown in FIG.
- the conversion process may be realized by preparing an index conversion table and converting the index by referring to the conversion table, or by preparing a conversion formula and according to the conversion formula. You may comprise so that an index may be converted. With this configuration, it is possible to perform appropriate prediction of the color difference signal according to the format of the YUV 4: 2: 2 signal only by converting the index without changing the directionality prediction process itself.
- the LM mode may not be performed on the color difference signal.
- FIG. 23 shows a correspondence example between the intra prediction parameter (index value) of the color difference signal and the color difference intra prediction mode at this time.
- the MPEG-4 AVC / H It is good also as the prediction method similar to H.264. By not performing the filtering process in this way, it is possible to reduce the prediction process.
- variable length decoding unit 31 When the encoded bit stream generated by the image encoding device in FIG. 1 is input, the variable length decoding unit 31 performs a variable length decoding process on the bit stream (step ST21 in FIG. 4), and more than one frame.
- the header information (sequence level header) in units of sequences composed of pictures, the header information (picture level header) in units of pictures, the filter parameters and quantization matrix parameters used in the loop filter unit 38 are decoded.
- variable length decoding unit 31 performs variable length decoding of the quantization matrix parameter to identify the quantization matrix. Specifically, for each color signal or encoding mode of each orthogonal transform size, a quantization matrix that is prepared in advance by the image encoding device and the image decoding device as the initial value of the quantization matrix parameter, or When indicating that the quantization matrix is already decoded (not a new quantization matrix), refer to the index information for specifying which quantization matrix among the matrices included in the quantization matrix parameter.
- slice unit header information such as slice division information is decoded from slice data constituting picture unit data, and encoded data of each slice is decoded.
- variable length decoding unit 31 determines the maximum encoding block size and the upper limit of the number of divided layers determined by the encoding control unit 2 of the image encoding device in FIG. 1 in the same procedure as the image encoding device ( Step ST22). For example, when the maximum encoding block size and the upper limit of the number of division layers are determined according to the resolution of the video signal, the maximum encoding block is processed in the same procedure as the image encoding device based on the decoded frame size information. Determine the size. When the maximum encoding block size and the upper limit of the number of divided layers are multiplexed on a sequence level header or the like on the image encoding device side, values decoded from the header are used.
- the upper limit of the number of division layers is determined by decoding this. That is, the upper limit of the number of division layers is obtained when the maximum encoded block is divided to the minimum block size.
- the variable length decoding unit 31 decodes the division state of the maximum encoded block as shown in FIG. 6 for each determined maximum encoded block. Based on the decoded division state, coding blocks are identified hierarchically (step ST23).
- variable length decoding unit 31 decodes the encoding mode assigned to the encoding block. Based on the information included in the decoded coding mode, the coded block is further divided into one or more prediction blocks which are prediction processing units, and the prediction parameters assigned to the prediction block units are decoded (step ST24). .
- the variable length decoding unit 31 is included in the encoding block, and each of one or more prediction blocks serving as a prediction processing unit Intra prediction parameters are decoded.
- the coding mode assigned to the coding block is the inter coding mode
- the inter prediction parameter and the motion vector are included in the coding block and each of one or more prediction blocks serving as a prediction processing unit. Is decoded (step ST24).
- variable length decoding unit 31 decodes the compressed data (transformed / transformed transform coefficients) for each transform block based on the transform block division information included in the prediction difference coding parameter (step ST24). At that time, similarly to the encoding process of the compressed data in the variable length encoding unit 13 of the image encoding device of FIG. Therefore, as shown in FIG. 15, 16 CGs in units of 4 ⁇ 4 pixels are decoded in order from the lower right CG, and each CG decodes 16 coefficients in the CG in order from the lower right coefficient. Will do.
- flag information indicating whether or not a significant (non-zero) coefficient exists in 16 coefficients in the CG is decoded, and then the decoded flag information is significant (non-zero) in the CG. Only when it indicates that a coefficient exists, whether each coefficient in the CG is a significant (non-zero) coefficient is decoded in the above order, and finally, coefficient value information for the coefficient indicating the significant (non-zero) coefficient Are sequentially decoded. This is performed in the above order in units of CG.
- variable-length decoded by the variable-length decoding unit 31 is an intra-encoding mode (when m (B n ) ⁇ INTRA)
- the changeover switch 33 is changed by the variable-length decoding unit 31.
- the intra-prediction parameter for each prediction block subjected to variable length decoding is output to the intra-prediction unit 34.
- variable length decoded coding mode m (B n) is if the inter coding mode by the variable length decoding unit 31, variable length decoding by the variable length decoding unit 31
- the predicted inter prediction parameters and motion vectors in units of prediction blocks are output to the motion compensation unit 35.
- the intra prediction unit 34 selects the changeover switch 33. 1 is received, and the intra prediction parameter is obtained by referring to the decoded image stored in the intra prediction memory 37 in the same procedure as the intra prediction unit 4 in FIG. intra prediction processing for each of the prediction block P i n in the reference encoded block B n to implement, generates an intra prediction image P INTRAi n (step ST26).
- the intra prediction unit 34 performs an intra prediction process (intraframe prediction process) using the intra prediction parameter for the luminance signal to generate a prediction image of the luminance signal.
- an intra prediction process based on the intra prediction parameter of the color difference signal is performed to generate a predicted image of the color difference signal.
- FIG. 22 is an explanatory diagram showing an example of correspondence between intra prediction parameters (index values) of color difference signals and color difference intra prediction modes.
- the intra prediction parameter of the chrominance signal indicates that the same prediction mode as the intra prediction mode for the luminance signal is used (when the intra prediction parameter indicates the luminance / chrominance common intra prediction mode (DM mode))
- the luminance signal The same intra-frame prediction is performed to generate a prediction image of the color difference signal.
- the intra prediction parameter of the color difference signal indicates the vertical direction prediction mode or the horizontal direction prediction mode
- the directionality prediction for the color difference signal is performed to generate a prediction image of the color difference signal.
- the intra prediction parameter of the color difference signal indicates the luminance correlation use color difference signal prediction mode (LM mode)
- LM mode luminance correlation use color difference signal prediction mode
- a correlation parameter indicating the correlation between the luminance signal and the color difference signal is calculated using the signal, and a predicted image of the color difference signal is generated using the correlation parameter and the luminance signal corresponding to the block of the color difference signal to be predicted.
- the image coding apparatus is configured to perform the DM mode or LM mode processing and not select other prediction modes.
- the image decoding apparatus has the same configuration so that the encoded bitstream generated from the image encoding apparatus can be decoded.
- the edge position of the luminance signal and the color difference signal has a high correlation. Therefore, by prohibiting the prediction mode different from the luminance signal from being applied to the color difference signal, the intra prediction mode of the color difference signal is prohibited. Thus, it is possible to improve the coding efficiency.
- the color difference signal has half the number of pixels in the horizontal direction compared to the luminance signal. Becomes a rectangular block. Therefore, as shown in FIG. 25, when a YUV4: 4: 4 signal is converted into a YUV4: 2: 2 signal, in order to predict the luminance signal and the color difference signal in the same direction, YUV4: 2 : On two signals, in the case of directional prediction other than the vertical prediction and the horizontal prediction, the prediction direction of the color difference signal is different from the prediction direction of the luminance signal. Specifically, as shown in FIG.
- FIG. 28 shows an example of conversion of the intra prediction mode index in the intra prediction mode of FIG. In the conversion table of FIG. 28, when the angle of the prediction direction is ⁇ (see FIG. 27), when the direction prediction in the intra prediction mode is an angle that becomes tan ⁇ shown in FIG.
- the conversion process may be realized by preparing an index conversion table and converting the index by referring to the conversion table, or by preparing a conversion formula and according to the conversion formula. You may comprise so that an index may be converted. With this configuration, it is possible to perform appropriate prediction of the color difference signal according to the format of the YUV 4: 2: 2 signal only by converting the index without changing the directionality prediction process itself.
- the image decoding device is also configured so that the encoded bitstream generated from the image encoding device can be decoded.
- the configuration is as follows.
- FIG. 23 shows a correspondence example between the intra prediction parameter (index value) of the color difference signal and the color difference intra prediction mode at this time.
- the MPEG-4 AVC / H When an image encoding apparatus is configured as a prediction method similar to H.264, the image decoding apparatus has the same configuration so that an encoded bit stream generated from the image encoding apparatus can be decoded. By not performing the filtering process in this way, it is possible to reduce the prediction process.
- the motion compensation unit 35 performs the changeover switch 33.
- the motion vector and the inter prediction parameter for each prediction block output from the above are received, and the motion vector and the inter prediction parameter are used while referring to the decoded image after filtering stored in the motion compensated prediction frame memory 39.
- by carrying out inter-prediction process generates an inter prediction image P INTERi n for each of the prediction block P i n the coded block B n (step ST27).
- the inverse quantization / inverse conversion unit 32 When receiving the compressed data and the prediction difference encoding parameter from the variable length decoding unit 31, the inverse quantization / inverse conversion unit 32 performs the prediction difference encoding in the same procedure as the inverse quantization / inverse conversion unit 8 of FIG. With reference to the quantization parameter and transform block division information included in the parameter, the compressed data is inversely quantized in transform block units. At this time, when referring to each header information variable-length decoded by the variable-length decoding unit 31, each header information indicates that the inverse quantization process is performed using the quantization matrix in the slice. Inverse quantization processing is performed using a quantization matrix.
- variable-length decoding unit 31 a quantization matrix used for each color signal and coding mode (intra coding or inter coding) with each orthogonal transform size Is identified. Further, the inverse quantization / inverse transform unit 32 performs an inverse orthogonal transform process on transform coefficients that are compressed data after inverse quantization for each transform block, and outputs from the inverse quantization / inverse transform unit 8 in FIG. The same decoded prediction difference signal as the local decoding prediction difference signal thus obtained is calculated (step ST28).
- Addition unit 36 decodes the prediction difference signal calculated by the inverse quantization and inverse transform unit 32, an intra prediction image P INTRAi n generated by the intra prediction unit 34 or, inter prediction generated by the motion compensation unit 35 by adding one of the image P INTERi n calculates a decoded image, and outputs the decoded image to the loop filter unit 38, and stores the decoded image to the intra prediction memory 37 (step ST29).
- This decoded image becomes a decoded image signal used in the subsequent intra prediction processing.
- the loop filter unit 38 performs a predetermined filtering process on the decoded image output from the adding unit 36,
- the decoded image after the filter process is stored in the motion compensated prediction frame memory 39 (step ST31).
- filter deblocking filter
- processing for adaptively adding an offset (pixel adaptive offset) for each pixel, Wiener filter, etc. Performs adaptive filter processing for adaptively switching linear filters and performing filter processing.
- the loop filter unit 38 processes each of the above-described deblocking filter processing, pixel adaptive offset processing, and adaptive filter processing with reference to each header information variable-length decoded by the variable-length decoding unit 31 and processing in the corresponding slice. Specify whether or not to perform. At this time, when two or more filter processes are performed, for example, when the loop filter unit 11 of the image encoding device is configured as shown in FIG. 11, the loop filter unit 38 as shown in FIG. Composed.
- the deblocking filter processing when there is information for referring to the header information that has been variable-length decoded by the variable-length decoding unit 31 and changing various parameters used for selecting the filter strength applied to the block boundary from the initial value. Performs a deblocking filter process based on the change information. When there is no change information, it is performed according to a predetermined method.
- the block is divided based on the block division information of the pixel adaptive offset processing variable-length decoded by the variable-length decoding unit 31, and the block unit of variable-length decoded by the variable-length decoding unit 31 is divided into the blocks.
- an index indicating a class classification method is referred to and the index is not an index indicating that “offset processing is not performed”
- each pixel in the block is classified into blocks in accordance with the class classification method indicated by the index.
- the same class classification method candidate as the pixel classification method candidate of the pixel adaptive offset process of the loop filter unit 11 is prepared in advance as a class classification method candidate.
- the loop filter unit 38 refers to the offset information that has been variable-length decoded by the variable-length decoding unit 31 that identifies the offset value of each class in block units, and performs processing to add the offset to the luminance value of the decoded image .
- the filter process is performed based on the class classification information. I do.
- the decoded image after the filter processing by the loop filter unit 38 becomes a reference image for motion compensation prediction and also becomes a reproduced image.
- an inter picture that refers only to a long-term reference picture is set as a random access point, and information for identifying the picture number of the long-term reference picture is encoded as supplementary information.
- the long-term reference picture determined from the supplementary information is decoded first, and then a picture indicating a random access point that refers only to the long-term reference picture is decoded, thereby enabling random access even in the inter picture. Since the encoded bitstream is generated, the intra-picture (IRAP picture) capable of random access is changed to the inter picture with supplementary information to improve the encoding efficiency while maintaining the random access interval. There is an effect.
- the long-term reference picture found from the supplementary information is decoded first, and then the picture indicating the random access point that refers only to the long-term reference picture is also decoded in the inter picture.
- Embodiment 2 FIG.
- SEI is used as supplementary information indicating a randomly accessible inter picture including picture position information indicating a picture number of a reference picture used in random access that is referenced by a randomly accessible inter picture.
- the meaning of the Recovery Point SEI Message defined in Non-Patent Document 1 and Non-Patent Document 2 is defined as follows without defining a new SEI. Change to interpret.
- a picture to which Recovery Point SEI Message is assigned is an inter picture that can be randomly accessed, and the Recovery point SEI Message syntax recovery_poc_cnt (in Non-Patent Document 2, recovery_frame_cnt) is the recovery point that is the recovery start position. Instead of the position of the picture, it is interpreted as information indicating the position of the reference picture used at random access. With such a configuration, it is possible to perform the same processing as that of the image coding apparatus of the first embodiment without defining a new SEI, and the same effect can be obtained. However, the number of reference pictures used during random access that can be referred to by randomly accessible interpictures is limited to one.
- the image decoding apparatus interprets a picture to which Recovery Point SEI Message is assigned as an inter-picture that can be accessed at random, and further uses the syntax recovery_poc_cnt of recovery Point SEI Message (recovery_frame_ in Non-Patent Document 2). This is interpreted as information indicating the position of the reference picture used during random access, not the position of the picture serving as the recovery point.
- Embodiment 3 the reference picture used in random access that is referred to by a randomly accessible inter picture is limited to the immediately preceding IRAP picture, and the decoded image of the immediately preceding IRAP picture is stored in the motion compensated prediction frame memory 12.
- the motion compensated prediction unit 5 refers to the decoded image of the immediately preceding IRAP picture stored in the motion compensated prediction frame memory 12, performs motion compensated prediction of the inter picture, and the variable length coding unit 13 SEI indicating that the inter picture is a randomly accessible picture is encoded, and the encoded data of the SEI is multiplexed into the encoded bit stream.
- the encoding order precedes the encoding order (decoding order) of the randomly accessible inter picture among the one or more IRAP pictures. It means an IRAP picture with the closest (decoding order) (closest encoding order).
- the picture position information included in the SEI indicating the randomly accessible inter picture described in the first embodiment that is, the picture position information indicating the picture number of the reference picture used during random access can be omitted.
- the same processing as that of the image coding apparatus of the first embodiment can be performed without the information for identifying the picture number of the reference picture used at the time of random access, that is, without accompanying information constituting this SEI, The effect of reducing the amount of code required for the present SEI can be obtained.
- the image decoding apparatus refers to this SEI to refer to the immediately preceding IRAP picture. Is identified as a reference picture used at the time of random access referred to above. Therefore, with such a configuration, when decoding is started from a picture to which the present SEI is assigned, the immediately preceding IRAP picture is decoded and the decoded image of the IRAP picture is stored in the motion compensated prediction frame memory 39.
- the motion compensation unit 35 refers to the decoded image of the immediately preceding IRAP picture stored in the motion compensated prediction frame memory 39 and performs motion compensated prediction of the randomly accessible inter picture indicated by the SEI. Then, the inter picture is decoded. After that, by decoding a picture that is later in display order than the randomly accessible inter picture indicated by this SEI, it is possible to normally reproduce from the randomly accessible picture indicated by this SEI. Therefore, it is possible to correctly decode from the middle of the bitstream generated by the image coding apparatus according to the present embodiment.
- Embodiment 4 In the image coding apparatus of the first embodiment, the case has been described where information indicating that it is a randomly accessible inter picture is set in the SEI. However, the present invention is not limited to this as long as it can be set in the upper header.
- a special NAL unit type indicating a randomly accessible inter picture may be defined, and the NAL may be configured to have the same information as the SEI. That is, in this case, instead of identifying a randomly accessible inter picture by giving SEI, a NAL unit type indicating a randomly accessible inter picture is newly defined, and a NAL indicating this NAL unit type is defined.
- An inter picture that can be randomly accessed is encoded as a unit.
- the decoding device In order to correctly decode an encoded stream generated by an image encoding device that defines a special NAL unit type indicating a randomly accessible inter picture, the decoding device also has a special feature similar to the image encoding device. Define the NAL unit type and decode accordingly. In this case, decoding is performed from a picture having a special NAL unit type, so that halfway decoding from a randomly accessible inter picture is realized. That is, first, the reference picture used at the time of random access indicated by the information possessed by the special NAL unit type is decoded, then the randomly accessible inter picture having this NAL unit type is decoded, and then displayed from the randomly accessible inter picture. By decoding subsequent pictures in order, it is possible to normally reproduce from a randomly accessible inter picture having this NAL unit type.
- the present embodiment is characterized in that information indicating that it is a randomly accessible inter picture is set in an upper header, and the upper header may be configured in any manner as long as random access is possible. Is clear. Therefore, for example, as a combination with the third embodiment, the random access reference picture used for random access is limited to the immediately preceding IRAP picture, and information for identifying the picture number of the random access reference picture is used. It can be omitted.
- Embodiment 5 the image coding apparatus that generates an encoded stream that realizes random access using inter pictures and the image decoding apparatus that can correctly decode the generated encoded stream have been described.
- random encoding by an inter picture is performed only by partially converting an encoded stream that realizes random access using only an intra picture (an IRAP picture of Non-Patent Document 1 or an IDR picture of Non-Patent Document 2).
- An encoded stream conversion apparatus that generates an encoded stream that realizes access and an image decoding apparatus that can correctly decode the generated encoded stream will be described.
- FIG. 39 is a block diagram showing an encoded stream converting apparatus according to Embodiment 5 of the present invention.
- the re-encoding control unit 42 and the input video signal control unit 44 constitute a re-encoding setting unit
- the decoding unit 43 constitutes an image decoding unit
- the bit stream synthesis unit 45 constitutes a bit stream synthesis unit.
- the encoded stream conversion apparatus according to the present embodiment randomly accesses one or more arbitrary pictures from the IRAP pictures (IDR pictures in the case of Non-Patent Document 2) of the encoded stream (bit stream) to be converted.
- a re-encoding unit 41 for re-encoding as a possible inter picture is included. By re-encoding an intra picture to an inter picture in this way, it is possible to generate an encoded stream with a code amount reduced from that of the original encoded stream.
- a picture to be converted (target to be re-encoded) is once decoded.
- the decoded video signal is re-encoded as an inter picture using an encoding device similar to that shown in FIG.
- the re-encoding control unit 42 is an intra picture (Randomly accessible from an encoded stream generated by a conventional image encoding device such as Non-Patent Document 3 or Non-Patent Document 2.
- the information specifying the IRAP picture in Non-Patent Document 1 and the IDR picture in Non-Patent Document 2 is decoded using the decoding unit 43.
- the re-encoding control unit 42 selects an arbitrary picture as a re-encoding target picture from among a plurality of randomly accessible intra-pictures identified from the information identifying the decoded randomly accessible intra-picture.
- the decoding unit 43 decodes at least one picture (a re-encoded reference picture) that is encoded before a re-encoding picture among a plurality of randomly accessible intra pictures. Then, control is performed so as to store the motion compensation prediction frame memory 12 of the re-encoding unit 41.
- the re-encoding unit 41 refers to the decoded at least one re-encoded reference picture and performs motion compensation prediction on the re-encoding target picture in the motion compensation prediction unit 5. By performing this, an inter predicted image is generated, and encoded data of the inter picture is generated using the inter predicted image.
- the decoding unit 43 indicates a decoding device corresponding to the conventional encoding device that generated the encoded stream (the decoding unit 43 can correctly decode the encoded stream).
- the re-encoding unit 41 has the same configuration as that of the image encoding device (FIG. 1) according to the first embodiment.
- the encoded stream conversion apparatus includes a portion of the stream corresponding to the encoded data of the intra-picture to be re-encoded in the encoded stream, which includes the encoded data of the inter picture generated by the re-encoding unit 41.
- a bit stream synthesis unit 45 that generates a re-encoded stream (re-encoded stream) by replacing with a bit stream is provided.
- the motion-compensated prediction frame memory 12 of the re-encoding unit 41 stores a picture referenced by a picture to be converted as a long-term reference picture. This long-term reference picture is limited to an IRAP picture (an IDR picture when the encoded stream is generated by the encoding apparatus of Non-Patent Document 2).
- the original encoded stream is encoded after the specific picture in the encoding order and before the picture to be converted.
- the bit stream synthesizing unit 45 needs to change the encoded stream so that the part corresponding to the encoded data of the picture is stored as the long-term reference picture.
- the inter prediction image output from the motion compensation prediction unit 5 is converted into compressed data via the subtraction unit 6 and the conversion / quantization unit 7 and output to the variable length encoding unit 13 in the same manner as a normal inter picture. Is done.
- the re-encoding unit 41 that re-encodes the intra picture to be converted as the inter picture includes the buffer that temporarily stores the specific intra picture, the motion compensation prediction unit 5, the subtraction unit 6, and the conversion A quantization unit 7 is included. Note that the inter prediction image and the compressed data must be generated so that the decoded image generated at this time is the same as the decoded image generated by the intra picture before re-encoding.
- the re-encoding control unit 42 decodes the intra-picture to be converted decoded by the decoding unit 43. Control is performed so that the image is input to the slice division unit 14 as a video signal. Then, referring to the decoded image generated by the intra picture to be converted, for example, lossless encoding so that the decoded image generated by the intra picture to be converted and the decoded image after re-encoding are the same.
- the re-encoding control unit 42 controls the encoding control unit 2 so as to control the processing of the motion compensation prediction unit 5, the subtraction unit 6, and the transform / quantization unit 7.
- the buffer status when encoding a picture to be encoded next to an IRAP picture or IDR picture before re-encoding is determined by this re-encoding process. It is necessary not to change. Therefore, the buffer (motion-compensated prediction frame memory 12) is controlled by the buffer management unit included in the encoding control unit 2 so as not to affect the decoding process of pictures to be decoded after the re-encoded picture.
- supplemental information indicating that the picture is a randomly accessible inter picture is multiplexed.
- SEI information includes information for identifying a picture number of a reference picture used at random access referenced by a re-encoded picture.
- the process of encoding the SEI information and multiplexing it into the bitstream is performed by the variable length encoding unit 13 as in the first embodiment.
- the encoded stream conversion device may be configured such that the bit stream synthesis unit 45 generates and encodes the supplementary information and multiplexes the supplemental information with the re-encoded stream.
- Non-Patent Document 4 Non-Patent Document 2, etc. Re-encoding can be realized by the same encoding process as that of the conventional image encoding apparatus.
- the reference picture used at the time of random access may be limited to the immediately preceding IRAP picture (in the case of non-patent document 2, an IDR picture).
- information for identifying the picture number of the reference picture used at random access can be omitted as SEI.
- SEI information information indicating that the inter-picture can be randomly accessed may be encoded in the same manner as in the second and fourth embodiments.
- the image decoding apparatus for decoding the re-encoded encoded stream depends on how the information indicating that it is a randomly accessible inter-picture is encoded.
- the bitstream can be correctly decoded by the corresponding image decoding device in the first to fourth embodiments.
- a method of re-encoding only a randomly accessible intra picture such as an IRAP picture (IDR picture) has been described.
- one of the following randomly accessible intra pictures is selected from a randomly accessible intra picture.
- All the pictures up to the previous picture to be decoded (generally called Group Of Pictures (GOP), which indicates a group of pictures that can be independently decoded) may be re-encoded together.
- the randomly accessible intra picture to be re-encoded is an inter picture that can be randomly accessed in the same manner as described above, and information indicating this (any one of the information described in the first to fourth embodiments) )
- the remaining pictures to be re-encoded may be re-encoded.
- the image decoding of the present embodiment It can be correctly decoded by the device. Therefore, when the re-encoding control unit 42 re-encodes each re-encoding target picture with respect to the input video signal control unit 44, the original image (video signal) of the re-encoding target picture is slice-divided. Control to input to the unit 14. By doing in this way, it is not necessary to control each re-encoded picture so that the decoded images before and after re-encoding are the same, and the re-encoding process can be simplified.
- a reference picture used at random access (a picture to be referred to when re-encoding a randomly accessible intra picture to be re-encoded) is used as an immediately preceding IRAP picture (in the case of Non-Patent Document 2).
- IDR picture not from a picture that is a randomly accessible inter picture, but from a picture that is a random accessible inter picture from the immediately preceding IRAP picture (closest in decoding order) It is also possible to re-encode up to a picture that is decoded before the intra-picture that can be randomly accessed.
- a plurality of re-encoded pictures may include a plurality of randomly accessible inter pictures that refer to the immediately preceding IRAP.
- the encoded stream conversion device is configured to store the reference picture used at the time and to refer to the reference picture used at the time of random access stored in the special buffer when encoding the randomly accessible inter picture. You may do it.
- the image decoding apparatus is also configured to decode the interaccess that can be randomly accessed with reference to the special buffer. For encoded stream conversion processing and decoding processing other than the above-described operation, the same processing as that of the present embodiment described so far is performed. In the case of this configuration, there is an advantage that it is not necessary to change the encoded data of a picture after encoding the reference picture used at random access and before encoding an inter picture that can be accessed randomly.
- re-encoding may be performed by reusing the encoding parameters before re-encoding at the time of re-encoding. Specifically, for a picture whose picture type (slice type) does not change before and after re-encoding, a part of encoding parameters before re-encoding is used. For example, re-encoding is performed using the block division information before re-encoding, the encoding mode of each block, and encoding parameters such as prediction parameters as they are. In this way, the encoding parameter selection process becomes unnecessary, and the processing load of the re-encoding process can be reduced.
- the encoded stream conversion apparatus in the fifth embodiment it is possible to partially re-encode an intra picture of an encoded stream having only an intra picture as a random access point into an inter picture that can be randomly accessed. Therefore, it is possible to generate an encoded stream with a code amount reduced from that of the original encoded stream.
- an encoded bit stream obtained by partially re-encoding an intra picture of an encoded stream having only an intra picture as a random access point into an inter picture that can be randomly accessed is correctly generated. The effect which can be decoded is produced.
- an inter picture that is randomly inaccessible (“inter picture” shown in white in FIG. 33B) whose display order is later than the inter picture that can be randomly accessed (the display time is in the future) is random. Random access using an inter picture that can be accessed at random is realized by not referring to a picture whose display order is earlier than the accessible inter picture (the display time is past).
- an inter-picture that is inaccessible to random access that is later in the decoding order than an inter-picture that can be accessed randomly is referred to a picture in which the decoding order precedes an inter-picture that can be accessed randomly.
- random access by inter-access that can be randomly accessed is realized. In this case, this corresponds to replacing the IDR pictures in Non-Patent Document 1 and Non-Patent Document 2 with randomly accessible inter pictures.
- the image decoding apparatus that decodes the encoded stream generated by the image encoding apparatus according to the present embodiment can be randomly accessed in the same manner as in the first embodiment, and is provided with an SEI that identifies a randomly accessible inter picture.
- the picture pointed to by the information identifying the picture number of the reference picture used at random access included in the SEI for identifying the randomly accessible inter picture is first decoded, and then the SEI is given. It is possible to normally reproduce from a randomly accessible inter-picture by decoding a picture that has been SEI, and then decoding a picture subsequent to the picture to which the SEI has been assigned in display order.
- the present embodiment only changes the reference picture restriction of the first embodiment, and is combined with the other embodiments in the same manner as the image encoding device and the image decoding device of the first embodiment. Obviously you can.
- Embodiment 7 FIG.
- SEI is used as information for identifying a randomly accessible inter picture including information for identifying a picture number of a reference picture used at random access that is referenced by a randomly accessible inter picture.
- the image coding apparatus according to the present embodiment uses Recovery Point SEI Message defined in Non-Patent Document 1 and Non-Patent Document 2 as information for identifying a randomly accessible inter picture.
- the interpretation of Recovery Point SEI Message is used in a different manner.
- the recovery point PEI message syntax recovery_poc_cnt (recovery_frame_cnt in Non-Patent Document 2) is used.
- Non-Patent Document 2 As defined in Document 1 and Non-Patent Document 2, it is interpreted as the position of a picture that becomes a recovery point that is a decoding start position, and only when the picture that becomes the recovery point is an inter picture, Information for identifying the picture number of the reference picture used at random access is encoded as the syntax of Recovery Point SEI Message.
- the image decoding apparatus decodes Recovery Point SEI Message, confirms the picture type of the recovery point indicated by the syntax recovery_poc_cnt (in Non-Patent Document 2, recovery_frame_cnt), and the picture that is the recovery point is Only when it is an inter picture, the information for identifying the picture number of the reference picture used at random access is decoded to identify the reference picture used at random access.
- the reference picture used at random access may be limited to the immediately preceding IRAP picture (in the case of Non-Patent Document 2, an IDR picture).
- information (syntax) for identifying the picture number of the reference picture used at random access can be omitted. Therefore, it is possible to realize halfway decoding from an inter-picture that can be randomly accessed only by information (syntax) defined by Recovery Point SEI Message described in Non-Patent Document 1 and Non-Patent Document 2.
- the information for identifying the randomly accessible inter picture is recovered as defined in Non-Patent Document 1 and Non-Patent Document 2, similarly to the present image encoding apparatus.
- Message can be used.
- decoding can be performed by the image decoding apparatus according to the present embodiment.
- Embodiment 8 FIG.
- the position of the reference picture used at random access is encoded as a picture number.
- the position of the reference picture used at random access is indicated by the number of moving bytes from the information for identifying the randomly accessible inter picture.
- the position of the reference picture used during random access may be indicated by the number of moving bytes from the beginning of the encoded bitstream as shown in FIG.
- the decoding start position of the reference picture used at random access is not the relative position of the encoded bitstream (the number of moving bytes from the information identifying the randomly accessible inter picture), but the absolute position Can know as.
- the starting point of the number of moving bytes is unified between the image encoding device and the image decoding device, it is apparent that a point different from those in FIGS. 36 and 37 may be set.
- the identification information of the inter-picture that can be randomly accessed and the information that identifies the position of the reference picture that is used at the time of random access, which are indicated by SEI in the first embodiment, are encoded video and audio encoded bitstreams. It is added as information in the media file format to be collected.
- the media file format is, for example, ISO / IEC 23008-1, ISO / IEC 13818-1 / ITU-TH. 222.0, ISO / IEC 14496-14: 2003, etc.
- GOP media data a unit of grouped coded bitstreams (hereinafter referred to as GOP media data) that can decode a plurality of pictures starting from an IRAP picture (IDR picture in Non-Patent Document 2).
- Descriptor information is used. For example, time information (corresponding to a time code) of randomly accessible inter pictures is added as identification information of randomly accessible inter pictures to descriptor information of GOP media data including randomly accessible inter pictures. Time information of the reference picture used during random access is added as information for identifying the position of the temporal use reference picture.
- descriptor information of a unit (hereinafter referred to as picture media data) in which encoded bitstreams in units of pictures are collected is used. For example, flag information indicating whether or not a random-accessible inter picture is added as random-accessible inter-picture identification information is added to the random-accessible inter-picture picture media data descriptor information. Time information of a reference picture used during random access is added as information for identifying the position of the reference picture.
- Examples of descriptor information of GOP media data include ISO / IEC 23008-1 MPU metadata and ISO / IEC 14496-14: 2003 moov box.
- Examples of the picture media data descriptor information include ISO / IEC 23008-1 Movie fragment metadata and ISO / IEC 14496-14: 2003 moof box.
- the reference picture used at random access referenced by the randomly accessible inter picture is limited to the immediately preceding IRAP picture, and the position of the reference picture used at random access is identified. It is also possible to adopt a configuration in which information is omitted. By doing so, it is possible to reduce the amount of code required for information for identifying the position of the reference picture used during random access.
- the reference picture used at random access that is referred to by the randomly accessible inter picture is the long-term reference picture stored in the long-term storage buffer.
- the reference picture used at random access is It is an intra picture that is not a long-term reference picture.
- the reference picture used in random access is stored in the short-term storage buffer as a short-term reference picture that is the same as a reference picture in encoding / decoding of other pictures.
- encoding / decoding of each picture after storing it in the short-term storage buffer so that the reference picture used in random access exists in the short-term storage buffer when encoding / decoding the randomly accessible inter picture.
- Non-Patent Document 1 and Non-Patent Document 1 and Non-Patent Document 1 are used so that a reference picture used at random access is stored in a short-term storage buffer when encoding / decoding an inter-picture capable of random access.
- the management information of the short-term reference picture specified in Document 2 is encoded.
- the image decoding apparatus decodes the management information from the encoded stream and manages the buffer according to the information, so that the reference picture used at random access is stored for a short time when encoding / decoding a randomly accessible inter picture. It remains stored in the buffer and can be referenced. Therefore, normal reproduction from an inter-picture that can be randomly accessed is possible for the encoded stream generated by the image encoding apparatus of the present embodiment.
- a randomly accessible inter picture is a picture that refers only to a picture set as a reference picture to be used during random access, and is a long-term storage buffer or a short-term storage of Non-Patent Document 1 or Non-Patent Document 2. This is realized by storing the reference picture used at random access in the buffer. That is, according to Non-Patent Document 1 or Non-Patent Document 2, the encoding side encodes the reference picture management information of the long-term storage buffer and the short-term storage buffer, and the decoding side decodes and references the reference picture management information. There is a need. In the present embodiment, the reference picture management information need not be encoded in a randomly accessible inter picture by combining the third and fourth embodiments.
- a picture that is referred to by a randomly accessible inter picture is limited to the immediately preceding IRAP picture, and a special picture indicating that it is a random accessible inter picture as in the fourth embodiment.
- NAL unit types If the encoding target picture is an inter picture that can be randomly accessed, the encoding side deletes the IRAP picture other than the immediately preceding IRAP picture in the long-term storage buffer and the short-term storage buffer, It is encoded as a picture having a different NAL unit type. Then, after encoding a randomly accessible inter picture, the inter picture is stored in a long-term storage buffer or a short-term storage buffer so that it can be referred to by a picture to be encoded thereafter.
- the decoding side interprets the picture to be encoded as an inter picture that can be randomly accessed. Then, after deleting all but the immediately preceding IRAP picture in the long-term storage buffer and the short-term storage buffer, the inter-picture that is randomly accessible is decoded with reference to the immediately preceding IRAP picture. After decoding a randomly accessible inter picture, the inter picture is stored in a long-term storage buffer or a short-term storage buffer so that it can be referred to by a picture to be decoded thereafter. In this way, even when decoding is started from a randomly accessible inter picture (a picture having the special NAL unit type), it can be correctly reproduced.
- Embodiment 12 the reference picture used at random access referenced by the randomly accessible inter picture is an intra picture.
- random access is possible starting with the IRAP picture as shown in FIG. Refer to the inter pictures in order.
- information for identifying the position of the reference picture used during random access information for identifying a randomly accessible inter picture included in each randomly accessible inter picture is encoded.
- the encoded IRAP picture and the randomly accessible inter picture are included.
- the reference picture of the long-term storage buffer or the short-term storage buffer is managed so that the immediately preceding picture (the closest picture in the encoding order (decoding order)) can be referred to.
- the decoding apparatus decodes information for identifying a randomly accessible inter picture to identify a randomly accessible inter picture, and then, for example, one of the randomly accessible inter pictures (picture A)
- the immediately preceding IRAP picture and the randomly accessible inter picture existing between the IRAP picture and picture A are decoded in the order of decoding, and the inter picture is stored in the long-term storage buffer or short-term storage Store in the save buffer.
- the randomly accessible inter picture existing between the IRAP picture and the picture A can be specified from the information for identifying the decoded random accessible inter picture.
- the picture A can be decoded by referring to the immediately preceding decoded random accessible inter picture (the closest random accessible inter picture in decoding order), reproduction from the randomly accessible inter picture can be performed. Can be done normally. With such a configuration, it is possible to encode a randomly accessible inter picture with reference to a temporally closer picture than an IRAP picture, so that encoding efficiency can be improved.
- each randomly accessible inter picture is encoded after the immediately preceding IRAP picture (the IRAP picture closest in the encoding order (decoding order)) and after the immediately preceding IRAP picture.
- a picture to be referred to is selected from (decoded) randomly accessible inter-pictures and encoded.
- information for specifying a picture referred to by each randomly accessible inter picture is further encoded.
- the immediately preceding IRAP picture and subsequent random accessible inter pictures can be referred to.
- the decoding apparatus decodes information for identifying a randomly accessible inter picture, specifies a randomly accessible inter picture, and then, for example, selects one random accessible inter picture ( When playing back halfway from picture A) in FIG. 38, a randomly accessible inter picture existing between the immediately preceding IRAP picture and picture A is decoded in order of decoding, and the inter picture is stored in a long-term storage buffer or a short-term buffer. Store in the save buffer.
- information specifying a picture referred to by each randomly accessible inter picture is decoded, and the reference picture of the inter picture is specified by referring to this information.
- picture A can be finally decoded, and reproduction from a randomly accessible inter picture can be performed normally.
- a random accessible inter picture can be selected and encoded from a plurality of reference pictures by selecting a picture that most improves the encoding efficiency, so that the encoding efficiency can be increased.
- the image encoding device and the image decoding device are configured to refer to the immediately preceding IRAP picture and the subsequent random accessible inter picture.
- the immediately preceding IRAP picture and the immediately preceding random access are configured. You may make it select from either of the possible inter pictures (inter picture which can be random-accessed nearest in encoding order (decoding order)). In this way, as information specifying the picture to be referred to, it can be realized by using flag information indicating whether the immediately preceding IRAP picture or the immediately preceding random accessible inter picture is selected. The amount of codes can be further reduced.
- the long-term storage buffer or the short-term storage buffer is also managed so that only the immediately preceding IRAP picture and the immediately preceding random accessible inter picture can be referred to when encoding each randomly accessible inter picture. Since it is good, the number of pictures to be stored can be reduced.
- the inter picture is described as a P picture using unidirectional motion compensated prediction with one reference picture in FIGS. 31 to 35 and FIG. 38, but this inter picture is shown in FIG. B) using bi-prediction that refers to a plurality of past pictures in the display order and a plurality of future pictures in the display order without the temporal restrictions in the bi-directional motion compensation prediction and it is obvious.
- the inter-pictures are set as randomly accessible pictures using SEI for the embodiments other than the fourth embodiment. Therefore, even when the encoded bitstream generated by the image encoding device of each embodiment is decoded by an image decoding device compliant with Non-Patent Document 1 and Non-Patent Document 2, a randomly accessible inter picture cannot be identified. Therefore, intermediate decoding from the inter picture cannot be performed, and intermediate decoding from the randomly accessible intra picture defined in Non-Patent Document 1 and Non-Patent Document 2 or from the beginning of the encoded bitstream can be performed. If it is decoding, it can decode correctly.
- the reference picture used at random access is stored for a long-term storage buffer or for short-term storage. Since the buffer is managed by the reference picture management information so that it can be referred to when a picture set as a random accessible inter picture is decoded and stored in the buffer, the random picture can be accessed without the SEI. This is because the reference picture used at random access is already stored in the long-term storage buffer or the short-term storage buffer and can be referred to when the picture set as is decoded.
- the first intra picture is set as a reference picture to be used at random access.
- each picture assigned to be encoded as an intra picture should be encoded as an inter picture that refers to a reference picture used at random access. If the coding efficiency is high, the picture is coded not as an intra picture but as an inter picture that refers to a reference picture used at random access (an inter picture that can be randomly accessed) and coded as an intra picture. When the conversion efficiency is high, the picture is encoded as an intra picture that can be randomly accessed, and set as a new reference picture used during random access.
- the above is coded as a randomly accessible inter picture referring to a reference picture used at random access or a picture assigned to be coded as an intra picture as a randomly accessible intra picture.
- a correlation value between pictures based on feature values is calculated, and a picture assigned to be encoded as an intra picture according to the correlation value is encoded as an intra picture that can be randomly accessed, or a reference picture used at random access is selected.
- the correlation value the following inter-picture correlation index I is given. It is determined whether or not to make an inter picture that can be randomly accessed based on I shown in the following equation (5).
- E (S) is the average of the pixel values S in the picture
- V (S) is the variance of the pixel values S in the picture
- S TX I s the pixel value of the color component X of the picture to be encoded (the picture assigned to be encoded as the intra picture to be encoded)
- S RX is the pixel value of the color component X of the reference picture used at random access, respectively Show. If the index I is smaller than a preset threshold, it is determined that the correlation between pictures is high, and the picture to be coded is coded as an inter picture that can be randomly accessed.
- the index I is greater than or equal to the threshold, it is determined that the correlation between pictures is low, and the encoding target picture is encoded as an intra picture that can be randomly accessed.
- the above threshold value it is determined whether or not to make an inter-picture that can be randomly accessed based on the inter-picture correlation index, so that a picture that becomes a random access point (as the above-mentioned intra picture) It is possible to adaptively control a coding method (intra coding or inter coding) of a picture assigned to be coded, and the coding efficiency of the entire bit stream can be improved.
- the above formula (5) shows an example of the YUV signal, but other color signals such as an RGB signal may of course be used.
- any combination of the embodiments, or any modification of any component in each embodiment, or omission of any component in each embodiment is possible.
- the encoded stream generated by the image encoding device of each embodiment or the re-encoded stream generated by the encoded stream conversion device can be stored as a file in a storage device such as a server.
- a storage device such as a server.
- the image encoding device, the image encoding method, and the encoded stream conversion device according to the present invention are suitable for a device that needs to maintain a random access interval when encoding an image with high efficiency.
- the image decoding apparatus and the image decoding method according to the present invention correctly decodes an encoded bitstream including an inter picture that can be accessed randomly even when encoding efficiency is increased while maintaining a random access interval. Suitable for things that need to be done.
- 1 block division unit 2 encoding control unit (encoding mode determination unit), 3 changeover switch (prediction image generation unit), 4 intra prediction unit (prediction image generation unit), 5 motion compensation prediction unit (prediction image generation unit) , 6 subtraction unit (difference image generation unit), 7 transformation / quantization unit (image compression unit), 8 inverse quantization / inverse transformation unit (local decoded image generation unit), 9 addition unit (local decoded image generation unit), 10 Intra prediction memory, 11 Loop filter unit (filtering processing unit), 12 Motion compensated prediction frame memory, 13 Variable length encoding unit (encoding unit), 14 Slice division unit (block division unit), 31 Variable length decoding unit (Decoding unit), 32 inverse quantization / inverse transform unit (difference image generation unit), 33 changeover switch (prediction image generation unit), 34 intra prediction unit (prediction image generation unit), 35 motion compensation Unit (predicted image generation unit), 36 addition unit (decoded image generation unit), 37 intra prediction memory, 38 loop filter unit (filtering processing unit), 39 motion compensated prediction frame memory,
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
また、その符号化ブロックをさらに細かい予測ブロックに分割し、その予測ブロックに対する画面内予測や動き補償予測を実施することで予測誤差を生成する。
また、その予測誤差を符号化ブロック内で階層的に変換ブロックに分割し、それぞれの変換係数をエントロピー符号化することで高い圧縮率を達成している。
また、非特許文献2においても同様のランダムアクセス機能を有している。ただし、非特許文献2ではランダムアクセス用のピクチャとしてIDRピクチャのみが定義されている。
図1はこの発明の実施の形態1における画像符号化装置を示す構成図である。なお、この発明の特徴は、図1の構成中、主に動き補償予測部5、動き補償予測フレームメモリ12、及び可変長符号化部13を用いて、インターピクチャにおいてもランダムアクセスを可能とする点にある。ここで、ブロック分割部1及びスライス分割部14は、請求項に記載のブロック分割部を構成し、符号化制御部2は符号化モード決定部を構成し、切換スイッチ3、イントラ予測部4、動き補償予測部5及び予測画像生成部を構成している。
また、減算部6は差分画像生成部を構成し、変換・量子化部7は画像圧縮部を構成し、逆量子化・逆変換部8及び加算部9は局所復号画像生成部を構成している。
さらに、ループフィルタ部11はフィルタリング処理部を構成し、可変長符号化部13は符号化部を構成している。
この実施の形態1の画像符号化装置が処理対象とする映像信号は、輝度信号と2つの色差信号からなるYUV信号や、ディジタル撮像素子から出力されるRGB信号等の任意の色空間のカラー映像信号のほか、モノクロ画像信号や赤外線画像信号など、映像フレームが水平・垂直2次元のディジタルサンプル(画素)列から構成される任意の映像信号である。
各画素の階調は8ビットでもよいし、10ビット、12ビットなどの階調であってもよい。
また、入力信号は映像信号ではなく静止画像信号でもよいことは、静止画像信号を1フレームのみで構成される映像信号と解釈できることから当然である。
なお、映像の各フレームに対応する処理データ単位を「ピクチャ」と称し、この実施の形態1では、「ピクチャ」は順次走査(プログレッシブスキャン)された映像フレームの信号として説明を行う。ただし、映像信号がインタレース信号である場合、「ピクチャ」は映像フレームを構成する単位であるフィールド画像信号であってもよい。
即ち、ブロック分割部1はスライスを符号化制御部2により決定された分割に応じて各符号化ブロックに分割して、その符号化ブロックを出力する処理を実施する。また、各符号化ブロックは予測処理単位となる1つないし複数の予測ブロックに分割される。
また、符号化制御部2は選択可能な1以上の符号化モード(予測処理単位を示す予測ブロックのサイズなどが異なる1以上のイントラ符号化モード、予測ブロックのサイズなどが異なる1以上のインター符号化モード)の中から、ブロック分割部1から出力される符号化ブロックに適用する符号化モードを選択する処理を実施する。選択手法の例としては、選択可能な1以上の符号化モードの中から、ブロック分割部1から出力される符号化ブロックに対する符号化効率が最も高い符号化モードを選択する手法がある。
さらに、符号化制御部2は変換・量子化部7及び逆量子化・逆変換部8に与える予測差分符号化パラメータを決定する処理を実施する。予測差分符号化パラメータには、符号化ブロックにおける直交変換処理単位となる変換ブロックの分割情報を示す変換ブロック分割情報や、変換係数の量子化を行う際の量子化ステップサイズを規定する量子化パラメータなどが含まれる。
変換ブロックサイズは、図19に示すように、符号化ブロックを四分木状に階層分割することによって決定される。
例えば、変換ブロックを分割する場合と変換ブロックを分割しない場合での符号量や、符号化誤差を加味した評価尺度などに基づいて、評価値が最小になるように変換ブロックを分割するか否かを決定することで、符号量と符号化誤差のトレードオフの観点から最適な変換ブロックの分割形状を決定することができる。
この場合、色差信号の変換ブロックサイズは、対応する輝度信号の変換ブロックの縦横ともに半分のサイズとなる。
輝度信号の変換ブロックの分割情報は、例えば、階層毎に分割するか否かを示す変換ブロック分割フラグとして可変長符号化部13に出力する。
一方、色差信号については、色差信号のイントラ予測パラメータが、輝度信号に対するイントラ予測モードと同じ予測モードを用いる旨を示している場合(イントラ予測パラメータが輝度色差共通イントラ予測モード(DMモード)を示している場合)、輝度信号と同じフレーム内予測を実施して、色差信号の予測画像を生成する。
また、色差信号のイントラ予測パラメータが、輝度相関利用色差信号予測モード(LMモード)を示している場合、予測画像の生成対象ブロックの上及び左に隣接している複数の画素の輝度信号及び色差信号を用いて、輝度信号と色差信号の相関を示す相関パラメータを算出し、その相関パラメータと予測処理対象の色差信号のブロックに対応する輝度信号を用いて、色差信号の予測画像を生成する。
YUV4:4:4信号では、輝度信号と色差信号のエッジ位置に高い相関関係があるため、輝度信号と異なる予測モードを色差信号に適用することを禁止することにより、その色差信号のイントラ予測モードの情報量を削減して、符号化効率を高めることができる。
具体的には、図26に示すように、輝度信号の予測方向ベクトルをvL=(dxL,dyL)とした場合、色差信号の予測方向ベクトルは、vC=(dxL/2,dyL)となる。即ち、図27に示すように、予測方向の角度をθとした場合、輝度信号の予測方向の角度をθL、色差信号の予測方向の角度をθCとして、tanθC=2tanθLの関係となる予測方向で予測する必要がある。
このように構成することで、方向性予測処理自体を変更することなく、インデックスの変換のみで、YUV4:2:2信号のフォーマットに応じた色差信号の適切な予測を実施することができる。
変換・量子化部7は符号化制御部2により決定された予測差分符号化パラメータに含まれる変換ブロック分割情報を参照して、減算部6から出力された予測差分信号に対する直交変換処理(例えば、DCT(離散コサイン変換)やDST(離散サイン変換)、予め特定の学習系列に対して基底設計がなされているKL変換等の直交変換処理)を変換ブロック単位に実施して変換係数を算出するとともに、その予測差分符号化パラメータに含まれる量子化パラメータを参照して、その変換ブロック単位の変換係数を量子化し、量子化後の変換係数である圧縮データを逆量子化・逆変換部8及び可変長符号化部13に出力する処理を実施する。
ここで、図10は4×4DCTの量子化マトリクスの一例を示す説明図である。
図中の数字は、各変換係数の量子化ステップサイズのスケーリング値を示している。
例えば、符号化ビットレートを抑制するために、図10に示すように、高域の変換係数程、量子化ステップサイズを大きな値にスケーリングすることで、複雑な画像領域等で発生する高域の変換係数を抑制して符号量を抑えつつ、主観品質に大きく影響する低域の係数の情報を落とさずに符号化することができる。
このように、変換係数毎の量子化ステップサイズを制御したい場合には量子化マトリクスを用いればよい。
したがって、変換・量子化部7は、各直交変換サイズに対して色信号や符号化モード毎に、新しい量子化マトリクスを用いるか否かを示すフラグ情報を符号化すべき量子化マトリクスパラメータに設定する。
一方、新しい量子化マトリクスを用いない場合には、初期値として、画像符号化装置及び画像復号装置で、予め共通に用意されている量子化マトリクス、または、既に符号化された量子化マトリクスの中から、使用するマトリクスを特定するインデックスを符号化すべき量子化マトリクスパラメータに設定する。ただし、参照可能な既に符号化された量子化マトリクスが存在しない場合、画像符号化装置及び画像復号装置で予め共通に用意されている量子化マトリクスのみ選択可能となる。
加算部9は逆量子化・逆変換部8により算出された局所復号予測差分信号と、イントラ予測部4により生成されたイントラ予測画像、または、動き補償予測部5により生成されたインター予測画像とを加算して、ブロック分割部1から出力された符号化ブロックに相当する局所復号画像を算出する処理を実施する。
ループフィルタ部11は加算部9により算出された局所復号画像に対して、所定のフィルタ処理を実施して、フィルタ処理後の局所復号画像を出力する処理を実施する。
具体的には、変換ブロックの境界や予測ブロックの境界に発生する歪みを低減するフィルタ(デブロッキングフィルタ)処理、画素単位に適応的にオフセットを加算する(画素適応オフセット)処理、ウィーナフィルタ等の線形フィルタを適応的に切り替えてフィルタ処理する適応フィルタ処理などを行う。
一般に使用するフィルタ処理の種類が多いほど、画像品質は向上するが、一方で処理負荷は高くなる。即ち、画像品質と処理負荷はトレードオフの関係にある。また、各フィルタ処理の画像品質改善効果はフィルタ処理対象画像の特性によって異なる。したがって、画像符号化装置が許容する処理負荷や符号化処理対象画像の特性にしたがって使用するフィルタ処理を決めればよい。例えば、図11の構成よりも処理不可を削減したい場合、デブロッキングフィルタ処理と画素適応オフセット処理のみで構成するといったことが考えられる。
画素適応オフセット処理では、最初に、画像を複数のブロックに分割し、そのブロック単位に、オフセット処理を行わない場合もクラス分類手法の一つとして定義して、予め用意されている複数のクラス分類手法の中から、1つのクラス分類手法を選択する。
次に、選択したクラス分類手法によって、ブロック内の各画素をクラス分類し、クラス毎に符号化歪みを補償するオフセット値を算出する。
最後に、局所復号画像の輝度値に対して、そのオフセット値を加算する処理を行うことで局所復号画像の画像品質を改善する。
したがって、画素適応オフセット処理では、ブロック分割情報、各ブロックのクラス分類手法を示すインデックス、ブロック単位の各クラスのオフセット値を特定するオフセット情報をヘッダ情報として可変長符号化部13に出力する。
なお、画素適応オフセット処理において、例えば、最大符号化ブロックといった固定サイズのブロック単位に常に分割して、そのブロック毎にクラス分類手法を選択して、クラス毎の適応オフセット処理を行ってもよい。この場合、上記ブロック分割情報が不要となり、ブロック分割情報に要する符号量分だけ符号量が削減され、符号化効率を高めることができる。
そして、クラス毎に設計したフィルタをヘッダ情報として可変長符号化部13に出力する。
クラス分類手法としては、画像を空間的に等間隔に区切る簡易な手法や、ブロック単位に画像の局所的な特性(分散など)に応じて分類する手法がある。
また、適応フィルタ処理で使用するクラス数は、予め画像符号化装置及び画像復号装置に共通の値として設定してもよいし、符号化すべきパラメータとしてもよい。
前者と比較して後者の方が、使用するクラス数を自由に設定することができるため、画像品質改善効果が上がるが、一方でクラス数を符号化するために、その分の符号量が増加する。
可変長符号化部13は変換・量子化部7から出力された圧縮データと、符号化制御部2の出力信号(最大符号化ブロック内のブロック分割情報、符号化モード、予測差分符号化パラメータ、イントラ予測パラメータ又はインター予測パラメータ)と、動き補償予測部5から出力された動きベクトル(符号化モードがインター符号化モードである場合)とを可変長符号化して符号化データを生成する。
また、可変長符号化部13は、図13に例示するように、符号化ビットストリームのヘッダ情報として、シーケンスレベルヘッダ、ピクチャレベルヘッダを符号化し、ピクチャデータと共に符号化ビットストリームを生成する。
シーケンスレベルヘッダは、画像サイズ、色信号フォーマット、輝度信号や色差信号の信号値のビット深度、シーケンス単位でのループフィルタ部11における各フィルタ処理(適応フィルタ処理、画素適応オフセット処理、デブロッキングフィルタ処理)の有効フラグ情報、量子化マトリクスの有効フラグ情報など、一般的にシーケンス単位に共通となるヘッダ情報をまとめたものである。
ピクチャレベルヘッダは、参照するシーケンスレベルヘッダのインデックスや動き補償時の参照ピクチャ数、エントロピー符号化の確率テーブル初期化フラグ、量子化マトリクスパラメータなど、ピクチャ単位で設定するヘッダ情報をまとめたものである。
非特許文献1では、ランダムアクセスするピクチャについて、対応するアクセスユニット内のスライスデータのNALユニットタイプをIRAPピクチャとして符号化する。このIRAPピクチャは当該ピクチャから復号を開始しても正常に復号できるよう、イントラ予測のみで符号化されるイントラピクチャとして符号化される。なお、上述の通り、IRAPピクチャとしては、IDRピクチャ、CRAピクチャ、BLAピクチャが定義されている。
非特許文献2も同様であるが、ランダムアクセス可能なピクチャとしてIDRピクチャのみ定義されている点が異なる。以下、非特許文献1のIRAPピクチャを前提に説明するが、非特許文献2においてもIRAPピクチャをIDRピクチャに置き換えることで同様の処理が実現できる。
ランダムアクセス可能なピクチャとして設定されたインターピクチャは、動き補償予測部5において、1以上の長期参照ピクチャを参照して動き補償予測を行うことによって予測画像を生成する。
即ち、可変長符号化部13は、ランダムアクセス可能なインターピクチャのアクセスユニット内に、Supplemental Enhancement Information(SEI)として、ランダムアクセス可能なインターピクチャであることを示す補足情報(識別情報)を符号化し、その補足情報の符号化データをビットストリームに多重化する。このSEIには、当該アクセスユニットのインターピクチャが参照する、単独復号可能な長期参照ピクチャ(ランダムアクセス時使用参照ピクチャ)のピクチャ番号を示すピクチャ位置情報が含まれる。したがって、復号側ではランダムアクセスする際、IRAPピクチャの他に、上記SEIを持つアクセスユニットのインターピクチャについてもランダムアクセスが可能となる。この場合、上記SEIが示す長期参照ピクチャを復号後にその長期参照ピクチャのみを参照する当該インターピクチャを復号する。
即ち、後述する図3の画像復号装置において、復号部を構成する可変長復号部31が、ビットストリームに多重化されている符号化データからSEIを復号すると、画像復号装置は、そのSEIに含まれているピクチャ位置情報が示すピクチャ番号の長期参照ピクチャであるイントラピクチャの復号画像をはじめに復号して、そのイントラピクチャの復号画像を動き補償予測フレームメモリ39に格納したのち、動き補償部35が、動き補償予測フレームメモリ39に格納されているイントラピクチャの復号画像を参照して、そのSEIが示すランダムアクセス可能なインターピクチャの動き補償予測を実施することで、そのSEIが示すランダムアクセス可能なインターピクチャからの途中復号(ランダムアクセス)が実現できる。
このように、ピクチャ内のみを予測に利用するイントラピクチャだけでなく、動き補償用できるインターピクチャをランダムアクセスポイントとして利用できることで、非特許文献1及び2と比較して高効率な符号化が実現できる。
図2はこの発明の実施の形態1による画像符号化装置の処理内容(画像符号化方法)を示すフローチャートである。
ここで、可変長復号部31は復号部を構成し、逆量子化・逆変換部32は差分画像生成部を構成し、切換スイッチ33、イントラ予測部34及び動き補償部35は予測画像生成部を構成している。
また、加算部36は復号画像生成部を構成し、ループフィルタ部38はフィルタリング処理部を構成している。
図3において、可変長復号部31は図1の画像符号化装置により生成された符号化ビットストリームを入力すると、そのビットストリームからシーケンスレベルヘッダ、ピクチャレベルヘッダ、スライスレベルヘッダなどの各ヘッダ情報を復号するとともに、その符号化ビットストリームから、階層的に分割されている各々の符号化ブロックの分割状況を示すブロック分割情報を可変長復号する。このとき、YUV4:4:4フォーマット信号やRGB4:4:4フォーマット信号の各信号をモノクローム画像信号とみなしてそれぞれ独立にモノクローム(YUV4:0:0)符号化していることを示す情報がヘッダ情報に含まれる場合、各色信号の符号化ビットストリームに対してそれぞれ独立に復号処理することができる。
また、ランダムアクセス可能なインターピクチャが参照する長期参照ピクチャ数は予め画像符号化装置及び復号装置で共通の値として決定しておき、その定めた上記長期参照ピクチャ数だけの長期参照ピクチャのピクチャ番号を復号する。あるいは、上記長期参照ピクチャ数も補足情報として符号化するように画像符号化装置を構成する場合、画像復号装置は参照する長期参照ピクチャ数を復号し、その復号した長期参照ピクチャ数だけの長期参照ピクチャのピクチャ番号を復号する復号装置を構成する。このように符号化された長期参照ピクチャ数を復号するように構成することで、適応的に参照ピクチャ数を変更してランダムアクセス可能なインターピクチャの符号化効率を改善した画像符号化装置で生成したストリームを正しく復号することができる。
上記ヘッダ情報に含まれる量子化マトリクスの有効フラグ情報が“有効”を示す場合、可変長復号部31は量子化マトリクスパラメータを可変長復号し、量子化マトリクスを特定する。具体的には、各直交変換サイズの色信号や符号化モード毎に、量子化マトリクスパラメータが初期値として、画像符号化装置及び画像復号装置で予め共通に用意されている量子化マトリクス、または、既に復号された量子化マトリクスである(新しい量子化マトリクスでない)ことを示す場合は、上記マトリクスの内のどの量子化マトリクスであるかを特定するインデックス情報を参照して量子化マトリクスを特定し、量子化マトリクスパラメータが新しい量子化マトリクスを用いることを示す場合は、量子化マトリクスパラメータに含まれる量子化マトリクスを使用する量子化マトリクスとして特定する。
具体的には、各ヘッダ情報から特定される量子化マトリクスを用いて逆量子化処理を行う。
一方、色差信号については、色差信号のイントラ予測パラメータが、輝度信号に対するイントラ予測モードと同じ予測モードを用いる旨を示している場合(イントラ予測パラメータが輝度色差共通イントラ予測モード(DMモード)を示している場合)、輝度信号と同じフレーム内予測を実施して、色差信号の予測画像を生成する。
また、色差信号のイントラ予測パラメータが、輝度相関利用色差信号予測モード(LMモード)を示している場合、予測画像の生成対象ブロックの上及び左に隣接している複数の画素の輝度信号及び色差信号を用いて、輝度信号と色差信号の相関を示す相関パラメータを算出し、その相関パラメータと予測処理対象の色差信号のブロックに対応する輝度信号を用いて、色差信号の予測画像を生成する。
YUV4:4:4信号では、輝度信号と色差信号のエッジ位置に高い相関関係があるため、輝度信号と異なる予測モードを色差信号に適用することを禁止することにより、その色差信号のイントラ予測モードの情報量を削減して、符号化効率を高めることができる。
具体的には、図26に示すように、輝度信号の予測方向ベクトルをvL=(dxL,dyL)とした場合、色差信号の予測方向ベクトルは、vC=(dxL/2,dyL)となる。即ち、図27に示すように、予測方向の角度をθとした場合、輝度信号の予測方向の角度をθL、色差信号の予測方向の角度をθCとして、tanθC=2tanθLの関係となる予測方向で予測する必要がある。
このように構成することで、方向性予測処理自体を変更することなく、インデックスの変換のみで、YUV4:2:2信号のフォーマットに応じた色差信号の適切な予測を実施することができる。
ループフィルタ部38は加算部36により算出された復号画像に対して、所定のフィルタ処理を実施して、フィルタ処理後の復号画像を出力する処理を実施する。
具体的には、変換ブロックの境界や予測ブロックの境界に発生する歪みを低減するフィルタ(デブロッキングフィルタ)処理、画素単位に適応的にオフセットを加算する(画素適応オフセット)処理、ウィーナフィルタ等の線形フィルタを適応的に切り替えてフィルタ処理する適応フィルタ処理などを行う。
ただし、ループフィルタ部38は、上記のデブロッキングフィルタ処理、画素適応オフセット処理、適応フィルタ処理のそれぞれについて、可変長復号部31により可変長復号された各ヘッダ情報を参照して、当該スライスで行うか否かを特定する。
このとき、2つ以上のフィルタ処理を行う場合において、例えば、画像符号化装置のループフィルタ部11が図11のように構成されていれば、図12に示すようにループフィルタ部38が構成される。当然、画像符号化装置のループフィルタ部11がデブロッキングフィルタ処理と画素適応オフセット処理から構成されていれば、ループフィルタ部38もデブロッキングフィルタ処理と画素適応オフセット処理で構成される。
なお、クラス分類手法の候補として、ループフィルタ部11の画素適応オフセット処理のクラス分類手法の候補と同一のものが予め用意されている。
そして、ブロック単位の各クラスのオフセット値を特定するオフセット情報を参照して、復号画像の輝度値にオフセットを加算する処理を行う。
動き補償予測フレームメモリ39はループフィルタ部38のフィルタ処理後の復号画像をインター予測処理(動き補償予測処理)で用いる参照画像として格納する記録媒体である。
図4はこの発明の実施の形態1による画像復号装置の処理内容(画像復号方法)を示すフローチャートである。
この実施の形態1では、映像の各フレーム画像を入力画像として、符号化済みの近傍画素からのイントラ予測又は近接フレーム間での動き補償予測を実施して、得られた予測差分信号に対して直交変換・量子化による圧縮処理を施し、その後、可変長符号化を行って符号化ビットストリームを生成する画像符号化装置と、その画像符号化装置から出力される符号化ビットストリームを復号する画像復号装置について説明する。
一般的に、映像信号は、空間・時間的に信号の複雑さが局所的に変化する特性を有している。空間的に見ると、ある映像フレーム上では、例えば、空や壁などのような比較的広い画像領域中で均一な信号特性を有する絵柄もあれば、人物や細かいテクスチャを含む絵画など、小さい画像領域内で複雑なテクスチャパターンを有する絵柄も混在することがある。
時間的に見ても、空や壁は局所的に時間方向の絵柄の変化は小さいが、動く人物や物体は、その輪郭が時間的に剛体・非剛体の運動をするため、時間的な変化が大きい。
一方、時間的・空間的に変化の大きい画像信号パターンに対して、同一の予測パラメータを大きな画像領域に適用すると、予測の誤りが増えてしまうため、予測差分信号の符号量が増加してしまう。
したがって、時間的・空間的に変化が大きい領域では、同一の予測パラメータを適用して予測処理を行うブロックサイズを小さくして、予測に用いるパラメータのデータ量を増やし、予測差分信号の電力・エントロピーを低減する方が望ましい。
まず、符号化制御部2は、符号化対象となるピクチャ(カレントピクチャ)のスライス分割状態を決めると共に、ピクチャの符号化に用いる最大符号化ブロックのサイズと、最大符号化ブロックを階層分割する階層数の上限を決定する(図2のステップST1)。
最大符号化ブロックのサイズの決め方としては、例えば、入力画像の映像信号の解像度に応じて、全てのピクチャに対して同一のサイズを定めてもよいし、入力画像の映像信号の局所的な動きの複雑さの違いをパラメータとして定量化して、動きの激しいピクチャには、小さいサイズを定める一方、動きが少ないピクチャには、大きいサイズを定めるようにしてもよい。
なお、上記最大符号化ブロックのサイズと、最大符号化ブロックを階層分割する階層数の上限は、シーケンスレベルヘッダなどに符号化してもよいし、符号化せずに画像復号装置側も同一の決定処理を行うようにしてもよい。
後者は反対に、画像復号装置側で上記決定処理を行うため、画像復号装置の処理負荷が増加するが、ヘッダ情報の符号量は増加しない。
また、上記最大符号化ブロックのサイズと、最大符号化ブロックを階層分割する階層数の上限をシーケンスレベルヘッダなどに符号化する場合、分割階層数の上限の代わりに、符号化ブロックの最小ブロックサイズを符号化するようにしてもよい。即ち、最大符号化ブロックを分割階層数の上限まで分割したときのブロックのサイズが、符号化ブロックの最小ブロックサイズであるため、画像復号装置側において、最大符号化ブロックのサイズと符号化ブロックの最小ブロックサイズから分割階層数の上限を特定することができる。
即ち、符号化制御部2は、最大符号化ブロックサイズの画像領域毎に、先に定めた分割階層数の上限に至るまで、階層的に符号化ブロックサイズを有する符号化ブロックに分割して、各々の符号化ブロックに対する符号化モードを決定する。
符号化モードには、1つないし複数のイントラ符号化モード(総称して「INTRA」と称する)と、1つないし複数のインター符号化モード(総称して、「INTER」と称する)とがあり、符号化制御部2は、当該ピクチャで利用可能な全ての符号化モード、または、そのサブセットの中から、各々の符号化ブロックに対応する符号化モードを選択する。
符号化制御部2による符号化モードの選択方法は、公知の技術であるため詳細な説明を省略するが、例えば、利用可能な任意の符号化モードを用いて、符号化ブロックに対する符号化処理を実施して符号化効率を検証し、利用可能な複数の符号化モードの中で、最も符号化効率がよい符号化モードを選択する方法などがある。
ただし、符号化ブロックがさらに予測処理を行う予測ブロック単位に分割される場合は、予測ブロック毎に予測パラメータ(イントラ予測パラメータ又はインター予測パラメータ)を選択する。
変換ブロックサイズは、図19に示すように、符号化ブロックを四分木状に階層分割することによって決定される。
例えば、変換ブロックを分割する場合と変換ブロックを分割しない場合での符号量や、符号化誤差を加味した評価尺度などに基づいて、評価値が最小になるように変換ブロックを分割するか否かを決定することで、符号量と符号化誤差のトレードオフの観点から最適な変換ブロックの分割形状を決定することができる。
また、図21に示すように、入力信号フォーマットがYUV4:4:4信号である場合、色差信号の変換ブロックは、常に輝度信号の変換ブロックと同様の分割を行い、同じサイズの変換ブロックとなるように構成する。
また、符号化制御部2は、イントラ予測パラメータを必要に応じてイントラ予測部4に出力する。
また、符号化制御部2は、インター予測パラメータを必要に応じて動き補償予測部5に出力する。
ブロック分割部1は、スライス分割部14から各スライスを入力する毎に、そのスライスを符号化制御部2により決定された最大符号化ブロックサイズに分割し、さらに、分割した最大符号化ブロックを符号化制御部2により決定された符号化ブロックへ階層的に分割して、その符号化ブロックを出力する。
図5において、最大符号化ブロックは、「第0階層」と記されている輝度成分が(L0,M0)のサイズを有する符号化ブロックである。
最大符号化ブロックを出発点として、4分木構造で別途定める所定の深さまで、階層的に分割を行うことによって符号化ブロックを得るようにしている。
深さnにおいては、符号化ブロックはサイズ(Ln,Mn)の画像領域である。
ただし、LnとMnは、同じであってもよいし、異なっていてもよいが、図5では、Ln=Mnのケースを示している。
4分木分割を行うため、常に、(Ln+1,Mn+1)=(Ln/2,Mn/2)が成立する。
なお、RGB信号など、全ての色成分が同一サンプル数を有するカラー映像信号(4:4:4フォーマット)では、全ての色成分のサイズが(Ln,Mn)になるが、4:2:0フォーマットを扱う場合、対応する色差成分の符号化ブロックサイズは(Ln/2,Mn/2)になる。
複数の色成分からなるカラー映像信号の場合、符号化モードm(Bn)は、色成分毎に、それぞれ個別のモードを用いるように構成されてもよいし、全ての色成分に対し共通のモードを用いるように構成されてもよい。以降、特に断らない限り、YUV信号、4:2:0フォーマットの符号化ブロックの輝度成分に対する符号化モードを指すものとして説明を行う。
以降、符号化ブロックBnに属する予測ブロックをPi n(iは、第n階層における予測ブロック番号)と表記する。図5にはP0 0とP1 0の例を示している。
符号化ブロックBn内の予測ブロックの分割が、どのようになされているかは、符号化モードm(Bn)の中に情報として含まれる。
予測ブロックPi nは、全て符号化モードm(Bn)に従って予測処理が行われるが、予測ブロックPi n毎に、個別の予測パラメータ(イントラ予測パラメータ又はインター予測パラメータ)を選択することができる。
図6(a)の点線で囲まれた矩形が各符号化ブロックを表し、各符号化ブロック内にある斜線で塗られたブロックが各予測ブロックの分割状態を表している。
図6(b)は、図6(a)の例について、階層分割によって符号化モードm(Bn)が割り当てられる状況を4分木グラフで示したものである。図6(b)の□で囲まれているノードは、符号化モードm(Bn)が割り当てられたノード(符号化ブロック)である。
この4分木グラフの情報は符号化モードm(Bn)と共に符号化制御部2から可変長符号化部13に出力されて、ビットストリームに多重化される。
一方、符号化制御部2により決定された符号化モードm(Bn)がインター符号化モードである場合(m(Bn)∈INTERの場合)、ブロック分割部1から出力された符号化ブロックBnを動き補償予測部5に出力する。
したがって、符号化モードがイントラ符号化モードである符号化ブロックでは、選択可能な変換ブロックのブロックサイズは、予測ブロックのサイズ以下に制限され、さらに、変換ブロックが予測ブロックより小さい場合(予測ブロック内に複数の変換ブロックが存在する場合)には、変換ブロック単位に、当該予測ブロックで定められたイントラ予測パラメータを用いたイントラ予測処理を実施してイントラ予測画像を生成する処理を実施する。
なお、画像復号装置がイントラ予測画像PINTRAi nと全く同じイントラ予測画像を生成する必要があるため、イントラ予測画像PINTRAi nの生成に用いられたイントラ予測パラメータは、符号化制御部2から可変長符号化部13に出力されて、ビットストリームに多重化される。
イントラ予測部4の処理内容の詳細は後述する。
なお、画像復号装置がインター予測画像PINTERi nと全く同じインター予測画像を生成する必要があるため、インター予測画像PINTERi nの生成に用いられたインター予測パラメータは、符号化制御部2から可変長符号化部13に出力されて、ビットストリームに多重化される。
また、動き補償予測部5により探索された動きベクトルも可変長符号化部13に出力されて、ビットストリームに多重化される。
また、変換・量子化部7は、その予測差分符号化パラメータに含まれる量子化パラメータを参照して、その変換ブロック単位の変換係数を量子化し、量子化後の変換係数である圧縮データを逆量子化・逆変換部8及び可変長符号化部13に出力する(ステップST7)。このとき、上記量子化パラメータから算出される量子化ステップサイズを変換係数毎にスケーリングする量子化マトリクスを用いて量子化処理を実施するようにしてもよい。
したがって、変換・量子化部7は、各直交変換サイズに対して色信号や符号化モード毎に、新しい量子化マトリクスを用いるか否かを示すフラグ情報を符号化すべき量子化マトリクスパラメータに設定する。
さらに、新しい量子化マトリクスを用いる場合には、図10に示すような量子化マトリクスの各スケーリング値を符号化すべき量子化マトリクスパラメータに設定する。
一方、新しい量子化マトリクスを用いない場合には、初期値として、画像符号化装置及び画像復号装置で、予め共通に用意されている量子化マトリクス、または、既に符号化された量子化マトリクスの中から、使用するマトリクスを特定するインデックスを符号化すべき量子化マトリクスパラメータに設定する。ただし、参照可能な既に符号化された量子化マトリクスが存在しない場合、画像符号化装置及び画像復号装置で、予め共通に用意されている量子化マトリクスのみ選択可能となる。
そして、変換・量子化部7は、設定した量子化マトリクスパラメータを可変長符号化部13に出力する。
変換・量子化部7が量子化処理に量子化マトリクスを用いている場合には、逆量子化処理時においても、その量子化マトリクスを参照して、対応した逆量子化処理を実施する。
また、逆量子化・逆変換部8は、変換ブロック単位に逆量子化後の圧縮データである変換係数に対する逆直交変換処理(例えば、逆DCT、逆DST、逆KL変換など)を実施して、減算部6から出力された予測差分信号ei nに相当する局所復号予測差分信号を算出して加算部9に出力する(ステップST8)。
なお、加算部9は、その局所復号画像をループフィルタ部11に出力するとともに、その局所復号画像をイントラ予測用メモリ10に格納する。
この局所復号画像が、以降のイントラ予測処理の際に用いられる符号化済みの画像信号になる。
具体的には、変換ブロックの境界や予測ブロックの境界に発生する歪みを低減するフィルタ(デブロッキングフィルタ)処理、画素単位に適応的にオフセットを加算する(画素適応オフセット)処理、ウィーナフィルタ等の線形フィルタを適応的に切り替えてフィルタ処理する適応フィルタ処理などを行う。
一般に使用するフィルタ処理の種類が多いほど、画像品質は向上するが、一方で処理負荷は高くなる。即ち、画像品質と処理負荷はトレードオフの関係にある。また、各フィルタ処理の画像品質改善効果はフィルタ処理対象画像の特性によって異なる。したがって、画像符号化装置が許容する処理負荷や符号化処理対象画像の特性にしたがって使用するフィルタ処理を決めればよい。
次に、選択したクラス分類手法によってブロック内の各画素をクラス分類し、クラス毎に符号化歪みを補償するオフセット値を算出する。
最後に、局所復号画像の輝度値に対して、そのオフセット値を加算する処理を行うことで局所復号画像の画像品質を改善する。
これらの手法は、予め画像符号化装置及び画像復号装置で共通に用意されており、例えば図14に示すように、オフセット処理を行わない場合もクラス分類手法の一つとして定義して、これらの手法のうち、どの手法でクラス分類を行うかを示すインデックスを上記ブロック単位に選択する。
なお、画素適応オフセット処理において、例えば最大符号化ブロックといった固定サイズのブロック単位に常に分割して、そのブロック毎にクラス分類手法を選択して、クラス毎の適応オフセット処理を行ってもよい。この場合、上記ブロック分割情報が不要となり、ブロック分割情報に要する符号量分だけ符号量が削減され、符号化効率を高めることができる。
そして、クラス毎に設計したフィルタをヘッダ情報として可変長符号化部13に出力する。
ここで、クラス分類手法としては、画像を空間的に等間隔に区切る簡易な手法や、ブロック単位に画像の局所的な特性(分散など)に応じて分類する手法がある。また、適応フィルタ処理で使用するクラス数は、予め画像符号化装置及び画像復号装置で共通の値に設定してもよいし、符号化すべきパラメータの一つとしてもよい。
前者と比較して後者の方が、使用するクラス数を自由に設定することができるため、画像品質改善効果が上がるが、一方でクラス数を符号化するために、その分の符号量が増加する。
図15は16×16画素の変換ブロックにおける係数の符号化順(スキャン順)を示している。
このように、4×4画素単位の16個のCGを右下のCGから順に符号化処理し、さらに、各CGはCG内の16個の係数を右下の係数から順に符号化する。
その際、有意(非零)係数がなるべく連続で発生するように偏るスキャン順とした方がエントロピー符号化による符号化効率を高めることができる。
直交変換後の係数は、左上に位置する直流成分をはじめとして、左上に近い程、低い周波数成分の低い係数を表すことから、図16に示す例のように、一般的に左上に近いほど有意(非零)係数が多く発生するために、図15に示すように、右下から順に符号化することで効率的に符号化することができる。
なお、上記では16×16画素の変換ブロックについて説明したが、8×8画素や32×32画素の変換ブロック等、16×16画素以外のブロックサイズにおいてもCG(符号化サブブロック)単位の符号化処理を実施するものとする。
ただし、ピクチャデータは1以上のスライスデータから構成され、各スライスデータはスライスレベルヘッダと当該スライス内にある上記符号化データをまとめたものである。
ピクチャレベルヘッダは、参照するシーケンスレベルヘッダのインデックスや動き補償時の参照ピクチャ数、エントロピー符号化の確率テーブル初期化フラグ等のピクチャ単位で設定するヘッダ情報をまとめたものである。
スライスレベルヘッダは、当該スライスがピクチャのどの位置にあるかを示す位置情報、どのピクチャレベルヘッダを参照するかを示すインデックス、スライスの符号化タイプ(イントラ符号化、インター符号化など)、ループフィルタ部11における各フィルタ処理(適応フィルタ処理、画素適応オフセット処理、デブロッキングフィルタ処理)を行うか否かを示すフラグ情報などといったスライス単位のパラメータをまとめたものである。
イントラ予測部4は、上述したように、予測ブロックPi nのイントラ予測パラメータを参照して、その予測ブロックPi nに対するイントラ予測処理を実施して、イントラ予測画像PINTRAi nを生成するが、ここでは、輝度信号における予測ブロックPi nのイントラ予測画像を生成するイントラ処理について説明する。
なお、イントラ予測モード数は、処理対象となるブロックのサイズに応じて異なるように構成してもよい。
大きいサイズのブロックでは、イントラ予測の効率が低下するため、選択できるイントラ予測方向数を少なくし、小さいサイズのブロックでは、選択できるイントラ予測方向数を多くするように構成することで演算量を抑制することができる。
ここで、イントラ予測画像を生成する変換ブロックを予測画像生成ブロックと呼ぶこととする。したがって、イントラ予測部4は、予測画像生成ブロック単位に下記に述べるイントラ予測画像生成処理を実施して、予測ブロックPi nのイントラ予測画像を生成する。
予測画像生成ブロックのサイズをli n×mi n画素とする。
図8はli n=mi n=4の場合の予測画像生成ブロック内の画素の予測値を生成する際に用いる画素の一例を示す説明図である。
図8では、予測画像生成ブロックの上の符号化済みの画素(2×li n+1)個と、左の符号化済みの画素(2×mi n)個を予測に用いる画素としているが、予測に用いる画素は、図8に示す画素より多くても少なくてもよい。
また、図8では、予測画像生成ブロックの近傍の1行又は1列分の画素を予測に用いているが、2行又は2列、あるいは、それ以上の画素を予測に用いてもよい。
さらに、予測画像生成ブロックの上端及び左端に位置する図17の領域A,B,Cに対して、ブロック境界を平滑化するフィルタ処理を行って最終的な予測画像とする。例えば、下記の式(1)にしたがって、図18のフィルタの参照画素配置で、下記のフィルタ係数を用いてフィルタ処理を実施する。
・領域A(パーティションPi nの左上の画素)
a0=1/2,a1=1/4,a2=1/4
・領域B(領域A以外のパーティションPi nの上端の画素)
a0=3/4,a2=1/4,(a1=0)
・領域C(領域A以外のパーティションPi nの左端の画素)
a0=3/4,a1=1/4,(a2=0)
一般にブロック端のみフィルタ処理を行って予測値を変化させる場合、大きなブロックサイズのブロックでは、フィルタ処理により予測値が変化する領域の占める割合が小さいために、この予測値の変化によって生じた予測残差信号の変化を非常に高い周波数成分で表されることになり、この高周波数成分を符号化するために符号化効率の悪化を生じさせてしまう傾向がある。また、符号化効率を優先して、この高周波数成分を符号化しないようにすることで、ブロック端の予測残差信号の変化を復元できずに、ブロック境界に歪みが生じてしまう傾向がある。
したがって、例えば、32×32画素以上のブロックサイズの予測画像生成ブロックでは、上記フィルタ処理を適用せずに、32×32画素より小さいブロックのみに上記フィルタ処理を適用することで、従来の平均値予測よりも予測性能を向上させながら、演算量の増加を抑えることができる。
ただし、座標(x,y)は予測画像生成ブロック内の左上画素を原点とする相対座標(図9を参照)であり、S’(x,y)は座標(x,y)における予測値、S(x,y)は座標(x,y)における符号化済み画素の輝度値(復号された輝度値)である。また、算出した予測値が輝度値の取り得る値の範囲を超えている場合、予測値がその範囲内に収まるように値を丸めるようにする。
ただし、座標(x,y)は予測画像生成ブロック内の左上画素を原点とする相対座標(図9を参照)であり、S’(x,y)は座標(x,y)における予測値、S(x,y)は座標(x,y)における符号化済み画素の輝度値(復号された輝度値)である。また、算出した予測値が輝度値の取り得る値の範囲を超えている場合、予測値がその範囲内に収まるように値を丸めるようにする。
一般にブロック端のみ予測方向の輝度値の変化量に比例する値を加算するフィルタ処理を行うことで予測値を変化させる場合、大きなブロックサイズのブロックでは、上述した予測画像生成ブロックのブロック端のフィルタ処理により予測値が変化する領域の占める割合が小さいために、この予測値の変化によって生じた予測残差信号の変化を非常に高い周波数成分で表されることになり、この高周波数成分を符号化するために符号化効率の悪化を生じさせてしまう傾向がある。また、符号化効率を優先して、この高周波数成分を符号化しないようにすることで、ブロック端の予測残差信号の変化を復元できずにブロック境界に歪みが生じてしまう傾向がある。
したがって、例えば、32×32画素以上のブロックサイズの予測画像生成ブロックでは、予測対象画素の座標によらず、式(2)及び式(3)の2行目の式を常に用いるようにし(予測画像生成ブロックのブロック端のフィルタ処理を行わないことにする)、32×32画素より小さいブロックのみに、上記フィルタ処理を行う式(2)及び式(3)を適用することで、従来の垂直方向予測、水平方向予測よりも予測性能を向上させながら、演算量の増加を抑えることができる。
図9に示すように、予測画像生成ブロックの左上画素を原点として、予測画像生成ブロック内の相対座標を(x,y)と設定すると、予測に用いる参照画素の位置は、下記のLと隣接画素の交点になる。
ただし、kは負の実数である。
図8の例では、参照画素は整数画素位置にないので、参照画素に隣接する2画素から内挿したものを予測値とする。なお、隣接する2画素のみではなく、隣接する2画素以上の画素から補間画素を生成して予測値としてもよい。
補間処理に用いる画素を多くすることで補間画素の補間精度を向上させる効果がある一方、補間処理に要する演算の複雑度が増加することから、演算負荷が大きくても高い符号化性能を要求する画像符号化装置の場合には、より多くの画素から補間画素を生成するようにした方がよい。
なお、イントラ予測画像PINTRAi nの生成に用いられたイントラ予測パラメータ(イントラ予測モード)は、ビットストリームに多重化するために可変長符号化部13に出力される。
あるいは、上記参照画素へのフィルタ処理は予測画像へのフィルタ処理を行う平均値予測、垂直方向予測、水平方向予測以外の予測の際のみ実施するようにしてもよい。このようにすることで、各予測モードに対して最大で1つのフィルタ処理しか行わずに済み、演算量の増加を抑えることができる。
予測ブロックPi nの色差信号に対して、色差信号のイントラ予測パラメータ(イントラ予測モード)に基づくイントラ予測処理を実施し、イントラ予測画像の生成に用いられたイントラ予測パラメータを可変長符号化部13に出力する。
色差信号のイントラ予測パラメータが、輝度信号に対するイントラ予測モードと同じ予測モードを用いる旨を示している場合(イントラ予測パラメータが輝度色差共通イントラ予測モード(DMモード)を示している場合)、輝度信号と同じフレーム内予測を実施して、色差信号の予測画像を生成する。
また、色差信号のイントラ予測パラメータが、輝度相関利用色差信号予測モード(LMモード)を示している場合、予測画像の生成対象ブロックの上及び左に隣接している複数の画素の輝度信号及び色差信号を用いて、輝度信号と色差信号の相関を示す相関パラメータを算出し、その相関パラメータと予測処理対象の色差信号のブロックに対応する輝度信号を用いて、色差信号の予測画像を生成する。
当然、YUV4:4:4信号の場合においても、色差信号に対して、輝度信号とは異なる方向性予測モードを選択できるように構成してもよい。
具体的には、図26に示すように、輝度信号の予測方向ベクトルをvL=(dxL,dyL)とした場合、色差信号の予測方向ベクトルは、vC=(dxL/2,dyL)となる。即ち、図27に示すように、予測方向の角度をθとした場合、輝度信号の予測方向の角度をθL、色差信号の予測方向の角度をθCとして、tanθC=2tanθLの関係となる予測方向で予測する必要がある。
図28は図7のイントラ予測モードにおけるイントラ予測モードインデックスの変換例を示している。
図28の変換テーブルは、予測方向の角度がθであるとき(図27を参照)、イントラ予測モードの方向性予測が図29に示すtanθとなる角度である場合、tanθC=2tanθLの関係に最も近い角度θCに変換するテーブルの例である。
変換処理の実現は、上記のように、インデックスの変換テーブルを用意し、その変換テーブルを参照することでインデックスを変換するように構成してもよいし、変換式を用意し、その変換式に従ってインデックスを変換するように構成してもよい。
このように構成することで、方向性予測処理自体を変更することなく、インデックスの変換のみでYUV4:2:2信号のフォーマットに応じた色差信号の適切な予測を実施することができる。
このようにLMモードも用いないようにすることで、予測対象画素の輝度信号と色差信号の依存性がなくなるため、輝度信号と色差信号の予測処理の並列化が可能となり、高速な演算処理を実現することができる。
可変長復号部31は、図1の画像符号化装置により生成された符号化ビットストリームを入力すると、そのビットストリームに対する可変長復号処理を実施して(図4のステップST21)、1フレーム以上のピクチャから構成されるシーケンス単位のヘッダ情報(シーケンスレベルヘッダ)及びピクチャ単位のヘッダ情報(ピクチャレベルヘッダ)、ループフィルタ部38で使用するフィルタパラメータや量子化マトリクスパラメータを復号する。
具体的には、各直交変換サイズの色信号や符号化モード毎に、量子化マトリクスパラメータが初期値として、画像符号化装置及び画像復号装置で、予め共通に用意されている量子化マトリクス、または、既に復号された量子化マトリクスである(新しい量子化マトリクスでない)ことを示す場合は、量子化マトリクスパラメータに含まれる上記マトリクスの内のどの量子化マトリクスであるかを特定するインデックス情報を参照して量子化マトリクスを特定し、量子化マトリクスパラメータが新しい量子化マトリクスを用いることを示す場合は、量子化マトリクスパラメータに含まれる量子化マトリクスを使用する量子化マトリクスとして特定する。
そして、ピクチャ単位のデータを構成するスライスデータから、スライス分割情報等のスライス単位のヘッダ情報(スライスレベルヘッダ)を復号し、各スライスの符号化データを復号する。
例えば、最大符号化ブロックサイズや分割階層数の上限が映像信号の解像度に応じて決められた場合には、復号したフレームサイズ情報に基づいて、画像符号化装置と同様の手順で最大符号化ブロックサイズを決定する。
最大符号化ブロックサイズ及び分割階層数の上限が、画像符号化装置側でシーケンスレベルヘッダなどに多重化されている場合には、上記ヘッダから復号した値を用いるようにする。ただし、分割階層数の上限の代わりに、符号化ブロックの最小ブロックサイズが符号化されている場合、これを復号することで分割階層数の上限を決定する。即ち、最大符号化ブロックを上記最小ブロックサイズまで分割した場合が分割階層数の上限となる。
可変長復号部31は、決定された最大符号化ブロック単位に、図6で示されるような最大符号化ブロックの分割状態を復号する。復号された分割状態に基づき、階層的に符号化ブロックを特定する(ステップST23)。
一方、符号化ブロックに割り当てられている符号化モードがインター符号化モードである場合、符号化ブロックに含まれており、予測処理単位となる1つ以上の予測ブロック毎にインター予測パラメータ及び動きベクトルを復号する(ステップST24)。
その際、図1の画像符号化装置の可変長符号化部13での圧縮データの符号化処理と同様に、CG単位の係数の復号処理を実施する。
したがって、図15に示すように、4×4画素単位の16個のCGを右下のCGから順に復号処理し、さらに、各CGはCG内の16個の係数を右下の係数から順に復号していくことになる。
具体的には、まず、CG内の16個の係数の中に有意(非零)係数が存在するか否かのフラグ情報を復号し、次に復号したフラグ情報がCG内に有意(非零)係数が存在することを示す場合のみCG内の各係数が有意(非零)係数であるかを上記順に復号し、最後に有意(非零)係数を示す係数に対して、その係数値情報を順に復号する。これをCG単位に上記順に行う。
一方、可変長復号部31により可変長復号された符号化モードm(Bn)がインター符号化モードであれば(m(Bn)∈INTERの場合)、可変長復号部31により可変長復号された予測ブロック単位のインター予測パラメータ及び動きベクトルを動き補償部35に出力する。
一方、色差信号については、色差信号のイントラ予測パラメータに基づくイントラ予測処理を実施して、色差信号の予測画像を生成する。
色差信号のイントラ予測パラメータが、輝度信号に対するイントラ予測モードと同じ予測モードを用いる旨を示している場合(イントラ予測パラメータが輝度色差共通イントラ予測モード(DMモード)を示している場合)、輝度信号と同じフレーム内予測を実施して、色差信号の予測画像を生成する。
また、色差信号のイントラ予測パラメータが、輝度相関利用色差信号予測モード(LMモード)を示している場合、予測画像の生成対象ブロックの上及び左に隣接している複数の画素の輝度信号及び色差信号を用いて、輝度信号と色差信号の相関を示す相関パラメータを算出し、その相関パラメータと予測処理対象の色差信号のブロックに対応する輝度信号を用いて、色差信号の予測画像を生成する。
YUV4:4:4信号では、輝度信号と色差信号のエッジ位置に高い相関関係があるため、輝度信号と異なる予測モードを色差信号に適用することを禁止することにより、その色差信号のイントラ予測モードの情報量を削減して、符号化効率を高めることができる。
具体的には、図26に示すように、輝度信号の予測方向ベクトルをvL=(dxL,dyL)とした場合、色差信号の予測方向ベクトルは、vC=(dxL/2,dyL)となる。即ち、図27に示すように、予測方向の角度をθとした場合、輝度信号の予測方向の角度をθL、色差信号の予測方向の角度をθCとして、tanθC=2tanθLの関係となる予測方向で予測する必要がある。
図28は図7のイントラ予測モードにおけるイントラ予測モードインデックスの変換例を示している。
図28の変換テーブルは、予測方向の角度がθであるとき(図27を参照)、イントラ予測モードの方向性予測が図29に示すtanθとなる角度である場合、tanθC=2tanθLの関係に最も近い角度θCに変換するテーブルの例である。
変換処理の実現は、上記のように、インデックスの変換テーブルを用意し、その変換テーブルを参照することでインデックスを変換するように構成してもよいし、変換式を用意し、その変換式に従ってインデックスを変換するように構成してもよい。
このように構成することで、方向性予測処理自体を変更することなく、インデックスの変換のみでYUV4:2:2信号のフォーマットに応じた色差信号の適切な予測を実施することができる。
このときの色差信号のイントラ予測パラメータ(インデックス値)と色差イントラ予測モードの対応例として、図23が挙げられる。
このようにLMモードも用いないようにすることで、予測対象画素の輝度信号と色差信号の依存性がなくなるため、輝度信号と色差信号の予測処理の並列化が可能になり、高速な演算処理を実現することができる。
このようにフィルタ処理を行わないことで、予測処理の低演算化を図ることができる。
このとき、可変長復号部31により可変長復号された各ヘッダ情報を参照し、各ヘッダ情報が、当該スライスで量子化マトリクスを用いて、逆量子化処理を実施することを示している場合は、量子化マトリクスを用いて逆量子化処理を行う。
また、逆量子化・逆変換部32は、変換ブロック単位に逆量子化後の圧縮データである変換係数に対する逆直交変換処理を実施して、図1の逆量子化・逆変換部8から出力された局所復号予測差分信号と同一の復号予測差分信号を算出する(ステップST28)。
この復号画像が、以降のイントラ予測処理の際に用いられる復号済みの画像信号になる。
具体的には、変換ブロックの境界や予測ブロックの境界に発生する歪みを低減するフィルタ(デブロッキングフィルタ)処理、画素単位に適応的にオフセットを加算する(画素適応オフセット)処理、ウィーナフィルタ等の線形フィルタを適応的に切り替えてフィルタ処理する適応フィルタ処理などを行う。
ただし、ループフィルタ部38は、上記のデブロッキングフィルタ処理、画素適応オフセット処理、適応フィルタ処理のそれぞれについて、可変長復号部31により可変長復号された各ヘッダ情報を参照して、当該スライスで処理を行うか否かを特定する。
このとき、2つ以上のフィルタ処理を行う場合に、例えば、画像符号化装置のループフィルタ部11が図11のように構成されている場合には、図12に示すようにループフィルタ部38が構成される。
なお、クラス分類手法の候補として、ループフィルタ部11の画素適応オフセット処理のクラス分類手法の候補と同一のものが予め用意されている。
このループフィルタ部38によるフィルタ処理後の復号画像が、動き補償予測用の参照画像となり、また、再生画像となる。
上記実施の形態1の画像符号化装置においては、ランダムアクセス可能なインターピクチャが参照するランダムアクセス時使用参照ピクチャのピクチャ番号を示すピクチャ位置情報を含むランダムアクセス可能なインターピクチャを示す補足情報としてSEIを新たに定義したが、本実施の形態の画像符号化装置では、新たなSEIを定義せずに、非特許文献1及び非特許文献2に定義されるRecovery Point SEI Messageの意味を下記の通り解釈するように変更する。すなわち、Recovery Point SEI Messageが付与されているピクチャをランダムアクセス可能なインターピクチャとし、さらにRecovery Point SEI Messageのシンタックスrecovery_poc_cnt(非特許文献2では、recovery_frame_cnt)を、復号開始位置であるリカバリポイントとなるピクチャの位置ではなく、ランダムアクセス時使用参照ピクチャの位置を示す情報として解釈するようにする。このような構成とすれば、新たなSEIを定義することなく、上記実施の形態1の画像符号化装置と同じ処理が可能となり、同様の効果を得ることができる。ただし、ランダムアクセス可能なインターピクチャが参照できるランダムアクセス時使用参照ピクチャ数は1つに限定される。
本実施の形態では、ランダムアクセス可能なインターピクチャの参照するランダムアクセス時使用参照ピクチャを後述する直前のIRAPピクチャに限定して、直前のIRAPピクチャの復号画像を動き補償予測フレームメモリ12に格納し、動き補償予測部5が、動き補償予測フレームメモリ12に格納されている直前のIRAPピクチャの復号画像を参照して、そのインターピクチャの動き補償予測を実施し、可変長符号化部13が、そのインターピクチャがランダムアクセス可能なピクチャである旨を示すSEIを符号化し、そのSEIの符号化データを符号化ビットストリームに多重化するようにする。
ここで、直前のIRAPピクチャは、1つ以上のIRAPピクチャの中で、ランダムアクセス可能なインターピクチャの符号化順(復号順)に対して、符号化順(復号順)が先かつ符号化順(復号順)が最も近い(符号化順がより近い)IRAPピクチャを意味する。
したがって、このような構成とすれば、本SEIが付与されているピクチャから復号を開始する場合は、直前のIRAPピクチャを復号して、そのIRAPピクチャの復号画像を動き補償予測フレームメモリ39に格納したのち、動き補償部35が、動き補償予測フレームメモリ39に格納されている直前のIRAPピクチャの復号画像を参照して、そのSEIが示すランダムアクセス可能なインターピクチャの動き補償予測を実施することで、そのインターピクチャを復号する。その後、本SEIが示すランダムアクセス可能なインターピクチャより表示順で後のピクチャを復号することで、このSEIが示すランダムアクセス可能なピクチャから正常に再生することが可能となる。したがって、本実施の形態の画像符号化装置で生成したビットストリームの途中から正しく復号することができる。
上記実施の形態1の画像符号化装置においては、ランダムアクセス可能なインターピクチャであることを示す情報をSEIに設定する場合について説明したが、上位ヘッダで設定できれば、これに限られない。例えば、ランダムアクセス可能なインターピクチャということを示す特別なNALユニットタイプを定義し、そのNALの中に上記SEIと同様の情報を持つように構成しても良い。
すなわち、この場合、SEIを付与することでランダムアクセス可能なインターピクチャを識別するようにするのではなく、ランダムアクセス可能なインターピクチャを示すNALユニットタイプを新たに定義して、本NALユニットタイプを示すNALユニットとしてランダムアクセス可能なインターピクチャを符号化する。
また、本実施の形態はランダムアクセス可能なインターピクチャであることを示す情報を上位ヘッダで設定することを特徴としており、その上位ヘッダはランダムアクセスが可能ならばどのように構成しても良いことは明らかである。したがって、例えば実施の形態3との組み合わせとして、ランダムアクセス可能なインターピクチャの参照するランダムアクセス時使用参照ピクチャは直前のIRAPピクチャに限定し、ランダムアクセス時使用参照ピクチャのピクチャ番号を識別する情報を省略することも可能である。
実施の形態1~4では、インターピクチャによるランダムアクセスを実現する符号化ストリームを生成する画像符号化装置と、生成した符号化ストリームを正しく復号できる画像復号装置について説明した。本実施の形態では、イントラピクチャ(非特許文献1のIRAPピクチャまたは非特許文献2のIDRピクチャ)のみによるランダムアクセスを実現している符号化ストリームを部分的に変換するだけで、インターピクチャによるランダムアクセスを実現する符号化ストリームを生成する符号化ストリーム変換装置と、生成した符号化ストリームを正しく復号できる画像復号装置について説明する。
ここで、再符号化制御部42及び入力映像信号制御部44は再符号化設定部を構成し、復号部43は画像復号部を構成し、ビットストリーム合成部45はビットストリーム合成部を構成している。
本実施の形態における符号化ストリーム変換装置は、変換対象となる符号化ストリーム(ビットストリーム)のIRAPピクチャ(非特許文献2の場合、IDRピクチャ)の中から、1以上の任意のピクチャをランダムアクセス可能なインターピクチャとして再符号化する再符号化部41を有する。
このようにイントラピクチャをインターピクチャに再符号化することにより、元の符号化ストリームより符号量が削減された符号化ストリームを生成することができる。
すなわち、符号化ストリーム変換装置は、まず再符号化制御部42が、非特許文献3や非特許文献2等の従来の画像符号化装置によって生成された符号化ストリームからランダムアクセス可能なイントラピクチャ(非特許文献1ではIRAPピクチャ、非特許文献2ではIDRピクチャ)を特定する情報を、復号部43を用いて復号する。次に、再符号化制御部42は、復号したランダムアクセス可能なイントラピクチャを特定する情報から特定される複数のランダムアクセス可能なイントラピクチャの中から、任意のピクチャを再符号化対象のピクチャに設定すると共に、複数のランダムアクセス可能なイントラピクチャの中で、再符号化対象のピクチャよりも先に符号化されている少なくとも1つのピクチャ(再符号化参照ピクチャ)を復号部43にて復号して再符号化部41の動き補償予測フレームメモリ12に格納するように制御する。そして再符号化制御部42にしたがって再符号化部41は、上記復号した少なくとも1つの再符号化参照ピクチャを参照して、再符号化対象のピクチャの動き補償予測を動き補償予測部5にて実施することでインター予測画像を生成し、そのインター予測画像を用いて、インターピクチャの符号化データを生成する。このとき、復号部43は上記符号化ストリームを生成した従来の符号化装置に対応する復号装置を示す(復号部43は上記符号化ストリームを正しく復号できる)。さらに、再符号化部41は実施の形態1の画像符号化装置(図1)と同じ構成となる。
また、符号化ストリーム変換装置は、上記符号化ストリームの中の再符号化対象のイントラピクチャの符号化データに当たる部分のストリームを、再符号化部41により生成されたインターピクチャの符号化データからなるビットストリームに置き換えることで再符号化後のストリーム(再符号化ストリーム)を生成するビットストリーム合成部45を有する。
なお、再符号化部41の動き補償予測フレームメモリ12では、変換対象となるピクチャが参照するピクチャを長期参照ピクチャとして保存する。この長期参照ピクチャはIRAPピクチャ(上記符号化ストリームが非特許文献2の符号化装置で生成されている場合、IDRピクチャ)に限定するものとする。このように、長期参照ピクチャとして特定のピクチャを保存するようにした場合、元の符号化ストリームに対して、符号化順で上記特定のピクチャより後かつ変換対象となるピクチャの前に符号化するピクチャの符号化データに該当する部分を、上記特定のピクチャが長期参照ピクチャとして保存されているようにビットストリーム合成部45が符号化ストリームを変更する必要がある。
あるいは、ビットストリーム合成部45にて上記補足情報を生成、符号化し、再符号化ストリームに多重化するように符号化ストリーム変換装置を構成してもよい。この場合、再符号化部41は、上記補足情報の生成・符号化を行う必要がないため、再符号化前の符号化ストリームを生成した符号化装置(非特許文献4や非特許文献2等の従来の画像符号化装置)と同一の符号化処理で再符号化を実現できる。
あるいは、SEI情報としてではなく、実施の形態2や実施の形態4と同様の形態でランダムアクセス可能なインターピクチャであることを示す情報を符号化するようにしても良い。
このようにすることで、各各再符号化対象ピクチャに対して、再符号化前後の復号画像が同一となるように制御する必要がなく、再符号化処理を簡易化できる。
また、実施の形態3と同様にランダムアクセス時使用参照ピクチャ(再符号化対象のランダムアクセス可能なイントラピクチャを再符号化する際に参照するピクチャ)を直前のIRAPピクチャ(非特許文献2の場合、IDRピクチャ)に限定する場合、ランダムアクセス可能なインターピクチャとするピクチャからではなく、直前のIRAPピクチャから、ランダムアクセス可能なインターピクチャとするピクチャの次の(復号順で後となる最も近い)ランダムアクセス可能なイントラピクチャの1つ前に復号されるピクチャまで再符号化するようにしてもよい。このようにすることで、直前のIRAPピクチャから再符号化前の符号化ストリームが生成する復号画像に依存しない自由な再符号化が実施可能となる。なお、再符号化された複数のピクチャの中に直前のIRAPを参照する複数のランダムアクセス可能なインターピクチャが含まれていてもよい。
本構成の場合、上記ランダムアクセス時使用参照ピクチャを符号化した後かつランダムアクセス可能なインターピクチャを符号化する前までのピクチャの符号化データを変更する必要がない利点がある。
上記実施の形態1では、ランダムアクセス可能なインターピクチャより表示順が後(表示時刻が未来)となるランダムアクセス不可能なインターピクチャ(図33(b)の白色で示す「インターピクチャ」)はランダムアクセス可能なインターピクチャより表示順が前(表示時刻が過去)となるピクチャは参照しないようにすることで、ランダムアクセス可能なインターピクチャによるランダムアクセスを実現した。本実施例では、図35に示す例のようにランダムアクセス可能なインターピクチャより復号順が後となるランダムアクセス不可能なインターピクチャはランダムアクセス可能なインターピクチャより復号順が先となるピクチャは参照しないようにすることで、ランダムアクセス可能なインターピクチャによるランダムアクセスを実現する。この場合、非特許文献1、非特許文献2のIDRピクチャをランダムアクセス可能なインターピクチャに置き換えることに相当する。
また、本実施の形態は、実施の形態1の参照ピクチャの制限を変更するのみであり、実施の形態1の画像符号化装置及び画像復号装置と同様の方法で他の実施の形態と組み合わせることができることは明らかである。
上記実施の形態1の画像符号化装置においては、ランダムアクセス可能なインターピクチャが参照するランダムアクセス時使用参照ピクチャのピクチャ番号を識別する情報を含むランダムアクセス可能なインターピクチャを識別する情報としてSEIを新たに定義したが、本実施の形態の画像符号化装置では、ランダムアクセス可能なインターピクチャを識別する情報として、非特許文献1及び非特許文献2に定義されるRecovery Point SEI Messageを用いる。また、上記実施の形態2においてはRecovery Point SEI Messageの解釈を変えて用いたが、本実施の形態においては、Recovery Point SEI Messageのシンタックスrecovery_poc_cnt(非特許文献2では、recovery_frame_cnt)を、非特許文献1及び非特許文献2に定義されるとおり、復号開始位置であるリカバリポイントとなるピクチャの位置と解釈した上で、そのリカバリポイントとなるピクチャがインターピクチャである場合のみ上記実施の形態1のランダムアクセス時使用参照ピクチャのピクチャ番号を識別する情報をRecovery Point SEI Messageのシンタックスとして符号化するようにする。
本実施の形態では、リカバリポイントとなるピクチャがイントラピクチャである場合は非特許文献1及び非特許文献2からの変更はなく、非特許文献1及び非特許文献2準拠の画像復号装置を用いてリカバリポイントとなるイントラピクチャからの途中復号を正常に行える。
上記実施の形態1、2、4~7では、ランダムアクセス時使用参照ピクチャの位置をピクチャ番号として符号化していたが、本実施の形態では、上記実施の形態1、2、4~7に対して、図36に示すようにランダムアクセス時使用参照ピクチャの位置を、ランダムアクセス可能なインターピクチャを識別する情報からの移動バイト数で示すようにする。このようにすることで、上記ランダムアクセス時使用参照ピクチャを特定するために符号化された各ピクチャデータからピクチャ番号を復号してランダムアクセス時使用参照ピクチャのピクチャ番号と照合する処理を行うことなしにランダムアクセス時使用参照ピクチャの復号開始位置を知ることができ、復号処理の処理負荷を低減することができる。また、ランダムアクセス時使用参照ピクチャの位置を、図37のように符号化ビットストリームの先頭からの移動バイト数で示すようにしてもよい。このようにすることで、ランダムアクセス時使用参照ピクチャの復号開始位置を符号化ビットストリームの相対的位置(ランダムアクセス可能なインターピクチャを識別する情報からの移動バイト数)ではなく、絶対的な位置として知ることができる。また、移動バイト数の開始点は画像符号化装置と画像復号装置との間で統一していれば、図36、図37と異なる点を設定しても良いことは明らかである。
本実施の形態では、実施の形態1においてSEIで示した、ランダムアクセス可能なインターピクチャの識別情報と、ランダムアクセス時使用参照ピクチャの位置を識別する情報を、映像や音声の符号化ビットストリームをまとめるメディアファイルフォーマット内の情報として付与するようにする。メディアファイルフォーマットは、例えばISO/IEC 23008-1、ISO/IEC 13818-1/ITU-T H.222.0、ISO/IEC 14496-14:2003等に規定されている。このようにすることでメディアファイルの中から上記実施の形態1~7で説明した画像符号化装置によって生成された符号化ビットストリームを抜き出す前にランダムアクセス可能なインターピクチャとそのランダムアクセス可能なインターピクチャの復号に必要なランダムアクセス時使用参照ピクチャを識別することができ、高速なランダムアクセスを実現することができる。
実施の形態1~9ではランダムアクセス可能なインターピクチャが参照するランダムアクセス時使用参照ピクチャを長期保存用バッファに保存される長期参照ピクチャとしたが、本実施の形態ではランダムアクセス時使用参照ピクチャを長期参照ピクチャでないイントラピクチャとする。この場合、ランダムアクセス時使用参照ピクチャはその他のピクチャの符号化・復号における参照ピクチャと同じ短期参照(short-term reference)ピクチャとして短期保存用バッファに格納する。しかし、ランダムアクセス可能なインターピクチャの符号化・復号の際にランダムアクセス時使用参照ピクチャが短期保存用バッファに存在するようにするために、短期保存用バッファ格納後の各ピクチャの符号化・復号の際に上記ランダムアクセス時使用参照ピクチャが短期保存用バッファに保存されたままになるようにする必要がある。そこで、画像符号化装置においては、ランダムアクセス可能なインターピクチャの符号化・復号の際にランダムアクセス時使用参照ピクチャが短期保存用バッファに保存された状態となるように非特許文献1及び非特許文献2に規定されている短期参照ピクチャの管理情報を符号化する。また、画像復号装置は符号化ストリームから上記管理情報を復号し本情報に従ってバッファを管理することで、ランダムアクセス可能なインターピクチャの符号化・復号の際に上記ランダムアクセス時使用参照ピクチャが短期保存用バッファに保存されたままとなり参照可能となる。したがって、本実施の形態の画像符号化装置で生成した符号化ストリームに対して、ランダムアクセス可能なインターピクチャからの正常再生が可能となる。
実施の形態1~10では、ランダムアクセス可能なインターピクチャはランダムアクセス時使用参照ピクチャとして設定されたピクチャのみを参照するピクチャとし、非特許文献1あるいは非特許文献2の長期保存用バッファあるいは短期保存用バッファにランダムアクセス時使用参照ピクチャを格納して実現している。すなわち、非特許文献1あるいは非特許文献2にしたがって、符号化側は長期保存用バッファ及び短期保存用バッファの参照ピクチャ管理情報を符号化し、復号側は上記参照ピクチャ管理情報を復号して参照する必要がある。本実施の形態では、実施の形態3と実施の形態4を組み合わせることで、ランダムアクセス可能なインターピクチャにおいて上記参照ピクチャ管理情報の符号化を不要とする。
実施の形態1~11では、ランダムアクセス可能なインターピクチャが参照するランダムアクセス時使用参照ピクチャをイントラピクチャとしたが、本実施の形態では、図38に示すようにIRAPピクチャを先頭にランダムアクセス可能なインターピクチャを順々に参照するようにする。このとき、ランダムアクセス時使用参照ピクチャの位置を識別する情報として、各ランダムアクセス可能なインターピクチャが持つランダムアクセス可能なインターピクチャを識別する情報を符号化する。さらに、上述のとおりランダムアクセス可能なインターピクチャを順々に参照可能とするために、各ランダムアクセス可能なインターピクチャを符号化する際に符号化済みのIRAPピクチャ及びランダムアクセス可能なインターピクチャの中で、直前のピクチャ(符号化順(復号順)で最も近いピクチャ)が参照可能となるように、長期保存用バッファあるいは短期保存用バッファの参照ピクチャを管理する。
実施の形態12に対して、本実施の形態では、各ランダムアクセス可能なインターピクチャは、直前のIRAPピクチャ(符号化順(復号順)で最も近いIRAPピクチャ)及び直前のIRAPピクチャ以降に符号化(復号)したランダムアクセス可能なインターピクチャの中から、参照するピクチャを選択して符号化するようにする。
このとき、実施の形態12に対して、各ランダムアクセス可能なインターピクチャが参照するピクチャを特定する情報を更に符号化するようにする。上記参照するピクチャを特定する情報の例としては、ピクチャ番号(Picture Ooder Count:POC)がある。さらに、上述のように参照ピクチャを選択可能とするために、各ランダムアクセス可能なインターピクチャを符号化する際に直前のIRAPピクチャ及びそれ以降のランダムアクセス可能なインターピクチャが参照可能となるように、長期保存用バッファあるいは短期保存用バッファの参照ピクチャを管理する。
ここで、wi(i=0、1、…、5)は重み係数、E(S)はピクチャ内の画素値Sの平均、V(S)はピクチャ内の画素値Sの分散、STXは符号化対象ピクチャ(符号化対象の上記イントラピクチャとして符号化するように割り当てられたピクチャ)の色成分Xの画素値、SRXはランダムアクセス時使用参照ピクチャの色成分Xの画素値をそれぞれ示している。上記指標Iが予め設定した閾値より小さい場合、ピクチャ間の相関が高いと判断して符号化対象ピクチャをランダムアクセス可能なインターピクチャとして符号化する。一方、上記指標Iが上記閾値以上の場合、ピクチャ間の相関が低いと判断して符号化対象ピクチャをランダムアクセス可能なイントラピクチャとして符号化する。上記閾値を適切な値に設定した上で、ピクチャ間相関指標に基づいてランダムアクセス可能なインターピクチャとするか否かを決定するようにすることで、ランダムアクセスポイントとなるピクチャ(上記イントラピクチャとして符号化するように割り当てられたピクチャ)の符号化方法(イントラ符号化かインター符号化か)を適応的に制御可能となり、ビットストリーム全体の符号化効率を改善することができる。また、上記の式(5)はYUV信号の例を示しているが、RGB信号等の他の色信号であっても勿論良い。
また、この発明に係る画像復号装置及び画像復号方法は、ランダムアクセス間隔が維持されながら、符号化効率が高められている場合でも、ランダムアクセスが可能なインターピクチャを含む符号化ビットストリームを正しく復号する必要性が高いものに適している。
Claims (7)
- 入力画像を符号化処理単位のブロックに分割するブロック分割部と、前記ブロック分割部により分割されるブロックに対する符号化モードを決定する符号化モード決定部と、前記符号化モード決定部により決定された符号化モードにしたがって、前記ブロック分割部により分割されたブロックに対する符号化処理を実施して、前記ブロックの圧縮データを出力する画像符号化装置であって、
前記ブロック分割部により分割されたブロックの予測画像を生成する予測画像生成部と、前記ブロック分割部により分割されたブロックと前記予測画像生成部により生成された予測画像との差分画像を生成する差分画像生成部と、前記差分画像生成部により生成された差分画像を圧縮し、前記差分画像の圧縮データを出力する画像圧縮部と、前記画像圧縮部により圧縮された差分画像を伸張し、伸張後の差分画像と前記予測画像生成部により生成された予測画像を加算して局所復号画像を生成する局所復号画像生成部と、前記局所復号画像生成部により生成された局所復号画像に対するフィルタリング処理を実施するフィルタリング処理部と、前記画像圧縮部から出力された圧縮データ及び前記符号化モード決定部により決定された符号化モードを符号化して、前記圧縮データ及び前記符号化モードの符号化データが多重化されているビットストリームを生成する符号化部とを備え、
前記予測画像生成部は、ランダムアクセス可能なインターピクチャを符号化する場合は、複数のランダムアクセス可能なイントラピクチャの中から参照ピクチャを設定し、その設定した参照ピクチャを予測処理に用いる動き補償予測を実施し、
前記符号化部は、前記参照ピクチャの位置を示すピクチャ位置情報と前記ランダムアクセス可能なインターピクチャがランダムアクセス可能であることを示す識別情報を符号化し、前記ピクチャ位置情報及び前記識別情報の符号化データを前記ビットストリームに多重化することを特徴とする画像符号化装置。 - 入力画像を符号化処理単位のブロックに分割するブロック分割部と、前記ブロック分割部により分割されるブロックに対する符号化モードを決定する符号化モード決定部と、前記符号化モード決定部により決定された符号化モードにしたがって、前記ブロック分割部により分割されたブロックに対する符号化処理を実施して、前記ブロックの圧縮データを出力する画像符号化装置であって、
前記ブロック分割部により分割されたブロックの予測画像を生成する予測画像生成部と、前記ブロック分割部により分割されたブロックと前記予測画像生成部により生成された予測画像との差分画像を生成する差分画像生成部と、前記差分画像生成部により生成された差分画像を圧縮し、前記差分画像の圧縮データを出力する画像圧縮部と、前記画像圧縮部により圧縮された差分画像を伸張し、伸張後の差分画像と前記予測画像生成部により生成された予測画像を加算して局所復号画像を生成する局所復号画像生成部と、前記局所復号画像生成部により生成された局所復号画像に対するフィルタリング処理を実施するフィルタリング処理部と、前記画像圧縮部から出力された圧縮データ及び前記符号化モード決定部により決定された符号化モードを符号化して、前記圧縮データ及び前記符号化モードの符号化データが多重化されているビットストリームを生成する符号化部とを備え、
前記予測画像生成部は、ランダムアクセス可能なインターピクチャを符号化する場合は、前記ランダムアクセス可能なインターピクチャの符号化順に対して、符号化順が先かつ符号化順が最も近いランダムアクセス可能なイントラピクチャを参照ピクチャに設定し、その設定した参照ピクチャを予測処理に用いる動き補償予測を実施し、
前記符号化部は、前記ランダムアクセス可能なインターピクチャがランダムアクセス可能であることを示す識別情報を符号化し、前記識別情報の符号化データを前記ビットストリームに多重化することを特徴とする画像符号化装置。 - 画像をブロック単位に圧縮符号化したビットストリームを入力して復号画像を生成する画像復号装置であって、
前記ビットストリームから各々のブロックに係る圧縮データ及び符号化モードを復号する復号部と、前記復号部により復号された符号化モードにしたがって復号済み画素を参照し、各々のブロックに対する予測画像を生成する予測画像生成部と、前記復号部により復号された圧縮データを伸長して差分画像を生成する差分画像生成部と、前記差分画像生成部により生成された差分画像と前記予測画像生成部により生成された予測画像とを加算して復号画像を生成する復号画像生成部と、前記復号画像生成部により生成された復号画像に対するフィルタリング処理を実施するフィルタリング処理部とを備え、
前記復号部は、どのインターピクチャがランダムアクセス可能なインターピクチャであるかを示す識別情報を復号するとともに、前記ランダムアクセス可能なインターピクチャの予測画像を生成する際に参照する参照ピクチャの位置を示すピクチャ位置情報を復号し、
前記予測画像生成部は、前記識別情報によって識別されたランダムアクセス可能なインターピクチャを復号する場合は、複数のランダムアクセス可能なイントラピクチャの中から前記ピクチャ位置情報が示すピクチャを参照ピクチャに設定し、その設定した参照ピクチャを予測処理に用いる動き補償予測を実施することを特徴とする画像復号装置。 - 画像をブロック単位に圧縮符号化したビットストリームを入力して復号画像を生成する画像復号装置であって、
前記ビットストリームから各々のブロックに係る圧縮データ及び符号化モードを復号する復号部と、前記復号部により復号された符号化モードにしたがって復号済み画素を参照し、各々のブロックに対する予測画像を生成する予測画像生成部と、前記復号部により復号された圧縮データを伸長して差分画像を生成する差分画像生成部と、前記差分画像生成部により生成された差分画像と前記予測画像生成部により生成された予測画像とを加算して復号画像を生成する復号画像生成部と、前記復号画像生成部により生成された復号画像に対するフィルタリング処理を実施するフィルタリング処理部とを備え、
前記復号部は、どのインターピクチャがランダムアクセス可能なインターピクチャであるかを示す識別情報を復号し、
前記予測画像生成部は、前記識別情報によって識別されたランダムアクセス可能なインターピクチャを復号する場合は、前記ランダムアクセス可能なインターピクチャの復号順に対して、復号順が先かつ復号順が最も近いランダムアクセス可能なイントラピクチャを参照ピクチャに設定し、その設定した参照ピクチャを予測処理に用いる動き補償予測を実施することを特徴とする画像復号装置。 - 画像をブロック単位に圧縮符号化したビットストリームを入力して再符号化したビットストリームを出力する符号化ストリーム変換装置であって、
前記ビットストリームを復号して復号画像を生成するとともに、ランダムアクセス可能なイントラピクチャを特定する画像復号部と、前記特定したランダムアクセス可能なイントラピクチャの中からランダムアクセス可能なインターピクチャに再符号化する再符号化対象イントラピクチャを設定する再符号化設定部と、前記再符号化対象イントラピクチャを再符号化する再符号化部と、前記ビットストリームと前記再符号化部により再符号化された再符号化対象イントラピクチャとを合成して再符号化ビットストリームを出力するビットストリーム合成部とを備え、
前記再符号化部は、前記ランダムアクセス可能なインターピクチャに再符号化されたピクチャがランダムアクセス可能であることを示す識別情報を符号化し、前記識別情報の符号化データを前記再符号化ビットストリームに多重化することを特徴とする符号化ストリーム変換装置。 - ブロック分割部が、入力画像を符号化処理単位のブロックに分割し、符号化モード決定部が、前記ブロック分割部により分割されるブロックに対する符号化モードを決定すると、前記符号化モードにしたがって、前記ブロック分割部により分割されたブロックに対する符号化処理を実施して、前記ブロックの圧縮データを出力する画像符号化方法であって、
予測画像生成部が、前記ブロック分割部により分割されたブロックの予測画像を生成し、差分画像生成部が、前記ブロック分割部により分割されたブロックと前記予測画像生成部により生成された予測画像との差分画像を生成し、画像圧縮部が、前記差分画像生成部により生成された差分画像を圧縮して、前記差分画像の圧縮データを出力し、局所復号画像生成部が、前記画像圧縮部により圧縮された差分画像を伸張し、伸張後の差分画像と前記予測画像生成部により生成された予測画像を加算して局所復号画像を生成し、フィルタリング処理部が、前記局所復号画像生成部により生成された局所復号画像に対するフィルタリング処理を実施し、符号化部が、前記画像圧縮部から出力された圧縮データ及び前記符号化モード決定部により決定された符号化モードを符号化して、前記圧縮データ及び前記符号化モードの符号化データが多重化されているビットストリームを生成するものであり、
前記予測画像生成部が、ランダムアクセス可能なインターピクチャを符号化する場合は、前記ランダムアクセス可能なインターピクチャの符号化順に対して、符号化順が先かつ符号化順が最も近いランダムアクセス可能なイントラピクチャを参照ピクチャに設定し、その設定した参照ピクチャを予測処理に用いる動き補償予測を実施し、
前記符号化部が、前記ランダムアクセス可能なインターピクチャがランダムアクセス可能であることを示す識別情報を符号化し、前記識別情報の符号化データを前記ビットストリームに多重化することを特徴とする画像符号化方法。 - 画像をブロック単位に圧縮符号化したビットストリームを入力して復号画像を生成する画像復号方法であって、
復号部が、前記ビットストリームから各々のブロックに係る圧縮データ及び符号化モードを復号し、予測画像生成部が、前記復号部により復号された符号化モードにしたがって復号済み画素を参照して、各々のブロックに対する予測画像を生成し、差分画像生成部が、前記復号部により復号された圧縮データを伸長して差分画像を生成し、復号画像生成部が、前記差分画像生成部により生成された差分画像と前記予測画像生成部により生成された予測画像とを加算して復号画像を生成し、フィルタリング処理部が、前記復号画像生成部により生成された復号画像に対するフィルタリング処理を実施するものであり、
前記復号部が、どのインターピクチャがランダムアクセス可能なインターピクチャであるかを示す識別情報を復号し、
前記予測画像生成部が、前記識別情報によって識別されたランダムアクセス可能なインターピクチャを復号する場合は、前記ランダムアクセス可能なインターピクチャの復号順に対して、復号順が先かつ復号順が最も近いランダムアクセス可能なイントラピクチャを参照ピクチャに設定し、その設定した参照ピクチャを予測処理に用いる動き補償予測を実施することを特徴とする画像復号方法。
Priority Applications (5)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/110,650 US10075725B2 (en) | 2014-02-03 | 2015-02-02 | Device and method for image encoding and decoding |
| JP2015560063A JP6147368B2 (ja) | 2014-02-03 | 2015-02-02 | 画像符号化装置、画像復号装置、符号化ストリーム変換装置、画像符号化方法、及び画像復号方法 |
| EP15743236.0A EP3104614A4 (en) | 2014-02-03 | 2015-02-02 | Image encoding device, image decoding device, encoded stream conversion device, image encoding method, and image decoding method |
| KR1020167024148A KR101785886B1 (ko) | 2014-02-03 | 2015-02-02 | 화상 부호화 장치, 화상 복호 장치, 부호화 스트림 변환 장치, 화상 부호화 방법, 및 화상 복호 방법 |
| CN201580006481.XA CN105981389B (zh) | 2014-02-03 | 2015-02-02 | 图像编码装置、图像解码装置、编码流变换装置、图像编码方法以及图像解码方法 |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014-018368 | 2014-02-03 | ||
| JP2014018368 | 2014-02-03 | ||
| JP2014228604 | 2014-11-11 | ||
| JP2014-228604 | 2014-11-11 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2015115644A1 true WO2015115644A1 (ja) | 2015-08-06 |
Family
ID=53757209
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/JP2015/052855 Ceased WO2015115644A1 (ja) | 2014-02-03 | 2015-02-02 | 画像符号化装置、画像復号装置、符号化ストリーム変換装置、画像符号化方法、及び画像復号方法 |
Country Status (6)
| Country | Link |
|---|---|
| US (1) | US10075725B2 (ja) |
| EP (1) | EP3104614A4 (ja) |
| JP (1) | JP6147368B2 (ja) |
| KR (1) | KR101785886B1 (ja) |
| CN (1) | CN105981389B (ja) |
| WO (1) | WO2015115644A1 (ja) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017062377A1 (en) * | 2015-10-07 | 2017-04-13 | Qualcomm Incorporated | Methods and systems of performing predictive random access using a background picture |
| JP2017525175A (ja) * | 2014-06-18 | 2017-08-31 | テレフオンアクチーボラゲット エルエム エリクソン(パブル) | ビデオにおけるピクチャのロバストな符号化および復号化 |
| CN109661818A (zh) * | 2016-09-12 | 2019-04-19 | 索尼公司 | 图像处理设备、图像处理方法和程序 |
| US10484711B2 (en) | 2014-06-18 | 2019-11-19 | Telefonaktiebolaget Lm Ericsson (Publ) | Dependent random access point pictures |
| CN111372085A (zh) * | 2018-12-25 | 2020-07-03 | 厦门星宸科技有限公司 | 影像解码装置与方法 |
| US11800099B2 (en) | 2018-09-20 | 2023-10-24 | Electronics And Telecommunications Research Institute | Method and device for encoding/decoding image, and recording medium for storing bitstream |
| JP2024069479A (ja) * | 2019-12-20 | 2024-05-21 | キヤノン株式会社 | ビデオの符号化及び復号のための高レベルシンタックス |
| WO2024157930A1 (ja) * | 2023-01-24 | 2024-08-02 | ソニーグループ株式会社 | 情報処理装置および方法 |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106941608B (zh) | 2011-06-30 | 2021-01-15 | 三菱电机株式会社 | 图像编码装置及方法、图像解码装置及方法 |
| US10841597B2 (en) * | 2015-06-05 | 2020-11-17 | Telefonaktiebolaget Lm Ericsson (Publ) | Encoding a pixel of an input video sequence |
| WO2018169571A1 (en) * | 2017-03-15 | 2018-09-20 | Google Llc | Segmentation-based parameterized motion models |
| CN116248868B (zh) * | 2017-07-03 | 2025-11-25 | 汉阳大学校产学协力团 | 利用包含追加区域的分割单位的影像解码方法以及装置 |
| WO2019009590A1 (ko) | 2017-07-03 | 2019-01-10 | 김기백 | 추가 영역을 포함하는 분할 단위를 이용한 영상 복호화 방법 및 장치 |
| KR102412007B1 (ko) * | 2017-07-20 | 2022-06-22 | 삼성전자주식회사 | 전자 장치 및 전자 장치에서 하이 다이나믹 레인지 이미지 데이터를 압축하는 방법 |
| JP7248013B2 (ja) * | 2018-03-30 | 2023-03-29 | 株式会社ソシオネクスト | 復号方法、復号装置、符号化装置及びプログラム |
| US10735745B1 (en) * | 2019-06-06 | 2020-08-04 | Tencent America LLC | Method and apparatus for video coding |
| US11825073B2 (en) * | 2020-03-20 | 2023-11-21 | Qualcomm Incorporated | High level syntax for video with mixed NAL unit types |
| JP2021164005A (ja) * | 2020-03-30 | 2021-10-11 | Kddi株式会社 | 画像復号装置、画像復号方法及びプログラム |
| KR20220030192A (ko) * | 2020-09-02 | 2022-03-10 | 레몬 인크. | 미디어 파일에서의 이미지 전환들을 위한 전환 기간 |
| CN115514967B (zh) * | 2022-11-07 | 2023-03-21 | 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) | 基于二进制块双向编码的图像压缩方法及图像解压方法 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2000048402A1 (fr) * | 1999-02-09 | 2000-08-17 | Sony Corporation | Systeme de codage et procede associe, dispositif de codage et procede associe, dispositif de decodage et procede associe, dispositif d'enregistrement et procede associe et dispositif de reproduction et procede associe |
| WO2006003814A1 (ja) * | 2004-07-01 | 2006-01-12 | Mitsubishi Denki Kabushiki Kaisha | ランダムアクセス可能な映像情報記録媒体、及び記録方法、及び再生装置及び再生方法 |
| JP2007306160A (ja) * | 2006-05-09 | 2007-11-22 | Canon Inc | 画像符号化装置及び符号化方法並びに画像復号化装置及び復号化方法 |
Family Cites Families (25)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5023739B1 (ja) | 1970-06-16 | 1975-08-09 | ||
| JP3840895B2 (ja) * | 2000-11-22 | 2006-11-01 | 日本電気株式会社 | 動画像符号化データ変換装置及びその方法 |
| EP1753244B1 (en) * | 2002-01-22 | 2010-04-14 | Microsoft Corporation | Methods and systems for start code emulation prevention and data stuffing |
| US20040179610A1 (en) * | 2003-02-21 | 2004-09-16 | Jiuhuai Lu | Apparatus and method employing a configurable reference and loop filter for efficient video coding |
| CN1846442A (zh) * | 2003-09-04 | 2006-10-11 | 日本电气株式会社 | 运动图像数据变换方法和装置、以及程序 |
| JP4838253B2 (ja) * | 2004-10-07 | 2011-12-14 | パナソニック株式会社 | 画像符号化装置、画像符号化方法、画像復号化装置、画像復号化方法、および記録方法 |
| KR100669634B1 (ko) * | 2004-12-06 | 2007-01-15 | 엘지전자 주식회사 | 동영상 압축 및 복원 방법 |
| US20060153299A1 (en) * | 2005-01-07 | 2006-07-13 | Kabushiki Kaisha Toshiba | Coded video sequence conversion apparatus, method and program product for coded video sequence conversion |
| JP2006246277A (ja) * | 2005-03-07 | 2006-09-14 | Pioneer Electronic Corp | 再符号化装置、再符号化方法、および再符号化用プログラム |
| US8279928B2 (en) | 2006-05-09 | 2012-10-02 | Canon Kabushiki Kaisha | Image encoding apparatus and encoding method, image decoding apparatus and decoding method |
| JP5023739B2 (ja) | 2007-02-28 | 2012-09-12 | ソニー株式会社 | 画像情報符号化装置及び符号化方法 |
| CN101459840B (zh) * | 2007-12-13 | 2010-04-21 | 华为技术有限公司 | 视频图像编码和解码方法及装置和系统 |
| JP5205471B2 (ja) * | 2008-12-12 | 2013-06-05 | パナソニック株式会社 | トランスコード装置、トランスコード方法及びデジタルレコーダー |
| US8929443B2 (en) * | 2009-01-09 | 2015-01-06 | Microsoft Corporation | Recovering from dropped frames in real-time transmission of video over IP networks |
| CN102342127A (zh) * | 2009-01-28 | 2012-02-01 | 诺基亚公司 | 用于视频编码和解码的方法和装置 |
| KR20150013776A (ko) * | 2010-04-09 | 2015-02-05 | 미쓰비시덴키 가부시키가이샤 | 동화상 부호화 장치 및 동화상 복호 장치 |
| MX338462B (es) | 2010-09-30 | 2016-04-15 | Mitsubishi Electric Corp | Dispositivo de codificacion de imagen en movimiento, dispositivo de decodificacion de imagen en movimiento, metodo de codificacion de imagen en movimiento y metodo de decodificacion de imagen en movimiento. |
| CN103299637B (zh) * | 2011-01-12 | 2016-06-29 | 三菱电机株式会社 | 图像编码装置、图像译码装置、图像编码方法以及图像译码方法 |
| CN106941608B (zh) * | 2011-06-30 | 2021-01-15 | 三菱电机株式会社 | 图像编码装置及方法、图像解码装置及方法 |
| JP5551837B2 (ja) * | 2012-01-19 | 2014-07-16 | 三菱電機株式会社 | 画像復号装置、画像符号化装置、画像復号方法及び画像符号化方法 |
| EP2838259A4 (en) * | 2012-04-13 | 2015-12-16 | Mitsubishi Electric Corp | APPARATUS FOR CODING MOVEMENT PICTURES, DEVICE FOR DECODING MOVEMENT PICTURES, METHOD FOR CREATING MOVEMENT IMAGES AND METHOD FOR DECODING MOVEMENT PICTURES |
| US10051264B2 (en) * | 2012-04-20 | 2018-08-14 | Qualcomm Incorporated | Marking reference pictures in video sequences having broken link pictures |
| WO2014003379A1 (ko) * | 2012-06-24 | 2014-01-03 | 엘지전자 주식회사 | 영상 디코딩 방법 및 이를 이용하는 장치 |
| JPWO2014049981A1 (ja) * | 2012-09-28 | 2016-08-22 | 三菱電機株式会社 | 動画像符号化装置、動画像復号装置、動画像符号化方法及び動画像復号方法 |
| JPWO2014051081A1 (ja) * | 2012-09-28 | 2016-08-25 | 三菱電機株式会社 | 動画像符号化装置、動画像復号装置、動画像符号化方法及び動画像復号方法 |
-
2015
- 2015-02-02 JP JP2015560063A patent/JP6147368B2/ja active Active
- 2015-02-02 US US15/110,650 patent/US10075725B2/en active Active
- 2015-02-02 KR KR1020167024148A patent/KR101785886B1/ko active Active
- 2015-02-02 CN CN201580006481.XA patent/CN105981389B/zh active Active
- 2015-02-02 WO PCT/JP2015/052855 patent/WO2015115644A1/ja not_active Ceased
- 2015-02-02 EP EP15743236.0A patent/EP3104614A4/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2000048402A1 (fr) * | 1999-02-09 | 2000-08-17 | Sony Corporation | Systeme de codage et procede associe, dispositif de codage et procede associe, dispositif de decodage et procede associe, dispositif d'enregistrement et procede associe et dispositif de reproduction et procede associe |
| WO2006003814A1 (ja) * | 2004-07-01 | 2006-01-12 | Mitsubishi Denki Kabushiki Kaisha | ランダムアクセス可能な映像情報記録媒体、及び記録方法、及び再生装置及び再生方法 |
| JP2007306160A (ja) * | 2006-05-09 | 2007-11-22 | Canon Inc | 画像符号化装置及び符号化方法並びに画像復号化装置及び復号化方法 |
Non-Patent Citations (2)
| Title |
|---|
| GARY J. SULLIVAN ET AL.: "Overview of the High Efficiency Video Coding (HEVC) Standard", IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, vol. 22, no. 12, December 2012 (2012-12-01), pages 1649 - 1668, XP011487803 * |
| See also references of EP3104614A4 * |
Cited By (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11997313B2 (en) | 2014-06-18 | 2024-05-28 | Telefonaktiebolaget Lm Ericsson (Publ) | Dependent random access point pictures |
| US11395000B2 (en) | 2014-06-18 | 2022-07-19 | Telefonaktiebolaget Lm Ericsson (Publ) | Dependent random access point pictures |
| JP2017525175A (ja) * | 2014-06-18 | 2017-08-31 | テレフオンアクチーボラゲット エルエム エリクソン(パブル) | ビデオにおけるピクチャのロバストな符号化および復号化 |
| US10484711B2 (en) | 2014-06-18 | 2019-11-19 | Telefonaktiebolaget Lm Ericsson (Publ) | Dependent random access point pictures |
| US10063861B2 (en) | 2015-10-07 | 2018-08-28 | Qualcomm Incorporated | Methods and systems of performing predictive random access using a background picture |
| WO2017062377A1 (en) * | 2015-10-07 | 2017-04-13 | Qualcomm Incorporated | Methods and systems of performing predictive random access using a background picture |
| CN109661818A (zh) * | 2016-09-12 | 2019-04-19 | 索尼公司 | 图像处理设备、图像处理方法和程序 |
| US11800099B2 (en) | 2018-09-20 | 2023-10-24 | Electronics And Telecommunications Research Institute | Method and device for encoding/decoding image, and recording medium for storing bitstream |
| US12238285B2 (en) | 2018-09-20 | 2025-02-25 | Electronics And Telecommunications Research Institute | Method and device for encoding/decoding image, and recording medium for storing bitstream |
| CN111372085A (zh) * | 2018-12-25 | 2020-07-03 | 厦门星宸科技有限公司 | 影像解码装置与方法 |
| JP2020108135A (ja) * | 2018-12-25 | 2020-07-09 | 廈門星宸科技有限公司 | 映像復号装置および映像復号方法 |
| JP7017542B2 (ja) | 2018-12-25 | 2022-02-08 | 星宸科技股▲ふん▼有限公司 | 映像復号装置および映像復号方法 |
| CN111372085B (zh) * | 2018-12-25 | 2021-07-09 | 厦门星宸科技有限公司 | 影像解码装置与方法 |
| JP2024069479A (ja) * | 2019-12-20 | 2024-05-21 | キヤノン株式会社 | ビデオの符号化及び復号のための高レベルシンタックス |
| JP7668922B2 (ja) | 2019-12-20 | 2025-04-25 | キヤノン株式会社 | ビデオの符号化及び復号のための高レベルシンタックス |
| WO2024157930A1 (ja) * | 2023-01-24 | 2024-08-02 | ソニーグループ株式会社 | 情報処理装置および方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105981389B (zh) | 2019-03-01 |
| KR101785886B1 (ko) | 2017-10-16 |
| JP6147368B2 (ja) | 2017-06-14 |
| JPWO2015115644A1 (ja) | 2017-03-23 |
| CN105981389A (zh) | 2016-09-28 |
| EP3104614A1 (en) | 2016-12-14 |
| US20160330468A1 (en) | 2016-11-10 |
| EP3104614A4 (en) | 2017-09-13 |
| US10075725B2 (en) | 2018-09-11 |
| KR20160115974A (ko) | 2016-10-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6147368B2 (ja) | 画像符号化装置、画像復号装置、符号化ストリーム変換装置、画像符号化方法、及び画像復号方法 | |
| JP6573689B2 (ja) | 画像符号化装置および画像符号化方法 | |
| JP6580185B2 (ja) | 動画像符号化装置、動画像復号装置、動画像符号化方法及び動画像復号方法 | |
| JP6226863B2 (ja) | 画像符号化装置、画像復号装置、画像符号化方法及び画像復号方法 | |
| JPWO2014163200A1 (ja) | カラー画像符号化装置、カラー画像復号装置、カラー画像符号化方法及びカラー画像復号方法 | |
| JPWO2013108684A1 (ja) | 画像復号装置、画像符号化装置、画像復号方法及び画像符号化方法 | |
| WO2012081162A1 (ja) | 動画像符号化装置、動画像復号装置、動画像符号化方法及び動画像復号方法 | |
| JP6373008B2 (ja) | 画像符号化装置、画像復号装置、画像符号化方法及び画像復号方法 | |
| JP6362370B2 (ja) | 画像符号化装置、画像復号装置、画像符号化方法及び画像復号方法 | |
| JP2014204311A (ja) | カラー画像符号化装置、カラー画像復号装置、カラー画像符号化方法及びカラー画像復号方法 | |
| JPWO2014049982A1 (ja) | 動画像符号化装置、動画像復号装置、動画像符号化方法及び動画像復号方法 | |
| JP6555856B2 (ja) | 画像符号化装置、画像復号装置、画像符号化方法及び画像復号方法 | |
| JP2016046641A (ja) | 画像符号化装置、画像復号装置、画像符号化方法及び画像復号方法 | |
| JP2018166329A (ja) | 画像符号化装置および画像復号装置 | |
| JP6300660B2 (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: 15743236 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2015560063 Country of ref document: JP Kind code of ref document: A |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 15110650 Country of ref document: US |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| REEP | Request for entry into the european phase |
Ref document number: 2015743236 Country of ref document: EP |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2015743236 Country of ref document: EP |
|
| REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112016017842 Country of ref document: BR |
|
| ENP | Entry into the national phase |
Ref document number: 20167024148 Country of ref document: KR Kind code of ref document: A |
|
| ENP | Entry into the national phase |
Ref document number: 112016017842 Country of ref document: BR Kind code of ref document: A2 Effective date: 20160801 |


