Provided are an intraframe coding method, device and
encoder for depth images. The method is applied to 3D video coding or multi-view video coding. The method comprises: in an intraframe coding mode for the depth images, generating a non-all-zero residual and an all-zero residual when a prediction unit is coded; and selecting rate-
distortion optimization between the non-all-zero residual and the all-zero residual so as to be used as the
residual coding scheme of the prediction unit. The device is applied to 3D video coding or multi-view video coding. The device comprises: a residual generation unit used in an intraframe coding mode for depth images, for generating a non-all-zero residual and an all-zero residual when a prediction unit is coded; and a rate-
distortion optimization selecting unit used for selecting rate-
distortion optimization between the non-all-zero residual and the all-zero residual so as to be used as the
residual coding scheme of the prediction unit. By adopting the method, device and
encoder provided by the invention, the
code rate required for coding depth images is reduced, and the coding performance is increased.