/external/libgav1/libgav1/src/dsp/ |
D | loop_filter.cc | 30 template <int bitdepth, typename Pixel> 34 static constexpr int kMaxPixel = (1 << bitdepth) - 1; 35 static constexpr int kMinSignedPixel = -(1 << (bitdepth - 1)); 36 static constexpr int kMaxSignedPixel = (1 << (bitdepth - 1)) - 1; 37 static constexpr int kFlatThresh = 1 << (bitdepth - 8); 57 inline void AdjustThresholds(const int bitdepth, int* const outer_thresh, in AdjustThresholds() argument 59 *outer_thresh <<= bitdepth - 8; in AdjustThresholds() 60 *inner_thresh <<= bitdepth - 8; in AdjustThresholds() 61 *hev_thresh <<= bitdepth - 8; in AdjustThresholds() 87 template <int bitdepth, typename Pixel> [all …]
|
D | loop_restoration.cc | 59 template <int bitdepth, typename Pixel> 66 constexpr int kRoundBitsHorizontal = (bitdepth == 12) in WienerHorizontal() 70 1 << (bitdepth + kWienerFilterBits - kRoundBitsHorizontal - 1); in WienerHorizontal() 90 template <int bitdepth, typename Pixel> 97 (bitdepth == 12) ? kInterRoundBitsVertical12bpp : kInterRoundBitsVertical; in WienerVertical() 112 dst[x] = static_cast<Pixel>(Clip3(rounded_sum, 0, (1 << bitdepth) - 1)); in WienerVertical() 145 template <int bitdepth, typename Pixel> 173 WienerHorizontal<bitdepth, Pixel>( in WienerFilter_C() 176 WienerHorizontal<bitdepth, Pixel>(src, stride, width, height, in WienerFilter_C() 178 WienerHorizontal<bitdepth, Pixel>(bottom, bottom_border_stride, width, in WienerFilter_C() [all …]
|
D | inverse_transform.cc | 121 template <int bitdepth, typename Residual> 127 (1 << (std::max(bitdepth + 6, 16) - 1)) - 1; in ClampIntermediate() 395 template <int bitdepth, typename Residual, int size_log2> 410 ClampIntermediate<bitdepth, Residual>(dst, 1); in DctDcOnly_C() 485 template <int bitdepth, typename Residual> 531 ClampIntermediate<bitdepth, Residual>(dst, 4); in Adst4DcOnly_C() 598 template <int bitdepth, typename Residual> 642 ClampIntermediate<bitdepth, Residual>(dst, 8); in Adst8DcOnly_C() 697 template <int bitdepth, typename Residual> 758 ClampIntermediate<bitdepth, Residual>(dst, 16); in Adst16DcOnly_C() [all …]
|
D | convolve.cc | 57 template <int bitdepth, typename Pixel> 65 constexpr int kRoundBitsHorizontal = (bitdepth == 12) in ConvolveScale2D_C() 69 (bitdepth == 12) ? kInterRoundBitsVertical12bpp : kInterRoundBitsVertical; in ConvolveScale2D_C() 79 const int max_pixel_value = (1 << bitdepth) - 1; in ConvolveScale2D_C() 139 template <int bitdepth, typename Pixel> 153 constexpr int kRoundBitsHorizontal = (bitdepth == 12) in ConvolveCompoundScale2D_C() 216 sum += (bitdepth == 8) ? 0 : kCompoundOffset; in ConvolveCompoundScale2D_C() 225 template <int bitdepth, typename Pixel> 239 constexpr int kRoundBitsHorizontal = (bitdepth == 12) in ConvolveCompound2D_C() 295 sum += (bitdepth == 8) ? 0 : kCompoundOffset; in ConvolveCompound2D_C() [all …]
|
D | film_grain.cc | 72 template <int bitdepth> 74 const int shift = bitdepth - 8; in ScaleLut() 77 if (bitdepth == 8) { in ScaleLut() 88 template <int bitdepth, typename GrainType> 92 const int grain_min = GetGrainMin<bitdepth>(); in ApplyAutoRegressiveFilterToLumaGrain_C() 93 const int grain_max = GetGrainMax<bitdepth>(); in ApplyAutoRegressiveFilterToLumaGrain_C() 154 template <int bitdepth, typename GrainType, int auto_regression_coeff_lag, 166 const int grain_min = GetGrainMin<bitdepth>(); in ApplyAutoRegressiveFilterToChromaGrains_C() 167 const int grain_max = GetGrainMax<bitdepth>(); in ApplyAutoRegressiveFilterToChromaGrains_C() 229 template <int bitdepth, typename GrainType> [all …]
|
D | weight_mask.cc | 31 template <int width, int height, int bitdepth, bool mask_is_inverse> 35 typename std::conditional<bitdepth == 8, int16_t, uint16_t>::type; in WeightMask_C() 40 constexpr int rounding_bits = bitdepth - 8 + ((bitdepth == 12) ? 2 : 4); in WeightMask_C() 55 #define INIT_WEIGHT_MASK(width, height, bitdepth, w_index, h_index) \ argument 57 WeightMask_C<width, height, bitdepth, 0>; \ 59 WeightMask_C<width, height, bitdepth, 1>
|
D | average_blend.cc | 29 template <int bitdepth, typename Pixel> 35 constexpr int inter_post_round_bits = (bitdepth == 12) ? 2 : 4; in AverageBlend_C() 37 typename std::conditional<bitdepth == 8, int16_t, uint16_t>::type; in AverageBlend_C() 49 res -= (bitdepth == 8) ? 0 : kCompoundOffset + kCompoundOffset; in AverageBlend_C() 52 (1 << bitdepth) - 1)); in AverageBlend_C()
|
D | film_grain_common.h | 32 template <int bitdepth> 34 return (1 << (bitdepth - 1)) - 1; in GetGrainMax() 37 template <int bitdepth> 39 return -(1 << (bitdepth - 1)); in GetGrainMin()
|
D | distance_weighted_blend.cc | 29 template <int bitdepth, typename Pixel> 36 constexpr int inter_post_round_bits = (bitdepth == 12) ? 2 : 4; in DistanceWeightedBlend_C() 38 typename std::conditional<bitdepth == 8, int16_t, uint16_t>::type; in DistanceWeightedBlend_C() 51 res -= (bitdepth == 8) ? 0 : kCompoundOffset * 16; in DistanceWeightedBlend_C() 54 (1 << bitdepth) - 1)); in DistanceWeightedBlend_C()
|
D | dsp.cc | 69 dsp::Dsp* GetWritableDspTable(int bitdepth) { in GetWritableDspTable() argument 70 switch (bitdepth) { in GetWritableDspTable() 164 const Dsp* GetDspTable(int bitdepth) { in GetDspTable() argument 165 return dsp_internal::GetWritableDspTable(bitdepth); in GetDspTable()
|
D | warp.cc | 61 template <bool is_compound, int bitdepth, typename Pixel> 74 constexpr int kRoundBitsHorizontal = (bitdepth == 12) in Warp_C() 79 : (bitdepth == 12) ? kInterRoundBitsVertical12bpp in Warp_C() 84 constexpr int first_pass_offset = (bitdepth == 8) ? 1 << 14 : 0; in Warp_C() 88 constexpr int kMaxPixel = (1 << bitdepth) - 1; in Warp_C() 196 sum += (bitdepth == 8) ? 0 : kCompoundOffset; in Warp_C() 247 sum += (bitdepth == 8) ? 0 : kCompoundOffset; in Warp_C() 414 sum += (bitdepth == 8) ? 0 : kCompoundOffset; in Warp_C()
|
/external/libgav1/libgav1/src/ |
D | film_grain.cc | 261 template <int bitdepth> 262 FilmGrain<bitdepth>::FilmGrain(const FilmGrainParams& params, in FilmGrain() 280 template <int bitdepth> 281 bool FilmGrain<bitdepth>::Init() { in Init() 283 const dsp::Dsp& dsp = *dsp::GetDspTable(bitdepth); in Init() 359 template <int bitdepth> 360 void FilmGrain<bitdepth>::GenerateLumaGrain(const FilmGrainParams& params, in GenerateLumaGrain() 367 const int shift = 12 - bitdepth + params.grain_scale_shift; in GenerateLumaGrain() 379 template <int bitdepth> 380 void FilmGrain<bitdepth>::GenerateChromaGrains(const FilmGrainParams& params, in GenerateChromaGrains() [all …]
|
D | tile_scratch_buffer.h | 36 LIBGAV1_MUST_USE_RESULT bool Init(int bitdepth) { in Init() 38 const int pixel_size = (bitdepth == 8) ? 1 : 2; in Init() 40 assert(bitdepth == 8); in Init() 41 static_cast<void>(bitdepth); in Init() 116 void Reset(int bitdepth) { in Reset() argument 117 if (bitdepth_ == bitdepth) return; in Reset() 119 if (bitdepth_ == 8 && bitdepth != 8) { in Reset() 128 bitdepth_ = bitdepth; in Reset()
|
D | internal_frame_buffer_list.cc | 29 void* callback_private_data, int bitdepth, Libgav1ImageFormat image_format, in OnInternalFrameBufferSizeChanged() argument 35 bitdepth, image_format, width, height, left_border, right_border, in OnInternalFrameBufferSizeChanged() 40 void* callback_private_data, int bitdepth, Libgav1ImageFormat image_format, in GetInternalFrameBuffer() argument 46 bitdepth, image_format, width, height, left_border, right_border, in GetInternalFrameBuffer() 67 int bitdepth, Libgav1ImageFormat image_format, int width, int height, in GetFrameBuffer() argument 72 bitdepth, image_format, width, height, left_border, right_border, in GetFrameBuffer()
|
D | internal_frame_buffer_list.h | 31 void* callback_private_data, int bitdepth, Libgav1ImageFormat image_format, 36 void* callback_private_data, int bitdepth, Libgav1ImageFormat image_format, 53 Libgav1StatusCode OnFrameBufferSizeChanged(int bitdepth, 60 Libgav1StatusCode GetFrameBuffer(int bitdepth,
|
D | yuv_buffer.cc | 36 bool YuvBuffer::Realloc(int bitdepth, bool is_monochrome, int width, int height, in Realloc() argument 75 if (get_frame_buffer(callback_private_data, bitdepth, image_format, width, in Realloc() 105 if (bitdepth > 8) y_stride *= sizeof(uint16_t); in Realloc() 117 if (bitdepth > 8) uv_stride *= sizeof(uint16_t); in Realloc() 159 if (bitdepth > 8) { in Realloc() 191 bitdepth_ = bitdepth; in Realloc()
|
D | frame_buffer.cc | 25 int bitdepth, Libgav1ImageFormat image_format, int width, int height, in Libgav1ComputeFrameBufferInfo() argument 28 switch (bitdepth) { in Libgav1ComputeFrameBufferInfo() 68 if (bitdepth > 8) y_stride *= sizeof(uint16_t); in Libgav1ComputeFrameBufferInfo() 90 if (bitdepth > 8) uv_stride *= sizeof(uint16_t); in Libgav1ComputeFrameBufferInfo() 108 if (bitdepth > 8) { in Libgav1ComputeFrameBufferInfo()
|
/external/libgav1/libgav1/examples/ |
D | gav1_decode_cv_pixel_buffer_pool.cc | 42 void* callback_private_data, int bitdepth, in Gav1DecodeOnCVPixelBufferSizeChanged() argument 48 bitdepth, image_format, width, height, left_border, right_border, in Gav1DecodeOnCVPixelBufferSizeChanged() 53 void* callback_private_data, int bitdepth, in Gav1DecodeGetCVPixelBuffer() argument 60 bitdepth, image_format, width, height, left_border, right_border, in Gav1DecodeGetCVPixelBuffer() 89 int bitdepth, libgav1::ImageFormat image_format, int width, int height, in OnCVPixelBufferSizeChanged() argument 92 if (bitdepth != 8 || (image_format != libgav1::kImageFormatYuv420 && in OnCVPixelBufferSizeChanged() 97 bitdepth, image_format); in OnCVPixelBufferSizeChanged() 189 int bitdepth, libgav1::ImageFormat image_format, int /*width*/, in GetCVPixelBuffer() argument 193 static_cast<void>(bitdepth); in GetCVPixelBuffer() 194 assert(bitdepth == 8 && (image_format == libgav1::kImageFormatYuv420 || in GetCVPixelBuffer()
|
D | gav1_decode_cv_pixel_buffer_pool.h | 28 void* callback_private_data, int bitdepth, 33 void* callback_private_data, int bitdepth, 54 int bitdepth, libgav1::ImageFormat image_format, int width, int height, 58 libgav1::StatusCode GetCVPixelBuffer(int bitdepth,
|
D | file_writer.h | 43 ImageFormat image_format, size_t bitdepth) in Y4mParameters() 50 bitdepth(bitdepth) {} in Y4mParameters() 63 size_t bitdepth = 8; member
|
/external/libgav1/libgav1/src/gav1/ |
D | frame_buffer.h | 67 void* callback_private_data, int bitdepth, Libgav1ImageFormat image_format, 90 void* callback_private_data, int bitdepth, Libgav1ImageFormat image_format, 133 int bitdepth, Libgav1ImageFormat image_format, int width, int height, 155 inline StatusCode ComputeFrameBufferInfo(int bitdepth, ImageFormat image_format, in ComputeFrameBufferInfo() argument 161 return Libgav1ComputeFrameBufferInfo(bitdepth, image_format, width, height, in ComputeFrameBufferInfo()
|
/external/libgav1/libgav1/src/dsp/x86/ |
D | film_grain_sse4.cc | 128 template <int bitdepth, typename Pixel> 132 if (bitdepth == 8) { in GetScalingFactors() 156 template <int bitdepth> 163 template <int bitdepth, typename GrainType, typename Pixel> 187 GetScalingFactors<bitdepth, Pixel>(scaling_lut_y, &in_y_row[x]); in BlendNoiseWithImageLuma_SSE4_1() 190 noise = ScaleNoise<bitdepth>(noise, scaling, derived_scaling_shift); in BlendNoiseWithImageLuma_SSE4_1() 204 GetScalingFactors<bitdepth, Pixel>(scaling_lut_y, luma_buffer); in BlendNoiseWithImageLuma_SSE4_1() 207 noise = ScaleNoise<bitdepth>(noise, scaling, derived_scaling_shift); in BlendNoiseWithImageLuma_SSE4_1() 217 template <int bitdepth, typename GrainType, typename Pixel> 224 GetScalingFactors<bitdepth, Pixel>(scaling_lut, average_luma_buffer); in BlendChromaValsWithCfl() [all …]
|
/external/libgav1/libgav1/src/dsp/arm/ |
D | film_grain_neon.cc | 86 template <int bitdepth, int auto_regression_coeff_lag, int lane> 97 GetGrainMin<bitdepth>(), GetGrainMax<bitdepth>()); in WriteFinalAutoRegression() 101 template <int bitdepth, int auto_regression_coeff_lag, int lane> 112 GetGrainMin<bitdepth>(), GetGrainMax<bitdepth>()); in WriteFinalAutoRegression() 119 template <int bitdepth, int auto_regression_coeff_lag, int lane> 126 WriteFinalAutoRegression<bitdepth, auto_regression_coeff_lag, lane>( in WriteFinalAutoRegressionChroma() 128 WriteFinalAutoRegression<bitdepth, auto_regression_coeff_lag, lane>( in WriteFinalAutoRegressionChroma() 133 template <int bitdepth, int auto_regression_coeff_lag, int lane> 140 WriteFinalAutoRegression<bitdepth, auto_regression_coeff_lag, lane>( in WriteFinalAutoRegressionChroma() 142 WriteFinalAutoRegression<bitdepth, auto_regression_coeff_lag, lane>( in WriteFinalAutoRegressionChroma() [all …]
|
/external/zopfli/src/zopflipng/lodepng/ |
D | lodepng.h | 114 LodePNGColorType colortype, unsigned bitdepth); 131 LodePNGColorType colortype, unsigned bitdepth); 163 LodePNGColorType colortype, unsigned bitdepth); 181 LodePNGColorType colortype, unsigned bitdepth); 201 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); 204 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); 212 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); 220 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); 223 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); 232 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8); [all …]
|
/external/libgav1/libgav1/src/tile/bitstream/ |
D | palette.cc | 66 const int8_t bitdepth = sequence_header_.color_config.bitdepth; in ReadPaletteColors() local 76 static_cast<uint16_t>(reader_.ReadLiteral(bitdepth)); in ReadPaletteColors() 78 const int max_value = (1 << bitdepth) - 1; in ReadPaletteColors() 80 int bits = bitdepth - 3 + static_cast<int>(reader_.ReadLiteral(2)); in ReadPaletteColors() 94 const int range = (1 << bitdepth) - palette_color[index] - in ReadPaletteColors() 106 const int bits = bitdepth - 4 + static_cast<int>(reader_.ReadLiteral(2)); in ReadPaletteColors() 107 palette_color_v[0] = reader_.ReadLiteral(bitdepth); in ReadPaletteColors() 125 static_cast<uint16_t>(reader_.ReadLiteral(bitdepth)); in ReadPaletteColors()
|