Patent attributes
Aspects of the disclosure provide an apparatus for video coding. The apparatus includes circuitry configured to reconstruct one or more blocks neighboring a first block that is non-square, and determine a range of reference samples required for an intra prediction of the first block based on a shape of the first block. The range includes samples having coordinates of x=[−1], y=[−1 to (dimension1*2+m)], and x=[0 to (dimension2*2+n)], y=[−1]. Dimension1 denotes a length of a first side of the first block, dimension2 denotes a length of a second side of the first block that is perpendicular to the first side of the first block, and m and n are integers greater or equal to 0. The circuitry is further configured to perform the intra prediction based on the reference samples in the determined range.