Re: Luma Sample Interpolation Process

Laurent Aimar <[email protected]> Thu, 11 Dec 2003 11:38:35 +0100
Newsgroups gmane.comp.video.h264.devel
Message-ID <[email protected]>
On Thu, Dec 11, 2003, Ángel Martín Navas wrote:
>    I have a question about Luma Sample Interpolation Process. The Section
>    8.4.2.2.1 of the "Standard"  explains that process, but it doesn't explain
>    how to obtain all samples.

 I think it does, it says: (8.4.2.2.1)

In Figure 8-4, the positions labelled with upper-case letters within
shaded blocks represent luma samples at full-sample locations inside the
given two-dimensional array refPicLXL of luma samples. These samples
may be used for generating the predicted luma sample value predPartLXL[
xL, yL ]. The locations ( xZL, yZL ) for each of the corresponding luma
samples Z, where Z may be A, B, C, D, E, F, G, H, I, J, K, L, M, N, P,
Q, R, S, T, or U, inside the given array refPicLXL of luma samples are
derived as follows:

       xZL = Clip3( 0, PicWidthInSamplesL ­ 1, xIntL + xDZL )
       yZL = Clip3( 0, PicHeightInSamplesL ­ 1, yIntL + yDZL ) (8-184)

 So if you need a pixel out of the picture, just reuse the edge pixel.

>    How do I have to obtain the samples at the
>    edges of the image? Should I repeat the border samples of the image to
>    obtain the interpolated samples? Where can I find in the Standard the
>    explanation of this question?

-- 
fenrir



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click