The second block portion corresponding to {HEAD ~ the determined transformed block portion} is selected, and block position information indicating the position of the selected second block portion and a transformation parameter representing the transform processing of the selected second block portion are {TAIL ~ output} 
The second block portion corresponding to { HEAD ~ the determined transformed block portion } is selected , and block position information indicating the position of the selected second block portion and a transformation parameter representing the transform processing of the selected second block portion are { TAIL ~ output }
OTH OTH OTH OTH OTH OTH HEAD HEAD HEAD HEAD HEAD HEAD HEAD HEAD HEAD OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH TAIL TAIL TAIL TAIL TAIL