wp_lms.c File Reference

Estimate weights for WP using LMS method. More...

#include "contributors.h"
#include "global.h"
#include "image.h"
#include "wp.h"

Include dependency graph for wp_lms.c:

Go to the source code of this file.

Functions

static double ComputeNormMean (imgpel **CurrentImage, double mean_value, int height, int width)
void EstimateWPPSliceAlg1 (Slice *currSlice, int select_offset)
void EstimateWPBSliceAlg1 (Slice *currSlice)
int TestWPPSliceAlg1 (ImageParameters *p_Img, InputParameters *p_Inp, int select_offset)
int TestWPBSliceAlg1 (ImageParameters *p_Img, InputParameters *p_Inp, int select_method)


Detailed Description

Estimate weights for WP using LMS method.

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

Definition in file wp_lms.c.


Function Documentation

void EstimateWPBSliceAlg1 ( Slice currSlice  ) 

Estimates reference picture weighting factors for B slices.

implicit mode. Values are fixed and it is important to show it here

explicit mode. Values can be changed for higher precision.

implicit mode

Definition at line 191 of file wp_lms.c.

References inp_par_enc::ChromaWeightSupport, ComputeImgSum(), img_par::height, img_par::height_cr, storable_picture::imgUV, img_par::mb_data, storable_picture::p_curr_img, img_par::pCurImg, img_par::size, slice::wbp_weight, img_par::width, img_par::width_cr, slice::wp_offset, slice::wp_weight, and wpxDetermineWP().

Referenced by InitWP().

Here is the call graph for this function:

void EstimateWPPSliceAlg1 ( Slice currSlice,
int  select_offset 
)

Estimates reference picture weighting factors for P slices.

Definition at line 43 of file wp_lms.c.

References inp_par_enc::ChromaWeightSupport, ComputeImgSum(), img_par::height, img_par::height_cr, storable_picture::imgUV, img_par::mb_data, storable_picture::p_curr_img, img_par::pCurImg, img_par::size, img_par::size_cr, img_par::width, img_par::width_cr, slice::wp_offset, slice::wp_weight, and wpxDetermineWP().

Referenced by InitWP().

Here is the call graph for this function:

int TestWPBSliceAlg1 ( ImageParameters p_Img,
InputParameters p_Inp,
int  select_method 
)

int TestWPPSliceAlg1 ( ImageParameters p_Img,
InputParameters p_Inp,
int  select_offset 
)


Documentation generated with DoxyGen