WO2004070955A1 - 符号化装置及び方法、復号装置及び方法、プログラム、並びに記録媒体 - Google Patents

符号化装置及び方法、復号装置及び方法、プログラム、並びに記録媒体 Download PDF

Info

Publication number
WO2004070955A1
WO2004070955A1 PCT/JP2004/000563 JP2004000563W WO2004070955A1 WO 2004070955 A1 WO2004070955 A1 WO 2004070955A1 JP 2004000563 W JP2004000563 W JP 2004000563W WO 2004070955 A1 WO2004070955 A1 WO 2004070955A1
Authority
WO
WIPO (PCT)
Prior art keywords
position information
encoding
decoding
pieces
value
Prior art date
Application number
PCT/JP2004/000563
Other languages
English (en)
French (fr)
Inventor
Shuichi Watanabe
Yasuaki Tokumo
Hiroyuki Katata
Original Assignee
Sharp Kabushiki Kaisha
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 Sharp Kabushiki Kaisha filed Critical Sharp Kabushiki Kaisha
Priority to EP04704340A priority Critical patent/EP1598941A4/en
Priority to CN2004800091626A priority patent/CN1768480B/zh
Priority to US10/543,005 priority patent/US7624326B2/en
Priority to JP2005504794A priority patent/JP4004521B2/ja
Publication of WO2004070955A1 publication Critical patent/WO2004070955A1/ja

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • H04N21/2353Processing of additional data, e.g. scrambling of additional data or processing content descriptors specifically adapted to content descriptors, e.g. coding, compressing or processing of metadata

Definitions

  • Encoding device and method decoding device and method, program, and recording medium
  • the present invention relates to an encoding device, an encoding method, a decoding device, a decoding method, a program, and a recording medium, and more particularly, efficiently encodes a plurality of pieces of positional information on leaves and / or nodes in a tree structure.
  • the present invention relates to an encoding device, an encoding method, a decoding device, a decoding method, a program, and a recording medium for decoding.
  • Tree-based data representation is used in various fields of information processing.
  • a typical example is a tree structure representation of search information provided corresponding to moving image content.
  • FIG. 26 is a diagram illustrating an example of search information having a tree structure provided corresponding to moving image content according to the related art.
  • One moving image content is composed of one or a plurality of scenes, and one scene is composed of one or a plurality of shots. Then, assuming that each shot is provided with data representing the characteristics of the shot, such as the motion intensity and color frequency for each shot, or a summary sentence indicating the content of the shot, the search information of the moving image content is It is represented by a tree structure as shown in Fig. 26.
  • the moving image content is composed of three scenes (# 0, # 1, and # 2), and each scene is composed of three more shots (# 0, # 1, and # 2).
  • the moving image content corresponds to the root
  • the tag information of the motion intensity indicating the type of scene, shot, and data corresponds to the node
  • the data representing the actual motion intensity corresponds to the leaf.
  • the scene is the first branch point from the root, that is, the first layer node
  • the shot is the second layer node.
  • FIG. 26 is an example, and the moving image content and its search information often have a more complex hierarchical structure.
  • search information for moving image content there is a request to retrieve and transmit or store search data corresponding to each leaf as needed.
  • information for identification is added to each data.
  • the data 260 1 in FIG. 26 is merely a numerical value of “1” by itself, and indicates what kind of search information is related to the scene number, shot number, and shot number. Only when there is identification information can it be used as search data.
  • this search data identification information for leaves is transmitted from the root of the tree structure to the leaves. Given by tree path information.
  • the information on this path is called "branch code (T1-e eBranchCode)". For example, in Figure 26 2 60 1
  • the identification information for each node is also given by the information of the path of the tree from the root of the tree structure to the node.
  • identification information such as “scene”, “shot”, and “motion intensity” is information indicating the element type of the search information.
  • information given by numbers such as “0” and “1” is an identification number assigned to distinguish each element when the same element branches from a certain node. It is called “location information” because it determines the position of the node.
  • location information is an identification number assigned to distinguish each element when the same element branches from a certain node. It is called “location information” because it determines the position of the node.
  • MPEG-7 these element type information and position information are individually encoded and handled together with the search data.
  • the identification information of each of the data 260 1 to 2609 has the same element type information, and only the position information is different.
  • MPEG-7 a data format for transmitting or storing a plurality of pieces of search data to which identification information different only in such position information is added is specified.
  • MPEG-7 multiple different location information The following position information encoding / decoding techniques for differential encoding are defined.
  • 3 ⁇ 427 is a functional block diagram showing a schematic configuration of a position information encoding device by differential encoding according to MPEG-7 according to the related art.
  • FIG. 28 is a diagram showing an example of position information encoded by the position information encoding apparatus according to the related art and an example of the encoded position information code string.
  • FIG. 10 is a diagram showing a relationship between a position information extracted from identification information of 01 to 260 9 and a position information code string obtained by encoding the extracted position information.
  • leaf 26601 and leaf2602 which are two adjacent search data in Fig. 26, from the root 2610 of the tree structure to the leaves 2601 and 2602 respectively Comparing the path of the tree that passes through the route, the root (moving image content) to the first-level node (scene # 0) are common, and are below the scene # 0, that is, the second-level node (shot # It can be seen that the branches are divided after 0 and shot # 1).
  • the layer immediately after branching is referred to as “branch layer j” for two adjacent leaves.
  • the branch layer for leaf 2601 and leaf 2602 is the second layer, that is, the shot layer.
  • the two paths between the two adjacent leaves 2 603 and 2 604 have only the same root (moving image content), and the first-level nodes (scene # 0 and scene # 1) Since the branching has already occurred, the branching hierarchy for the two adjacent leaves 2603 and 2640 is the first hierarchy, that is, the scene hierarchy.
  • the branch hierarchy When viewed from the relationship between the location information extracted from the identification information as shown in Fig. 28, the branch hierarchy indicates the value of each hierarchy in two adjacent location information from the upper hierarchy to the lower hierarchy. When comparing in order to, it corresponds to the hierarchy where the value changed first.
  • Differential coding in the prior art is based on the premise that the change in the value of the position information at this time is always one increase, and the change in the value of the position information is used to determine which layer value has increased.
  • the original position information is encoded by encoding the information of the branch hierarchy. In such differential encoding, since it is sufficient that the number of existing branch layers can be distinguished by encoding, information is compressed as compared to encoding position information as it is.
  • the start position information encoding unit 2702 encodes the start position information by a normal method using no difference.
  • the head position information (0, 0) is input to and held in the previous position information holding unit 2703, and is used for encoding the next position information (0, 1).
  • the branch layer determining unit 274 4 compares the input next position information to be coded with the position information stored in the previous position information storage unit 270 3, and branches based on these. The layer is determined, and the result of the determination is output to the difference position information encoder 275.
  • the head position information (0, 0) is input to and held in the previous position information holding unit 2703, and is used for encoding the next position information (0, 1).
  • This determination result is output to difference position information encoding section 275.
  • the difference position information coding unit 275 5 selects and outputs a position information code according to the determination result of the branch layer determination unit 270 4.
  • the branching hierarchy of (0, 1) and (0, 0) is determined to be the second hierarchy by the branching hierarchy determination unit 2704, the branching hierarchy is determined as shown in FIG. A code indicating that there are two layers (a position information code indicating that the second layer is incremented by 1) “10” is given.
  • the third position information (0, 2) is also given a code “10” representing the second layer.
  • the fourth position information (1, 0) is compared with the third position information (0, 2), the value of the position information of the first layer, that is, the layer of the scene is increased.
  • Hierarchy branching at the scene hierarchy. For this reason, a code indicating that the branch layer is the first layer (a position information code indicating that the first layer is incremented by 1) “01” is given.
  • the position information code string obtained by encoding to the end in this way is the position information code string shown in FIG. At the end of the code string, there is no subsequent position information, that is, an end code “11” indicating the end of the code is added.
  • the position information code corresponding to the branch hierarchy used in FIG. 28 is shown in FIG.
  • FIG. 30 is a functional block diagram showing a schematic configuration of a conventional position information decoding device using differential encoding.
  • the head position information decoding unit 3001 decodes the head position information by a normal decoding method.
  • the decoded position information is input to and held in the previous position information holding unit 3002.
  • the branch information determining unit 3003 reads the position information code.
  • the branch hierarchy is determined based on the read code, and the determination result is sent to the difference position information decoding unit 304.
  • the difference position information decoding unit 304 updates and updates the value of the position information held in the previous position information holding unit 3002 from the determination result of the branch layer determination unit 3003.
  • the updated position information is held in the previous position information holding unit 3Q02. This is repeated until the end code is read.
  • the branch hierarchy determining unit 3003 reads the code “10”. Since the code “10” is a code indicating that branching has occurred in the second layer, the difference position information decoding unit 3004 increments the value of the second layer of (0, 0) by 1, and the next position information (0, 1) ) Is required. Similarly, the code “01” is read into the branch hierarchy determination unit 3003 while being decoded to (0, 2) and held in the previous position information holding unit 3002.
  • the difference position information decoding unit 3004 Since the code “01” is a code indicating that branching has occurred in the first layer, the difference position information decoding unit 3004 stores the (0, 2) first-layer position information held in the previous position information holding unit 3002 as 1 increase. At the same time, since the value of the first layer has changed, the position information of the lower layers is set to the initial value 0. Thus, the next position information (1, 0) is obtained. This processing is performed to the end, and the decoding ends when the end code "11" is read. By the way, recently, the above-mentioned position information is being expressed by a rational number. For example, as shown in FIG.
  • the position information is all rational numbers greater than 0 and less than 1; here, a natural number of a power of 2 (the denominator is a power of 2 and the numerator is a natural number) is represented. This is introduced to enable processing such as arbitrarily adding an additional leaf or node between the existing leaf or node positions.
  • position information is given as an integer, and the interval between adjacent position information Is a fixed amount, that is, 1. Because of this premise, it was possible to encode only the hierarchy at which the branch occurred as the encoding information.
  • the interval between adjacent position information changes arbitrarily.
  • the location information next to location 1/4 may be 1 2 or 3/8. Or it may be 5 Z 16. Therefore, the premise that is satisfied with the position information expressed as an integer as described above does not apply to the position information expressed as a rational number, and therefore, the encoding / decoding technology of the plural position information defined by MPEG-7 is expressed as a rational number. It could not be applied directly to the location information provided.
  • the present invention has been made in view of the above situation, and is capable of performing differential encoding and Z-decoding even with position information of a plurality of leaves and / or nodes expressed in a rational number. It is an object of the present invention to provide an apparatus and a method, a decoding apparatus and a method, an encoding program, a decoding program, and a computer-readable recording medium recording the program.
  • a first invention of the present application is an encoding device that encodes a plurality of pieces of position information corresponding to a plurality of leaves and a Z or a node in the same hierarchy in a tree structure, the plurality of pieces of position information being encoded.
  • a second invention of the present application is an encoding device that encodes a plurality of pieces of position information corresponding to a plurality of leaves and / or nodes in the same hierarchy in a tree structure, wherein the plurality of pieces of position information to be encoded are A judging means for judging a branch hierarchy in accordance with the predetermined order relationship from two consecutive pieces of position information of the plurality of position information to be encoded, and Encoding means for outputting a code.
  • the third invention of the present application is the invention according to the first or second invention, wherein the plurality of pieces of position information are rational number position information represented by rational numbers, and the predetermined order relation is a resolution of a rational number. It is characterized in that it is determined according to the order of magnitude.
  • a fourth invention of the present application is an encoding apparatus that encodes a plurality of pieces of position information corresponding to a plurality of leaves and a Z or a node in the same hierarchy in a tree structure, the plurality of pieces of position information being encoded.
  • Increase width determining means for determining the increase width of the position information value based on the following information; increase width encoding means for encoding the increase width to output a code; and two consecutive plurality of the plurality of pieces of position information to be encoded. It is characterized by comprising determining means for determining a branching layer from position information, and a branching layer encoding means for outputting a code corresponding to the branching layer.
  • the plurality of pieces of position information are rational. It is rational number position information expressed as a number, and the increase width is determined for each of the branch layers so that all of the plurality of pieces of position information can be encoded.
  • the tree structure represents a search information, and a leaf or a leaf corresponding to the plurality of pieces of position information to be encoded. It is characterized in that the node is a leaf or node corresponding to the same kind of element included in the search information.
  • a seventh invention of the present application relates to an encoding method for encoding a plurality of pieces of position information corresponding to a plurality of leaves and Z or a node in the same hierarchy in a tree structure, wherein the plurality of pieces of position information to be encoded are encoded. And a determination step of determining a branch hierarchy according to the predetermined order relationship from two consecutive pieces of position information of a plurality of pieces of position information output from the rearrangement step. And an encoding step for outputting a code corresponding to the branch hierarchy.
  • An eighth invention of the present application is an encoding method for encoding a plurality of pieces of position information corresponding to a plurality of leaves and / or nodes in the same hierarchy in a tree structure, wherein the plurality of pieces of position information to be encoded are encoded.
  • the plurality of pieces of position information to be encoded are encoded.
  • the plurality of pieces of position information are rational number position information represented by a rational number
  • the predetermined order relation is a rational number resolution. It is characterized in that it is determined according to the order of magnitude.
  • a tenth invention of the present application is an encoding method for encoding a plurality of pieces of position information corresponding to a plurality of leaves and / or nodes in the same hierarchy in a tree structure, wherein the plurality of pieces of position information to be encoded are encoded.
  • An increase width determining step of determining an increase width of the value of the position information based on: an increase width encoding step of encoding the increase width and outputting a code; and
  • the method is characterized by comprising: a determination step of determining a branch layer from position information; and a branch layer encoding step of outputting a code corresponding to the branch layer.
  • the eleventh invention of the present application is further characterized in that, in the tenth invention, the plurality of pieces of position information are rational number position information represented by a rational number, and the increment is:
  • the encoding is determined for each of the branch layers so that encoding is possible.
  • the twelfth invention of the present application is further characterized in that, in any one of the seventh to eleventh inventions,
  • the tree structure represents search information
  • the leaf or node corresponding to the plurality of pieces of position information to be encoded is a leaf or node corresponding to the same type of element included in the search information.
  • a thirteenth invention of the present application is a decoding device for decoding a position information code string in which a plurality of pieces of position information corresponding to a plurality of leaves and / or nodes in the same hierarchy in a tree structure are encoded.
  • Holding means for sequentially holding the obtained position information; determining means for determining a branch hierarchy of two consecutive pieces of position information based on the position information code; Decoding means for increasing the value of the position information corresponding to the branch hierarchy by one according to a predetermined order relationship.
  • the fifteenth invention of the present application is further characterized in that the apparatus further comprises a rearranging means for rearranging the plurality of decoded position information in accordance with numerical values.
  • the fifteenth invention of the present application is the invention according to the fifteenth invention, wherein the rearranging means calculates a serial number representing a numerical value order, assigned to each of the decoded position information. It is characterized by including calculation means.
  • the sixteenth invention of the present application is the invention according to any one of the thirteenth to fifteenth inventions, wherein the plurality of pieces of position information are rational number position information represented by a rational number, and the predetermined order
  • the relation is characterized in that it is determined according to the order of resolution of rational numbers.
  • a seventeenth invention of the present application is a decoding device that decodes a position information code string in which a plurality of pieces of position information corresponding to a plurality of leaves and / or nodes in the same hierarchy in a tree structure are encoded, Increase width decoding means for decoding the increase width of the value of the position information; holding means for sequentially holding the decoded position information; and determination of judging a branch hierarchy of two consecutive pieces of position information based on the position information code.
  • Means, and position information decoding means for increasing the value of the position information corresponding to the branch hierarchy by the increase width with respect to the position information held by the holding means.
  • An eighteenth invention of the present application is the invention according to any one of the thirteenth to seventeenth inventions, wherein the tree structure represents search information, and a leaf or a leaf corresponding to the decoded position information.
  • the node is a leaf or node corresponding to the same type of element included in the search information.
  • a nineteenth invention of the present application is a decoding method for decoding a position information code string in which a plurality of pieces of position information corresponding to a plurality of leaves and / or nodes in the same hierarchy in a tree structure are encoded, A holding step of sequentially holding the decoded position information; a determining step of determining a branch hierarchy of two consecutive pieces of position information based on the position information code; and the position information held by the holding step. And a decoding step of increasing the value of the position information corresponding to the branch hierarchy by one in accordance with a predetermined order relation. .
  • a twenty-second invention of the present application is the invention according to the nineteenth invention, further comprising a rearranging step of rearranging the plurality of pieces of decoded position information in descending numerical order.
  • the twenty-first invention is further characterized in that, in the twenty-second invention, the rearranging step includes a step of calculating a serial number representing a numerical value order, assigned to each of the decoded position information. It is characterized by including.
  • the twenty-second invention of the present application is the invention according to any one of the nineteenth to twenty-first inventions, wherein the plurality of pieces of position information are rational number position information represented by a rational number, and the predetermined order
  • the relation is characterized in that it is determined according to the order of resolution of rational numbers.
  • a twenty-third invention of the present application is a decoding method for decoding a position information code string in which a plurality of pieces of position information corresponding to a plurality of leaves and / or nodes in the same hierarchy in a tree structure are encoded.
  • An increment decoding step for decoding the increment of the value of the information, a holding step for sequentially holding the decoded position information, and determining a branch hierarchy of two consecutive pieces of position information based on the position information code.
  • a twenty-fourth invention of the present application is the invention according to any one of the ninth to twenty-third inventions, wherein the tree structure represents search information, and a leaf or a leaf corresponding to the decoded position information.
  • the node is a leaf or node corresponding to the same type of element included in the search information.
  • a twenty-fifth invention of the present application is a program for causing a computer to function as the encoding device according to any one of the first to sixth inventions.
  • a 26th invention of the present application is a program for causing a computer to execute the encoding method according to any one of the 7th to 12th inventions.
  • a twenty-seventh invention of the present application is a program for causing a computer to function as the decoding device according to any one of the thirteenth to eighteenth inventions.
  • a twenty-eighth invention of the present application is a program for causing a computer to execute the decoding method according to any one of the nineteenth to twenty-fourth inventions.
  • a twentieth invention of the present application is a recording medium which can be read by a computer in a convenient manner, in which the data of the twenty-fifth to twenty-eighth inventions is recorded.
  • a new order relation between predetermined values is provided for a plurality of position information expressed as rational numbers, the order relation of which cannot be uniquely specified when viewed in the order of numerical values.
  • By rearranging the position information in accordance with the order relation it is possible to encode / decode a plurality of position information by differential coding, as in the case of the position information in the integer representation.
  • the difference code is similarly notified by using the information indicating the missing position. Encoding of multiple position information by encoding Z decoding is possible.
  • the increasing range of the values when viewed in the order of numerical values Is determined and encoded and given together with the sign of the position information, it is possible to encode and decode a plurality of pieces of position information by differential coding in the same manner as in the case of the position information in the integer representation.
  • the difference encoding is similarly performed. Encoding / decoding of multiple position information is possible.
  • FIG. 1 is a functional block diagram showing a schematic configuration of the position information encoding device according to the first embodiment of the present invention.
  • FIG. 2 is a diagram illustrating an example of search information having a tree structure in which position information is given in a rational number expression.
  • FIG. 3 shows, in the first embodiment of the present invention, identification information corresponding to each data of the search information shown in FIG. 2, position information extracted from the identification information, and rearrangement of the position information.
  • FIG. 14 is a diagram showing position information after rearrangement.
  • FIG. 4A is a diagram showing the order relation of values of the position information represented by a rational number in the first embodiment of the present invention.
  • FIG. 4B is a diagram showing a method for determining the order relation of FIG. 4A in the first embodiment of the present invention.
  • FIG. 5 is a diagram showing an example of position information to be encoded by a configuration example of the position information encoding apparatus according to the first embodiment of the present invention and an encoded position information code sequence.
  • FIG. 6 is a diagram showing a position information code used in one configuration example of the position information encoding device according to the first embodiment of the present invention, and also a diagram showing the position information code used in FIG. .
  • FIG. 7 is a diagram illustrating another example of search information having a tree structure in which position information is given in a rational number expression.
  • FIG. 8 shows identification information corresponding to each piece of data of the search information shown in FIG. 7, position information extracted from the identification information, and an arrangement obtained by rearranging the position information in the first embodiment of the present invention.
  • FIG. 14 is a diagram showing position information after the replacement.
  • FIG. 9 is a diagram showing another example of the position information to be encoded and the encoded position information code string in one configuration example of the position information encoding device according to the first embodiment of the present invention.
  • FIG. 10 is a flowchart for explaining the position information encoding method according to the first embodiment of the present invention.
  • FIG. 11 is a functional block diagram illustrating a schematic configuration of the position information decoding device according to the first embodiment of the present invention.
  • FIG. 12 is an explanatory diagram showing an operation example of the position information reordering process at the time of decoding in the position information decoding device according to the first embodiment of the present invention.
  • FIG. 13 is a functional block diagram showing a functional configuration of a position information rearranging process at the time of decoding in the position information decoding device according to the first embodiment of the present invention.
  • FIG. 14 is a diagram showing an example of integration order information handled by the position information decoding apparatus according to the first embodiment of the present invention in the position information rearrangement process at the time of decoding.
  • FIG. 15 is a diagram showing another example of the integration order information handled in the position information rearrangement process at the time of decoding in the position information decoding device according to the first embodiment of the present invention.
  • FIG. 16 is a flowchart for explaining a position information decoding method according to the first embodiment of the present invention.
  • FIG. 17 is a functional block diagram showing a schematic configuration of a position information encoding device according to the second embodiment of the present invention.
  • FIG. 18 is a diagram showing an example of position information encoded and an encoded position information code string in one configuration example of the position information encoding device according to the second embodiment of the present invention.
  • FIG. 19 is a diagram showing still another example of search information having a tree structure in which positional information is given in a rational number expression.
  • FIG. 20 is a diagram showing another example of the position information to be encoded and the encoded position information code sequence in one configuration example of the position information encoding device according to the second embodiment of the present invention. .
  • FIG. 21 is a diagram showing still another example of the position information to be encoded and the encoded position information code string in one configuration example of the position information encoding device according to the second embodiment of the present invention. is there.
  • FIG. 22 is a flowchart for explaining a position information encoding method according to the second embodiment of the present invention.
  • FIG. 23 is a functional block diagram illustrating a schematic configuration of the position information decoding device according to the second embodiment of the present invention.
  • FIG. 24 is a flowchart for explaining a position information decoding method according to the second embodiment of the present invention.
  • FIG. 25 is a diagram illustrating a configuration example of a general information processing device, and is a diagram for describing the device according to the present invention.
  • FIG. 26 is a diagram illustrating an example of search information having a tree structure provided corresponding to moving image content according to the related art.
  • FIG. 27 is a functional block diagram illustrating a schematic configuration of a position information encoding device according to MPEG-7 according to the related art.
  • FIG. 28 is a diagram illustrating an example of position information encoded by a position information encoding device according to the related art and an encoded position information code sequence.
  • FIG. 29 is a diagram showing the position information code used in FIG. '
  • FIG. 30 is a functional block diagram showing a schematic configuration of a position information decoding apparatus according to the related art.
  • FIG. 1 is a functional block diagram showing a schematic configuration of a position information encoding device according to the first embodiment of the present invention. It is a lock figure.
  • the position information encoding device includes a position information reordering unit 101, a head position information report encoding unit 102, a previous position information holding unit 103, a branch hierarchy determination unit. 104 and a difference position information encoding unit 105.
  • the element type information and the position information are individually encoded and handled together with the search data.
  • the present invention relates to the encoding of the position information.
  • the encoding according to the present invention is not limited to MPEG-7.
  • the present invention can also take a form as an encoding device that performs encoding including the position information encoding described here.
  • FIG. 2 is a diagram illustrating an example of search information having a tree structure in which position information is given in a rational number expression.
  • FIG. 2 shows search information corresponding to video content, where video content 210 is composed of three scenes, each scene is composed of three shots, and each shot has a motion. It is assumed that search data indicating strength is added.
  • FIG. 3 shows identification information corresponding to each piece of data of the search information shown in FIG. 2, position information extracted from the identification information, and an arrangement obtained by rearranging the position information in the first embodiment of the present invention.
  • FIG. 14 is a diagram showing position information after the replacement.
  • FIG. 3 shows identification information 301 corresponding to each of the search data 201 to 209 included in the search information of FIG. 2, and position information 302 extracted from the identification information.
  • the position information to which the encoding and decoding of the present invention is applied is, as shown in FIG. 3, position information included in a plurality of pieces of identification information having the same element type information and different only in the position information. is there.
  • Figure 2 shows an example of search information for video content.
  • the actual video content is recursively, where one scene is converted to multiple scenes, and each scene is recursively converted to another multiple scenes. It has a complicated hierarchical structure, such as decomposition, and the search information often has a complicated hierarchical structure.
  • search data may be added to each scene or to the entire moving image content. However, even for search information having such a complicated hierarchical structure, the position information encoding and decoding of the present invention can be similarly applied. It is.
  • search information for other multimedia contents such as audio contents and text other than moving image contents, or information other than search information can be applied in principle as long as the information has a tree structure.
  • the most characteristic functional configuration of the present invention is a positional information reordering unit 101 provided at a stage prior to encoding. .
  • the processing of the position information rearranging unit 101 will be described.
  • the position information to be coded becomes a rational number expression and the position information cannot be coded by the differential coding shown in the conventional example is that the position information becomes a rational number.
  • the next position information value that follows cannot be uniquely determined.
  • the value of the next position information is uniquely determined, such as 1 after 0, 2 after 1 and so on.
  • the position information following the position information 1/4 may be 1/2, 3Z8, or may be 5/16.
  • FIG. 4A and FIG. 4B are diagrams showing the order relation of the values of the position information represented by rational numbers and the method of determining the same in the first embodiment of the present invention.
  • a predetermined order relation is provided for the value of the position information represented by a rational number.
  • the position information of a rational number represented by "natural number of powers of 2 (the denominator is a power of 2 and the numerator is a natural number)" is treated, and the order relation of the values of the position information is expressed as "1/2 ⁇ 1./4 ⁇ 3Z4 ⁇ 1Z8 ⁇ 3/8 ⁇ 5Z8 ⁇ 7Z8 ⁇ 1/1 6— ”(see Fig. 4A).
  • the position information rearranging unit 101 rearranges the respective position information according to the new order relationship thus defined, FIG. 4A.
  • rearrangement of the position information 302 of FIG. 3 is also the rearranged position information 303 shown in FIG.
  • Sorting is based on the value of the location information assigned to each layer, and the position information is sorted from the upper layer to the values of the layer according to the order of Fig.
  • Information with the same information value is recursively repeated by reordering one level down the hierarchy and rearranging it in the order shown in Fig. 4A.
  • the position information may be rearranged by collectively treating the values of the position information of all the layers in the leaf or the node.
  • an existing sort algorithm such as quick sort etc. is defined for the position information of a leaf or node and the position information of another leaf or node according to the size relationship. By applying, position information can be sorted.
  • any sort method can be used as long as a similar sort can be performed, and the sort method is not limited to the method shown here.
  • a state is created in which all the position information is extracted and arranged in the order of numerical values, and then the position information is rearranged.
  • the position information rearranging unit 101 performs this operation.
  • the rearrangement process does not necessarily need to take such a step. For example, at the stage of extracting location information, or before that, at the stage of selecting and extracting search data to be handled collectively, they are sequentially extracted in the order according to Figure 4A. Processing is also possible. Such a process can also be considered to be a kind of rearrangement process performed by the position information rearranging unit 101 widely.
  • differential encoding is performed by the same processing as the conventional encoding of position information expressed as an integer.
  • the head position information coding unit 102 codes the head position information in the rearranged position information by a normal method using no difference. This top position information is also recorded in the previous position information holding unit 103, and the next position information is encoded. Used in
  • FIG. 5 is a diagram showing an example of position information to be encoded by a configuration example of the position information encoding apparatus according to the first embodiment of the present invention and an encoded position information code sequence.
  • no particular reference is made to the encoding method relating to this head position information.
  • the previous position information holding unit 103 records the position information processed immediately before, and outputs and provides it when encoding the next position information.
  • the position information encoded after (12, 1/2) is (1/2, 1/4). That is, when (1/2, 1/4) is encoded, the position information (1/2, 1/2) is recorded and held in the previous position information holding unit 103.
  • the branch hierarchy determining unit 104 compares the input positional information with the positional information stored in the previous positional information storing unit 103, determines in which hierarchy the two branches, and determines the determination result. Output to difference position information encoding section 105. Then, difference position information encoding section 105 outputs a position information code corresponding to the branch layer based on the determination result output from branch layer determination section 104.
  • the branch hierarchy means that, when viewed in a tree structure, two types of position information, that is, the input position information and the position information stored in the previous position information holding unit 103, are used to determine the root of the corresponding search information tree.
  • This refers to the hierarchy of the node or leaf that separates into different nodes or leaves only after branching when it is directed toward the leaves.
  • the value of the location information is viewed in order from the upper level to the lower level, and indicates the level where the value of the location information changes first.
  • the branch hierarchy determining unit 104 outputs information indicating the second hierarchy as a determination result. More precisely, the position information of the branched layer, in this case, the position information of the shot layer is changed from 1/2 to 1/4, and is correctly updated by one for the order shown in Fig. 4A. You need to make sure you are there. As a result, the case where the update is not correct will be described in another example shown together with FIGS. 7 to 9 described later.
  • the input location information is (1/4, 1 2) and the location information (1/2, 3/4) is recorded in the previous location information holding unit 103, the The two location information values already differ in the first layer. From these facts, it can be seen that branching has occurred in the first hierarchy, that is, the scene hierarchy, and thus information indicating the first hierarchy is output as a determination result.
  • the position information of the branched layer here the position information of the scene layer, is correctly updated from 1/2 to 1 to 4 in accordance with the order shown in Fig. 4A. You need to make sure. In this case, since the branch occurs at the scene hierarchy, it is necessary to confirm whether the position information of the lower hierarchy, that is, the shot hierarchy, has the initial value 1 to 2 or not.
  • the difference position information encoding unit 105 outputs a position information code corresponding to the branch layer based on the determination result output from the branch layer determination unit 104.
  • the position information to be encoded is (1
  • the difference position information encoding unit 105 receives the judgment result of the branch layer judgment unit 104, and The position information code "1 0" indicating the second layer is output. Since the second layer is a branching layer when decoding this position information code "10", the value of the position information of the second layer is incremented by one according to the order relationship in FIG. 4A. It is a sign which means that. Or, if the position information to be encoded is (1Z4, 1/2
  • the differential location information encoding section 105 It outputs the position information code "01" indicating that it is a hierarchy.
  • the position information code “01” increases the value of the position information of the first layer by one in accordance with the order relationship in FIG. 4A, since the first layer is a branch layer.
  • the value of the position information of the layer below the first layer, the second layer in this example, is Is a code that means the initial value 1 Z 2 in.
  • FIG. 6 is a diagram showing a position information code used in one configuration example of the position information encoding device according to the first embodiment of the present invention, and also a diagram showing the position information code used in FIG. .
  • the position information code illustrated in FIG. 6 is a code indicating in which hierarchy the tree corresponding to each of the coded position information and the position information processed before is branched, and the bit length of the code. Is determined by the number of branchable hierarchies in the tree structure. When viewed as the identification information added to the search data, the number of position information included in the identification information, that is, the number of search information elements that can take position information corresponds to the number of branchable layers.
  • the element type information is also encoded together with the encoding of the position information, and is stored or transmitted together with the encoded position information. . Therefore, by referring to this element type information, it is possible to know the number of hierarchies that can be branched on both the encoding side and the decoding side. Can be known.
  • position information without information such as the element type information indicating the number of layers that can be branched is encoded, information indicating the bit length of the code is generated and stored or stored together with the encoded position information. It may be transmitted. The bit length of the above-described code is determined separately from the encoding process in the encoding apparatus shown in FIG.
  • Missing code "0 0" is a special code indicating that there is a missing position information.
  • the missing code actually indicates that there is no corresponding search data at the position updated with the position information code following the missing code. That is. This will be described in detail in an example shown in conjunction with FIGS. 7 to 9 described later.
  • all the position information of the data 201 to 209 contained in the tree is encoded. Not all the position information contained in the tree is necessarily encoded. Any one of the tree structure It is also possible to cut out and encode the part.
  • extracting and encoding only the temporally later position information in the tree structure for example, in FIG. 2, when excluding the position information included in the first scene and encoding only in the second and third scenes, The position information at the beginning may be changed to the beginning of the second scene.
  • encoding only the temporally previous position information in the tree structure for example, when encoding in only the first and second scenes excluding the position information included in the third scene in FIG. 1.
  • an end code may be added, and the encoding may be terminated. If you want to cut out the middle part of the tree structure in time, you can combine them.
  • the start position of the changed encoding or the end position of the encoding forcedly terminated by the end code can be any position in the tree structure.
  • FIG. 7 is a diagram showing another example of search information having a tree structure in which position information is given in a rational number expression.
  • FIG. 8 is a diagram showing each of the search information shown in FIG. 7 in the first embodiment of the present invention.
  • FIG. 4 is a diagram showing identification information corresponding to data, position information extracted from the identification information, and position information after rearrangement obtained by rearranging the position information.
  • FIG. 9 is a diagram showing another example of the position information to be encoded and the encoded position information code string in one configuration example of the position information encoding apparatus according to the first embodiment of the present invention. is there.
  • the position information of the data 701 to 707 included in the search information corresponding to the moving image content 710 of FIG. 7 is encoded.
  • the search data indicating the motion intensity is not attached to the shot corresponding to the position information (1/2, 1/4) and (3/4, 1/2). It is an example of information.
  • FIG. 3 Like the example shown in FIG. 3, FIG.
  • FIG. 9 shows the same rearranged position information as in FIG. 8 and a generated position information code string.
  • Fig. 9 explains the operation when encoding the position information (1/2, 3/4).
  • the previous position information holding unit 103 stores the position information (1/2, 1 / 2) is held. Then, the branch hierarchy is determined based on the preceding position information. (1/2, 1/2) and (1Z2, 3/4) have the same value in the first layer and different values in the second layer. I understand. However, if it is determined here that the value of the position information of the second layer has been updated by one according to FIG. 4A, the value following 1/2 is 14 in the order relation of FIG. 4A. On the other hand, since the input position information is 3Z4, it can be seen that the position is missing, that is, missing.
  • branch layer determining section 104 outputs information indicating that there is a dropout to differential position information encoding section 105 together with information indicating that the branch layer is the second layer.
  • the branch hierarchy determination unit 104 generates position information (1/2, 1/4) next to (1/2, 1/2) assuming that there is no loss, and holds the preceding position information.
  • the difference position information coding unit 105 receives the determination result received from the branch layer determination unit 104, that is, there is a lack, and the branch layer is the second layer. Outputs information code "10".
  • the position information of the first layer is from 1/4 to 3
  • branch layer determining section 104 If it is determined whether the value of the two-level location information is the initial value 1/2 according to Fig. Since the position information obtained is 1/4, it can be seen that the position is missing, that is, missing. Therefore, branch layer determining section 104 outputs information indicating that there is a dropout to difference position information encoding section 105 together with information indicating that the branch layer is the first layer. At the same time, the branch hierarchy determining unit 104 generates position information (34, 1/2) assuming that there is no loss and sends it to the previous position information holding unit 103 for recording. From this state, the position information (3/4, 1Z4) is encoded again.
  • the difference position information encoding unit 105 receives the determination result received from the branch layer determination unit 104, that is, the presence of a missing part and the fact that the branch layer is the first layer. Outputs information code "01".
  • difference encoding can be performed even for position information of a tree structure having a missing part. Furthermore, by actively using the missing codes, the same kind of search data included in the search information having a tree structure can be arbitrarily selected and grouped, or a part of the search data can be trimmed. Operations such as transmission and recording are possible.
  • FIG. 10 is a flowchart for explaining the position information encoding method according to the first embodiment of the present invention.
  • the position information encoding method includes a position information rearranging step (step S1), a head position information encoding step (step S2), a previous position information holding step (step S1). S3), a branch layer determination step (step S6), and a difference position information encoding step (step S8).
  • the encoding method according to the first embodiment of the present invention also relates to encoding of position information, and the present invention relates to an encoding method for performing encoding including the position information encoding described here. It can also take the form. First, a plurality of pieces of position information to be encoded are rearranged in accordance with the order shown in FIG. 4A (step S 1). Next, the rearranged top position information is encoded by a normal method (step S2). At the same time, the first position information is held as previous position information for encoding the next position information (step S3).
  • step S4 It is determined whether there is next position information to be encoded (step S4). If there is, the position information to be encoded is read (step S5). The read position information to be encoded is compared with the held previous position information to determine a branching layer (step S6). At this time, it is determined whether or not there is a gap between the two pieces of position information (step S7). As described above, the method of determining the loss is determined by whether or not the position information follows the order relation of FIG. 4A.
  • step S8 the encoded position information is held again as the previous position information (step S3), and the same processing is continued. If there is any missing part, the missing code is output first (step S9), and then the position information code corresponding to the branch hierarchy is output (step S8). Next, from the position information held as the previous position information, the next position information obtained assuming that there is no missing is generated, and the missing position information is held as the previous position information (step S10). . Thereafter, the branch hierarchy is determined again based on the previous position information and the already read position information to be encoded (step S6). That is, if it is determined that there is a missing position information to be processed, the same position information is coded again. Thereafter, the presence / absence of a missing portion is determined in the same manner. If there is a missing portion, a process of outputting a missing code (step S 9) and subsequent processes are performed.
  • step S8 the encoding is continued using this encoded position information as the previous position information (step S3).
  • step S4 If it is determined that there is no next position information to be encoded (step S4), an end code is output (step S11), and the encoding is terminated.
  • the coding efficiency becomes highest because the lack of position information
  • there are no values at all that is, a case where the values of the position information represented by a plurality of rational numbers to be encoded are continuously given according to a predetermined rational number order relationship and the order relationship of FIG. 4A.
  • the order relation of the predetermined rational numbers as shown in FIG. It can be used to assign location information to search data (leaves or nodes) that have type information.
  • the M values from the top according to the ordering relationship in Figure 4A Sort them in numerical order, and assign them as location information for each search data. For example, if there are five pieces of search data (leaves or nodes) that have the same element type information to be given position information, the first five and the first ones according to the ordering relationship in Fig. 4A. 2, 1/4, 3/4, 1/8, 3/8 are selected, and these are sorted in numerical order, 1/8, 1/4, 3/8 ,, 1/2, 3 Z4 And assign it as the value of the location information corresponding to each search data.
  • each rational value is individually coded, generally, a lower-resolution rational value (a rational value with a smaller denominator value) is coded with a shorter code. From this, the assignment of the value of the rational position information using the order relation as shown in FIG. 4A is not limited to the difference encoding of a plurality of pieces of position information as in the embodiment of the present invention.
  • the rational position information attached to (leaves or nodes) is separately encoded, the code length of the code relating to the position information is minimized as a whole.
  • the assignment of the position information according to the order relation in FIG. 4A can be similarly realized by performing the following processing.
  • the minimum resolution (minimum denominator value) N required to represent the number of position information M to be assigned is determined.
  • N is a power of 2
  • N indicates the number of pieces of position information that cannot be expressed, that is, the number of pieces of position information whose denominator is ⁇ . Therefore
  • this method provides the two step widths 1 / N, 1 / N 'and the predetermined position 2M' at which the step widths are switched, so that the M positions from the top in the order shown in FIG.
  • the value of the location information is obtained in the order of numerical values.
  • the operation of rearranging the obtained position information values in the order of numerical values is unnecessary, so that the position information values can be assigned at high speed according to the order relationship shown in FIG. .
  • the value of M 'that specifies the switching position of the step width is biased toward a smaller value. You can also. However, at this time, 2M 'does not exceed the number M.
  • FIG. 11 is a functional block diagram illustrating a schematic configuration of the position information decoding device according to the first embodiment of the present invention.
  • the position information decoding device according to the first embodiment of the present invention includes a head position information decoding unit 111, a previous position information holding unit 1102, a branch layer determination unit 1103, and a difference position information decoding unit. It consists of 1104 and a position information rearranging unit 1105.
  • the element type information and the position information are individually encoded and handled together with the search data.
  • the present invention relates to decoding of the position information.
  • decoding according to the present invention is limited to MPEG-7 but is not a CD. It should be noted that the present invention can also take a form as a decoding device that performs decoding including the position information decoding described here.
  • the most characteristic functional configuration of the present invention is a position information reordering unit 1 provided at the subsequent stage of decoding the position information. It is 105.
  • the position information rearranging unit 1105 converts the position information of the rational number representation obtained by decoding up to the preceding difference position information decoding unit 111 They are rearranged in order based on the numerical value. As shown in this specification, when the location information corresponding to each search data (or clause) included in the search information is handled, the search data (or clause) remains contained in the original tree structure. In many cases, it is necessary to rearrange the corresponding position information in the original order as described above, because it is considered that it is easier to handle.
  • the decoding process performed up to the stage before the position information is rearranged by the position information rearranging unit 1105 is the same as the conventional decoding process using position information expressed in integers. The operation of the position information rearranging section 1105 will be described later in detail. .
  • the head position information decoding unit 1101 decodes the head position information and outputs the position information. What is performed here is decoding of the position information coded by the normal method, and this operation is not particularly mentioned in the present invention like the coding.
  • the operation of the position information decoding apparatus will be described on the assumption that the position information code string shown in FIG. 5 is input.
  • the position information code sequence of FIG. 5 is obtained by encoding the position information of each of the search data 201 to 209 included in the search information shown in FIG. 2 by the position information encoding device of FIG. 1 described above.
  • the position information code sequence decoded by the decoding device of the present embodiment is not particularly limited to the code sequence generated by the coding device of FIG.
  • the leading position information (1/2, 1/2) obtained by decoding by the leading position information decoding unit 1101 is input to the position information reordering unit 1105 and also holds the previous position information. Recorded in part 1 1 0 2 P2004 / 000563.
  • the previous position information holding unit 1102 records and holds the position information that has been decoded just before the position information to be currently decoded.
  • the branch layer determining unit 1103 sequentially reads the position information code of each input position information code string, determines the branch layer, that is, determines which layer of the position information value to be updated, and determines The result is sent to difference position information decoding section 1104. Note that the bit length of the position information code to be sequentially read by the branch layer determination unit 1103 is determined by the number of layers of the position information. As described in the description of the encoding device, in decoding the position information included in the identification information of the search data, the element type information is encoded together with the encoded position information, that is, the position information code string, and both are decoded. It is usually multiplied or transmitted.
  • the number of layers of the position information can be known, and the bit length of the position information code to be read can be known.
  • the bit length of the position information code to be read can be known using the information.
  • the difference position information decoding unit 1104 reads the position information held in the previous position information holding unit 1102 and, based on the determination result from the branch hierarchy determination unit 1103, determines the value of the position information, Update according to. That is, the difference position information decoding unit 1104 compares the position information recorded in the previous position information holding unit 1102 with the value of the position information of the branch layer based on the determination result of the branch layer determination unit 1103 in FIG. In the order relationship shown in Fig. 4A, the value of the positional information of all the layers is set to the initial value 12 in the order relationship shown in Fig. 4A for the layer that is increased by one according to the order relationship and is lower than the branch layer. The value of the position information of the hierarchy higher than the branch hierarchy is retained as it is.
  • the next position information code to be read is "10".
  • the branch layer determination unit 1103 determines that the code is “01”, the first layer, that is, a code indicating that there is a branch in the scene layer, and the difference position information decoding unit 1104 determines the code based on the determination result.
  • the first layer the value of the position information of the scene layer is updated by one in accordance with the order relationship in Fig. 4 (1).
  • the value of the position information of the lower layer, that is, the second layer—the layer of the shot is set as the initial value 1-2 in the order relationship of FIG. 4A.
  • the next value of 1/2 is 1Z4, so the position (1/4, 1/2) obtained by updating the value of the position information of the first and second layers from (1/2, 3Z4) is obtained.
  • the position information obtained by the difference position information decoding unit 1104 is output to the position information rearranging unit 1105, and is also sent to the previous position information holding unit 1102 and recorded, and the next position information is decoded. Used for
  • the position information reordering unit 1105 arranges the position information of the rational number expression decoded and output by the difference position information decoding unit 1104 according to the order relationship shown in FIG. 4A.
  • the position information is rearranged in the order according to.
  • the position information code string in FIG. 5 illustrated here is decoded
  • the position information 303 after rearrangement shown in FIG. 3 is rearranged in the order of the position information 302 before rearrangement. Will be.
  • the sorting is performed in order from the upper layer, so that the position information values in the hierarchy are arranged in descending numerical order, and if the value of the position information in the hierarchy is the same, the hierarchy is changed. This is done by recursively repeating the operation of descending and reordering numerical values.
  • the position information may be rearranged by collectively treating the values of the position information of all the layers in the leaf or the node. For example, a magnitude relationship between the position information of one leaf or node and the position information of another leaf or node is defined, and according to the magnitude relationship, existing information such as quick sort is applied to the leaf or node position information.
  • Position information can be rearranged by applying a sorting algorithm.
  • any sort method that can perform the same sort—sort can be used, and the sort method is not limited to the method shown here.
  • FIG. 12 is an explanatory diagram illustrating an operation example of the rearrangement process at the time of decoding described here. This rearrangement processing is performed inside the position information rearranging unit 1105.
  • reference numeral 1201 denotes 10 pieces of position information (the number of branches that can be branched is 3) output and decoded by the difference position information decoding unit 1104, and these are They are arranged in the order of decoding, that is, in the order according to the order relation of FIG. 4A.
  • a consecutive number representing the numerical value order (starting from 0) is finally assigned to each of the decoded position information. (See 1203 in Fig. 12.) If an index is assigned to each piece of position information, the position information can be rearranged according to its value. As an internal configuration of, there is prepared an index calculating unit represented by Fig. 13. In Fig. 12, since the number of position information 1 2 0 1 to be rearranged is 10, the given index 1 2
  • the value of 0 3 is from 0 to 9, but according to the number of location information, for example, the index from 0 to 14 for 15 and the index from 0 to 29 for 30 Get dumped.
  • the value of the index assigned to each piece of position information is obtained as follows.
  • FIG. 13 is a functional block diagram showing, as a functional configuration of a device, a process performed at a certain branch position in a certain hierarchy in order to calculate an index value added to each position information. That is, FIG. 13 is an example further illustrating the internal configuration of the index calculation unit serving as the internal configuration of the position information rearranging unit 1105. The processing in Fig. 13 is performed by the position information counting unit 1301, the update width calculation unit
  • index value update unit 1 receives the decoded position information, the count value and the index value processed in the next higher layer, Output the updated index value.
  • update width calculation unit 1 receives the decoded position information, the count value and the index value processed in the next higher layer, Output the updated index value.
  • the position information counting unit 1301 receives the decoded position information and the count value in the next higher layer as inputs.
  • Fig. 12 shows an example of the counting result. I have. However, the counting results 1 202 show the counting results at all the hierarchies and branch positions. For example, in the first layer (branch position), out of the 10 pieces of location information, there are six pieces of location information that take the value 1/2 in the first layer and four pieces of location information that take the value 1 Z4. Is counted.
  • the "branch position” referred to here means, when viewed as a tree structure, starting from one node in the hierarchy one level higher than the target hierarchy and starting from all elements (leaves or (Clause), and based on the value of the location information, it refers to a set of location information that has exactly the same value in a layer higher than the target layer. Then, the number of pieces of position information included in each branch position is given by the input count value of the next higher layer. In the first layer of FIG. 12, the elements hanging from the root, that is, the position information of all the elements is the “branch position” of the first layer.
  • the order of appearance of the value of the position information to be counted is the decoding order, it always follows the order relationship in FIG. 4A at any branch position. Therefore, the above counting process always calculates the numerical value according to Fig. 4A. If there is a missing value (a value that does not appear is in the middle), the number of occurrences of that value is counted as 0. In other words, in the obtained counting result, the first counting value is always the number of appearances of the first value 1/2 in Fig. 4A, and the second counting value is always 4 represents the number of occurrences of the second value 1/4 of A.
  • the counted result is output to the update width calculating section 1302 and the index value updating section 1303. It is output and used for processing in the next layer.
  • the update width calculation unit 1302 calculates, based on the count value received from the position information counting unit 1301, the update width of the index value of each position information according to the position information value of the target layer. For a given branch position, the update range of the index value for the position information having a certain value in the target hierarchy is determined by the number of position information having a value smaller than that value in the hierarchy. For example, if there are Ml, M2, and M3 pieces of position information with the values 1/4, 1/2, and 3/4 at the target hierarchy at a certain branch position, the position with the value 1/2 Before the information, there is M 1 position information having the value 1/4, so for the position information having the value 1/2, Ml is added to the position information index having the value 1/4. Need to be indexed.
  • the value 1 The update width of the index value for the position information having / 2 is Ml.
  • the update width for the position information having the value 3Z4 is given by Ml + M2.
  • the numbers M 1, M 2, and M 3 of these pieces of position information correspond to the respective count values obtained by the position information counting section 1301. That is, by adding up the count values obtained by the position information counting section 1301 in order of numerical value, an update width corresponding to each position information value is obtained.
  • each count value counted by the position information counting unit 1301 may represent the number of occurrences of each position information value according to the order relationship of FIG. 4A. know. From this, it is possible to know the magnitude relationship of the values in the order in which the numerical values were obtained without comparing the values of the position information with each other. Since no comparison is made between the values, the amount of calculation can be reduced.
  • the information for this is the integration order information 1304.
  • the integration order information 1304 will be described with reference to FIGS. 14 to 15.
  • Table 1401 in FIG. 14 and Table 1501 in FIG. 15 are examples of the integration order information 1304. For example, if the counted position information values are up to three-quarters in the order shown in Fig. 4A, up to 3/4
  • the second value (1/4), the first value (1Z2), and the third value (3Z4) The count values may be integrated in that order. If the counted position information values are 7 from 7 to 8, the magnitudes are in the order of Table 1501 in FIG. 15, and the count values may be integrated in that order. In other words, depending on how far the position information is counted (decoded) in the order relationship shown in FIG. 4A, the order of magnitude in the counting order (decoding order) is uniquely determined.
  • integrated order information The information in the order of magnitude with respect to the counting order.
  • the value of the position information decoded last in the order of Fig. 4A if it is the integration order information corresponding to ( ⁇ 1) ZN that is more than that value, it can be used to determine the integration order. it can. Furthermore, in order to minimize the extra integration processing, the minimum (N-1) ZN that is equal to or larger than that value is selected, and the corresponding integration order information is used. At this time, N is equal to the value of the denominator of the last decoded value. For example, if the value of the position information decoded at a certain branch position is two, 1Z2, 1 ⁇ 4, since the denominator of the last decoded value 1Z4 is 4, the decoding order information up to 3Z4, that is, Use Table 1401 in Figure 14.
  • the denominator of the value 1/8 is 8, so the decoding order information up to 7Z8, Use Table 15 01.
  • the count values obtained by the position information counter 1301 are integrated in the order indicated by the integration order information 1304, and the update width of the index value corresponding to each value of the position information is obtained.
  • the corresponding count value is integrated as 0.
  • the obtained update width is output to index value updating section 1303.
  • the index value update unit 1303 uses the update width obtained by the update width calculation unit 1302, the count result obtained by the position information counting unit 1301, and the count value of the next higher layer to obtain each position information. Update the value of the attached index.
  • the first count value obtained by the position information counting unit 1301 indicates the number of position information having the value 1Z2 in the target hierarchy.
  • the index value is updated with the update width corresponding to the value 1/2 obtained by the update width calculation unit 1302 for the location information. At this time, the head of the branch position is obtained from the count value of the input one level higher. Similarly, processing is performed for the second and subsequent count values.
  • the initial value of the index of each position information is set to 0.
  • Table 1401 in Fig. 14 is used for 304.
  • the update width of the index value is set to 0 for the first position information value 1Z4.
  • the update width calculation unit 1302 adds the count value 4 corresponding to the value 1 Z4 to the update width 0, and obtains the next value in Table 1401. Obtain the update width 4 of the index value for 1/2. 1 2 0 2
  • the integration order information 1 3 0 For Table 4, Table 1401 in Fig. 14 is used.
  • the update width of the index value is set to 0 for the first position information value 1 Z4.
  • the update width calculation unit 1332 adds the total value 2 corresponding to the value 1/4 to the update width 0, and calculates the update width 2 of the index value for the next value 1 2 in Table 1401.
  • the calculated index value updating unit 1303 adds the update width 2 corresponding to the value 1 Z 2 to the index value 4 attached to the first four pieces of position information.
  • the updated index value 6 is obtained.
  • the update width 0 corresponding to the value 1-4 is added to the index value 4 of the following two pieces of position information corresponding to the second count value, and the updated index value 4 is obtained.
  • the table 1401 in FIG. 14 is used for the integration order information 1304, and the update width calculation unit 1302 Calculate the update width 0 for the position information value 1/4 and the update width 1 for the value 1/2.
  • the index value updating unit 1303 adds the update width 1 to the three pieces of position information from the head of the branch position, adds the update width 1 to the index value 1, and sets the remaining The index is updated to the index value 0 by adding the update width 0 to the location information.
  • the head of the second branch position of the second hierarchy is obtained by the input count value of the immediately higher hierarchy.
  • the two count values of the first layer of the counting result 1222, 6 and 4 directly represent the number of pieces of position information at the two branch positions of the second layer. Therefore, after the second branch position of the second hierarchy, The head is 7, which is obtained by adding 1 to the number 6 of the position information of the first branch position. In this way, the head of the branch position is specified, and the index of each position information included in the branch position can be updated.
  • the information converted at the head position of each branch position may be held and received from the upper layer.
  • 1 203 represents the index value after update at each layer and the value of the update width (in parentheses) obtained at each branch position when the execution is performed in order from the upper layer. It is written. In the lowest third layer, each position information value appears once, so that an index value with one difference is finally obtained. The index thus obtained indicates the order relationship of the position information, and the position information can be rearranged by reading out according to this index.
  • the rearranged position information is output from the position information rearranging unit 1105 in FIG.
  • the index value is sequentially updated by adding the update width value each time the process is performed.
  • the update width of each hierarchy is separately obtained, and finally, each hierarchy is updated.
  • the value of the update width of may be summed.
  • the position information counting processing, the multiplication processing, and the index value update processing are performed for each branch position, but the position information counting processing is performed for all the hierarchies. May be performed first for all branch positions, and the obtained count value may be held as shown in the count result 122 of FIG. 12 and used for the subsequent processing. In this case, extra memory is required to hold the counting results, but the counting results of other layers can be used at any time.
  • the described position information rearrangement process is performed by using the integration order information 1304 that reflects that the value of the decoded position information follows the order relationship in Fig. 4A. Sorting can be performed without having to compare the values of each signal, which has the advantage of reducing calculation processing.
  • the processing in the update width calculation unit 1322 is the integration processing of the number of occurrences of the position information, even if the value of the position information that is missing or does not appear is in the middle, By counting the number of occurrences of the position information as 0, processing can be performed in exactly the same framework. For this reason, there is no need for branch processing, etc. Even if there is a missing part, the sorting process can be performed quickly.
  • the reordering method has been described specifically for the reordering process at the time of decoding.
  • the reordering method described above can be similarly used for the reordering process at the time of encoding.
  • the integration order information 1304 is not converted from “order of FIG. 4A” shown in FIGS. All you have to do is change the order of the numerical values, which corresponds to, from “large to small” to “order of Fig. 4A”.
  • the position information expressed as a rational number of “natural number of a power of 2 (the denominator is a power of 2 and the numerator is a natural number)” used in the present embodiment is shown as an example. The same can be applied to other rational position information, or to any position information that needs to be rearranged even if it is not a rational number expression.
  • the position information code that is read next by the branch hierarchy determination unit 1103 indicates a lack.
  • the missing code is "0 0".
  • the branch hierarchy determination unit 1103 notifies the difference position information decoding unit 1104 that the next position information is a missing position, and reads the next position information code "10". Since the current position information is a code indicating the branch of the second layer, the determination result is notified to the difference position information decoding unit 110.
  • the difference position information decoding unit 1104 receives that the next update position is a missing position, and that the branch hierarchy to be updated is the second hierarchy.
  • the difference position information decoding unit 1104 calculates the value of the second layer from the position information (1/2, 1 2) held in the previous position information holding unit 1102 according to the order relationship of FIG. One half is updated from 1/2 to 1/4, and the updated location information (1 / 2.1 / 4) is obtained. However, since this is notified that this is a missing location, the location information sorting unit 1
  • the value (1/2, 1/4) is output and held only in the previous position information holding unit 1102 without being output to 105.
  • the branch layer determining unit 1103 determines that the next branch layer is the second layer, and compares the result with the difference position information decoding unit. Notify 1 1 04
  • the difference position information decoding unit 1104 receives that the branch layer is the second layer, and The value of the second layer of the location information (1/2, 1/4) held in the information holding unit 1 102 is updated from 1 to 4 to 3Z4 according to the ordering relationship of FIG. 4A, and (1Z2, 3/4) is obtained. Since this is not a missing position, it is output to the position information rearranging section 1105. Thus, the next position information is correctly decoded.
  • the position information code read next by the branch hierarchy determination unit 1103 indicates a lack.
  • the missing code is "0 0".
  • the branch layer determining unit 1103 notifies the difference position information decoding unit 1104 that the next position information is a missing position, and reads the next position information code “01”. Since the current position information is a code indicating the branch of the first hierarchy, the determination result is notified to the difference position information decoding unit 1104.
  • the difference position information decoding unit 111 receives that the next update position is a missing position and that the branch hierarchy to be updated is the first hierarchy.
  • the difference position information decoding unit 1104 calculates the value of the first layer from the position information (1/4, 3/4) held in the previous position information holding unit 1102 according to the order relationship in FIG. In this case, the updated location information (3/4, 1) is updated from 1/4 to 3/4, and the value of the second layer is set to the initial value 1/2 in the order relationship shown in FIG. 4A. / 2), but it is notified that this is a missing position, so it is not output to the position information rearranging unit 1105, but only to the previous position information holding unit 1102, and its value ( 3/4, 1/2) is output and held. Since the next position information code to be read is "1 0", the next hierarchical level is the second hierarchical level in the branch hierarchical level determination unit 1103. Is determined, and the result is notified to the difference position information decoding unit 1104.
  • the difference position information decoding unit 1104 receives that the branching layer is the second layer, and receives the position information (3/4, 1 / '2) of the position information held in the previous position information holding unit 1102.
  • the values of the two hierarchies are updated from 1/2 to 1/4 according to the order relationship in Fig. 4A, and (3/4, 1/4) is obtained. Since this is not a missing position, it is output to the position information rearranging section 1105. Thus, the next position information is correctly decoded.
  • the decoded position information corresponds to each of the search data (or sections), and the search data (or section) is Are treated in order of appearance in the original tree structure, that is, in order of numerical value For example, they are often transmitted or stored in that order.
  • the position information in the original order in which the numerical values are arranged in ascending and descending order is obtained by sorting, so that correspondence with the search data (or section) can be obtained. ) Can be identified.
  • search data (or clause) can be selected to appear in the original tree structure, or to be treated in the same order as in the position information in accordance with Fig. 4A.
  • a flag is separately provided to indicate whether or not the search data (or section) is rearranged, and transmitted or stored together with the position information code string, and the position information rearranging unit 1105 according to the value of the flag. May be used to select whether or not to rearrange the position information.
  • FIG. 16 is a flowchart for explaining a position information decoding method according to the first embodiment of the present invention.
  • the position information decoding method includes a head position information decoding step (step S21), a previous position information holding step (step S22), a branch hierarchy determination / difference position information decoding. Step (step S26) ⁇ and a position information rearranging step (step S29).
  • the decoding method according to the first embodiment of the present invention also relates to the decoding of position information, and the present invention may take a form as a decoding method for performing decoding including the position information decoding described here.
  • the head position information is decoded by a normal method (step S21). Then, the decrypted top position information is held as previous position information (step S22).
  • step S23 the position information code is read (step S23). Then, it is determined whether or not the read position information code is an end code (step S24). If it is not the end code, it is next determined whether or not it is a missing code (step S25).
  • the branch hierarchy is determined based on the position information code, and the position information is updated based on the determination result, that is, the position tt information of the next position is obtained (step S26).
  • the value of the position information is increased by one in accordance with the order relationship of FIG. For the lower layers, the initial value 1 Z 2 in Fig. 4A is set, and for the upper layers, the change is not changed. Then, the obtained position information is output (step S27), and is held as the previous position information (step S22), and the same processing is continued. If it is determined that the code is a missing code, the next position information code is read (step S28).
  • step S26 the branch hierarchy is determined from the read position information code, and the next position information is obtained in the same manner as described above.
  • the position information obtained here is a missing position, it is not output and is simply held as the next previous position information (step S22), and the same processing is continued thereafter.
  • the position information is determined to be the end code (step S24), the position information finally decoded and output is rearranged in numerical order (step S29), and the decoding is completed.
  • the position information expressed as a rational number a position of a power rational number expression given as an example given by a “natural number of a power of 2” is used.
  • the information is not limited to this.
  • the same processing can be performed for "natural numbers of powers of 3 (the denominator is a power of 3 and the numerator is a natural number)".
  • the “natural number of powers of 2” in the embodiment of the present invention does not include 0 as a matter of course, but 0 may be included here as a possible value of the position information.
  • the ordering relationship in FIG. 4A is such that 0 is placed before 1/2 and the initial value is 0.
  • the present invention can be applied to any position information having a property that the order relation is not determined as it is even if it is other than a rational number and the ordering can be performed by rearranging.
  • the essence of the present invention is that, when there is position information such that the next value to be updated cannot be uniquely specified for a certain value from the numerical order relationship, the position information is determined in a predetermined order.
  • FIG. 17 is a functional block diagram illustrating a schematic configuration of the position information encoding device according to the second embodiment of the present invention.
  • the position information encoding device includes a head position information encoding unit 170
  • step width determination section 1701 previous position information storage section 1703
  • the head position information coding unit 1702 is composed of a branch layer determining unit 1704 and a difference position information encoding unit 1705.
  • the head position information coding unit 1702 is composed of a branch layer determining unit 1704 and a difference position information encoding unit 1705.
  • the head position information coding unit 1702 is composed of a branch layer determining unit 1704 and a difference position information encoding unit 1705.
  • the position information encoding apparatus in order to encode a plurality of position information expressed as rational numbers of search information having a tree structure as shown in FIG.
  • the order relation is defined in advance, and a plurality of pieces of position information to be encoded are rearranged according to the order relation.
  • the position information encoding apparatus includes a position information rearranging unit 101, and is used to return the rearranged position information to the original numerical value in descending order.
  • the positional relationship of the positional information is kept in the order of the numerical value, and instead, the step width at which the value of the rational number increases is obtained, and encoding / decoding is performed together with the positional information code.
  • encoding / decoding is performed together with the positional information code.
  • a fixed step width is determined and given to each hierarchy, and this step width is assigned to a lower hierarchy when a certain hierarchy branches.
  • the position information encoding device according to the second embodiment shown in FIG. 17 is different from the position information reordering unit 101 in FIG.
  • the position information decoding device according to the second embodiment shown in FIG. 23, which will be described later, includes a width encoding unit 1706, and is replaced with the position information rearranging unit 1105 in FIG.
  • a step width decoding unit 2305 is provided.
  • the position information encoding device, the encoding method, the decoding device, and the decoding method according to the second embodiment will be described in order, but these descriptions are based on the position information code according to the first embodiment already described. It is assumed that the description of the encoding device, the encoding method, the decoding device and the method is given, and the overlapping parts will be omitted as appropriate. Therefore, detailed descriptions such as the limitations described in the first embodiment are not described again in this embodiment, but unless otherwise specified, the limitations described in the first embodiment are not described. And the like also apply to the second embodiment as it is.
  • FIG. 18 shows position information encoded by one configuration example of the position information encoding apparatus according to the second embodiment of the present invention (included in the identification information corresponding to each data of the search information shown in FIG. 2).
  • FIG. 3 is a diagram showing an example of position information) and a position information code string obtained by encoding them.
  • the operation of the position information encoding device according to the second embodiment of the present invention shown in FIG. 17 will be described with reference to FIG.
  • the head position information encoding unit 1702 encodes the head position information among a plurality of pieces of position information to be encoded by a normal method using no difference.
  • the present invention does not particularly refer to the encoding method for the head position information.
  • the previous position information holding unit 1703 records the position information processed immediately before, It is output and provided when encoding the position information. First, the encoded head position information (1Z4, 1/4) is recorded and held.
  • the step width determining unit 17001 obtains a fixed “step width” corresponding to an increasing width from a certain value to the next value for each level with respect to the position information values arranged in a numerical value order, and obtains a step width code.
  • the signal is output to the encoding unit 1706 and the branch hierarchy determining unit 17004.
  • the value of the position information that can be expressed is determined by the step width.
  • the value of the step width for a certain hierarchy is set so that all the position information values assigned to that hierarchy can be expressed.
  • the step width is selected as large as possible.
  • the position information expressed as a rational number of “natural number of power of 2 (the denominator is a power of 2 and numerator is a natural number)” is calculated as follows. Here is an example using the power of 2 and the numerator is 1). Of course, just as rational numbers are not limited to this, step widths are not so limited.
  • the value of the position information existing in the first layer is 1./4
  • the initial value is 1/4 and the value is updated as the step width is 1/4.
  • the step width is 1 of ⁇ the denominator of the last value>. This is because, when the values of the position information are arranged according to the order relationship in Fig. 4A, the last value has the highest resolution, and other values with lower (or the same) resolution can be represented by that resolution. Is guaranteed.
  • all the values of the position information in a certain hierarchy are arranged according to the magnitude relation of the numerical values, and a difference is calculated between two adjacent values, and the difference value and the minimum By obtaining the value that is the greatest common divisor for the value of the position information, it is possible to set a more efficient step width.
  • the difference between 3/16 and 3Z8, 3Z16, and the difference between 3Z8 and 3/4 is 3/16. Therefore, this value can be set as the step width of the position information value and the initial value, and three values 3/16, 3/8, and 3Z4 can be represented efficiently.
  • Step width encoding section 1706 encodes and outputs the step width corresponding to each layer determined by step width determining section 1701. Encoding is performed for each step width corresponding to each layer, and is encoded in the usual manner, similar to the encoding of the leading position information described above.
  • the step width 1/4 of the first layer and the step width 1Z4 of the second layer are each given by being encoded with 5 bits.
  • the coding method of the step width like the coding method of the head position information, is not particularly mentioned in the present invention.
  • the encoding of the step width is performed after the encoding of the head position information.
  • the processing may be performed before the head position information.
  • the value of the step width defined here is determined by the value of the position information of the branch layer in the differential encoding / decoding. When updating, it is also used as the initial value of the location information given to the location information of the hierarchy lower than the branch hierarchy. --...
  • the processing performed by the one-branch hierarchy determination unit 1704 is basically the same as the processing performed by encoding the conventional position information expressed as an integer. The difference is that the step width is fixed at “1” in the position information expressed as an integer, whereas the step width obtained by the step width determination unit 1701 is used.
  • the step width value obtained by the step width determining unit 1701 is also used as the initial value of the position information. As described in detail in the position information encoding device according to the first embodiment, in the encoding device in FIG. 17, the value of the step width is used for the determination of the missing.
  • the branch layer determining unit 1704 compares the input position information to be coded with the position information stored in the previous position information storing unit 1703, and determines the branch layer based on the comparison. The result is output to difference position information encoding section 1705. At this time, based on the value of the step width output from the step width determining unit 1701, the branch hierarchy determining unit 1704 determines and outputs the missing data in the same manner as described in the first embodiment. . ⁇
  • the difference position information coding unit 1705 selects and outputs a position information code according to the determination result (the presence or absence of a branch layer and a lack) of the branch layer determination unit 1704.
  • the previous position information holding unit 1703 stores the position information (1/4, 1 / 4) is held.
  • the value of the first layer that is, the level of the scene is the same
  • the value of the position information of the second layer that is, the layer of the shot is increasing.
  • the value of the position information of the second layer is increased from 1/4 to 1/2 by the step width 1Z4 of the second layer, so that it is understood that branching is performed without omission.
  • This determination result is output to difference position information encoding section 1705, and position information code "10" corresponding to the second layer is output from difference position information encoding section 1705. Note that the description in the first embodiment is applied to the type of the position information code and the bit length of the position information code as they are.
  • the value of the location information on the first layer increases from 1/4 to 1Z2, and the step width on the first layer increases by 1Z4.
  • the value of the second hierarchy is the same as the initial value 1/4 of the step width of the second hierarchy, it can be understood that the branching is performed without omission.
  • the result of this determination is output to the difference position information encoding unit 1705, and the difference position information encoding unit 1705 outputs a position information code "01" corresponding to the first layer.
  • FIG. 19 shows an example of search information having a tree structure that requires encoding using missing codes.
  • the moving image content 1910 is composed of two scenes, the first scene (scene # 1/4) consists of three shots, and the second scene (scene # 1/2) consists of four shots.
  • the position information value is 1Z4, 1/2, 3-4 for each shot of scene # 1-4, and the position information 1Z8, 1 is for 4 shots of scene # 1-2. / 4, 3Z8, 1Z2 are waved.
  • step width 1/8, all values can be included in the update value, so the step width is 1-8.
  • FIG. 20 shows an example of position information extracted from identification information corresponding to each of the data 1901 to 1907 of the search information shown in FIG. 19, and a position information code string obtained by encoding the position information.
  • the position information of each shot that composes scene # 1Z4 is 1Z4, 1/2, 3, / 4, and it is considered that a step width of 1/4 is appropriate with them alone, but the overall step width is 1Z8 Therefore, positions (1/4, 3/8) and (1/4, 5/8) that are not originally present appear as missing positions and are coded.
  • the step width to be coded when the tree branches is given for a layer existing below the branch layer.
  • the step width for the lower layer than the first layer that is, the second layer is encoded and given.
  • the number of step widths given when branching also increases. That is, if there are three hierarchies and a branch occurs in the first hierarchy, two step widths corresponding to the second and third hierarchies are encoded and given.
  • FIG. 22 is a diagram illustrating a position information encoding method according to the second embodiment of the present invention, and in particular, position information codes corresponding to the operation of the encoding device described with the example of the position information code sequence in FIGS. 18 and 20. It is a flowchart for demonstrating the conversion method.
  • the position information encoding method according to the second embodiment of the present invention shown in FIG. 22 is different from the position information encoding method according to the first embodiment shown in FIG. Step S1) is eliminated, and instead, a step width encoding step (step S32) is added, and the missing step (step S7) is replaced by a missing step (step S37) based on the obtained step width. ).
  • Other processes are the same as those of the position information encoding method according to the first embodiment, and the steps S2, S3, S4, S5, S6, S8, S9, and S in FIG. 10 and S11 correspond to steps S31, S33, S34, S35, S36, S38, S39, S40, and S41 in FIG. 22, respectively.
  • FIG. 23 is a functional block diagram illustrating a schematic configuration of the position information decoding device according to the second embodiment of the present invention.
  • the position information decoding apparatus includes a head position information decoding unit 230 1, a previous position information holding unit 2302, a step width decoding unit 2305, a branch hierarchy determination unit 2303, and difference position information decoding. It consists of part 2304.
  • the first position information decoding unit 2301, the previous position information holding unit 2302, and the branch layer determination unit 2303 are the function blocks that constitute the position information decoding device according to the first embodiment described with reference to FIG.
  • the step width decoding unit 230 5 is the same as the head position information decoding unit 111, the previous position information holding unit 1102, and the branch layer determining unit 1103.
  • the operation except for the difference position information decoding unit 2304 is basically the same as the conventional decoding process of the position information expressed as an integer.
  • the operation of the position information decoding apparatus according to the present embodiment will be described in the case where the position information code sequence shown in FIG. 18 is input.
  • the head position information decoding unit 2301 decodes the head position information and outputs the position information. As in the first embodiment, this is decoding of position information encoded by a normal method, and its operation is not particularly mentioned in the present invention.
  • the first position information (1/4, 1/4) is decoded from the first 10 bits (5 bits X number of layers 2) and recorded in the previous position information holding unit 2302. Been kept It is.
  • the step width decoding section 2305 decodes and obtains the !! of the stetab width corresponding to each layer.
  • the code of the step width following the sign of the head position information is read as 10 bits (5 bits, the number of X layers is 2), and the step width 1Z4 of the first layer and the step width 1Z4 of the second layer are decoded.
  • the decoded value of the step width of each layer is output to the difference position information decoding unit 2304 and used to decode the position information.
  • the step width like the head position information, is coded and Z-decoded in the usual manner. Therefore, the operation is not specifically mentioned in the present invention.
  • the number of bits of 5 bits of each code of the above-described head position information and the number of 5 bits of pits of each code of the step width are determined by the encoding method.
  • the branch layer determining unit 2303 sequentially reads the position information code, and notifies the difference layer information decoding unit 2304 of the branch layer indicated by the position information. At this time, as described in the description of the position information decoding apparatus according to the first embodiment, it is also possible to read the missing code and to process the missing position.
  • the branch layer determining section 2303 reads the position information code “10”.
  • the position information code “10” is a code indicating that the second layer, that is, the layer of the shot is branched, and the determination result is notified to the difference position information decoding unit 2304.
  • the description in the first embodiment is applied as it is to the type of the position information code and the pit length of the position information code.
  • the difference position information decoding unit 2304 decodes the position information based on the previous position information held in the previous position information holding unit 2302 and the judgment result obtained from the branch hierarchy judgment unit 2303.
  • the step width obtained by decoding in the step width decoding unit 2305 is the update width of the value of the position information expressed as a rational number, and the position information given to the lower layer when branching in the upper layer. Is used as the initial value of
  • the front position information storage unit 2302 stores the position information (
  • the difference position information decoding unit 2304 adds 1/4 of the step width of the second layer obtained by the step width decoding unit 2305 to the value of the second layer corresponding to the branch layer to the held position information. Thus, the location information (1/4, 1/2) is restored. This value is output and the value is stored in the previous position information storage unit 2302.
  • the branch hierarchy determination unit 2303 next stores the position information code “0 1 "Is read.
  • the position information code “01” is a code indicating that there is a branch in the first layer, that is, the scene layer, and the determination result is output to the difference position information decoding unit 2304.
  • the difference position information decoding unit 2304 determines whether the position information (1Z4, 3/4) held in the previous position information holding unit 2302 is to be branched based on the determination result notified from the branch layer determination unit 2303.
  • the value of the position information of the first layer, which is the first layer, is increased by 1/4 of the step width of the first layer obtained by the step width decoding unit 2305, and the second layer, which is a layer lower than the branch layer, is Give the step width 1Z4 of the two layers as the initial value.
  • the position information (1Z2, 1/4) is decoded.
  • the decoded position information (1/2, 1/4) is output and input to the previous position information holding unit 2302 and held.
  • This process is performed until the end code "1 1" is read by the branch hierarchy determining unit 2303, and the decoding ends when the end code is read.
  • a decoding process in the case where there is a missing will be described with reference to FIG.
  • a plurality of missing pieces of position information can be decoded using missing codes.
  • the processing up to decoding the step width is the same as the decoding processing described above with reference to FIG. In the position information code string of FIG. 20, the step width decoding section 2305 decodes and obtains the first layer step width 1/4 and the second layer step width 1/8.
  • the branch layer determining section 2303 reads the position information code “00”.
  • the position information code "0 0" is a missing code indicating a missing position. For this reason, the difference position information decoding unit 2304 is notified that there is a position missing, and the branch layer determination unit 2303 reads the next position information code “10”.
  • the position information code “10” is a code indicating that the second layer, that is, the layer of the shot is branched, and the determination result is notified to the difference position information decoding unit 2304.
  • the difference position information decoding unit 2304 decodes the next position information based on the previous position information held in the previous position information holding unit 2302 and the judgment result obtained from the branch hierarchy judgment unit 2303. Now, the judgment result is that the branch hierarchy is the second hierarchy, and the position is missing Has been notified.
  • the previous position information holding unit 2302 holds position information (1/4, 1/4).
  • the position information (1/4) obtained by adding the step width 1/8 of the second layer obtained by the step width decoding unit 2305 to the value of the second layer corresponding to the branch layer to the held position information. , 3/8) is decoded. However, it is notified that this position is a missing position. Therefore, this position information is recorded and held only in the previous position information holding unit 2302 without being output to the outside as decoded position information.
  • the branch hierarchy determining unit 2303 reads the position information code “10”.
  • the position information code “10” is a code indicating that the second layer, that is, the shot layer is branched, and the determination result is notified to the difference position information decoding unit 2304.
  • the position information (1/4, 3/8) is held in the previous position information holding unit 2302.
  • the stored position information is added to the value of the second layer corresponding to the branching layer by the step width 1/8 of the second layer obtained by the step width decoding unit 2305, and the position information (14, 1/2) is decrypted. Since this position is not a missing position, this position information is output to the outside as decoded position information, and is held in the previous position information holding unit 2302. In this way, even if there is a missing position, correct position information can be decoded and obtained. Next, a decoding process for the position information code string in FIG. 21 will be described.
  • the process up to decoding the position information (1/4, 3/4) is the same as the decoding process described above with reference to FIG.
  • the step width decoding unit 2305 outputs a step width 1/4 of the first layer and a step width 1Z4 of the second layer.
  • the position information (1/4, 1/2) and (1/4, 3/4) are sequentially decoded and output by the position information codes "10" and "10" which are read thereafter.
  • the branch hierarchy determining unit 2303 reads the position information code “01”.
  • the position information code "01" is a code indicating that the first hierarchy is a branch hierarchy.
  • the position information code sequence in FIG. 21 is obtained by coding a new step width for a layer below the branch layer when the branch layer is determined.
  • the step width for the lower layer than the first layer, that is, the second layer is coded and given. Therefore, when it is determined that the first layer is a branch layer, the code of 5 bits corresponding to the step width of the second layer is used as the step width decoding unit 2305. And the new step width 1/8 of the second layer is obtained by decoding.
  • the second layer is a branching layer
  • the above example is an example of the first and second two layers, for example, it is determined that the first layer is the branching layer based on the positional information including the first to third layers.
  • the code that encodes the step width of the second and third layers that immediately follow it is decoded. That is, the step widths for the number of layers below the branching layer are decoded. The same is true even if the number of layers further increases.
  • the previous position information storage unit 2302 stores position information (1/4, 3/4).
  • the difference position information decoding unit 2304 adds the step width 1Z4 of the first layer obtained by the step width decoding unit 2305 to the value of the first layer corresponding to the branch layer to the held position information. .
  • a step width 1/8 of the second layer obtained by newly decoding in the step width decoding unit 2305 is given as an initial value.
  • the position information (1/2, 1/8) is obtained by decoding.
  • the decoded position information (1 2, 1/8) is output and input to and held by the previous position information holding unit 2302.
  • the position information code “10” indicating that the second layer is a branch layer is read by the branch layer determination unit 2303.
  • the difference position information decoding unit 2304 adds the step width 1-8 of the second layer to the position information (1Z2, 1/8) held in the previous position information holding unit 2302, and adds the next position information (1 / 2, 1/4), and after that, (1/2, 3/8) and (1/2, 1/2) are decoded, and then the end code "1 1" is read. To end decoding.
  • the step width for encoding and Z-decoding in the present embodiment described above serves as both the increment of the position information value and the initial value. In the present invention, by sharing the increment of the value and the initial value in this way, it is possible to perform differential encoding of position information expressed as a rational number while suppressing a decrease in encoding efficiency. Alternatively, it is also possible to encode each of them without sharing the initial step width.
  • a differential encoding / decoding method of position information that encodes / decodes the step width for all position information codes at the same time and attaches them at will and changes the step width freely. You can also.
  • FIG. 24 is a diagram illustrating a position information decoding method according to the second embodiment of the present invention, in particular, position information corresponding to the operation of the decoding device described with the example of the position information code string in FIGS. 18 and 20.
  • FIG. 21 is a flowchart for explaining a decoding method.
  • the position information decoding method according to the second embodiment of the present invention shown in FIG. 24 is different from the position information decoding method according to the first embodiment shown in FIG. Step S 29) is eliminated, and instead, a step width decoding step (step S 52) is added, and the difference position information decoding step (step S 26) is decoded to obtain the difference position based on the step width obtained by decoding. It is configured by changing to the location information decoding step (step S57).
  • the other processing is the same as the processing of the position information decoding method according to the first embodiment, and steps S 21, S 22, S 23, S 24, S 25, and S 2 in FIG. 7, S28 correspond to steps S51, S53, S54, S55, S56, S58, S59 in FIG. 24, respectively.
  • the position information encoding device e including the step width encoding unit 1706 has been described as being implemented separately.
  • the present invention is not limited to this, and a position information encoding device including any of those functional blocks may be used. It can also be configured.
  • encoding with accompanying rearrangement of position information was performed, or encoding of the step width (step width determining unit 1701 and step width encoding unit) was performed.
  • a flag is prepared to indicate whether or not encoding was performed, and the value of the flag is recorded together with the position information code string.
  • the attribute information of the position information code string may be recorded in a separate stream or file from the position information code string.
  • a position information decoding device including the position information rearranging unit 1105 shown in the first embodiment, and a position information decoding device including the step width decoding unit 2305 shown in the second embodiment.
  • the position information decoding device receives the flag recorded by the position information encoding device, and performs decoding accompanied by rearrangement (processing in the position information rearranging section 1105) according to the value of the flag. Or decoding with step width decoding (processing in the step width decoding unit 2305) is switched.
  • the updated value cannot be uniquely identified from the numerical order relation by the rational number expression.
  • the differential encoding can be performed while maintaining the original positional information order relation. It has different effects such as being able to perform encoding and decoding of position information which is easy to understand intuitively. Therefore, by switching using the flag, it is possible to select and use an appropriate encoding method according to the situation.
  • the position information encoding method having the position information reordering step S1 shown in the first embodiment and the position information encoding method having the step width encoding step S32 shown in the second embodiment. From the coding method, it is also possible to configure a position information coding method having any of those steps. Also, the position information decoding method having the position information reordering step S29 shown in the first embodiment and the position information decoding method having the step width decoding step S52 shown in the second embodiment However, it is also possible to configure a position information decoding method having any of those steps. "
  • each embodiment has been mainly described with respect to the position information encoding apparatus and method and the position information decoding apparatus and method of the present invention.
  • the present invention is directed to the apparatus (encoding apparatus and / or method) in each of the above embodiments.
  • a program for causing a computer to function as a decoding device or for causing a computer to execute the processing procedure of the method (encoding method and Z or decoding method) in each of the above-described embodiments.
  • a form as a recorded computer-readable recording medium is also possible.
  • a program incorporated in the computer to make the computer function is a function for writing a description to operate a CPU or MPU of a combination as each unit (corresponding to each means) in each device described above. , In each of the above methods It can be easily realized by writing a description that causes the CPU or MPU to execute the processing of each step.
  • FIG. 25 is a diagram illustrating a configuration example of a general information processing device, and is a diagram for describing the device according to the present invention.
  • the processing of various types of information in the device according to the present invention will be described with reference to a configuration example of a general information processing device shown in FIG.
  • the information handled by the apparatus according to the present invention is temporarily stored in the RAM 2502 during processing in any of the apparatuses, and then stored in various ROMs 2503 as configuration data such as an image database.
  • a program for causing a computer to function as the device according to the present invention is stored in the ROM 2503 and executed by the CPU 2501 reading it out.
  • the progress of the processing and the results of the processing are presented to the user through the display device 2505, and when necessary, the user inputs and designates the parameters necessary for the processing using a keyboard, a mouse (pointing device) or the like. do it.
  • the program should include a graphical user interface for the display device 2505 that is easy for the user to use.
  • intermediate data generated during execution of other processing is also stored in the RAM 2502, and is read and modified / written by the CPU 2501 as necessary.
  • a network such as a LAN.
  • a communication device is a device for exchanging data with another device via a communication line.
  • OM magneto-optical disk
  • DVD-ROM digital versatile disc
  • FD flash memory
  • memory stick various other types of R ⁇ M and RAM
  • the program is read out by installing the recording medium as described above in an information processing apparatus such as a computer, or the program is stored in a recording medium provided in the information processing apparatus, and the program is stored as necessary.
  • the position information according to the present invention can be encoded / Can perform decryption functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Library & Information Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

有理数表現された複数の位置情報について、差分符号化による位置情報の符号化/復号を可能とする、複数位置情報の符号化装置であって、有理数表現されて、数値の大小順に並んだ複数の位置情報を、予め決められた順序関係を設けて、その順序関係に従う順に複数の位置情報を並べ替える位置情報並替部(101)を備える。位置情報が決められた順序関係に従って並べ替えられることで、整数表現された位置情報と同様に、差分符号化による複数位置情報の符号化が可能となる。

Description

明細書
符号化装置及び方法、 復号装置及び方法、 プログラム、 並びに記録媒体
技術分野
本発明は、 符号化装置、 符号化方法、 復号装置、 復号方法、 プログラム、 及び記録媒体 に関し、 より詳細には、 木構造中の葉及び 又は節に関する位置情報を複数まとめて効率 的に符号化/復号する、 符号化装置、 符号化方法、 復号装置、 復号方法、 プログラム、 及 び記録媒体に関する。
背景技術
木構造によるデータ表現は、 情報処理のさまざまな分野で使用されている。 その代表的 な例が、 動画像コンテンッに対応して与えられる検索情報の木構造表現である。
図 2 6は、 従来技術による動画像コンテンツに対応して与えられた木構造を有する検索 情報の一例を示す図である。
1つの動画像コンテンツが 1つ又は複数のシーンによって構成され、 また 1つのシーン が 1つ又は複数のショットによって構成されるとする。 そして各々のショットには、 ショ ット別の動き強度や色頻度、 又はショットの内容を表す要約文といったショッ卜の特徴を 表すデ—夕が与えられるとすると、 この動画像コンテンツの検索情報は、 図 2 6に示すよ うな木構造で表される。
図 2 6で示す例は、 動画像コンテンツが 3つのシーン (# 0 , # 1 , # 2 ) からなり、 各々のシーンがさらに 3つのショット (# 0 , # 1, # 2 ) で構成され、 それぞれのショ ット毎に動き強度を表すデータが付加された場合の検索情報を表したものである。 本例で は、 動き強度を強 = 3 > 中 = 2、 弱 = 1の 3値をとるデータとして示している。
木構造としては、 動画像コンテンツが根にあたり、 シーン、 ショット、 及びデータの種 別を示した動き強度のタグ情報が節にあたり、 実際の動き強度を表すデ一タが葉にあたる 。 シーンは根から見て最初の分岐位置、 即ち第 1階層の節であり、 ショットは第 2階層の 節である。 無論、 図 2 6は一例であり、 動画像コンテンツ及びその検索情報は、 もっと複 雑な階層構造を持つことが多い。 このような動画像コンテンツの検索情報を扱う際、 各葉にあたる検索データの各々を随 時取り出して伝送する、 又は保存するといつた要求がある。 その場合、 取り出された各デ 一夕はそれ自体では個々の識別ができないため、 各デ一夕に識別のための情報が付加され る。 例えば、 図 26におけるデータ 260 1は、 それ自体では単なる 「1」 という数値に 過ぎず、 そのデータがシーン番号何番のショット番号何番に関するどういった種別の検索 情報を表したデータであるかといつた識別情報があって初めて、 検索データとして利用す ることができる。
動画像コンテンツの検索情報など、 マルチメディアコンテンツの内容記述の国際規格で ある MP EG— 7では、 この検索データ =葉に対する識別情'報を、 木構造の根からその葉 に至るまでに経由する木の経路の情報で与える。 MPEG— 7では、 この経路の倩報を 「 枝符号 (T 1- e e B r an c h C o d e )」 と呼んでいる。 例えば、 図 26のデ一夕 2 60 1は、
Zシーン # 0Zショット # 0/動き強度
と表すことで一意に特定される。 同様に、 データ 2602は
/シーン # 0/ショット # 1/動き強度
データ 2604は
Zシーン # 1Zショット # 0/動き強度
と表される。 これは節の場合でも同様であり、 各節に対する識別情報も、 木構造の根から その節に至るまでに経由する木の経路の情報で与えられる。
上述した識別情報の中で、 「シーン」、 「ショット」、 「動き強度」 といった情報は、検索情 報の要素種別を表す情報である。 一方、 「0」、 「1」 といった数で与えられている情報は、 同じ要素がある節から枝分かれした時の個々の要素を区別するために付けられた識別番号 で、 木構造中の葉や節の位置を決定することから 「位置情報」 と呼ばれる。 MP EG— 7 では、 これらの要素種別情報と位置情報とが個々に符号化されて、 検索デ一夕と共に扱わ れる。
上述したように、 データ 260 1〜2609のそれぞれの識別情報は、 同じ要素種別情 報を持ち、 位置情報のみが異なっている。 MPEG— 7では、 このような位置情報のみ異 なる識別情報が付された複数の検索データを、 まとめて伝送する又は保存するためのデ一 夕形式が規定されている。 そして、 MPEG— 7ではそのため、 複数の異なる位置情報を 差分符号化する、 以下の位置情報符号化/復号技術が規定されている。
¾ 2 7は、 従来技術による M P E G - 7に従った差分符号化による位置情報符号化装置 の概略構成を示す機能ブロック図である。 また、 図 2 8は、 従来技術による位置情報の符 号化装置で符号化される位置情報及び符号化された位置情報符号列の一例を示す図で、 図 2 6の各動き強度データ 2 6 0 1〜2 6 0 9の識別情報から位置情報を抜き出して示した ものと、 それらを符号化して得られる位置情報符号列との関係を示す図である。
図 2 6中の隣り合う 2つの検索データである葉 2 6 0 1と葉 2 6 0 2について、 木構造 の根 2 6 1 0からそれぞれの葉 2 6 0 1、 2 6 0 2に至るまでに経由する木の経路を比較 すると、 根 (動画像コンテンツ) から第 1階層の節 (シーン # 0 ) までが共通であり、 シ ーン # 0より下、 即ち第 2階層の節 (ショット # 0とショット # 1 ) 以降で枝が分かれて いることが判る。 この枝分かれした直後の階層を、 隣り合う 2つの葉に対する 「分岐階層 j と呼ぶ。 葉 2 6 0 1と葉 2 6 0 2に対する分岐階層は、 第 2階層、 即ちショットの階層 である。 同様に、 隣り合う 2つの葉 2 6 0 3と葉 2 6 0 4とでは、 2つの経路は根 (動画 像コンテンツ) のみが共通であり、 第 1階層の節 (シーン # 0とシーン # 1 ) で既に分岐 が起こっているため、 隣り合う 2つの葉 2 6 0 3と葉 2 6 0 4に対する分岐階層は第 1階 層、 即ちシーンの階層となる。
この分岐階層は、 図 2 8に示したような識別情報から抜き出された位置情報どうしの関 係で見た場合、 隣り合う 2つの位置情報における各階層の値を上位の階層から下位の階層 へと順に比較していった時、 最初に値が変化した階層に相当する。 従来技術における差分 符号化は、 この時の位置情報の値の変化が常に 1づつの増加であることを前提として、 位 置情報の値の変化を、 どの階層の値が増加したか、 という情報に置き換え、 その分岐階層 の情報を符号化してやることで元の位置情報を符号化するものである。 こうした差分符号 化では、 存在する分岐階層数分が符号化によって区別できればよいことから、 位置情報を そのまま符号化するのに比べて情報の圧縮がなされる。
先頭位置情報符号化部 2 7 0 2は、 先頭の位置情報を、 差分を用いない通常の方式で符 号化する。 図 2 8では、 1変数あたり 5ビットとし、 先頭の位置情報 (0 , 0 ) を 5ビッ ト X 2 = 1 0ビットの符号として与えた。 同時に、 この先頭の位置情報 (0, 0 ) は、 前 位置情報保持部 2 7 0 3に入力されて保持され、 次の位置情報 (0 , 1 ) の符号化に利用 される。 分岐階層判定部 2 7 0 4は、 入力されてくる次に符号化する位置情報と、 前位置情報保 持部 2 7 0 3に保持されている位置情報とを比較し、 それらを基に分岐階層の判定を行つ て、 その判定結果を差分位置情報符号化部 2 7 0 5に出力する。 図 2 8で、 次に符号化す る第 2の位置情報 (0, 1 ) と、 前位置情報保持部 2 7 0 3に保持されている位置情報 ( 0 , 0 ) とでは、 第 1階層、 即ちシーンの階層の値は同じであり、 第 2階層、 即ちショッ 卜の階層の位置情報の値が増加しているため、 第 2階層 =ショッ卜の階層で分岐している ことが判る。 この判定結果を差分位置情報符号化部 2 7 0 5に出力する。
差分位置情報符号化部 2 7 0 5は、 分岐階層判定部 2 7 0 4の判定結果に従って位置情 報符号を選択し出力する。 ここでの場合、 分岐階層判定部 2 7 0 4で (0 , 1 ) と (0 , 0 ) との分岐階層が第 2階層と判定されたため、 図 2 8に示されるように分岐階層が第 2 階層であることを表す符号(第 2階層を 1増加することを示す位置情報符号) " 1 0 "が与 えられている。 同様に、 第 3の位置情報 (0 , 2 ) にも第 2階層を表す符号 " 1 0 " が与 えられる。 次に第 4の位置情報 (1, 0 ) は、 第 3の位置情報 (0, 2 ) と比較すると、 第 1階層、 即ちシーンの階層の位置情報の値が増加しているため、 第 1階層 =シーンの階 層で分岐していることが判る。 このため、 分岐階層が第 1階層であることを表す符号 (第 1階層を 1増加することを示す位置情報符号) " 0 1 "を与える。 こうして最後まで符号化 して得られる位置情報符号列が、 図 2 8に示した位置情報符号列である。 符号列の最後に は、 続く位置情報が無い、 即ち符号の終了を示す終了符号 " 1 1 " が付加されている。 なお、 図 2 8で用いた分岐階層に対応する位置情報符号を図 2 9に示す。
図 3 0は、 従来技術の差分符号化による位置情報の復号装置の概略構成を示す機能プロ ック図である。
まず、 先頭位置情報復号部 3 0 0 1で、 先頭の位置情報を、 通常の復号方式で復号する 。 復号された位置情報は、 前位置情報保持部 3 0 0 2に入力して保持される。 次に、 分岐 階履判定部 3 0 0 3で位匱情報符号を読み込む。 そして、 読み込まれた符号に基づいて分 岐階層を判定し、 判定結果を差分位置情報復号部 3 0 0 4に送る。 そして、 差分位置情報 復号部 3 0 0 4で、 分岐階層判定部 3 0 0 3の判定結果から、 前位置情報保持部 3 0 0 2 に保持された位置情報の値を更新して、 更新した位置情報を出力すると共に、 前位置情報 保持部 3 Q 0 2で更新後の位置情報を保持する。 これを、 終了符号が読み込まれるまで繰 り返す。 前位置情報保持部 3002に先頭の位置情報 (0, 0) が復号され保持された状態で、 分岐階層判定部 3003は符号 "10" を読み込む。 符号 "10" は第 2階層で分岐した ことを示す符号であるため、 差分位置情報復号部 3004で (0, 0) の第 2階層の値を 1増加させ、 次の位置情報 (0, 1) が求められる。 同様に (0, 2) まで復号され、 前 位置情報保持部 3002に保持された状態で、 次に、 分岐階層判定部 3003には符号 " 01" が読み込まれる。 符号 "01" は第 1階層で分岐したことを示す符号であるため、 差分位置情報復号部 3004では前位置情報保持部 3002に保持された ( 0 , 2 ) の第 1階層の位置情報を 1増加させる。 また同時に、 第 1階層の値が変わったため、 それより 下の階層の位置情報は初期の値 0に設定する。 こうして次の位置情報 (1, 0) が得られ る。 この処理を最後まで行い、 終了符号 "11" が読み込まれた時点で復号を終了する。 ところで、 昨今、 上述した位置情報を有理数で表現することが行われつつある。 例えば 、 図 2に示すように、 位置情報を全て 0より大きく 1未満の有理数、 ここでは 「2のべき 乗分の自然数 (分母が 2のべき乗数、 分子が自然数)」 といった値で表す。 これは、 既に存 在する葉又は節の位置の間にさらに葉又は節を任意に追加する、 といった処理を可能とす るために導入されるものである。
例えば、 図 26において、 シーン # 0の下のショット # 0とショット # 1の間に別のシ ョットを追加することはそのままではできず、 追加するためにはショット # 1以降のショ ットの番号を付け直すなどの処理を加えなければならなかった。 一方、 図 2のように位置 情報を有理数表現とした場合では、 シーン # (1/4) の下のショット # (1ノ4) とシ ヨット # ( 1 Z 2 ) の間に新たにショットを追加したければ、 新たなショットの位置情報 を 3ノ 8とすることで、 既存のショットに手を加えずに新たなショットの追加ができる。 発明の開示
上述した MP E G— 7で規定されている複数の位置情報をまとめて差分符号化/復号す る位 g情報の符号化 Z復号技術は、 位置情報が整数で与えられ、 隣り合う位置情報の間隔 が一定量、 即ち 1であることを前提にしたものである。 この前提があるため、 どの階層で 分岐したかのみを符号化情報として符号化することができた。
一方、 上述した有理数表現による位置情報では、 隣り合う位置情報間の間隔が任意に変 わる。 例えば、 位置 1/4の次の位置情報は、 1ノ 2であることもあれば 3/8であるこ ともあり、 あるいは 5 Z 1 6であってもよい。 従って、 上述のごとき整数表現された位置 情報で成立した前提は、 有理数表現された位置情報には当てはまらず、 このため、 M P E G - 7で規定された複数位置情報の符号化/復号技術を有理数表現された位置情報に直接 適用することはできなかった。
本発明は、 上述のごとき実情に鑑みてなされたものであり、 有理数表現された、 複数の 葉及び/又は節の位置情報であっても、 差分符号化 Z復号することが可能な、 符号化装置 及び方法、 復号装置及び方法、 符号化プログラム、 復号プログラム、 並びにそれらプログ ラムを記録したコンピュータ読み取り可能な記録媒体を提供することをその目的とする。 本願の第 1の発明は、 木構造中の同一の階層にある複数の葉及び Z又は節に対応する複 数の位置情報を符号化する符号化装置であって、 符号化する複数の位置情報を所定の順序 関係に従つて並び替える並び替え手段と、 前記並び替え手段から出力された複数の位置情 報の、 連続する 2つの位匱情報から、 前記所定の順序関係に従って分岐階層を判定する判 定手段と、 前記分岐階層に対応する符号を出力する符号化手段とを備えたことを特徴とす る。 .
本願の第 2の発明は、 木構造中の同一の階層にある複数の葉及び 又は節に対応する複 数の位置情報を符号化する符号化装置であって、 符号化する複数の位置情報が所定の順序 関係に従って並んだものであり、 前記符号化する複数の位置情報の、 連続する 2つの位置 情報から、 前記所定の順序関係に従って分岐階層を判定する判定手段と、 前記分岐階層に 対応する符号を出力する符号化手段とを備えたことを特徴とする。
本願の第 3の発明は、 さらに、 前記第 1又は第 2の発明において、 前記複数の位置情報 力 有理数で表現された有理数位置情報であって、 前記所定の順序関係は、 有理数の解像 度の大小順に従って決めることを特徵とする。
本願の第 4の発明は、 木構造中の同一の階層にある複数の葉及び Z又は節に対応する複 数の位置情報を符号化する符号化装置であって、 符号化する複数の位置情報に基づいて位 置情報の値の増加幅を決める増加幅決定手段と、 前記増加幅を符号化して符号を出力する 増加幅符号化手段と、 前記符号化する複数の位置情報の連続する 2つの位置情報から、 分 岐階層を判定する判定手段と、 前記分岐階層に対応する符号を出力する分岐階層符号化手 段とを備えたことを特徴とする。
本願の第 5の発明は、 さらに、 前記第 4の発明において、 前記複数の位置情報が、 有理 数で表現された有理数位置情報であって、 前記増加幅は、 前記複数の位置情報が全て符号 化可能となるように、 前記分岐階層毎に決めることを特徴とする。
本願の第 6の発明は、 さらに、 前記第 1乃至第 5のいずれか 1の発明において、 前記木 構造が検索倩報を表すものであり、 前記符号化する複数の位置情報に対応する葉又は節が 、 前記検索情報に含まれる同種の要素に対応した葉又は節であることを特徵とする。 本願の第 7の発明は、 木構造中の同一の階層にある複数の葉及び Z又は節に対応する複 数の位置情報を符号化する符号化方法であつて、 符号化する複数の位置情報を所定の順序 関係に従つて並び替える並び替えステツプと、 前記並び替えステツプから出力された複数 の位置情報の、 連続する 2つの位置情報から、 前記所定の順序関係に従って分岐階層を判 定する判定ステップと、 前記分岐階層に対応する符号を出力する符号化ステツプとを備え たことを特徴とする。
本願の第 8の発明は、 木構造中の同一の階層にある複数の葉及び/又は節に対応する複 数の位置情報を符号化する符号化方法であって、 符号化する複数の位置情報が所定の順序 関係に従って並んだものであり、 前記符号化する複数の位置情報の、 連続する 2つの位置 情報から、 前記所定の順序関係に従つて分岐階層を判定する判定ステツプと、 前記分岐階 層に対応する符号を出力する符号化ステップとを備えたことを特徴とする。
本願の第 9の発明は、 さらに、 前記第 7又は第 8の発明において、 前記複数の位置情報 が、 有理数で表現された有理数位置情報であって、 前記所定の順序関係は、 有理数の解像 度の大小順に従って決めることを特徴とする。」
本願の第 1 0の発明は、 木構造中の同一の階層にある複数の葉及び/又は節に対応する 複数の位置情報を符号化する符号化方法であって、 符号化する複数の位置情報に基づいて 位置情報の値の増加幅を決める増加幅決定ステップと、 前記増加幅を符号化して符号を出 力する増加幅符号化ステツプと、 前記符号化する複数の位置情報の連続する 2つの位置情 報から、 分岐階層を判定する判定ステツプと、 前記分岐階層に対応する符号を出力する分 岐階層符号化ステツプと、 を有することを特徴とする。
本願の第 1 1の発明は、 さらに、 前記第 1 0の発明において、 前記複数の位置情報が、 有理数で表現された有理数位置情報であって、 前記増加幅は、 前記複数の位置情報が全て 符号化可能となるように、 前記分岐階層毎に決めることを特徴とする。
本願の第 1 2の発明は、 さらに、 前記第 7乃至第 1 1のいずれか 1の発明において、 前 記木構造が検索情報を表すものであり、 前記符号化する複数の位置情報に対応する葉又は 節が、 前記検索情報に含まれる同種の要素に対応した葉又は節であることを特徴とする。 本願の第 1 3の発明は、 木構造中の同一の階層にある複数の葉及び 又は節に対応する 複数の位置情報が符号化された位置情報符号列を復号する復号装置であって、 復号された 位置情報を逐次保持する保持手段と、 前記位置情報符号に基づいて、 連続する 2つの位置 情報の分岐階層を判定する判定手段と、 前記保持手段で保持された位置情報に対して、 前 記分岐階層に対応する位置情報の値を所定の順序関係に従って 1つ分増加させる復号手段 とを備えたことを特徴とする。
本願の第 1 4の発明は、 さらに、 複数の前記復号された位置情報を、 数値の大小順に従 つて並び替える並び替え手段を備えたことを特徴とする。
本願の第 1 5の発明は、 さらに、 前記第 1 4の発明において、 前記並び替え手段が、 前 記復号された位置情報の各々に振られる、 数値の大小順を表した連続番号を計算する計算 手段を含むことを特徴とする。
本願の第 1 6の発明は、 さらに、 前記第 1 3乃至第 1 5のいずれか 1の発明において、 前記複数の位置情報が、 有理数で表現された有理数位置情報であって、 前記所定の順序関 係は、 有理数の解像度の大小順に従って決められていることを特徴とする。
本願の第 1 7の発明は、 木構造中の同一の階層にある複数の葉及び/又は節に対応する 複数の位置情報が符号化された位置情報符号列を復号する復号装置であって、 位置情報の 値の増加幅を復号する増加幅復号手段と、 復号された位置情報を逐次保持する保持手段と 、 前記位置情報符号に基づいて、 連続する 2つの位置情報の分岐階層を判定する判定手段 と、 前記保持手段で保持された位置情報に対して、 前記分岐階層に対応する位置情報の値 を前記増加幅分増加させる位置情報復号手段とを備えたことを特徴とする。
本願の第 1 8の発明は、 さらに、 前記第 1 3乃至第 1 7のいずれか 1の発明において、 前記木構造が検索情報を表すものであり、 前記復号される位置情報に対応する葉又は節が 、 前記検索情報に含まれる同種の要素に対応した葉又は節であることを特徴とする。 本願の第 1 9の発明は、 木構造中の同一の階層にある複数の葉及び/又は節に対応する 複数の位置情報が符号化された位置情報符号列を復号する復号方法であつて、 復号された 位置情報を逐次保持する保持ステップと、 前記位置情報符号に基づいて、 連続する 2つの 位置情報の分岐階層を判定する判定ステツプと、 前記保持ステツプで保持された位置情報 に対して、 前記分岐階層に対応する位置情報の値を所定の順序関係に従って 1つ分増加さ せる復号ステップとを備えたことを特徴とする。 .
本願の第 2 0の発明は、 さらに、 前記第 1 9の発明において、 複数の前記復号された位 置情報を、 数値の大小順に従って並び替える並び替えステップを備えたことを特徴とする 本願の第 2 1の発明は、 さらに、 前記第 2 0の発明において、 前記並び替えステップが 、 前記復号された位置情報の各々に振られる、 数値の大小順を表した連続番号を計算する 計算ステップを含むことを特徴とする。
本願の第 2 2の発明は、 さらに、 前記第 1 9乃至第 2 1のいずれか 1の発明において、 前記複数の位置情報が、 有理数で表現された有理数位置情報であって、 前記所定の順序関 係は、 有理数の解像度の大小順に従って決められていることを特徴とする。
本願の第 2 3の発明は、 木構造中の同一の階層にある複数の葉及び 又は節に対応する 複数の位置情報が符号化された位置情報符号列を復号する復号方法であつて、 位置情報の 値の増加幅を復号する増加幅復号ステツプと、 復号された位置情報を逐次保持する保持ス テツプと、 前記位置情報符号に基づいて、 連続する 2つの位置情報の分岐階層を判定する 判定ステップと、 前記保持ステップで保持された位置情報に対して、 前記分岐階層に対応 する位置情報の値を前記増加幅分増加させる位置情報復号ステツプとを備えたことを特徴 とする。
本願の第 2 4の発明は、 さらに、 前記第 1 9乃至第 2 3のいずれか 1の発明において、 前記木構造が検索情報を表すものであり、 前記復号される位置情報に対応する葉又は節が 、 前記検索情報に含まれる同種の要素に対応した葉又は節であることを特徴とする。 本願の第 2 5の発明は、 前記第 1乃至第 6のいずれか 1の発明における符号化装置とし て、 コンピュータを機能させるためのプログラムである。
本願の第 2 6の発明は、 前記第 7乃至第 1 2のいずれか 1の発明における符号化方法を コンピュータに実行させるためのプログラムである。
本願の第 2 7の発明は、 前記第 1 3乃至第 1 8のいずれか 1の発明における復号装置と して、 コンピュータを機能させるためのプログラムである。
本願の第 2 8の発明は、 前記第 1 9乃至第 2 4のいずれか 1の発明における復号方法を コンピュータに実行させるためのプログラムである。 本願の第 2 9の発明は、 前記第 2 5乃至第 2 8のいずれか 1の発明における' を記録したコンビュ一夕読み取り可能な記録媒体である。
本発明によれば、 数値の大小順で見た場合にはその順序関係が一意に特定できない有理 数表現された複数の位置情報について、 予め決められる値どうしの新たな順序関係を設け 、 複数の位置情報をその順序関係に従って並べ替えることによって、 整数表現による位置 情報の場合と同様に差分符号化による複数位置情報の符号化/復号が可能である。 また、 並べ替え後において、 符号化/復号する複数の位置情報が新たな順序関係に対して連番に なっていない場合でも、 欠落位置を表す情報を使って通知することにより、 同様に差分符 号化による複数位置情報の符号化 Z復号が可能である。
また、 本発明によれば、 数値の大小順で見た場合にはその順序関係が一意に特定できな い有理数表現された複数の位置情報について、 数値の大小順に見た時の値の増加幅を決め 、 符号化して位置情報の符号と共に与えることで、 整数表現による位置情報の場合と同様 に差分符号化による複数位置情報の符号化 復号が可能である。 また、 与えられた値の增 加幅を用いて値を増加させた時に、 本来無かった欠落位置が発生した場合でも、 欠落位置 を表す情報を使って通知することにより、 同様に差分符号化による複数位置情報の符号化 /復号が可能である。 図面の簡単な説明
図 1は、 本発明の第 1の実施形態にかかる位置情報の符号化装置の概略構成を示す機能 ブロック図である。
図 2は、 位置情報が有理数表現で与えられた木構造を有する検索情報の一例を示す図で ある。
図 3は、 本発明の第 1の実施形態において、 図 2に示した検索情報の各デ一夕に対応す る識別情報、 該識別情報から抽出された位置情報、 及び該位置情報を並べ替えた並べ替え 後の位置情報を示す図である。
図 4 Aは、 本発明の第 1の実施形態において、 有理数表現された位置情報の値の順序関 係を示す図である。
図 4 Bは、 本発明の第 1の実施形態において、 図 4 Aの順序関係の決定方法を示す図で ある。 図 5は、 本発明の第 1の実施形態にかかる位置情報の符号化装置の一構成例で符号化さ れる位置情報及び符号化された位置情報符号列の一例を示す図である。
図 6は、 本発明の第 1の実施形態にかかる位置情報の符号化装置の一構成例で用いた位 置情報符号を示す図であり、 図 5で用いた位置情報符号を示す図でもある。
図 7は、 位置情報が有理数表現で与えられた木構造を有する検索情報の別の例を示す図 である。
図 8は、 本発明の第 1の実施形態において、 図 7に示した検索情報の各データに対応す る識別情報、 該識別情報から抽出された位置情報、 及び該位置情報を並べ替えた並べ替え 後の位置情報を示す図である。
図 9は、 本発明の第 1の実施形態にかかる位置情報の符号化装置の一構成例で符号化さ れる位置情報及び符号化された位置情報符号列の別の例を示す図である。
図 1 0は、 本発明の第 1の実施形態にかかる位置情報の符号化方法を説明するためのフ ロー図である。
図 1 1は、 本発明の第 1の実施形態にかかる位置情報復号装置の概略構成を示す機能ブ ロック図である。
図 1 2は、 本発明の第 1の実施形態にかかる位置情報復号装置で、 復号時の位置情報の 並べ替え処理の一動作例を示した説明図である。
図 1 3は、 本発明の第 1の実施形態にかかる位置情報復号装置で、 復号時の位置情報の 並べ替え処理の機能構成を示した機能ブロック図である。
図 1 4は、 本発明の第 1の実施形態にかかる位置情報復号装置で、 復号時の位置情報の 並べ替え処理で扱う積算順情報の例を示した図である。
図 1 5は、 本発明の第 1の実施形態にかかる位置情報復号装置で、 復号時の位置情報の 並べ替え処理で扱う積算順情報の別の例を示した図である。
図 1 6は、 本発明の第 1の実施形態にかかる位置情報の復号方法を説明するためのフロ 一図である。
図 1 7は、 本発明の第 2の実施形態にかかる位置情報の符号化装置の概略構成を示す機 能ブロック図である。
図 1 8は、 本発明の第 2の実施形態にかかる位置情報の符号化装置の一構成例で符号化 される位置情報及び符号化された位置情報符号列の一例を示す図である。 図 1 9は、 位置情報が有理数表現で与えられた木構造を有する検索情報の更に別の例を 示す図である。
図 2 0は、 本発明の第 2の実施形態にかかる位置情報の符号化装置の一構成例で符号化 される位置情報及び符号化された位置情報符号列の別の例を示す図である。
図 2 1は、 本発明の第 2の実施形態にかかる位置情報の符号化装置の一構成例で符号化 される位置情報及び符号化された位置情報符号列の更に別の例を示す図である。
図 2 2は、 本発明の第 2の実施形態にかかる位置情報の符号化方法を説明するためのフ ロー図である。
図 2 3は、 本発明の第 2の実施形態にかかる位置情報復号装置の概略構成を示す機能ブ ロック図である。
図 2 4は、 本発明の第 2の実施形態にかかる位置情報の復号方法を説明するためのフロ 一図である。
図 2 5は、 一般的な情報処理装置の構成例を示す図で、 本発明にかかる装置を説明する ための図である。
図 2 6は、 従来技術による動画像コンテンツに対応して与えられた木構造を有する検索 情報の一例を示す図である。
図 2 7は、 従来技術による M P E G— 7に従った位置情報の符号化装置の概略構成を示 す機能ブロック図である。
図 2 8は、 従来技術による位置情報の符号化装置で符号化される位置情報及び符号化さ れた位笸情報符号列の一例を示す図である。
図 2 9は、 図 2 8で用いた位置情報符号を示す図である。 '
図 3 0は、 従来技術による位置情報の復号装置の概略構成を示す機能プロック図である
発明を実施するための最良の形態
(第 1の実施形態)
以下、 本発明の第 1の実施形態にかかる位置情報の符号化装置について、 図 1乃至図 9 を用いて説明する。
図 1は、 本発明の第 1の実施形態にかかる位置情報符号化装置の概略構成を示す機能ブ ロック図である。
本発明の第 1の実施形態にかかる位置情報符号化装置は、 位置情報並替部 1 0 1、 先頭 位置倩報符号化部 1 0 2、 前位置情報保持部 1 0 3、 分岐階層判定部 1 0 4、 並びに差分 位置情報符号化部 1 0 5で構成される。 上述のごとく M P E G— 7では、 要素種別情報と 位置情報とが個々に符号化されて、 検索データと共に扱われるが、 本発明は、 このうち位 置情報の符号化に関するものである。 勿論、 本発明にかかる符号化は、 M P E G— 7に限 定されるものではない。 なお、 本発明としては、 ここで説明する位置情報符号化を含む符 号化を行う符号化装置としての形態も採り得る。
図 2は、 位置情報が有理数表現で与えられた木構造を有する検索情報の一例を示す図で ある。
本実施形態では、 図 2に示されたように、 有理数表現されている木構造中の位置情報を 符号化並びに復号する。 なお、 整数表現されている木構造中の位置情報に対しても、 本発 明にかかる符号化/復号装置及び方法が適用可能なことは言及するまでもない。 図 2は動 画像コンテンツに対応する検索情報を表しており、 動画像コンテンツ 2 1 0が 3つのシー ンで構成され、 各シーンが 3つのショットで構成されて、 かつ、 それぞれのショットには 動き強度を示す検索データが付加されているとしたものである。
図 3は、 本発明の第 1の実施形態において、 図 2に示した検索情報の各データに対応す る識別情報、 該識別情報から抽出された位置情報、 及び該位置情報を並べ替えた並べ替え 後の位置情報を示す図である。 図 3では、 図 2の検索情報に含まれる各検索データ 2 0 1 〜2 0 9に対応する識別情報 3 0 1と、 それらの識別情報から抜き出した位置情報 3 0 2 とを示している。
本発明の符号化並びに復号が適用される位置情報は、 図 3に示されるように、 同じ要素 種別情報を持ち、 位置情報のみが異なっている複数の識別情報の、 それらに含まれる位置 情報である。 図 2は動画像コンテンツの検索情報の一例であるが、 実際の動画像コンテン ッは、 1つのシーンが複数のシーンへ、 またそれら各々のシーンがさらに別の複数のシー ンへと再帰的に分解されるなど、 複雑な階層構造を持ち、 それに伴って検索情報も複雑な 階層構造を持つことが多い。 またショットだけでなく、 各シーンに対して、 又は動画像コ ンテンッ全体に対して検索データが付されることもある。 しかし、 そのように複雑な階層 構造を持った検索情報であっても、 本発明の位置情報符号化並びに復号は同様に適用可能 である。 加えて、 図 3の例は、 検索デ一タ=葉に対応する位置情報を抜き出したものであ るが、 これは節の場合でも全く同様である。 即ち、 検索情報に含まれる複数の検索データ- =葉、 又は複数の節に対応して得られる複数の識別情報が、 同じ要素種別情報からなり、 位置情報のみが異なっているものであれば、 本発明の位置情報符号化並びに復号を適用す ることができる。 また、 動画像コンテンツ以外の、 音響コンテンツやテキストといった他 のマルチメディアコンテンツに対する検索情報や、 あるいは検索情報以外の情報であって も、 木構造を持つ情報であれば原理的に適用可能である。
図 1に示した本実施形態にかかる位置情報符号化装置の機能構成のうち、 本発明の最も 特徴となる機能構成は、 符号化を行う前段に設けた位置情報並替部 1 0 1である。 以下、 位置情報並替部 1 0 1の処理について説明する。
符号化しょうとする各位置情報が有理数表現になることによって、 従来例に示した差分 符号化による位置情報符号化ができなくなる理由は、 位置情報が有理数になることによつ て、 ある 1つの位置情報の値から見た時に、 それに続く次の位置情報の値が一意に決定で きなくなることにある。 整数表現であれば、 0の次は 1、 1の次は 2、 と次の位置情報の 値が一意に決まる。 一方、 有理数表現では、 例えば、 位置情報 1/4の次に来る位置情報 は 1/2であることもあれば 3Z8である場合もあり、 あるいは 5/1 6であるかもしれ ない。
図 4 A及び図 4 Bは、 本発明の第 1の実施形態において、 有理数表現された位置情報の 値の順序関係、 及びその決定方法を示す図である。
本発明では、 この問題を解決するために、 有理数で表された位置情報の値に対して、 予 め決められる順序関係を設ける。 この例では、 「2のべき乗分の自然数(分母が 2のべき乗 数、 分子が自然数)」 で表される有理数の位置情報を扱い、 その位置情報の値の順序関係を 、 「1/2→1./4→3Z4→1Z8→3/8→5Z8→7Z8→1/1 6— · ·.」 (図 4 Aを参照) のように定義した。
この順序付けは、 図 4 Bに示すように、 0を超え 1未満の 「2のべき乗分の自然数」 に ついて、 解像度が低いものから解像度が高いものへと先に順序付けを行い ( i:)、 さらに同 一の解像度内では値の大小に従い小さい値から大きい値へと順序付けを行った ( i i) も のである。 ここで言う有理数、 「2のべき乗分の自然数」 に対する解像度とは、 その値域 0
〜1を半分、 更にその半分、 と順に分割して有理数を求めていった時の分割数に当り、 少 ない分割数で現れる値ほど解像度が低く、 逆に分割を多く繰り返すことで現れる値が解像 度の高い有理数ということになる。 もっと端的に言えば、 分母になる 2のべき乗数の値の 大きさが解像度と対応している。 このように定義することで、 初期値 1ノ2から始まり解 像度が高い有理数値へと一意に順序付けが行われ、 数値的な大小関係だけでは未定とされ ていた個々の有理数値に対して、 次に続くべき値が明確に規定されることとなる。
位置情報並替部 1 0 1は、 こうして規定された新たな順序関係、 図 4 Aに従って、 それ ぞれの位置情報を並べ替える。 この順序関係、 図 4 Aに従って、 図 3の位置情報 3 0 2に ついて並べ替えを行ったのが、 同じく図 3に示した並べ替え後の位置情報 3 0 3である。 並べ替えは、 それぞれの階層に付された位置情報の値に基づき、 上位の階層から、 その階 層の値について図 4 Aの順に従つて並ぶように位置情報を並べ替え、 その階層での位置情 報の値が同一であるものについては、 階層を 1つ下ってまた図 4 Aの順に従って並べ替え る、 という操作を再帰的に繰り返すことでなされる。 あるいは、 階層毎に位置情報の値を 比較するのでなく、 葉又は節におけるすべての階層の位置情報の値をまとめて扱うことに よって位置情報の並べ替えを行ってもよい。 例えば、 ある葉又は節の位置情報と、 別の葉 又は節の位置情報との大小関係を定義し、 その大小関係に従って、 葉又は節の位置情報に 対して、 クイックソート等の既存のソートアルゴリズムを適用することによって位置情報 の並べ替えを行うことができる。 無論、 同様の並べ替えが実行できる並べ替え方法であれ ばよく、 並べ替えの方法はここに示したものに限定されるものではない。
また、 本実施形態では、 位置情報が全て抜き出されて数値の大小順に従って並べられた 状態をつくり、 その後でそれらの位置情報を並べ替えるとしているが、 位置情報並替部 1 0 1が行う並べ替え処理は、 必ずしもそのような段階を踏んだ処理である必要はない。 例 えば、 位笸情報を抜き出してくる段階で、 あるいはそれ以前に、 まとめて扱うべき検索デ 一夕を選択し抜き出してくる段階において、 図 4 Aに従つた順序で逐次それらを抜き出し てくるといった処理も可能である。 このような処理も広く位置情報並替部 1 0 1で行う並 ベ替え処理の一種であると考えてよい。
位置情報並替部 1 0 1で位置情報を並べ替えた以降は、 従来の整数表現された位置情報 の符号化と同様の処理で、 差分符号化を実行する。 先頭位置情報符号化部 1 0 2は、 並べ 替え後の位置情報における先頭の位置情報を、 差分を用いない通常の方式で符号化する。 この先頭の位置情報はまた、 前位置情報保持部 1 0 3に記録され、 次の位置情報の符号化 で利用される。
図 5は、 本発明の第 1の実施形態にかかる位置情報の符号化装置の一構成例で符号化さ れる位置情報及び符号化された位置情報符号列の一例を示す図である。
図 5に示す、 図 3に示したのと同一の並べ替え後の位置情報と、 それらを符号化して得 られる位置情報符号化列とに基づいて、 動作を説明する。
. 始めに、 並べ替えられた後の先頭の位置情報 (1ノ2, 1/2) については、 差分符号 化を行うために必要な前位置の情報が無いため、 通常の方式で符号化する。 図 5では、 1 変数あたり 5ビットとし、 5ビット X 2 =10ビットで符号化して与えている。 本発明で は、 この先頭の位置情報に関する符号化方式については特に言及しない。
前位置情報保持部 103は、 1つ前に処理された位置情報を記録し、 次の位置情報の符 号化を行う際に出力して提供する。 図 5で、 (1 2, 1/2) の次に符号化される位置情 報は (1/2, 1/4) である。 即ち、 (1/2, 1/4) を符号化する際には、 前位置情 報保持部 103には位置情報 (1/2, 1/2) が記録され保持されている。
分岐階層判定部 104は、 入力されてきた位置情報と、 前位置情報保持部 103に保持 されている位置情報とを比較し、 両者がどの階層で分岐したかを判定して、 その判定結果 を差分位置情報符号化部 105へ出力する。 そして、 差分位置情報符号化部 105は、 分 岐階層判定部 104から出力された判定結果に基づいて、 分岐階層に対応した位置情報符 号を出力する。
分岐階層とは、 木構造で見た場合に、 入力されてきた位置情報及び前位置情報保持部 1 03に保存されている位置情報の 2つの位置情報について、 対応する検索情報の木を根か ら葉に向けてそれぞれ迪つたときに、 枝分かれして初めて異なる節又は葉に分かれる、 そ の節又は葉の階層を指す。 もっと端的に言えば、 図 5のように、 位置情報の値を上位の階 層から下位の階層へと順に見ていき、 位置情報の値が最初に変化する階層を指す。
例えば、 入力されてきた位置情報が (1/2, 1/4) で前位笸情報保持部 103に記 録されているのが (1/2, 1/2) の場合、 それらは第 1階層については値が等しく、 第 2階層で初めて値が異なっている。 このことから、 それらは第 2階層、 即ちショットの 階層で分岐が発生しており、 それより上の階層、 即ちシーンの階層は同一であることがわ かる。 従ってこの場合には、 分岐階層判定部 104は、 第 2階層を示す情報を判定結果と して出力する。 ここで、 さらに正確には、 分岐した階層の位置情報、 ここではショットの階層の位置情 報が 1/2から 1/4に、 図 4 Aの順序関係からみて正しく 1つ分だけ更新されているこ とを確かめる必要がある。 この結果、 更新が正しくなかった場合については、 後述する図 7乃至図 9と共に示す別の例の中で説明する。
また、 入力されてきた位置情報が ( 1 / 4, 1ノ 2 ) で、 前位置情報保持部 1 03には 位置情報 (1/2, 3/4) が記録されている場合には、 それら 2つの位置情報は第 1階 層で既に値が異なっている。 このことから、 それらは第 1階層、 すなわちシーンの階層で 分岐が発生していることがわかるので、 第 1階層を示す情報を判定結果として出力する。 ここで、 さらに正確には、 分岐した階層の位置情報、 ここではシーンの階層の位置情報 が 1/2から 1ノ 4に、 図 4 Aの順序関係からみて正しく 1つ分だけ更新されていること を確かめる必要がある。 またこの場合では、 シーンの階層で分岐が起こっているため、 そ れより下位の階層、 すなわちショットの階層の位置情報が、 初期値 1ノ 2になっているか を確かめる必要がある。 このことは、 上位の階層で分岐が起こったため、 つまり違う節に 移ったために、 その違う節を起点とする下位の階層には本来、 初期値から始まる新たな位 置情報が節又は葉に付されるべきであることが前提となっている。 この、 ショットの階層 の位置情報が初期値 1 / 2以外の値であった場合の処理についても、 後述する図 7乃至図 9と共に示す別の例の中で説明する。
差分位置情報符号化部 1 0 5は、 分岐階層判定部 104から出力される判定結果に基づ いて、 分岐階層に対応する位置情報符号を出力する。 図 5で、 符号化する位置情報が (1
/2, 1/4) で前位置情報が (1/2, 1/2) の場合、 分岐階層判定部 1 04の判定 結果を受けて、 差分位置情報符号化部 1 05は、 分岐階層が第 2階層であることを示す位 置情報符号 "1 0" を出力する。 この位置情報符号 "1 0" は、 復号の際に、 第 2階層が 分岐階層であることから、 第 2階層の位置情報の値を図 4 Aの順序関係に従つて 1つ分増 加させることを意味する符号である。 あるいは、 符号化する位置情報が (1Z4, 1/2
) で前位置情報が (1.Z2, 3/4) の場合には、 分岐階層判定部 1 04の判定結果を受 けて、 差分位置情報符号化部 1 0 5は、 分岐階層が第 1階層であることを示す位置情報符 号 " 0 1" を出力する。 この位置情報符号 "0 1" は、 復号の際に、 第 1階層が分岐階層 であることから、 第 1階層の位置情報の値を図 4 Aの順序関係に従つて 1つ分増加させる と共に、 第 1階層より下の階層、 本例では第 2階層、 の位置情報の値を図 4 Aの順序関係 における初期値 1 Z 2とすることを意味する符号である。
図 6は、 本発明の第 1の実施形態にかかる位置情報の符号化装置の一構成例で用いた位 置情報符号を示す図であり、 図 5で用いた位置情報符号を示す図でもある。
図 6に例示する位置情報符号は、 符号化された位置情報とその前に処理された位置情報 との各々に対応した木がどの階層で分岐したかを表す符号であり、 その符号のビット長は 、 木構造中の分岐可能な階層の数によって決められる。 検索データに付される識別情報と して見た場合には、 識別情報に含まれる位置情報の数、 即ち位置情報を取り得る検索情報 の要素の数が分岐可能な階層数にあたる。
検索データの識別情報に含まれた位置情報の符号化では、 位置情報の符号化と共に、 要 素種別情報も符号化されて、 符号化された位置情報と共に蓄積又は伝送されるのが普通で ある。 そのため、 この要素種別情報を参照することで、 符号化側、 復号側共に分岐可能な 階層数を知ることができ、 特に符号のビット長を通知しなくても符号化側、 復号側共に符 号のビット長を知ることができる。 一方、 分岐可能な階層数を示す上記要素種別情報のよ うな情報が付随しない位置情報を符号化する場合には、 符号のビット長を示す情報を生成 して符号化された位置情報と共に蓄積又は伝送するとしてもよい。 なお、 上述の符号のビ ット長の決定は、 図 1に示した符号化装置における符号化処理とは別途行うため、 図示し 図 3の識別情報 3 0 1の場合、 分岐可能な階層数 (位置情報を持った要素数) は 2であ り、 符号のビット長は、 く階層数 > 2 + <欠落符号 > 1 + <終了符号 > 1 = を表現可能 な最小ビット長、 即ち 2ビッ卜の符号として与えられる。
欠落符号 " 0 0 " は、 位置情報に欠落があることを示す特殊符号である。 検索デ一夕に 対応する識別情報中の位置情報として見た場合、 実際に欠落符号によって示されるのは、 欠落符号の後に続く位置情報符号で更新させた位置に、 対応する検索データが無いという ことである。 このことは、 後述の図 7乃至図 9と共に示す例の中で詳しく説明する。 符号化する最後の位置情報、 すなわち図 5では位置情報 (3 4 , 3 / 4 ) を符号化し て出力した後は、 位置情報がこれ以上無いことを示す終了符号 " 1 1 " を出力し、 符号化 を終了する。
この例では、 木に含まれるデータ 2 0 1〜2 0 9の全ての位置情報について符号化した カ^ 必ずしも木に含まれる全ての位置情報を符号化するとは限らない。 木構造の任意の一 部を切り出して符号化することも可能である。 木構造における時間的に後の位置情報だけ を切り出して符号化する場合、 例えば図 2で第 1のシーンに含まれる位置情報を除いて第 2、 第 3のシーンのみで符号化したい場合には、 先頭の位置情報を第 2のシーンの先頭に 変えればよい。 木構造における時間的に前の位置情報だけを符号化する場合、 例えば図 2 で第 3のシーンに含まれる位置情報を除いて第 1、 第 2のシーンのみで符号化する場合に は、 第 1、 第 2のシーンに含まれる位置情報を符号化した時点で終了符号を加え、 符号化 を終了すればよい。 木構造の時間的に真中の一部を切り出す場合には、 それらを組合せれ ばよい。 これら変更される符号化の先頭位置や終了符号により強制終了される符号化の終 了位置は、 木構造中の任意の位置とすることが可能である。 . 次に、 欠落がある場合の木構造の位置情報符号化について、 図 7乃至図 9を例として説 明する。
図 7は、 位置情報が有理数表現で与えられた木構造を有する検索情報の別の例を示す図 、 図 8は、 本発明の第 1の実施形態において、 図 7に示した検索情報の各データに対応す る識別情報、 該識別情報から抽出された位置情報、 及び該位置情報を並べ替えた並べ替え 後の位置情報を示す図である。 また、 図 9は、 本発明の第 1の実施形態にかかる位置情報 の符号化装置の一構成例で符号化される位置情報及び符号化された位置情報符号列の別の 例を示す図である。
ここでは、 図 7の動画像コンテンツ 7 1 0に対応する検索情報に含まれるデータ 7 0 1 〜7 0 7の位置情報について符号化する。 図 7の検索情報は、 位置情報 (1/2, 1/4 ) 及び (3ノ4, 1 / 2) に対応するショットに動き強度を表す検索データが付されてい ない、 即ち欠落のある検索情報の例である。 図 3に示した例と同様に、 図 8には、 デ一タ
7 0 1〜7 0 7に対応する識別情報 8 0 1と、 それらの識別情報から抜き出した位置情報
8 0 2、 及びそれらの位置情報を図 4 Aの順序関係に従って並べ替えた後の位置情報 8 0 3とを示している。 さらに図 9には、 図 8と同一の並べ替え後の位置情報と、 生成される 位置情報符号列とを示している。
図 9で、 位置情報 (1/2, 3/4) を符号化する際の動作を説明する。
( 1/2, 3/4) が分岐階層判定部 1 04に入力されてきた時点では、 前位置情報保 持部 1 0 3にはその前段で処理された位置情報 (1/2, 1/2) が保持されている。 そ して、 この前位置情報に基づいて、 分岐階層を判定する。 (1 /2, 1/2) と (1Z2, 3/4) とでは、 第 1階層の値が同一であり、 第 2階 層で値が異なるため、 第 2階層で分岐が起こっていることが判る。 但しここで、 第 2階層 の位置情報の値が図 4 Aに従って 1つ分だけ更新されているかを判定すると、 1 /2の次 に来る値は図 4 Aの順序関係では 1 4であるのに対し、 入力された位置情報は 3 Z 4で あるために、 位置の抜け、 即ち欠落があることが判る。 そこで、 分岐階層判定部 104は 、 分岐階層が第 2階層であることを示す情報と共に、 欠落があることを示す情報を差分位 置情報符号化部 105に対し出力する。 同時に、 分岐階層判定部 104では、 欠落が無い と仮定した時の (1/2, 1 /2) の次の位置情報 (1/2, 1/4) を生成して、 前位 置情報保持部 103に送り記録する。 この状態から、 再度位置情報 (1/2, 3/4) の 符号化を行う。
差分位置情報符号化部 105では、 分岐階層判定部 104から受け取った判定結果、 即 ち、 欠落があること、 分岐階層が第 2階層であることを受けて、 対応する欠落符号 "00 " 及び位置情報符号 "10" を出力する。
再度 (1/2, 3/4) が符号化される時点で前位置情報保持部 103に記録されてい るのは、 分岐階層判定部 104で生成された (1Z2, 1/4) である。 (1Z2, 1Z4 ) と (1/2, 3/4) とでは、 第 1階層の値が同一であり、 第 2階層で値が異なるため 、 第 2階層で分岐が起こっていることが判る。 さらに、 第 2階層の位置情報の値は 1/4 から 3 4へとなっているため、 図 4Aに従って正しく 1つ分だけ更新されていることが 判る。 このため、 分岐階層判定部 104からは分岐階層が第 2階層であることを示す情報 のみが差分位置情報符号化部 105に送られる。 差分位置情報符号化部 105では、 分岐 階層判定部 104からの判定結果に基づき、 第 2階層を示す位置情報符号 "10" が出力 される。
また、 図 9で, 位置情報 (3Z4, 1/4) を符号化する際の動作を説明する。
( 3ノ 4, 1/4) が分岐階層判定部 104に入力されてきた時点では、 前位置情報保 持部 103にはその前段で処理された位置情報 (1/4, 3/4) が保持されている。
(1/4, 3/4) と (3Z4, 1/4) とでは、 第 1階層で既に値が異なるため、 第
1階層で分岐が起こっていることが判る。 ここで、 第 1階層の位置情報は、 1/4から 3
Z4へと、 図 4 Aに従って正しく 1つ分だけ更新されていることが判る。 次にここで、 第
2階層の位置情報の値が図 4 Aに従い初期値 1 / 2になっているかを判定すると、 入力さ れた位置情報は 1/4であるために、 位置の抜け、 即ち欠落があることが判る。 そこで、 分岐階層判定部 104は、 分岐階層が第 1階層であることを示す情報と共に、 欠落がある ことを示す情報を差分位置情報符号化部 105に対し出力する。 同時に、 分岐階層判定部 104では、 欠落が無いと仮定した時の位置情報 (3 4, 1/2) を生成して、 前位置 情報保持部 103に送り記録する。 この状態から、 再度位置情報 (3/4, 1Z4) の符 号化を行う。
差分位置情報符号化部 105では、 分岐階層判定部 104から受け取った判定結果、 即 ち、 欠落があること、 分岐階層が第 1階層であることを受けて、 対応する欠落符号 "00 " 及び位置情報符号 "01" を出力する。
再度 (3/4, 1/4) が符号化される時点で前位置情報保持部 103に記録されてい るのは、 分岐階層判定部 104で生成された (3Z4, 1/2) である。 (3/4, 1/2 ) と (3 4, 1/4) とでは、 第 1階層の値が同一であり、 第 2階層で値が異なるため 、 第 2階層で分岐が起こっていることが判る。 さらに、 第 2階層の位置情報の値は、 1/ 2から 1/4へ、 図 4 Aに従って正しく 1つ分だけ更新されていることが判る。 このため 、 分岐階層判定部 104からは分岐階層が第 2階層であることを示す情報が差分位置情報 符号化部 105に送られる。 差分位置情報符号化部 105では、 分岐階層判定部 104か らの判定結果に基づき、 第 2階層を示す位置情報符号 "10" が出力される。
このようにして、 欠落がある木構造の位置情報であっても差分符号化することができる 。 さらに、 この欠落符号を能動的に使うことで、 木構造を有する検索情報に含まれている 同種の検索データを任意に取捨選択した上でグループ化することや、 一部をトリミングし た上で伝送する、 記録するといった操作が可能である。
図 10は、 本発明の第 1の実施形態にかかる位置情報の符号化方法を説明するためのフ ロー図である。
本発明の第 1の実施形態にかかる位置情報符号化方法は、 位置情報並替ステップ (ステ ップ S l)、 先頭位置情報符号化ステップ (ステップ S 2)、 前位置情報保持ステップ (ス テツプ S 3)、 分岐階層判定ステップ (ステップ S 6)、 並びに差分位置情報符号化ステツ プ (ステップ S 8) を含んでなる。 本発明の第 1の実施形態にかかる符号化方法も、 位置 情報の符号化に関するものであり、 本発明としては、 ここで説明する位置情報符号化を含 む符号化を行う符号化方法としての形態も採り得る。 始めに、 符号化する複数の位置情報を、 図 4 Aに示した順序関係に従って並べ替える ( ステップ S 1 )。 次に、 並べ替えた後の先頭の位置情報を通常の方式で符号化する (ステツ プ S 2 )。 それと同時に、 先頭の位置情報は、 次の位置情報を符号化するための前位置情報 として保持される (ステップ S 3 )。
符号化すべき次の位置情報があるか否かを判定する (ステップ S 4 )。 ある場合には、 そ の符号化すべき位置情報を読み込む(ステップ S 5 )。読み込まれた符号化すべき位置情報 と、 保持されている前位置情報とを比較し、 分岐階層を判定する (ステップ S 6 )。 この時 、 この 2つの位置情報の間に欠落があるか否かを判定する (ステップ S 7 )。 欠落の判定方 法については、 既に符号化装置で説明したように、 位置情報が図 4 Aの順序関係に従って いるか否かにより判定される。
欠落が無ければ、 分岐階層に対応する位置情報符号を出力し (ステップ S 8 )、 符号化が 済んだ位置情報を再び前位置情報として保持し (ステップ S 3 )、 同様の処理を続ける。 欠落がある場合には、 まず欠落符号を出力した (ステップ S 9 ) 後に、 分岐階層に対応 する位置情報符号を出力する (ステップ S 8 )。 次に、 前位置情報として保持された位置情 報から、 欠落が無いと仮定した場合に得られる次の位置情報を生成し、 その欠落位置情報 を前位置情報として保持する (ステップ S 1 0 )。 その後、 再び、 前位置情報と既に読み込 まれている符号化すべき位置情報とで分岐階層を判定する (ステップ S 6 )。 即ち、 処理さ れる符号化すべき位置情報は、 欠落があると判定された場合には再び同じ位置情報を符号 化することになる。 以降、 同様に欠落の有無が判定され、 欠落があれば欠落符号の出力 ( ステップ S 9 ) 以降の処理を、 欠落が無いと判定された場合には位置情報符号を出力した
(ステップ S 8 ) 後、 この符号化済の位置情報を前位置情報として (ステップ S 3 ) 符号 化を続ける。
符号化すべき次の位置情報が無いと判定されたら (ステップ S 4 )、終了符号を出力し ( ステップ S 1 1 )、 符号化を終了する。
なお、 以上の説明から、 本発明の第 1の実施形態にかかる符号化装置及び方法で有理数 表現の位置情報を符号化した際に最も符号化効率が髙くなるのは、 位置情報の欠落が全く 無い場合、 即ち、 符号化する複数の有理数表現された位置情報の値が予め決められた有 ¾ 数の順序関係、 図 4 Aの順序関係に従って連続して与えられている場合である。 このこと から、 逆に、 図 4 Aに示すような予め決められた有理数の順序関係を、 複数の、 同じ要素 種別情報を持った検索データ (葉又は節) に位置情報を割り当てる際に用いることが考え られる。 '― これから位置情報を与えようとする、 複数の、 同じ要素種別情報を持った検索データ ( 葉又は節) の個数を M個とした時、 図 4 Aの順序関係に従って先頭から M個の値を選び、 それらを数値の大小順に並び替えて、 それぞれの検索データの位置情報として割り当てる 。 例えば、 これから位置情報を与えようとする、 複数の、 同じ要素種別情報を持った検索 データ (葉又は節) が 5個である場合、 図 4 Aの順序関係に従って先頭からの 5個、 1ノ 2, 1/4, 3/4, 1/8, 3/8が選ばれ、 これらを数値の大小順、 1/8, 1/4 , 3/8,, 1/2, 3 Z4に並び替えて、 それぞれの検索デ一夕に対応する位置情報の値 として割り当てる。
それぞれの有理数値が個々に符号化される場合、 概して、 解像度の低い有理数値 (分母 の値が小さい有理数値) ほど短い符号で符号化される。 このことから、 図 4 Aのような順 序関係を用いた有理数位置情報の値の割り当ては、 本発明の実施形態のように複数の位置 情報をまとめて差分符号化する以外にも、 検索データ (葉又は節) に付される有理数位置 情報をそれぞれ別個に符号化した際、 位置情報にかかる符号の符号長が全体で最小となる 、 という効果がある。
あるいは、 図 4 Aの順序関係に従った位置情報の割り当ては、 以下のような処理を行う ことでも同様に実現される。
まず、 割り当てようとする位置情報の個数 Mから、 その個数を表すために必要な最低解 像度 (最小の分母値) Nを決定する。 図 4 Aの例では、 Nは 2のべき乗数であり、 また解 像度 Nで表される位置情報は 1/Nから (N— 1) ZNまでの N— 1個であるため、 Mく =N— 1を満たす最小の 2のべき乗数が求める Nとなる。 ここで、 M = N— 1の時は、 1 ZNから (N— 1) ZNまでの値を M個の位置情報に割り当て、 処理を終了する。
M = N— 1でない場合には、 次に, その解像度 Nの更に 1つ低い解像度 N' を求め、 差 分数 M' (Ν' — 1) を計算する。 Ν' — 1は解像度 N' で表される位置情報の個 数である。 即ち、 この差分数 M' は、 割り当てようとする Μ個の位置情報のうち、 解像度
N' では表せない位置情報め個数、 即ち、 分母が Νとなる位置情報の個数を表す。 よって
、 Μ個の位置情報は、 解像度 N' で表される N' — 1個の値、 ηΖΝ' (ここで η= 1,
2, · · · , Ν, — 1) と、 分母が Νの位置情報のうち小さい方から M' 個の値、 ηΖΝ (ここで n=l, 3, · · ·, 2M, - 1) とを合わせたものとなる。 今、 Nは 2のべき 乗数であるから、 分母が Nの位置情報の分子は、 通分できない値、 即ち奇数となっている 図 4 Bを見ると、 これらの値の大小関係は、 小さい方から、 1/N' (即ち 2 ZN) , 3ZN, 2/N' (即ち 4/N) , · · ·, (Μ' — 1) /N' (即ち (2M' -2) ΖΝ) , (2Μ' — 1) ZN, M' /N' (即ち 2M' /Ν) , (Μ' + 1) /Ν ' , (Μ' +2) /N' , ■ · ·, (Ν' — 1) /N' であることが判る。 即ち、 これら の値は、 1/Nから始まって 1ZNずつ増えていく M' /N' (即ち 2M' /Ν) までの 2M' 個の値と、 そこから 1ZN' ずつ増えていく残り (Ν' — 1) ZN' までの Μ— 2 M' 個の値からなっている。 これらの値の増加幅 1ZN, 1/N' を 「ステップ幅」 と呼 ぶ。 そこで、 1ZNを初期値として、 ステップ幅 1ZNずつ加えていくことで先頭から 2 M' 個の値を求め、 更にそこからステップ幅 1ZN' ずつ加えていき、 残りの値を個数 Μ 個になるまで求めることによって、 図 4 Αの順序関係に従う先頭から M個の位置情報の値 を求めることができる。 例えば、 これから位置情報を与えようとする、 複数の、 同じ要素 種別情報を持った検索データ (葉又は節) が 5個である場合、 解像度 N=8、 解像度 N' =4、 差分数 M' =2となり、 1 8を初期値として 2 M' =4個の値、 1Z8, 1/4 , 3/8, 1Z2が求まり、 そこから 1Z4を加えることで 5個目の値 3 4が求まる。 つまり、 この方法は、 2つのステップ幅 1/N, 1/N' と、 そのステップ幅を切り換 える所定の位置 2 M' を与えることで、 図 4 Aの順序関係で先頭から M個の位置情報の値 を、 数値の大小順のままで求めるものである。 この方法では、 得られた位置情報の値を後 から数値の大小順に並べ替える動作が不要になるため、 図 4 Aの順序関係に従つた位置情 報の値の割り当てを高速に行うことができる。 また、 ステップ幅の切り換え位置を指定す る M' の値に上記で得られた差分数よりも大きな値を設定することで、 割り当てられる位 置情報の値を小さい値の方に偏らせたりすることもできる。 但しこの時、 2M' は個数 M を越えない。
次に、 本発明の第 1の実施形態にかかる位置情報の復号装置について、 図 1 1を用いて 説明する。
図 1 1は、 本発明の第 1の実施形態にかかる位置情報復号装置の概略構成を示す機能ブ ロック図である。 本発明の第 1の実施形態にかかる位置情報復号装置は、 先頭位置情報復号部 1 1 0 1、 前位置情報保持部 1 1 0 2、 分岐階層判定部 1 1 0 3、 差分位置情報復号部 1 1 0 4、 並 びに位置情報並替部 1 1 0 5で構成される。 上述のごとく M P E G— 7では、 要素種別情 報と位置情報とが個々に符号化されて、 検索データと共に扱われるが、 本発明は、 このう ち位置情報の復号に関するものである。 勿論、 本発明にかかる復号は、 M P E G— 7に限 定されるも CDではない。 なお、 本発明としては、 ここで説明する位置情報復号を含む復号 を行う復号装置としての形態も採り得る。
図 1 1に示した本実施形態にかかる位置情報復号装置の機能構成のうち、 本発明の最も 特徴となる機能構成は、 位置情報の復号を行った後段に設けられた位置情報並替部 1 1 0 5である。
位置情報並替部 1 1 0 5は、 前段の差分位置情報復号部 1 1 0 4までに復号されて得ら れた、 図 4 Aの順序関係に従って並んだ有理数表現の位置情報を、 元の数値の大小に基づ く順に並べ替えるものである。 本明細中に示したように、 扱われるのが検索情報に含まれ る各検索データ (あるいは節) に対応した位置情報の場合、 検索データ (あるいは節) は 元の木構造に含まれたままの順に並んだ状態で扱うことが多く、 またその方が扱い易いと 考えられるため、 上記のように対応する位置情報を元の順に並び替える必要がある。 位置情報並替部 1 1 0 5で位置情報を並べ替える前段までに行われる復号処理は、 従来 の整数表現された位置情報での復号の処理と同様である。 位置情報並替部 1 1 0 5の動作 については後で詳しく説明する。 .
始めに、 先頭位置情報復号部 1 1 0 1は、 先頭の位置情報を復号し、 その位置情報を出 力する。 ここで行われるのは通常の方式で符号化された位置情報の復号であり、 符号化同 様、 この動作については本発明では特に言及しない。
本実施形態の位置情報復号装置の動作を、 図 5に示した位置情報符号列を入力とした場 合で説明する。 図 5の位 g情報符号列は、 上述した図 1の位置情報符号化装置により図 2 に示した検索情報に含まれる各検索データ 2 0 1〜2 0 9の位置情報を符号化して得られ たものであるが、 本実施形態の復号装置で復号される位置情報符号列は特に図 1の符号化 装置で生成される符号列に限定されるものではない。
先頭位置情報復号部 1 1 0 1で復号されて得られた先頭の位置情報 ( 1 / 2 , 1 / 2 ) は、 位置情報並替部 1 1 0 5に入力されると共に、 前位置情報保持部 1 1 0 2に記録され P2004/000563 て保持される。 前位置情報保持部 1102には、 現在復号しょうとする位置情報に対して 、 1つ前に復号処理された位置情報が記録され保持されている。
分岐階層判定部 1103は、 入力される位置情報符号列の 1つ 1つの位置情報符号を順 次読み込み、 分岐階層を判定、 即ちどの階層の位置情報の値を更新させるかを判定し、 判 定結果を差分位置情報復号部 1104に送る。 なお、 分岐階層判定部 1103で順次読み むべき位置情報符号のビット長は、 位置情報の階層数によって決まるものである。 符号 化装置の説明でも述べたように、 検索データの識別情報に含まれた位置情報の復号では、 符号化された位置情報、 即ち位置情報符号列と共に、 要素種別情報が符号化されて共に喾 積又は伝送されているのが普通である。 そこで、 この要素種別情報を復号し解析して分岐 可能な要素数を求めることで、 位置情報の階層数を知り、 読み込む位置情報符号のビット 長を知ることができる。 あるいはピット長を示す情報が別途位置情報符号列と共に与えら れているような場合には、 その情報を用いて読み込む位置情報符号のビット長を知ること ができる。 これらビット長の判定処理は、 図 11に示した復号装置における復号処理とは 別途行われるため、 図示していない。
差分位置情報復号部 1104は、 前位置情報保持部 1102に保持されている位置情報 を読み込み、 分岐階層判定部 1 103からの判定結果に基づいて、 位置情報の値を、 図 4 Aの順序関係に従って更新する。 即ち、 差分位置情報復号部 1 104は、 前位置情報保持 部 1102に記録されている位置情報に対して、 分岐階層判定部 1103の判定結果に基 づき分岐階層の位置情報の値を図 4 Aの順序関係に従って 1つ分増加させ、 かつその分岐 階層より下位にある階層については、 全ての階層の位置情報の値を図 4 Aの順序関係にお ける初期値 1 2とする。 その分岐階層より上位の階層の位置情報の値はそのまま保持す る。
(1Z2, 1/2) が先頭位置情報復号部 1101で復号され、 前位置情報保持部 11
02に記録されている状態で、 次に読み込まれる位置情報符号は "10" である。 分岐階 層判定部 1103では、 この符号 "10" が第 2階層、 即ちショットの階層で分岐がある ことを示す符号であることを判定し、 差分位置情報復号部 1104では、 その判定結果に 基づいて第 2階層 =ショッ卜の階層の位置情報の値を図 4 Aの順序関係に従い 1つ分更新 する。 図 4 Aにおいて 1 2の次の値は 1/4であるため、 (1/2, 1/2)から第 2階 層の位置情報の値を更新した位置 (1Z2, 1/4) が得られる。 また、 ( 1 Z 2 , 3/4)が前位置情報保持部 1102に記録されている状態で、 次に位 置情報符号 "01" が読み込まれる。 分岐階層判定部 1103では、 この符号 "01" 力 第 1階層、 即ちシーンの階層で分岐があることを示す符号であることを判定し、 差分位置 情報復号部 1104では、 その判定結果に基づいて第 1階層 =シーンの階層の位置情報の 値を図 4 Αの順序関係に従って 1つ分更新する。 それと共に、 それより下位の階層、 即ち 第 2階層-ショットの階層の位置情報の値を、 図 4 Aの順序関係での初期値 1ノ 2とする 。 図 4Aにおいて 1/2の次の値は 1Z4であるため、 (1/2, 3Z4)から第 1及び第 2階層の位置情報の値を更新した位置 (1/4, 1/2) が得られる。
そして、 差分位置情報復号部 1104で得られた位置情報は、 位置情報並替部 1 105 へと出力されると共に、 前位置情報保持部 1102へと送られ記録されて、 次の位置情報 の復号に利用される。
分岐階層判定部 1 103で終了符号 "11" が読み込まれたら、 位 fi情報の復号を終了 し、 引き続き位置情報並替部 1105で位置情報の並べ替えを行う。
位置情報並替部 1105では、 差分位置倩報復号部 1104で復号され出力された有理 数表現の位置情報が、 図 4 Aの順序関係に従って並んでいることから、 本来の数値の大小 による順序関係に従った順へと位置情報の並べ替えを行う。 ここで例示した図 5の位置情 報符号列を復号した例では、 既に示した図 3の並べ変え後の位置情報 303から、 並べ替 え前の位置情報 302の順へと並べ替えが行われることになる。 並べ替えは、 上位の階層 から順に、 その階層での位置情報の値が数値の大小順になるように位置情報を並べ替え、 その階層での位置情報の値が同一であるものについては、 階層を 1つ下ってまた数値の大 小順に並べ替える、 という操作を再帰的に繰り返すことでなされる。 この操作は、 上記の 符号化装置で位置情報を図 4 Aに従つた順に並べ替えた時の操作と同じである。 あるいは 、 階層毎に位置情報の値を比較するのではなく、 葉又は節におけるすべての階層の位置情 報の値をまとめて扱うことによって位置情報の並べ替えを行ってもよい。 例えば、 ある葉 又は節の位置情報と、 別の葉又は節の位置情報との大小関係を定義し、 その大小関係に従 つて、 葉又は節の位置情報に対して、 クイックソート等の既存のソートアルゴリズムを適 用することによって位置情報の並べ替えを行うことができる。 無論、 同様の並べ—替えが行 える並べ替え方法であればよく、 並べ替えの方法はここに示したものに限定されるもので はない。 ここで、 並べ替え方法の一^として、 差分位置情報復号部 1 1 0 4から出力される有理 数表現された位置情報の値並びに出力順が図 4 Aの順序関係に従っていることを利用した 復号時の位置情報の並べ替え処理を、 図 1 2乃至図 1 5と共に説明する。
図 1 2は、 ここで説明する復号時の並べ替え処理の一動作例を図示した説明図である。 この並べ替え処理は位置情報並替部 1 1 0 5の内部で行われる。
図 1 2中、 1 2 0 1は差分位置情報復号部 1 1 0 4で復号され出力された 1 0個の位置 情報 (分岐可能な階層数は 3 ) を示しており、 これらは上から、 復号された順、 即ち図 4 Aの順序関係に従った順に並んでいる。
図 1 2に示した並べ替え処理では、 これら復号された位置情報のそれぞれに、 数値の大 小順を表す (0から始まる〉 連続した番号を最終的に振る。 この番号を 「インデックス」 と呼ぶ(図 1 2中の 1 2 0 3を参照)。位置情報のそれぞれに対しィンデックスが振られれ ば、 その値に従って位置情報を並べ替えることができる。 このため、 位置情報並替部 1 1 0 5の内部構成として、 図 1 3に代表されるインデックスの計算部が用意される。 図 1 2 では並べ替えを行う位置情報 1 2 0 1の数が 1 0個のため、 与えられるインデックス 1 2
0 3の値は 0から 9までとなつているが、 位置情報の数に合わせて、 例えば 1 5個の場合 は 0から 1 4まで、 3 0個の場合は 0から 2 9までのインデックスが振られる。 これら各 位置情報に振られるィンデックスの値は、 以下のようにして求められる。
図 1 3は、 それぞれの位置情報に付されるインデックスの値を計算するために、 ある階 層のある 1つの分岐位置で行う処理を、 装置の機能構成として表した機能ブロック図であ る。 即ち図 1 3は、 位置情報並替部 1 1 0 5の内部構成となるインデックス計算部の、 更 に内部構成を表した例である。 図 1 3の処理は、 位置情報計数部 1 3 0 1、 更新幅算出部
1 3 0 2、 インデックス値更新部 1 3 0 3の 3つで構成され、 復号された位置情報と、 1 つ上の階層で処理された計数値並びにィンデックス値を入力として、 新たな計数値及び更 新されたインデックス値を出力する。 また、 更新幅算出部 1 3 0 2には別途、 積算順情報
1 3 0 4が入力される。 この処理を全階層の全分岐位置に対し行うことで、 各位置情報に 対応したィンデッタスが得られる。
位置情報計数部 1 3 0 1は、 復号された位置情報と 1つ上の階層での計数値を入力とし
、 ある階層のある分岐位置において、 その階層の位置情報の値が同じになっている位置情 報の個数を、 それぞれの値について計数する。 図 1 2の 1 2 0 2が計数結果の例を示して いる。 但し、 計数結果 1 2 0 2には全ての階層及び分岐位置での計数結果を示してある。 例えば、 第 1階層 (の分岐位置) では、 1 0個の位置情報のうち、 第 1階層で値 1 / 2 をとる位置情報が 6個、 値 1 Z 4をとる位置情報が 4個あることを計数する。 また、 第 2 階層の第 1の分岐位置 (第 1階層の値が 1 Z 2である上から 6個の位置情報) では、 6個 の位置情報のうち、 第 2階層で値 1ノ 2をとる位置情報が 4個、 値 1 / 4をとる位置情報 が 2個あることを計数する。 つまり、 ここで言う 「分岐位置」 とは、 木構造として見た時 、 対象とする階層より 1つ上の階層にある 1つの節を起点として、 その下にぶら下がって いる全ての要素 (葉又は節) に対応する位置情報の集合を指し、 位置情報の値に基づいて 言えば、 対象とする階層より上位の階層に全く同じ値を持つた位置情報の集合を指してい る。 そして、 各分岐位置に含まれる位置情報の個数は、 入力された 1つ上の階層の計数値 によって与えられる。 なお、 図 1 2の第 1階層については、 根にぶら下がつている要素、 即ち全ての要素の位置情報が第 1階層の 「分岐位置」 とされる。
計数する位置情報の値の出現順は、 即ち復号順であるから、 どの分岐位置であっても必 ず図 4 Aの順序関係に従っている。 このため、 上記の計数処理は、 常に図 4 Aに従って計 数値を求めるものとし、 値に抜けがある (出現しない値が途中にある) 場合にはその値の 出現個数を 0と計数する。 即ち、 得られた計数結果は、 どの分岐位置であっても、 1個目 の計数値は必ず図 4 Aの最初の値 1 / 2の出現個数であり、 2個目の計数値は必ず図 4 A の 2番目の値 1 / 4の出現個数を表すものとする。 こうして計数された結果を、 更新幅算 出部 1 3 0 2及びインデックス値更新部 1 3 0 3へ出力する。 また、 出力して次の.階層で の処理に利用する。
更新幅算出部 1 3 0 2は、 位置情報計数部 1 3 0 1から受け取った計数値に基づいて、 対象とする階層の位置情報の値に応じた、 各位置情報のィンデックス値の更新幅を求める ある分岐位置について、 ある値を対象の階層に持つ位置情報に対するィンデックス値の 更新幅は、 その値より小さい値をその階層に持つた位置情報が幾つあるかによつて決定さ れる。 例えば、 ある分岐位置で対象の階層に値 1ノ 4, 1 / 2 , 3 / 4を持つ位置情報が それぞれ M l個, M 2個, M 3個あった場合、 値 1 / 2を持つ位置情報の前には M 1個の 値 1 / 4を持つた位置情報があるために、 値 1 / 2を持つ位置情報には値 1 / 4を持つ位 置情報のインデックスに M lだけ加えたインデックスを付ける必要がある。 従って、 値 1 / 2を持った位置情報に対するインデックス値の更新幅は M lとなる。 また同じ理由から 、 値 3 Z 4を持った位置情報に対する更新幅は M l + M 2で与えられる。 これら位置情報- の個数 M 1 , M 2 , M 3は位置情報計数部 1 3 0 1で得られた各計数値にあたる。 即ち、 位置情報計数部 1 3 0 1で得られた各計数値を数値の大小順に積算していくことによって 、 それぞれの位置情報の値に対応した更新幅が得られる。
上記の積算処理を行うためには、 位置情報計数部 1 3 0 1で得られた計数値を数値の大 小順に読み出す必要がある。 一方、 既に説明したように、 位置情報計数部 1 3 0 1で計数 される各計数値は、 図 4 Aの順序関係に従つて各位置情報値の出現個数を表したものであ ることがわかっている。 このことから、 位置情報の値どうしを互いに比較しなくとも、 計 数値の得られた順によつてそれらの値の大小関係を知ることが可能である。 値どうしの比 較を行わないため、 計算量を少なく抑えることができる。 このための情報が、 積算順情報 1 3 0 4である。
図 1 4乃至図 1 5と共に積算順情報 1 3 0 4について説明する。 図 1 4の表 1 4 0 1及 び図 1 5の表 1 5 0 1はいずれも積算順情報 1 3 0 4の例である。 例えば、 計数された位 置情報の値が図 4 Aの順序関係で 3 / 4までの 3個だつた場合、 それらの値の大小順は図
1 4の表 1 4 0 1に示すように小さい方から、 2番目の値 (1 / 4 ) , 1番目の値 (1 Z 2 ), 3番目の値 (3 Z 4 ) の順であるから、 その順に計数値を積算すればよい。 計数された 位置情報の値が 7ノ 8までの 7個なら、 それらの大小は図 1 5の表 1 5 0 1の順であり、 同じくその順に計数値を積算すればよい。 即ち、 図 4 Aの順序関係でどこまでの位置情報 が計数 (復号) されるかで、 計数順 (復号順) に対するそれらの大小順が一意に定まる。 この計数順に対する大小順の情報を 「積算順情報」 と呼ぶ。
仮に、 計数された位置倩報の値が図 4 Aの順序関係で 1 / 4までの 2つであった場合、 これら 2つの位置情報の値に対する積算順情報を用意して用いてもよい。 同様に、 全ての 位置情報の値について、 図 4 Aの順序関係でその値までの位置情報の値に対する積算順情 報を用意しておくことが可能である。 但し、 全ての位置情報の値について積算順情報を用 意しておくためには多くのメモリを必要とし、 場合によっては適切でない。 そこで、 Nを
2のべき乗数とした時、 図 4 Aの順序関係で (N— 1 ) ZNまでの位置情報の値に対して 与えられる複数の積算順情報のみを用意し、 (N— 1 ) ZN以外の位置情報の値に対する積 算順情報は、 用意されている複数の (N— 1 ) ZNに対する積算順情報のいずれかを参照 することで積算順を決めるといったこともできる。
図 4 Aの順で最後に復号された位置情報の値に対して、 その値以上の (Ν·— 1) ZNに 対応する積算順情報であれば、 積算順を決めるのに利用することができる。 更に、 余分な 積算処理を最小に抑えるためには、 その値以上でかつ最小の (N— 1) ZNを選んで、 対 応する積算順情報を使うものとする。 この時 Nは、 最後に復号されたの値の分母の値に等 しい。 例えば、 ある分岐位置で復号された位置情報の値が 1Z2, 1ノ 4の 2個の場合に は、 最後に復号された値 1Z4の分母 4であるから、 3 Z4までの復号順情報、 即ち図 1 4の表 1401を利用する。 また、 位置情報の値が 1 2, 1/4, 3/4, 1/8の 4 個の場合には、 値 1/8の分母 8であるから、 7Z8までの復号順情報、 図 15の表 15 01を利用する。 そして、 積算順情報 1304で示された順に位置情報計数部 1301で 得られた計数値を積算し、 位置情報の各値に対応するィンデックス値の更新幅を求める。 その際、 復号値にない値については、 対応する計数値を 0として積算する。 そして、 得ら れた更新幅をィンデックス値更新部 1303へ出力する。 . インデックス値更新部 1303は、 更新幅算出部 1302で得られた更新幅と位置情報 計数部 1301で得られた計数結果、 及び 1つ上の階層の計数値とを用いて、 各位置情報 に付されているィンデックスの値を更新する。
位置情報計数部 1301で得られた最初の計数値は、 対象の階層に値 1Z2を持つ位置 情報の個数を表すため、 分岐位置にある位置情報のうち、 先頭から最初の計数値個分の位 置情報について、 更新幅算出部 1302で得られた値 1 / 2に対応する更新幅でィンデッ クスの値を更新する。 この時、 分岐位置の先頭は、 入力された 1つ上の階層の計数値から 求める。 同様に、 2番目以降の計数値についても処理する。
図 12の計数結果 1202とィンデックス及び更新幅 1203とで、 第 1階層及び第 2 階層の分岐位置での処理を例に、 更新幅算出部 1302及びインデックス値更新部 130 3の処理を説明する。
はじめに、 各位置情報のィンデッタスの初期値を 0に設定する。
第 1階層で復号された位置情報の値は 1/2, 1/4の 2つであるから、 積算順情報 1
304には図 14の表 1401を用いる。 図 14の表 1401における積算順情報で、 最 初の位置情報値 1Z4については、 インデックス値の更新幅を 0とする。 次に、 更新幅算 出部 1302で、 更新幅 0に値 1 Z4に対応する計数値 4を加算し、 表 1401の次の値 1 / 2に対するインデックス値の更新幅 4を求める。 図 1 2の計数結果 1 2 0 2
ックス (及び更新幅) 1 2 0 3の例では、 第 1階層には次の値 3 が無いが、 仮に次の 値 3 / 4があつた場合には、 更新幅算出部 1 3 0 2で、 更新幅 4に値 1ノ 2に対応する計 数値 6を更に加算し、 表 1 4 0 1に従った次の値 3 / 4に対する更新幅 1 0を求める。 インデックス値更新部 1 3 0 3では、 第 1の計数値 6に基づいて、 先頭から 6個の位置 情報に付されているインデックス値 0 (初期値) に、 値 1 / 2に対応する更新幅 4を加え 、 更新されたインデックス値 4が求まる。 次に、 第 2の計数値に対応する続く 4個の位置 情報のィンデックス値 0に、 値 1 Z 4に対応する更新幅 0を加え、 更新されたィンデック ス値 0とする。
同様に、 第 2階層の第 1の分岐位置 (上から 6個の位置情報) で復号された位置情報の 値は 1 Z 2、 1 Z 4の 2つであるから、 積算順情報 1 3 0 4には図 1 4の表 1 4 0 1を用 いる。 表 1 4 0 1の積算順情報で、 最初の位置情報値 1 Z 4については、 インデックス値 の更新幅を 0とする。 次に、 更新幅算出部 1 3 0 2で、 更新幅 0に値 1 / 4に対応する計 数値 2を加算し、 表 1 4 0 1の次の値 1 2に対するインデックス値の更新幅 2を求める インデックス値更新部 1 3 0 3では、 第 1の計数値 4に基づいて、 先頭から 4個の位置 情報に付されているインデックス値 4に、 値 1 Z 2に対応する更新幅 2を加え、 更新され たインデックス値 6が求まる。 次に、 第 2の計数値に対応する続く 2個の位置情報のイン デックス値 4に、 値 1ノ 4に対応する更新幅 0を加え、 更新されたインデックス値 4とす る。
第 2階層の第 2の分岐位置 (下の 4個の位置情報) では、 積算順情報 1 3 0 4に図 1 4 の表 1 4 0 1を用い、 更新幅算出部 1 3 0 2で、 位置情報値 1 / 4に対する更新幅 0、 値 1 / 2に対する更新幅 1を求める。
インデックス値更新部 1 3 0 3では、 位置情報計数部 1 3 0 1で得られた計数値に従い 、 分岐位置の先頭から 3個の位置情報に更新幅 1を加えてィンデックス値 1に、 残りの位 置情報に更新幅 0を加えてインデックス値 0にインデックスを更新する。 この時、 第 2階 層の第 2の分岐位置の先頭は、 入力された 1つ上の階層の計数値によって求められる。 計数結果 1 2 0 2の第 1階層の 2つの計数値、 6と 4は、 そのまま第 2階層の 2つの分 岐位置における位置情報の個数を表している。 そのため、 第 2階層の第 2の分岐位置の先 頭は、 第 1の分岐位置の位置情報の個数 6に 1を足した、 7となる。 こうして分岐位置の 先頭が特定され、 分岐位置に含まれる各位置情報のィンデックスを更新することができる 。 無論、 計 fc値としてでなく、 各分岐位置の先頭の位置に変換した情報を保持して上位の 階層から受け取るようにしてもよい。
この処理を、 各階層の各分岐位置に対して同様に実行する。 図 1 2の 1 2 0 3は、 こう して上位の階層から順に実行した場合の、 各階層での更新後のィンデックス値とそれぞれ の分岐位置で求められる更新幅の値 (括弧内) とを記している。 最も下位の第 3階層では 、 各位置情報の値が 1回づっ出現するため、 1づつの差を持ったインデックス値が最終的 に得られる。 こうして得られたインデックスが位置情報の順序関係を表すものであり、 こ のィンデックスに従って読み出すことで位置情報の並び替えを行うことができる。 この並 ベ替えられた位置情報が、 図 1 1の位置情報並替部 1 1 0 5からの出力となる。
上記の処理では、 処理の都度、 更新幅の値を加えてインデックス値を逐次更新していく 例を示したが、 これ以外にも、 各階層の更新幅を別途求めておき、 最後に各階層の更新幅 の値を合計するとしてもよい。
■ また、 図 1 3と共に説明した上記の処理では、 分岐位置毎に、 位置情報の計数処理, 積 算処理, インデックス値の更新処理を行うとしているが、 位置情報の計数処理を全ての階 層の全ての分岐位置について先に行い、 求めた計数値を図 1 2の計数結果 1 2 0 2のよう に全て保持してそれ以降の処理に利用するとしてもよい。 この場合、 計数結果を保持する ためのメモリが余分に必要となるが、 他の階層の計数結果を任意の時点で利用できるため
、 上記の例のように階層順に処理する必要がなく、 処理する階層の順番や分岐位置の順番 を任意に変えることができるようになる。 また更に、 この計数処理を全ての位置情報の復 号後に行うのでなく、 位置情報の復号を行いながら同時に計数することも可能である。 説明した位置情報の並べ替え処理 (インデックス値の計算方法) は、 復号される位置情 報の値が図 4 Aの順序関係に従うことを反映した積算順情報 1 3 0 4を用いることで、 復 号された各々の値どうしを比較しなくとも並べ替えを行うことができ、 計算処理が軽減さ れる利点がある。 また、 上記の方法では、 更新幅算出部 1 3 0 2での処理が位置情報の出 現個数の積算処理であるため、 欠落し、 出現しなかった位置情報の値が途中にあった場合 でも、 その位置情報の出現個数を 0と計数することによって、 全く同じ枠組みで処理を行 うことができる。 このため、 特に分岐処理等を必要とせず、 以下に示すような位置情報の 欠落があった場合でも並べ替えの処理を髙速に行うことが可能である。
ここでは、 復号時の並べ替え処理に特化して並べ替え方法を説明したが、 ·説明した並べ 替え方法は、 符号化時の並べ替え処理に対しても同様にして用いることができる。 その場 合には、 積算順情報 1 3 04を、 図 1 4や図 1 5に示した 「図 4 Aの順」 から 「数値の大 小順」 へと変換するものでなく、 符号化処理に対応した 「数値の大小順」 から 「図 4 Aの 順」 へと変換するものに入れ替えるだけでよい。 また、 ここでは、 本実施形態で使用した 「2のべき乗分の自然数(分母が 2のべき乗数、 分子が自然数)」 の有理数表現された位置 情報を例として示したが、 この並べ替え処理は他の有理数表現された位置情報にも、 ある いは有理数表現でなくとも並べ替えが必要な任意の位置情報に対して、 同様に適用可能で ある。
次に、 欠落がある場合の木構造の位置情報の復号の例として、 図 9に示した位置情報符 号列の復号の動作について説明しておく。
位置情報 ( 1 Z 2 , 1 /2 ) が前位置情報保持部 1 1 0 2に記録された時点で、 次に分 岐階層判定部 1 1 0 3で読み込まれる位置情報符号は、 欠落を表す欠落符号 "0 0" であ る。 この場合、 分岐階層判定部 1 1 0 3は、 次に来る位置情報が欠落位置であることを、 差分位置情報復号部 1 1 04に通知し、 次の位置情報符号 " 1 0" を読み込む。 今度の位 置情報は第 2階層の分岐を示す符号であるから、 その判定結果を差分位置情報復号部 1 1 04に通知する。
差分位置情報復号部 1 1 04では、 次の更新位置が欠落位置であること、 そしてその更 新する分岐階層は第 2階層であることを受け取る。 差分位置情報復号部 1 1 04では、 前 位置情報保持部 1 1 0 2に保持された位置情報 ( 1/2, 1ノ 2 ) から、 第 2階層の値を 図 4 Aの順序関係に従って 1つ分、 1 / 2から 1 / 4に更新し、 更新された位置情報 ( 1 / 2. 1 /4) を得るが、 これが欠落位置であると通知されているため、 位置情報並替部 1 1 0 5には出力せずに、 前位置情報保持部 1 1 0 2にのみ, その値 (1/2, 1/4) を出力し保持する。
次に読み込まれる位置情報符号は " 1 0" であることから、 分岐階層判定部 1 1 0 3で は次の分岐階層が第 2階層であることを判定し、 その結果を差分位置情報復号部 1 1 04 に通知する。
差分位置情報復号部 1 1 04は、 分岐階層が第 2階層であることを受け取り、 前位置情 報保持部 1 1 0 2に保持された位置情報 ( 1 /2 , 1/4) の第 2階層の値を図 4 Aの順 序関係に従って、 1ノ 4から 3Z4に更新し、 (1Z2, 3/4) が得られる。 これは欠落 位置ではないため、 位置情報並替部 1 1 0 5に出力される。 こうして、 次の位置情報が正 しく復号される。
また、 位置情報 (1/4, 3/4) が前位置情報保持部 1 1 02に記録された時点で、 次に分岐階層判定部 1 1 0 3で読み込まれる位置情報符号は、 欠落を表す欠落符号 "0 0 " である。 分岐階層判定部 1 1 03は、 次に来る位置情報が欠落位置であることを、 差分 位置情報復号部 1 1 04に通知し、 次の位置情報符号 "0 1" を読み込む。 今度の位置情 報は第 1階層の分岐を示す符号であるから、 その判定結果を差分位置情報復号部 1 1 04 に通知する。
差分位置情報復号部 1 1 04では、 次の更新位置が欠落位置であること、 そしてその更 新する分岐階層は第 1階層であることを受け取る。 差分位置情報復号部 1 1 04では、 前 位置情報保持部 1 1 0 2に保持された位置情報 (1/4, 3/4) から、 第 1階層の値を 図 4 Aの順序関係に従って 1つ分、 1/4から 3/4に更新し、 かつ第 2階層の値を図 4 Aの順序関係での初期値 1/2とすることで、 更新された位置情報 (3/4, 1 /2) を 得るが、 これが欠落位置であると通知されているため、 位置情報並替部 1 1 0 5には出力 せずに、 前位置情報保持部 1 1 0 2にのみ、 その値 (3/4, 1/2) を出力し保持する 次に読み込まれる位置情報符号は " 1 0" であることから、 分岐階層判定部 1 1 0 3で は次の分岐階層が第 2階層であることを判定し、 その結果を差分位置情報復号部 1 1 04 に通知する。
差分位置情報復号部 1 1 04は、 分岐階層が第 2階層であることを受け取り、 前位置情 報保持部 1 1 0 2に保持された位置情報 ( 3 / 4 , 1 /' 2 ) の第 2階層の値を図 4 Aの順 序関係に従って、 1 /2から 1 /4に更新し、 (3/4, 1/4) が得られる。 これは欠落 位置ではないため、 位置情報並替部 1 1 0 5に出力される。 こうして、 次の位置情報が正 しく復号される。
検索情報に含まれる検索データ (あるいは節) の位置情報を扱うような場合、 復号され た位置情報は、 検索データ (あるいは節) のそれぞれに対応するものであり、 それら検索 データ (あるいは節) が元の木構造中での出現順、 即ち数値の大小順、 に並んで扱われる 、 例えばその順に伝送されるあるいは蓄積されることは多い。 そのような場合に、 本発明 は、 並べ替えによって数値の大小順に並んだ元の順の位置情報が得られることで検索デ一 夕 (あるいは節) との対応がとれ、 各検索データ (あるいは節) の識別ができることにな る。
また、 検索データ (あるいは節) が、 元の木構造中での出現順序か、 もしくは位置情報 と同様に図 4 Aに従つた順序に並び替えられて扱われるかが選択できるような場合には、 検索データ (あるいは節) が並び替えられているか否かを示したフラグを別途設けて、 位 置情報符号列と共に伝送又は蓄積し、 そのフラグの値に従って、 位置情報並替部 1 1 0 5 で位置情報の並べ替えを行うか否かを選択できるようにしてもよい。
図 1 6は、 本発明の第 1の実施形態にかかる位置情報の復号方法を説明するためのフロ 一図である。
本発明の第 1の実施形態にかかる位置情報復号方法は、 先頭位置情報復号ステップ (ス テツプ S 2 1 )、 前位置情報保持ステツプ (ステップ S 2 2 )、 分岐階層判定/差分位置情 報復号ステップ (ステップ S 2 6 )·、 並びに位置情報並替ステップ (ステップ S 2 9 ) を含 んでなる。 本発明の第 1の実施形態にかかる復号方法も、 位置情報の復号に関するもので あり、 本発明としては、 ここで説明する位置情報復号を含む復号を行う復号方法としての 形態も採り得る。
始めに、 先頭の位置情報を通常の方式で復号する (ステップ S 2 1 )。 そして、 復号され た先頭の位置情報を前位置情報として保持する (ステップ S 2 2 )。
次に、 位置情報符号を読み込む (ステップ S 2 3 )。 そして、 読み込まれた位置情報符号 に対して、 まず、 終了符号か否かを判定する (ステップ S 2 4 )。 終了符号でない場合、 次 に、 欠落符号か否かを判定する (ステップ S 2 5 )。
欠落符号でない場合には、 その位置情報符号に基づいて分岐階層を判定し、 その判定結 果に基づいて位置情報を更新, 即ち次の位置の位 tt情報を求める (ステップ S 2 6 )。 ここ で行う次の位置情報を求める処理は、 既に復号装置の説明で示したように、 分岐階層につ レ ^ては位置情報の値を図 4 Aの順序関係に従って 1つ分増加させ、 分岐階層より下位の階 層については図 4 Aでの初期値 1 Z 2を、 分岐階層より上層については変更無しとして行 うものである。 そして、 得られた位置情報を出力する (ステップ S 2 7 ) と共に、 それを 前位置情報として保持し (ステップ S 2 2 )、 同様の処理を続ける。 欠落符号であると判定された場合には、 次の位置情報符号を読み込む (ステップ S 2 8 )。そして、 読み込まれた位置情報符号から分岐階層を判定し、 上記と同様にして次の位置 情報を求める (ステップ S 2 6 )。但し、 ここで求められた位置情報は欠落位置であるため 、 出力はされずに、 単に次の前位置情報として保持されて (ステップ S 2 2 )、 以下同様の 処理を続ける。
読み込まれた位置情報符号が終了符号と判定されたら (ステップ S 2 4 )、最後に復号さ れ出力された位置情報を数値の大小順に並べ替えて (ステップ S 2 9 )、 復号が完了する。 なお、 本発明の実施形態にかかる符号化 Z復号装置及び方法では、 有理数表現された位 置情報として、 「2のべき乗分の自然数」で与えられるものを例としてあげた力 有理数表 現の位置情報はこれに限られるものではない。 例えば 「3のべき乗分の自然数 (分母が 3 のべき乗数、 分子が自然数)」 などでも同様に処理できる。 また、 本発明の実施形態の 「2 のべき乗分の自然数」 は当然 0を含んでいないが、 0を位置情報の取り得る値としてここ に含めることもできる。 その場合、 図 4 Aの順序関係は、 0が 1 / 2の前に置かれて、 初 期値が 0となる。 あるいは有理数以外でも同様に、 そのままでは順序関係が決定されず、 並べ替えを行うことで順序付けが可能といった性質を持つ位置情報であれば、 本発明を適 用可能である。 本発明の本質は、 本来、 数値上の順序関係からは、 ある値に対して次に更 新される値が一意に特定できないような位置情報が存在した場合に、 それを予め定められ る順序関係を規定して、 その決められた順序関係に従うように位置情報を並べ替えること によって、 整数表現による位置情報の場合と同様に差分符号化による複数位置情報の符号 化 復号を可能とした点にある。
(第 2の実施形態)
次に、 本発明の第 2の実施形態にかかる位置情報の符号化装置について、 図 1 7乃至図 2 1を用いて説明する。
図 1 7は、 本発明の第 2の実施形態にかかる位置情報符号化装置の概略構成を示す機能 ブロック図である。
本発明の第 2の実施形態にかかる位置情報符号化装置は、 先頭位置情報符号化部 1 7 0
2、 前位置情報保持部 1 7 0 3、 ステップ幅決定部 1 7 0 1、 ステップ幅符号化部 1 7 0
6、 分岐階層判定部 1 7 0 4、 並びに差分位置情報符号化部 1 7 0 5で構成される。 この うち、 先頭位置情報符号化部 1 7 0 2, 前位置情報保持部 1 7 0 3, 及び差分位置情報符 号化部 1 7 0 5については、 図 1と共に説明した第 1の実施形態にかかる位置情報符号化 装置を構成する機能ブロックにおける先頭位置情報符号化部 1 0 2 , 前位置情報保持部 1
0 3 , 差分位置情報符号化部 1 0 5と同一のものである。
既に説明した第 1の実施形態では、 図 2に示すような木構造を有する検索情報の有理数 表現された複数の位置情報を符号化するために、 位置情報が取り得る有理数の値に関した 固有の順序関係を予め定義し、 その順序関係に従って符号化する複数の位置情報を並べ替 えることとした。 この並べ替えにより、 ある位置情報の値に対する次の位置情報の値が一 意となることで、 有理数表現された位置情報であっても整数表現の位置情報と同様の差分 符号化を可能とした。 このため、 図 1に示した第 1の実施形態にかかる位置情報符号化装 置は位置情報並替部 1 0 1を備え、 また、 並べ替えられた位置情報を元の数値の大小順に 戻すために図 1 1に示した第 1の実施形態にかかる位置情報復号装置は位置情報並替部 1
1 0 5を備えた。
これに対し、 第 2の実施形態では、 位置情報の順序関係は数値の大 、順のままとし、 代 わりに有理数の値の増加するステップ幅を求めて、 位置情報符号と共に符号化/復号する ことによって差分符号化 Z復号を可能とする。 従って、 第' 1の実施形態に示すような並べ 替え処理を必要としない有理数位置情報の差分符号化 復号が可能となる。 更に、 以下で 詳しく説明するように、 本実施形態では、 各階層に対して固定のステップ幅を決定して与 え、 かつ、 このステップ幅を、 ある階層で分岐した時にそれより下位の階層に与える位置 情報の初期値を兼ねるとすることで、 符号化/復号処理をより簡単化すると共に、 符号化 効率の低下を抑えている。 このため、 図 1 7に示した第 2の実施形態にかかる位置情報符 号化装置は、 図 1の位置情報並替部 1 0 1の代わりにステツプ幅決定部 1 7 0 1及びステ ップ幅符号化部 1 7 0 6を備え、 また、 後述する図 2 3に示した第 2の実施形態にかかる 位置情報復号装置は、 図 1 1の位置情報並替部 1 1 0 5の代わりにステツプ幅復号部 2 3 0 5を備える。
以下、 第 2の実施形態にかかる位置情報符号化装置、 符号化方法、 復号装置並びに復号 方法を順を追って説明するが、 これらの説明は、 既に述べた第 1の実施形態にかかる位置 情報符号化装置、 符号化方法、 復号装置及び方法での説明を前提とし、 重複する箇所につ いては適宜省略して説明する。 従って、 第 1の実施形態で記載した限定等の詳細な記載を 本実施形態では改めて記載しないが、 特に断らない限り、 第 1の実施形態で記載した限定 等の記載は第 2の実施形態にもそのまま当てはまるものとする。
図 1 8は、 本発明の第 2の実施形態にかかる位置情報符号化装置の一構成例で符号化さ れる位置情報 (図 2に示した検索情報の各データに対応する識別情報に含まれる位置情報 ) と、 それらを符号化して得られる位置情報符号列との一例を示した図である。 以下、 図 1 8に基づいて、 図 1 7に示す本発明の第 2の実施形態にかかる位置情報符号化装置の動 作を説明する。
先頭位置情報符号化部 1 7 0 2は、符号化する複数の位置情報のうち、先頭の位置情報を 、 差分を用いない通常の方式で符号化する。 図 1 8では、 先頭の位置情報 (1/4, 1/ 4) を、 1変数あたり 5ピットとし 5 X 2 = 1 0ビットで符号化して与えている。第 1の実 施形態と同様、 本発明では先頭の位置情報に関する符号化方式については特に言及しない 前位置情報保持部 1 7 0 3は、 1つ前に処理された位置情報を記録し、 次の位置情報の 符号化を行う際に出力して提供する。 はじめに、 符号化された先頭の位置情報 (1Z4, 1/4) が記録され保持される。
ステップ幅決定部 1 7 0 1は、 数値の大小順に並んだ位置情報の値に対し、 ある値から 次の値への増加幅にあたる固定の 「ステップ幅」 を各階層について求めて、 ステップ幅符 号化部 1 7 0 6及び分岐階層判定部 1 7 04に出力する。
あるステップ幅に対して、 そのステップ幅を初期値とし、 同じくそのステップ幅の値を 順次加えていくと、 そのステップ幅によって表現可能な位置情報の値が決まる。 ある階層 に対するステップ幅は、 その階層に付された全ての位置情報の値が表現可能となるように 値を設定する。 また、 余分な位置情報の符号化を避け効率良く位置情報を符号化するため 、 ステップ幅はできるだけ大きな値を選ぶ。本実施形態では以下に、 「2のべき乗分の自然 数 (分母が 2のべき乗数、 分子が自然数)」 の有理数で表現された位置情報に対して、 「2 のべき乗分の 1 (分母が 2のべき乗数、 分子が 1)」 で表されるステップ幅を用いた例を示 す。 無論、 有理数の表現がこれに限らないのと同様に、 ステップ幅の表現はこれに限るも のではない。
図 1 8で符号化する位置情報のうち、 第 1階層に存在している位置情報の値は 1./4,
1/2, 3Z4であるため、 初期値 1/4とし、 同じくステップ幅 1/4として値を更新 していけば、 これらの値を含むことができる。 第 2階層に存在している位置情報の値も同 じく 1/4, 1/2, 3/4であるため、 第 2階層のステップ幅も同じく 1/4と設定さ れる。 仮に、 存在する位置情報の値が 1/4, 1/2, 5 8であったとすれば, 初期値 =ステップ幅 = 1/4で値 5/8を表現することはできない。 この場合には, 初期値 =ス テツプ幅 = 1/8と設定することによって, 1/4, 1/2, 5Z8の値を含むことがで さる。
上記の 「2のべき乗分の 1」 で表されるステップ幅については、 もっと単純に、 同じ階 層に存在している位置情報の値を図 4 Aの順序関係に従つて並べ、 最後尾に位置した値の 解像度 =分母の値によって求めることができる。 ステツプ幅は <最後尾の値の分母値〉分 の 1である。 これは、 図 4 Aの順序関係に従って位置情報の値を並べると最後尾の値の解 像度が最も高いために、 それより解像度が低い (または同じ) 他の値がその解像度で表せ ることが保証されるためである。
なお、 本実施形態の例では用いていないが、 ある階層にある全ての位置情報の値を数値 の大小関係に従って並べ、 隣り合う 2つの値どうしで差分を計算じ、 それらの差分値及び 最小の位置情報の値についての最大公約数となる値を求めることで、 更に効率の良いステ ップ幅を設定することも可能である。
例えば、 位置情報の値として 3/16, 3/8, 3/4のみが使われているような場合 には, 3/16と 3Z8との差分値 3Z16, 3 Z 8と 3 / 4との差分値 3 / 8 , 及び最 小の位置情報値 3/16とで最大公約数をとると 3/16となる。 従って, この値を位置 情報の値のステツプ幅及び初期値に設定することができ, 効率良く 3つの値 3/16, 3 /8, 3Z4を表すことができる。
ステップ幅符号化部 1706は、 ステップ幅決定部 1701で決定された各階層に対応 するステップ幅を符号化して出力する。 符号化は、 各階層に対応するステップ幅のそれぞ れについて行い、 前述の先頭位匱情報の符号化と同様、 通常の方式で符号化される。 図 1 8では、 第 1階層のステップ幅 1/4、 第 2階層のステップ幅 1Z4が各々 5ビットで符 号化されて与えられている。 ステップ幅の符号化方式についても、 先頭位置情報の符号化 方式と同様、 本発明では特に言及しない。
なお、 本実施形態では、 ステップ幅の符号化を先頭位置情報の符号化の後に行うとして いるが、 これに限らず、 先頭位置情報の前に処理することもできる。 また、 後述するよう に、 ここで規定されるステップ幅の値は、 差分符号化/復号で分岐階層の位置情報の値を 更新する際、 分岐階層より下の階層の位置情報に与える位置情報の初期値としても利用さ れる。 - - …一 分岐階層判定部 1704で行う処理は、 基本的に、 従来の整数表現された位置情報に対 する符号化で行う処理と同等である。 異なる点は、 整数表現された位置情報ではステップ 幅が固定 「1」 であったのに対して、 ステップ幅決定部 1701で求めたステップ幅を用 いる点、 及び、 整数表現された位置情報では初期値が 0であったのに対し、 位置情報の初 期値に同じくステップ幅決定部 1701で求めたステップ幅の値を用いる点にある。 第 1 の実施形態にかかる位置情報符号化装置で詳しく説明したのと同様、 図 17の符号化装置 においては、 ステップ幅の値は欠落の判定に用いられる。
分岐階層判定部 1704は、 入力されてくる符号化すべき位置情報と、 前位置情報保持 部 1703に保持されている位置情報とを比較し、 それらを基に分岐階層の判定を行って 、 その判定結果を差分位置情報符号化部 1705に出力する。 かつ、 この時、 分岐階層判 定部 1704では、 ステップ幅決定部 1701から出力されるステップ幅の値に基づいて 、 第 1の実施形態で説明したのと同様にして欠落を判定し、 出力する。 ■
差分位置情報符号化部 1705は、 分岐階層判定部 1704での判定結果 (分岐階層及 び欠落の有無) に従って位置情報符号を選択し、 出力する。
図 18で 2番目の位置情報 (1/4, 1/2) を符号化する際、 前位置情報保持部 17 03には、 1つ前に符号化された位置情報 (1/4, 1/4) が保持されている。 これら を比較すると、 第 1階層、 即ちシーンの階層の値は同じであり、 第 2階層、 即ちショット の階層の位置情報の値が増加している。 更にこの時、 第 2階層の位置情報の値は 1ノ 4か ら 1ノ2へ、 第 2階層のステップ幅 1Z4分増加しているため、 欠落無く分岐しているこ とが判る。 この判定結果を差分位置情報符号化部 1705に出力し、 差分位置情報符号化 部 1705からは、 第 2階層に対応する位置情報符号 "10" が出力される。 なお、 位置 情報符号の種類並びに位置情報符号のビット長に関しては、 第 1の実施形態での説明がそ のまま適用される。
図 18で 4番目の位置情報 (1/2, 1/4) を符号化する際、 前位置情報保持部 17
03には、 1つ前に符号化された位置情報 (1/4, 3/4) が保持されている。 これら を比較すると、 第 1階層、 即ちシーンの階層で位置情報の値が増加している。 更にこの時
、 第 1階層の位置情報の値は 1/4から 1Z2へ、 第 1階層のステップ幅 1 Z 4分増加し ており、 かつ、 第 2階層の値は、 第 2階層のステップ幅と同じ初期値 1/4になっている ため、 欠落無く分岐していることが判る。 この判定結果を差分位置情報符号化部 1705 に出力し、 差分位置情報符号化部 1705からは、 第 1階層に対応する位置情報符号 "0 1" が出力される。
上述の分岐階層判定部 1704における判定で、 欠落があると判定された場合には、 既 に第 1の実施形態で図 9と共に説明したように、 欠落符号を用いた同様の位置情報の符号 化を行えばよい。 特に、 図 19に、 欠落符号を用いた符号化が必要となる木構造を持った 検索情報の例を示す。 図 19では、 動画像コンテンツ 1910が 2つのシーンからなり、 1つめのシーン (シーン # 1/4) が 3つのショットから、 2つめのシーン (シーン # 1 /2) が 4つのショットからなる例を示しており、 シーン # 1ノ 4の各ショットには位置 情報の値として 1Z4, 1/2, 3ノ4が, シ一ン # 1ノ2の 4つのショットには位置情 報 1Z8, 1/4, 3Z8, 1Z2が振られている。 この場合、 初期値 =ステップ幅 =1 /8と設定することで全ての値を更新値に含むことができるため、 ステップ幅は 1ノ 8と なる。
図 20には、 図 19に示された検索情報の各データ 1901〜 1907に対応する識別 情報から抜き出された位置情報と、 それらの位置情報を符号化した位置情報符号列の例を 示している。 この例で、 シーン # 1Z4を構成する各ショットの位置情報は 1Z4, 1 / 2, 3,/ 4であり、 それらのみではステップ幅 1/4が適当と考えられるが、 全体として ステップ幅は 1Z8と設定されたため、 本来無い位置 (1/4, 3/8), (1/4, 5/ 8) が欠落位置として現れ、 符号化されている。
上記のような冗長を軽減するための方法として、 図 21に示したように、 木が分岐する 毎にステップ幅を求めなおして、 符号化して与えることが可能である。 ここで木が分岐し た時に符号化されるステップ幅は、 分岐階層より下に存在する階層について与える。 図 2 1では、 第 1階履で分岐した場合に、 第 1階層より下の階層、 即ち第 2階層に対するステ ップ幅を符号化して与えている。 階層数が増えれば、 分岐した時に与えるステツプ幅の数 も増える。 つまり、 仮に 3つの階層があり、 第 1階層で分岐が起きた場合には、 第 2階層 、 第 3階層に対応する 2つのステップ幅を符号化して与えることになる。
図 22は、 本発明の第 2の実施形態にかかる位置情報の符号化方法、 特に、 図 18及び 図 20の位置情報符号列の例と共に説明した符号化装置の動作に対応する位置情報の符号 化方法を説明するためのフロー図である。
図 22に示した本発明の第 2の実施形態にかかる位置情報符号化方法は、 図 1 0に示し た第 1の実施形態にかかる位置情報符号化方法に対して、 位置情報並替ステップ (ステツ プ S 1) を無くし、 代わりにステップ幅符号化ステップ (ステップ S 32) の追加と、 欠 落判定ステップ (ステップ S 7) を、 得られたステップ幅に基づく欠落判定ステップ (ス テツプ S 37) に変更して構成される。 その他の処理は第 1の実施形態にかかる位置情報 符号化方法の処理と同じであり、 図 1 0のステップ S 2, S 3, S 4, S 5, S 6, S 8 , S 9, S 1 0, S 1 1カ^ それぞれ図 22のステップ S 3 1, S 33 , S 34, S 3 5 , S 36, S 38, S 39, S 40, S 41に対応する。
次に、 本発明の第 2の実施形態にかかる位置情報の復号装置を、 図 23に基づいて説明 する。
図 2 3は、 本発明の第 2の実施形態にかかる位置情報復号装置の概略構成を示す機能ブ ロック図である。
本発明の第 2の実施形態にかかる位置情報の復号装置は、 先頭位置情報復号部 230 1 、 前位置情報保持部 2302、 ステップ幅復号部 2305、 分岐階層判定部 2303、 並 びに差分位置情報復号部 2304からなる。 このうち、 先頭位置倩報復号部 230 1, 前 位置情報保持部 2 302, 分岐階層判定部 2303については、 図 1 1と共に説明した第 1の実施形態にかかる位置情報復号装置を構成する機能プロックにおける先頭位置情報復 号部 1 1 0 1, 前位置情報保持部 1 1 02, 分岐階層判定部 1 1 03と同一のものである 本実施形態の位置情報復号装置において、 ステップ幅復号部 230 5及び差分位置情報 復号部 2304を除く動作は、 従来の整数表現された位置情報の復号処理と基本的に変わ らない。 ここでは、 本実施形態にかかる位置情報復号装置の動作を、 図 18に示した位匿 情報符号列を入力した場合で説明する。
先頭位置情報復号部 230 1は、 先頭の位置情報を復号し、 その位置情報を出力する。 第 1の実施形態と同様に、 通常の方式で符号化された位置情報の復号であり、 その動作に ついては本発明では特に言及しない。
図 1 8の位置情報符号列のうち、 先頭の 1 0ビット ( 5ビット X階層数 2 ) から先頭の 位置情報 ( 1 / 4, 1/4) が復号され、 前位置情報保持部 2302に記録されて保持さ れる。
次に、 ステップ幅復号部 2305は、 各階層に対応するステタブ幅の^!を復号して求め る。 図 18では、 先頭位置情報の符号に続くステップ幅の符号 10ビット (5ビット X階 層数 2) を読み込み、 第 1階層のステップ幅 1Z4、 第 2階層のステップ幅 1Z4を復号 する。 復号された各階層のステップ幅の値は、 差分位置情報復号部 2304へ出力されて 、 位置情報を復号するのに使用される。
ステップ幅も、 先頭の位置情報と同様、 通常の方式で符号化 Z復号されるものである。 従って、 その動作については本発明では特に言及しない。 ここでは、 上記の先頭位置情報 の各符号のビット数 5ピット、 ステップ幅の各符号のピット数 5ビットが、 符号化する方 式によって定まるものである。
分岐階層判定部 2303は、 位置情報符号を順次読み込み、 位置情報が示す分岐階層を 差分位置情報復号部 2304に通知する。 またこの時、 第 1の実施形態にかかる位置情報 復号装置の説明で述べたのと同様に、 欠落符号を読み込んで、 欠落位置の処理を行うこと もできる。
図 1 8の位置情報符号列に対し、 ステップ幅復号部 2305でステップ幅の復号を行つ たのち、 分岐階層判定部 2303は位置情報符号 "10" を読み込む。 位置情報符号 "1 0" は、 第 2階層、 即ちショットの階層が分岐していることを示した符号であり、 この判 定結果が差分位置情報復号部 2304に通知される。 なお、 位置情報符号の種類並びに位 置情報符号のピット長に関しては、 第 1の実施形態での説明がそのまま適用される。 差分位置情報復号部 2304では、 前位置情報保持部 2302に保持されている 1つ前 の位置情報と分岐階層判定部 2303から得られる判定結果に基づいて、 位置情報を復号 する。 この時、 ステップ幅復号部 230 5で復号されて得られているステップ幅が、 有理 数表現された位置情報の値の更新幅、 及び、 上位階層で分岐した際に下位階層に与える位 置情報の初期値として利用される。
上記 "1 0" が第 2階層、 即ちショットの階層で分岐していることが判定された時点で
、 前位置情報保持部 2302には、 先頭位置情報復号部 230 1で復号された位置情報 (
1/4, 1/4) が保持されている。 差分位置情報復号部 2304では、 この保持されて いる位置情報に対し、 分岐階層にあたる第 2階層の値に、 ステップ幅復号部 2305で得 られた第 2階層のステップ幅 1/4を加える。 こうして位置情報 (1/4, 1/2) が復 号され、 出力されると共に、 この値が前位置情報保持部 2302で保持される。
図 1 8で位置情報 (1/4, 3/4) が復号され前位置情報保持部 2302に保持され- ている時点で、 次に、 分岐階層判定部 2303には、 位置情報符号 "0 1" が読み込まれ る。 位置情報符号 "0 1" は、 第 1階層、 即ちシーンの階層で分岐があることを示した符 号であり、 判定結果が差分位置情報復号部 2304に出力される。
差分位置情報復号部 2304では、 分岐階層判定部 2303から通知される判定結果に 基づいて、 前位置情報保持部 2 302に保持されている位置情報 (1Z4, 3/4) に対 して、 分岐階層にあたる第 1階層の位置情報の値をステップ幅復号部 2305で得られて いる第 1階層のステップ幅 1 / 4分増加させると共に、 分岐階層より下の階層となる第 2 階層については、 第 2階層のステップ幅 1Z4を初期値として与える。 この結果、 位置情 報 (1Z2, 1/4) が復号される。 復号された位置情報 (1/2, 1/4) は出力され ると共に、 前位置情報保持部 2302に入力されて保持される。
これを、 分岐階層判定部 2303で終了符号 "1 1" が読み込まれるまで行い、 終了符 号が読み込まれたら復号を終了する。
次に、 図 20に基づいて、 欠落がある場合の復号処理を説明する。 第 1の実施形態での 説明と同様に、 本実施形態でも欠落符号を用いて、 欠落のある複数の位置情報の復号を行 うことができる。
ステップ幅を復号するまでの処理は、 上記で図 18に基づいて説明した復号処理と同じ である。 図 20の位置情報符号列では、 ステップ幅復号部 230 5で第 1階層のステップ 幅 1ノ 4、 第 2階層のステツプ幅 1 / 8が復号されて得られる。
図 20の位置情報符号列に対し、 ステップ幅復号部 230 5でステップ幅の復号を行つ たのち、 分岐階層判定部 2303は位置情報符号 "00" を読み込む。 位置情報符号 "0 0" は、 位置の欠落を表す欠落符号である。 このため、 位置の欠落があることを差分位置 情報復号部 2304に通知すると共に、 分岐階層判定部 2303は次の位置情報符号 "1 0" を読み込む。 位置情報符号 "1 0" は、 第 2階層、 即ちショットの階層が分岐してい ることを示した符号であり、 この判定結果が差分位置情報復号部 2304に通知される。 差分位置情報復号部 2304では、 前位置情報保持部 2302に保持されている 1つ前 の位置情報と分岐階層判定部 2303から得られる判定結果に基づいて、 次の位置情報を 復号する。 今、 判定結果として、 分岐階層が第 2階層であること、 及びその位置が欠落位 置であることが通知されている。
前位置情報保持部 2302には、 位置情報 (1/4, 1/4) が保持されている。 この 保持されている位置情報に対し、 分岐階層にあたる第 2階層の値に、 ステップ幅復号部 2 305で得られている第 2階層のズテツプ幅 1/8を加えて、 位置情報 (1/4, 3/8 ) が復号される。 但し、 この位置は欠落位置であることが通知されている。 このため、'こ の位置情報は復号された位置情報として外部に出力されることなく、 前位置情報保持部 2 302にのみ記録されて保持される。
次に、 分岐階層判定部 2303は位置情報符号 "10" を読み込む。 位置情報符号 "1 0" は、 第 2階層、 即ちショットの階層が分岐していることを示した符号であり、 判定結 果が差分位置情報復号部 2304に通知される。
この時点で、 前位置情報保持部 2302には、 位置情報 (1/4, 3/8) が保持され ている。 この保持されている位置情報に対し、 分岐階層にあたる第 2階層の値に、 ステツ プ幅復号部 2305で得られている第 2階層のステップ幅 1 / 8を加えて、 位置情報 ( 1 4, 1/2) が復号される。 この位置は欠落位置ではないため、 この位置情報は復号さ れた位置情報として外部に出力されると共に、 前位置情報保持部 2302で保持される。 このようにして、 位置の欠落がある場合にも、 正しい位置情報が復号されて得られる。 次に、 図 21の位置情報符号列に対する復号処理について説明する。
位置情報 (1/4, 3/4) を復号するまでの処理は、 上記で図 18に基づいて説明し た復号処理と同じである。 図 21の位置情報符号列では、 先頭の位置情報 (1 4, 1/ 4) が復号されたのち、 ステップ幅復号部 2305で第 1階層のステップ幅 1/4、 第 2 階層のステップ幅 1Z4が復号され、 以降読み込まれる位置情報符号 "10"、 "10" に よって位置情報 (1/4, 1/2)、 (1/4, 3 / 4 )が順次復号されて出力される。 次に、 分岐階層判定部 2303では位置情報符号 "01" が読み込まれる。 位置情報符 号 " 01 " は、 第 1階層が分岐階層であることを示した符号である。
図 21の位置情報符号列は、 分岐階層が決定された時、 その分岐階層より下にある階層 に対して、 新たにステップ幅を符号化するようにして符号化されたものである。 第 1階層 が分岐階層である場合、 その直後には、 第 1階層より下の階層、 即ち第 2階層に対しての ステップ幅が符号化されて与えられている。 このため、 第 1階層が分岐階層であると判断 された時点で、 第 2階層のステップ幅にあたる符号 5ビットがステップ幅復号部 2305 に読み込まれ、 新たな第 2階層のステツプ幅 1 / 8が復号されて得られる。
上記の例で第 2階層が分岐階層である場合に新たなステツプ幅の復号が無いのは、 第 2 階層より下に位置する階層が無いためであるとも言える。 なお、 上記の例は第 1、 第 2の 2つの階層での例であるが、 例えば第 1から第 3の 3つの階層からなる位置情報で、 第 1 階層が分岐階層であると判定された場合には、 その直後に続く第 2階層、 第 3階層のステ ップ幅を符号化した符号を復号する。 即ち、 分岐階層より下にある階層数分のステップ幅 を復号する。 更に階層数が増えても同様である。
前位置情報保持部 2302には位置情報 ( 1 / 4, 3/4) が保持されている。 差分位 置情報復号部 2304では、 この保持されている位置情報に対し、 分岐階層にあたる第 1 階層の値に、 ステップ幅復号部 230 5で得られている第 1階層のステップ幅 1Z4を加 える。 かつ、 分岐階層より下に位置する第 2階層について、 ステップ幅復号部 230 5で 新たに復号されて得られた第 2階層のステップ幅 1/8を、 初期値として与える。 こうし て位置情報 (1/2, 1/8) が復号されて得られる。
復号された位置情報 ( 1ノ 2 , 1/8) は出力されると共に、 前位置情報保持部 230 2に入力されて保持される。 次に分岐階層判定部 2303で読み込まれるのは、 第 2階層 が分岐階層であることを示す位置情報符号 "1 0" である。 差分位置情報復号部 2304 では、 前位置情報保持部 2302に保持されている位置情報 (1Z2, 1/8) に対し、 第 2階層のステップ幅 1ノ8を加えて、 次の位置情報 (1/2, 1/4) を復号して得る 以降、 (1/2, 3/8)、 (1/2, 1/2) が復号されたのち、 終了符号 "1 1" が読 み込まれて復号を終了する。
図 2 1で示した、 ステップ幅を枝が分岐する都度符号化/復号する方式は、 枝毎に位置 情報の値の付け方にムラがあるような木を符号化する場合に、 図 20で示した欠落符号を 使う方式に比べて、 符号化効率の低下を抑える効果がある。 また、 以上説明した本実施形 態で符号化 Z復号されるステップ幅は、 位置情報の値の増加幅と初期値とを兼ねるものと した。 本発明では、 このように値の増加幅と初期値とを共通化することによって、 符号化 効率の低下を抑えつつ有理数表現された位置情報の差分符号化を可能とするものである。 あるいは、 ステップ幅 初期値とを共通化せず、 各々符号化することも可能である。 この 場合、 上記図 2 1と共に説明した実施形態に対して、 分岐階層より下の階層数分のステツ プ幅を符号化 Z復号する、 とした点を、 分岐階層より下の階層数分のステップ幅及び初期 位置の値を符号化ノ復号する、 と置き換えることで実現される。 このようにすれば、 初期 位置の値とステツプ幅の値とにずれがある場合に、 より無駄の少ない符号化 Z復号が行え る。
また、 極端な例としては、 全ての位置情報符号について、 ステップ幅を同時に符号化し て添付し、 ステップ幅を自由に変えて符号化/復号する位置情報の差分符号化/復号方式 を構成することもできる。
図 2 4は、 本発明の第 2の実施形態にかかる位置情報の復号方法、 特に、 図 1 8及び図 2 0の位置情報符号列の例と共に説明した復号装置の動作に対応する位置情報の復号方法 を説明するためのフロー図である。
図 2 4に示した本発明の第 2の実施形態にかかる位置情報復号方法は、 図 1 6に示した 第 1の実施形態にかかる位置情報復号方法に対して、 位 β情報並替ステップ (ステップ S 2 9 ) を無くし、 代わりにステップ幅復号ステップ (ステップ S 5 2 ) の追加と、 差分位 置情報復号ステップ (ステップ S 2 6 ) を、 復号して得られたステップ幅に基づく差分位 置情報復号ステップ (ステップ S 5 7 ) に変更して構成される。 その他の処理は第 1の実 施形態にかかる位置情報復号方法の処理と同じであり、 図 1 6のステップ S 2 1, S 2 2 , S 2 3 , S 2 4 , S 2 5 , S 2 7 , S 2 8が、 それぞれ図 2 4のステツプ S 5 1, S 5 3 , S 5 4 , S 5 5 , S 5 6 , S 5 8 , S 5 9に対応する。
なお、 本発明の第 1の実施形態に示した位置情報並替部 1 0 1を備える位置情報符号化 装置と、 本発明の第 2の実施形態に示したステツプ幅決定部 1 7 0 1及びステツプ幅符号 化部 1 7 0 6を備える位置情報符号化装 eとは、 別個に実施されるものとして記載したが 、 これに限らず、 それらの機能ブロックをいずれも備えた位置情報符号化装置を構成する こともできる。 その際, 位置情報の並べ替え (位置情報並替部 1 0 1での処理) を伴う符 号化を行ったか、 ステップ幅の符号化 (ステップ幅決定部 1 7 0 1及びステップ幅符号化 部 1 7 0 6での処理) を伴う符号化を行つたかを示したフラグを用意して、 そのフラグの 値を位置情報符号列と共に記録する。 あるいは、 位置情報符号列の属性情報として、 位置 情報符号列と別個のストリーム又はファイルに記録するとしてもよい。
また、 第 1の実施形態に示した位置情報並替部 1 1 0 5を備える位置情報復号装置と、 第 2の実施形態に示したステップ幅復号部 2 3 0 5を備える位置情報復号装置とを、 別個 の実施とせず、 それらの機能プロックをいずれも備えた位置情報復号装置を構成すること もできる。 この位置情報復号装置は、 上記の、 位置情報符号化装置によって記録されたフ ラグを受け取り、 フラグの値に従って、 並べ替え (位置情報並替部 1 1 0 5での処理) を 伴う復号を行うか、 ステップ幅の復号 (ステップ幅復号部 2 3 0 5での処理) を伴う復号 を行うかを切替える。
既に示した.ように、 第 1の実施形態に示した位置情報の符号化装置及び復号装置では、 並べ替えを行うことにより、 数値上の順序関係からは更新値が一意に特定できない有理数 表現による位置情報であっても、 整数表現の位置情報と同様に差分符号化による位置情報 の符号化 Z復号を可能とする。 また、 第 2の実施形態に示した位置情報の符号化装置及び 復号装置では、 ステップ幅を符号化し位置情報符号と共に記録することで、 元の位置情報 の順序関係を保持したまま差分符号化が行え、 直観的に理解が容易な位置情報の符号化/ 復号が可能である、 といった異なる効果を持つ。 このため、 フラグを用いて切替えること により、 状況に応じて適切な符号化方式を選択して利用することが可能となる。
また同様に、 第 1の実施形態に示した位置情報並替ステップ S 1を有する位置情報符号 化方法と、 第 2の実施形態に示したステップ幅符号化ステップ S 3 2を有する位置情報符 号化方法とから、 それらのステツプをいずれも有した位置情報符号化方法を構成すること もできる。 また、 第 1の実施形態に示した位置情報並替ステップ S 2 9を有する位置情報 復号方法と、 第 2の実施形態に示したステップ幅復号ステップ S 5 2を有する位置情報復 号方法とから、 それらのステップをいずれも有した位置情報復号方法を構成することもで きる。 」
以上、 本発明の位置情報の符号化装置及び方法、 位置情報の復号装置及び方法を中心に 各実施形態を説明してきたが、 本発明は、 上述した各実施形態における装置 (符号化装置 及び/又は復号装置) としてコンピュータを機能させるための、 あるいはコンピュータに 上述した各実施形態における方法 (符号化方法及び Z又は復号方法) の処理手順を実行さ せるためのプログラムとしても、 あるいは、 そのプログラムを記録したコンピュータ読み 取り可能な記録媒体としての形態も可能である。
本発明にかかる装置として、 コンピュータを機能させるためにそのコンピュータに組み 込まれるプログラムは、 上述した各装置における各部 (各手段に対応) としてコンビユー 夕の C P Uや M P Uを動作させるよう記述を行う力 若しくは、 上述した各方法における 各ステップの処理を C P Uや M P Uに実行させるよう記述を行うかなどして、 容易に実現 可能である。
図 25は、 一般的な情報処理装置の構成例を示す図で、 本発明にかかる装置を説明する ための図である。
本発明にかかる装置における各種情報の処理について、 図 25に示す一般的な情報処理 装置の構成例を参照して説明する。 本発明にかかる装置で取り扱われる情報は、 その何れ の装置においてもその処理時に一時的に RAM2 502に蓄積され、 その後画像データべ ース等の構成データとして各種 ROM2503に格納される。 また、 本発明にかかる装置 としてコンピュータを機能させるためのプログラムを、 ROM2503に蓄積し、 CPU 2 50 1が読み出すことによって実行される。 また、 処理の途中経過や途中結果は、 表示 装置 2 50 5を通してユーザに提示され、 必要な場合には、 キーボード, マウス (ポイン ティングデバイス) 等からユーザが処理に必要なパラメ一夕を入力指定すればよい。 この プログラムは、 ユーザが使用する際に容易となるような表示装置 2 50 5用のグラフィカ ルユーザインターフエ一スを備えるようにするとよい。 また、 その他の処理の実行中に作 られる中間データも RAM2 502に蓄積され、 必要に応じて、 CPU 250 1によって 読み出し、 修正 '書き込みが行われる。 なお、 CPU2 50 1, RAM2502, ROM 2 503, 入力装置 2 504, 表示装置 (CRT, LCD等) 2 50 5, 出力装置 (印刷 装置, 通信装置等) 2506は、 バス 2 507により接続されるか、 各要素の一部が L A N等のネットワークを介して接続されていればよい。 また、 通信装置は通信回線によって 他の装置とデータの遣り取りを行うための装置である。
次に、 本発明による位置情報の符号化/復号の機能を実現するためのプログラムゃデー タを記憶した記録媒体の実施形態を説明する。 記録媒体としては、 具体的には、 CD— R
OM、 光磁気ディスク、 DVD-ROM, FD、 フラッシュ モリ, メモリスティ ック、 及びその他各種 R〇Mや R AM等が想定でき、 これら記録媒体に上述した本発明の各実施 形態の装置の機能をコンピュータに実行させ、 位置情報の符号化 Z復号の機能を実現する ためのプログラムを記録して流通させることにより、 当機能の実現を容易にする。 そして コンピュータ等の情報処理装置に上述のごとくの記録媒体を装着して情報処理装置により プログラムを読み出すか、 若しくは情報処理装置が備えている記録媒体に当プログラムを 記憶させておき、 必要に応じて読み出すことにより、 本発明にかかる位置情報の符号化/ 復号の機能を実行することができる

Claims

請求の範囲
1 . 木構造中の同一の階層にある複数の葉及びノ又は節に対応する複数の位置情報を符 号化する符号化装置であって、
符号化する複数の位置情報を所定の順序関係に従って並び替える並び替え手段と、 前記並び替え手段から出力された複数の位置情報の、 連続する 2つの位置情報から、 前 記所定の順序関係に従って分岐階層を判定する判定手段と、
前記分岐階層に対応する符号を出力する符号化手段と、
を備えることを特徴とする符号化装置。
2 . 木構造中の同一の階層にある複数の葉及び/又は節に対応する複数の位置情報を符 号化する符号化装置であって、
符号化する複数の位置情報が所定の順序関係に従って並んだものであり、
前記符号化する複数の位置情報の、 連続する 2つの位置情報から、 前記所定の順序関係 に従って分岐階層を判定する判定手段と、
前記分岐階層に対応する符号を出力する符号化手段と、
を備えることを特徴とする符号化装置。
3 . 前記複数の位置情報は、 有理数で表現された有理数位置情報であって、 前記所定の順序関係は、 有理数の解像度の大小順に従って決められていることを特徴と する、 請求項 1又は 2に記載の符号化装置。
4 . 木構造中の同一の階層にある複数の葉及びノ又は節に対応する複数の位置情報を符 号化する符号化装啬であつて、
符号化する複数の位置情報に基づいて位置情報の値の増加幅を決める増加幅決定手段と 前記増加幅を符号化して符号を出力する増加幅符号化手段と、
前記符号化する複数の位置情報の連続する 2つの位置情報から、 分岐階層を判定する判 定手段と、
前記分岐階層に対応する符号を出力する分岐階層符号化手段と、
を備えることを特徴とする符号化装置。
5 . 前記複数の位置情報は、 有理数で表現された有理数位置情報であって、 前記増加幅は、 前記複数の位置情報が全て符号化可能となるように、 前記分岐階層毎に 決めることを特徵とする、 請求項 4に記載の符号化装置。
6 . 前記木構造は検索情報を表すものであり、 前記符号化する複数の位置情報に対応す る葉又は節は、 前記検索情報に含まれる同種の要素に対応した葉又は節であることを特徴 とする、 請求項 1乃至 5のいずれか 1に記載の符号化装置。
7 . 木構造中の同一の階層にある複数の葉及び/又は節に対応する複数の位置情報を符 号化する符号化方法であつて、
符号化する複数の位置情報を所定の順序関係に従って並び替える並び替えステップと、 前記並び替えステップから出力された複数の位置情報の、 連続する 2つの位置情報から
、 前記所定の順序関係に従って分岐階層を判定する判定ステップと、
前記分岐階層に対応する符号を出力する符号化ステツプと、
を有することを特徴とする符号化方法。
8 . 木構造中の同一の階層にある複数の葉及びノ又は節に対応する複数の位置情報を符 号化する符号化方法であつて、
符号化する複数の位置情報が所定の順序関係に従って並んだものであり、
前記符号化する複数の位置情報の、 連続する 2つの位置情報から、 前記所定の順序関係 に従つて分岐階層を判定する判定ステツプと、
前記分岐階層に対応する符号を出力する符号化ステップと、
を有することを特徴とする符号化方法。
9 . 前記複数の位置情報は、 有理数で表現された有理数位置情報であって、
' 前記所定の順序関係は、 有理数の解像度の大小順に従って決められていることを特徴と する、 請求項 7又は 8に記載の符号化方法。
1 0 . 木構造中の同一の階履にある複数の葉及び/又は節に対応する複数の位置情報を 符号化する符号化方法であつて >
符号化する複数の位置情報に基づいて位置情報の値の増加幅を決める増加幅決定ステツ プと、
前記増加幅を符号化して符号を出力する増加幅符号化ステツプと、
前記符号化する複数の位置情報の連続する 2つの位置情報から、 分岐階層を判定する判 前記分岐階層に対応する符号を出力する分岐階層符号化ステツプと、 を有することを特徴とする符号化方法。
1 1 . 前記複数の位置情報は、 有理数で表現された有理数位置情報であって、 前記増加幅は、 前記複数の位置情報が全て符号化可能となるように、 前記分岐階層毎に 決めることを特徴とする、 請求項 1 0に記載の符号化方法。
1 2 . 前記木構造は検索情報を表すものであり、 前記符号化する複数の位置情報に対応 する葉又は節は、 前記検索情報に含まれる同種の要素に対応した葉又は節であることを特 徴とする、 請求項 7乃至 1 1のいずれか 1に記載の符号化方法。
1 3 . 木構造中の同一の階層にある複数の葉及び/又は節に対応する複数の位置情報が 符号化された位置情報符号列を復号する復号装置であって、
復号された位置情報を逐次保持する保持手段と、
前記位置情報符号に基づいて、 連続する 2つの位置情報の分岐階層を判定する判定手段 と、
前記保持手段で保持された位置情報に対して、 前記分岐階層に対応する位置情報の値を 所定の順序関係に従って 1っ分增加させる復号手段と、
を備えることを特徴とする復号装置。
1 4 . 当該復号装置は、 さらに、
複数の前記復号された位置情報を、 数値の大小順に従って並び替える並び替え手段を備 えることを特徴とする、 請求項 1 3に記載の復号装置。
1 5 . 前記並び替え手段は、 さらに、
前記復号された位置情報の各々に振られる、 数値の大小順を表した連続番号を計算する 計算手段を含むことを特徴とする、 請求項 1 4に記載の復号装置。
1 6 . 前記複数の位置情報は、 有理数で表現された有理数位置情報であって、 前記所定の順序関係は、 有理数の解像度の大小順に従って決められていることを特徴と する、 請求項 1 3乃至 1 5のいずれか 1に記載の復号装置。
1 7 . 木構造中の同一の階層にある複数の葉及び 又は節に対応する複数の位置情報が 符号化された位置情報符号列を復号する復号装置であって、
位置情報の値の増加幅を復号する増加幅復号手段と、
復号された位置情報を逐次保持する保持手段と、 前記位置情報符号に基づいて、 連続する 2つの位置情報の分岐階層を判定する判定手段 と、 一
前記保持手段で保持された位置情報に対して、 前記分岐階層に対応する位置情報の値を 前記増加幅分増加させる位置情報復号手段と、
を備えることを特徴とする復号装置。
1 8 . 前記木構造は検索情報を表すものであり、 前記復号される位置情報に対応する葉 又は節は、 前記検索情報に含まれる同種の要素に対応した葉又は節であることを特徴とす る、 請求項 1 3乃至 1 7のいずれか 1に記載の復号装置。
1 9 . 木構造中の同一の階層にある複数の葉及び/又は節に対応する複数の位置情報が 符号化された位置情報符号列を復号する復号方法であって、
復号された位置情報を逐次保持する保持ステップと、
前記位置情報符号に基づいて、 連続する 2つの位置情報の分岐階層を判定する判定ステ ップと、
前記保持ステップで保持された位置情報に対して、 前記分岐階層に対応する位置情報の 値を所定の順序関係に従って 1つ分増加させる復号ステップと、
を有することを特徴とする復号方法。
2 0 . 当該復号方法は、 さらに、
複数の前記復号された位置情報を、 数値の大小順に従つて並び替える並び替えステツプ を有することを特徴とする、 請求項 1 9に記載の復号方法。
2 1 . 前記並び替えステップは、 さらに、
前記復号された位置情報の各々に振られる、 数値の大小順を表した連続番号を計算する 計算ステップを含むことを特徴とする、 請求項 2 0に記載の復号方法。
2 2。 前記複数の位置情報は、 有理数で表現された有理数位置情報であって、 前記所定の順序関係は 有理数の解像度の大小順に従って決められていることを特徴と する、 請求項 1 9乃至 2 1のいずれか 1に記載の復号方法。
2 3 . 木構造中の同一の階層にある複数の葉及びノ又は節に対応する複数の位置情報が 符号化された位置情報符号列を復号する復号方法であつて、
位置情報の値の増加幅を復号する増加幅復号ステツプと、
復号された位置情報を逐次保持する保持二 前記位置情報符号に基づいて、 連続する 2つの位置情報の分岐階層を判定する判定ステ ップと、
前記保持ステツプで保持された位置情報に対して、 前記分岐階層に対応する位置情報の 値を前記増加幅分増加させる位置情報復号ステップと、
を備えることを特徴とする復号方法。
2 4 . 前記木構造は検索情報を表すものであり、 前記復号される位置情報に対応する葉 又は節は、 前記検索情報に含まれる同種の要素に対応した葉又は節であることを特徴とす る、 請求項 1 9乃至 2 3のいずれか 1に記載の復号方法。
2 5 . 請求項 1乃至 6のいずれか 1に記載の符号化装置として、 コンピュータを機能さ せるためのプログラム。
2 6 . 請求項 7乃至 1 2のいずれか 1に記載の符号化方法をコンピュータに実行させる ためのプログラム。
2 7 . 請求項 1 3乃至 1 8のいずれか 1に記載の復号装置として、 コンピュータを機能 させるためのプログラム。
2 8 . 請求項 1 9乃至 2 4のいずれか 1に記載の復号方法をコンピュータに実行させる ためのプログラム。
2 9 . 請求項 2 5乃至 2 8のいずれか 1に記載のプログラムを記録したコンピュータ読 み取り可能な記録媒体。
PCT/JP2004/000563 2003-02-03 2004-01-22 符号化装置及び方法、復号装置及び方法、プログラム、並びに記録媒体 WO2004070955A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP04704340A EP1598941A4 (en) 2003-02-03 2004-01-22 DEVICE AND METHOD FOR CODING, DEVICE AND METHOD FOR DECODING, PROGRAM AND RECORDING MEDIUM
CN2004800091626A CN1768480B (zh) 2003-02-03 2004-01-22 编码装置和方法、解码装置和方法
US10/543,005 US7624326B2 (en) 2003-02-03 2004-01-22 Encoding device and method, decoding device and method, program, and recording medium
JP2005504794A JP4004521B2 (ja) 2003-02-03 2004-01-22 符号化装置及び方法、復号装置及び方法、プログラム、並びに記録媒体

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2003-025365 2003-02-03
JP2003025365 2003-02-03
JP2003189517 2003-07-01
JP2003-189517 2003-07-01

Publications (1)

Publication Number Publication Date
WO2004070955A1 true WO2004070955A1 (ja) 2004-08-19

Family

ID=32852648

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2004/000563 WO2004070955A1 (ja) 2003-02-03 2004-01-22 符号化装置及び方法、復号装置及び方法、プログラム、並びに記録媒体

Country Status (6)

Country Link
US (1) US7624326B2 (ja)
EP (1) EP1598941A4 (ja)
JP (1) JP4004521B2 (ja)
KR (1) KR100742738B1 (ja)
CN (1) CN1768480B (ja)
WO (1) WO2004070955A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7362909B2 (en) 2003-04-10 2008-04-22 Sharp Kabushiki Kaisha Coding device and method and decoding device and method
JPWO2006035813A1 (ja) * 2004-09-30 2008-07-31 シャープ株式会社 符号化装置、符号化方法、復号装置、復号方法、プログラムおよび該プログラムを記録した機械読取り可能な記録媒体

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7333667B2 (en) * 2004-12-23 2008-02-19 Kabushiki Kaisha Toshiba Image encoding apparatus and image encoding method
KR100961444B1 (ko) * 2007-04-23 2010-06-09 한국전자통신연구원 멀티미디어 콘텐츠를 검색하는 방법 및 장치
US8990673B2 (en) * 2008-05-30 2015-03-24 Nbcuniversal Media, Llc System and method for providing digital content
US8532437B2 (en) * 2009-05-18 2013-09-10 Citrix Systems, Inc. Systems and methods for block recomposition for compound image compression
JP2013523043A (ja) 2010-03-22 2013-06-13 エルアールディシー システムズ、エルエルシー ソースデータセットの完全性を識別及び保護する方法
EP3699771A1 (en) * 2019-02-21 2020-08-26 CoreMedia AG Method and apparatus for managing data in a content management system
CN113886433A (zh) * 2021-10-01 2022-01-04 浙江大学 一种层次结构区域检索方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001326901A (ja) * 2000-05-18 2001-11-22 Sharp Corp 動画像シーン情報管理装置
JP2002123523A (ja) * 2000-10-18 2002-04-26 Sharp Corp 検索情報生成装置
JP2002132834A (ja) * 2000-10-20 2002-05-10 Sharp Corp 検索情報伝送装置
JP2003092757A (ja) * 2001-07-10 2003-03-28 Sharp Corp 符号化装置及び方法、並びに復号装置及び方法

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2780306B2 (ja) * 1989-02-22 1998-07-30 三菱電機株式会社 位置情報符号化方法
EP0494709B1 (en) * 1991-01-09 1998-05-27 Philips Electronics Uk Limited Signal transmission system with sepatate tree coding for each of the parameters
US5781237A (en) * 1994-03-25 1998-07-14 Matsushita Electric Industrial Co., Ltd. Video coding apparatus and video coding method
JP3278297B2 (ja) * 1994-07-20 2002-04-30 富士通株式会社 データ圧縮方法及びデータ復元方法並びにデータ圧縮装置及びデータ復元装置
US5737596A (en) * 1995-12-11 1998-04-07 Seagate Technology, Inc. Sequential numerical information encoder and decoder
US6195392B1 (en) * 1998-06-30 2001-02-27 U.S. Philips Corporation Method and arrangement for generating program clock reference values (PCRS) in MPEG bitstreams
JP3483806B2 (ja) * 1999-07-28 2004-01-06 松下電器産業株式会社 動画像信号の符号化装置及び符号化方法
WO2002052857A2 (de) * 2000-12-22 2002-07-04 Siemens Aktiengesellschaft Verfahren zur verbesserung der funktionalität der binären repräsentation von mpeg-7 und anderen xml-basierten inhaltsbeschreibungen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001326901A (ja) * 2000-05-18 2001-11-22 Sharp Corp 動画像シーン情報管理装置
JP2002123523A (ja) * 2000-10-18 2002-04-26 Sharp Corp 検索情報生成装置
JP2002132834A (ja) * 2000-10-20 2002-05-10 Sharp Corp 検索情報伝送装置
JP2003092757A (ja) * 2001-07-10 2003-03-28 Sharp Corp 符号化装置及び方法、並びに復号装置及び方法

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AVARO O. ET AL: "MPEG-4 Systems: overview", IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, vol. 11, no. 6, June 2001 (2001-06-01), pages 760 - 764, XP001059680 *
See also references of EP1598941A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7362909B2 (en) 2003-04-10 2008-04-22 Sharp Kabushiki Kaisha Coding device and method and decoding device and method
JPWO2006035813A1 (ja) * 2004-09-30 2008-07-31 シャープ株式会社 符号化装置、符号化方法、復号装置、復号方法、プログラムおよび該プログラムを記録した機械読取り可能な記録媒体

Also Published As

Publication number Publication date
JPWO2004070955A1 (ja) 2006-06-01
KR100742738B1 (ko) 2007-07-25
KR20050097974A (ko) 2005-10-10
CN1768480A (zh) 2006-05-03
EP1598941A1 (en) 2005-11-23
US20060188167A1 (en) 2006-08-24
EP1598941A4 (en) 2009-02-18
JP4004521B2 (ja) 2007-11-07
CN1768480B (zh) 2012-03-14
US7624326B2 (en) 2009-11-24

Similar Documents

Publication Publication Date Title
US7358874B2 (en) Data compression using a stream selector with edit-in-place capability for compressed data
Fiat et al. Generalized'write-once'memories
JP3989745B2 (ja) 接頭語予測を用いた符号化方法及び装置
US6621429B2 (en) Huffman decoding method and decoder, huffman decoding table, method of preparing the table, and storage media
CN1998241B (zh) 用于对xml文档编码和/或解码的方法及装置
CN100417028C (zh) 执行霍夫曼解码的方法
JP2005236993A (ja) 複数画像の要約方法および装置
JP3865694B2 (ja) 構造化文書の木構造におけるパスの符号化および復号化方法
JP2005525625A (ja) データ構造によるコンピュータ表現及びそれに関連する符号化/復号化方法
JP5656593B2 (ja) 符号化データを復号する装置及び方法
JP2012533921A (ja) データの圧縮方法
WO2004070955A1 (ja) 符号化装置及び方法、復号装置及び方法、プログラム、並びに記録媒体
KR100486251B1 (ko) 가변 길이 코드 복호화 장치 및 방법
TWI245999B (en) Efficient means for creating mpeg-4 intermedia format from mpeg-4 textual representation
US7617237B2 (en) Encoding device, encoding method, decoding device, decoding method, program and machine readable recording medium containing the program
JP4005918B2 (ja) Mpeg−7および他のxmlベースの内容記述のバイナリ表現における機能を改善する方法
US7362909B2 (en) Coding device and method and decoding device and method
US20120319875A1 (en) Method for storing node information of huffman tree and corresponding decoding method
JP4120980B2 (ja) 符号化装置及び方法、並びに復号装置及び方法
JP5149454B1 (ja) Ykm形式圧縮プログラムを記録した記録媒体
Furht et al. Lossless JPEG image compression
Béal Extensions of the method of poles for code construction
CN1523766B (zh) 记录媒体的编码与解码方法
Leighton et al. Optimizing XML compression
JP2002057585A (ja) 復号装置

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): BW GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2005504794

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 2006188167

Country of ref document: US

Ref document number: 10543005

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 1020057014289

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 2004704340

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 20048091626

Country of ref document: CN

WWP Wipo information: published in national office

Ref document number: 1020057014289

Country of ref document: KR

WWP Wipo information: published in national office

Ref document number: 2004704340

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 10543005

Country of ref document: US