摘要:
A residue code amount is calculated. A threshold act_thrsh corresponding to the residue code amount is obtained. A variable mb that designates a macro block is initialized to zero. The variable mb is compared with the total number of macro blocks. When the variable mb matches the total number of macro blocks, the process is completed. Otherwise, the rank of the activity information of the macro block designated by the variable mb is compared with the rank of the threshold act_thrsh. When the rank of the activity information is lower than the rank of the threshold act_thrsh, since there is a possibility of which q_scale can be decreased, q_scale is calculated with the activity information of the macro block mb and min_qq. q_scale of the macro block is subtracted from the total code amount. The subtracted resultant data is stored in a variable tmp. Thereafter, the variable tmp is compared with a target code amount GEN_TGT. When the variable tmp is equal to or smaller than the target code amount GEN_TGT, since the quantizing step can be fined down, the quantizing step of the macro block mb is decreased by one.
摘要:
A detection circuit detects a slice start code from an input stream. Based on a result of the detection and a frame pulse, a reference macroblock (MB) address generated by a timing generator is sent to an address comparator. The input stream which has been phase-adjusted by a delay circuit is supplied to a variable length decoder (VLD) for decoding a variable length code to detect an MB address. The address comparator compares the reference MB address with the MB address to check the continuity of the MB address. If it is discontinuous, the stream output from the VLD is temporarily interrupted, and a selector selects a replacement data generating circuit in response to a control signal output from the address comparator. The input stream is replaced at a discontinuous macroblock portion with macroblock data which has a correct macroblock address and which is prepared in advance by the replacement data generating circuit. This provides stable processing of macroblock discontinuities when I-pictures in an MPEG stream are input.
摘要:
The present invention is a video data recording apparatus, a video data recording method, a video data reproducing apparatus, a video data reproducing method, a video data recording and reproducing apparatus, and a video data recording and reproducing method that can be interfaced using an MPEG2 elementary stream and that allow an input elementary stream to be recorded to a record medium and reproduced therefrom. According to the present invention, a recording side stream converting means is disposed. The recording side stream converting means converts an input elementary stream into a device stream that is a stream suitable for a record medium. A recording means performs a recording process for the converted device stream and records the record data to the record medium. A reproducing means reproduces record data recorded on the record medium as a device stream. According to the present invention, a reproducing side stream converting means is disposed. The reproducing side stream converting means converts the restored device stream into an elementary stream.
摘要:
In a face recognition apparatus adapted to recognize an input face image on the basis of one or more registered face images, similarity between an input face image and a registered face image is determined based on a Gabor jet calculated by performing Gabor filtering using Gabor filters defined by a Gaussian function representing a window and sine and cosine functions representing a frequency response for each of predetermined frequency values and for each of predetermined angles of the response function. Values of the filter window are calculated in advance based on the Gaussian function and stored in a filter window data ROM. Values of the response function are calculated in advance for respective angles based on the sine and cosine functions and stored in sine data ROMs and cosine data ROMs. In the Gabor filtering process, coefficients of the Gabor filters are determined from values read from these ROMs.
摘要:
When a stream encoded with a variable length code is output, a stream containing a syntax error and a format violation is prevented from being output.A checker checks encoding parameter for a stream that is reproduced from a magnetic tape and a stream that is output through an EE path and determines an occurrence of a syntax error or a format violation. When the output stream contains it, a switch circuit stops outputting the stream in the unit of a GOP or a picture and adds a code representing the end to the immediately preceding stream. The checker continuously checks the stream. When the output stream does not contain an error, etc, the output of the stream is resumed from the beginning of a GOP. At that point, flag representing that there is a picture that has not been used due to the stop of the stream is added.
摘要:
A residue code amount is calculated. A threshold act_thrsh corresponding to the residue code amount is obtained. A variable mb that designates a macro block is initialized to zero. The variable mb is compared with the total number of macro blocks. When the variable mb matches the total number of macro blocks, the process is completed. Otherwise, the rank of the activity information of the macro block designated by the variable mb is compared with the rank of the threshold act_thrsh. When the rank of the activity information is lower than the rank of the threshold act_thrsh, since there is a possibility of which q_scale can be decreased, q_scale is calculated with the activity information of the macro block mb and min_qq. q_scale of the macro block is subtracted from the total code amount. The subtracted resultant data is stored in a variable tmp. Thereafter, the variable tmp is compared with a target code amount GEN_TGT. When the variable tmp is equal to or smaller than the target code amount GEN_TGT, since the quantizing step can be fined down, the quantizing step of the macro block mb is decreased by one.
摘要:
A residue code amount is calculated. A threshold act_thrsh corresponding to the residue code amount is obtained. A variable mb that designates a macro block is initialized to zero. The variable mb is compared with the total number of macro blocks. When the variable mb matches the total number of macro blocks, the process is completed. Otherwise, the rank of the activity information of the macro block designated by the variable mb is compared with the rank of the threshold act_thrsh. When the rank of the activity information is lower than the rank of the threshold act_thrsh, since there is a possibility of which q_scale can be decreased, q_scale is calculated with the activity information of the macro block mb and min_qq. q_scale of the macro block is subtracted from the total code amount. The subtracted resultant data is stored in a variable tmp. Thereafter, the variable tmp is compared with a target code amount GEN_TGT. When the variable tmp is equal to or smaller than the target code amount GEN_TGT, since the quantizing step can be fined down, the quantizing step of the macro block mb is decreased by one.
摘要:
In order to obtain a high-quality image when an encoded stream which is encoded using MPEG is played back at variable speed, a stream conversion apparatus is provided which converts an arrangement of DCT coefficients of a source encoded stream into an arrangement suitable for variable-speed playback. Specifically, a header part is separated from an elementary stream of MPEG, and DCT coefficients arranged from a low order of a spatial frequency to a high order are extracted by zigzag scan at intervals of a plurality of DCT blocks which form a macro block. These DCT coefficients are rearranged from a low order to a high order across a plurality of DCT blocks. The DCT coefficients rearranged in this manner are packed into a stream, and the separated header part is added, forming a converted elementary stream. This converted elementary stream is recorded. During high-speed playback, even if there is an error in the middle of the macro block, since decoding is possible using a low-order DCT coefficient, high-quality image video data can be obtained.
摘要:
A stream processing apparatus and method for replacing a macroblock having a syntax error in an encoded stream with a marcroblock having an acceptable syntax. In such apparatus and method, a plurality of coding parameters may be extracted from the source encoded stream, an error macroblock having a syntax error in the source encoded stream may be detected, the source encoded stream may be variable-length decoded so as to generate a variable-length-decoded stream, a predetermined macroblock having an acceptable syntax may be generated which conforms to a MPEG (motion picture image coding experts group) standard, and the error macroblock of the variable-length decoded stream may be replaced with the predetermined macroblock.
摘要:
An image processing apparatus includes an image conversion section that receives an input of a face image to be identified, executes an image conversion on the input face image, and performs a normalization processing into an image. The image conversion section obtains a face image from a first memory storing the face image to be normalization processed, performs the normalization processing by an image conversion and stores the face image after the normalization processing into a second memory. The image processing apparatus includes a calculation section that calculates a conversion parameter for calculating a corresponding point in the first memory to each pixel position in the second memory. The conversion parameter defines one of an image contraction processing, an image rotation processing, or an image translation processing to be performed when the face image stored in the first memory is converted into the face image stored in the second memory.