Decoding device and encoding device
According to an embodiment, a decoding device includes an acquiring unit configured to acquire first format information, encoded data, and first filter information, the first format information indicating a resolution of a color-difference component of the encoded data; a decoding unit configured to decode the encoded data to obtain a decoded image; and a converting unit configured to convert a color-difference format of the decoded image represented by a first color-difference format by using a filter identified by the filter information.
1. A decoding device comprising:
a receiver to acquire transmission information including first color-difference format information, second color-difference format information, encoded data, and filter information, the first color-difference format information indicating a resolution of a color-difference component of the encoded data, the second color-difference format information indicating a resolution of a color-difference component used when reproducing a decoded image obtained by decoding the encoded data, the filter information indicating a configuration of a filter, the resolution of the color-difference component of each of the first color-difference format information and the second color-difference format information indicating a color-difference format of a 4:4:4 format, a 4:2:2 format, or a 4:2:0 format;
a decoder to decode the encoded data to obtain a decoded image; and
a converter to convert a color-difference format of the decoded image represented by using the filter which has been configured by the filter information which has been acquired by the receiver,
wherein:
the filter information includes a filter index, and
the converter selects a filter including at least one of a horizontal sampling filter and a vertical sampling filter from predetermined filters in accordance with the filter index, the first color-difference format information, and the second color-difference format information.
2. A decoding device comprising:
a receiver to acquiring transmission information including first color-difference format information, second color-difference format information, encoded data, and filter information, the first format color-difference information indicating a resolution of a color-difference component of the encoded data, the second color-difference format information indicating a resolution of a color-difference component used when reproducing a decoded image obtained by decoding the encoded data, the filter information indicating a configuration of a filter, the resolution of the color-difference component of each of the first color-difference format information and the second color-difference format information indicating a color-difference format of a 4:4:4 format, a 4:2:2 format, or a 4:2:0 format;
a decoder to decode the encoded data to obtain a decoded image; and
a converter to convert a color-difference format of the decoded image represented by using the filter which has been configured by the filter information which has been acquired by the receiver,
wherein:
the filter information includes a filter identification, and
the converter selects a filter including at least one of a horizontal sampling filter and a vertical sampling filter from predetermined filters in accordance with the filter identification, the first color-difference format information, and the second color-difference format information.
3. A decoding device comprising:
means for acquiring transmission information including first color-difference format information, second color-difference format information, encoded data, and filter information, the first color-difference format information indicating a resolution of a color-difference component of the encoded data, the second color-difference format information indicating a resolution of a color-difference component used when reproducing a decoded image obtained by decoding the encoded data, the filter information indicating a configuration of a filter, the resolution of the color-difference component of each of the first color-difference format information and the second color-difference format information indicating a color-difference format of a 4:4:4 format, a 4:2:2 format, or a 4:2:0 format;
means for decoding the encoded data to obtain a decoded image; and
means for converting a color-difference format of the decoded image represented by using the filter which has been configured by the filter information which has been acquired by the means for acquiring,
wherein:
the filter information includes a filter index, and
the means for converting selects a filter including at least one of a horizontal sampling filter and a vertical sampling filter from predetermined filters in accordance with the filter index, the first color-difference format information, and the second color-difference format information.
4. A decoding device comprising:
means for acquiring transmission information including first color-difference format information, second color-difference format information, encoded data, and filter information, the first color-difference format information indicating a resolution of a color-difference component of the encoded data, the second color-difference format information indicating a resolution of a color-difference component used when reproducing a decoded image obtained by decoding the encoded data, the filter information indicating a configuration of a filter, the resolution of the color-difference component of each of the first color-difference format information and the second color-difference format information indicating a color-difference format of a 4:4:4 format, a 4:2:2 format, or a 4:2:0 format;
means for decoding the encoded data to obtain a decoded image; and
means for converting a color-difference format of the decoded image represented by using the filter which has been configured by the filter information which has been acquired by the means for acquiring,
wherein:
the filter information includes a filter identification, and
the means for converting selects a filter including at least one of a horizontal sampling filter and a vertical sampling filter from predetermined filters in accordance with the filter identification, the first color-difference format information, and the second color-difference format information.
5. A decoding method, comprising:
acquiring transmission information including first color-difference format information, second color-difference format information, encoded data, and filter information, the first color-difference format information indicating a resolution of a color-difference component of the encoded data, the second color-difference format information indicating a resolution of a color-difference component used when reproducing a decoded image obtained by decoding the encoded data, the filter information indicating a configuration of a filter, the resolution of the color-difference component of each of the first color-difference format information and the second color-difference format information indicating a color-difference format of a 4:4:4 format, a 4:2:2 format, or a 4:2:0 format;
decoding the encoded data to obtain a decoded image; and
converting a color-difference format of the decoded image represented by using the filter which has been configured by the filter information which has been acquired by the acquiring,
wherein:
the filter information includes a filter index, and
the converting selects a filter including at least one of a horizontal sampling filter and a vertical sampling filter from predetermined filters in accordance with the filter index, the first color-difference format information, and the second color-difference format information.
6. A decoding method, comprising:
acquiring transmission information including first color-difference format information, second color-difference format information, encoded data, and filter information, the first color-difference format information indicating a resolution of a color-difference component of the encoded data, the second color-difference format information indicating a resolution of a color-difference component used when reproducing a decoded image obtained by decoding the encoded data, the filter information indicating a configuration of a filter, the resolution of the color-difference component of each of the first color-difference format information and the second color-difference format information indicating a color-difference format of a 4:4:4 format, a 4:2:2 format, or a 4:2:0 format;
decoding the encoded data to obtain a decoded image; and
converting a color-difference format of the decoded image represented by using the filter which has been configured by the filter information which has been acquired by the acquiring,
wherein:
the filter information includes a filter identification, and
the converting selects a filter including at least one of a horizontal sampling filter and a vertical sampling filter from predetermined filters in accordance with the filter identification, the first color-difference format information, and the second color-difference format information.