Skip to content

Commit

Permalink
Fix some function declarations
Browse files Browse the repository at this point in the history
- fix some function declarations to match the implementation
- fix some consts

Change-Id: I8c89f49ec68d3dd1db7f8ee5cac73777f52d2576
  • Loading branch information
vrabaud committed May 3, 2024
1 parent 68ff4e1 commit a7aa752
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/enc/predictor_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ static int GetBestPredictorForTile(int width, int height,
// If max_quantization > 1, applies near lossless processing, quantizing
// residuals to multiples of quantization levels up to max_quantization
// (the actual quantization level depends on smoothness near the given pixel).
static void CopyImageWithPrediction(int width, int height,
int bits, uint32_t* const modes,
static void CopyImageWithPrediction(int width, int height, int bits,
const uint32_t* const modes,
uint32_t* const argb_scratch,
uint32_t* const argb,
int low_effort, int max_quantization,
int exact, int used_subtract_green) {
uint32_t* const argb, int low_effort,
int max_quantization, int exact,
int used_subtract_green) {
const int tiles_per_row = VP8LSubSampleSize(width, bits);
// The width of upper_row and current_row is one pixel larger than image width
// to allow the top right pixel to point to the leftmost pixel of the next row
Expand Down
4 changes: 2 additions & 2 deletions src/enc/vp8l_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,8 @@ static void ApplySubtractGreen(VP8LEncoder* const enc, int width, int height,
VP8LSubtractGreenFromBlueAndRed(enc->argb_, width * height);
}

static int ApplyPredictFilter(const VP8LEncoder* const enc, int width,
int height, int quality, int low_effort,
static int ApplyPredictFilter(VP8LEncoder* const enc, int width, int height,
int quality, int low_effort,
int used_subtract_green, VP8LBitWriter* const bw,
int percent_range, int* const percent) {
const int pred_bits = enc->transform_bits_;
Expand Down
7 changes: 4 additions & 3 deletions src/enc/vp8li_enc.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ int VP8ApplyNearLossless(const WebPPicture* const picture, int quality,
// Returns false in case of error (stored in pic->error_code).
int VP8LResidualImage(int width, int height, int bits, int low_effort,
uint32_t* const argb, uint32_t* const argb_scratch,
uint32_t* const image, int near_lossless, int exact,
int used_subtract_green, const WebPPicture* const pic,
int percent_range, int* const percent);
uint32_t* const image, int near_lossless_quality,
int exact, int used_subtract_green,
const WebPPicture* const pic, int percent_range,
int* const percent);

int VP8LColorSpaceTransform(int width, int height, int bits, int quality,
uint32_t* const argb, uint32_t* image,
Expand Down

0 comments on commit a7aa752

Please sign in to comment.