weighted_prediction.c File Reference

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

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

Include dependency graph for weighted_prediction.c:

Go to the source code of this file.

Functions

void InitWP (ImageParameters *p_Img, InputParameters *p_Inp)
double ComputeImgSum (imgpel **CurrentImage, int height, int width)
void EstimateWPPSliceAlg0 (Slice *currSlice, int select_offset)
void EstimateWPBSliceAlg0 (Slice *currSlice)
int TestWPPSliceAlg0 (ImageParameters *p_Img, InputParameters *p_Inp, int select_offset)
int TestWPBSliceAlg0 (ImageParameters *p_Img, InputParameters *p_Inp, int select_method)


Detailed Description

Estimate weights for WP using DC method.

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

Definition in file weighted_prediction.c.


Function Documentation

double ComputeImgSum ( imgpel **  CurrentImage,
int  height,
int  width 
)

void EstimateWPBSliceAlg0 ( 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 217 of file weighted_prediction.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, 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 EstimateWPPSliceAlg0 ( Slice currSlice,
int  select_offset 
)

void InitWP ( ImageParameters p_Img,
InputParameters p_Inp 
)

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

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


Documentation generated with DoxyGen