1. An image processing method implemented by an encoder, comprising: acquiring N pieces of motion information from N adjacent image blocks adjacent to a current image block, wherein the N adjacent image blocks are in a one-to-one correspondence with the N pieces of motion information, wherein the N pieces of motion information are used to indicate N reference image blocks in a reference image of the current image block, wherein the N pieces of motion information are in another one-to-one correspondence with 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 at least one piece 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 the all pixels of a candidate reference image block, wherein the candidate reference image block comprises at least one image block 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.