RateControl.h
Go to the documentation of this file.
/*
* Copyright (C) 2016-2023 Grok Image Compression Inc.
*
* This source code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This source code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
namespace grk
{
class RateControl
{
public:
static void convexHull(CodePass* pass, uint32_t numPasses);
static uint16_t slopeToLog(double slope);
static double slopeFromLog(uint16_t logSlope);
private:
};
} // namespace grk
grk::RateControl
Definition RateControl.h:22
grk::RateControl::slopeToLog
static uint16_t slopeToLog(double slope)
Definition RateControl.cpp:167
grk::RateControl::slopeFromLog
static double slopeFromLog(uint16_t logSlope)
Definition RateControl.cpp:183
grk::RateControl::convexHull
static void convexHull(CodePass *pass, uint32_t numPasses)
Definition RateControl.cpp:31
grk
Copyright (C) 2016-2023 Grok Image Compression Inc.
Definition ICacheable.h:20
grk::grk_read
void grk_read(const uint8_t *buffer, TYPE *value, uint32_t numBytes)
Definition BufferedStream.h:239
grk::CodePass
Definition Codeblock.h:46