repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
pik
pik-master/pik/butteraugli_comparator.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_BUTTERAUGLI_COMPARATOR_H_ #define PIK_BUTTERAUGLI_COMPARATOR_H_ #include "pik/butteraugli/butteraugli....
957
22.95
65
h
pik
pik-master/pik/external_image.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_EXTERNAL_IMAGE_H_ #define PIK_EXTERNAL_IMAGE_H_ // Interleaved image for color transforms and Codec. ...
3,420
36.184783
80
h
pik
pik-master/pik/block_dictionary.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_BLOCK_DICTIONARY_H_ #define PIK_BLOCK_DICTIONARY_H_ // Chooses reference blocks out of the image, and ...
2,804
27.622449
79
h
pik
pik-master/pik/noise.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_NOISE_H_ #define PIK_NOISE_H_ // Noise synthesis. Currently disabled. #include "pik/bit_reader.h" #include "pik/image.h" n...
1,619
27.421053
79
h
pik
pik-master/pik/gradient_map.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_GRADIENT_MAP_H_ #define PIK_GRADIENT_MAP_H_ // The gradient map is a low resolution image (1/8th by 1/...
1,681
32.64
80
h
pik
pik-master/pik/gamma_correct.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_GAMMA_CORRECT_H_ #define PIK_GAMMA_CORRECT_H_ // Deprecated: sRGB transfer function. Use color_managem...
1,156
27.219512
70
h
pik
pik-master/pik/dc_predictor.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_DC_PREDICTOR_H_ #define PIK_DC_PREDICTOR_H_ // DC coefficients serve as an image preview, so they are ...
2,690
40.4
79
h
pik
pik-master/pik/epf_stats.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_EPF_STATS_H_ #define PIK_EPF_STATS_H_ // Statistics/debug info for epf.h. #include <stdio.h> #include...
1,567
24.704918
78
h
pik
pik-master/pik/cpik.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CPIK_H_ #define PIK_CPIK_H_ #include <utility> #include "pik/cmdline.h" #include "pik/codec.h" #include "pik/padded_bytes.h...
1,637
27.241379
79
h
pik
pik-master/pik/field_encodings.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_FIELD_ENCODINGS_H_ #define PIK_FIELD_ENCODINGS_H_ // Constants needed to encode/decode fields; avoids ...
1,411
30.377778
80
h
pik
pik-master/pik/pik_inspection.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_PIK_INSPECTION_H_ #define PIK_PIK_INSPECTION_H_ #include <functional> #include "pik/image.h" namespace pik { // Type of th...
742
29.958333
79
h
pik
pik-master/pik/fast_log.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_FAST_LOG_H_ #define PIK_FAST_LOG_H_ #include <stdint.h> #include <cmath> namespace pik { inline int ...
6,900
50.118519
78
h
pik
pik-master/pik/block.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_BLOCK_H_ #define PIK_BLOCK_H_ // Adapters for DCT input/output: from/to contiguous blocks or image row...
6,251
28.771429
80
h
pik
pik-master/pik/dct_simd_8.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_DCT_SIMD_8_H_ #define PIK_DCT_SIMD_8_H_ #include "pik/block.h" #include "pik/compiler_specific.h" #inc...
12,018
23.038
79
h
pik
pik-master/pik/context_map_decode.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CONTEXT_MAP_DECODE_H_ #define PIK_CONTEXT_MAP_DECODE_H_ #include <stddef.h> #include <stdint.h> #inclu...
776
26.75
76
h
pik
pik-master/pik/lossless16.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. // @author Alexander Rhatushnyak #ifndef PIK_LOSSLESS16_H_ #define PIK_LOSSLESS16_H_ #include "pik/image.h" #include "pik/padded_bytes....
900
29.033333
75
h
pik
pik-master/pik/compressed_image_fwd.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_COMPRESSED_IMAGE_FWD_H_ #define PIK_COMPRESSED_IMAGE_FWD_H_ #include "pik/ac_strategy.h" #include "pik...
7,580
29.692308
80
h
pik
pik-master/pik/opsin_inverse.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_OPSIN_INVERSE_H_ #define PIK_OPSIN_INVERSE_H_ // XYB -> linear sRGB. #include "pik/data_parallel.h" #...
824
27.448276
76
h
pik
pik-master/pik/adaptive_reconstruction.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ADAPTIVE_RECONSTRUCTION_H_ #define PIK_ADAPTIVE_RECONSTRUCTION_H_ // "In-loop" filter: edge-preserving...
1,984
39.510204
80
h
pik
pik-master/pik/approx_cube_root.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_APPROX_CUBE_ROOT_H_ #define PIK_APPROX_CUBE_ROOT_H_ // Fast cube root for XYB color space. #include <...
1,891
32.192982
80
h
pik
pik-master/pik/quant_weights.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_QUANT_WEIGHTS_H_ #define PIK_QUANT_WEIGHTS_H_ #include <cstdint> #include <vector> #include "pik/bit_r...
10,079
33.285714
79
h
pik
pik-master/pik/padded_bytes.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_PADDED_BYTES_H_ #define PIK_PADDED_BYTES_H_ // std::vector replacement with padding to reduce bounds c...
4,458
27.401274
79
h
pik
pik-master/pik/gaborish.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_GABORISH_H_ #define PIK_GABORISH_H_ // Linear smoothing (3x3 convolution) for deblocking without too m...
966
30.193548
75
h
pik
pik-master/pik/headers.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_HEADERS_H_ #define PIK_HEADERS_H_ // Group/pass/file headers with backward and forward-compatible exte...
13,882
30.480726
80
h
pik
pik-master/pik/arch_specific.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ARCH_SPECIFIC_H_ #define PIK_ARCH_SPECIFIC_H_ #include <stddef.h> #include <stdint.h> #include "pik/c...
1,653
24.060606
79
h
pik
pik-master/pik/yuv_opsin_convert.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_YUV_OPSIN_CONVERT_H_ #define PIK_YUV_OPSIN_CONVERT_H_ #include "pik/image.h" namespace pik { Image3B...
792
30.72
74
h
pik
pik-master/pik/codec.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CODEC_H_ #define PIK_CODEC_H_ // Interface for encoding/decoding images and their metadata. #include ...
10,019
33.67128
80
h
pik
pik-master/pik/color_encoding.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_COLOR_ENCODING_H_ #define PIK_COLOR_ENCODING_H_ // Metadata for color space conversions. #include <st...
8,126
31.508
80
h
pik
pik-master/pik/pik_frame.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_PIK_PASS_H_ #define PIK_PIK_PASS_H_ #include "pik/codec.h" #include "pik/compressed_image.h" #include ...
1,789
34.098039
79
h
pik
pik-master/pik/opsin_params.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_OPSIN_PARAMS_H_ #define PIK_OPSIN_PARAMS_H_ // Constants that define the XYB color space. #include <s...
2,375
32.942857
79
h
pik
pik-master/pik/cluster.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. // Functions for clustering similar histograms together. #ifndef PIK_CLUSTER_H_ #define PIK_CLUSTER_H_ #include <...
12,354
33.224377
80
h
pik
pik-master/pik/alpha.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ALPHA_H_ #define PIK_ALPHA_H_ // Encodes/decodes alpha image to/from its compressed representation. #...
807
26.862069
70
h
pik
pik-master/pik/entropy_coder.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ENTROPY_CODER_H_ #define PIK_ENTROPY_CODER_H_ #include <stddef.h> #include <stdint.h> #include <string...
18,721
39.877729
80
h
pik
pik-master/pik/descriptive_statistics.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_DESCRIPTIVE_STATISTICS_H_ #define PIK_DESCRIPTIVE_STATISTICS_H_ // For analyzing the range/distributio...
3,647
27.724409
80
h
pik
pik-master/pik/robust_statistics.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ROBUST_STATISTICS_H_ #define PIK_ROBUST_STATISTICS_H_ // Robust statistics: Mode, Median, MedianAbsolu...
11,415
31.617143
80
h
pik
pik-master/pik/rational_polynomial.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_RATIONAL_POLYNOMIAL_H_ #define PIK_RATIONAL_POLYNOMIAL_H_ // Fast SIMD evaluation of rational polynomials for approximating ...
8,655
33.763052
79
h
pik
pik-master/pik/compiler_specific.h
// Copyright 2016 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_COMPILER_SPECIFIC_H_ #define PIK_COMPILER_SPECIFIC_H_ // Macros for compiler version + nonstandard key...
3,847
27.716418
79
h
pik
pik-master/pik/args.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. // Helpers for parsing command line arguments. No include guard needed. #include "pik/pik_params.h" // Override ...
2,919
23.957265
79
h
pik
pik-master/pik/chroma_from_luma.h
// Copyright 2019 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CHROMA_FROM_LUMA_H_ #define PIK_CHROMA_FROM_LUMA_H_ // Chroma-from-luma without side information. #in...
2,416
42.160714
80
h
pik
pik-master/pik/byte_order.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_BYTE_ORDER_H_ #define PIK_BYTE_ORDER_H_ #include <stdint.h> #include <string.h> // memcpy #include "p...
4,324
25.212121
78
h
pik
pik-master/pik/status.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_STATUS_H_ #define PIK_STATUS_H_ // Error handling: Status return type + helper macros. #include <cstd...
2,509
29.987654
76
h
pik
pik-master/pik/quantizer.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_QUANTIZER_H_ #define PIK_QUANTIZER_H_ #include <stddef.h> #include <stdint.h> #include <cmath> #includ...
15,343
37.45614
80
h
pik
pik-master/pik/optimize.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. // Utility functions for optimizing multi-dimensional nonlinear functions. #ifndef PIK_OPTIMIZE_H_ #define PIK_OPTIMIZE_H_ #include <st...
3,906
25.046667
77
h
pik
pik-master/pik/yuv_convert.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_YUV_CONVERT_H_ #define PIK_YUV_CONVERT_H_ #include "pik/image.h" namespace pik { Image3B RGB8ImageFr...
1,042
32.645161
75
h
pik
pik-master/pik/cache_aligned.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CACHE_ALIGNED_H_ #define PIK_CACHE_ALIGNED_H_ // Memory allocator with support for alignment + misalig...
3,670
32.678899
80
h
pik
pik-master/pik/bilinear_transform.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #include "pik/image.h" namespace pik { constexpr size_t kNumBilinearParams = 8; struct BilinearParams { Biline...
689
25.538462
63
h
pik
pik-master/pik/ar_control_field.h
// Copyright 2019 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_AR_CONTROL_FIELD_H_ #define PIK_AR_CONTROL_FIELD_H_ #include "pik/ac_strategy.h" #include "pik/image.h...
860
29.75
72
h
pik
pik-master/pik/profiler.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_PROFILER_H_ #define PIK_PROFILER_H_ // High precision, low overhead time measurements. Returns exact c...
24,429
33.120112
80
h
pik
pik-master/pik/ans_common.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ANS_COMMON_H_ #define PIK_ANS_COMMON_H_ #include <vector> #include "pik/compiler_specific.h" namespa...
846
27.233333
77
h
pik
pik-master/pik/data_parallel.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_DATA_PARALLEL_H_ #define PIK_DATA_PARALLEL_H_ // Portable, low-overhead C++11 ThreadPool alternative t...
12,080
34.119186
80
h
pik
pik-master/pik/huffman_encode.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_HUFFMAN_ENCODE_H_ #define PIK_HUFFMAN_ENCODE_H_ #include <stdint.h> #include <cstddef> namespace pik ...
781
30.28
78
h
pik
pik-master/pik/image_test_utils.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_IMAGE_TEST_UTILS_H_ #define PIK_IMAGE_TEST_UTILS_H_ #include <math.h> #include <stddef.h> #include "gtest/gtest.h" #include...
1,065
25.65
70
h
pik
pik-master/pik/dct.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_DCT_H_ #define PIK_DCT_H_ // Fast SIMD floating-point DCT8-32. #include <cmath> #include <cstring> #i...
22,355
40.865169
80
h
pik
pik-master/pik/file_io.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_FILE_IO_H_ #define PIK_FILE_IO_H_ // Helper functions for reading/writing files. #include <stdio.h> #...
2,936
29.59375
80
h
pik
pik-master/pik/adaptive_quantization.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ADAPTIVE_QUANTIZATION_H_ #define PIK_ADAPTIVE_QUANTIZATION_H_ #include <stddef.h> #include "pik/block...
2,357
41.107143
80
h
pik
pik-master/pik/lossless8.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. // @author Alexander Rhatushnyak #ifndef PIK_LOSSLESS8_H_ #define PIK_LOSSLESS8_H_ #include "pik/image.h" #include "pik/padded_bytes.h"...
757
27.074074
68
h
pik
pik-master/pik/image_ops.h
// Copyright 2019 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_IMAGE_OPS_H_ #define PIK_IMAGE_OPS_H_ // Operations on images. #include "pik/image.h" namespace pik ...
22,436
30.205841
80
h
pik
pik-master/pik/ans_params.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ANS_PARAMS_H_ #define PIK_ANS_PARAMS_H_ // Common parameters that are needed for both the ANS entropy ...
679
23.285714
74
h
pik
pik-master/pik/codec_png.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CODEC_PNG_H_ #define PIK_CODEC_PNG_H_ // Encodes/decodes PNG pixels and metadata in memory. #include ...
987
30.870968
77
h
pik
pik-master/pik/lehmer_code.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_LEHMER_CODE_H_ #define PIK_LEHMER_CODE_H_ // Library to compute the Lehmer code of a permutation and t...
2,608
28.647727
77
h
pik
pik-master/pik/butteraugli_distance.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_BUTTERAUGLI_DISTANCE_H_ #define PIK_BUTTERAUGLI_DISTANCE_H_ // Facade for returning Butteraugli distan...
777
30.12
73
h
pik
pik-master/pik/adaptive_reconstruction_fwd.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ADAPTIVE_RECONSTRUCTION_FWD_H_ #define PIK_ADAPTIVE_RECONSTRUCTION_FWD_H_ // Breaks the circular depen...
1,426
28.122449
74
h
pik
pik-master/pik/context_map_encode.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CONTEXT_MAP_ENCODE_H_ #define PIK_CONTEXT_MAP_ENCODE_H_ #include <stdint.h> #include <cstddef> #includ...
698
26.96
75
h
pik
pik-master/pik/gauss_blur.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_GAUSS_BLUR_H_ #define PIK_GAUSS_BLUR_H_ #include <stddef.h> #include <vector> #include "pik/image.h" ...
2,492
34.614286
79
h
pik
pik-master/pik/pik_params.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_PIK_PARAMS_H_ #define PIK_PIK_PARAMS_H_ // Parameters and flags that govern PIK compression/decompression. #include <cstdde...
5,853
32.261364
80
h
pik
pik-master/pik/bits.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_BITS_H_ #define PIK_BITS_H_ // Specialized instructions for processing register-sized bit arrays. #if...
2,606
24.811881
69
h
pik
pik-master/pik/write_bits.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_WRITE_BITS_H_ #define PIK_WRITE_BITS_H_ // Unbuffered writes to the bitstream using unaligned 64-bit s...
3,530
30.247788
75
h
pik
pik-master/pik/chroma_from_luma_fwd.h
// Copyright 2019 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CHROMA_FROM_LUMA_FWD_H_ #define PIK_CHROMA_FROM_LUMA_FWD_H_ // Chroma-from-luma statistics (separate h...
4,264
32.320313
80
h
pik
pik-master/pik/cmdline.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CMDLINE_H_ #define PIK_CMDLINE_H_ #include "pik/status.h" #include <stdio.h> #include <string.h> #include <memory> #includ...
9,027
32.437037
80
h
pik
pik-master/pik/deconvolve.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_DECONVOLVE_H_ #define PIK_DECONVOLVE_H_ namespace pik { // Compute a filter such that convolving with it is an approximatio...
838
32.56
77
h
pik
pik-master/pik/ans_encode.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ANS_ENCODE_H_ #define PIK_ANS_ENCODE_H_ // Library to encode the ANS population counts to the bit-stre...
6,047
30.175258
80
h
pik
pik-master/pik/single_image_handler.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_SINGLE_PASS_HANDLER_H_ #define PIK_SINGLE_PASS_HANDLER_H_ #include <cstddef> #include <memory> #includ...
7,146
35.279188
80
h
pik
pik-master/pik/compressed_dc.h
// Copyright 2019 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_COMPRESSED_DC_H_ #define PIK_COMPRESSED_DC_H_ #include <vector> #include "pik/color_correlation.h" #in...
2,381
39.372881
80
h
pik
pik-master/pik/huffman_decode.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_HUFFMAN_DECODE_H_ #define PIK_HUFFMAN_DECODE_H_ // Library to decode the Huffman code lengths from the...
1,760
26.952381
79
h
pik
pik-master/pik/saliency_map.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_SALIENCY_MAP_H_ #define PIK_SALIENCY_MAP_H_ #include <memory> #include "pik/codec.h" #include "pik/im...
725
24.928571
78
h
pik
pik-master/pik/dct_util.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_DCT_UTIL_H_ #define PIK_DCT_UTIL_H_ #include "pik/common.h" #include "pik/data_parallel.h" #include "pik/image.h" namespace...
4,145
37.747664
79
h
pik
pik-master/pik/linalg.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_LINALG_H_ #define PIK_LINALG_H_ // Linear algebra. #include <stddef.h> #include <cmath> #include <vector> #include "pik/im...
7,899
28.811321
80
h
pik
pik-master/pik/common.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_COMMON_H_ #define PIK_COMMON_H_ // Shared constants and helper functions. #include <stddef.h> #includ...
2,206
29.652778
80
h
pik
pik-master/pik/opsin_image.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_OPSIN_IMAGE_H_ #define PIK_OPSIN_IMAGE_H_ // Converts to XYB color space. #include <stdint.h> #includ...
1,354
29.111111
69
h
pik
pik-master/pik/noise_distributions.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_NOISE_DISTRIBUTIONS_H_ #define PIK_NOISE_DISTRIBUTIONS_H_ // Noise distributions for testing partial_derivatives and robust_...
3,586
24.621429
80
h
pik
pik-master/pik/ac_predictions.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_AC_PREDICTIONS_H_ #define PIK_AC_PREDICTIONS_H_ #include "pik/color_correlation.h" #include "pik/compr...
3,467
45.24
80
h
pik
pik-master/pik/ans_decode.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_ANS_DECODE_H_ #define PIK_ANS_DECODE_H_ // Library to decode the ANS population counts from the bit-stream and build a // de...
2,316
26.915663
80
h
pik
pik-master/pik/tsc_timer.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_TSC_TIMER_H_ #define PIK_TSC_TIMER_H_ // High-resolution (~10 ns) timestamps, using fences to prevent ...
5,313
38.656716
79
h
pik
pik-master/pik/brotli.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_BROTLI_H_ #define PIK_BROTLI_H_ // Convenience functions for Brotli compression/decompression. #inclu...
1,401
32.380952
80
h
pik
pik-master/pik/dct_simd_4.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_DCT_SIMD_4_H_ #define PIK_DCT_SIMD_4_H_ #include "pik/block.h" #include "pik/compiler_specific.h" #inc...
5,451
32.243902
75
h
pik
pik-master/pik/multipass_handler.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_MULTIPASS_HANDLER_H_ #define PIK_MULTIPASS_HANDLER_H_ #include "pik/ac_strategy.h" #include "pik/block...
5,813
36.509677
80
h
pik
pik-master/pik/ac_strategy.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_AC_STRATEGY_H_ #define PIK_AC_STRATEGY_H_ #include <stdint.h> #include "pik/common.h" #include "pik/da...
14,383
37.875676
80
h
pik
pik-master/pik/bit_reader.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_BIT_READER_H_ #define PIK_BIT_READER_H_ // Bounds-checked bit reader; 64-bit buffer with support for d...
3,933
26.51049
80
h
pik
pik-master/pik/color_correlation.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_COLOR_CORRELATION_H_ #define PIK_COLOR_CORRELATION_H_ // Chroma-from-luma, computed using heuristics t...
3,967
34.115044
80
h
pik
pik-master/pik/dpik.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_DPIK_H_ #define PIK_DPIK_H_ #include <stddef.h> #include <stdint.h> #include "pik/cmdline.h" #include "pik/codec.h" #includ...
1,916
24.905405
80
h
pik
pik-master/pik/codec_pnm.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_CODEC_PNM_H_ #define PIK_CODEC_PNM_H_ // Encodes/decodes PGM/PPM/PFM pixels in memory. #include "pik/...
1,013
30.6875
77
h
pik
pik-master/pik/size_coder.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_SIZE_CODER_H_ #define PIK_SIZE_CODER_H_ #include <cstddef> #include <cstdint> #include "pik/fields.h" ...
927
23.421053
76
h
pik
pik-master/pik/pik.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_PIK_H_ #define PIK_PIK_H_ // Top-level interface for PIK encoding/decoding. #include "pik/codec.h" #i...
1,392
34.717949
79
h
pik
pik-master/pik/epf.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_EPF_H_ #define PIK_EPF_H_ // Fast SIMD edge preserving filter (adaptive, nonlinear). #include <stdio....
3,394
33.642857
80
h
pik
pik-master/pik/metadata.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_METADATA_H_ #define PIK_METADATA_H_ // Image metadata stored in FileHeader and CodecInOut. #include <...
2,290
26.60241
80
h
pik
pik-master/pik/resize.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_RESIZE_H_ #define PIK_RESIZE_H_ #include <stddef.h> #include "pik/common.h" #include "pik/image.h" #i...
17,210
31.351504
80
h
pik
pik-master/pik/color_management.h
// Copyright 2018 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_COLOR_MANAGEMENT_H_ #define PIK_COLOR_MANAGEMENT_H_ // ICC profiles and color space conversions. #inc...
3,004
30.302083
80
h
pik
pik-master/pik/pik_info.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_PIK_INFO_H_ #define PIK_PIK_INFO_H_ // Optional output information for debugging and analyzing size us...
6,343
30.405941
80
h
pik
pik-master/pik/detect_dots.h
// Copyright 2019 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. // We attempt to remove dots, or speckle from images using Gaussian blur. #ifndef PIK_RESEARCH_REMOVE_DOTS_H_ #define PIK_RESEARCH_REMOVE...
986
28.029412
76
h
pik
pik-master/pik/compressed_image.h
// Copyright 2017 Google Inc. All Rights Reserved. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef PIK_COMPRESSED_IMAGE_H_ #define PIK_COMPRESSED_IMAGE_H_ #include <stddef.h> #include <stdint.h> #include ...
5,503
46.86087
80
h