1. A method for intra-frame compression, the method comprising: determining whether a predefined reference group of pixels for performing predictive coding on a target group of pixels of a video frame is available in the video frame, the predefined reference group of pixels not being a part of the target group of pixels; and if at least some of the pixels of the predefined reference group of pixels for performing predictive coding on the target group of pixels of the video frame are not available in the video frame, selecting a set of pixels from the target group of pixels and performing predictive coding on the rest of the target group of pixels using a reconstructed version of the set of pixels as reference pixels to compress the video frame.