Beispiel #1
0
/**
This function allows to get the luminance prediction of a non IDR picture when xFracl = 3 and yFracl = 0.


@param image Table of current frame.
@param refPicLXl Table of the reference decoded picture buffer.
@param PicWidthSamples Stride of the reference buffer.
@param stride Stride of the current image.
*/
void luma_sample_interp_3_0(unsigned char image [RESTRICT], unsigned char refPicLXl[RESTRICT],	const short PicWidthSamples, const short stride) {

    /* No vertical interpolation */
    unsigned char *ptr_ref = &refPicLXl[-2];
    unsigned char *ptr_imge = &image[0];
    unsigned char *ptr_rf = &refPicLXl[1];
    unsigned char *ptr_img = &image[0];

    /* No vertical interpolation */
    luma_sample_interp_n_0(ptr_ref, ptr_imge, PicWidthSamples, stride);
    luma_sample_interp_2pass(ptr_rf, ptr_img, PicWidthSamples, stride);
}
Beispiel #2
0
/**
This function allows to get the luminance prediction of a non IDR picture when xFracl = 0 and yFracl = 3.


@param image Table of current frame.
@param refPicLXl Table of the reference decoded picture buffer.
@param PicWidthSamples Stride of the reference buffer.
@param stride Stride of the current image.
*/
void luma_sample_interp_0_3(unsigned char image [RESTRICT], unsigned char refPicLXl[RESTRICT],	const short PicWidthSamples, const short stride)
{

	/* No horizontal interpolation */
	unsigned char *ptr_ref = &refPicLXl[- (PicWidthSamples << 1)];
	unsigned char *ptr_img = &image[0];
	luma_sample_interp_0_n(ptr_ref, ptr_img, PicWidthSamples, stride);


	ptr_ref = &refPicLXl[PicWidthSamples];
	ptr_img = &image[0];
	luma_sample_interp_2pass(ptr_ref, ptr_img, PicWidthSamples, stride);
}