1. An image processing method implemented by an encoder, the method comprising: acquiring N pieces of motion information from N adjacent image blocks adjacent to a current image block, wherein the N adjacent image blocks correspond to the N pieces of motion information, wherein the N pieces of motion information indicate N reference image blocks in a reference image of the current image block, wherein the N pieces of motion information correspond to the N reference image blocks, and wherein N is a positive integer; determining candidate motion information from the N pieces of motion information according to a preset rule, wherein the candidate motion information comprises two or more pieces of information of the N pieces of motion information; determining, in the reference image, a location range of a to-be-stored pixel according to the candidate motion information; storing all pixels in the location range, wherein the location range covers two or more candidate reference image blocks, wherein the candidate reference image blocks comprise two or more image blocks of the N reference image blocks, and wherein the candidate reference image block is an image block corresponding to the candidate motion information; reading the pixels in the location range; and performing encoding processing on the current image block according to the pixels in the location range, to generate a target data stream.