# US 2003/0227974 A1 · Bitstream transcoder

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2003/0227974 A1
- Document ID: US20030227974A1
- Status: Published application
- Kind: A1
- Application number: 10/279,533
- Filed: 2002-10-23
- Published: 2003-12-11
- Earliest claimed: 2002-06-11
- Assignees: Hitachi, Ltd.
- Inventors: Taku Nakamura; Naoki Yamamoto; Takuya Imaide; Hiroyasu Ohtsubo
- Web page: https://patentgrep.com/patent/US20030227974A1

## CPC

- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/40: using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
- H04N 19/48: using compressed domain processing techniques other than decoding, e.g. modification of transform coefficients, variable length coding [VLC] data or run-length data (motion estimation in a transform domain H04N19/547; processing of decoded motion vectors H04N19/513)
- H04N 19/90: using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

In a bitstream transcoder, the computational cost and the memory area are suppressed so that stream transcoding is performed with a reduced number of times of computing and a reduced memory area. The transcoder includes a VLD portion 11 for performing VLD on a bitstream encoded in MPEG-2 to output quantized DCT coefficients; an IQ portion 12 for receiving the coefficients, and outputting inverse-quantized DCT coefficients; a coefficient table 132 for storing a transformation matrix obtained by multiplying transformation matrices for operating band-limiting filter, IDCT, down-sampling and DCT, respectively, together in advance; a DCT scaling portion 13 for performing down-sampling on the DCT coefficients by use of the transformation matrix; a Q portion 15 for outputting quantized DCT coefficients down-sampled horizontally and vertically; and a VLC portion 16 for encoding the quantized DCT coefficients in MPEG-4 to output a bitstream.

## Claims

### Claim 1

An image information transcoding apparatus for performing down-sampling on image compressed information encoded in a first compression method to transcode said image compressed information into image compressed information encoded in a second compression method, comprising:
a decoder/inverse-quantizer which decodes and inverse-quantizes image compressed information encoded in said first compression method, and outputs first DCT (Discrete Cosine Transform) coefficients;
a storage which stores a transformation matrix for use in down-sampling, said first DCT coefficients being multiplied by said transformation matrix;
a transformer which multiplies said first DCT coefficients by said transformation matrix read from said storage portion, and outputs second DCT coefficients; and
a quantizer/encoder which quantizes and encodes said second DCT coefficients, and outputs image compressed information encoded in said second compression method.

### Claim 2 (depends on 1)

An image information transcoding apparatus according to claim 1, wherein:
said transformation matrix is a matrix obtained by multiplying matrices for operating band-limiting filter, inverse discrete cosine transform, down-sampling and discrete cosine transform, respectively, together.

### Claim 3 (depends on 1)

An image information transcoding apparatus according to claim 1, wherein:
said decoder/inverse-quantizer decodes motion vectors included in said image compressed information, and outputs said decoded motion vectors;
a motion vector scaler is provided to scale down components of said motion vectors; and
said quantizer/encoder portion encodes said motion vectors having components scaled down by said motion vector scaling portion, and outputs said encoded motion vectors.

### Claim 4 (depends on 2)

An image information transcoding apparatus according to claim 2, wherein:
said storage has a plurality of transformation matrices corresponding to a band limit of said band-limiting filter; and
said transformer reads one of said plurality of transformation matrices in accordance with one of a coefficient distribution of said first DCT coefficients and a rate of said second DCT coefficients to be outputted.

### Claim 5

A bitstream transcoder comprising:
a variable length decoder (VLD) which performs variable length decoding on a bitstream encoded in a first compression method, and outputs quantized DCT coefficients;
an inverse quantizer (IQ) which receives said quantized DCT coefficients from said VLD portion, performs inverse quantizing thereon, and outputs DCT coefficients;
a coefficient table which stores a transformation matrix obtained by multiplying transformation matrices for operating band-limiting filter, inverse DCT (IDCT), down-sampling and DCT, respectively, together in advance;
a DCT scaler (DCT SCALE) which receives said DCT coefficients from said IQ portion and performs down-sampling thereon by use of said transformation matrix read from said coefficient table;
a quantizer (Q) which receives said DCT coefficients, down-sampled horizontally and vertically, from said DCT SCALE portion, quantizes said DCT coefficients, and outputs quantized DCT coefficients; and
a variable length coder (VLC) which encodes said quantized DCT coefficients from said Q portion in a second compression method, to output a bitstream.

### Claim 6 (depends on 5)

A bitstream transcoder according to claim 5, wherein:
said DCT SCALE portion includes a horizontal DCT scaler which receives said DCT coefficients from said IQ portion and performing horizontal down-sampling thereon, and a vertical DCT scaler which receives said DCT coefficients down-sampled horizontally and performing vertical down-sampling thereon.

### Claim 7 (depends on 5)

A bitstream transcoder according to claim 5, further comprising:
a motion vector scaling (MV SCALE) portion which receives motion vector values from said VLD portion and performs horizontal and vertical down-sampling thereon.

### Claim 8 (depends on 5)

A bitstream transcoder according to claim 5, wherein:
said DCT SCALE portion reads a down-sampling transformation matrix from said coefficient table in accordance with said DCT coefficients supplied thereto, and computing with said transformation matrix.

### Claim 9 (depends on 5)

A bitstream transcoder according to claim 5, wherein:
each of said first compression method and said second compression method is one of MPEG-2 (Moving Pictures Expert Group, ISO/IEC 13818) and MPEG-4 (ISO/IEC 14496).

### Claim 10 (depends on 5)

A bitstream transcoder according to claim 5, wherein:
a plurality of transformation matrices corresponding to band-limited widths are stored in said coefficient table, and said DCT SCALE portion changes a band-limited width in accordance with a coefficient distribution of said DCT coefficients supplied.

### Claim 11 (depends on 6)

A bitstream transcoder according to claim 6, wherein:
said DCT SCALE portion controls a band-limited width in accordance with both a distribution of said DCT coefficients and a frame rate of frames to be output.

### Claim 12 (depends on 5)

A bitstream transcoder according to claim 5, wherein:
a transformation matrix obtained by multiplying matrices for operating band-limiting filter, IDCT, converting from field DCT to frame DCT, down-sampling and DCT, respectively, together, is stored in said coefficient table in advance, and said transformation matrix is used for down-sampling when said DCT coefficients supplied are based on field DCT in which DCT is performed by field, so that DCT coefficients outputted are based on frame DCT in which DCT is performed by frame.

### Claim 13 (depends on 12)

A bitstream transcoder according to claim 12, wherein:
said DCT SCALE portion includes a top-field/bottom-field discriminator which judges which field said DCT coefficients supplied belong to, a top field or a bottom field, and a buffer memory for storing DCT coefficients of said top field; and
said top-field/bottom-field discriminator stores said DCT coefficients belonging to said top field into said buffer memory when a bitstream having a field structure encoded by field is supplied, while said top-field/bottom-field discriminator supplies DCT coefficients belonging to said bottom field and corresponding DCT coefficients belonging to said top field, to said horizontal DCT scaling portion when said DCT coefficients belonging to said bottom field is supplied.

### Claim 14

A bitstream transcoding method comprising:
a variable length decoding (VLD) step of performing VLD on a bitstream encoded in a first compression method, and outputting quantized DCT coefficients;
an inverse quantizing step of receiving said quantized DCT coefficients from said VLD step, performing inverse quantizing thereon, and outputting DCT coefficients;
a horizontal DCT scaling step of receiving said DCT coefficients inverse-quantized by said inverse quantizing step, reading a transformation matrix from a coefficient table storing transformation matrices, and performing horizontal down-sampling on said inverse-quantized DCT coefficients by use of said transformation matrix, said transformation matrix being obtained by multiplying transformation matrices for operating band-limiting filter, IDCT, down-sampling and DCT, respectively, together in advance;
a vertical DCT scaling step of receiving said DCT coefficients horizontally down-sampled by said horizontal DCT scaling step, reading a transformation matrix from said coefficient table, and performing vertical down-sampling on said DCT coefficients by use of said transformation matrix;
a quantizing step of receiving said DCT coefficients down-sampled horizontally and vertically by said DCT scaling steps, quantizing said DCT coefficients, and outputting said quantized DCT coefficients;
a motion vector scaling step of receiving motion vector values from said VLD step, and performing horizontal and vertical down-sampling thereon; and
a variable length coding step of receiving said DCT coefficients down-sampled by said quantizing step and said motion vectors down-sampled by said motion vector scaling step, encoding said DCT coefficients and said motion vectors in a second compression method, and outputting a bitstream;
wherein said horizontal DCT scaling step and said vertical DCT scaling step read down-sampling transformation matrices from said coefficient table in accordance with said DCT coefficients supplied, respectively, and computing with said transformation matrix.

### Claim 15 (depends on 5)

A bitstream transcoder according to claim 5, further comprising:
an inverse discrete cosine transformer (IDCT) which receives said DCT coefficients from said inverse quantizing portion, performing IDCT thereon, and outputs pixel values; and
an MC portion which receives motion vectors from said VLD portion, extracts a reference image designated by said motion vectors, adds said reference image to said pixel values supplied by said IDCT portion, and outputs said pixel values added with said reference image;
wherein said bitstream encoded in said first compression method is decoded while a bitstream encoded in said second compression method is obtained.

### Claim 16

An encoding apparatus comprising:
an ME portion which receives a video signal for every macroblock which is a coding unit, selects a macroblock (hereinafter referred to as “reference macroblock”) closest to a latest coded frame, and outputting motion vectors;
an MC portion which calculates a difference between said macroblock and said reference macroblock, and outputting a residual;
an inverse discrete cosine transform portion which receives one of said macroblock and said residual, performing DCT thereon, and outputting DCT coefficients;
a quantizer which receives said DCT coefficients from said inverse discrete cosine transform portion, quantizing said DCT coefficients, and outputting said quantized DCT coefficients;
an inverse discrete cosine transformer (IDCT) which receives said quantized DCT coefficients, inverse-quantizing said quantized DCT coefficients, and performing IDCT thereon to thereby create a reference frame for a next frame;
a variable length coder which receives said quantized DCT coefficients from said quantizing portion and said motion vectors from said ME portion, encodes said quantized DCT coefficients and said motion vectors in a first compression method, and outputting a bitstream;
a horizontal DCT scaler which receiving said DCT coefficients from said inverse discrete cosine transform portion, and performs horizontal down-sampling thereon;
a vertical DCT scaler which receives said horizontally down-sampled DCT coefficients from said horizontal DCT scaling portion, and performs vertical down-sampling thereon;
a coefficient table which stores a transformation matrix obtained by multiplying transformation matrices for operating band-limiting filter, IDCT, down-sampling and DCT, respectively, together in advance;
a DCT scaling portion constituted by said horizontal DCT scaling portion, said vertical DCT scaling portion and said coefficient table;
a quantizer which receives said DCT coefficients, down-sampled horizontally and vertically, from said DCT scaling portion, quantizes said DCT coefficients, and outputs said quantized DCT coefficients;
a motion vector scaler which receives motion vector values from said ME portion, and performs horizontal and vertical down-sampling thereon; and
a variable length coder which receives said quantized DCT coefficients from said quantizing portion and said down-sampled motion vectors from said motion vector scaling portion, encoding said quantized DCT coefficients and said down-sampled motion vectors in a second compression method, and outputting a bitstream;
wherein said bitstream encoded in said first compression method and said bitstream encoded in said second compression method are outputted.

### Claim 17

An image information transcoding/transmitting method for performing down-sampling on image compressed information encoded in a first compression method to thereby transcode said image compressed information into image compressed information compressed in a second compression method, and transmitting said image compressed information compressed in said second compression method, comprising:
a decoding/inverse-quantizing step of decoding and inverse-quantizing said image compressed information encoded in said first compression method, and outputting first DCT coefficients;
a step of reading a transformation matrix from a storage portion storing said transformation matrix used for down-sampling, said first DCT coefficients being multiplied by said transformation matrix;
a transformation step of multiplying said first DCT coefficients by said transformation matrix read from said storage portion, and outputting second DCT coefficients;
a quantizing/encoding step of quantizing and encoding said second DCT coefficients, and outputting image compressed information encoded in said second compression method; and
a step of transmitting, to a network, said image compressed information encoded in said second compression method.
