A method for the coding of Visual Dynamic Range images, the VDR images having a dynamic range higher than a dynamic range of a Standard Dynamic Range image and lower than a dynamic range of a High Dynamic Range image, the method comprising: receiving a residual VDR input image, the residual VDR input image representative of a difference between a predicted VDR image and a corresponding original VDR image; applying a non-linear quantization to the residual VDR input image to output a quantized VDR residual image; and coding the quantized VDR residual image using a residual encoder, wherein the method step of non-linear quantization comprises: transforming pixel values of the residual VDR input image to corresponding quantized pixel values according to a non-linear transfer function; said transfer function characterized by one or more function parameters, an offset parameter, and an output dynamic range parameter representative for a desired maximum dynamic range of the non-linear quantization; wherein said non-linear transfer function has a mid-range slope controlled by one or more of the function parameters, and wherein said one or more of the function parameters, the offset parameter, and the output dynamic range parameters of the non-linear transfer function are set by a method comprising: receiving from the residual encoder quantizer input information, the quantizer input information selected from the group consisting of: an average of block quantization parameters in a frame, a maximum and a minimum of quantizer values used by the residual encoder, and a combination of quantizer values used by the residual encoder other than said average, maximum and minimum; and adjusting, in a subsequent frame, any of: said one or more function parameters, the offset parameter, and the output dynamic range parameter based on said received quantizer input information. receiving a residual VDR input image, the residual VDR input image representative of a difference between a predicted VDR image and a corresponding original VDR image; applying a non-linear quantization to the residual VDR input image to output a quantized VDR residual image; and coding the quantized VDR residual image using a residual encoder, wherein the method step of non-linear quantization comprises: transforming pixel values of the residual VDR input image to corresponding quantized pixel values according to a non-linear transfer function; said transfer function characterized by one or more function parameters, an offset parameter, and an output dynamic range parameter representative for a desired maximum dynamic range of the non-linear quantization; transforming pixel values of the residual VDR input image to corresponding quantized pixel values according to a non-linear transfer function; said transfer function characterized by one or more function parameters, an offset parameter, and an output dynamic range parameter representative for a desired maximum dynamic range of the non-linear quantization; receiving from the residual encoder quantizer input information, the quantizer input information selected from the group consisting of: an average of block quantization parameters in a frame, a maximum and a minimum of quantizer values used by the residual encoder, and a combination of quantizer values used by the residual encoder other than said average, maximum and minimum; and an average of block quantization parameters in a frame, a maximum and a minimum of quantizer values used by the residual encoder, and a combination of quantizer values used by the residual encoder other than said average, maximum and minimum; and said one or more function parameters, the offset parameter, and the output dynamic range parameter