mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 19:18:31 +00:00
vp9parser: Fix indentation to make gst-indent happier
This commit is contained in:
parent
45f2ad952f
commit
1bf448cbbd
1 changed files with 185 additions and 182 deletions
|
@ -223,14 +223,16 @@ static const int16_t ac_qlookup_12[QINDEX_RANGE] = {
|
|||
25551, 26047, 26559, 27071, 27599, 28143, 28687, 29247,
|
||||
};
|
||||
|
||||
static int clamp(int value, int low, int high)
|
||||
static int
|
||||
clamp (int value, int low, int high)
|
||||
{
|
||||
return value < low ? low : (value > high ? high : value);
|
||||
}
|
||||
|
||||
int16_t gst_vp9_dc_quant(int qindex, int delta, int bit_depth)
|
||||
int16_t
|
||||
gst_vp9_dc_quant (int qindex, int delta, int bit_depth)
|
||||
{
|
||||
const uint8_t q_table_idx = clamp(qindex + delta, 0, MAXQ);
|
||||
const uint8_t q_table_idx = clamp (qindex + delta, 0, MAXQ);
|
||||
|
||||
switch (bit_depth) {
|
||||
case 8:
|
||||
|
@ -245,9 +247,10 @@ int16_t gst_vp9_dc_quant(int qindex, int delta, int bit_depth)
|
|||
return -1;
|
||||
}
|
||||
|
||||
int16_t gst_vp9_ac_quant(int qindex, int delta, int bit_depth)
|
||||
int16_t
|
||||
gst_vp9_ac_quant (int qindex, int delta, int bit_depth)
|
||||
{
|
||||
const uint8_t q_table_idx = clamp(qindex + delta, 0, MAXQ);
|
||||
const uint8_t q_table_idx = clamp (qindex + delta, 0, MAXQ);
|
||||
|
||||
switch (bit_depth) {
|
||||
case 8:
|
||||
|
|
Loading…
Reference in a new issue