img_luma.c File Reference

Luma interpolation functions. More...

#include "contributors.h"
#include <limits.h>
#include "global.h"
#include "image.h"
#include "img_luma.h"
#include "memalloc.h"

Include dependency graph for img_luma.c:

Go to the source code of this file.

Functions

void getSubImagesLuma (ImageParameters *p_Img, InputParameters *p_Inp, StorablePicture *s)
void getSubImageInteger (StorablePicture *s, imgpel **dstImg, imgpel **srcImg)
void getHorSubImageSixTap (ImageParameters *p_Img, StorablePicture *s, imgpel **dstImg, imgpel **srcImg)
void getVerSubImageSixTap (ImageParameters *p_Img, StorablePicture *s, imgpel **dstImg, imgpel **srcImg)
void getVerSubImageSixTapTmp (ImageParameters *p_Img, StorablePicture *s, imgpel **dstImg)
void getSubImageBiLinear (StorablePicture *s, imgpel **dstImg, imgpel **srcImgL, imgpel **srcImgR)
void getHorSubImageBiLinear (StorablePicture *s, imgpel **dstImg, imgpel **srcImgL, imgpel **srcImgR)
void getVerSubImageBiLinear (StorablePicture *s, imgpel **dstImg, imgpel **srcImgT, imgpel **srcImgB)
void getDiagSubImageBiLinear (StorablePicture *s, imgpel **dstImg, imgpel **srcImgT, imgpel **srcImgB)

Variables

static const int ONE_FOURTH_TAP [2][3]


Detailed Description

Luma interpolation functions.

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file img_luma.c.


Function Documentation

void getDiagSubImageBiLinear ( StorablePicture s,
imgpel **  dstImg,
imgpel **  srcImgT,
imgpel **  srcImgB 
)

Does _diagonal_ interpolation using the BiLinear filter.

Parameters:
s pointer to StorablePicture structure
dstImg destination Image
srcImgT source top/left image
srcImgB source bottom/right image

Definition at line 597 of file img_luma.c.

Referenced by getSubImagesLuma().

void getHorSubImageBiLinear ( StorablePicture s,
imgpel **  dstImg,
imgpel **  srcImgL,
imgpel **  srcImgR 
)

Does _horizontal_ interpolation using the BiLinear filter.

Parameters:
s pointer to StorablePicture structure
dstImg destination Image
srcImgL source left image
srcImgR source right image

Definition at line 510 of file img_luma.c.

Referenced by getSubImagesLuma().

void getHorSubImageSixTap ( ImageParameters p_Img,
StorablePicture s,
imgpel **  dstImg,
imgpel **  srcImg 
)

Does _horizontal_ interpolation using the SIX TAP filters.

Parameters:
p_Img pointer to ImageParameters structure
s pointer to StorablePicture structure
dstImg destination image
srcImg source image

Definition at line 183 of file img_luma.c.

References img_par::imgY_sub_tmp, and img_par::max_imgpel_value.

Referenced by getSubImagesLuma().

void getSubImageBiLinear ( StorablePicture s,
imgpel **  dstImg,
imgpel **  srcImgL,
imgpel **  srcImgR 
)

Does _horizontal_ interpolation using the BiLinear filter.

Parameters:
s pointer to StorablePicture structure
dstImg destination Image
srcImgL source left image
srcImgR source right image

Definition at line 473 of file img_luma.c.

Referenced by getSubImagesLuma().

void getSubImageInteger ( StorablePicture s,
imgpel **  dstImg,
imgpel **  srcImg 
)

Copy Integer Samples to image [0][0].

Parameters:
s pointer to StorablePicture structure
dstImg destination image
srcImg source image

Definition at line 120 of file img_luma.c.

References IMG_PAD_SIZE.

Referenced by getSubImagesLuma().

void getSubImagesLuma ( ImageParameters p_Img,
InputParameters p_Inp,
StorablePicture s 
)

Creates the 4x4 = 16 images that contain quarter-pel samples sub-sampled at different spatial orientations; enables more efficient implementation.

Parameters:
p_Img pointer to ImageParameters structure
p_Inp pointer to InputParameters structure
s pointer to StorablePicture structure s************************************************************************

Definition at line 46 of file img_luma.c.

References getDiagSubImageBiLinear(), getHorSubImageBiLinear(), getHorSubImageSixTap(), getSubImageBiLinear(), getSubImageInteger(), getVerSubImageBiLinear(), getVerSubImageSixTap(), getVerSubImageSixTapTmp(), storable_picture::p_curr_img, and storable_picture::p_curr_img_sub.

Referenced by UnifiedOneForthPix(), and UnifiedOneForthPix_JV().

Here is the call graph for this function:

void getVerSubImageBiLinear ( StorablePicture s,
imgpel **  dstImg,
imgpel **  srcImgT,
imgpel **  srcImgB 
)

Does _vertical_ interpolation using the BiLinear filter.

Parameters:
s pointer to StorablePicture structure
dstImg destination Image
srcImgT source top image
srcImgB source bottom image

Definition at line 550 of file img_luma.c.

Referenced by getSubImagesLuma().

void getVerSubImageSixTap ( ImageParameters p_Img,
StorablePicture s,
imgpel **  dstImg,
imgpel **  srcImg 
)

Does _vertical_ interpolation using the SIX TAP filters.

Parameters:
p_Img pointer to ImageParameters structure
s pointer to StorablePicture structure
dstImg pointer to target image
srcImg pointer to source image

Definition at line 290 of file img_luma.c.

References img_par::max_imgpel_value.

Referenced by getSubImagesLuma().

void getVerSubImageSixTapTmp ( ImageParameters p_Img,
StorablePicture s,
imgpel **  dstImg 
)

Does _vertical_ interpolation using the SIX TAP filters.

Parameters:
p_Img pointer to ImageParameters structure
s pointer to StorablePicture structure
dstImg pointer to source image

Definition at line 380 of file img_luma.c.

References img_par::imgY_sub_tmp, and img_par::max_imgpel_value.

Referenced by getSubImagesLuma().


Variable Documentation

const int ONE_FOURTH_TAP[2][3] [static]

Initial value:

{
  {20, -5, 1},  
  {20,-4, 0},   
}

Definition at line 25 of file img_luma.c.


Documentation generated with DoxyGen