We describe design of lossless block codes for geometric, Laplacian, and similar distributions frequently arising
in image and video coding. Proposed codes can be understood as a generalization of Golomb codes, allowing
more precise adaptation to values of parameters of distributions, and resulting in lower redundancy. Design of
universal block codes for a class of geometric distributions is also studied.