Image transmission and reception device

A transmission and reception device (ex115) that includes a transmission device (ex115) that generates image data by encoding an image signal and transmitting the encoded image data, and a receiving device (ex115) that receives and decodes the image data, said transmission device (ex115) comprising: a first image processing unit (ex312) configured to encode, block by block, the image signal by transforming the image signal into coefficients that show spatial frequency components to generate image data; and a transmission unit (ex201) configured to transmit the image data, wherein said first image processing unit (ex312) includes: a determination unit (201) configured to calculate a predictive value for the numbers of coefficients not nulls contained in a current block to be coded based on the number of non-null coefficients contained in a coded block located on a periphery of the current block, the non-null coefficient being a coefficient with a value other than "0"; a selection unit (204) configured to select a variable length code table based on the calculated predictive value; a variable length coding unit (206) configured to perform the variable length coding of the number of non-zero coefficients contained in the current block, using the selected variable length code table, and said receiving device (ex115) comprising: a receiving unit (ex201) configured to receive the image data; and a second image processing unit (ex309) configured to decode, block by block, the image data to generate the image signal, the image data having been obtained by transforming the image signal into coefficients showing components of spatial frequency and by coding the coefficients.