WO2007043583A1 - Image encoding device, image decoding device, and method thereof - Google Patents

Image encoding device, image decoding device, and method thereof Download PDF

Info

Publication number
WO2007043583A1
WO2007043583A1 PCT/JP2006/320331 JP2006320331W WO2007043583A1 WO 2007043583 A1 WO2007043583 A1 WO 2007043583A1 JP 2006320331 W JP2006320331 W JP 2006320331W WO 2007043583 A1 WO2007043583 A1 WO 2007043583A1
Authority
WO
WIPO (PCT)
Prior art keywords
scan pattern
picture
scan
macroblock
macroblocks
Prior art date
Application number
PCT/JP2006/320331
Other languages
French (fr)
Japanese (ja)
Inventor
Chong Soon Lim
Sheng Mei Shen
Shinya Kadono
Original Assignee
Matsushita Electric Industrial Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co., Ltd. filed Critical Matsushita Electric Industrial Co., Ltd.
Publication of WO2007043583A1 publication Critical patent/WO2007043583A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/162User input
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Definitions

  • Image encoding apparatus image decoding apparatus, and methods thereof
  • the present invention relates to an image encoding device and an image decoding device, and more particularly to control of a scanning method for converting a two-dimensional orthogonal transformation coefficient after orthogonal transformation of a moving image into one dimension.
  • FIG. 1 (a) is a diagram schematically showing the pixel configuration of the frame macroblock and the final macroblock.
  • a scan pattern defined in advance is used as a scanning method when the orthogonal transform coefficient after the orthogonal transform is made one-dimensionally in units of frame macroblocks or finered macroblocks.
  • Fig. 2 (a) is an example of the scan pattern in the zigzag scan method used when encoding in the conventional 4 x 4 pixel frame macroblock unit
  • Fig. 2 (b) shows the conventional 4 x 4 scan pattern. It is an example of a scan pattern in a field scan method used when encoding in a field macroblock unit of 4 pixels.
  • Fig. 2 (c) is an example of a scan pattern in the zigzag scan method used when encoding in the conventional frame macroblock unit of 8 x 8 pixels.
  • the above zigzag scanning method and the like are general scanning methods used in standards such as MPEG-1 Video, MPEG-2 Video, ITU-T H.264, and frequency conversion (MPEG-1, MPEG-2). Block coefficients that have undergone discrete cosine transform) This is a method for scanning in such a way that it is effectively compressed using a mouth pie code.
  • the transform coefficient of the block subjected to the two-dimensional orthogonal transform is scanned from the small coefficient coefficient position of the illustrated value to the large coefficient coefficient position.
  • the coefficients are entropy coded in that order.
  • Non-Patent Literature 1 ITU-T Recommendation H.2b4, Advanced video coding for generic a udiovisual services, (03/2005)
  • a predetermined scan pattern such as a zigzag scan pattern may not be the best scan pattern for the picture.
  • the specially set scan pattern may be more efficient in code encoding than the predetermined scan pattern. In such a case, the code efficiency of these pictures can be increased by encoding a new scan pattern.
  • the present invention has been made in view of the above problems, and provides an image encoding device, an image decoding device, and the like that can also use a scan pattern specially set by a user. For the purpose.
  • an image encoding device is an image encoding device that encodes a picture in units of macroblocks.
  • a determination means for determining whether or not to code using at least two or more types of macroblocks, and when the determination means determines that encoding should be performed using the two or more macroblocks
  • information indicating one selected scanning method is encoded as header information, and at the same time, based on the selected scanning method.
  • an encoding means for encoding orthogonal transformation coefficients of a two-dimensional array of macroblocks corresponding to each scanning method in the order of the one-dimensional array.
  • the image decoding apparatus provides a coded bitstream having header information.
  • An image decoding apparatus that decodes a macroblock unit, decodes the header information of the code bitstream, and forms at least a picture from the decoded header information
  • information indicating the scanning method for rearranging the orthogonal transformation coefficients of the two-dimensional array into a one-dimensional array is extracted, and the information indicating the scanning method is used to code in one-dimensional array order.
  • Decoding means for decoding the orthogonal transform coefficient of the coded bit stream converted into a two-dimensional array is provided.
  • a novel point of the present invention is that an arbitrary new scan pattern can be downloaded to the image decoding apparatus by including it in the header information of the bitstream, so that an optimal scan pattern for each picture can be obtained. It is to be able to use it. As a result, a scan pattern with high compression efficiency of the entropy code can be selected by adding a small amount of header information, and image compression with higher code efficiency can be realized.
  • the present invention can be realized as an image encoding method or an image decoding method in which a characteristic configuration unit in the image encoding apparatus or the image decoding apparatus is used as a step. It can also be realized as a program that causes a computer or the like to execute the steps. Needless to say, the program can be widely distributed via a recording medium such as a DVD or a transmission medium such as the Internet. Furthermore, the present invention can be realized as an integrated circuit including characteristic constituent means of the image encoding device or the image decoding device.
  • the image encoding device and the image decoding device According to the image encoding device and the image decoding device according to the present invention, it is possible to use a scan pattern specially set by the user, and it is possible to improve the encoding efficiency.
  • FIG. 1 (a) is a diagram showing a state of a picture to be coded, in which a frame macroblock and a finered macroblock are mixed.
  • Figure 1 (b) is a diagram schematically showing the pixel configuration of the frame macroblock and field macroblock.
  • FIG. 2 shows the case where a conventional 4 x 4 pixel frame macroblock unit is coded. It is an example of the scan pattern in the zigzag scan system used.
  • FIG. 2 (b) is an example of a scan pattern in the zigzag scan method used when encoding is performed in the field macroblock unit of the conventional 4 ⁇ 4 pixels.
  • Fig. 2 (c) shows an example of a conventional zigzag scan method used for encoding in units of 8 x 8 pixel frame macroblocks.
  • FIG. 2 (d) shows an example of a scan pattern in the field scan method used when coding in the conventional 8 ⁇ 8 pixel field macroblock unit.
  • FIG. 3 is a block diagram showing a functional configuration of an image encoding device according to the present invention.
  • FIG. 4 is a block diagram showing a functional configuration of an image decoding apparatus according to the present invention.
  • FIG. 5 is a flowchart showing a process for encoding a scan pattern in a sequence header in the image encoding device.
  • FIG. 6 is a flowchart showing a process of decoding a scan pattern in a sequence header in the image decoding apparatus.
  • FIG. 7 is a flowchart showing a process for encoding a scan pattern in a picture header in the image decoding apparatus.
  • FIG. 8 is a flowchart showing a process for decoding a scan pattern in a picture header in the image decoding apparatus.
  • FIG. 9 is a flowchart showing a process for encoding a scan pattern in a slice header in the image encoding apparatus.
  • FIG. 10 is a flowchart showing a process of decoding a scan pattern in a slice header in the image decoding apparatus.
  • FIG. 11 (a) is a diagram showing a stream structure of a code bit stream of a video sequence output from the image coding apparatus of the present invention.
  • FIG. 11 (b) is a diagram showing a stream structure of a code bit stream of a picture in which the image code device capability of the present invention is also output.
  • FIG. 11 (c) is a diagram showing the stream structure of the coded bit stream of the slice output from the image coding apparatus of the present invention.
  • FIG. 12 is a diagram showing the relationship between the first and second reference pictures and the target picture in the present invention.
  • FIG. 13 (a) is a diagram showing an example of a scan pattern position and a reverse scan pattern position for a 4 ⁇ 4 block zigzag scan pattern.
  • FIG. 13 (b) is a diagram showing a stream structure of an encoded scan pattern for 4 ⁇ 4 blocks output from the image encoding device of the present invention.
  • FIG. 13 (c) is a diagram showing a stream structure of an encoded scan pattern for an 8 ⁇ 8 block in which the image encoding apparatus power of the present invention is also output.
  • FIG. 14 is a flowchart showing a process of selecting a predetermined scan pattern in the image encoding device and the image decoding device of the present invention.
  • FIG. 15 is a flowchart showing a process of selecting a memory strength scan pattern in the image encoding device and the image decoding device of the present invention.
  • FIG. 16 is a flowchart showing a process of storing a scan pattern in a memory unit in the image encoding device and the image decoding device of the present invention.
  • FIG. 17 is a flowchart showing a process of selecting a scan pattern corresponding to progressive, field, and block size from the memory unit in the image encoding device and the image decoding device of the present invention.
  • FIG. 18 is a flowchart showing a process of storing a scan pattern corresponding to progressive, field, and block size in the memory unit in the image encoding device and the image decoding device of the present invention.
  • FIG. 19 is a flowchart showing a process of selecting a progressive scan pattern from the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention.
  • FIG. 20 is a flowchart showing a process of selecting a field scan pattern from the memory unit for the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention. is there.
  • FIG. 21 is a flowchart showing a process of storing a sequence progressive scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention.
  • FIG. 22 shows a process of storing a sequence field scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention. It is a flowchart to show.
  • FIG. 23 is a flowchart showing a process of storing a progressive scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention.
  • FIG. 24 is a flowchart showing a process of storing a progressive scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention.
  • FIG. 25 is a flowchart showing a process of selecting a progressive scan pattern from the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
  • FIG. 26 is a flowchart showing a process of selecting a field scan pattern from the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention. is there.
  • FIG. 27 is a flowchart showing a process of storing a sequence progressive scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
  • FIG. 28 is a flowchart showing a process of storing a sequence field pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
  • FIG. 29 is a flowchart showing a process of storing a progressive scan pattern in a memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
  • FIG. 30 is a flowchart showing a process of storing a field scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
  • FIG. 31 is a flowchart showing a process of selecting a field scan pattern from a memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 3 of the present invention. is there.
  • FIG. 32 is a flowchart showing a process of storing a sequence field pattern in a memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 3 of the present invention.
  • FIG. 33 is a flowchart showing a process of selecting a field scan pattern from the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 4 of the present invention. is there.
  • FIG. 34 is a flowchart showing a process of storing a sequence field scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 4 of the present invention. Explanation of symbols
  • FIG. 3 is a block diagram showing a functional configuration of the image encoding device 100 according to the present invention.
  • This image encoding device 100 is a header information for scanning suitable orthogonal transform coefficients corresponding to even when different types of macroblocks are mixed when encoding a picture.
  • the memory unit 135 performs Z-reading of information related to the scanning method according to an instruction from the variable-length code key unit 107.
  • the determination unit 130 determines the type of macroblock at the time of encoding, etc. (for example, the ability to mix a frame macroblock and a field macroblock in a picture) And whether the corresponding macroblock is a frame macroblock force field macroblock, etc.), and the result of the determination is converted into an orthogonal transform unit 105, a motion detection unit 103, an inverse orthogonal transform unit 109, The variable length coding unit 107 is notified.
  • the orthogonal transform unit 105 performs discrete cosine transform on the received encoded image signal 101 (image signal data) in units of macroblocks or in units of blocks constituting the macroblock.
  • DCT Discrete Cosine Transform
  • DCT operation is performed on the pixel values in the screen.
  • P Predictive coded
  • a DCT operation is performed on the difference pixel value.
  • B Bidirectionally
  • DCT calculation is performed on the prediction error pixel values based on bi-directional prediction codes based on I / P pictures located before and after in time! .
  • the orthogonal transform unit 105 performs orthogonal transform corresponding to each frame or field based on the macroblock type (frame macroblock or field macroblock) determined by the determination unit 130.
  • Quantization section 106 quantizes the DCT coefficients input from orthogonal transform section 105 in the quantization step (or may be a quantization parameter) received from bit rate control section 110 for each macroblock. And output to the variable-length code unit 107 and the inverse quantization unit 108.
  • the variable length code key 107 is a scan order based on the macro block type (frame macro block or field macro block) determined by the determination unit 130 for the quantized DCT coefficient input from the quantization unit 106. Is obtained from the memory unit 135, variable length coding and multiplexing of the DCT coefficients quantized in the scan order are performed, and a bit stream is output to an output buffer (not shown).
  • variable length code key unit 107 codes a motion vector, a quantization step, a macro block type, and the like to form a bit stream.
  • the scan order based on the macroblock type is preliminarily stored in the memory unit 135 and is encoded as the first header information of the picture.
  • Inverse quantization section 108 performs an inverse quantization operation on the quantized DCT coefficient received from quantization section 106 and outputs the result to inverse orthogonal transform section 109.
  • the inverse orthogonal transform unit 109 performs the inverse quantized DCT coefficient input from the dequantization unit 108 based on the macro block type (frame macro block or final red macro block) determined by the determination unit 130.
  • Image signal data is reproduced by performing an inverse orthogonal transform operation corresponding to each frame or field and output to the frame memory 102.
  • the frame memory 102 adds and stores the decoded image signal data of the I picture or P picture and the motion compensation data generated by the motion compensation unit 104.
  • the motion detection unit 103 detects a motion vector in units of frames or fields from the reference image stored in the frame memory 102, and the data representing the motion vector can be transmitted to the motion compensation unit 104. Output to variable length coding section 107.
  • the motion compensation unit 104 is based on the reference image stored in the frame memory 102 for encoding the P picture or the B picture and the data representing the motion vector input from the motion detection unit 103! /, Motion compensation data (reference image data) is generated.
  • the bit rate control unit 110 receives the number of generated bits from the variable length code key unit 107, determines a quantization step based on the number of generated bits, and performs this quantization step with the quantization unit 106 and the variable length. The data is transmitted to the code key 107.
  • the overall control unit 140 is, for example, a microcomputer that includes a ROM, a RAM, and the like, and is a part that controls the entire image coding apparatus 100.
  • the overall control unit 140 controls the processing timing of each unit based on the control signal and the like.
  • FIG. 4 is a block diagram showing a functional configuration of the image decoding apparatus 200 according to the present invention.
  • the image decoding device 200 represents a scanning method corresponding to a plurality of types of macroblocks included in the code bitstream 121 output from the image coding device 100, at the time of coding.
  • a device that decodes information and performs inverse scanning and decoding of orthogonal transform coefficients using information representing the decoded scanning method, variable length decoding section 201, memory section 235, motion compensation section 204, An adder 212, a frame memory 202, an inverse quantization unit 208, an inverse orthogonal transform unit 209, and the like are provided.
  • the memory unit 235 reads and writes information related to the scan method according to an instruction from the variable length decoding unit 201.
  • the variable length decoding unit 201 receives the quantized DCT coefficient, the motion vector, and the code encoded from the input code bit stream 121.
  • the quantization step and the macroblock type are separated and decoded, and output to the inverse quantization unit 208, motion compensation unit 204, and inverse orthogonal transform unit 209.
  • the scan order based on the macroblock type (frame macroblock or field macroblock) is decoded and stored in the memory unit 235.
  • the scan order based on the decoded macroblock type is obtained from the memory unit 235, and the variable length of the DCT coefficients quantized in the scan order is obtained. Decrypt.
  • the motion compensation unit 204 is stored in the frame memory 202 using a macroblock type indicating a motion vector and a frame or a field output from the variable length decoding unit 201. Motion compensation data is generated from the decoded image.
  • Inverse quantization section 208 performs inverse quantization on the quantized DCT coefficient in the decoded quantization step to restore the DCT coefficient, and outputs the DCT coefficient to inverse orthogonal transform section 209.
  • the inverse orthogonal transform unit 209 refers to the macroblock type indicating the frame or field, performs inverse frequency conversion from the DCT coefficient to the pixel difference value, and outputs the result to the adder 212.
  • the addition unit 212 adds the pixel difference value and the predicted image output from the motion compensation unit 204 to obtain a decoded image.
  • the decoded image is stored in the frame memory 202 when used for reference in subsequent inter-screen prediction.
  • the decoded image is output to the outside as a decoded image signal 141.
  • the overall control unit 240 is, for example, a microcomputer that includes a ROM, a RAM, and the like, and is a part that controls the entire image decoding apparatus 200.
  • the overall control unit 240 controls the processing timing of each unit based on the control signal and the like.
  • FIG. 5 is a flowchart showing a process of encoding a scan pattern in the sequence header 900 of the code bitstream 121 using the image coding apparatus 100 according to the present invention. Note that switching of frames and fields is performed in units of macroblocks. Since the scan sequence of force sequences is switched in units of blocks, it will be referred to as frame blocks and field blocks for convenience in the following description.
  • step S 300 a progressive-sequence flag is encoded into the sequence header 900.
  • Progressive When the value of the sequence flag is “1”, this indicates that all the pictures in the video sequence are progressive, ie, frame pictures.
  • step S302 seq—adaptive—scanning—flag is encoded in the sequence header 900.
  • seq—adaptive—scanning—flag indicates whether or not a plurality of picture powers in the video sequence are using a scan pattern different from the predetermined scan pattern (for example, when the flag value is “1”, the predetermined value is This flag is used to indicate the case where a scan pattern different from the specified scan pattern is used.
  • progressive-sequence scanning pattern This is information indicating the order of coefficient scan patterns within a frame block, and is encoded with the data structure shown in FIGS.
  • progress-sequence scanning pattern is stored in the memory unit 135 in the image encoding device 100 according to the present invention.
  • step S310 if it is determined in step S310 that the value of progressive-sequence flag is not "1" (that is, if a picture in the video sequence includes a field picture), the image encoding device 100 encodes the field-sequence scanning pattern into the sequence header 900 (step S312).
  • the field—sequence scanning pattern is information indicating the order of the scan patterns of all coefficients in one field block, and is encoded with the data structure shown in FIGS. 13 (a) to (c).
  • the field-sequence scanning pattern is stored in the memory unit 135 (step S314).
  • step S318 the image coding apparatus 100 continues coding according to the type of frame block or field block for the pictures in the sequence.
  • step S310 when it is determined in step S310 that the progressive-sequence flag is “1”, the image encoding device 100 encodes all the pictures in the sequence as frame blocks (step S318).
  • FIG. 6 is a flowchart showing a process of decoding a scan pattern in the sequence header 900 of the code bitstream 121 in the image decoding apparatus 200 according to the present invention.
  • step 400 the progressive sequence flag in the sequence header 900 is decoded.
  • step S402 the seq —adaptive—scanning—flag in the sequence header 900 is decoded.
  • step S404 in sequence header 900
  • the swap ; 40 ⁇ is stored in the memory unit 235 in the decoded progressive_sequence scanning pattern image decoding device 200.
  • step S410 when it is determined in step 410 that the value of the progressive-sequence flag is not “1”, the image decoding apparatus 200 decodes the field-sequence scanning pattern from the sequence header 900 (step S412). This field sequence scanning pattern is In step S414, the data is stored in the memory unit 235. Finally, in step S418, the image decoding apparatus 200 decodes the pictures in the sequence according to the type of frame block or field block.
  • step S410 If it is determined in step S410 that! /, Progressive- sequence flag is "1"
  • the image decoding apparatus 200 decodes all the pictures in the sequence as frame blocks (step S418).
  • FIG. 7 is a flowchart showing a scan pattern encoding process in the picture header 904 of the code bitstream 121 output from the image encoding device 100 of the present invention.
  • a progressive-frame flag is encoded in the picture header 904.
  • the progressive-frame flag is “1”, it indicates that the picture is a progressive, that is, a frame-coded picture. In this case, the field scanning pattern is not encoded in the picture header 904! /.
  • step S506 the value of seq-adaptive-scanning-flag is determined.
  • This flag is a flag stored in the sequence header 900 as shown in FIG.
  • step S508 if the value of seq—adaptive—scanning—flag is determined to be “1”, pic—adaptive—scanning—one flag (“scan, pattern—update—flag”) Is encoded into the picture header 904 (step S510).
  • This pic-adaptive-scanning-flag is a flag used to indicate whether a new scan pattern is encoded in the picture header 904 of the encoding target picture. If the pic-adaptive-sea nning-flag force is “l” (step S516: Yes), a new scan pattern is encoded in the picture header 904 in step S518.
  • step S520 a new scan pattern is stored in the memory unit 135 of the image encoding device 100. Further, in step S522, the image encoding device 100 selects a scan pattern from the memory unit 135, and encodes the slice of the target picture using the selected scan pattern (step S528).
  • step S516 If it is determined in step S516 that the pic-adaptive-scanning-flag is not “1”, the image coding apparatus 100 selects a scan pattern from the memory unit 135 ( In step S526) and step S528, the slice is encoded using the selected scan pattern.
  • step S508 If it is determined in step S508 that seq—adaptive—scanning—flag force ⁇ 1 ”, the image coding apparatus 100 selects a predetermined scan pattern. In step S514 and step S528, a slice of the target picture is encoded using the selected predetermined scan pattern.
  • examples of the predetermined scan order are shown in FIGS. 4 (a) to 4 (d).
  • FIG. 8 is a flowchart showing a decoding process of the scan pattern in the picture header 904 of the code bitstream 121 in the image decoding apparatus 200 according to the present invention.
  • step S600 a progressive-frame flag is decoded from the picture header 904.
  • the progressive-frame flag value is “1”
  • the field scanning pattern is not encoded in the picture header 904! /.
  • step S606 the value of seq—adaptive—scanning—flag is determined.
  • This flag is a flag stored in the sequence header 900 as shown in FIG.
  • step S608 when the value of seq—adaptive—scanning-flag is determined to be “1”, pic—adaptive—scanning-flag is decoded from picture header 904 (Ste S610). If the pic-adaptive-scanning-flag is determined to be “1” in step S614, the scan pattern is decoded from the picture header 904 (step S616). In step S618, the decoded scan pattern is stored in the memory unit 235 of the image decoding apparatus 200. Further, in step S620, the image decoding apparatus 200 selects a scan pattern from the memory unit 235, and in step S628, decodes the slice of the target picture using the selected scan pattern.
  • step S614 if it is determined in step S614 that the pic-adaptive-scanning-flag is not “1”, the image decoding apparatus 200 selects a scan pattern from the memory unit 235 and selects the selected scan. Decode the slice using the pattern (step S628).
  • step S608 if it is determined in step S608 that the seq—adaptive—scanning—flag is not “1”, the image decoding apparatus 200 selects a predetermined scan pattern. ( In step S624), a slice of the current picture is decoded using the selected predetermined scan pattern (step S628). Examples of predetermined scan order are shown in FIGS. 4 (a;) to (d).
  • FIG. 9 is a flowchart showing a process of encoding a scan pattern into the slice header 908 of the code bitstream 121 in the image coding apparatus 100 according to the present invention.
  • step S 700 the value of seq—adaptive—scanning—flag is determined.
  • slice—adaptive—scanning—flag is encoded into the slice header 908 in step S704.
  • the slice-adaptive-scanning-flag is a flag used to indicate whether a new scan pattern is encoded in the slice header of the target picture.
  • step S710 the new scan pattern is stored in the memory unit 135 of the image encoding device 100. Further, in step S712, the image encoding apparatus 100 selects a scan pattern from the memory unit 135, and encodes the macroblock of the target picture using the selected scan pattern (step S720).
  • step S 706 if “slice—adaptive—scanning—flag power ⁇ 1”, the image coding apparatus 100 selects a scan pattern from the memory unit 135 and selects the selected scan.
  • the macroblock is encoded using the Yan pattern (step S720).
  • step S702 determines whether the seq—adaptive—scanning—flag is “1” in step S702 (step S702: No).
  • the image coding apparatus 100 selects a predetermined scan pattern. (Step S716), and in Step 7S720, the macroblock of the target picture is decoded using the selected predetermined scan pattern. Examples of predetermined scan order are shown in Figures 4 (a) to (d).
  • FIG. 10 is a flowchart showing a scan pattern decoding process in the slice header 908 of the code bitstream 121 in the image decoding apparatus 200 according to the present invention.
  • step S800 the value of seq—adaptive—scanning—flag is determined. This flag is a flag stored in the sequence header 900 as shown in FIG. 11 (a).
  • slice—adaptive—scanning—flag is decoded from the slice header 908 in step S804.
  • a new scan pattern is decoded from slice header 908 (step S808).
  • step S810 the new scan pattern is stored in the memory unit 235 of the image decoding apparatus 200. Further, in step S812, the image decoding apparatus 200 selects a scan pattern from the memory unit 235, and in step S820, decodes the macroblock of the target slice using the selected scan pattern.
  • step S806 if “slice—adaptive—scanning—flag power ⁇ 1” is not satisfied (step S806: No), the image decoding apparatus 200 selects a scan pattern from the memory unit 235. In step S816, the macro block of the target slice is decoded using the selected scan pattern.
  • step S802 determines whether seq_adaptive_scanning_flag is “1” in step S802 (step S802: No).
  • image decoding apparatus 200 selects a predetermined scan pattern (step S814), In step S820, the macroblock of the target slice is decoded using the selected predetermined scan pattern. Examples of predetermined scan order are shown in Figures 4 (a) to (d).
  • FIGS. 11 (a) to 11 (c) are diagrams showing the stream structure of the code bit stream 121 output from the image coding apparatus 100 according to the present invention.
  • the sequence header 900 in FIG. 10 (a) includes the seq—adaptive—scanning—flag, progressive scan (frame scan) order and field shared by 4 X 4 blocks and 8 X 8 blocks. Stores the scan order.
  • the picture header 904 in FIG. 11 (b), the shared 4 X 4 blocks and 8 X 8 block pic adaptive scanning flag ⁇ off - Roguretsunpusu 3 r Yanokawa and field scan order is stored.
  • the slice header 908 in Fig. 10 (c) contains a slice adaptive scanning flag shared by 4 X 4 blocks and 8 X 8 blocks. Yan order and field scan order are stored.
  • FIGS. 13 (a)-(c) show 4 X 4 blocks and 8 X in sequence header 900, picture header 904 and slice header 908 as shown in FIGS. 11 (a)-(c) above.
  • FIG. 5 is a diagram illustrating a stream structure of a scan pattern for each of 8 blocks.
  • the 4 X 4 block scan pattern consists of 16 scan pattern positions. Each scan pattern position is signed by 4 bits, and the position is numbered in the order of the reverse scan pattern.
  • FIG. 13 (a) shows the relationship between the scan pattern position and the reverse scan pattern position.
  • Figure 13 (c) shows a scan pattern for an 8 x 8 block with 64 scan pattern position forces. Each of these positions is signed with 6 bits and arranged in a reverse scan pattern.
  • FIG. 14 is a flowchart showing a process of selecting a medium scan pattern of a plurality of predetermined scan patterns in the image coding apparatus 100 and the image decoding apparatus 200 according to the present invention.
  • step S1100 the value of progressive-sequence flag is determined.
  • This flag is a flag encoded in the sequence header 900 as shown in FIG. 11 (a).
  • step S1102 if the progressive-sequence flag is “1” (step S1102: Yes), the progressive scan pattern is selected by the processes shown in steps S1116, S1120, SI 124, and SI 126.
  • step S1102 the progressive-sequence flag is “1”! In the case of / (step S 1 102: No), the value of progressive-frame flag is determined (step S 1104). This flag is a flag encoded in the picture header 904 as shown in FIG. 11 (b) above.
  • step S1106 in the case of progressive-frame flag force ⁇ 1 "(step SI 106:
  • Step S 1108 the value of a advanced-pred-mode-disable flag is determined in step S 1108. This flag is a flag stored in the picture header 904, as shown in FIG. 11 (c). [0068] In step SI 110, the advanced-pred-mode-disable flag value is "1"! If / ⁇ (step SI 110: No), the value of the macroblock mbp—field—flag is determined (step S1112). The mbp-field-flag is a flag in the macroblock header, and is used to identify whether the macroblock is a frame coding or a field code. mbp
  • step S 1114: Yes the progressive scan pattern is selected by steps S 1116, S 1120, S 112 4 and SI 126.
  • step S1114: No the field scan pattern is selected by the process shown in steps S1118, S1122, S1128, and S1130.
  • step SI 110 If the value of advanced-pred-mode-disable flag is "1" in step SI 110 (step SI 110: Yes), the steps in steps SI 112 and SI 114 are skipped. Steps S1118, S1122, S1128 and S1130 [shown here] The field scan pattern is selected.
  • step S 1116 the macroblock conversion type is determined.
  • step S1120 in the case of the conversion type force S8 X 8
  • step S1126 a predetermined progressive scan pattern force memory unit 135 (or memory unit 235) force for 8 X 8 blocks is also selected.
  • An example of a predetermined progressive scan pattern is a zigzag scan pattern as shown in Fig. 2 (c). If the conversion type is not 8 ⁇ 8 in step S1 120, the progressive scan pattern force for the 4 ⁇ 4 block S memory unit 135 (or memory unit 235) force is also selected in step S1124.
  • An example of the predetermined progressive scan pattern is a zigzag scan pattern as shown in FIG.
  • step S1118 the conversion type of the macroblock is determined. If the macroblock conversion type is 8 X 8 (step S 1122: No), select the predetermined field scan pattern force memory unit 1 35 (or memory unit 235) for 8 X 8 block in step S 1130. Is done.
  • An example of a predetermined field scan pattern is a field scan pattern as shown in Fig. 2 (d).
  • macroblock If the conversion type is 8 ⁇ 8! / (Step S 1122: Yes), step S 1128! /, The predetermined field scan pattern memory unit 135 for 4 ⁇ 4 block (or Memory section 235) force is also selected.
  • An example of the predetermined field scan pattern is a field scan pattern as shown in FIG.
  • FIG. 15 is a flowchart showing a process of selecting a scan pattern from a plurality of scan patterns stored in advance in the image encoding device 100 and the image decoding device 200 of the present invention.
  • step S 1300 the value of progressive-sequence flag is determined. pro gressive— When the sequence flag is “1” (step IS 1302: Yes), in step SI 316, from multiple progressive scan patterns stored in the memory unit 135 (or memory unit 235, the same shall apply hereinafter) One progressive scan pattern is selected.
  • step S I 304 the value of the progressive-frame flag is determined (step S I 304).
  • step S 1306: Yes the progressive-frame flag is “1” (step S 1306: Yes)
  • step S 1316! / 1 is selected from the plurality of progressive scan patterns stored in the memory unit 1 35.
  • One progressive scan pattern is selected.
  • step S 1306: No the value of advanced-pred-mode-diable flag is determined in step S I 308.
  • step S1310 determines whether the value of advanced—pred—mode—diable flag is “1” (step S1310: No).
  • step S1312 the value of mb p—field—flag of the macroblock is set to step S1312. Is determined.
  • step SI 314: No when the m bp-field-flag is “1” (step SI 314: No), in step SI 318, one field scan pattern is selected from the plurality of field scan patterns stored in the memory unit 135. Selected.
  • step S1310 If the value of advanced-pred-mode-disable flag is "1" in step S1310 (step S1310: Yes), steps S1312 and S1314 are skipped, and in step S1318, the memory unit Multiple field scan patterns stored in 135 One field scan pattern is selected from the screen.
  • FIG. 16 is a flowchart showing a process for storing a scan pattern in the memory unit of the image coding apparatus 100 and the image decoding apparatus 200 according to the present invention.
  • step S 1400 the value of progressive-sequence flag is determined.
  • the progressive_sequence flag is “1” (step S 1402: Yes)
  • step S1416 the progressive scan pattern is stored in the memory unit 135 (or the memory unit 235, the same shall apply hereinafter).
  • step S 1402 when the progressive-sequence flag is not “1” (step S 1402: No), the value of the prog ressive-frame flag is determined (step S 1404). As a result, when the progressive-frame flag is “1” (step S 1406: Yes), the progressive scan pattern is stored in the memory unit 135 in step S 1416! If the progressive-frame flag is not “1” (step S 1406: No), the advanced-pred-mode-diable flag value is determined (step S 1408). As a result, if the value of the advanced-pred-mode-diable flag is not “1” (step S1410: No), the progressive scan pattern is stored in the memory unit 135 in step S1416.
  • step S1410 Yes
  • the field scan pattern is stored in the memory unit 135 in step S1414.
  • FIG. 17 shows a process of selecting a scan pattern corresponding to the size of each macroblock from a plurality of scan patterns stored in the memory units of the image encoding device 100 and the image decoding device 200 of the present invention.
  • FIG. 14 is a flowchart (see FIGS. 14 and 15). In the flowchart shown in FIG. 17, when a scan pattern corresponding to the size of each macroblock is selected, the user can select a scan pattern that is specially set.
  • FIG. 18 is a flowchart showing a process of storing a scan pattern corresponding to the size of each macroblock in the memory units of the image encoding device 100 and the image decoding device 200 of the present invention (FIG. 14). And Figure 16).
  • FIG. 19 is a flowchart showing a process of selecting one progressive scan pattern from a plurality of progressive scan patterns stored in the memory unit of the image encoding device 100 and the image decoding device 200 of the present invention. .
  • step S 1500 the picture type is determined.
  • step S 1502 if the picture type of the target picture is B picture (step S 1502: Yes), use the process defined in steps S1504, S1506, S1508, and S1510. Select the scan pattern of the previous decoded picture.
  • step S 1502 if the picture type of the target picture is not a B picture in step S 1502 (step S 1502: No), the process defined in steps S1512, S 1514, S 1516 and S1518 is used. Select the scan pattern for the reference picture.
  • An example of a B picture is a picture defined by performing bi-directional prediction, as shown in Non-Reference B Picture I10O in FIG.
  • the B picture decoded immediately before is a picture shown in Non-Reference B Picture 1008.
  • the target picture is Reference P Picture 1012 in FIG. 12
  • the preceding reference picture is a P picture indicated by Reference Picture 1006 in FIG.
  • step S1504 the macroblock conversion type is determined. If the conversion type is 8 X 8 in step S150 6 (step S 1506: Yes), in step S 1510, the scan pattern force memory section of the previous decoded picture for 8 X 8 block 135 (or memory unit 235, the same shall apply hereinafter). If the conversion type is not 8 ⁇ 8 (step S 1506: No), in step S 1508, the scan pattern force S of the previous decoding picture is selected from the S memory unit 135 for the 4 ⁇ 4 block.
  • the process for selecting the scan pattern of the immediately preceding reference picture is as follows.
  • step S1514 the macroblock conversion type is determined.
  • step S1514 if the conversion type is 8 X 8 (step S1514: Yes), go to step S1518. And selected from the scan pattern force memory unit 135 of the previous reference picture for the 8 ⁇ 8 block.
  • step S 1516 the scan pattern force memory unit 135 of the immediately preceding reference picture is selected for the 4 ⁇ 4 block.
  • FIG. 20 is a flowchart showing a process for selecting one field scan pattern from among a plurality of field scan patterns stored in the memory units of the image encoding device 100 and the image decoding device 200 of the present invention. It is. This process is the same force as the progressive scan pattern selection process in FIG. 19 above. Scan patterns 1520 to 1526 stored in the memory part 135 (or memory part 235, the same shall apply hereinafter) in FIG. 19 above. The difference is that the scan patterns 162 0 to 1626 included in the memory in FIG.
  • Scan patterns 1620 to 1626 are the field scan pattern of the reference picture immediately before the 4 X 4 block, the field scan pattern of the reference picture immediately before the 8 X 8 block, and the field of the decoding picture immediately before the 4 X 4 block, respectively.
  • FIG. 21 is a flowchart showing a process of storing the progressive scan pattern of the sequence header in the memory unit 135 of the image encoding device 100 and the memory unit 235 of the image decoding device 200 according to the present invention. .
  • step S 1700 the value of the scan pattern is determined.
  • step S1702 a check is made to determine whether the video sequence performs adaptive conversion. If the sequence supports both 4 X 4 and 8 X 8 conversion, as shown in step S 1704, first in step S 1708, the new scan pattern memory section 135 for 8 X 8 block It is copied to scan pattern 1718 and scan pattern 1722, where the 8 ⁇ 8 block scan pattern for the previous reference picture and the previous decoding picture is stored respectively.
  • step S1710 the new scan pattern is copied to the scan pattern 1716 and scan pattern 1720 of the new scan pattern memory unit 135 for 4 X 4 blocks, where the immediately preceding reference picture and the immediately preceding decoded picture are respectively copied. 4 x 4 block scan pattern for Stored.
  • step S1712 the scan pattern 1716 and scan pattern of the scan pattern force memory unit 135 for 4 ⁇ 4 blocks are scanned. 1720, where the 4 ⁇ 4 block scan pattern for the immediately preceding reference picture and the immediately preceding decoded picture is stored, respectively.
  • step S1714 the scan pattern of the 8X8 block scan pattern force memory unit 135 is scanned. Copied to 1718 and scan pattern 1722, where the 8 ⁇ 8 block scan pattern for the previous reference picture and the previous decoded picture, respectively, is stored.
  • FIG. 22 is a flowchart showing a process of storing the field scan pattern of the sequence header in the memory unit 135 of the image encoding device 100 and the memory unit 235 of the image decoding device 200 according to the present invention. .
  • This process has the same force as the progressive scan pattern storage process in FIG. 21 except that the scan patterns 1716 to 1722 in FIG. 21 are replaced with the scan patterns 1816 to 1822, respectively.
  • Scan patterns 1816 to 1822 are the field scan pattern of the reference picture immediately before the 4 X 4 block, the field scan pattern of the reference picture immediately before the 8 X 8 block, and the field scan of the decoded picture immediately before the 4 X 4 block, respectively. Pattern and field scan pattern of the decoded picture immediately before the 8 x 8 block
  • FIG. 23 shows the progressive scan pattern encoded into the picture and slice headers in the memory unit 135 of the image encoding device 100 and the memory unit 235 of the image decoding device 200 according to the present invention. It is a flowchart which shows the process to store.
  • step S1900 the value of the scan pattern is determined.
  • step S 1902 if the target picture is a P or I reference picture (step S 1902: Yes), the scan pattern block type is determined in step SI 904.
  • step S1906 If the scan pattern block type is 4X4 (step S1906: Yes), they are stored as scan pattern 1920 and scan pattern 1924 in scan pattern value memory unit 135, where the previous reference picture and the previous 4 ⁇ 4 block scan pattern for the decoded picture are held, respectively. .
  • step S 1906: No when the scan pattern block type is 8 ⁇ 8 (step S 1906: No), the process proceeds to step S 1910! / And is stored as scan pattern 1922 and scan pattern 1 926 in the scan pattern value memory unit 135. Therefore, the 8 ⁇ 8 block scan pattern for the immediately preceding reference picture and the immediately preceding decoded picture is retained.
  • step S 1912 If the target picture is not a P or I picture (step S 1902: No), the scan pattern block type is determined in step S 1912.
  • step S1912 when the scan pattern block type is 4 ⁇ 4 (step S 1914: Yes), in step S1916, it is stored as the scan pattern 1924 in the scan pattern value memory unit 135, where the previous decoding is performed. 4 x 4 block scan pattern for digitized pictures is retained.
  • step S 1912 when the scan pattern block type is 8 ⁇ 8 (step S1914: No), in step S1918, the scan pattern value is stored as scan pattern 1926 in the memory unit 135, where the scan pattern value for the previous decoded picture is stored. An 8 x 8 block scan pattern is retained.
  • FIG. 24 is a flowchart showing a process of storing the field scan pattern encoded in the picture and slice header in the memory unit of the image encoding device 100 and the image decoding device 200 according to the present invention. .
  • This process is the same as the progressive scan pattern storing process in FIG. 23, except that the scan patterns 1920 to 1926 in FIG. 23 are replaced with the scan patterns 2020 to 2026, respectively.
  • Scan patterns 2020 to 2026 are the field scan pattern of the reference picture immediately before the 4 X 4 block, the field of the reference picture immediately before the 8 X 8 block, the scan pattern, and the field of the decoded picture immediately before the 4 X 4 block, respectively.
  • FIG. 25 shows a memory unit and an image decoding device of the image encoding device according to the present embodiment.
  • 5 is a flowchart showing a process of selecting one progressive scan pattern from a plurality of progressive scan patterns stored in the memory unit of FIG.
  • step S2100 the picture type is determined.
  • step S2102: Yes the temporal position of the target picture is determined in step S2104.
  • step S2108: No the scan pattern of the second reference picture using the process defined in steps S2108, S2110, S2112 and S2114 is used.
  • step S2106: Yes the scan pattern of the first reference picture is selected using the process defined in steps S2116, S2120, S2122 and S2124.
  • the target picture is a B picture
  • the first reference picture for the B picture is Reference P Picture 1006 in Fig. 12.
  • the second reference picture for the B picture is Reference I Picture 1000 in FIG.
  • the first reference picture is a reference picture temporally preceding the display time after the target B picture
  • the second reference picture is a reference picture temporally subsequent to the target B picture.
  • the first reference picture for P or I picture is the reference picture temporally before the target picture.
  • step S2102 if the target picture is not a B picture (step S2102: No), the scan pattern of the first reference picture is selected using the process defined in steps S2116, S2120, S2122 and S2124. To do.
  • step S2108 the macroblock conversion type is determined. If the conversion type is 8 ⁇ 8 (step S2108: Yes), the scan pattern force memory unit 135 of the second reference picture is selected for the 8 ⁇ 8 block in step S2114. If the conversion type is not 8 ⁇ 8 (step S2108: No), in step S2112 the scan pattern power of the immediately preceding decoded picture is selected for the 4 ⁇ 4 block S memory unit 2130 power
  • step S2116 the macroblock conversion type is determined. If the conversion type is 8 ⁇ 8 (step S2120: Yes), the scan pattern force S of the first reference picture is selected from the S memory unit 135 for the 8 ⁇ 8 block in step S2124. On the other hand, if the conversion type is not 8 X 8 (Step S2120: No), in step S2122, the scan pattern force immediately before the reference picture for 4 X 4 blocks S memory unit is selected from: L 3 5.
  • FIG. 26 shows a process of selecting one field scan pattern from a plurality of field scan patterns stored in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment. It is a flowchart to show. This process is the same as the progressive scan pattern selection process in FIG. 25, except that the scan patterns 2126 to 2132 in FIG. 25 are replaced with scan patterns 2226 to 2232, respectively.
  • the scan patterns 2226 to 2232 are respectively a 4 X 4 block first reference picture field scan pattern, an 8 X 8 block first reference picture field scan pattern, and a 4 X 4 block second reference picture field scan. Pattern and 8 x 8 block second reference picture field scan pattern.
  • FIG. 27 is a flowchart showing a process of storing the progressive scan pattern of the sequence header in the memory unit of the image coding apparatus and the memory unit of the image decoding apparatus according to the present embodiment.
  • step S2300 the value of the scan pattern is determined.
  • step S2302 a check is made to determine if the video sequence undergoes adaptive conversion. If the sequence corresponds to both 4 X 4 and 8 X 8 conversions as shown in step S 2304 (step S 2304: Yes), first in step S2308, for the 8 X 8 block New scan patterns are copied as scan patterns 2318 and 2322 in the S memory section, where 8 X 8 block scan patterns for the first reference picture and the second reference picture are stored, respectively.
  • step S2310 it is copied as scan patterns 2316 and 2330 in the new scan pattern memory section for 4 X 4 blocks, where the 4 X 4 block scan patterns for the first reference picture and the second reference picture respectively. Stored.
  • step S2306 if the sequence only supports 4 X 4 conversion (step S2306: Yes) ), Copied in step S2312, as scan patterns 2316 and 2320 in the scan pattern force memory for 4 X 4 blocks, where the 4 X 4 block scan patterns for the first reference picture and the second reference picture are stored, respectively. Is done.
  • step S2314 the scan patterns 2318 and 2322 in the scan pattern force memory unit for 8 X 8 blocks are used. Where 8 ⁇ 8 block scan patterns for the first and second reference pictures are stored, respectively.
  • FIG. 28 is a flowchart showing a process of storing the field scan pattern of the sequence header in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment.
  • This process is the same as the progressive scan pattern storage process in Fig. 27, except that scan patterns 2316 to 2322 in the memory unit in Fig. 27 are replaced with scan patterns 2416 to 2422 in the memory unit, respectively.
  • the scan patterns 2416 to 2422 in the memory part are respectively a field scan pattern of the first reference picture of 4 ⁇ 4 blocks, a field scan pattern of the first reference picture of 8 ⁇ 8 blocks, and a second reference picture of 4 ⁇ 4 blocks.
  • FIG. 29 shows the progressive scan pattern encoded in the picture and slice headers stored in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment. It is a flowchart which shows the process to perform.
  • step S2500 the value of the scan pattern is determined.
  • the scan pattern block type is determined in step S2504.
  • step S2506 when the scan pattern block type is 4 ⁇ 4 (step S2506: Yes), in step S2508, the scan pattern 2516 of the first reference picture in the memory unit is changed to the second reference picture in the memory unit. Copied to the scan pattern 2520. Then, the scan pattern value of the new 4 ⁇ 4 block is stored in the scan pattern of the first reference picture in the memory unit in step S2510.
  • step S2506 If the Yan pattern block type is 8 X 8 (step S2506: No), the scan pattern 2518 of the first reference picture in the memory unit is changed to the scan pattern 2522 of the second reference picture in the memory unit in step S2512. Copied. Then, in the new 8 ⁇ 8 block scan pattern value step S2514, it is stored in the scan pattern 2518 of the first reference picture in the memory unit.
  • FIG. 30 shows a process of storing the field scan pattern encoded in the picture and slice header in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment. It is a flowchart. This process is the same as the progressive scan pattern storage process in Fig. 29 above.
  • the scan patterns 2516 to 2522 in the memory unit in Fig. 25 are replaced by the scan patterns 2616 to 2622 in the memory unit, respectively. Is different.
  • the scan patterns 2616 to 2622 in the memory section are respectively a field scan pattern of the first reference picture of 4 X 4 blocks, a field scan pattern of the first reference picture of 8 X 8 blocks, and a field of the second reference picture of 4 X 4 blocks.
  • FIG. 31 shows a process of selecting one field scan pattern from a plurality of field scan patterns stored in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment. It is a flowchart which shows another embodiment of this.
  • step S2700 the picture type of the target picture is determined.
  • the target picture is a B picture (step S2702: Yes)
  • a check is performed in step S2704 to determine whether the target macroblock includes only the top field sample. If the target macroblock does not include a top field sample (step S2704: No), the bottom field scan pattern of the previous decoded picture is selected using the process defined in steps S2706 to S2714. On the other hand, if the target macroblock includes a top field sample (step S2704: Yes), the process defined in steps S2710 to S2720 is used to execute the previous macroblock. Select the top field scan pattern of the decoded picture.
  • step S2722 determines whether the target macroblock contains only top field samples.
  • step S2722 if the target macroblock contains a top field sample (step S2722: No), the bottom field of the previous reference picture using the process defined in steps S2732 to 2738 is used. Select a scan pattern. If the target macroblock includes a top field sample in step S2722 (step S2722: Yes), the top field scan pattern of the immediately preceding reference picture is selected using the process defined in steps S2724 to S2730.
  • step S2706 the conversion type of the macroblock is determined. If the conversion type is 8 ⁇ 8 (step S2708: Yes), the scan pattern force S of the 8 ⁇ 8 block is selected from the scan pattern 2756 in the memory unit in step S2714. On the other hand, if the conversion type is not 8 ⁇ 8 (step S2708: No), the scan pattern 2752 in the 4 ⁇ 4 block scan pattern force memory unit is selected in step S2712.
  • step S2710 the macroblock conversion type is determined. If the conversion type is 8 ⁇ 8 (step S2716: Yes), a scan pattern of 8 ⁇ 8 blocks is selected from the scan pattern 2754 in the memory unit in step S2720. On the other hand, if the conversion type is not 8 ⁇ 8 (step S2716: No), a scan pattern of 4 ⁇ 4 blocks is selected from the memory unit 2750 in step S2718.
  • step S2732 the macroblock conversion type is determined. If the block conversion is 8 x 8 (step S2734: Yes), the scan pattern of 8 x 8 block is selected from the scan pattern 2748 in the memory in step S2738. Selected. On the other hand, if the conversion type is not 8 ⁇ 8 (step S2734: No), a scan pattern of 4 ⁇ 4 blocks is selected from the scan pattern 2744 in the memory unit in step S2736.
  • step S2724 the macroblock conversion type is determined. If the block conversion is 8 ⁇ 8 (step S2726: Yes), a scan pattern of 8 ⁇ 8 block is selected from the scan pattern 2746 in the memory unit in step S2728. On the other hand, when the block conversion is not 8 ⁇ 8 (step S2726: No), the scan pattern 2742 in the scan pattern force memory unit of 4 ⁇ 4 block is selected in step S2730.
  • FIG. 32 is a flowchart showing a process of storing the progressive scan pattern of the sequence header in the memory unit of the image coding apparatus and the memory unit of the image decoding apparatus according to the present embodiment.
  • step S2800 the value of the scan pattern is determined.
  • step S2802 a check is made to determine if the video sequence performs adaptive conversion. If the sequence supports both 4 X 4 and 8 X 8 conversion as shown in step S2804, first in step S2806, a new scan pattern force for 8 X 8 block ⁇ Scan patterns 2818, 2822, 28 26, and 2830, where the top field of the immediately preceding reference frame, the bottom field of the immediately preceding reference frame, the top field of the immediately preceding decoded frame, and the bottom field of the immediately preceding decoded frame, respectively. 8 x 8 block scan pattern for is stored.
  • step S2808 the data is copied to scan patterns 2816, 2820, 2824, and 2828 in the new scan pattern memory section for the 4 X 4 block, where the top field of the reference frame immediately before and the previous one respectively.
  • the 4 ⁇ 4 block scan pattern for the bottom field of the reference frame, the top field of the immediately preceding decoded frame, and the bottom field of the immediately preceding decoded frame is stored.
  • step S2810 when the sequence only supports 4 X 4 conversion Are copied in step 2812 to scan patterns 2818, 2820, 2824 and 2828 in the new scan pattern force memory section for the 4 X 4 block, where the top field of the immediately preceding reference frame and the bottom field of the immediately preceding reference frame, respectively.
  • step S2810 if the sequence only supports 8 x 8 conversion, in step S2814, a new scan pattern for the 8 x 8 block is first created in the scan pattern in the memory card. 2818, 2822, 2826, and 2830, where the top field of the immediately preceding reference frame, the bottom field of the immediately preceding reference frame, the top field of the immediately preceding decoded frame, and the bottom field of the immediately preceding decoded frame, respectively. 8 x 8 block scan patterns for are stored.
  • FIG. 24 shows the field scan pattern encoded in the picture and slice header, the memory unit of the image encoding device according to the present embodiment and the memory unit of the restored image signal device. It is a flowchart which shows the process stored in.
  • the field parity is stored in the field parity memory location corresponding to the new scan pattern force in the picture or slice header according to the target field picture nature.
  • a new scan pattern is stored in the memory unit including the scan pattern for the top field of the immediately preceding decoded frame.
  • FIG. 33 shows a plurality of field scan patterns stored in the memory unit (not shown) of the image coding apparatus and the memory unit (not shown) of the image decoding apparatus according to the present embodiment.
  • 6 is a flowchart showing another embodiment of a process for selecting one field scan pattern.
  • step S2900 the picture type of the target picture is determined.
  • step S2902 when the target picture is a B picture in step S2902 (step S2902: Yes), the temporal position of the target picture is determined in step S2904. If the target picture is not closer in time to the first reference picture in step S2906, In step S2908, a check is made to determine if the target macroblock contains only the top field sample. If the target macroblock does not include a top field sample (step S2908: No), the bottom field scan pattern of the second reference frame is selected using the process defined by steps S2918 to S2924. On the other hand, if the target macroblock contains a top field sample (step S2908: Yes), the top field scan pattern of the second reference frame is selected using the process defined in steps S2910 to S2916. .
  • step S2906 If it is determined in step S2906 that the target picture is closer to the first reference picture in time (step S2906: Yes), or if it is not the target picture B picture in step S2902, (step S2902). : No), in step S2926! /, A check is made to determine if the target macroblock contains only the top field sample. If the target macroblock does not include a top field sample (step S2926: No), the bottom field scan pattern of the first reference frame is selected using the process defined by steps S2936 to S2942. On the other hand, if the target macroblock includes a top field sample (step S2926: Yes), the top field scan pattern of the first reference frame is selected using the process defined by steps S2928 to S2934.
  • step S2918 the macroblock conversion type is determined. If the conversion type is 8 ⁇ 8 (step S1920: Yes), in step S2924, a scan pattern of 8 ⁇ 8 blocks is selected from the scan pattern 2958 in the memory unit.
  • step S1920 when the conversion type is not 8 ⁇ 8 (step S1920: No), a scan pattern of 4 ⁇ 4 blocks is selected from the scan pattern 2954 in the memory unit in step S2922.
  • step S2910 the macroblock conversion type is determined. Determined. If the block conversion is 8X8 (step S2912: Yes), the scan pattern of the 8X8 block is selected from the scan pattern 2956 in the memory unit in step S2916. On the other hand, if the block conversion is not 8X8 (step S2912: No), in step S2914, the scan pattern 2952 force in the memory unit is selected as the scan pattern of the 4X4 block.
  • step S2936 the macroblock conversion type is determined. If the conversion type is 8X8 (step S2938: Yes), in step 2942, the scan pattern of the 8X8 block and the scan pattern 2950 in the memory unit are also selected. On the other hand, if the conversion type is not 8X8 (step S2938: No), the scan pattern of 4X4 block is selected from the scan pattern 2946 in the memory unit in step S2940.
  • step S2928 the macroblock conversion type is determined. If the conversion type is 8X8 (step S2930: Yes), in step S2934, the scan pattern of the 8X8 block and the scan pattern 2948 in the memory unit are also selected. On the other hand, when the conversion type is not 8X8 (step S2930: No), in step S2932, the scan pattern of 4X4 block is selected from the scan pattern 2944 in the memory unit.
  • Fig. 34 stores the progressive scan pattern of the sequence header in the memory unit (not shown) of the image coding apparatus according to the present embodiment and the memory unit (not shown) of the image decoding device. It is a flowchart which shows a process.
  • step S3000 the value of the scan pattern is determined.
  • step S3002 a check is performed to determine if the video sequence performs adaptive conversion. If the sequence supports both 4X4 and 8X8 conversions as shown in step S3004 (step S3004: Yes), first in step S3006 a new 8 x 8 block Scan pattern force Copied to scan patterns 3020, 3022, 3028 and 3030 in the S memory, where the first reference frame 8x8 block scan patterns for the top field of the frame, the bottom field of the first reference frame, the top field of the second reference frame, and the bottom field of the second reference frame are stored.
  • step S3008 it is copied to scan patterns 3016, 3018, 3024, and 3026 in the new scan pattern memory section for the 4 X 4 block, where the top field and the first reference frame of the first reference frame respectively.
  • step S3012 the scan pattern 3016, 3018 in the new scan pattern force memory unit for 4 X 4 blocks 3024 and 3026 copies, where there are 4 X 4 block scans for the top field of the first reference frame, the bottom field of the first reference frame, the top field of the second reference frame and the bottom field of the second reference frame, respectively.
  • a pattern is stored.
  • step S3014 a new scan pattern for the 8 ⁇ 8 block is first scanned with the scan pattern 3020 in the memory unit. Copied to 3022, 3028 and 3030, where 8 X 8 for the top field of the first reference frame, the bottom field of the first reference frame, the top field of the second reference frame and the bottom field of the second reference frame, respectively Stores the block scan pattern.
  • FIG. 30 is a flowchart showing a process of storing the field scan pattern encoded in the picture and slice header in the memory unit of the picture encoding / decoding apparatus according to the present invention.
  • a new scan pattern in the picture or slice header is stored in the memory location of the corresponding field parity depending on the parity of the target field picture. For example, when the target picture is a top field reference picture, a new scan pattern is stored in the memory unit including the scan pattern for the top field of the first reference frame.
  • a complete that is, 16 in the case of a 4 ⁇ 4 pixel macroblock.
  • a scan pattern is used, a part of the scan pattern may be omitted. In this case, scanning is performed according to a predetermined scanning method.
  • the present invention can be used as an encoding device and a decoding device for multimedia data, and in particular, an image encoding device and an image decoding that perform scanning to make a two-dimensional orthogonal transform coefficient one-dimensional. Available to the device.

Abstract

There are provided an image encoding device, an image decoding device, and others capable of using a scan pattern specially set by a user. The image encoding device and the image decoding device employ a new method for adaptively changing the scan pattern of an orthogonal conversion coefficient. This new scan pattern is encoded in the encoded bit stream of a video sequence and can use an optimal scan pattern for each picture. By adding a small amount of header information, it is possible to select a scan pattern having a preferable compression efficiency of the entropy encoding, thereby increasing the video sequence compression efficiency.

Description

明 細 書  Specification
画像符号化装置、画像復号化装置及びこれらの方法  Image encoding apparatus, image decoding apparatus, and methods thereof
技術分野  Technical field
[0001] 本発明は、画像符号化装置及び画像復号化装置に関し、特に動画像の直交変換 後の 2次元の直交変換係数を 1次元化するためのスキャン方式の制御に関する。 背景技術  TECHNICAL FIELD [0001] The present invention relates to an image encoding device and an image decoding device, and more particularly to control of a scanning method for converting a two-dimensional orthogonal transformation coefficient after orthogonal transformation of a moving image into one dimension. Background art
[0002] 従来、インタレース方式のピクチャを符号ィ匕する際の代表的な形態として、フレーム マクロブロック単位又はフィールドマクロブロック単位で行う形態がある。また、その際 の符号化効率を達成するため、符号ィ匕対象のピクチャには、図 1 (a)に示すように、フ レームマクロブロックとフィールドマクロブロックが混在する場合が少なくな 、。なお、 図 1 (b)は、フレームマクロブロックとフィーノレドマクロブロックの画素構成を模式的に 示した図である。  [0002] Conventionally, as a typical form for encoding interlaced pictures, there is a form performed in units of frame macroblocks or field macroblocks. In addition, in order to achieve the coding efficiency at that time, as shown in FIG. 1 (a), there are few cases where a frame macroblock and a field macroblock are mixed in the picture to be coded. Fig. 1 (b) is a diagram schematically showing the pixel configuration of the frame macroblock and the final macroblock.
[0003] また、従来では、フレームマクロブロック単位又はフィーノレドマクロブロック単位で直 交変換後の直交変換係数を 1次元化する際のスキャン方式には、予め規定されたス キャンパターンが用いられる。図 2 (a)は、従来の 4 X 4画素のフレームマクロブロック 単位で符号ィ匕する際に使用されるジグザグスキャン方式におけるスキャンパターンの 一例であり、図 2 (b)は、従来の 4 X 4画素のフィールドマクロブロック単位で符号化す る際に使用されるフィールドスキャン方式におけるスキャンパターンの一例である。ま た、図 2 (c)は、従来の 8 X 8画素のフレームマクロブロック単位で符号ィ匕する際に使 用されるジグザグスキャン方式におけるスキャンパターンの一例であり、図 2 (d)は、 従来の 8 X 8画素のフィールドマクロブロック単位で符号ィ匕する際に使用されるフィー ルドスキャン方式におけるスキャンパターンの一例である。ここで、左上が低周波数 成分で、右に行くほど水平周波数が高くなり、下に行くほど垂直周波数が高くなるよう に配置されている。  [0003] Conventionally, a scan pattern defined in advance is used as a scanning method when the orthogonal transform coefficient after the orthogonal transform is made one-dimensionally in units of frame macroblocks or finered macroblocks. Fig. 2 (a) is an example of the scan pattern in the zigzag scan method used when encoding in the conventional 4 x 4 pixel frame macroblock unit, and Fig. 2 (b) shows the conventional 4 x 4 scan pattern. It is an example of a scan pattern in a field scan method used when encoding in a field macroblock unit of 4 pixels. Fig. 2 (c) is an example of a scan pattern in the zigzag scan method used when encoding in the conventional frame macroblock unit of 8 x 8 pixels. Fig. 2 (d) It is an example of a scan pattern in a field scan method used when encoding is performed in units of a conventional field macroblock of 8 × 8 pixels. Here, the upper left is a low-frequency component, the horizontal frequency increases toward the right, and the vertical frequency increases toward the bottom.
[0004] 上記のジグザグスキャン方式等は、 MPEG— 1 Video, MPEG— 2 Video, ITU — T H.264といった規格において用いられる一般的なスキャン方式であり、周波数 変換 (MPEG— 1、 MPEG— 2では離散コサイン変換)されたブロック係数を、ェント 口ピー符号ィ匕を用いて有効に圧縮されるような形でスキャンするための方式である。 [0004] The above zigzag scanning method and the like are general scanning methods used in standards such as MPEG-1 Video, MPEG-2 Video, ITU-T H.264, and frequency conversion (MPEG-1, MPEG-2). Block coefficients that have undergone discrete cosine transform) This is a method for scanning in such a way that it is effectively compressed using a mouth pie code.
[0005] 上記の図 2 (a)〜(d)に示すように、 2次元直交変換されたブロックの変換係数は、 図示された値の小さ ヽ係数位置から大き ヽ係数位置へとスキャンされて、その順序で 係数がエントロピー符号化される。  [0005] As shown in Figs. 2 (a) to (d) above, the transform coefficient of the block subjected to the two-dimensional orthogonal transform is scanned from the small coefficient coefficient position of the illustrated value to the large coefficient coefficient position. The coefficients are entropy coded in that order.
非特干文献 1 : ITU- T Recommendation H.2b4, Advanced video coding for generic a udiovisual services , (03/2005)  Non-Patent Literature 1: ITU-T Recommendation H.2b4, Advanced video coding for generic a udiovisual services, (03/2005)
発明の開示  Disclosure of the invention
発明が解決しょうとする課題  Problems to be solved by the invention
[0006] しかしながら、ビデオシーケンスまたはピクチャによっては、ジグザグスキャンパター ンのような予め定められたスキャンパターンが、それらピクチャにとって最良のスキヤ ンパターンとは云えない場合もある。そして、ピクチャの内容によっては、予め定めら れたスキャンパターンと比較して、特別に設定したスキャンパターンの方がより符号ィ匕 効率が良い場合もある。そのような場合、新たなスキャンパターンを符号ィ匕することに より、これらピクチャの符号ィ匕効率を高めることができる。  However, depending on the video sequence or picture, a predetermined scan pattern such as a zigzag scan pattern may not be the best scan pattern for the picture. Depending on the content of the picture, the specially set scan pattern may be more efficient in code encoding than the predetermined scan pattern. In such a case, the code efficiency of these pictures can be increased by encoding a new scan pattern.
[0007] 本発明は、上記課題に鑑みてなされたものであり、ユーザが特別に設定したスキヤ ンパターンも利用することを可能とする画像符号ィ匕装置及び画像復号ィ匕装置等を提 供することを目的とする。  [0007] The present invention has been made in view of the above problems, and provides an image encoding device, an image decoding device, and the like that can also use a scan pattern specially set by a user. For the purpose.
課題を解決するための手段  Means for solving the problem
[0008] 上記課題を解決するために、本発明に係る画像符号ィ匕装置は、ピクチャをマクロブ ロック単位で符号ィ匕する画像符号ィ匕装置であって、ピクチャを符号ィ匕する際に、少な くとも 2以上の種類のマクロブロックを用いて符号ィ匕すべきか否かを判定する判定手 段と、前記判定手段において、前記 2以上のマクロブロックを用いて符号化すべきと 判定された場合は、それぞれの種類のマクロブロック毎に、複数のスキャン方式の中 力 選択されたひとつのスキャン方式を示す情報をヘッダ情報として符号ィ匕すると共 に、前記選択されたそれぞれのスキャン方式に基づいて、各スキャン方式に対応す るマクロブロックの 2次元配列の直交変換係数を 1次元配列の順序で符号化する符 号ィ匕手段とを備えることを特徴とする。  In order to solve the above problems, an image encoding device according to the present invention is an image encoding device that encodes a picture in units of macroblocks. A determination means for determining whether or not to code using at least two or more types of macroblocks, and when the determination means determines that encoding should be performed using the two or more macroblocks For each type of macroblock, information indicating one selected scanning method is encoded as header information, and at the same time, based on the selected scanning method. And an encoding means for encoding orthogonal transformation coefficients of a two-dimensional array of macroblocks corresponding to each scanning method in the order of the one-dimensional array.
[0009] また、本発明に係る画像復号化装置は、ヘッダ情報を有する符号ィ匕ビットストリーム をマクロブロック単位で復号ィ匕する画像復号ィ匕装置であって、前記符号ィ匕ビットストリ ームのヘッダ情報を復号ィ匕し、当該復号化されたヘッダ情報から、ピクチャを構成す る少なくとも 2以上の種類のマクロブロックについて 2次元配列の直交変換係数を 1次 元配列に並び替えるためのスキャン方式を示す情報を抽出し、当該スキャン方式を 示す情報を用いて、 1次元配列順序で符号化された前記符号ィ匕ビットストリームの直 交変換係数を復号化して 2次元配列に変換する復号ィ匕手段を備えることを特徴とす る。 [0009] Also, the image decoding apparatus according to the present invention provides a coded bitstream having header information. An image decoding apparatus that decodes a macroblock unit, decodes the header information of the code bitstream, and forms at least a picture from the decoded header information For two or more types of macroblocks, information indicating the scanning method for rearranging the orthogonal transformation coefficients of the two-dimensional array into a one-dimensional array is extracted, and the information indicating the scanning method is used to code in one-dimensional array order. Decoding means for decoding the orthogonal transform coefficient of the coded bit stream converted into a two-dimensional array is provided.
[0010] 本発明の新規な点は、任意の新たなスキャンパターンをビットストリームのヘッダ情 報に含めることで画像復号ィ匕装置にダウンロードすることを可能としたため、ピクチャ 毎に最適なスキャンパターンを使用できるようにしたことである。これにより、わずかな ヘッダ情報の追カ卩により、エントロピー符号ィ匕の圧縮効率の良いスキャンパターンを 選択でき、より符号ィ匕効率の高い画像圧縮を実現することができる。  [0010] A novel point of the present invention is that an arbitrary new scan pattern can be downloaded to the image decoding apparatus by including it in the header information of the bitstream, so that an optimal scan pattern for each picture can be obtained. It is to be able to use it. As a result, a scan pattern with high compression efficiency of the entropy code can be selected by adding a small amount of header information, and image compression with higher code efficiency can be realized.
[0011] なお、本発明は、上記画像符号ィ匕装置又は画像復号ィ匕装置における特徴的な構 成手段をステップとする画像符号ィヒ方法又は画像復号ィヒ方法として実現したり、そ れらステップをコンピュータ等に実行させるプログラムとして実現したりすることもでき る。そして、そのプログラムを DVD等の記録媒体やインターネット等の伝送媒体を介 して広く流通させることができるのは云うまでもない。さらに、本発明は、上記画像符 号ィ匕装置又は画像復号ィヒ装置の特徴的な構成手段を備える集積回路として実現す ることちでさる。  Note that the present invention can be realized as an image encoding method or an image decoding method in which a characteristic configuration unit in the image encoding apparatus or the image decoding apparatus is used as a step. It can also be realized as a program that causes a computer or the like to execute the steps. Needless to say, the program can be widely distributed via a recording medium such as a DVD or a transmission medium such as the Internet. Furthermore, the present invention can be realized as an integrated circuit including characteristic constituent means of the image encoding device or the image decoding device.
発明の効果  The invention's effect
[0012] 本発明に係る画像符号化装置および画像復号化装置によれば、ユーザが特別に 設定したスキャンパターンも利用することが可能となり、符号ィ匕効率を高めることがで きる。  [0012] According to the image encoding device and the image decoding device according to the present invention, it is possible to use a scan pattern specially set by the user, and it is possible to improve the encoding efficiency.
図面の簡単な説明  Brief Description of Drawings
[0013] [図 1]図 1 (a)は、フレームマクロブロックとフィーノレドマクロブロックが混在する符号ィ匕 対象のピクチャの様子を示す図である。図 1 (b)は、フレームマクロブロックとフィール ドマクロブロックの画素構成を模式的に示した図である。  [0013] FIG. 1 (a) is a diagram showing a state of a picture to be coded, in which a frame macroblock and a finered macroblock are mixed. Figure 1 (b) is a diagram schematically showing the pixel configuration of the frame macroblock and field macroblock.
[図 2]図 2 (a)は、従来の 4 X 4画素のフレームマクロブロック単位で符号ィ匕する際に 使用されるジグザグスキャン方式におけるスキャンパターンの一例である。図 2 (b)は 、従来の 4 X 4画素のフィールドマクロブロック単位で符号ィ匕する際に使用されるジグ ザグスキャン方式におけるスキャンパターンの一例である。図 2 (c)は、従来の 8 X 8 画素のフレームマクロブロック単位で符号ィ匕する際に使用されるジグザグスキャン方 式の一例である。図 2 (d)は、従来の 8 X 8画素のフィールドマクロブロック単位で符 号ィ匕する際に使用されるフィールドスキャン方式におけるスキャンパターンの一例で ある。 [Fig. 2] Fig. 2 (a) shows the case where a conventional 4 x 4 pixel frame macroblock unit is coded. It is an example of the scan pattern in the zigzag scan system used. FIG. 2 (b) is an example of a scan pattern in the zigzag scan method used when encoding is performed in the field macroblock unit of the conventional 4 × 4 pixels. Fig. 2 (c) shows an example of a conventional zigzag scan method used for encoding in units of 8 x 8 pixel frame macroblocks. FIG. 2 (d) shows an example of a scan pattern in the field scan method used when coding in the conventional 8 × 8 pixel field macroblock unit.
[図 3]図 3は、本発明に係る画像符号ィ匕装置の機能構成を示すブロック図である。  FIG. 3 is a block diagram showing a functional configuration of an image encoding device according to the present invention.
[図 4]図 4は、本発明に係る画像復号ィ匕装置の機能構成を示すブロック図である。 FIG. 4 is a block diagram showing a functional configuration of an image decoding apparatus according to the present invention.
[図 5]図 5は、画像符号ィ匕装置におけるシーケンスヘッダ内のスキャンパターンを符 号化するプロセスを示すフローチャートである。 FIG. 5 is a flowchart showing a process for encoding a scan pattern in a sequence header in the image encoding device.
[図 6]図 6は、画像復号ィ匕装置におけるシーケンスヘッダ内のスキャンパターンを復 号化するプロセスを示すフローチャートである。  FIG. 6 is a flowchart showing a process of decoding a scan pattern in a sequence header in the image decoding apparatus.
[図 7]図 7は、画像復号ィ匕装置におけるピクチャヘッダ内のスキャンパターンを符号ィ匕 するプロセスを示すフローチャートである。  FIG. 7 is a flowchart showing a process for encoding a scan pattern in a picture header in the image decoding apparatus.
[図 8]図 8は、画像復号ィ匕装置におけるピクチャヘッダ内のスキャンパターンを復号ィ匕 するプロセスを示すフローチャートである。  FIG. 8 is a flowchart showing a process for decoding a scan pattern in a picture header in the image decoding apparatus.
[図 9]図 9は、画像符号ィ匕装置におけるスライスヘッダ内のスキャンパターンを符号ィ匕 するプロセスを示すフローチャートである。  FIG. 9 is a flowchart showing a process for encoding a scan pattern in a slice header in the image encoding apparatus.
[図 10]図 10は、画像復号ィ匕装置におけるスライスヘッダ内のスキャンパターンを復号 化するプロセスを示すフローチャートである。  FIG. 10 is a flowchart showing a process of decoding a scan pattern in a slice header in the image decoding apparatus.
[図 11]図 11 (a)は、本発明の画像符号ィ匕装置から出力されたビデオシーケンスの符 号ィ匕ビットストリームのストリーム構造を示す図である。図 11 (b)は、本発明の画像符 号ィ匕装置力も出力されたピクチャの符号ィ匕ビットストリームのストリーム構造を示す図 である。図 11 (c)は、本発明の画像符号化装置から出力されたスライスの符号化ビッ トストリームのストリーム構造を示す図である。  [FIG. 11] FIG. 11 (a) is a diagram showing a stream structure of a code bit stream of a video sequence output from the image coding apparatus of the present invention. FIG. 11 (b) is a diagram showing a stream structure of a code bit stream of a picture in which the image code device capability of the present invention is also output. FIG. 11 (c) is a diagram showing the stream structure of the coded bit stream of the slice output from the image coding apparatus of the present invention.
[図 12]図 12は、本発明における第 1、第 2参照ピクチヤと対象ピクチヤとの関係を示 す図である。 [図 13]図 13 (a)は、 4 X 4ブロックのジグザグスキャンパターン用のスキャンパターン 位置と逆スキャンパターン位置の一例を示す図である。図 13 (b)は、本発明の画像 符号ィ匕装置から出力された 4 X 4ブロック用の符号化スキャンパターンのストリーム構 造を示す図である。図 13 (c)は、本発明の画像符号ィ匕装置力も出力された 8 X 8プロ ック用の符号化スキャンパターンのストリーム構造を示す図である。 FIG. 12 is a diagram showing the relationship between the first and second reference pictures and the target picture in the present invention. FIG. 13 (a) is a diagram showing an example of a scan pattern position and a reverse scan pattern position for a 4 × 4 block zigzag scan pattern. FIG. 13 (b) is a diagram showing a stream structure of an encoded scan pattern for 4 × 4 blocks output from the image encoding device of the present invention. FIG. 13 (c) is a diagram showing a stream structure of an encoded scan pattern for an 8 × 8 block in which the image encoding apparatus power of the present invention is also output.
[図 14]図 14は、本発明の画像符号化装置および画像復号化装置において、予め定 められたスキャンパターンを選択するプロセスを示すフローチャートである。  FIG. 14 is a flowchart showing a process of selecting a predetermined scan pattern in the image encoding device and the image decoding device of the present invention.
[図 15]図 15は、本発明の画像符号化装置および画像復号化装置において、メモリ 部力 スキャンパターンを選択するプロセスを示すフローチャートである。  FIG. 15 is a flowchart showing a process of selecting a memory strength scan pattern in the image encoding device and the image decoding device of the present invention.
[図 16]図 16は、本発明の画像符号化装置および画像復号化装置において、メモリ 部にスキャンパターンを格納するプロセスを示すフローチャートである。  FIG. 16 is a flowchart showing a process of storing a scan pattern in a memory unit in the image encoding device and the image decoding device of the present invention.
[図 17]図 17は、本発明の画像符号化装置および画像復号化装置において、メモリ 部から、プログレッシブ、フィールドおよびブロックサイズに対応したスキャンパターン を選択するプロセスを示すフローチャートである。  FIG. 17 is a flowchart showing a process of selecting a scan pattern corresponding to progressive, field, and block size from the memory unit in the image encoding device and the image decoding device of the present invention.
[図 18]図 18は、本発明の画像符号化装置および画像復号化装置において、メモリ 部に、プログレッシブ、フィールドおよびブロックサイズに対応したスキャンパターンを 格納するプロセスを示すフローチャートである。  FIG. 18 is a flowchart showing a process of storing a scan pattern corresponding to progressive, field, and block size in the memory unit in the image encoding device and the image decoding device of the present invention.
[図 19]図 19は、本発明の実施の形態 1に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部からプログレッシブスキャンパターンを選択するプロセスを示す フローチャートである。  FIG. 19 is a flowchart showing a process of selecting a progressive scan pattern from the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention.
[図 20]図 20は、本発明の実施の形態 1に係る画像符号ィ匕装置および画像復号ィ匕装 置にぉ 、て、メモリ部からフィールドスキャンパターンを選択するプロセスを示すフロ 一チャートである。  FIG. 20 is a flowchart showing a process of selecting a field scan pattern from the memory unit for the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention. is there.
[図 21]図 21は、本発明の実施の形態 1に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にシーケンスプログレッシブスキャンパターンを格納するプロセ スを示すフローチャートである。  FIG. 21 is a flowchart showing a process of storing a sequence progressive scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention.
[図 22]図 22は、本発明の実施の形態 1に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にシーケンスフィールドスキャンパターンを格納するプロセスを 示すフローチャートである。 FIG. 22 shows a process of storing a sequence field scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention. It is a flowchart to show.
[図 23]図 23は、本発明の実施の形態 1に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にプログレッシブスキャンパターンを格納するプロセスを示すフ ローチャートである。  FIG. 23 is a flowchart showing a process of storing a progressive scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention.
[図 24]図 24は、本発明の実施の形態 1に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にプログレッシブスキャンパターンを格納するプロセスを示すフ ローチャートである。 FIG. 24 is a flowchart showing a process of storing a progressive scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 1 of the present invention.
[図 25]図 25は、本発明の実施の形態 2に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部からプログレッシブスキャンパターンを選択するプロセスを示す フローチャートである。 FIG. 25 is a flowchart showing a process of selecting a progressive scan pattern from the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
[図 26]図 26は、本発明の実施の形態 2に係る画像符号ィ匕装置および画像復号ィ匕装 置にぉ 、て、メモリ部からフィールドスキャンパターンを選択するプロセスを示すフロ 一チャートである。  FIG. 26 is a flowchart showing a process of selecting a field scan pattern from the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention. is there.
[図 27]図 27は、本発明の実施の形態 2に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にシーケンスプログレッシブスキャンパターンを格納するプロセ スを示すフローチャートである。  FIG. 27 is a flowchart showing a process of storing a sequence progressive scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
[図 28]図 28は、本発明の実施の形態 2に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にシーケンスフィールドパターンを格納するプロセスを示すフロ 一チャートである。  FIG. 28 is a flowchart showing a process of storing a sequence field pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
[図 29]図 29は、本発明の実施の形態 2に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にプログレッシブスキャンパターンを格納するプロセスを示すフ ローチャートである。  FIG. 29 is a flowchart showing a process of storing a progressive scan pattern in a memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
[図 30]図 30は、本発明の実施の形態 2に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にフィールドスキャンパターンを格納するプロセスを示すフロー チャートである。 FIG. 30 is a flowchart showing a process of storing a field scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 2 of the present invention.
[図 31]図 31は、本発明の実施の形態 3に係る画像符号ィ匕装置および画像復号ィ匕装 置にぉ 、て、メモリ部からフィールドスキャンパターンを選択するプロセスを示すフロ 一チャートである。 [図 32]図 32は、本発明の実施の形態 3に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にシーケンスフィールドパターンを格納するプロセスを示すフロ 一チャートである。 FIG. 31 is a flowchart showing a process of selecting a field scan pattern from a memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 3 of the present invention. is there. FIG. 32 is a flowchart showing a process of storing a sequence field pattern in a memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 3 of the present invention.
[図 33]図 33は、本発明の実施の形態 4に係る画像符号ィ匕装置および画像復号ィ匕装 置にぉ 、て、メモリ部からフィールドスキャンパターンを選択するプロセスを示すフロ 一チャートである。  FIG. 33 is a flowchart showing a process of selecting a field scan pattern from the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 4 of the present invention. is there.
[図 34]図 34は、本発明の実施の形態 4に係る画像符号ィ匕装置および画像復号ィ匕装 置において、メモリ部にシーケンスフィールドスキャンパターンを格納するプロセスを 示すフローチャートである。 符号の説明  FIG. 34 is a flowchart showing a process of storing a sequence field scan pattern in the memory unit in the image coding apparatus and the image decoding apparatus according to Embodiment 4 of the present invention. Explanation of symbols
100 画像符号化装置  100 image encoder
101 被符号化画像信号  101 Encoded image signal
102 フレームメモリ  102 frame memory
103 動き検出部  103 Motion detector
104 動き補償部  104 Motion compensation unit
105 直交変換部  105 Orthogonal transformation unit
106 量子化部  106 Quantizer
107 可変長符号化部  107 Variable length encoder
108 逆量子化部  108 Inverse quantization
109 逆直交変換部  109 Inverse orthogonal transform
110 ビットレート制御部  110 Bit rate controller
111 差分器  111 Differentiator
112 加算器  112 Adder
121 符号ィ匕ビットストリーム  121 Code bitstream
130 判定部  130 Judgment part
135 メモリ部  135 Memory section
140 全体制御部  140 Overall control unit
141 復号化画像信号 200 画像復号化装置 141 Decoded image signal 200 Image decoding device
201 可変長復号化部  201 Variable length decoder
202 フレームメモリ  202 frame memory
208 逆量子化部  208 Inverse quantization
209 逆直交変換部  209 Inverse orthogonal transform unit
212 加算器  212 Adder
235 メモリ部  235 Memory section
240 全体制御部  240 Overall control unit
発明を実施するための最良の形態  BEST MODE FOR CARRYING OUT THE INVENTION
[0015] 図 3は、本発明に係る画像符号化装置 100の機能構成を示すブロック図である。こ の画像符号ィ匕装置 100は、ピクチャを符号ィ匕する際に種類の異なるマクロブロックが 混在する場合であっても、それらに対応する好適な直交変換係数のスキャンを行うた めのヘッダ情報についても符号ィ匕を行う装置であり、判定部 130、直交変換部 105、 量子化部 106、可変長符号化部 107、メモリ部 135、逆量子化部 108、逆直交変換 部 109、フレームメモリ 102、動き検出部 103、動き補償部 104及びビットレート制御 部 110等を備えている。なお、メモリ部 135は、可変長符号ィ匕部 107の指示により、ス キャン方式に関する情報のリード Zライトを行う。  FIG. 3 is a block diagram showing a functional configuration of the image encoding device 100 according to the present invention. This image encoding device 100 is a header information for scanning suitable orthogonal transform coefficients corresponding to even when different types of macroblocks are mixed when encoding a picture. Is also a device that performs code coding, and includes a determination unit 130, an orthogonal transformation unit 105, a quantization unit 106, a variable length coding unit 107, a memory unit 135, an inverse quantization unit 108, an inverse orthogonal transformation unit 109, a frame memory 102, a motion detection unit 103, a motion compensation unit 104, a bit rate control unit 110, and the like. Note that the memory unit 135 performs Z-reading of information related to the scanning method according to an instruction from the variable-length code key unit 107.
[0016] 判定部 130は、入力された被符号化画像信号 101の特徴に基づき、符号化する際 のマクロブロックの種類等(例えば、ピクチャにフレームマクロブロックとフィールドマク ロブロックを混在させる力否力、当該マクロブロックはフレームマクロブロック力フィー ルドマクロブロックの何れであるか等)を判定 (又は決定)し、この判定結果を直交変 換部 105、動き検出部 103、逆直交変換部 109、可変長符号化部 107に通知する。  [0016] Based on the characteristics of the input encoded image signal 101, the determination unit 130 determines the type of macroblock at the time of encoding, etc. (for example, the ability to mix a frame macroblock and a field macroblock in a picture) And whether the corresponding macroblock is a frame macroblock force field macroblock, etc.), and the result of the determination is converted into an orthogonal transform unit 105, a motion detection unit 103, an inverse orthogonal transform unit 109, The variable length coding unit 107 is notified.
[0017] 直交変換部 105は、受信した被符号化画像信号 101 (画像信号データ)に対して、 マクロブロック単位もしくはマクロブロックを構成するブロック単位で離散コサイン変換 [0017] The orthogonal transform unit 105 performs discrete cosine transform on the received encoded image signal 101 (image signal data) in units of macroblocks or in units of blocks constituting the macroblock.
(DCT: Discrete Cosine Transform)を行い、 DCT係数を生成して量子化部 106に出 力する。ここで、 Klntra coded)ピクチャのフレームについては、画面内の画素値に対 し DCT演算が行われる。 P(Predictive coded)ピクチャのフレームについては、時間的 に過去に位置する Iピクチャ又は Pピクチヤに基づ!/、て前方向予測符号化した予測誤 差の画素値に対し DCT演算が行われる。 B(Bidirectionally)ピクチャのフレームにつ いては、時間的に前後に位置する Iピクチャ又は Pピクチャに基づ!/、て両方向予測符 号ィ匕した予測誤差の画素値に対し DCT演算が行われる。なお、直交変換部 105で は、判定部 130で判定した結果のマクロブロックタイプ (フレームマクロブロックまたは フィールドマクロブロック)に基づき、フレームもしくはフィールドのそれぞれに対応す る直交変換を行う。 (DCT: Discrete Cosine Transform) is performed, DCT coefficients are generated, and output to the quantization unit 106. Here, for the frame of Klntra coded picture, DCT operation is performed on the pixel values in the screen. For frames of P (Predictive coded) pictures, prediction errors based on forward prediction coding based on I pictures or P pictures located in the past in time! A DCT operation is performed on the difference pixel value. For B (Bidirectionally) picture frames, DCT calculation is performed on the prediction error pixel values based on bi-directional prediction codes based on I / P pictures located before and after in time! . The orthogonal transform unit 105 performs orthogonal transform corresponding to each frame or field based on the macroblock type (frame macroblock or field macroblock) determined by the determination unit 130.
[0018] 量子化部 106は、直交変換部 105から入力した DCT係数に対し、マクロブロック毎 にビットレート制御部 110から受信した量子化ステップ (又は量子化パラメータでもよ い。)で量子化を行い、可変長符号ィ匕部 107及び逆量子化部 108に出力する。可変 長符号ィ匕部 107は、量子化部 106から入力した量子化された DCT係数について判 定部 130で判定した結果のマクロブロックタイプ (フレームマクロブロックまたはフィー ルドマクロブロック)に基づいたスキャン順序をメモリ部 135から取得し、そのスキャン 順序で量子化された DCT係数の可変長符号化及び多重化を行 ヽ、出力バッファ( 図示せず)にビットストリームを出力する。また、可変長符号ィ匕部 107は、量子化され た DCT係数以外に、動きベクトルや量子化ステップ、マクロブロックタイプ等も符号ィ匕 し、ビットストリームを構成する。なお、マクロブロックタイプに基づいたスキャン順序は あら力じめメモリ部 135に格納されており、ピクチャの最初のヘッダ情報として符号ィ匕 される。  [0018] Quantization section 106 quantizes the DCT coefficients input from orthogonal transform section 105 in the quantization step (or may be a quantization parameter) received from bit rate control section 110 for each macroblock. And output to the variable-length code unit 107 and the inverse quantization unit 108. The variable length code key 107 is a scan order based on the macro block type (frame macro block or field macro block) determined by the determination unit 130 for the quantized DCT coefficient input from the quantization unit 106. Is obtained from the memory unit 135, variable length coding and multiplexing of the DCT coefficients quantized in the scan order are performed, and a bit stream is output to an output buffer (not shown). In addition to the quantized DCT coefficients, the variable length code key unit 107 codes a motion vector, a quantization step, a macro block type, and the like to form a bit stream. The scan order based on the macroblock type is preliminarily stored in the memory unit 135 and is encoded as the first header information of the picture.
[0019] 逆量子化部 108は、量子化部 106から受信した量子化された DCT係数に対して 逆量子化演算を行い、逆直交変換部 109に出力する。逆直交変換部 109は、逆量 子化部 108から入力した逆量子化された DCT係数に対し、判定部 130で判定した 結果のマクロブロックタイプ(フレームマクロブロックまたはフィーノレドマクロブロック)に 基づき、フレームもしくはフィールドのそれぞれに対応する逆直交変換演算を行って 画像信号データを再現し、フレームメモリ 102に出力する。  Inverse quantization section 108 performs an inverse quantization operation on the quantized DCT coefficient received from quantization section 106 and outputs the result to inverse orthogonal transform section 109. The inverse orthogonal transform unit 109 performs the inverse quantized DCT coefficient input from the dequantization unit 108 based on the macro block type (frame macro block or final red macro block) determined by the determination unit 130. Image signal data is reproduced by performing an inverse orthogonal transform operation corresponding to each frame or field and output to the frame memory 102.
[0020] フレームメモリ 102は、 Iピクチャ又は Pピクチャの復号ィ匕された画像信号データと動 き補償部 104で生成された動き補償データとを加算して格納する。動き検出部 103 は、フレームメモリ 102に格納されている参照画像からフレーム単位もしくはフィール ド単位の動きベクトルを検出し、この動きベクトルを表すデータを動き補償部 104と可 変長符号化部 107に出力する。 The frame memory 102 adds and stores the decoded image signal data of the I picture or P picture and the motion compensation data generated by the motion compensation unit 104. The motion detection unit 103 detects a motion vector in units of frames or fields from the reference image stored in the frame memory 102, and the data representing the motion vector can be transmitted to the motion compensation unit 104. Output to variable length coding section 107.
[0021] 動き補償部 104は、 Pピクチャ又は Bピクチャの符号化のためにフレームメモリ 102 に格納されている参照画像と動き検出部 103から入力した動きベクトルを表すデータ に基づ!/、て動き補償データ(参照画像データ)を生成する。ビットレート制御部 110は 、可変長符号ィ匕部 107から発生ビット数を受信し、この発生ビット数に基づいて、量 子化ステップを決定し、この量子化ステップを量子化部 106と可変長符号ィ匕部 107 に送信する。 [0021] The motion compensation unit 104 is based on the reference image stored in the frame memory 102 for encoding the P picture or the B picture and the data representing the motion vector input from the motion detection unit 103! /, Motion compensation data (reference image data) is generated. The bit rate control unit 110 receives the number of generated bits from the variable length code key unit 107, determines a quantization step based on the number of generated bits, and performs this quantization step with the quantization unit 106 and the variable length. The data is transmitted to the code key 107.
[0022] 全体制御部 140は、例えば、 ROMや RAM等を備えるマイクロコンピュータ等であ り、画像符号化装置 100全体の制御を行う部分である。全体制御部 140は、制御信 号等に基づ 、て、各部の処理タイミングの制御等を行う。  The overall control unit 140 is, for example, a microcomputer that includes a ROM, a RAM, and the like, and is a part that controls the entire image coding apparatus 100. The overall control unit 140 controls the processing timing of each unit based on the control signal and the like.
[0023] 図 4は、本発明に係る画像復号ィ匕装置 200の機能構成を示すブロック図である。こ の画像復号ィ匕装置 200は、上記画像符号ィ匕装置 100から出力された符号ィ匕ビットス トリーム 121に含まれる、符号ィ匕時における複数の種類のマクロブロックに対応するス キャン方式を表す情報の復号し、当該復号されたスキャン方式を表す情報を用いて 直交変換係数の逆スキャンおよび復号ィ匕を行う装置であり、可変長復号化部 201、メ モリ部 235、動き補償部 204、加算部 212、フレームメモリ 202、逆量子化部 208およ び逆直交変換部 209等を備えている。なお、メモリ部 235は、可変長復号化部 201 の指示により、スキャン方式に関する情報のリード Zライトを行う。  FIG. 4 is a block diagram showing a functional configuration of the image decoding apparatus 200 according to the present invention. The image decoding device 200 represents a scanning method corresponding to a plurality of types of macroblocks included in the code bitstream 121 output from the image coding device 100, at the time of coding. A device that decodes information and performs inverse scanning and decoding of orthogonal transform coefficients using information representing the decoded scanning method, variable length decoding section 201, memory section 235, motion compensation section 204, An adder 212, a frame memory 202, an inverse quantization unit 208, an inverse orthogonal transform unit 209, and the like are provided. Note that the memory unit 235 reads and writes information related to the scan method according to an instruction from the variable length decoding unit 201.
[0024] 符号ィ匕ビットストリーム 121が入力されると、可変長復号化部 201は、入力された符 号ィ匕ビットストリーム 121から符号ィ匕されている量子化された DCT係数、動きベクトル 、量子化ステップおよびマクロブロックタイプを分離 ·復号ィ匕し、逆量子化部 208、動 き補償部 204、逆直交変換部 209に出力する。また、マクロブロックタイプ (フレーム マクロブロックまたはフィールドマクロブロック)に基づいたスキャン順序を復号化し、メ モリ部 235に格納する。量子化された DCT係数を復号化する際には、復号化したマ クロブロックタイプに基づ 、たスキャン順序をメモリ部 235から取得し、そのスキャン順 序で量子化された DCT係数の可変長復号化を行う。  [0024] When the code bit stream 121 is input, the variable length decoding unit 201 receives the quantized DCT coefficient, the motion vector, and the code encoded from the input code bit stream 121. The quantization step and the macroblock type are separated and decoded, and output to the inverse quantization unit 208, motion compensation unit 204, and inverse orthogonal transform unit 209. Also, the scan order based on the macroblock type (frame macroblock or field macroblock) is decoded and stored in the memory unit 235. When decoding the quantized DCT coefficients, the scan order based on the decoded macroblock type is obtained from the memory unit 235, and the variable length of the DCT coefficients quantized in the scan order is obtained. Decrypt.
[0025] 動き補償部 204は、可変長復号ィ匕部 201から出力される動きベクトルおよびフレー ムもしくはフィールドを示すマクロブロックタイプを用いて、フレームメモリ 202に格納さ れて ヽる復号化画像から動き補償データを生成する。 The motion compensation unit 204 is stored in the frame memory 202 using a macroblock type indicating a motion vector and a frame or a field output from the variable length decoding unit 201. Motion compensation data is generated from the decoded image.
[0026] 逆量子化部 208は、量子化された DCT係数を復号した量子化ステップで逆量子 化して DCT係数に復元し、逆直交変換部 209に出力する。逆直交変換部 209は、 フレームもしくはフィールドを示すマクロブロックタイプを参照し、 DCT係数から画素 差分値に逆周波数変換し、加算部 212に出力する。加算部 212は、画素差分値と動 き補償部 204から出力される予測画像とを加算して復号化画像とする。この復号ィ匕 画像は、以降の画面間予測での参照に使用する場合、フレームメモリ 202に格納さ れる。また、この復号化画像は復号化画像信号 141として外部に出力される。  [0026] Inverse quantization section 208 performs inverse quantization on the quantized DCT coefficient in the decoded quantization step to restore the DCT coefficient, and outputs the DCT coefficient to inverse orthogonal transform section 209. The inverse orthogonal transform unit 209 refers to the macroblock type indicating the frame or field, performs inverse frequency conversion from the DCT coefficient to the pixel difference value, and outputs the result to the adder 212. The addition unit 212 adds the pixel difference value and the predicted image output from the motion compensation unit 204 to obtain a decoded image. The decoded image is stored in the frame memory 202 when used for reference in subsequent inter-screen prediction. The decoded image is output to the outside as a decoded image signal 141.
[0027] 全体制御部 240は、例えば、 ROMや RAM等を備えるマイクロコンピュータ等であ り、画像復号化装置 200全体の制御を行う部分である。全体制御部 240は、制御信 号等に基づ 、て、各部の処理タイミングの制御等を行う。  The overall control unit 240 is, for example, a microcomputer that includes a ROM, a RAM, and the like, and is a part that controls the entire image decoding apparatus 200. The overall control unit 240 controls the processing timing of each unit based on the control signal and the like.
[0028] 図 5は、本発明に係る画像符号ィ匕装置 100を用いて、符号ィ匕ビットストリーム 121の シーケンスヘッダ 900にスキャンパターンを符号化するプロセスを示すフローチャート である。なお、フレームとフィールドの切替えはマクロブロック単位で行われる力 シー ケンスのスキャンパターンはブロック単位で切替えるため、今後の説明では、便宜上 、フレームブロック、フィールドブロックと呼ぶことにする。  FIG. 5 is a flowchart showing a process of encoding a scan pattern in the sequence header 900 of the code bitstream 121 using the image coding apparatus 100 according to the present invention. Note that switching of frames and fields is performed in units of macroblocks. Since the scan sequence of force sequences is switched in units of blocks, it will be referred to as frame blocks and field blocks for convenience in the following description.
[0029] まず、ステップ S 300にお 、て、 progressive—sequence flagがシーケンスヘッダ 900 に符号化される。 progressive— sequence flagの値が「1」の場合は、そのビデオシーケ ンス内のピクチヤがすべてプログレッシブすなわちフレームピクチャであることを示し ている。  First, in step S 300, a progressive-sequence flag is encoded into the sequence header 900. Progressive—When the value of the sequence flag is “1”, this indicates that all the pictures in the video sequence are progressive, ie, frame pictures.
[0030] 次に、ステップ S302において、 seq— adaptive— scanning— flagがシーケンスヘッダ 900に符号化される。 seq— adaptive— scanning— flagは、ビデオシーケンス内の複数 のピクチャ力 予め定められたスキャンパターンとは異なるスキャンパターンを用いて いるかどうかを示す(例えば、フラグの値が「1」のとき、予め定められたスキャンパター ンとは異なるスキャンパターンを用いて 、る場合を示す。 )ために用いられるフラグで ある。  Next, in step S302, seq—adaptive—scanning—flag is encoded in the sequence header 900. seq—adaptive—scanning—flag indicates whether or not a plurality of picture powers in the video sequence are using a scan pattern different from the predetermined scan pattern (for example, when the flag value is “1”, the predetermined value is This flag is used to indicate the case where a scan pattern different from the specified scan pattern is used.
[0031] 次【こ、スァップ: 5304【こお ヽて、 progressive― sequence scanning pattern»、、ン' ~~ケ ンスへッタ 900に符号ィ匕 れる。 progressive sequence scanning patternは、 1つの フレームブロック内における係数のスキャンパターンの順序を示す情報であり、図 13 (a)〜(c)に示すデータ構造で符号化される。さら〖こ、ステップ S306では、 progressiv e— sequence scanning patternが、本発明に係る画像符号化装置 100内のメモリ部 1 35〖こ格糸内される。 [0031] Next: 5304 [Sequentially, progressive-sequence scanning pattern]. progressive sequence scanning pattern This is information indicating the order of coefficient scan patterns within a frame block, and is encoded with the data structure shown in FIGS. In step S306, progress-sequence scanning pattern is stored in the memory unit 135 in the image encoding device 100 according to the present invention.
[0032] このあと、ステップ S310において、 progressive— sequence flagの値が「1」でないと 判定された場合 (即ち、そのビデオシーケンス内のピクチヤにフィールドピクチャが含 まれている場合)、画像符号化装置 100は、 field— sequence scanning patternをシー ケンスヘッダ 900に符号化する(ステップ S312)。 field— sequence scanning pattern は、 1つのフィールドブロック内におけるすべての係数のスキャンパターンの順序を示 す情報であり、図 13 (a)〜(c)に示すデータ構造で符号化される。次に、 field— sequ ence scanning patternは、メモリ部 135に格納される(ステップ S314)。最後に、ステツ プ S318において、画像符号化装置 100は、シーケンス内のピクチヤについて、フレ ームブロックもしくはフィールドブロックのタイプに応じた符号ィ匕を継続する。  [0032] After this, if it is determined in step S310 that the value of progressive-sequence flag is not "1" (that is, if a picture in the video sequence includes a field picture), the image encoding device 100 encodes the field-sequence scanning pattern into the sequence header 900 (step S312). The field—sequence scanning pattern is information indicating the order of the scan patterns of all coefficients in one field block, and is encoded with the data structure shown in FIGS. 13 (a) to (c). Next, the field-sequence scanning pattern is stored in the memory unit 135 (step S314). Finally, in step S318, the image coding apparatus 100 continues coding according to the type of frame block or field block for the pictures in the sequence.
[0033] 一方、ステップ S310において、 progressive— sequence flagが「1」と判定された場合 、画像符号化装置 100は、シーケンス内のピクチャを全てフレームブロックとして符号 化する(ステップ S318)。  On the other hand, when it is determined in step S310 that the progressive-sequence flag is “1”, the image encoding device 100 encodes all the pictures in the sequence as frame blocks (step S318).
[0034] 図 6は、本発明に係る画像復号ィ匕装置 200において、符号ィ匕ビットストリーム 121の シーケンスヘッダ 900におけるスキャンパターンを復号化するプロセスを示すフロー チャートである。  FIG. 6 is a flowchart showing a process of decoding a scan pattern in the sequence header 900 of the code bitstream 121 in the image decoding apparatus 200 according to the present invention.
[0035] まず、ステップ 400において、シーケンスヘッダ 900における progressive— sequenc e flagが復号化される。次に、ステップ S402では、シーケンスヘッダ 900における seq —adaptive— scanning— flagが復号化される。次に、ステップ S404において、シーケ ンスへッタ 900におけ First, in step 400, the progressive sequence flag in the sequence header 900 is decoded. Next, in step S402, the seq —adaptive—scanning—flag in the sequence header 900 is decoded. Next, in step S404, in sequence header 900
らに、スァップ; ί40ο は、復 ィ匕 れた progressive _ sequence scanning pattern力 画像復号ィ匕装置 200内のメモリ部 235に格納される。  Further, the swap ; 40ο is stored in the memory unit 235 in the decoded progressive_sequence scanning pattern image decoding device 200.
[0036] 次に、ステップ 410において、 progressive— sequence flagの値が「1」でないと判定 された場合、画像復号化装置 200は、 field— sequence scanning patternをシーケンス ヘッダ 900から復号ィ匕する(ステップ S412)。この field sequence scanning patternは 、ステップ S414において、メモリ部 235に格納される。最後に、ステップ S418におい て、画像復号化装置 200は、シーケンス内のピクチャを、フレームブロックもしくはフィ 一ルドブロックのタイプに応じて復号ィ匕する。 Next, when it is determined in step 410 that the value of the progressive-sequence flag is not “1”, the image decoding apparatus 200 decodes the field-sequence scanning pattern from the sequence header 900 (step S412). This field sequence scanning pattern is In step S414, the data is stored in the memory unit 235. Finally, in step S418, the image decoding apparatus 200 decodes the pictures in the sequence according to the type of frame block or field block.
[0037] なお、ステップ S410にお!/、て、 progressive— sequence flagが「1」と判定された場合 [0037] If it is determined in step S410 that! /, Progressive- sequence flag is "1"
、画像復号化装置 200は、シーケンス内のピクチャを全てフレームブロックとして復号 化する(ステップ S418)。 The image decoding apparatus 200 decodes all the pictures in the sequence as frame blocks (step S418).
[0038] 図 7は、本発明の画像符号ィ匕装置 100から出力される符号ィ匕ビットストリーム 121の ピクチャヘッダ 904におけるスキャンパターンの符号化プロセスを示すフローチャート である。 FIG. 7 is a flowchart showing a scan pattern encoding process in the picture header 904 of the code bitstream 121 output from the image encoding device 100 of the present invention.
[0039] まず、ステップ S 500にお 、て、 progressive— frame flagがピクチャヘッダ 904に符 号化される。この progressive— frame flagが「1」の場合は、そのピクチヤがプログレッシ ブすなわちフレーム符号化ピクチャであることを示している。この場合、 field scanning patternは、ピクチャヘッダ 904に符号化されな!/、。  [0039] First, in step S500, a progressive-frame flag is encoded in the picture header 904. When the progressive-frame flag is “1”, it indicates that the picture is a progressive, that is, a frame-coded picture. In this case, the field scanning pattern is not encoded in the picture header 904! /.
[0040] 次に、ステップ S 506では、 seq— adaptive— scanning— flagの値が判定される。この フラグは、図 11 (a)に示す通り、シーケンスヘッダ 900に格納されるフラグである。  [0040] Next, in step S506, the value of seq-adaptive-scanning-flag is determined. This flag is a flag stored in the sequence header 900 as shown in FIG.
[0041] さらに、ステップ S508において、 seq— adaptive— scanning— flagの値が「1」と判定 れた場合、 pic一 adaptive一 scanning一 flag (「scan一 pattern一 update一 flag」と ヽっ 。)がピクチャヘッダ 904に符号化される(ステップ S510)。この pic— adaptive— scann ing— flagは、新たなスキャンパターンが、符号化対象ピクチャのピクチャヘッダ 904に 符号化されるか否かを示すために用いられるフラグである。もし、 pic— adaptive— sea nning— flag力 「l」の場合は(ステップ S516 : Yes)、ステップ S518において、新たな スキャンパターンがピクチャヘッダ 904に符号化される。  [0041] Further, in step S508, if the value of seq—adaptive—scanning—flag is determined to be “1”, pic—adaptive—scanning—one flag (“scan, pattern—update—flag”) Is encoded into the picture header 904 (step S510). This pic-adaptive-scanning-flag is a flag used to indicate whether a new scan pattern is encoded in the picture header 904 of the encoding target picture. If the pic-adaptive-sea nning-flag force is “l” (step S516: Yes), a new scan pattern is encoded in the picture header 904 in step S518.
[0042] 次に、ステップ S520において、新たなスキャンパターンが画像符号化装置 100のメ モリ部 135に格納される。さらに、ステップ S522において、画像符号ィ匕装置 100は、 メモリ部 135からスキャンパターンを選択し、選択されたスキャンパターンを用いて、 対象ピクチヤのスライスを符号化する (ステップ S528)。  Next, in step S520, a new scan pattern is stored in the memory unit 135 of the image encoding device 100. Further, in step S522, the image encoding device 100 selects a scan pattern from the memory unit 135, and encodes the slice of the target picture using the selected scan pattern (step S528).
[0043] なお、ステップ S516において、 pic— adaptive— scanning— flagが「1」でないと判定 された場合、画像符号ィ匕装置 100は、メモリ部 135からスキャンパターンを選択して( ステップ S526)、ステップ S528において、選択されたスキャンパターンを用いてスラ イスを符号化する。 If it is determined in step S516 that the pic-adaptive-scanning-flag is not “1”, the image coding apparatus 100 selects a scan pattern from the memory unit 135 ( In step S526) and step S528, the slice is encoded using the selected scan pattern.
[0044] また、ステップ S508にお 、て、 seq— adaptive— scanning— flag力^ 1」でな 、と判定 された場合、画像符号ィ匕装置 100は、予め定められたスキャンパターンを選択して( ステップ S514)、ステップ S528において、選択された予め定められたスキャンパター ンを用いて対象ピクチヤのスライスを符号ィ匕する。ここで、予め定められたスキャン順 の例は、上記図 4 (a)〜(d)に示されている。  If it is determined in step S508 that seq—adaptive—scanning—flag force ^ 1 ”, the image coding apparatus 100 selects a predetermined scan pattern. In step S514 and step S528, a slice of the target picture is encoded using the selected predetermined scan pattern. Here, examples of the predetermined scan order are shown in FIGS. 4 (a) to 4 (d).
[0045] 図 8は、本発明に係る画像復号ィ匕装置 200における、符号ィ匕ビットストリーム 121の ピクチャヘッダ 904におけるスキャンパターンの復号化プロセスを示すフローチャート である。  FIG. 8 is a flowchart showing a decoding process of the scan pattern in the picture header 904 of the code bitstream 121 in the image decoding apparatus 200 according to the present invention.
[0046] まず、ステップ S600にお 、て、 progressive— frame flagがピクチャヘッダ 904から復 号ィ匕される。なお、 progressive— frame flagの値が「1」の場合は、 field scanning patter nはピクチャヘッダ 904に符号化されな!/、。  [0046] First, in step S600, a progressive-frame flag is decoded from the picture header 904. When the progressive-frame flag value is “1”, the field scanning pattern is not encoded in the picture header 904! /.
[0047] 次に、ステップ S606では、 seq— adaptive— scanning— flagの値が判定される。この フラグは、図 11 (a)に示す通り、シーケンスヘッダ 900に格納されるフラグである。  [0047] Next, in step S606, the value of seq—adaptive—scanning—flag is determined. This flag is a flag stored in the sequence header 900 as shown in FIG.
[0048] これにより、ステップ S608にお 、て、 seq— adaptive— scanning— flagの値が「1」と判 定された場合、 pic— adaptive— scanning— flagがピクチャヘッダ 904から復号化され る(ステップ S610)。また、ステップ S614において、 pic— adaptive— scanning— flagが 「1」と判定された場合、スキャンパターンがピクチャヘッダ 904から復号ィ匕される (ステ ップ S616)。さらに、ステップ S618において、復号化されたスキャンパターンが画像 復号ィ匕装置 200のメモリ部 235に格納される。さらに、ステップ S620において、画像 復号化装置 200は、メモリ部 235からスキャンパターンを選択し、ステップ S628にお いて、選択されたスキャンパターンを用いて、対象ピクチヤのスライスを復号化する。  [0048] Thereby, in step S608, when the value of seq—adaptive—scanning-flag is determined to be “1”, pic—adaptive—scanning-flag is decoded from picture header 904 ( Step S610). If the pic-adaptive-scanning-flag is determined to be “1” in step S614, the scan pattern is decoded from the picture header 904 (step S616). In step S618, the decoded scan pattern is stored in the memory unit 235 of the image decoding apparatus 200. Further, in step S620, the image decoding apparatus 200 selects a scan pattern from the memory unit 235, and in step S628, decodes the slice of the target picture using the selected scan pattern.
[0049] なお、ステップ S614において、 pic— adaptive— scanning— flagが「1」でないと判定 された場合、画像復号ィ匕装置 200は、メモリ部 235からスキャンパターンを選択して、 選択されたスキャンパターンを用いてスライスを復号ィ匕する (ステップ S628)。  Note that if it is determined in step S614 that the pic-adaptive-scanning-flag is not “1”, the image decoding apparatus 200 selects a scan pattern from the memory unit 235 and selects the selected scan. Decode the slice using the pattern (step S628).
[0050] 一方、ステップ S608にお 、て、 seq— adaptive— scanning— flagが「1」でな 、と判定 された場合、画像復号ィ匕装置 200は、予め定められたスキャンパターンを選択して( ステップ S624)、選択された予め定められたスキャンパターンを用いて対象ピクチャ のスライスを復号ィ匕する(ステップ S628)。予め定められたスキャン順の例は、図 4 (a ;)〜(d)に示されている。 [0050] On the other hand, if it is determined in step S608 that the seq—adaptive—scanning—flag is not “1”, the image decoding apparatus 200 selects a predetermined scan pattern. ( In step S624), a slice of the current picture is decoded using the selected predetermined scan pattern (step S628). Examples of predetermined scan order are shown in FIGS. 4 (a;) to (d).
[0051] 図 9は、本発明の画像符号ィ匕装置 100における、符号ィ匕ビットストリーム 121のスラ イスヘッダ 908にスキャンパターンを符号化するプロセスを示すフローチャートである FIG. 9 is a flowchart showing a process of encoding a scan pattern into the slice header 908 of the code bitstream 121 in the image coding apparatus 100 according to the present invention.
[0052] まず、ステップ S 700において、 seq— adaptive— scanning— flagの値が判定される。 First, in step S 700, the value of seq—adaptive—scanning—flag is determined.
次に、 seq_adaptive_scanning_flagの値が「1」の場合(ステップ S702 :Yes)、ステ ップ S 704において、 slice— adaptive— scanning— flagがスライスヘッダ 908に符号化 される。 slice— adaptive— scanning— flagは、新たなスキャンパターンが対象ピクチャ のスライスヘッダにおいて符号化されるかどうかを示すのに用いられるフラグである。 s lice— adaptive— scanning— flagが「1」の場合(ステップ S 706: Yes)、新たなスキャン パターンがスライスヘッダ 908に符号化される(ステップ S708)。  Next, when the value of seq_adaptive_scanning_flag is “1” (step S702: Yes), slice—adaptive—scanning—flag is encoded into the slice header 908 in step S704. The slice-adaptive-scanning-flag is a flag used to indicate whether a new scan pattern is encoded in the slice header of the target picture. s slice—adaptive—scanning—If the flag is “1” (step S706: Yes), a new scan pattern is encoded in the slice header 908 (step S708).
[0053] 次に、ステップ S710において、新たなスキャンパターンは、画像符号化装置 100の メモリ部 135に格納される。さらに、ステップ S712において、画像符号化装置 100は 、メモリ部 135からスキャンパターンを選択し、選択されたスキャンパターンを用いて 対象ピクチヤのマクロブロックを符号ィ匕する (ステップ S 720)。  Next, in step S710, the new scan pattern is stored in the memory unit 135 of the image encoding device 100. Further, in step S712, the image encoding apparatus 100 selects a scan pattern from the memory unit 135, and encodes the macroblock of the target picture using the selected scan pattern (step S720).
[0054] なお、ステップ S706にお 、て、 slice— adaptive— scanning— flag力^ 1」でな 、場合、 画像符号ィ匕装置 100は、メモリ部 135からスキャンパターンを選択し、選択されたスキ ヤンパターンを用いてマクロブロックを符号化する(ステップ S720)。  In step S 706, if “slice—adaptive—scanning—flag power ^ 1”, the image coding apparatus 100 selects a scan pattern from the memory unit 135 and selects the selected scan. The macroblock is encoded using the Yan pattern (step S720).
[0055] 一方、ステップ S702にお 、て、 seq— adaptive— scanning— flagが「1」でな 、場合( ステップ S702 : No)、画像符号ィ匕装置 100は、予め定められたスキャンパターンを選 択し (ステップ S716)、ステップ 7S720において、選択された予め定められたスキャン パターンを用いて対象ピクチヤのマクロブロックを復号ィ匕する。予め定められたスキヤ ン順の例は、図 4 (a)〜(d)に示されている。  On the other hand, if the seq—adaptive—scanning—flag is not “1” in step S702 (step S702: No), the image coding apparatus 100 selects a predetermined scan pattern. (Step S716), and in Step 7S720, the macroblock of the target picture is decoded using the selected predetermined scan pattern. Examples of predetermined scan order are shown in Figures 4 (a) to (d).
[0056] 図 10は、本発明に係る画像復号ィ匕装置 200における、符号ィ匕ビットストリーム 121 のスライスヘッダ 908におけるスキャンパターンの復号化プロセスを示すフローチヤ一 トである。 [0057] まず、ステップ S800において、 seq— adaptive— scanning— flagの値が判定される。 このフラグは、図 11 (a)に示されるように、シーケンスヘッダ 900に格納されるフラグ である。 FIG. 10 is a flowchart showing a scan pattern decoding process in the slice header 908 of the code bitstream 121 in the image decoding apparatus 200 according to the present invention. [0057] First, in step S800, the value of seq—adaptive—scanning—flag is determined. This flag is a flag stored in the sequence header 900 as shown in FIG. 11 (a).
[0058] seq— adaptive— scanning— flagの値が「1」の場合(ステップ S802: Yes)、ステップ S 804にお 、て、 slice— adaptive— scanning— flagがスライスヘッダ 908から復号化され る。 slice— adaptive— scanning— flag力 S「1」の場合(ステップ S806: Yes)、新たなスキ ヤンパターンがスライスヘッダ 908から復号化される(ステップ S808)。  When the value of seq—adaptive—scanning—flag is “1” (step S802: Yes), slice—adaptive—scanning—flag is decoded from the slice header 908 in step S804. slice—adaptive—scanning—when flag power S is “1” (step S806: Yes), a new scan pattern is decoded from slice header 908 (step S808).
[0059] 次に、ステップ S810において、新たなスキャンパターンは、画像復号化装置 200の メモリ部 235に格納される。さらに、ステップ S812において、画像復号化装置 200は 、メモリ部 235からスキャンパターンを選択し、ステップ S820において、選択されたス キャンパターンを用いて対象スライスのマクロブロックを復号ィ匕する。  Next, in step S810, the new scan pattern is stored in the memory unit 235 of the image decoding apparatus 200. Further, in step S812, the image decoding apparatus 200 selects a scan pattern from the memory unit 235, and in step S820, decodes the macroblock of the target slice using the selected scan pattern.
[0060] なお、ステップ S806にお 、て、 slice— adaptive— scanning— flag力^ 1」でな 、場合( ステップ S806 : No)、画像復号化装置 200は、メモリ部 235からスキャンパターンを 選択して(ステップ S816)、ステップ S820において、選択されたスキャンパターンを 用いて対象スライスのマクロブロックを復号ィ匕する。  In step S806, if “slice—adaptive—scanning—flag power ^ 1” is not satisfied (step S806: No), the image decoding apparatus 200 selects a scan pattern from the memory unit 235. In step S816, the macro block of the target slice is decoded using the selected scan pattern.
[0061] 一方、ステップ S802にお 、て、 seq_adaptive_scanning_flagが「1」でな 、場合( ステップ S802 : No)、画像復号化装置 200は、予め定められたスキャンパターンを選 択し (ステップ S814)、ステップ S820において、選択された予め定められたスキャン パターンを用いて対象スライスのマクロブロックを復号ィ匕する。予め定められたスキヤ ン順の例は、図 4 (a)〜(d)に示されている。  On the other hand, if seq_adaptive_scanning_flag is not “1” in step S802 (step S802: No), image decoding apparatus 200 selects a predetermined scan pattern (step S814), In step S820, the macroblock of the target slice is decoded using the selected predetermined scan pattern. Examples of predetermined scan order are shown in Figures 4 (a) to (d).
[0062] 図 11 (a)〜(c)は、本発明に係る画像符号ィ匕装置 100から出力される符号ィ匕ビット ストリーム 121のストリーム構造を示す図である。この図に示されるように、図 10 (a)の シーケンスヘッダ 900には、 4 X 4ブロックおよび 8 X 8ブロックで共用の seq— adaptiv e— scanning— flag、プログレッシブスキャン(フレームスキャン)順およびフィールドス キャン順が格納される。図 11 (b)のピクチャヘッダ 904には、 4 X 4ブロックおよび 8 X 8ブロックで共用の pic adaptive scanning flagゝフ—ログレツンプス3 rヤノ川 および フィールドスキャン順が格納される。図 10 (c)のスライスヘッダ 908には、 4 X 4ブロッ クおよび 8 X 8ブロックで共用の slice adaptive scanning flag、プログレッシブスキ ヤン順およびフィールドスキャン順が格納される。 FIGS. 11 (a) to 11 (c) are diagrams showing the stream structure of the code bit stream 121 output from the image coding apparatus 100 according to the present invention. As shown in this figure, the sequence header 900 in FIG. 10 (a) includes the seq—adaptive—scanning—flag, progressive scan (frame scan) order and field shared by 4 X 4 blocks and 8 X 8 blocks. Stores the scan order. The picture header 904 in FIG. 11 (b), the shared 4 X 4 blocks and 8 X 8 block pic adaptive scanning flagゝoff - Roguretsunpusu 3 r Yanokawa and field scan order is stored. The slice header 908 in Fig. 10 (c) contains a slice adaptive scanning flag shared by 4 X 4 blocks and 8 X 8 blocks. Yan order and field scan order are stored.
[0063] 図 13 (a)〜(c)は、上記図 11 (a)〜(c)に示されるようなシーケンスヘッダ 900、ピク チヤヘッダ 904およびスライスヘッダ 908にある、 4 X 4ブロックおよび 8 X 8ブロックそ れぞれのスキャンパターンのストリーム構造を示す図である。図 13 (b)に示されるよう に、 4 X 4ブロックのスキャンパターンは 16のスキャンパターン位置から成る。各スキヤ ンパターン位置は、 4ビットで符号ィ匕され、その位置は逆スキャンパターンの順に番 号がふられている。図 13 (a)は、スキャンパターン位置と逆スキャンパターン位置との 関係を示している。図 13 (c)は、 64のスキャンパターン位置力も成る 8 X 8ブロック用 のスキャンパターンを示している。これらの位置はそれぞれ 6ビットで符号ィ匕され、逆 スキャンパターンに配置されて 、る。  [0063] FIGS. 13 (a)-(c) show 4 X 4 blocks and 8 X in sequence header 900, picture header 904 and slice header 908 as shown in FIGS. 11 (a)-(c) above. FIG. 5 is a diagram illustrating a stream structure of a scan pattern for each of 8 blocks. As shown in Fig. 13 (b), the 4 X 4 block scan pattern consists of 16 scan pattern positions. Each scan pattern position is signed by 4 bits, and the position is numbered in the order of the reverse scan pattern. FIG. 13 (a) shows the relationship between the scan pattern position and the reverse scan pattern position. Figure 13 (c) shows a scan pattern for an 8 x 8 block with 64 scan pattern position forces. Each of these positions is signed with 6 bits and arranged in a reverse scan pattern.
[0064] 図 14は、本発明に係る画像符号ィ匕装置 100および画像復号ィ匕装置 200における 複数の予め定められたスキャンパターンの中力 スキャンパターンを選択するプロセ スを示すフローチャートである。  [0064] FIG. 14 is a flowchart showing a process of selecting a medium scan pattern of a plurality of predetermined scan patterns in the image coding apparatus 100 and the image decoding apparatus 200 according to the present invention.
[0065] まず、ステップ S 1100において、 progressive— sequence flagの値を判定する。この フラグは、上記図 11 (a)に示されるように、シーケンスヘッダ 900に符号ィ匕されるフラ グである。ステップ S1102において、 progressive— sequence flagが「1」の場合(ステツ プ S1102 : Yes)、ステップ S1116、 S1120、 SI 124および SI 126に示されるプロセ スにより、プログレッシブスキャンパターンが選択される。  [0065] First, in step S1100, the value of progressive-sequence flag is determined. This flag is a flag encoded in the sequence header 900 as shown in FIG. 11 (a). In step S1102, if the progressive-sequence flag is “1” (step S1102: Yes), the progressive scan pattern is selected by the processes shown in steps S1116, S1120, SI 124, and SI 126.
[0066] ステップ S1102にお 、て progressive— sequence flagが「1」でな!/、場合(ステップ S 1 102 : No)、 progressive— frame flagの値が判定される(ステップ S1104)。このフラグ は、上記図 11 (b)に示されるように、ピクチャヘッダ 904に符号ィ匕されるフラグである  [0066] In step S1102, the progressive-sequence flag is “1”! In the case of / (step S 1 102: No), the value of progressive-frame flag is determined (step S 1104). This flag is a flag encoded in the picture header 904 as shown in FIG. 11 (b) above.
[0067] ステップ S1106において、 progressive— frame flag力^ 1」の場合(ステップ SI 106 : [0067] In step S1106, in the case of progressive-frame flag force ^ 1 "(step SI 106:
Yes)、ステップ S I 116、 S1120、 S1124および S1126【こ示されるプロセス【こよりプ ログレツシブスキャンパターンが選択される。一方、ステップ S 1106において progress ive— frame flagが「1」でない場合 (ステップ S 1106 : No)、ステップ S1108において a dvanced—pred— mode— disable flagの値が判定される。このフラグは、図 11 (c)に示 されるように、ピクチャヘッダ 904に格納されるフラグである。 [0068] ステップ SI 110にお 、て、 advanced— pred— mode— disable flagの値が「1」でな!/ヽ 場合 (ステップ SI 110 : No)、マクロブロック mbp— field— flagの値が判定される(ステ ップ S 1112)。 mbp— field— flagは、マクロブロックヘッダ内のフラグであり、そのマクロ ブロックがフレーム符号化かフィールド符号ィ匕かを識別するために用いられる。 mbpYes), Steps SI 116, S1120, S1124 and S1126 [Process shown] Progressive scan pattern is selected. On the other hand, when the progress ive-frame flag is not “1” in step S 1106 (step S 1106: No), the value of a advanced-pred-mode-disable flag is determined in step S 1108. This flag is a flag stored in the picture header 904, as shown in FIG. 11 (c). [0068] In step SI 110, the advanced-pred-mode-disable flag value is "1"! If / ヽ (step SI 110: No), the value of the macroblock mbp—field—flag is determined (step S1112). The mbp-field-flag is a flag in the macroblock header, and is used to identify whether the macroblock is a frame coding or a field code. mbp
— field— flag力 0」の場合 (ステップ S 1114 :Yes)、ステップ S1116、 S 1120、 S 112 4および SI 126によってプログレッシブスキャンパターンが選択される。一方、 mbp— f ield— flag力 1」の場合 (ステップ S 1114 : No)、ステップ S1118、 S1122、 S 1128お よび S 1130に示されるプロセスにより、フィールドスキャンパターンが選択される。 “Field—flag force 0” (step S 1114: Yes), the progressive scan pattern is selected by steps S 1116, S 1120, S 112 4 and SI 126. On the other hand, in the case of mbp-field-flag force 1 "(step S1114: No), the field scan pattern is selected by the process shown in steps S1118, S1122, S1128, and S1130.
[0069] なお、ステップ SI 110にお 、て、 advanced— pred— mode— disable flagの値が「1」 の場合 (ステップ SI 110 : Yes)、ステップ S I 112、 S I 114におけるステップはスキッ プされ、ステップ S1118、 S1122, S1128および S 1130【こ示されるプロセス【こよりフ ィールドスキャンパターンが選択される。  [0069] If the value of advanced-pred-mode-disable flag is "1" in step SI 110 (step SI 110: Yes), the steps in steps SI 112 and SI 114 are skipped. Steps S1118, S1122, S1128 and S1130 [shown here] The field scan pattern is selected.
[0070] 予め定められたプログレッシブスキャンパターンを選択するプロセスは、以下のよう に定められる。ステップ S 1116において、マクロブロックの変換タイプが判定される。 ステップ S1120に示されるように、変換タイプ力 S8 X 8の場合、ステップ S1126におい て、予め定められた 8 X 8ブロック用のプログレッシブスキャンパターン力メモリ部 135 (又はメモリ部 235)力も選択される。予め定められたプログレッシブスキャンパターン の例は、図 2 (c)に示されるようなジグザグスキャンパターンである。なお、ステップ S1 120において、変換タイプが 8 X 8でない場合は、ステップ S1124において、予め定 められた 4 X 4ブロック用のプログレッシブスキャンパターン力 Sメモリ部 135 (又はメモリ 部 235)力も選択される。予め定められたプログレッシブスキャンパターンの例は、図 2 (a)に示されるようなジグザグスキャンパターンである。  [0070] The process of selecting a predetermined progressive scan pattern is determined as follows. In step S 1116, the macroblock conversion type is determined. As shown in step S1120, in the case of the conversion type force S8 X 8, in step S1126, a predetermined progressive scan pattern force memory unit 135 (or memory unit 235) force for 8 X 8 blocks is also selected. An example of a predetermined progressive scan pattern is a zigzag scan pattern as shown in Fig. 2 (c). If the conversion type is not 8 × 8 in step S1 120, the progressive scan pattern force for the 4 × 4 block S memory unit 135 (or memory unit 235) force is also selected in step S1124. . An example of the predetermined progressive scan pattern is a zigzag scan pattern as shown in FIG.
[0071] 一方、予め定められたフィールドスキャンパターンを選択するプロセスは、以下のよ うに定められる。ステップ S 1118において、マクロブロックの変換タイプが判定される 。マクロブロックの変換タイプが 8 X 8の場合 (ステップ S 1122 : No)、ステップ S 1130 において、予め定められた 8 X 8ブロック用のフィールドスキャンパターン力メモリ部 1 35 (又はメモリ部 235)力も選択される。予め定められたフィールドスキャンパターンの 例は、図 2 (d)に示すようなフィールドスキャンパターンである。また、マクロブロックの 変換タイプが 8 X 8でな!/、場合は(ステップ S 1122 : Yes)、ステップ S 1128にお!/、て 、予め定められた 4 X 4ブロック用のフィールドスキャンパターンカ モリ部 135 (又は メモリ部 235)力も選択される。予め定められたフィールドスキャンパターンの例は、図 2 (b)に示すようなフィールドスキャンパターンである。 On the other hand, the process of selecting a predetermined field scan pattern is determined as follows. In step S1118, the conversion type of the macroblock is determined. If the macroblock conversion type is 8 X 8 (step S 1122: No), select the predetermined field scan pattern force memory unit 1 35 (or memory unit 235) for 8 X 8 block in step S 1130. Is done. An example of a predetermined field scan pattern is a field scan pattern as shown in Fig. 2 (d). Also, macroblock If the conversion type is 8 × 8! / (Step S 1122: Yes), step S 1128! /, The predetermined field scan pattern memory unit 135 for 4 × 4 block (or Memory section 235) force is also selected. An example of the predetermined field scan pattern is a field scan pattern as shown in FIG.
[0072] 図 15は、本発明の画像符号化装置 100および画像復号化装置 200に予め格納さ れた複数のスキャンパターンからスキャンパターンを選択するプロセスを示すフロー チャートである。 FIG. 15 is a flowchart showing a process of selecting a scan pattern from a plurality of scan patterns stored in advance in the image encoding device 100 and the image decoding device 200 of the present invention.
[0073] まず、ステップ S 1300において、 progressive— sequence flagの値が判定される。 pro gressive— sequence flagが「1」の場合(ステップ IS 1302 : Yes)、ステップ SI 316にお いて、メモリ部 135 (又はメモリ部 235、以下同じ。 )に格納された複数のプログレッシ ブスキャンパターンから 1つのプログレッシブスキャンパターンが選択される。  First, in step S 1300, the value of progressive-sequence flag is determined. pro gressive— When the sequence flag is “1” (step IS 1302: Yes), in step SI 316, from multiple progressive scan patterns stored in the memory unit 135 (or memory unit 235, the same shall apply hereinafter) One progressive scan pattern is selected.
[0074] 一方、 progressive— sequence flagが「1」でない場合(ステップ IS 1302 : No)、 progr essive— frame flagの値が判定される(ステップ S I 304)。この結果、 progressive— fra me flagが「 1」の場合は(ステップ S 1306 : Yes)、ステップ S 1316にお!/、て、メモリ部 1 35に格納された複数のプログレッシブスキャンパターンの中から 1つのプログレッシ ブスキャンパターンが選択される。なお、 progressive— frame flagが「1」でない場合は (ステップ S 1306 : No)、 advanced— pred— mode— diable flagの値がステップ S I 308 において判定される。この結果、 advanced— pred— mode— diable flagの値が「1」でな い場合は(ステップ S1310 : No)、ステップ S1312にお!/、て、そのマクロブロックの mb p— field— flagの値が判定される。 mbp— field— flagが「0」の場合は(ステップ S 1314 : Yes)、ステップ S 1316において、メモリ部 135に格納された複数のプログレッシブス キャンパターンの中から 1つのプログレッシブスキャンパターンが選択される。一方、 m bp— field— flagが「1」の場合は(ステップ SI 314 : No)、ステップ SI 318において、メ モリ部 135に格納された複数のフィールドスキャンパターンの中から 1つのフィールド スキャンパターンが選択される。  On the other hand, when the progressive-sequence flag is not “1” (step IS 1302: No), the value of the progressive-frame flag is determined (step S I 304). As a result, when the progressive-frame flag is “1” (step S 1306: Yes), in step S 1316! /, 1 is selected from the plurality of progressive scan patterns stored in the memory unit 1 35. One progressive scan pattern is selected. When the progressive-frame flag is not “1” (step S 1306: No), the value of advanced-pred-mode-diable flag is determined in step S I 308. As a result, if the value of advanced—pred—mode—diable flag is not “1” (step S1310: No), the value of mb p—field—flag of the macroblock is set to step S1312. Is determined. mbp— field— When flag is “0” (step S 1314: Yes), in step S 1316, one progressive scan pattern is selected from a plurality of progressive scan patterns stored in the memory unit 135. . On the other hand, when the m bp-field-flag is “1” (step SI 314: No), in step SI 318, one field scan pattern is selected from the plurality of field scan patterns stored in the memory unit 135. Selected.
[0075] なお、ステップ S1310において、 advanced— pred— mode— disable flagの値が「1」 の場合は(ステップ S 1310 :Yes)、ステップ S1312および S1314はスキップされ、ス テツプ S 1318において、メモリ部 135に格納された複数のフィールドスキャンパター ンの中から 1つのフィールドスキャンパターンが選択される。 [0075] If the value of advanced-pred-mode-disable flag is "1" in step S1310 (step S1310: Yes), steps S1312 and S1314 are skipped, and in step S1318, the memory unit Multiple field scan patterns stored in 135 One field scan pattern is selected from the screen.
[0076] 図 16は、本発明の画像符号ィ匕装置 100および画像復号ィ匕装置 200のメモリ部にス キャンパターンを格納するプロセスを示すフローチャートである。  FIG. 16 is a flowchart showing a process for storing a scan pattern in the memory unit of the image coding apparatus 100 and the image decoding apparatus 200 according to the present invention.
[0077] まず、ステップ S 1400において、 progressive— sequence flagの値が判定される。こ の結果、 progressive_sequence flagが「1」の場合は(ステップ S 1402: Yes)、ステツ プ S1416において、メモリ部 135 (又はメモリ部 235、以下同じ。 )にプログレッシブス キャンパターンが格納される。  First, in step S 1400, the value of progressive-sequence flag is determined. As a result, when the progressive_sequence flag is “1” (step S 1402: Yes), in step S1416, the progressive scan pattern is stored in the memory unit 135 (or the memory unit 235, the same shall apply hereinafter).
[0078] 一方、 progressive— sequence flagが「1」でない場合は(ステップ S 1402 : No)、 prog ressive— frame flagの値が判定される(ステップ S 1404)。この結果、 progressive— fra me flagが「 1」の場合は(ステップ S 1406: Yes)、ステップ S 1416にお!/、て、メモリ部 1 35にプログレッシブスキャンパターンが格納される。また、 progressive— frame flagが「 1」でない場合は(ステップ S 1406 : No)、 advanced— pred— mode— diable flagの値が 判定される(ステップ S 1408)。この結果、 advanced— pred— mode— diable flagの値 力 「1」でない場合は(ステップ S 1410 : No)、ステップ S1416において、メモリ部 135 にプログレッシブスキャンパターンが格納される。  On the other hand, when the progressive-sequence flag is not “1” (step S 1402: No), the value of the prog ressive-frame flag is determined (step S 1404). As a result, when the progressive-frame flag is “1” (step S 1406: Yes), the progressive scan pattern is stored in the memory unit 135 in step S 1416! If the progressive-frame flag is not “1” (step S 1406: No), the advanced-pred-mode-diable flag value is determined (step S 1408). As a result, if the value of the advanced-pred-mode-diable flag is not “1” (step S1410: No), the progressive scan pattern is stored in the memory unit 135 in step S1416.
[0079] 一方、 advanced— pred— mode— disable flagの値力 「1」の場合は(ステップ S1410: Yes)、ステップ S 1414において、フィールドスキャンパターンがメモリ部 135に格納さ れる。  On the other hand, when the value of advanced-pred-mode-disable flag is “1” (step S1410: Yes), the field scan pattern is stored in the memory unit 135 in step S1414.
[0080] 図 17は、本発明の画像符号化装置 100および画像復号化装置 200のメモリ部に 格納されている複数のスキャンパターンから各マクロブロックのサイズに対応したスキ ヤンパターンを選択するプロセスを示すフローチャートである(図 14及び図 15を参照 )。図 17に示されるフローチャートでは、各マクロブロックのサイズに対応したスキャン ノ ターンを選択する際に、ユーザが特別に設定したスキャンパターンを選択すること を可能としている。  FIG. 17 shows a process of selecting a scan pattern corresponding to the size of each macroblock from a plurality of scan patterns stored in the memory units of the image encoding device 100 and the image decoding device 200 of the present invention. FIG. 14 is a flowchart (see FIGS. 14 and 15). In the flowchart shown in FIG. 17, when a scan pattern corresponding to the size of each macroblock is selected, the user can select a scan pattern that is specially set.
[0081] 図 18は、本発明の画像符号化装置 100および画像復号化装置 200のメモリ部に、 各マクロブロックのサイズに対応するスキャンパターンを格納するプロセスを示すフロ 一チャートである(図 14及び図 16を参照)。  FIG. 18 is a flowchart showing a process of storing a scan pattern corresponding to the size of each macroblock in the memory units of the image encoding device 100 and the image decoding device 200 of the present invention (FIG. 14). And Figure 16).
[0082] 図 18に示されるフローチャートでは、各マクロブロックのサイズに対応したスキャン ノ ターンを格納する際に、ユーザが特別に設定したスキャンパターンを格納すること を可能としている。 In the flowchart shown in FIG. 18, the scan corresponding to the size of each macroblock When storing a pattern, it is possible to store a scan pattern specially set by the user.
[0083] (実施の形態 1)  [0083] (Embodiment 1)
図 19は、本発明の画像符号ィ匕装置 100および画像復号ィ匕装置 200のメモリ部に 格納される複数のプログレッシブスキャンパターンの中から 1つのプログレッシブスキ ヤンパターンを選択するプロセスを示すフローチャートである。  FIG. 19 is a flowchart showing a process of selecting one progressive scan pattern from a plurality of progressive scan patterns stored in the memory unit of the image encoding device 100 and the image decoding device 200 of the present invention. .
[0084] まず、ステップ S 1500において、ピクチャタイプが判定される。次に、ステップ S 150 2にお!/、て対象ピクチャのピクチャタイプが Bピクチャの場合 (ステップ S 1502 : Yes) 、ステップ S1504、 S1506, S 1508および S 1510で定められたプロセスを用いて直 前の復号化ピクチャのスキャンパターンを選択する。さらに、ステップ S 1502におい て対象ピクチャのピクチャタイプが Bピクチャではな!/、場合 (ステップ S 1502: No)、ス テツプ S1512、 S 1514、 S 1516および S1518で定義されたプロセスを用いて直前 の参照ピクチヤのスキャンパターンを選択する。  First, in step S 1500, the picture type is determined. Next, if the picture type of the target picture is B picture (step S 1502: Yes), use the process defined in steps S1504, S1506, S1508, and S1510. Select the scan pattern of the previous decoded picture. In addition, if the picture type of the target picture is not a B picture in step S 1502 (step S 1502: No), the process defined in steps S1512, S 1514, S 1516 and S1518 is used. Select the scan pattern for the reference picture.
[0085] Bピクチャの例は、図 12の Non- Reference B PicturelOlOに示されるように、双方向 予測を行うことによって定義されるピクチャである。この例では、直前に復号化された Bピクチャは、 Non- Reference B Picture 1008に示されるピクチャである。対象ピクチャ が図 12の Reference P Picture 1012の場合、 Bピクチャが参照ピクチヤでなければ、 先行する参照ピクチャは図 12の Reference Picturel006で示される Pピクチャである。  [0085] An example of a B picture is a picture defined by performing bi-directional prediction, as shown in Non-Reference B Picture I10O in FIG. In this example, the B picture decoded immediately before is a picture shown in Non-Reference B Picture 1008. When the target picture is Reference P Picture 1012 in FIG. 12, if the B picture is not a reference picture, the preceding reference picture is a P picture indicated by Reference Picture 1006 in FIG.
[0086] 直前の復号化ピクチャのスキャンパターンを選択するプロセスは、以下の通りである 。ステップ S1504〖こおいて、マクロブロックの変換タイプが判定される。ステップ S150 6にお!/、て変換タイプが 8 X 8であれば (ステップ S 1506: Yes)、ステップ S 1510に おいて、 8 X 8ブロック用に直前の復号化ピクチャのスキャンパターン力メモリ部 135 ( 又はメモリ部 235、以下同じ。)から選択される。変換タイプが 8 X 8でない場合 (ステ ップ S 1506: No)、ステップ S 1508において、 4 X 4ブロック用に直前の復号化ピクチ ャのスキャンパターン力 Sメモリ部 135から選択される。  [0086] The process of selecting the scan pattern of the previous decoded picture is as follows. In step S1504, the macroblock conversion type is determined. If the conversion type is 8 X 8 in step S150 6 (step S 1506: Yes), in step S 1510, the scan pattern force memory section of the previous decoded picture for 8 X 8 block 135 (or memory unit 235, the same shall apply hereinafter). If the conversion type is not 8 × 8 (step S 1506: No), in step S 1508, the scan pattern force S of the previous decoding picture is selected from the S memory unit 135 for the 4 × 4 block.
[0087] 直前の参照ピクチヤのスキャンパターンを選択するプロセスは、以下の通りである。  The process for selecting the scan pattern of the immediately preceding reference picture is as follows.
ステップ S 1514において、マクロブロックの変換タイプが判定される。ステップ S 1514 にお 、て変換タイプが 8 X 8であれば (ステップ S 1514 : Yes)、ステップ S 1518にお いて、 8 X 8ブロック用に直前の参照ピクチヤのスキャンパターン力メモリ部 135から選 択される。変換タイプが 8 X 8でない場合 (ステップ S 1514 : No)、ステップ S 1516に おいて、 4 X 4ブロック用に直前の参照ピクチヤのスキャンパターン力メモリ部 135から 選択される。 In step S1514, the macroblock conversion type is determined. In step S1514, if the conversion type is 8 X 8 (step S1514: Yes), go to step S1518. And selected from the scan pattern force memory unit 135 of the previous reference picture for the 8 × 8 block. When the conversion type is not 8 × 8 (step S 1514: No), in step S 1516, the scan pattern force memory unit 135 of the immediately preceding reference picture is selected for the 4 × 4 block.
[0088] 図 20は、本発明の画像符号化装置 100および画像復号化装置 200のメモリ部に 格納される複数のフィールドスキャンパターンの中から 1つのフィールドスキャンパタ ーンを選択するプロセスを示すフローチャートである。このプロセスは、上記図 19に おけるプログレッシブスキャンパターンの選択プロセスと同じである力 上記図 19に おけるメモリ部 135 (又はメモリ部 235、以下同じ。)に格納されているスキャンパター ン 1520〜1526力図 20におけるメモリ咅 に格糸内されているスキャンノ ターン 162 0〜1626に代わっている点が異なる。スキャンパターン 1620〜1626は、それぞれ 4 X 4ブロックの直前の参照ピクチヤのフィールドスキャンパターン、 8 X 8ブロックの直 前の参照ピクチヤのフィールドスキャンパターン、 4 X 4ブロックの直前の復号化ピク チヤのフィールドスキャンパターン、および 8 X 8ブロックの直前の復号化ピクチャのフ ィールドスキャンパターンである。  FIG. 20 is a flowchart showing a process for selecting one field scan pattern from among a plurality of field scan patterns stored in the memory units of the image encoding device 100 and the image decoding device 200 of the present invention. It is. This process is the same force as the progressive scan pattern selection process in FIG. 19 above. Scan patterns 1520 to 1526 stored in the memory part 135 (or memory part 235, the same shall apply hereinafter) in FIG. 19 above. The difference is that the scan patterns 162 0 to 1626 included in the memory in FIG. Scan patterns 1620 to 1626 are the field scan pattern of the reference picture immediately before the 4 X 4 block, the field scan pattern of the reference picture immediately before the 8 X 8 block, and the field of the decoding picture immediately before the 4 X 4 block, respectively. The scan pattern and the field scan pattern of the decoded picture immediately before the 8 × 8 block.
[0089] 図 21は、シーケンスヘッダのプログレッシブスキャンパターンを、本発明に係る画像 符号ィ匕装置 100のメモリ部 135および画像復号ィ匕装置 200のメモリ部 235に格納す るプロセスを示すフローチャートである。  FIG. 21 is a flowchart showing a process of storing the progressive scan pattern of the sequence header in the memory unit 135 of the image encoding device 100 and the memory unit 235 of the image decoding device 200 according to the present invention. .
[0090] まず、ステップ S 1700において、スキャンパターンの値が判定される。次に、ステツ プ S1702において、ビデオシーケンスが適応変換を行うかどうかを判定するための チェックが行われる。そのシーケンスがステップ S 1704に示すように、 4 X 4および 8 X 8変換の両方に対応している場合は、まずステップ S 1708において、 8 X 8ブロック 用の新たなスキャンパターンカ モリ部 135のスキャンパターン 1718およびスキャン パターン 1722にコピーされ、そこでそれぞれ直前の参照ピクチヤと直前の復号ィ匕ピ クチャ用の 8 X 8ブロックスキャンパターンが格納される。  First, in step S 1700, the value of the scan pattern is determined. Next, in step S1702, a check is made to determine whether the video sequence performs adaptive conversion. If the sequence supports both 4 X 4 and 8 X 8 conversion, as shown in step S 1704, first in step S 1708, the new scan pattern memory section 135 for 8 X 8 block It is copied to scan pattern 1718 and scan pattern 1722, where the 8 × 8 block scan pattern for the previous reference picture and the previous decoding picture is stored respectively.
[0091] 次に、ステップ S 1710において、 4 X 4ブロック用の新たなスキャンパターンカ モリ 部 135のスキャンパターン 1716およびスキャンパターン 1720にコピーされ、そこで それぞれ直前の参照ピクチヤと直前の復号ィ匕ピクチャ用の 4 X 4ブロックスキャンパタ ーンが格納される。 [0091] Next, in step S1710, the new scan pattern is copied to the scan pattern 1716 and scan pattern 1720 of the new scan pattern memory unit 135 for 4 X 4 blocks, where the immediately preceding reference picture and the immediately preceding decoded picture are respectively copied. 4 x 4 block scan pattern for Stored.
[0092] さらに、シーケンスが 4 X 4変換にしか対応していない場合は(ステップ S 1706 : Yes )、ステップ S1712において、 4 X 4ブロック用スキャンパターン力メモリ部 135のスキ ヤンパターン 1716およびスキャンパターン 1720にコピーされ、そこでそれぞれ直前 の参照ピクチヤおよび直前の復号ィ匕ピクチャ用の 4 X 4ブロックスキャンパターンが格 納される。  [0092] Furthermore, when the sequence only supports 4 × 4 conversion (step S1706: Yes), in step S1712, the scan pattern 1716 and scan pattern of the scan pattern force memory unit 135 for 4 × 4 blocks are scanned. 1720, where the 4 × 4 block scan pattern for the immediately preceding reference picture and the immediately preceding decoded picture is stored, respectively.
[0093] また、シーケンスが 8 X 8変換にしか対応して!/ヽな 、場合は(ステップ S 1706: No) 、ステップ S1714において、 8 X 8ブロック用スキャンパターン力メモリ部 135のスキヤ ンパターン 1718およびスキャンパターン 1722にコピーされ、そこでそれぞれ直前の 参照ピクチヤおよび直前の復号化ピクチャ用の 8 X 8ブロックスキャンパターンが格納 される。  [0093] If the sequence corresponds only to 8 X 8 conversion (! / ヽ) (step S1706: No), in step S1714, the scan pattern of the 8X8 block scan pattern force memory unit 135 is scanned. Copied to 1718 and scan pattern 1722, where the 8 × 8 block scan pattern for the previous reference picture and the previous decoded picture, respectively, is stored.
[0094] 図 22は、シーケンスヘッダのフィールドスキャンパターンを、本発明に係る画像符 号ィ匕装置 100のメモリ部 135および画像復号ィ匕装置 200のメモリ部 235に格納する プロセスを示すフローチャートである。このプロセスは、上記図 21におけるプログレッ シブスキャンパターンの格納プロセスと同じである力 上記図 21におけるスキャンパ ターン 1716〜1722がそれぞれスキャンパターン 1816〜1822に代わっている点が 異なる。スキャンパターン 1816〜1822はそれぞれ、 4 X 4ブロックの直前の参照ピク チヤのフィールドスキャンパターン、 8 X 8ブロックの直前の参照ピクチヤのフィールド スキャンパターン、 4 X 4ブロックの直前の復号化ピクチャのフィールドスキャンパター ン、および 8 X 8ブロックの直前の復号化ピクチャのフィールドスキャンパターンである  FIG. 22 is a flowchart showing a process of storing the field scan pattern of the sequence header in the memory unit 135 of the image encoding device 100 and the memory unit 235 of the image decoding device 200 according to the present invention. . This process has the same force as the progressive scan pattern storage process in FIG. 21 except that the scan patterns 1716 to 1722 in FIG. 21 are replaced with the scan patterns 1816 to 1822, respectively. Scan patterns 1816 to 1822 are the field scan pattern of the reference picture immediately before the 4 X 4 block, the field scan pattern of the reference picture immediately before the 8 X 8 block, and the field scan of the decoded picture immediately before the 4 X 4 block, respectively. Pattern and field scan pattern of the decoded picture immediately before the 8 x 8 block
[0095] 図 23は、ピクチャおよびスライスヘッダに符号化されたプログレッシブスキャンパタ ーンを、本発明に係る画像符号ィ匕装置 100のメモリ部 135および画像復号ィ匕装置 2 00のメモリ部 235に格納するプロセスを示すフローチャートである。 FIG. 23 shows the progressive scan pattern encoded into the picture and slice headers in the memory unit 135 of the image encoding device 100 and the memory unit 235 of the image decoding device 200 according to the present invention. It is a flowchart which shows the process to store.
[0096] まず、ステップ S1900において、スキャンパターンの値が判定される。次に、ステツ プ S 1902にお!/、て、対象ピクチャが Pまたは I参照ピクチヤの場合 (ステップ S 1902 : Yes)、ステップ SI 904において、スキャンパターンブロックタイプが判定される。  First, in step S1900, the value of the scan pattern is determined. Next, in step S 1902, if the target picture is a P or I reference picture (step S 1902: Yes), the scan pattern block type is determined in step SI 904.
[0097] もし、スキャンパターンブロックタイプが 4 X 4の場合は(ステップ S 1906 : Yes)、ステ ップ SI 908において、スキャンパターン値力メモリ部 135内のスキャンパターン 1920 とスキャンパターン 1924として格納され、そこでそれぞれ直前の参照ピクチヤと直前 の復号化ピクチャ用の 4 X 4ブロックスキャンパターンが保持される。一方、スキャンパ ターンブロックタイプが 8 X 8の場合 (ステップ S 1906: No)、ステップ S 1910にお!/ヽ てスキャンパターン値力メモリ部 135内にスキャンパターン 1922とスキャンパターン 1 926として格納され、そこでそれぞれ直前の参照ピクチヤと直前の復号ィ匕ピクチャ用 の 8 X 8ブロックスキャンパターンが保持される。 [0097] If the scan pattern block type is 4X4 (step S1906: Yes), In SI 908, they are stored as scan pattern 1920 and scan pattern 1924 in scan pattern value memory unit 135, where the previous reference picture and the previous 4 × 4 block scan pattern for the decoded picture are held, respectively. . On the other hand, when the scan pattern block type is 8 × 8 (step S 1906: No), the process proceeds to step S 1910! / And is stored as scan pattern 1922 and scan pattern 1 926 in the scan pattern value memory unit 135. Therefore, the 8 × 8 block scan pattern for the immediately preceding reference picture and the immediately preceding decoded picture is retained.
[0098] なお、対象ピクチャが Pまたは Iピクチャではない場合 (ステップ S 1902 : No)、ステ ップ S 1912において、スキャンパターンブロックタイプが判定される。ステップ S1912 にお 、てスキャンパターンブロックタイプが 4 X 4の場合 (ステップ S 1914: Yes)、ステ ップ S1916において、スキャンパターン値力メモリ部 135内のスキャンパターン 1924 として格納され、そこで直前の復号化ピクチャ用の 4 X 4ブロックスキャンパターンが 保持される。ステップ S 1912において、スキャンパターンブロックタイプが 8 X 8の場 合 (ステップ S1914 :No)、ステップ S1918において、スキャンパターン値がメモリ部 135のスキャンパターン 1926として格納され、そこで直前の復号化ピクチャ用の 8 X 8ブロックスキャンパターンが保持される。  If the target picture is not a P or I picture (step S 1902: No), the scan pattern block type is determined in step S 1912. In step S1912, when the scan pattern block type is 4 × 4 (step S 1914: Yes), in step S1916, it is stored as the scan pattern 1924 in the scan pattern value memory unit 135, where the previous decoding is performed. 4 x 4 block scan pattern for digitized pictures is retained. In step S 1912, when the scan pattern block type is 8 × 8 (step S1914: No), in step S1918, the scan pattern value is stored as scan pattern 1926 in the memory unit 135, where the scan pattern value for the previous decoded picture is stored. An 8 x 8 block scan pattern is retained.
[0099] 図 24は、ピクチャおよびスライスヘッダに符号化されたフィールドスキャンパターン を、本発明に係る画像符号ィ匕装置 100および画像復号ィ匕装置 200のメモリ部に格納 するプロセスを示すフローチャートである。このプロセスは、上記図 23におけるプログ レツシブスキャンパターンの格納プロセスと同じである力 図 23におけるスキャンパタ ーン 1920〜1926がそれぞれスキャンパターン 2020〜2026に代わっている点が異 なる。スキャンパターン 2020〜2026は、それぞれ、 4 X 4ブロックの直前の参照ピク チヤのフィールドスキャンパターン、 8 X 8ブロックの直前の参照ピクチヤのフィールド スキャンパターン、 4 X 4ブロックの直前の復号化ピクチャのフィールドスキャンパター ン、および 8 X 8ブロックの直前の復号化ピクチャのフィールドスキャンパターンである  FIG. 24 is a flowchart showing a process of storing the field scan pattern encoded in the picture and slice header in the memory unit of the image encoding device 100 and the image decoding device 200 according to the present invention. . This process is the same as the progressive scan pattern storing process in FIG. 23, except that the scan patterns 1920 to 1926 in FIG. 23 are replaced with the scan patterns 2020 to 2026, respectively. Scan patterns 2020 to 2026 are the field scan pattern of the reference picture immediately before the 4 X 4 block, the field of the reference picture immediately before the 8 X 8 block, the scan pattern, and the field of the decoded picture immediately before the 4 X 4 block, respectively. Scan pattern and field scan pattern of decoded picture immediately before 8 X 8 block
[0100] (実施の形態 2) [0100] (Embodiment 2)
図 25は、本実施の形態に係る画像符号ィ匕装置のメモリ部および画像復号ィ匕装置 のメモリ部に格納されている複数のプログレッシブスキャンパターンの中から 1つのプ ログレツシブスキャンパターンを選択するプロセスを示すフローチャートである。 FIG. 25 shows a memory unit and an image decoding device of the image encoding device according to the present embodiment. 5 is a flowchart showing a process of selecting one progressive scan pattern from a plurality of progressive scan patterns stored in the memory unit of FIG.
[0101] まず、ステップ S2100において、ピクチャタイプが判定される。次に、対象ピクチャ のピクチャタイプが Bピクチャの場合 (ステップ S2102 : Yes)、ステップ S2104におい て対象ピクチヤの時間的位置が判定される。さらに、対象ピクチャが第 1参照ピクチャ 【こ時 的【こより近くな ヽ場合 (ステップ S2106 :No)、ステップ S2108、 S2110、 S2 112および S2114で定義されたプロセスを用いて第 2参照ピクチヤのスキャンパター ンを選択する。一方、対象ピクチャが第 1参照ピクチヤに時間的により近い場合 (ステ ップ S2106 :Yes)、ステップ S2116、 S2120、 S2122および S2124で定義された プロセスを用いて第 1参照ピクチヤのスキャンパターンを選択する。  [0101] First, in step S2100, the picture type is determined. Next, when the picture type of the target picture is a B picture (step S2102: Yes), the temporal position of the target picture is determined in step S2104. Furthermore, if the target picture is the first reference picture [temporary [closer than this (step S2106: No)], the scan pattern of the second reference picture using the process defined in steps S2108, S2110, S2112 and S2114 is used. Select On the other hand, if the current picture is closer in time to the first reference picture (step S2106: Yes), the scan pattern of the first reference picture is selected using the process defined in steps S2116, S2120, S2122 and S2124. .
[0102] 対象ピクチャが Bピクチャの場合、例えば図 12の Non- Reference B Picturel004が 対象ピクチヤの場合、その Bピクチャに対する第 1参照ピクチャは図 12の Reference P Picture 1006である。また、その Bピクチャに対する第 2参照ピクチャは図 12の Refere nce I Picture 1000である。一般に、第 1参照ピクチャは、対象 Bピクチャより後の表示 時間において時間的に前の参照ピクチヤであり、第 2参照ピクチャは、対象 Bピクチャ より時間的に後の参照ピクチヤである。 Pまたは Iピクチャに対する第 1参照ピクチャは 対象ピクチヤより時間的に前の参照ピクチヤである。  [0102] When the target picture is a B picture, for example, when Non-Reference B Picture 1004 in Fig. 12 is the target picture, the first reference picture for the B picture is Reference P Picture 1006 in Fig. 12. The second reference picture for the B picture is Reference I Picture 1000 in FIG. In general, the first reference picture is a reference picture temporally preceding the display time after the target B picture, and the second reference picture is a reference picture temporally subsequent to the target B picture. The first reference picture for P or I picture is the reference picture temporally before the target picture.
[0103] さらに、ステップ S2102において、対象ピクチャが Bピクチャでない場合は (ステップ S2102 :No)、ステップ S2116、 S2120、 S2122および S2124で定義されたプロセ スを用いて第 1参照ピクチヤのスキャンパターンを選択する。  [0103] Furthermore, in step S2102, if the target picture is not a B picture (step S2102: No), the scan pattern of the first reference picture is selected using the process defined in steps S2116, S2120, S2122 and S2124. To do.
[0104] 第 2参照ピクチヤのスキャンパターンを選択するプロセスは,以下の通りである。ま ず、ステップ S2108において、マクロブロックの変換タイプが判定される。もし、変換タ イブが 8 X 8であれば (ステップ S2108 : Yes)、ステップ S2114において、 8 X 8ブロ ック用に第 2参照ピクチヤのスキャンパターン力メモリ部 135から選択される。なお、変 換タイプが 8 X 8でない場合 (ステップ S2108 :No)、ステップ S2112において、 4 X 4 ブロック用に直前の復号ィ匕ピクチャのスキャンパターン力 Sメモリ部 2130力 選択される  [0104] The process of selecting the scan pattern of the second reference picture is as follows. First, in step S2108, the macroblock conversion type is determined. If the conversion type is 8 × 8 (step S2108: Yes), the scan pattern force memory unit 135 of the second reference picture is selected for the 8 × 8 block in step S2114. If the conversion type is not 8 × 8 (step S2108: No), in step S2112 the scan pattern power of the immediately preceding decoded picture is selected for the 4 × 4 block S memory unit 2130 power
[0105] 第 1参照ピクチヤのスキャンパターンを選択するプロセスは、以下の通りである。ま す、ステップ S2116において、マクロブロックの変換タイプが判定される。もし、変換タ イブが 8 X 8であれば (ステップ S2120 : Yes)、ステップ S2124において、 8 X 8ブロ ック用に第 1参照ピクチヤのスキャンパターン力 Sメモリ部 135から選択される。一方、変 換タイプが 8 X 8でない場合 (ステップ S2120 :No)、ステップ S2122において、 4 X 4 ブロック用に直前の参照ピクチヤのスキャンパターン力 Sメモリ部: L 35から選択される。 [0105] The process of selecting the scan pattern of the first reference picture is as follows. Ma In step S2116, the macroblock conversion type is determined. If the conversion type is 8 × 8 (step S2120: Yes), the scan pattern force S of the first reference picture is selected from the S memory unit 135 for the 8 × 8 block in step S2124. On the other hand, if the conversion type is not 8 X 8 (Step S2120: No), in step S2122, the scan pattern force immediately before the reference picture for 4 X 4 blocks S memory unit is selected from: L 3 5.
[0106] 図 26は、本実施の形態に係る画像符号化装置のメモリ部および画像復号化装置 のメモリ部に格納された複数のフィールドスキャンパターンの中から 1つのフィールド スキャンパターンを選択するプロセスを示すフローチャートである。このプロセスは、 上記図 25におけるプログレッシブスキャンパターンの選択プロセスと同じであるが、 上記図 25におけるスキャンパターン 2126〜2132がそれぞれスキャンパターン 222 6〜2232に代わっている点が異なる。スキャンパターン 2226〜2232は、それぞれ、 4 X 4ブロックの第 1参照ピクチヤのフィールドスキャンパターン、 8 X 8ブロックの第 1 参照ピクチヤのフィールドスキャンパターン、 4 X 4ブロックの第 2参照ピクチャのフィー ルドスキャンパターン、および 8 X 8ブロックの第 2参照ピクチヤのフィールドスキャン パターンである。 FIG. 26 shows a process of selecting one field scan pattern from a plurality of field scan patterns stored in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment. It is a flowchart to show. This process is the same as the progressive scan pattern selection process in FIG. 25, except that the scan patterns 2126 to 2132 in FIG. 25 are replaced with scan patterns 2226 to 2232, respectively. The scan patterns 2226 to 2232 are respectively a 4 X 4 block first reference picture field scan pattern, an 8 X 8 block first reference picture field scan pattern, and a 4 X 4 block second reference picture field scan. Pattern and 8 x 8 block second reference picture field scan pattern.
[0107] 図 27は、シーケンスヘッダのプログレッシブスキャンパターンを、本実施の形態に 係る画像符号ィ匕装置のメモリ部および画像復号ィ匕装置のメモリ部に格納するプロセ スを示すフローチャートである。まず、ステップ S2300において、スキャンパターンの 値が判定される。次に、ステップ S2302において、ビデオシーケンスが適応変換をお こなうかどうかを判定するためのチェックがおこなわれる。そのシーケンスがステップ S 2304に示すように、 4 X 4および 8 X 8変換の両方に対応して!/、る場合は (ステップ S 2304 : Yes)、まずステップ S2308において、 8 X 8ブロック用の新たなスキャンパタ ーンカ Sメモリ部内のスキャンパターン 2318および 2322としてコピーされ、そこでそれ ぞれ第 1参照ピクチャと第 2参照ピクチャ用の 8 X 8ブロックスキャンパターンが格納さ れる。次に、ステップ S2310において、 4 X 4ブロック用の新たなスキャンパターンカ モリ部内のスキャンパターン 2316および 2330としてコピーされ、そこでそれぞれ第 1 参照ピクチャと第 2参照ピクチャ用の 4 X 4ブロックスキャンパターンが格納される。  FIG. 27 is a flowchart showing a process of storing the progressive scan pattern of the sequence header in the memory unit of the image coding apparatus and the memory unit of the image decoding apparatus according to the present embodiment. First, in step S2300, the value of the scan pattern is determined. Next, in step S2302, a check is made to determine if the video sequence undergoes adaptive conversion. If the sequence corresponds to both 4 X 4 and 8 X 8 conversions as shown in step S 2304 (step S 2304: Yes), first in step S2308, for the 8 X 8 block New scan patterns are copied as scan patterns 2318 and 2322 in the S memory section, where 8 X 8 block scan patterns for the first reference picture and the second reference picture are stored, respectively. Next, in step S2310, it is copied as scan patterns 2316 and 2330 in the new scan pattern memory section for 4 X 4 blocks, where the 4 X 4 block scan patterns for the first reference picture and the second reference picture respectively. Stored.
[0108] 一方、シーケンスが 4 X 4変換にしか対応していない場合は(ステップ S2306 : Yes )、ステップ S2312において、 4 X 4ブロック用スキャンパターン力メモリ部内のスキヤ ンパターン 2316および 2320としてコピーされ、そこでそれぞれ第 1参照ピクチヤおよ び第 2参照ピクチャ用の 4 X 4ブロックスキャンパターンが格納される。 [0108] On the other hand, if the sequence only supports 4 X 4 conversion (step S2306: Yes) ), Copied in step S2312, as scan patterns 2316 and 2320 in the scan pattern force memory for 4 X 4 blocks, where the 4 X 4 block scan patterns for the first reference picture and the second reference picture are stored, respectively. Is done.
[0109] また、シーケンスが 8 X 8変換にしか対応して!/ヽな 、場合は(ステップ S2306: No) 、ステップ S2314において、 8 X 8ブロック用スキャンパターン力メモリ部内のスキャン パターン 2318および 2322としてコピーされ、そこでそれぞれ第 1参照ピクチャおよ び第 2参照ピクチャ用の 8 X 8ブロックスキャンパターンが格納される。  [0109] If the sequence only supports 8 X 8 conversion! / ヽ (step S2306: No), in step S2314, the scan patterns 2318 and 2322 in the scan pattern force memory unit for 8 X 8 blocks are used. Where 8 × 8 block scan patterns for the first and second reference pictures are stored, respectively.
[0110] 図 28は、シーケンスヘッダのフィールドスキャンパターンを、本実施の形態に係る 画像符号ィ匕装置のメモリ部および画像復号ィ匕装置のメモリ部に格納するプロセスを 示すフローチャートである。このプロセスは、上記図 27におけるプログレッシブスキヤ ンパターンの格納プロセスと同じである力 上記図 27におけるメモリ部内のスキャン パターン 2316〜2322がそれぞれメモリ部内のスキャンパターン 2416〜2422に代 わっている点が異なる。メモリ部内のスキャンパターン 2416〜2422は、それぞれ、 4 X 4ブロックの第 1参照ピクチヤのフィールドスキャンパターン、 8 X 8ブロックの第 1参 照ピクチャのフィールドスキャンパターン、 4 X 4ブロックの第 2参照ピクチャのフィール ドスキャンパターン、および 8 X 8ブロックの第 2参照ピクチヤのフィールドスキャンパタ ーンである。  FIG. 28 is a flowchart showing a process of storing the field scan pattern of the sequence header in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment. This process is the same as the progressive scan pattern storage process in Fig. 27, except that scan patterns 2316 to 2322 in the memory unit in Fig. 27 are replaced with scan patterns 2416 to 2422 in the memory unit, respectively. . The scan patterns 2416 to 2422 in the memory part are respectively a field scan pattern of the first reference picture of 4 × 4 blocks, a field scan pattern of the first reference picture of 8 × 8 blocks, and a second reference picture of 4 × 4 blocks. Field scan pattern and 8 x 8 block second reference picture field scan pattern.
[0111] 図 29は、ピクチャおよびスライスヘッダに符号ィ匕されたプログレッシブスキャンパタ ーンを、本実施の形態に係る画像符号ィ匕装置のメモリ部および画像復号ィ匕装置のメ モリ部に格納するプロセスを示すフローチャートである。  FIG. 29 shows the progressive scan pattern encoded in the picture and slice headers stored in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment. It is a flowchart which shows the process to perform.
[0112] まず、ステップ S2500において、スキャンパターンの値が判定される。このとき、対 象ピクチャが Pまたは I参照ピクチヤの場合は (ステップ S2502 : Yes)、ステップ S250 4においてスキャンパターンブロックタイプが判定される。さらに、ステップ S2506にお いて、スキャンパターンブロックタイプが 4 X 4の場合 (ステップ S2506 : Yes)、ステツ プ S2508において、メモリ部における第 1参照ピクチヤのスキャンパターン 2516が、 メモリ部における第 2参照ピクチヤのスキャンパターン 2520にコピーされる。そして新 たな 4 X 4ブロックのスキャンパターン値が、ステップ S2510において、メモリ部におけ る第 1参照ピクチヤのスキャンパターンに格納される。ステップ S2506において、スキ ヤンパターンブロックタイプが 8 X 8の場合 (ステップ S2506 :No)、ステップ S2512に おいて、メモリ部における第 1参照ピクチヤのスキャンパターン 2518が、メモリ部にお ける第 2参照ピクチヤのスキャンパターン 2522にコピーされる。そして新たな 8 X 8ブ ロックのスキャンパターン値力 ステップ S2514において、メモリ部における第 1参照 ピクチャのスキャンパターン 2518に格納される。 [0112] First, in step S2500, the value of the scan pattern is determined. At this time, if the target picture is a P or I reference picture (step S2502: Yes), the scan pattern block type is determined in step S2504. Further, in step S2506, when the scan pattern block type is 4 × 4 (step S2506: Yes), in step S2508, the scan pattern 2516 of the first reference picture in the memory unit is changed to the second reference picture in the memory unit. Copied to the scan pattern 2520. Then, the scan pattern value of the new 4 × 4 block is stored in the scan pattern of the first reference picture in the memory unit in step S2510. In step S2506, If the Yan pattern block type is 8 X 8 (step S2506: No), the scan pattern 2518 of the first reference picture in the memory unit is changed to the scan pattern 2522 of the second reference picture in the memory unit in step S2512. Copied. Then, in the new 8 × 8 block scan pattern value step S2514, it is stored in the scan pattern 2518 of the first reference picture in the memory unit.
[0113] 図 30は、ピクチャおよびスライスヘッダに符号化されたフィールドスキャンパターン を、本実施の形態に係る画像符号ィ匕装置のメモリ部および画像復号ィ匕装置のメモリ 部に格納するプロセスを示すフローチャートである。このプロセスは、上記図 29にお けるプログレッシブスキャンパターンの格納プロセスと同じである力 上記図 25におけ るメモリ部内のスキャンパターン 2516〜2522がそれぞれメモリ部内のスキャンパタ ーン 2616〜2622に代わっている点が異なる。メモリ部内のスキャンパターン 2616 〜2622はそれぞれ、 4 X 4ブロックの第 1参照ピクチヤのフィールドスキャンパターン 、 8 X 8ブロックの第 1参照ピクチヤのフィールドスキャンパターン、 4 X 4ブロックの第 2 参照ピクチヤのフィールドスキャンパターン、および 8 X 8ブロックの第 2参照ピクチャ のフィールドスキャンパターンである。  [0113] FIG. 30 shows a process of storing the field scan pattern encoded in the picture and slice header in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment. It is a flowchart. This process is the same as the progressive scan pattern storage process in Fig. 29 above.The scan patterns 2516 to 2522 in the memory unit in Fig. 25 are replaced by the scan patterns 2616 to 2622 in the memory unit, respectively. Is different. The scan patterns 2616 to 2622 in the memory section are respectively a field scan pattern of the first reference picture of 4 X 4 blocks, a field scan pattern of the first reference picture of 8 X 8 blocks, and a field of the second reference picture of 4 X 4 blocks. A scan pattern and a field scan pattern of the second reference picture of 8 x 8 blocks.
[0114] (実施の形態 3)  [0114] (Embodiment 3)
図 31は、本実施の形態に係る画像符号ィ匕装置のメモリ部および画像復号ィ匕装置 のメモリ部に格納されている複数のフィールドスキャンパターンの中から 1つのフィー ルドスキャンパターンを選択するプロセスの別の実施の形態を示すフローチャートで ある。  FIG. 31 shows a process of selecting one field scan pattern from a plurality of field scan patterns stored in the memory unit of the image encoding device and the memory unit of the image decoding device according to the present embodiment. It is a flowchart which shows another embodiment of this.
[0115] まず、ステップ S2700において、対象ピクチャのピクチャタイプが判定される。このと き、対象ピクチャが Bピクチャの場合 (ステップ S2702 :Yes)、ステップ S2704におい て対象マクロブロックがトップフィールドサンプルだけを含んでいるかどうか判定する ためにチェックがおこなわれる。もし、対象マクロブロックがトップフィールドサンプルを 含んでいない場合は(ステップ S2704 :No)、ステップ S2706〜S2714で定義され たプロセスを用いて直前の復号化ピクチャのボトムフィールドスキャンパターンを選択 する。一方、対象マクロブロックがトップフィールドサンプルを含んでいる場合は (ステ ップ S2704 : Yes)、ステップ S2710〜S2720で定義されたプロセスを用いて直前の 復号化ピクチャのトップフィールドスキャンパターンを選択する。 [0115] First, in step S2700, the picture type of the target picture is determined. At this time, if the target picture is a B picture (step S2702: Yes), a check is performed in step S2704 to determine whether the target macroblock includes only the top field sample. If the target macroblock does not include a top field sample (step S2704: No), the bottom field scan pattern of the previous decoded picture is selected using the process defined in steps S2706 to S2714. On the other hand, if the target macroblock includes a top field sample (step S2704: Yes), the process defined in steps S2710 to S2720 is used to execute the previous macroblock. Select the top field scan pattern of the decoded picture.
[0116] ステップ S2702において対象ピクチャが Bピクチャではない場合は(ステップ S270 2 :No)、ステップ S2722において、対象マクロブロックがトップフィールドサンプルだ けを含んでいるかどうか判定するためにチェックがおこなわれる。ステップ S2722に ぉ 、て、対象マクロブロックがトップフィールドサンプルを含んで ヽな 、場合は(ステツ プ S2722 :No)、ステップ S2732〜2738で定義されたプロセスを用いて直前の参 照ピクチャのボトムフィールドスキャンパターンを選択する。ステップ S2722において 対象マクロブロックがトップフィールドサンプルを含んで 、る場合 (ステップ S2722: Y es)、ステップ S2724〜S2730で定義されたプロセスを用いて直前の参照ピクチヤの トップフィールドスキャンパターンを選択する。  [0116] If the target picture is not a B picture in step S2702 (step S2702: No), a check is made in step S2722 to determine whether the target macroblock contains only top field samples. In step S2722, if the target macroblock contains a top field sample (step S2722: No), the bottom field of the previous reference picture using the process defined in steps S2732 to 2738 is used. Select a scan pattern. If the target macroblock includes a top field sample in step S2722 (step S2722: Yes), the top field scan pattern of the immediately preceding reference picture is selected using the process defined in steps S2724 to S2730.
[0117] 直前の復号化ピクチャのボトムフィールドスキャンパターンを選択するプロセスは、 以下の通りである。  [0117] The process of selecting the bottom field scan pattern of the previous decoded picture is as follows.
[0118] まず、ステップ S2706において、マクロブロックの変換タイプが判定される。もし、変 換タイプが 8 X 8であれば (ステップ S2708 : Yes)、ステップ S2714において、 8 X 8 ブロックのスキャンパターン力 Sメモリ部内のスキャンパターン 2756から選択される。一 方、変換タイプが 8 X 8でない場合 (ステップ S2708 : No)、ステップ S2712において 、 4 X 4ブロックのスキャンパターン力メモリ部内のスキャンパターン 2752から選択さ れる。  [0118] First, in step S2706, the conversion type of the macroblock is determined. If the conversion type is 8 × 8 (step S2708: Yes), the scan pattern force S of the 8 × 8 block is selected from the scan pattern 2756 in the memory unit in step S2714. On the other hand, if the conversion type is not 8 × 8 (step S2708: No), the scan pattern 2752 in the 4 × 4 block scan pattern force memory unit is selected in step S2712.
[0119] 直前の復号化ピクチャのトップフィールドスキャンパターンを選択するプロセスは以 下の通りである。ステップ S2710において、マクロブロックの変換タイプが判定される 。もし、変換タイプが 8 X 8であれば (ステップ S2716 : Yes)、ステップ S2720におい て、 8 X 8ブロックのスキャンパターンがメモリ部内のスキャンパターン 2754から選択 される。一方、変換タイプが 8 X 8でない場合 (ステップ S2716 :No)、ステップ S271 8において、 4 X 4ブロックのスキャンパターンがメモリ部 2750から選択される。  [0119] The process of selecting the top field scan pattern of the previous decoded picture is as follows. In step S2710, the macroblock conversion type is determined. If the conversion type is 8 × 8 (step S2716: Yes), a scan pattern of 8 × 8 blocks is selected from the scan pattern 2754 in the memory unit in step S2720. On the other hand, if the conversion type is not 8 × 8 (step S2716: No), a scan pattern of 4 × 4 blocks is selected from the memory unit 2750 in step S2718.
[0120] 直前の参照ピクチヤのボトムフィールドスキャンパターンを選択するプロセスは、以 下の通りである。ステップ S2732において、マクロブロックの変換タイプが判定される 。もし、ブロック変換が 8 X 8であれば (ステップ S2734 : Yes)、ステップ S2738にお いて、 8 X 8ブロックのスキャンパターンがメモリ部内のスキャンパターン 2748から選 択される。一方、変換タイプが 8 X 8でない場合は(ステップ S2734 : No)、ステップ S 2736において、 4 X 4ブロックのスキャンパターンがメモリ部内のスキャンパターン 27 44から選択される。 [0120] The process of selecting the bottom field scan pattern of the immediately preceding reference picture is as follows. In step S2732, the macroblock conversion type is determined. If the block conversion is 8 x 8 (step S2734: Yes), the scan pattern of 8 x 8 block is selected from the scan pattern 2748 in the memory in step S2738. Selected. On the other hand, if the conversion type is not 8 × 8 (step S2734: No), a scan pattern of 4 × 4 blocks is selected from the scan pattern 2744 in the memory unit in step S2736.
[0121] 直前の参照ピクチヤのトップフィールドスキャンパターンを選択するプロセスは、以 下の通りである。ステップ S2724において、マクロブロックの変換タイプが判定される 。もし、ブロック変換が 8 X 8であれば (ステップ S2726 : Yes)、ステップ S2728にお いて、 8 X 8ブロックのスキャンパターンがメモリ部内のスキャンパターン 2746から選 択される。一方、ブロック変換が 8 X 8でない場合は(ステップ S2726 :No)、ステップ S2730において、 4 X 4ブロックのスキャンパターン力メモリ部内のスキャンパターン 2 742から選択される。  [0121] The process of selecting the top field scan pattern of the immediately preceding reference picture is as follows. In step S2724, the macroblock conversion type is determined. If the block conversion is 8 × 8 (step S2726: Yes), a scan pattern of 8 × 8 block is selected from the scan pattern 2746 in the memory unit in step S2728. On the other hand, when the block conversion is not 8 × 8 (step S2726: No), the scan pattern 2742 in the scan pattern force memory unit of 4 × 4 block is selected in step S2730.
[0122] 図 32は、シーケンスヘッダのプログレッシブスキャンパターンを、本実施の形態に 係る画像符号ィ匕装置のメモリ部および画像復号ィ匕装置のメモリ部に格納するプロセ スを示すフローチャートである。  FIG. 32 is a flowchart showing a process of storing the progressive scan pattern of the sequence header in the memory unit of the image coding apparatus and the memory unit of the image decoding apparatus according to the present embodiment.
[0123] まず、ステップ S2800において、スキャンパターンの値が判定される。次に、ステツ プ S2802にお!/、て、ビデオシーケンスが適応変換をおこなうかどうかを判定するため のチェックがおこなわれる。そのシーケンスがステップ S2804に示すように 4 X 4およ び 8 X 8変換の両方に対応している場合は、まず、ステップ S2806において、 8 X 8ブ ロック用の新たなスキャンパターン力 ^モリ部内のスキャンパターン 2818、 2822、 28 26および 2830にコピーされ、そこでそれぞれ直前の参照フレームのトップフィールド 、直前の参照フレームのボトムフィールド、直前の復号化フレームのトップフィールド および直前の復号化フレームのボトムフィールド用の 8 X 8ブロックスキャンパターン が格納される。  [0123] First, in step S2800, the value of the scan pattern is determined. Next, in step S2802, a check is made to determine if the video sequence performs adaptive conversion. If the sequence supports both 4 X 4 and 8 X 8 conversion as shown in step S2804, first in step S2806, a new scan pattern force for 8 X 8 block ^ Scan patterns 2818, 2822, 28 26, and 2830, where the top field of the immediately preceding reference frame, the bottom field of the immediately preceding reference frame, the top field of the immediately preceding decoded frame, and the bottom field of the immediately preceding decoded frame, respectively. 8 x 8 block scan pattern for is stored.
[0124] 次に、ステップ S2808において、 4 X 4ブロック用の新たなスキャンパターンカ モリ 部内のスキャンパターン 2816、 2820、 2824および 2828にコピーされ、そこでそれ ぞれ直前の参照フレームのトップフィールド、直前の参照フレームのボトムフィールド 、直前の復号化フレームのトップフィールドおよび直前の復号化フレームのボトムフィ 一ルド用の 4 X 4ブロックスキャンパターンが格納される。  [0124] Next, in step S2808, the data is copied to scan patterns 2816, 2820, 2824, and 2828 in the new scan pattern memory section for the 4 X 4 block, where the top field of the reference frame immediately before and the previous one respectively. The 4 × 4 block scan pattern for the bottom field of the reference frame, the top field of the immediately preceding decoded frame, and the bottom field of the immediately preceding decoded frame is stored.
[0125] ステップ S2810に示すように、シーケンスが 4 X 4変換にしか対応していない場合 は、ステップ 2812において、 4 X 4ブロック用の新たなスキャンパターン力メモリ部内 のスキャンパターン 2818、 2820、 2824および 2828にコピーされ、そこでそれぞれ 直前の参照フレームのトップフィールド、直前の参照フレームのボトムフィールド、直 前の復号化フレームのトップフィールドおよび直前の復号化フレームのボトムフィー ルド用の 4 X 4ブロックスキャンパターンが格納される。 [0125] As shown in step S2810, when the sequence only supports 4 X 4 conversion Are copied in step 2812 to scan patterns 2818, 2820, 2824 and 2828 in the new scan pattern force memory section for the 4 X 4 block, where the top field of the immediately preceding reference frame and the bottom field of the immediately preceding reference frame, respectively. Stores the 4 X 4 block scan pattern for the top field of the previous decoded frame and the bottom field of the previous decoded frame.
[0126] ステップ S2810に示すように、シーケンスが 8 X 8変換にしか対応していない場合 は、ステップ S2814において、 8 X 8ブロック用の新たなスキャンパターンがまず、メモ ジ咅内のスキャンノ ターン 2818、 2822、 2826および 2830にコピーされ、そこでそ れぞれ直前の参照フレームのトップフィールド、直前の参照フレームのボトムフィール ド、直前の復号化フレームのトップフィールドおよび直前の復号化フレームのボトムフ ィールド用の 8 X 8ブロックスキャンパターンが格納される。  [0126] As shown in step S2810, if the sequence only supports 8 x 8 conversion, in step S2814, a new scan pattern for the 8 x 8 block is first created in the scan pattern in the memory card. 2818, 2822, 2826, and 2830, where the top field of the immediately preceding reference frame, the bottom field of the immediately preceding reference frame, the top field of the immediately preceding decoded frame, and the bottom field of the immediately preceding decoded frame, respectively. 8 x 8 block scan patterns for are stored.
[0127] 上記図 24は、ピクチャおよびスライスヘッダに符号ィ匕されたフィールドスキャンパタ ーンを、本実施の形態に係る画像符号ィ匕装置のメモリ部および復画像号ィ匕装置のメ モリ部に格納するプロセスを示すフローチャートである。本実施の形態においては、 対象フィールドピクチヤノ リティによって、そのピクチャまたはスライスヘッダにおける 新たなスキャンパターン力 対応するフィールドパリティのメモリ位置に格納される。  FIG. 24 shows the field scan pattern encoded in the picture and slice header, the memory unit of the image encoding device according to the present embodiment and the memory unit of the restored image signal device. It is a flowchart which shows the process stored in. In the present embodiment, the field parity is stored in the field parity memory location corresponding to the new scan pattern force in the picture or slice header according to the target field picture nature.
[0128] 例えば、対象ピクチヤがトップフィールドピクチャの場合、直前の復号化フレームの トップフィールド用のスキャンパターンを含むメモリ部に、新たなスキャンパターンが格 納される。  For example, when the target picture is a top field picture, a new scan pattern is stored in the memory unit including the scan pattern for the top field of the immediately preceding decoded frame.
[0129] (実施の形態 4)  [Embodiment 4]
図 33は、本実施の形態に係る画像符号ィヒ装置のメモリ部(図示せず)および画像 復号化装置のメモリ部(図示せず)に格納されている複数のフィールドスキャンパター ンの中から 1つのフィールドスキャンパターンを選択するプロセスの別の実施の形態 を示すフローチャートである。  FIG. 33 shows a plurality of field scan patterns stored in the memory unit (not shown) of the image coding apparatus and the memory unit (not shown) of the image decoding apparatus according to the present embodiment. 6 is a flowchart showing another embodiment of a process for selecting one field scan pattern.
[0130] まず、ステップ S2900において、対象ピクチャのピクチャタイプが判定される。次に 、ステップ S2902において対象ピクチャが Bピクチャの場合 (ステップ S2902 : Yes)、 ステップ S2904において対象ピクチヤの時間的位置が判定される。もし、ステップ S2 906において対象ピクチャが第 1参照ピクチヤに時間的により近くない場合は (ステツ プ S2906 :No)、ステップ S2908において対象マクロブロックがトップフィールドサン プルだけを含んでいるかどうか判定するためにチェックがおこなわれる。もし、対象マ クロブロックがトップフィールドサンプルを含んでいない場合は(ステップ S2908 :No) 、ステップ S2918〜S2924によって定義されたプロセスを用いて第 2参照フレームの ボトムフィールドスキャンパターンを選択する。一方、対象マクロブロックがトップフィー ルドサンプルを含んでいる場合は(ステップ S2908 : Yes)、ステップ S2910〜S291 6により定義されたプロセスを用いて第 2参照フレームのトップフィールドスキャンパタ ーンを選択する。 [0130] First, in step S2900, the picture type of the target picture is determined. Next, when the target picture is a B picture in step S2902 (step S2902: Yes), the temporal position of the target picture is determined in step S2904. If the target picture is not closer in time to the first reference picture in step S2906, In step S2908, a check is made to determine if the target macroblock contains only the top field sample. If the target macroblock does not include a top field sample (step S2908: No), the bottom field scan pattern of the second reference frame is selected using the process defined by steps S2918 to S2924. On the other hand, if the target macroblock contains a top field sample (step S2908: Yes), the top field scan pattern of the second reference frame is selected using the process defined in steps S2910 to S2916. .
[0131] 上記ステップ S2906において、対象ピクチャが第 1参照ピクチヤに時間的により近 いと判定された場合 (ステップ S2906 : Yes)、またはステップ S2902において対象ピ クチャ Bピクチャでな!、場合は(ステップ S2902: No)、ステップ S2926にお!/、て対象 マクロブロックがトップフィールドサンプルだけを含んで 、るかどうか判定するために チェックがおこなわれる。もし、対象マクロブロックがトップフィールドサンプルを含ん でいない場合は(ステップ S2926 :No)、ステップ S2936〜S2942によって定義され たプロセスを用いて第 1参照フレームのボトムフィールドスキャンパターンを選択する 。一方、対象マクロブロックがトップフィールドサンプルを含んでいる場合は (ステップ S2926: Yes)、ステップ S2928〜S2934により定義されたプロセスを用いて第 1参 照フレームのトップフィールドスキャンパターンを選択する。  [0131] If it is determined in step S2906 that the target picture is closer to the first reference picture in time (step S2906: Yes), or if it is not the target picture B picture in step S2902, (step S2902). : No), in step S2926! /, A check is made to determine if the target macroblock contains only the top field sample. If the target macroblock does not include a top field sample (step S2926: No), the bottom field scan pattern of the first reference frame is selected using the process defined by steps S2936 to S2942. On the other hand, if the target macroblock includes a top field sample (step S2926: Yes), the top field scan pattern of the first reference frame is selected using the process defined by steps S2928 to S2934.
[0132] なお、第 2参照フレームのボトムフィールドスキャンパターンを選択するプロセスは、 以下の通りである。まず、ステップ S2918において、マクロブロックの変換タイプが判 定される。もし、変換タイプが 8 X 8であれば (ステップ S1920 : Yes)、ステップ S292 4において、 8 X 8ブロックのスキャンパターンがメモリ部内のスキャンパターン 2958 から選択される。 [0132] The process of selecting the bottom field scan pattern of the second reference frame is as follows. First, in step S2918, the macroblock conversion type is determined. If the conversion type is 8 × 8 (step S1920: Yes), in step S2924, a scan pattern of 8 × 8 blocks is selected from the scan pattern 2958 in the memory unit.
[0133] 一方、変換タイプが 8 X 8でない場合は(ステップ S1920 :No)、ステップ S2922に おいて、 4 X 4ブロックのスキャンパターンがメモリ部内のスキャンパターン 2954から 選択される。  On the other hand, when the conversion type is not 8 × 8 (step S1920: No), a scan pattern of 4 × 4 blocks is selected from the scan pattern 2954 in the memory unit in step S2922.
[0134] また、第 2参照フレームのトップフィールドスキャンパターンを選択するプロセスは、 以下の通りである。まず、ステップ S2910において、マクロブロックの変換タイプが判 定される。ブロック変換が 8X8であれば (ステップ S2912: Yes)、ステップ S2916に おいて、 8X8ブロックのスキャンパターンがメモリ部内のスキャンパターン 2956から 選択される。一方、ブロック変換が 8X8でない場合は (ステップ S2912: No)、ステツ プ S2914において、 4X4ブロックのスキャンパターンがメモリ部内のスキャンパター ン 2952力も選択される。 [0134] The process of selecting the top field scan pattern of the second reference frame is as follows. First, in step S2910, the macroblock conversion type is determined. Determined. If the block conversion is 8X8 (step S2912: Yes), the scan pattern of the 8X8 block is selected from the scan pattern 2956 in the memory unit in step S2916. On the other hand, if the block conversion is not 8X8 (step S2912: No), in step S2914, the scan pattern 2952 force in the memory unit is selected as the scan pattern of the 4X4 block.
[0135] さらに、第 1参照フレームのボトムフィールドスキャンパターンを選択するプロセス、 は以下の通りである。まず、ステップ S2936において、マクロブロックの変換タイプが 判定される。もし、変換タイプが 8X8であれば (ステップ S2938: Yes)、ステップ 294 2において、 8X8ブロックのスキャンパターンがメモリ部内のスキャンパターン 2950 力も選択される。一方、変換タイプが 8X8でない場合は (ステップ S2938: No)、ステ ップ S2940において、 4X4ブロックのスキャンパターンがメモリ部内のスキャンパター ン 2946から選択される。  [0135] Further, the process of selecting the bottom field scan pattern of the first reference frame is as follows. First, in step S2936, the macroblock conversion type is determined. If the conversion type is 8X8 (step S2938: Yes), in step 2942, the scan pattern of the 8X8 block and the scan pattern 2950 in the memory unit are also selected. On the other hand, if the conversion type is not 8X8 (step S2938: No), the scan pattern of 4X4 block is selected from the scan pattern 2946 in the memory unit in step S2940.
[0136] さらに、第 1参照フレームのトップフィールドスキャンパターンを選択するプロセスは 、以下の通りである。まず、ステップ S2928において、マクロブロックの変換タイプが 判定される。もし、変換タイプが 8X8であれば (ステップ S2930: Yes)、ステップ S29 34において、 8X8ブロックのスキャンパターンがメモリ部内のスキャンパターン 2948 力も選択される。一方、変換タイプが 8X8でない場合は (ステップ S2930: No)、ステ ップ S2932において、 4X4ブロックのスキャンパターンがメモリ部内のスキャンパター ン 2944から選択される。  [0136] Further, the process of selecting the top field scan pattern of the first reference frame is as follows. First, in step S2928, the macroblock conversion type is determined. If the conversion type is 8X8 (step S2930: Yes), in step S2934, the scan pattern of the 8X8 block and the scan pattern 2948 in the memory unit are also selected. On the other hand, when the conversion type is not 8X8 (step S2930: No), in step S2932, the scan pattern of 4X4 block is selected from the scan pattern 2944 in the memory unit.
[0137] 図 34は、シーケンスヘッダのプログレッシブスキャンパターンを、本実施の形態に 係る画像符号ィ匕装置のメモリ部(図示せず)および画像復号化装置のメモリ部(図示 せず)に格納するプロセスを示すフローチャートである。  [0137] Fig. 34 stores the progressive scan pattern of the sequence header in the memory unit (not shown) of the image coding apparatus according to the present embodiment and the memory unit (not shown) of the image decoding device. It is a flowchart which shows a process.
[0138] まず、ステップ S3000において、スキャンパターンの値が判定される。次に、ステツ プ S3002にお!/、て、ビデオシーケンスが適応変換をおこなうかどうかを判定するため のチェックがおこなわれる。そのシーケンスがステップ S3004に示すように、 4X4お よび 8 X 8変換の両方に対応して!/、る場合は(ステップ S3004: Yes)、まずステップ S 3006において、 8 X 8ブロック用の新たなスキャンパターン力 Sメモリ部内のスキャンパ ターン 3020、 3022、 3028および 3030にコピーされ、そこでそれぞれ第 1参照フレ ームのトップフィールド、第 1参照フレームのボトムフィールド、第 2参照フレームのトツ プフィールドおよび第 2参照フレームのボトムフィールド用の 8 X 8ブロックスキャンパ ターンが格納される。 [0138] First, in step S3000, the value of the scan pattern is determined. Next, in step S3002, a check is performed to determine if the video sequence performs adaptive conversion. If the sequence supports both 4X4 and 8X8 conversions as shown in step S3004 (step S3004: Yes), first in step S3006 a new 8 x 8 block Scan pattern force Copied to scan patterns 3020, 3022, 3028 and 3030 in the S memory, where the first reference frame 8x8 block scan patterns for the top field of the frame, the bottom field of the first reference frame, the top field of the second reference frame, and the bottom field of the second reference frame are stored.
[0139] 次に、ステップ S3008において、 4 X 4ブロック用の新たなスキャンパターンカ モリ 部内のスキャンパターン 3016、 3018、 3024および 3026にコピーされ、そこでそれ ぞれ第 1参照フレームのトップフィールド、第 1参照フレームのボトムフィールド、第 2 参照フレームのトップフィールドおよび第 2参照フレームのボトムフィールド用の 4 X 4 ブロックスキャンパターンが格納される。  [0139] Next, in step S3008, it is copied to scan patterns 3016, 3018, 3024, and 3026 in the new scan pattern memory section for the 4 X 4 block, where the top field and the first reference frame of the first reference frame respectively. Stores 4 x 4 block scan patterns for the bottom field of the 1 reference frame, the top field of the 2nd reference frame, and the bottom field of the 2nd reference frame.
[0140] もし、シーケンスが 4 X 4変換にしか対応していない場合は (ステップ S3010 : Yes) 、ステップ S3012において、 4 X 4ブロック用の新たなスキャンパターン力メモリ部内 のスキャンパターン 3016、 3018、 3024および 3026〖こコピーされ、そこでそれぞれ 第 1参照フレームのトップフィールド、第 1参照フレームのボトムフィールド、第 2参照 フレームのトップフィールドおよび第 2参照フレームのボトムフィールド用の 4 X 4ブロ ックスキャンパターンが格納される。  [0140] If the sequence only supports 4 X 4 conversion (step S3010: Yes), in step S3012, the scan pattern 3016, 3018 in the new scan pattern force memory unit for 4 X 4 blocks 3024 and 3026 copies, where there are 4 X 4 block scans for the top field of the first reference frame, the bottom field of the first reference frame, the top field of the second reference frame and the bottom field of the second reference frame, respectively. A pattern is stored.
[0141] 一方、シーケンスが 8 X 8変換にしか対応していない場合は(ステップ S3010 : No) 、ステップ S3014において、 8 X 8ブロック用の新たなスキャンパターンがまずメモリ部 内のスキャンパターン 3020、 3022、 3028および 3030にコピーされ、そこでそれぞ れ第 1参照フレームのトップフィールド、第 1参照フレームのボトムフィールド、第 2参 照フレームのトップフィールドおよび第 2参照フレームのボトムフィールド用の 8 X 8ブ ロックスキャンパターンが格納される。  [0141] On the other hand, if the sequence only supports 8 × 8 conversion (step S3010: No), in step S3014, a new scan pattern for the 8 × 8 block is first scanned with the scan pattern 3020 in the memory unit. Copied to 3022, 3028 and 3030, where 8 X 8 for the top field of the first reference frame, the bottom field of the first reference frame, the top field of the second reference frame and the bottom field of the second reference frame, respectively Stores the block scan pattern.
[0142] 上記図 30は、ピクチャおよびスライスヘッダに符号ィ匕されたフィールドスキャンパタ ーンを、本発明のピクチャ符号ィ匕および復号ィ匕装置のメモリ部に格納するプロセスを 示すフローチャートである。本実施の形態においては、対象フィールドピクチャのパリ ティによって、そのピクチャまたはスライスヘッダにおける新たなスキャンパターンが、 対応するフィールドパリティのメモリ位置に格納される。例えば、対象ピクチヤがトップ フィールド参照ピクチヤの場合、第 1参照フレームのトップフィールド用のスキャンパタ ーンを含むメモリ部に、新たなスキャンパターンが格納される。  FIG. 30 is a flowchart showing a process of storing the field scan pattern encoded in the picture and slice header in the memory unit of the picture encoding / decoding apparatus according to the present invention. In the present embodiment, a new scan pattern in the picture or slice header is stored in the memory location of the corresponding field parity depending on the parity of the target field picture. For example, when the target picture is a top field reference picture, a new scan pattern is stored in the memory unit including the scan pattern for the top field of the first reference frame.
[0143] なお、上記実施の形態では、完全な(即ち、 4 X 4画素のマクロブロックの場合は 16 のスキャン順序があり、 8 X 8画素のマクロブロックの場合は 64のスキャン順序がある) スキャンパターンを用いたが、スキャンパターンの一部が省略されていてもよい。この 場合は、予め規定したスキャン方式に従ってスキャンを実行する。 It should be noted that in the above embodiment, a complete (that is, 16 in the case of a 4 × 4 pixel macroblock). (In the case of a macro block of 8 × 8 pixels, there are 64 scan orders.) Although a scan pattern is used, a part of the scan pattern may be omitted. In this case, scanning is performed according to a predetermined scanning method.
産業上の利用可能性 Industrial applicability
本発明は、マルチメディアデータの符号ィ匕装置および復号ィ匕装置として利用が可 能であり、特に 2次元の直交変換係数を 1次元化するためにスキャンを行う画像符号 化装置及び画像復号化装置に利用可能である。  INDUSTRIAL APPLICABILITY The present invention can be used as an encoding device and a decoding device for multimedia data, and in particular, an image encoding device and an image decoding that perform scanning to make a two-dimensional orthogonal transform coefficient one-dimensional. Available to the device.

Claims

請求の範囲 The scope of the claims
[1] ピクチャをマクロブロック単位で符号ィ匕する画像符号ィ匕装置であって、  [1] An image encoding device for encoding a picture in units of macroblocks,
ピクチャを符号化する際に、少なくとも 2以上の種類のマクロブロックを用 、て符号 化すべきか否かを判定する判定手段と、  Determining means for determining whether or not to encode using a macroblock of at least two types when encoding a picture;
前記判定手段において、前記 2以上のマクロブロックを用いて符号化すべきと判定 された場合は、それぞれの種類のマクロブロック毎に、複数のスキャン方式の中から 選択されたひとつのスキャン方式を示す情報をヘッダ情報として符号ィヒすると共に、 前記選択されたそれぞれのスキャン方式に基づ ヽて、各スキャン方式に対応するマ クロブロックの 2次元配列の直交変換係数を 1次元配列の順序で符号ィヒする符号ィ匕 手段と  When the determination means determines that encoding is to be performed using the two or more macroblocks, information indicating one scan method selected from a plurality of scan methods for each type of macroblock As the header information, and based on the selected scanning method, the orthogonal transform coefficients of the two-dimensional array of macroblocks corresponding to each scanning method are encoded in the order of the one-dimensional array. Sign
を備えることを特徴とする画像符号化装置。  An image encoding device comprising:
[2] ヘッダ情報を有する符号ィ匕ビットストリームをマクロブロック単位で復号ィ匕する画像 復号化装置であって、 [2] An image decoding device that decodes a code bitstream having header information in units of macroblocks,
前記符号ィ匕ビットストリームのヘッダ情報を復号ィ匕し、当該復号化されたヘッダ情報 から、ピクチャを構成する少なくとも 2以上の種類のマクロブロックについて 2次元配 列の直交変換係数を 1次元配列に並び替えるためのスキャン方式を示す情報を抽出 し、当該スキャン方式を示す情報を用いて、 1次元配列順序で符号化された前記符 号ィ匕ビットストリームの直交変換係数を復号ィ匕して 2次元配列に変換する復号ィ匕手段 を備える  The header information of the code key stream is decoded, and from the decoded header information, orthogonal transform coefficients of a two-dimensional array are converted into a one-dimensional array for at least two types of macroblocks constituting a picture. Information indicating the scan method for rearrangement is extracted, and using the information indicating the scan method, the orthogonal transform coefficient of the code bitstream encoded in the one-dimensional array order is decoded and 2 Decoding means for converting to a dimensional array
ことを特徴とする画像復号化装置。  An image decoding apparatus characterized by that.
[3] 前記ヘッダ情報には、フレームマクロブロックに対応する前記スキャン方式を示す 情報をフィールドマクロブロックに対応する前記スキャン方式を示す情報が含まれて おり、 [3] The header information includes information indicating the scan method corresponding to the frame macroblock, and information indicating the scan method corresponding to the field macroblock,
前記判定手段は、ピクチャを符号ィ匕する際に、フレームマクロブロック及びフィール ドマクロブロックを用いて符号ィヒすべき力否かを判定する判定手段と、  The determination means determines whether or not to use a frame macroblock and a field macroblock when coding a picture.
前記復号化手段は、前記判定手段において、フレームマクロブロック及びフィール ドマクロブロックを用いて符号ィ匕すべきと判定された場合は、前記ヘッダ情報に含ま れる前記フレームマクロブロック又は前記フィールドマクロブロックに対に対応するス キャン方式を示す情報を抽出する When the determination unit determines that the code should be encoded using the frame macroblock and the field macroblock, the decoding unit stores the frame macroblock or the field macroblock included in the header information. The pair corresponding to Extract information indicating the can method
ことを特徴とする請求項 2記載の画像復号ィ匕装置。  The image decoding apparatus according to claim 2, wherein:
[4] 前記ヘッダ情報には、前記フレームマクロブロックのブロックサイズ又は前記フィー ルドマクロブロックのブロックサイズに対応するスキャン方式を示す情報が含まれてお り、  [4] The header information includes information indicating a scan method corresponding to the block size of the frame macroblock or the block size of the field macroblock,
前記復号化手段は、さらに、  The decoding means further comprises:
前記ヘッダ情報に含まれる前記ブロックサイズに対応するスキャン方式を示す情報 を抽出する  Extracts information indicating a scanning method corresponding to the block size included in the header information
ことを特徴とする請求項 2記載の画像復号ィ匕装置。  The image decoding apparatus according to claim 2, wherein:
[5] 前記ヘッダ情報には、前記マクロブロック用いる予測方式を示す情報が含まれてお り、 [5] The header information includes information indicating a prediction method used by the macroblock,
前記復号化手段は、さらに、  The decoding means further comprises:
前記ヘッダ情報に含まれる前記予測方式に対応するスキャン方式を示す情報を抽 出する  Extracts information indicating a scanning method corresponding to the prediction method included in the header information
ことを特徴とする請求項 2記載の画像復号ィ匕装置。  The image decoding apparatus according to claim 2, wherein:
[6] 前記ヘッダ情報には、前記フレームマクロブロックのブロックサイズ又は前記フィー ルドマクロブロックのブロックサイズに対応するスキャン方式を示す情報が含まれてお り、  [6] The header information includes information indicating a scan method corresponding to the block size of the frame macroblock or the block size of the field macroblock,
前記復号化手段は、さらに、  The decoding means further comprises:
前記ヘッダ情報に含まれる前記ブロックサイズに対応するスキャン方式を示す情報 を抽出する  Extracts information indicating a scanning method corresponding to the block size included in the header information
ことを特徴とする請求項 2記載の画像復号ィ匕装置。  The image decoding apparatus according to claim 2, wherein:
[7] 前記ヘッダ情報には、さらに、前記スキャン方式を示す情報の一部が省略されてい ることを示す情報が含まれており、 [7] The header information further includes information indicating that a part of the information indicating the scan method is omitted,
前記復号化手段は、さらに、  The decoding means further comprises:
前記スキャン方式を示す情報の一部が省略されて!ヽるカゝ否かを判定し、当該省略 力 Sあると判定された場合は、予め規定したスキャン方式で代替する  It is determined whether a part of the information indicating the scanning method is omitted or not! If it is determined that the omitted power S is present, it is replaced with a predetermined scanning method.
ことを特徴とする請求項 2記載の画像復号ィ匕装置。 The image decoding apparatus according to claim 2, wherein:
[8] ピクチャをマクロブロック単位で符号ィ匕する画像符号ィ匕方法であって、 ピクチャを符号化する際に、少なくとも 2以上の種類のマクロブロックを用 、て符号 化すべきカゝ否かを判定し、 [8] An image encoding method for encoding a picture in units of macroblocks, and whether or not to encode using at least two or more types of macroblocks when encoding a picture. Judgment,
前記 2以上の種類のマクロブロックを用いて符号ィ匕すべきと判定された場合は、そ れぞれの種類のマクロブロック毎に、複数のスキャン方式の中力 選択された一のス キャン方式を示す情報をヘッダ情報として符号ィ匕すると共に、前記選択されたそれぞ れのスキャン方式に基づ 、て、各スキャン方式に対応するマクロブロックの 2次元配 列の直交変換係数を 1次元配列に並べる  If it is determined that the two or more types of macroblocks should be used for coding, one of the multiple scanning methods is selected for each type of macroblock. Indicating the header information as header information, and, based on the selected scanning method, the one-dimensional array of orthogonal transformation coefficients of the two-dimensional array of macroblocks corresponding to each scanning method. Line up
ことを特徴とする画像符号化方法。  An image encoding method characterized by the above.
[9] ヘッダ情報を有する符号ィ匕ビットストリームをマクロブロック単位で復号ィ匕する画像 復号化方法であって、 [9] An image decoding method for decoding a code bitstream having header information in units of macroblocks,
前記符号ィ匕ビットストリームのヘッダ情報を復号ィ匕し、当該復号化されたヘッダ情報 から、ピクチャを構成する少なくとも 2以上の種類のマクロブロックについて 2次元配 列の直交変換係数を 1次元配列に並び替えるためのスキャン方式を示す情報を抽出 し、当該スキャン方式を示す情報を用いて、 1次元配列の直交変換係数を 2次元配 列に変換する  The header information of the code key stream is decoded, and from the decoded header information, orthogonal transform coefficients of a two-dimensional array are converted into a one-dimensional array for at least two types of macroblocks constituting a picture. Extract information indicating the scan method for sorting, and use the information indicating the scan method to convert the orthogonal transformation coefficient of the one-dimensional array into a two-dimensional array.
ことを特徴とする画像復号化方法。  An image decoding method characterized by the above.
[10] ピクチャをマクロブロック単位で符号ィ匕する画像符号ィ匕装置に用いられる、コンビュ ータに実行させるためのプログラムであって、 [10] A program for causing a computer to execute a picture used in an image coding apparatus for coding a picture in units of macroblocks,
前記プログラムは、  The program is
ピクチャを符号化する際に、少なくとも 2以上の種類のマクロブロックを用 、て符号 化すべき力否かを判定する判定ステップと、  A determination step for determining whether or not to encode using a macroblock of at least two types when encoding a picture; and
前記判定手段において、前記 2以上のマクロブロックを用いて符号化すべきと判定 された場合は、それぞれの種類のマクロブロック毎に、複数のスキャン方式の中から 選択された一のスキャン方式を示す情報をヘッダ情報として符号ィ匕すると共に、前記 選択されたそれぞれのスキャン方式に基づ 、て、各スキャン方式に対応するマクロブ ロックの 2次元配列の直交変換係数を 1次元配列の順序で符号化する符号化ステツ プと を含むことを特徴とするプログラム。 When the determination means determines that encoding is to be performed using the two or more macroblocks, information indicating one scan method selected from a plurality of scan methods for each type of macroblock Is encoded as header information, and the orthogonal transform coefficients of the two-dimensional array of macroblocks corresponding to each scan method are encoded in the order of the one-dimensional array based on each of the selected scan methods. Encoding step and The program characterized by including.
[11] ヘッダ情報を有する符号ィ匕ビットストリームをマクロブロック単位で復号ィ匕する画像 復号ィ匕装置に用いる、コンピュータに実行させるためのプログラムであって、 前記プログラムは、  [11] An image for decoding a coded bitstream having header information in units of macroblocks, a program for causing a computer to execute the program,
前記符号ィ匕ビットストリームのヘッダ情報を復号ィ匕し、当該復号化されたヘッダ情報 から、ピクチャを構成する少なくとも 2以上の種類のマクロブロックについて 2次元配 列の直交変換係数を 1次元配列順序で符号化された前記符号ィ匕ビットストリームに 並び替えるためのスキャン方式を示す情報を抽出し、当該スキャン方式を示す情報 を用いて、 1次元配列の直交変換係数を復号化して 2次元配列に変換する復号化ス テツプを含む  The header information of the code key stream is decoded, and from the decoded header information, orthogonal transform coefficients of a two-dimensional array are arranged in a one-dimensional arrangement order for at least two types of macroblocks constituting a picture. The information indicating the scan method for rearranging the encoded signal bitstream encoded in step (b) is extracted, and the orthogonal transform coefficient of the one-dimensional array is decoded into the two-dimensional array using the information indicating the scan method. Contains decryption steps to convert
ことを特徴とするプログラム。  A program characterized by that.
[12] ピクチャをマクロブロック単位で符号ィ匕する集積回路であって、 [12] An integrated circuit for encoding a picture in units of macroblocks,
ピクチャを符号化する際に、少なくとも 2以上の種類のマクロブロックを用 、て符号 化すべきか否かを判定する判定手段と、  Determination means for determining whether or not to encode using a macroblock of at least two or more types when encoding a picture;
前記判定手段において、前記 2以上のマクロブロックを用いて符号化すべきと判定 された場合は、それぞれの種類のマクロブロック毎に、複数のスキャン方式の中から 選択された一のスキャン方式を示す情報をヘッダ情報として符号ィ匕すると共に、前記 選択されたそれぞれのスキャン方式に基づ 、て、各スキャン方式に対応するマクロブ ロックの 2次元配列の直交変換係数を 1次元配列の順序で符号化する符号化手段と を備えることを特徴とする集積回路。  When the determination means determines that encoding is to be performed using the two or more macroblocks, information indicating one scan method selected from a plurality of scan methods for each type of macroblock Is encoded as header information, and the orthogonal transform coefficients of the two-dimensional array of macroblocks corresponding to each scan method are encoded in the order of the one-dimensional array based on each of the selected scan methods. An integrated circuit comprising: encoding means.
[13] ヘッダ情報を有する符号ィ匕ビットストリームをマクロブロック単位で復号ィ匕する集積 回路であって、 [13] An integrated circuit that decodes a code bitstream having header information in units of macroblocks,
前記符号ィ匕ビットストリームのヘッダ情報を復号ィ匕し、当該復号化されたヘッダ情報 から、ピクチャを構成する少なくとも 2以上の種類のマクロブロックについて 2次元配 列の直交変換係数を 1次元配列順序で符号化された前記符号ィ匕ビットストリームに 並び替えるためのスキャン方式を示す情報を抽出し、当該スキャン方式を示す情報 を用いて、 1次元配列の直交変換係数を復号化して 2次元配列に変換する復号化手 段を備える ことを特徴とする集積回路。 The header information of the code key stream is decoded, and from the decoded header information, orthogonal transform coefficients of a two-dimensional array are arranged in a one-dimensional arrangement order for at least two types of macroblocks constituting a picture. The information indicating the scan method for rearranging the encoded signal bitstream encoded in step (b) is extracted, and the orthogonal transform coefficient of the one-dimensional array is decoded into the two-dimensional array using the information indicating the scan method. Provide decryption means to convert An integrated circuit characterized by that.
PCT/JP2006/320331 2005-10-11 2006-10-11 Image encoding device, image decoding device, and method thereof WO2007043583A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US72478805P 2005-10-11 2005-10-11
US60/724,788 2005-10-11

Publications (1)

Publication Number Publication Date
WO2007043583A1 true WO2007043583A1 (en) 2007-04-19

Family

ID=37942813

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2006/320331 WO2007043583A1 (en) 2005-10-11 2006-10-11 Image encoding device, image decoding device, and method thereof

Country Status (1)

Country Link
WO (1) WO2007043583A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013003584A1 (en) * 2011-06-28 2013-01-03 Qualcomm Incorporated Derivation of the position in scan order of the last significant transform coefficient in video coding
JP2014014163A (en) * 2013-09-13 2014-01-23 Ntt Docomo Inc Image encoder and image decoder
US8976861B2 (en) 2010-12-03 2015-03-10 Qualcomm Incorporated Separately coding the position of a last significant coefficient of a video block in video coding
JP2015046930A (en) * 2014-11-04 2015-03-12 株式会社Nttドコモ Image encoding apparatus, method and program, and image decoding apparatus, method and program
US9042440B2 (en) 2010-12-03 2015-05-26 Qualcomm Incorporated Coding the position of a last significant coefficient within a video block based on a scanning order for the block in video coding
US9106913B2 (en) 2011-03-08 2015-08-11 Qualcomm Incorporated Coding of transform coefficients for video coding
US9197890B2 (en) 2011-03-08 2015-11-24 Qualcomm Incorporated Harmonized scan order for coding transform coefficients in video coding
JP2016103852A (en) * 2016-01-20 2016-06-02 株式会社Nttドコモ Image encoding device, method and program and image decoding device, method and program
US11330272B2 (en) 2010-12-22 2022-05-10 Qualcomm Incorporated Using a most probable scanning order to efficiently code scanning order information for a video block in video coding

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05207440A (en) * 1992-01-30 1993-08-13 Matsushita Electric Ind Co Ltd Code quantity controller
JPH0686262A (en) * 1992-02-29 1994-03-25 Samsung Electron Co Ltd Apparatus for encoding of image
JPH06165163A (en) * 1991-11-15 1994-06-10 American Teleph & Telegr Co <Att> Encoding device of digital video signal
JPH0750836A (en) * 1993-08-06 1995-02-21 Sharp Corp Picture coder
JPH08256266A (en) * 1995-03-17 1996-10-01 Mitsubishi Electric Corp Image coding system
JPH08280032A (en) * 1995-03-28 1996-10-22 Daewoo Electron Co Ltd Digital video signal encoding device using adaptive scanningtechnique
JPH11331844A (en) * 1998-05-08 1999-11-30 Ricoh Co Ltd Fixed length block encoder and decoder
JP2000050267A (en) * 1997-07-25 2000-02-18 Matsushita Electric Ind Co Ltd Image processing method, image processing unit and data storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06165163A (en) * 1991-11-15 1994-06-10 American Teleph & Telegr Co <Att> Encoding device of digital video signal
JPH05207440A (en) * 1992-01-30 1993-08-13 Matsushita Electric Ind Co Ltd Code quantity controller
JPH0686262A (en) * 1992-02-29 1994-03-25 Samsung Electron Co Ltd Apparatus for encoding of image
JPH0750836A (en) * 1993-08-06 1995-02-21 Sharp Corp Picture coder
JPH08256266A (en) * 1995-03-17 1996-10-01 Mitsubishi Electric Corp Image coding system
JPH08280032A (en) * 1995-03-28 1996-10-22 Daewoo Electron Co Ltd Digital video signal encoding device using adaptive scanningtechnique
JP2000050267A (en) * 1997-07-25 2000-02-18 Matsushita Electric Ind Co Ltd Image processing method, image processing unit and data storage medium
JPH11331844A (en) * 1998-05-08 1999-11-30 Ricoh Co Ltd Fixed length block encoder and decoder

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8976861B2 (en) 2010-12-03 2015-03-10 Qualcomm Incorporated Separately coding the position of a last significant coefficient of a video block in video coding
US9042440B2 (en) 2010-12-03 2015-05-26 Qualcomm Incorporated Coding the position of a last significant coefficient within a video block based on a scanning order for the block in video coding
US9055290B2 (en) 2010-12-03 2015-06-09 Qualcomm Incorporated Coding the position of a last significant coefficient within a video block based on a scanning order for the block in video coding
US11330272B2 (en) 2010-12-22 2022-05-10 Qualcomm Incorporated Using a most probable scanning order to efficiently code scanning order information for a video block in video coding
US10397577B2 (en) 2011-03-08 2019-08-27 Velos Media, Llc Inverse scan order for significance map coding of transform coefficients in video coding
US11405616B2 (en) 2011-03-08 2022-08-02 Qualcomm Incorporated Coding of transform coefficients for video coding
US11006114B2 (en) 2011-03-08 2021-05-11 Velos Media, Llc Coding of transform coefficients for video coding
US9106913B2 (en) 2011-03-08 2015-08-11 Qualcomm Incorporated Coding of transform coefficients for video coding
US10499059B2 (en) 2011-03-08 2019-12-03 Velos Media, Llc Coding of transform coefficients for video coding
US9197890B2 (en) 2011-03-08 2015-11-24 Qualcomm Incorporated Harmonized scan order for coding transform coefficients in video coding
US9338449B2 (en) 2011-03-08 2016-05-10 Qualcomm Incorporated Harmonized scan order for coding transform coefficients in video coding
US9491469B2 (en) 2011-06-28 2016-11-08 Qualcomm Incorporated Coding of last significant transform coefficient
WO2013003584A1 (en) * 2011-06-28 2013-01-03 Qualcomm Incorporated Derivation of the position in scan order of the last significant transform coefficient in video coding
CN103621086B (en) * 2011-06-28 2017-08-11 高通股份有限公司 The export of position of the last efficient transformation coefficient in scanning sequence in video coding
US9167253B2 (en) 2011-06-28 2015-10-20 Qualcomm Incorporated Derivation of the position in scan order of the last significant transform coefficient in video coding
CN103621086A (en) * 2011-06-28 2014-03-05 高通股份有限公司 Derivation of the position in scan order of the last significant transform coefficient in video coding
JP2014014163A (en) * 2013-09-13 2014-01-23 Ntt Docomo Inc Image encoder and image decoder
JP2015046930A (en) * 2014-11-04 2015-03-12 株式会社Nttドコモ Image encoding apparatus, method and program, and image decoding apparatus, method and program
JP2016103852A (en) * 2016-01-20 2016-06-02 株式会社Nttドコモ Image encoding device, method and program and image decoding device, method and program

Similar Documents

Publication Publication Date Title
JP6846988B2 (en) A split block coding method for video coding, a split block decoding method for video decoding, and a recording medium that realizes this.
WO2007043583A1 (en) Image encoding device, image decoding device, and method thereof
JP5513740B2 (en) Image decoding apparatus, image encoding apparatus, image decoding method, image encoding method, program, and integrated circuit
JP5026092B2 (en) Moving picture decoding apparatus and moving picture decoding method
KR101246294B1 (en) Method of and apparatus for video intraprediction encoding/decoding
DK2689582T3 (en) BI-PREDICTIVE MOVE MODE BASED ON UNI-PREDICTIVE AND BI-PREDICTIVE NEEDS IN VIDEO CODING
KR101087400B1 (en) Bitplane coding and decoding for ac prediction status and macroblock field/frame coding type information
US7099515B2 (en) Bitplane coding and decoding for AC prediction status information
EP2656607B1 (en) Mode dependent scanning of coefficients of a block of video data
KR20180104599A (en) Image coding method and apparatus, image decoding method and apparatus
WO2010001999A1 (en) Dynamic image encoding/decoding method and device
JP6686212B2 (en) Image processing apparatus, image processing method, program, and recording medium
JPWO2010137323A1 (en) Video encoding apparatus, video decoding apparatus, video encoding method, and video decoding method
KR20110125153A (en) Method and apparatus for filtering image and encoding/decoding of video data using thereof
JP2004140473A (en) Image information coding apparatus, decoding apparatus and method for coding image information, method for decoding
US9386324B2 (en) Image encoding/decoding apparatus and method using multi-dimensional integer transform
US20130215960A1 (en) Device and method for competition-based intra prediction encoding/decoding using multiple prediction filters
WO2012081162A1 (en) Moving image encoding device, moving image decoding device, moving image encoding method and moving image decoding method
JP5475409B2 (en) Moving picture coding apparatus and moving picture coding method
JP2008004984A (en) Image processor and method, program, and recording medium
JPWO2010055675A1 (en) Video encoding apparatus and video decoding apparatus
KR20150021981A (en) Method for decoding partitioned block in video decoding and recording medium implementing the same
KR101648123B1 (en) Method for encoding partitioned block in video encoding, method for decoding partitioned block in video decoding and recording medium implementing the same
KR20150021982A (en) Method for decoding partitioned block in video decoding and recording medium implementing the same
KR20150021980A (en) Method for decoding partitioned block in video decoding and recording medium implementing the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06811638

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP