Method for adaptively processing video samples in a video signal frame, the video samples being arranged in a Largest Coding Unit, the method comprising: Extracting a plurality of video samples from the Largest Coding Unit; Assigning an edge offset class to the extracted plurality of video samples, the edge offset class indicating a directional pattern of the extracted plurality of video samples; and Selecting an edge offset category from a plurality of edge offset categories for the extracted plurality of video samples, by comparing a current video sample value with values of its two neighbors along the directional pattern, the edge offset category characterizing an alignment of the extracted video samples with respect to each other, the plurality of edge offset categories being assigned to the edge offset class, Calculating a correction offset for the current video sample of the extracted plurality of video samples upon the basis of the value of the current video sample and a second value of a second video sample of the extracted plurality of video samples; and Adding the correction offset to the value of the current first video sample, or subtracting the correction offset from the value of the current first video sample, and wherein the correction offset for the current video sample of the extracted plurality of video samples is calculated upon the basis of a range of allowed values or a list of allowed values consisting of a set of discrete values extracted from the range of allowed values, characterized in that the range of allowed values is a difference between the value of a current pixel and a result that is obtained by linearly interpolating a value associated to a position of the current pixel based on its two neighboring pixels along the directional pattern indicated by the edge offset class. Extracting a plurality of video samples from the Largest Coding Unit; Assigning an edge offset class to the extracted plurality of video samples, the edge offset class indicating a directional pattern of the extracted plurality of video samples; and Selecting an edge offset category from a plurality of edge offset categories for the extracted plurality of video samples, by comparing a current video sample value with values of its two neighbors along the directional pattern, the edge offset category characterizing an alignment of the extracted video samples with respect to each other, the plurality of edge offset categories being assigned to the edge offset class, Calculating a correction offset for the current video sample of the extracted plurality of video samples upon the basis of the value of the current video sample and a second value of a second video sample of the extracted plurality of video samples; and Adding the correction offset to the value of the current first video sample, or subtracting the correction offset from the value of the current first video sample, and wherein the correction offset for the current video sample of the extracted plurality of video samples is calculated upon the basis of a range of allowed values or a list of allowed values consisting of a set of discrete values extracted from the range of allowed values, characterized in that the range of allowed values is a difference between the value of a current pixel and a result that is obtained by linearly interpolating a value associated to a position of the current pixel based on its two neighboring pixels along the directional pattern indicated by the edge offset class. <EOS>