Picture coding method, picture decoding method, picture coding apparatus, picture decoding apparatus, and program thereof
View Patent ↗A picture coding method of the present invention codes a picture signal and a ratio of a number of luminance pixels and a number of chrominance pixels for the picture signal, and then one coding method out of at least two coding methods is selected depending on the ratio. Next, data related to a picture size is coded in accordance with the selected coding method. The data related to the picture size indicates a size of the picture corresponding to the picture signal or an output area, which is a pixel area to be outputted in decoding in a whole pixel area coded in the picture signal coding.
1. A picture coding method comprising:
coding, using a processor, a picture signal;
coding a ratio of a number of luminance pixels to a number of chrominance pixels for the picture signal;
selecting one coding method out of at least two coding methods, the one coding method being selected based on the ratio; and
coding data related to a picture size in accordance with the selected coding method,
wherein the data related to the picture size indicates a size of a picture corresponding to the picture signal,
wherein, when a ratio of a number of horizontal luminance pixels to a number of horizontal chrominance pixels is M:1, said selecting selects a coding method coding 1/M of a number of horizontal pixels, the horizontal luminance pixels and the horizontal chrominance pixels being included in the picture signal, and
wherein the data related to the picture size indicates an output area in a whole pixel area coded in said coding of the picture signal, the output area being a pixel area to be outputted in decoding.
2. A picture coding apparatus comprising:
a picture coding unit including a processor operable to code a picture signal;
a ratio coding unit operable to code a ratio of a number of luminance pixels to a number of chrominance pixels for the picture signal;
a selecting unit operable to select one coding method out of at least two coding methods, the one coding method being selected based on the ratio; and
a data coding unit operable to code data related to a picture size in accordance with the selected coding method,
wherein the data related to the picture size indicates a size of a picture corresponding to the picture signal,
wherein, when a ratio of a number of horizontal luminance pixels to a number of horizontal chrominance pixels is M:1, said selecting unit selects a coding method coding 1/M of a number of horizontal pixels, the horizontal luminance pixels and the horizontal chrominance pixels being included in the picture signal, and
wherein the data related to the picture size indicates an output area in a whole pixel area coded by said picture coding unit, the output area being a pixel area to be outputted in decoding.
3. A non-transitory computer-readable recording medium having a picture coding program recorded thereon, the picture coding program causing a computer to execute a method comprising:
coding, using a processor, a picture signal;
coding a ratio of a number of luminance pixels to a number of chrominance pixels for the picture signal;
selecting one coding method out of at least two coding methods, the one coding method being selected based on the ratio; and
coding data related to a picture size in accordance with the selected coding method,
wherein the data related to the picture size indicates a size of a picture corresponding to the picture signal,
wherein, when a ratio of a number of horizontal luminance pixels to a number of horizontal chrominance pixels is M:1, said selecting selects a coding method coding 1/M of a number of horizontal pixels, the horizontal luminance pixels and the horizontal chrominance pixels being included in the picture signal, and
wherein the data related to the picture size indicates an output area in a whole pixel area coded in said coding of the picture signal, the output area being a pixel area to be outputted in decoding.