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

Go to the source code of this file.
Functions | |
| void | InitWP (ImageParameters *img, InputParameters *params) |
| double | ComputeImgSum (imgpel **CurrentImage, int height, int width) |
| void | EstimateWPPSliceAlg0 (ImageParameters *img, InputParameters *params, int select_offset) |
| void | EstimateWPBSliceAlg0 (ImageParameters *img, InputParameters *params) |
| int | TestWPPSliceAlg0 (ImageParameters *img, InputParameters *params, int select_offset) |
| int | TestWPBSliceAlg0 (ImageParameters *img, InputParameters *params, int select_method) |
Definition in file weighted_prediction.c.
| double ComputeImgSum | ( | imgpel ** | CurrentImage, | |
| int | height, | |||
| int | width | |||
| ) |
Compute sum of samples in a picture.
Definition at line 63 of file weighted_prediction.c.
Referenced by EstimateWPBSliceAlg0(), EstimateWPBSliceAlg1(), EstimateWPBSliceAlg2(), EstimateWPPSliceAlg0(), EstimateWPPSliceAlg1(), EstimateWPPSliceAlg2(), TestWPBSliceAlg0(), TestWPBSliceAlg1(), TestWPBSliceAlg2(), TestWPPSliceAlg0(), TestWPPSliceAlg1(), and TestWPPSliceAlg2().
| void EstimateWPBSliceAlg0 | ( | ImageParameters * | img, | |
| InputParameters * | params | |||
| ) |
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 215 of file weighted_prediction.c.
References InputParameters::ChromaWeightSupport, ComputeImgSum(), ImageParameters::current_mb_nr, ImageParameters::height, ImageParameters::height_cr, storable_picture::imgUV, ImageParameters::mb_data, macroblock::mb_field, ImageParameters::MbaffFrameFlag, storable_picture::p_curr_img, pCurImg, storable_picture::poc, ImageParameters::width, ImageParameters::width_cr, and wpxDetermineWP().
Referenced by InitWP().

| void EstimateWPPSliceAlg0 | ( | ImageParameters * | img, | |
| InputParameters * | params, | |||
| int | select_offset | |||
| ) |
Estimates reference picture weighting factors for P slices.
Definition at line 85 of file weighted_prediction.c.
References ImageParameters::bitdepth_chroma, ImageParameters::bitdepth_luma, InputParameters::ChromaWeightSupport, ComputeImgSum(), ImageParameters::current_mb_nr, ImageParameters::height, ImageParameters::height_cr, storable_picture::imgUV, ImageParameters::mb_data, macroblock::mb_field, ImageParameters::MbaffFrameFlag, storable_picture::p_curr_img, pCurImg, ImageParameters::size, ImageParameters::size_cr, ImageParameters::width, ImageParameters::width_cr, and wpxDetermineWP().
Referenced by InitWP().

| void InitWP | ( | ImageParameters * | img, | |
| InputParameters * | params | |||
| ) |
Initialize weighting parameter functions.
Definition at line 27 of file weighted_prediction.c.
References EstimateWPBSliceAlg0(), EstimateWPBSliceAlg1(), EstimateWPBSliceAlg2(), EstimateWPPSliceAlg0(), EstimateWPPSliceAlg1(), EstimateWPPSliceAlg2(), ImageParameters::nal_reference_idc, TestWPBSliceAlg0(), TestWPBSliceAlg1(), TestWPBSliceAlg2(), TestWPPSliceAlg0(), TestWPPSliceAlg1(), TestWPPSliceAlg2(), InputParameters::WPIterMC, and InputParameters::WPMethod.
Referenced by init_slice().

| int TestWPBSliceAlg0 | ( | ImageParameters * | img, | |
| InputParameters * | params, | |||
| int | select_method | |||
| ) |
TestWPBSliceAlg0: Tests B slice weighting prediction.
implicit mode
implicit mode
explicit mode
implicit mode
Definition at line 587 of file weighted_prediction.c.
References InputParameters::B_List0_refs, InputParameters::B_List1_refs, InputParameters::ChromaWeightSupport, ComputeImgSum(), ImageParameters::current_mb_nr, ImageParameters::height, ImageParameters::height_cr, storable_picture::imgUV, ImageParameters::mb_data, macroblock::mb_field, ImageParameters::MbaffFrameFlag, storable_picture::p_curr_img, pCurImg, storable_picture::poc, ImageParameters::width, and ImageParameters::width_cr.
Referenced by InitWP().

| int TestWPPSliceAlg0 | ( | ImageParameters * | img, | |
| InputParameters * | params, | |||
| int | select_offset | |||
| ) |
Tests P slice weighting factors to perform or not WP RD decision.
Definition at line 438 of file weighted_prediction.c.
References ImageParameters::bitdepth_chroma, ImageParameters::bitdepth_luma, InputParameters::ChromaWeightSupport, ComputeImgSum(), ImageParameters::current_mb_nr, ImageParameters::height, ImageParameters::height_cr, storable_picture::imgUV, ImageParameters::mb_data, macroblock::mb_field, ImageParameters::MbaffFrameFlag, storable_picture::p_curr_img, pCurImg, InputParameters::RDPSliceBTest, ImageParameters::size, ImageParameters::size_cr, ImageParameters::width, and ImageParameters::width_cr.
Referenced by InitWP().
