sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
d1b4580776c54b8fceb3ad854e87ad0f3e6f53b8e056a139cfd4edeb981f5ba6
C
611
39
/* * listtif.c -- lists a tiff file. */ #include "xtiffio.h" #include <stdlib.h> void main(int argc,char *argv[]) { char *fname="newtif.tif"; int flags; TIFF *tif=(TIFF*)0; /* TIFF-level descriptor */ if (argc>1) fname=argv[1]; tif=XTIFFOpen(fname,"r"); if (!tif) goto failure; /* We want the double ar...
a438e43dca41664da2874b06df71de5de7ba30972e6b057df4c481850c5236a2
C
792
31
/* * SVMLinearClassifier.c * * Created on: 25 Jan 2023 * Author: Marek Zylinski */ #include "SVMLinearClassifier.h" #include "SVMParameters_linear.h" arm_svm_linear_instance_f32 linearSVM; void initARMSVMLinearClasificator () { arm_svm_linear_init_f32(&linearSVM, //Parameters for the SVM function ...
4c9b79a58faa0f22f13bc7ddd73dbb70302d900b5ebeb1bd784aea0ec894efb5
C
797
32
/* * SVMrfbClassifier.c * * Created on: 25 Jan 2023 * Author: Marek Zylinski */ #include "SVMrfbClassifier.h" #include "SVMParameters_rbf.h" arm_svm_rbf_instance_f32 rbfSVM; void initARMSVMrbfClasificator () { arm_svm_rbf_init_f32(&rbfSVM, //Parameters for the SVM function rbf_NB_SUPPORT_VECTORS, /...
e5372d15b7014a89ab6a702c05f408e93bd7dd46dcb3dfe4bb293d6eb7ef8642
C
829
33
/* * naiveBayesClassifier.c * * Created on: 25 Jan 2023 * Author: Marek Zylinski */ #include "naiveBayesClassifier.h" #include "naiveBayesParameters.h" arm_gaussian_naive_bayes_instance_f32 bayesInstance; void initARMGaussianNaiveBayesClasificator () { bayesInstance.vectorDimension = bayesVECTOR_DIMENSION...
b895266a51c102c718d2c60a6eca555e9361228f788373ae5a372fdd2f63839a
C
864
36
/* * SVMSigmoidClassifier.c * * Created on: 25 Jan 2023 * Author: Marek Zylinski */ #include "SVMSigmoidClassifier.h" #include "SVMParameters_sigmoid.h" arm_svm_sigmoid_instance_f32 sigmoidSVM; void initARMSVMSigmoidClasificator () { /* Initialization of the SVM instance parameters. Additional ...
c24d3caeb63644b6a497e81608b7482d60454466acf426b588ccb487cddc66f4
C
889
37
/* * SVMPolunomialClassifier.c * * Created on: 25 Jan 2023 * Author: Marek Zylinski */ #include "SVMPolynomialClassifier.h" #include "SVMParameters_poly.h" arm_svm_polynomial_instance_f32 polySVM; void initARMSVMPolynomialClasificator () { /* Initialization of the SVM instance parameters. Addit...
f632af674bc404242816be0f945203fdc87a04266ae7e8a21e870c4333e2197a
C
1,272
38
/* * rdgif.c * * Copyright (C) 1991-1997, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains routines to read input images in GIF format. * *********************************************...
75b68e07752cf0f78698007c7c0de116e0150114bd4e8e0ac35c3b092fde8ec9
C
1,547
40
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_version.c,v 1.3 2010-03-10 18:56:49 bfriesen Exp $ */ /* * Copyright (c) 1992-1997 Sam Leffler * Copyright (c) 1992-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is h...
12c6b12a5833c66e60435636c2f345a177941ef8bc1c2b54c765c27e80a279ac
C
1,553
39
#include "datamonger.h" #include <assert.h> #include <string.h> static DmBytes bytes(const char *text) { DmBytes value = {(const uint8_t *)text, strlen(text)}; return value; } int main(int argc, char **argv) { assert(argc == 2); assert(dm_abi_version() == 1); DmArtifact artifact = {bytes(argv[1]),...
f8a92e30fd33691bf4c8c80fbd2ccab6cfee24ac0649365c2501e0b0a647054f
C
1,613
77
/* * maketif.c -- creates a little TIFF file, with * the XTIFF extended tiff example tags. */ #include <stdlib.h> #include "xtiffio.h" void SetUpTIFFDirectory(TIFF *tif); void WriteImage(TIFF *tif); #define WIDTH 20 #define HEIGHT 20 void main() { TIFF *tif=(TIFF*)0; /* TIFF-level descriptor */ tif=XTIFF...
d8545ec68ea785214e7f90fc8af30a565ebb73ccda5a435ed28cd9966250e116
C
1,628
65
#include "tiffiop.h" #if defined(JPEG_DUAL_MODE_8_12) # define TIFFInitJPEG TIFFInitJPEG_12 # include LIBJPEG_12_PATH # include "tif_jpeg.c" int TIFFReInitJPEG_12( TIFF *tif, int scheme, int is_encode ) { JPEGState* sp; assert(scheme == COMPRESSION_JPEG); sp = JState(tif); sp->tif = tif; ...
aa8a40bf15bd9407564f4439e03d7277076b59cbfe92d2fbcff6b3689e9ad495
C
1,686
71
/* * !/usr/bin/python * -*- coding: utf-8 -*- * * This file is part of pyunicorn. * Copyright (C) 2008--2026 Jonathan F. Donges and pyunicorn authors * URL: <http://www.pik-potsdam.de/members/donges/software> * License: BSD (3-clause) */ #include <math.h> #include <stdlib.h> // network ==============================...
7a215ccd96a1b79b315d1162dcc9cd58c871c143515ab9441366efb2bd76a310
C
1,702
57
#include <math.h> __global__ void gaussian(float alpha, float x0, float y0, float z0, float *xvect, float *yvect, float *zvect, float *out) { // 3D thread int tx = threadIdx.x + blockDim.x * blockIdx.x; int ty = threadIdx.y + blockDim.y * blockIdx.y; int tz = threadIdx.z + blockDim.z * blockIdx.z; ...
c55fb500a94fd9e1e0e55ca98e7e14b8a445cac8a1d233b29a9ce97482ec6195
C
1,787
61
/* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*- * * Using the C-API of this library. * */ #include "led-matrix-c.h" #include <stdio.h> #include <string.h> #include <unistd.h> int main(int argc, char **argv) { struct RGBLedMatrixOptions options; struct RGBLedMatrix *matrix; struct LedCanvas *of...
2417ed86aeb351774a43b9333ab4a1134d793674f550d91c2f06b22c48bdbf71
C
2,140
51
/* $Id: strcasecmp.c,v 1.3 2009-01-22 20:53:07 fwarmerdam Exp $ */ /* * Copyright (c) 1987, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
68a634086e5bda8f298eee446a0b6419d34f2e01500c9fbfb28b0ecefbd940c7
C
2,170
65
/* * jcinit.c * * Copyright (C) 1991-1997, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains initialization logic for the JPEG compressor. * This routine is in charge of selecting the m...
65f4dd2283fb2e2c3ac7c19138959f87c2a8afe154f0eda475d52bcd5cbafda7
C
2,338
62
/* $Id: lfind.c,v 1.4 2007/01/15 18:40:39 mloskot Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Roger L. Snyder. * * Redistribution and use in source and binary forms, with or withou...
160fd63f644cc370c212f4c23d3a9282b2df53ce5126116981d950bf63f8abbb
C
2,351
80
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_error.c,v 1.5 2010-03-10 18:56:48 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is he...
06eaa751c7f15eae1dabda6f0735709b1af8170fc98b78f04f71723e0ff012d7
C
2,388
81
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_warning.c,v 1.3 2010-03-10 18:56:49 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is ...
82536e256babf2ca94afc9acef33250095e3d1c488cdba17d4000c05a2781c7f
C
2,440
97
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : usb_device.c * @version : v3.0_Cube * @brief : This file implements the USB Device ****************************************************************************** ...
e7aa082d3892efd45727bd349cea698b7c86a310e37b5a058f74c430fa79c961
C
2,491
91
/* $Id: check_tag.c,v 1.3 2008/04/15 14:19:37 dron Exp $ */ /* * Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices...
062d544739b93a6683e2585906b94b988717bfe3102502423f4d246d914bd034
C
2,511
155
/** ****************************************************************************** * @file syscalls.c * @author Auto-generated by STM32CubeIDE * @brief STM32CubeIDE Minimal System calls file * * For more information about which c-functions * need which of these lowlevel function...
4576a3c2bd609d5913e6cd6a29601fd2d26f8b3aaef60bef4684c0df50b39d9d
C
2,726
79
/** ****************************************************************************** * @file sysmem.c * @author Generated by STM32CubeIDE * @brief STM32CubeIDE System Memory calls file * * For more information about which C functions * need which of these lowlevel functions * ...
0605c64556d298071473fc245fa9d83cf10b60022d5c5d2821a846b94aa1a9fb
C
2,772
109
/* * jmemnobs.c * * Copyright (C) 1992-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file provides a really simple implementation of the system- * dependent portion of the JPEG memory manag...
438ccf52dd96e0ce532c91591fa3ef6259500234886833d3b072e8b120970547
C
2,846
91
/* $Id: tiff-bi.c,v 1.3 2010-06-08 18:55:15 bfriesen Exp $ */ /* * tiff-bi.c -- create a Class B (bilevel) TIFF file * * Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts. * * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and i...
d8a79c2a19310e0bc918324d7174a1e1bc1b9e316f63fd90449abf46c041711d
C
3,110
106
/* * jcomapi.c * * Copyright (C) 1994-1997, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains application interface routines that are used for both * compression and decompression. */ ...
cc71636d14361be4c4192438ad3b991dc34025cff20b96a0ab7f6c21b6d7e2cc
C
3,218
109
/* $Id: strtoul.c,v 1.2 2005/07/07 16:34:06 dron Exp $ */ /* * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1....
82a1a2a686137c356bb93f71e7a6baa226b156a400eabfbccf5dc9393ccb9739
C
3,253
118
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_extension.c,v 1.7 2010-03-10 18:56:48 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose i...
36c6f74a9810b8b3a4b2f9fe962216a4eae72a9238c4c12bd000d3652d1a0659
C
3,403
116
/*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copy...
f99afc252e87684cdbc190278015cf3377e4ff81b0bc2e41d3fd377d527c4c35
C
3,517
179
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2023-24 Raspberry Pi Ltd. * All rights reserved. */ #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <time.h> #include <unist...
1af29f32f33c98ef1bbf5f4d82f1c76ec9e396a2c33d2d736746518ac470aaae
C
3,849
150
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32wbxx_hal_msp.c * @brief This file provides code for the MSP Initialization * and de-Initialization codes. **************************************************...
25dcdb80b45e454afb87f691606c0c66fd3b9ddb20826dc2816e05db82db13b1
C
3,857
143
/* * tkAppInit.c -- * * Provides a default version of the Tcl_AppInit procedure for use in * wish and similar Tk-based applications. * * Copyright (c) 1993 The Regents of the University of California. * Copyright (c) 1994-1997 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and...
03924df291ef1e664cdcd7e190066dc183f6e2ac5913726ff6c26bcee8e987ed
C
3,901
143
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_dumpmode.c,v 1.14 2011-04-02 20:54:09 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose i...
0c496fc40e62fb44fb164802e59730886d7d1c3674b4c745bb4240c42a31a618
C
4,031
125
/* $Id: getopt.c,v 1.3 2009-01-22 20:53:07 fwarmerdam Exp $ */ /* * Copyright (c) 1987, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are...
7c921d45d472c340adaab7f0207efd9d8472d20f3607ef8678de9730023098f8
C
4,089
118
/* $Id: tif_flush.c,v 1.9 2010-03-31 06:40:10 fwarmerdam Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * th...
90d05f92134736b3034042d19b9bcc1ccfd9ca171916fc5e81dc1e88b732c680
C
4,129
140
/* $Id: tif_close.c,v 1.19 2010-03-10 18:56:48 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * tha...
b9ad05fec137d1b67d17fc6144253fc1af1f7f1e6228ecbc758f3dc3b5844d71
C
4,200
160
/* $Id: tif_next.c,v 1.13 2010-03-10 18:56:48 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that...
642aac53a943367814a0bafa6007871d00a3ef0f93e0f74df1a4eaff338c8130
C
4,223
168
float ycbcrCoeffs[3] = { .299, .587, .114 }; /* default coding range is CCIR Rec 601-1 with no headroom/footroom */ unsigned long refBlackWhite[6] = { 0, 255, 128, 255, 128, 255 }; #define LumaRed ycbcrCoeffs[0] #define LumaGreen ycbcrCoeffs[1] #define LumaBlue ycbcrCoeffs[2] long eRtotal = 0; long eGtotal = 0; long...
4764857c6db2be53087ef22bbc57bdd2de43235771450c103bae1fd512b72c26
C
4,309
156
/* $Id: long_tag.c,v 1.4 2008/03/28 01:42:06 bfriesen Exp $ */ /* * Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright noti...
7590da049a37c420df508c9bce4ec1aee95bd630e918ba53dfa916d8f32cab6a
C
4,397
147
/* $Id: tiff-grayscale.c,v 1.6 2010-06-08 18:55:15 bfriesen Exp $ */ /* * tiff-grayscale.c -- create a Class G (grayscale) TIFF file * with a gray response curve in linear optical density * * Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts. * * All Rights Reser...
fbcb3e54fa6e4b014321f29bf671ccae87072d5bb5ae8e5d31ab9f85e2383c4e
C
4,610
167
/* * jmemansi.c * * Copyright (C) 1992-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file provides a simple generic implementation of the system- * dependent portion of the JPEG memory mana...
7e9f5afdd367683ddac9ddc47f06d321b926df1b211d6dd71cd7e8e5241b257a
C
4,682
181
/* * cdjpeg.c * * Copyright (C) 1991-1997, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains common support routines used by the IJG application * programs (cjpeg, djpeg, jpegtran). */...
f7d1751fd12870382ffe4102fb33e398a0f59cca530950e37c1e9162cf905c9f
C
4,721
179
/* * tclAppInit.c -- * * Provides a default version of the main program and Tcl_AppInit * function for Tcl applications (without Tk). * * Copyright (c) 1993 The Regents of the University of California. * Copyright (c) 1994-1997 Sun Microsystems, Inc. * Copyright (c) 1998-1999 by Scriptics Corporation. * * See...
26fab50d3392b6a2b05acf1e08b8c809e0bd98c010cbf32690f158c95f715760
C
4,793
224
/** ****************************************************************************** * @file usbd_ioreq.c * @author MCD Application Team * @brief This file provides the IO requests APIs for control endpoints. ****************************************************************************** * @attention *...
5927fddc9e8aacac02e8a94ac37a9ed82ec74d169a549ae230017991742a6044
C
4,961
157
/* $Id: strip_rw.c,v 1.6 2008/03/28 01:42:07 bfriesen Exp $ */ /* * Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright noti...
27c99ae7036882d6a10171f96a0efa2df99acccb889c4e843c7b20a24871e077
C
4,989
165
/* $Id: tif_codec.c,v 1.15 2010-12-14 12:53:00 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i...
1d3c9b6120681278c9142bb331c5d0e5d0a15b84f5ff49af43ef81389ddbcde9
C
5,053
140
/* * jdtrans.c * * Copyright (C) 1995-1997, Thomas G. Lane. * Modified 2000-2009 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains library routines for transcoding decompression, ...
505942bc301a3c7174654e1c8fc6fa06f011f8a69456df2c168110f677ad50c9
C
5,082
153
/* * jaricom.c * * Developed 1997-2011 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains probability estimation tables for common use in * arithmetic entropy encoding and decoding ...
fcabc3845fc0df551de655ec36923116f67d7c9091c9b89cebf42ff9603f2257
C
5,212
177
/* $Id: ascii_tag.c,v 1.7 2008/04/15 13:32:12 dron Exp $ */ /* * Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices...
ce459d005430b4884d7ad241c919c4a9aae880d4ad52d49e1d9a1ce0852a0e7a
C
5,525
213
/* $Id: tif_jbig.c,v 1.15 2010-03-10 18:56:48 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that ...
7895908ead1711dba1401207c934b5323f9cba4944de5dba42b7d1e5df11f620
C
5,544
134
/************************************************************************** * Microsoft COCO Toolbox. version 2.0 * Data, paper, and tutorials available at: http://mscoco.org/ * Code written by Piotr Dollar and Tsung-Yi Lin, 2015. * Licensed under the Simplified BSD License [see coco/license.txt] ****************...
52dcef0996b6949be7c04e218fb0827e778afdc1fcebc3e06fbb3f9a3f3d3125
C
5,864
205
/* $Id: short_tag.c,v 1.8 2008/04/15 14:20:30 dron Exp $ */ /* * Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices...
371517d8285ca47d286be53a6c1bf8f1a0372e12e6e7f7c84b324d7f441b6581
C
5,881
161
/* * jcapistd.c * * Copyright (C) 1994-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains application interface code for the compression half * of the JPEG library. These are the ...
a00471b601cfd2734f1308e49dde4878c6e6e8c881aa296a15f533773eb0d47f
C
5,947
232
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32wbxx_it.c * @brief Interrupt Service Routines. ****************************************************************************** * @attention * * Copyright (c) 2022 STMicroelectro...
1fbc034dcfb4a96370ce8a108b7d9238a163288a069b2fec06d54c297f327524
C
6,008
174
/* * jfdctflt.c * * Copyright (C) 1994-1996, Thomas G. Lane. * Modified 2003-2009 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains a floating-point implementation of the * forwar...
7e6505bd72dafcd6478235d5c058e5ec8657e9a045942fe26b4eb3e43ef87934
C
6,126
176
/****************************************************************************** * $Id: addtiffo.c,v 1.7 2010-06-08 18:55:15 bfriesen Exp $ * * Project: GeoTIFF Overview Builder * Purpose: Mainline for building overviews in a TIFF file. * Author: Frank Warmerdam, warmerdam@pobox.com * ************************...
8b4ccd36d8aed3352f9f0e9da99ca457186203bc9d39fcc3bf482741bb09fe70
C
6,414
207
/* $Id: tif_thunder.c,v 1.12 2011-04-02 20:54:09 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * t...
258a4fe62bf1a493edc5128f8e45669375be79a96cfb9d670800c106c757be71
C
6,507
201
/* $Id: tiff-rgb.c,v 1.4 2010-06-08 18:55:15 bfriesen Exp $ */ /* * tiff-rgb.c -- create a 24-bit Class R (rgb) TIFF file * * Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts. * * All Rights Reserved * * Permission to use, copy, modify, and distribute this software ...
b53d39df794d6123e9fb04f3f67fba652d8c4e1ed74431d09323d9d70da15dc6
C
6,554
322
/* $Id: tif_unix.c,v 1.23 2012-06-01 21:40:59 fwarmerdam Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * tha...
3ffa9424ebaeef005aff249eb757104815625aeb3caa77c8526c4becda0a43b1
C
6,735
227
/* * jutils.c * * Copyright (C) 1991-1996, Thomas G. Lane. * Modified 2009-2011 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains tables and miscellaneous utility routines needed ...
4c7579a130db179aa5b314dfed2fd0267cc4f8f1f6ef12805ef4c7bec562993a
C
6,764
254
#ifndef lint static char sccsid[] = "@(#)ras2tif.c 1.2 90/03/06"; #endif /*- * ras2tif.c - Converts from a Sun Rasterfile to a Tagged Image File. * * Copyright (c) 1990 by Sun Microsystems, Inc. * * Author: Patrick J. Naughton * naughton@wind.sun.com * * Permission to use, copy, modify, and distribute this soft...
85e72e62132c92e6e5c72277e4c05bee9a08d2128bc2855f2d3a49c3001de1a0
C
6,849
253
/* * rdcolmap.c * * Copyright (C) 1994-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file implements djpeg's "-map file" switch. It reads a source image * and constructs a colormap to be s...
d47386c37032643cbaa593c2caac0f296ce10b0e35efcfcdaa31a2aed25b7d3a
C
7,321
247
/* $Id: custom_dir.c,v 1.2 2012-06-06 05:26:37 fwarmerdam Exp $ */ /* * Copyright (c) 2012, Frank Warmerdam <warmerdam@pobox.com> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright ...
1327f653a38e425cf94cd84f0f0026ddd6415d01dc1cf62dc61849a33629d19b
C
7,410
300
/* $Id: tif_packbits.c,v 1.22 2012-06-20 05:25:33 fwarmerdam Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided ...
ea7f2aff8bd54afa06094aa001e3501f4d0ba76a1be13ba4a86e7eed5c1d45e7
C
7,511
254
/* $Id: raw_decode.c,v 1.4 2012-07-06 17:05:16 bfriesen Exp $ */ /* * Copyright (c) 2012, Frank Warmerdam <warmerdam@pobox.com> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright no...
8988e10a7d5f2dc7770f70e883a149cdac551111de16724b248b2be22d45045d
C
7,524
253
/* * wrtarga.c * * Copyright (C) 1991-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains routines to write output images in Targa format. * * These routines may need modification ...
4eaeca522c7430b07bad4b2e87cb3aa42ccb788160265ecc838dccaedc1ce451
C
7,657
223
/* * !/usr/bin/python * -*- coding: utf-8 -*- * * This file is part of pyunicorn. * Copyright (C) 2008--2026 Jonathan F. Donges and pyunicorn authors * URL: <http://www.pik-potsdam.de/members/donges/software> * License: BSD (3-clause) */ #include <math.h> // surrogates ================================================...
dd78721ba0aaf7defa3d39b3e6f4d20102bea51809299e7950757186f803fd27
C
7,726
249
/* * !/usr/bin/python * -*- coding: utf-8 -*- * * This file is part of pyunicorn. * Copyright (C) 2008--2026 Jonathan F. Donges and pyunicorn authors * URL: <http://www.pik-potsdam.de/members/donges/software> * License: BSD (3-clause) */ #include <math.h> #ifdef _MSC_VER #include <malloc.h> #define ALLOCA(sz) ...
d895ceaf47fe9b8c9486bea8922740af2f3d56dd9b8ca2b6102ed51baaf2b663
C
7,791
284
/* $Id: tiff-palette.c,v 1.5 2010-06-08 18:55:15 bfriesen Exp $ */ /* * tiff-palette.c -- create a Class P (palette) TIFF file * * Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts. * * All Rights Reserved * * Permission to use, copy, modify, and distribute this soft...
f215cc7948e628f4b3bf1f153ce1f460a65b0c4f9b5d4967e9cdc7ad95a3e265
C
7,801
252
/* * jerror.c * * Copyright (C) 1991-1998, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains simple error-reporting and trace-message routines. * These are suitable for Unix-like system...
19173765e1301820ffc712791e719f58ebe64e2bc61e4f569c1c1c5306ac5823
C
7,935
304
/* $Id: tif_compress.c,v 1.22 2010-03-10 18:56:48 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * ...
b1d36581a87a758fa1946c7e3bb96c69ddc7081bcf05b4bffd1ab629e81999e9
C
7,965
343
/* ** ** This file translates the Julia code used in ** Litwin-Kumar et al., 2016 to mex ** */ #include "mex.h" #include "math.h" #include "time.h" #include "matrix.h" /* returns a pseudorandom value drawn from the standard normal distribution */ double randn (double mu, double sigma) { double U1, U2, W, mult; s...
b507094ba76325d0a4a7153c3786e7fe6177fc0c740c0f32d46df77b5fb8faf1
C
7,980
230
/* * jfdctfst.c * * Copyright (C) 1994-1996, Thomas G. Lane. * Modified 2003-2009 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains a fast, not so accurate integer implementation o...
0c164ba60016f2378224b74a28af90bc538dad130aff621c101be5583d59cb78
C
8,130
290
/* $Id: strip.c,v 1.4 2008/03/28 01:42:06 bfriesen Exp $ */ /* * Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices...
c6318c7b484c26354ac3e6164c15403b6445d5eb0d81699b7e5c4106bf4e3e9e
C
8,314
276
/* * jmemname.c * * Copyright (C) 1992-1997, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file provides a generic implementation of the system-dependent * portion of the JPEG memory manager. Th...
44c85822dd8cdefa520c44dcc723b7a43cbfcd36348e78f68b5aaf5c8ce60107
C
8,317
299
/* $Id: tif_tile.c,v 1.23 2012-06-06 05:33:55 fwarmerdam Exp $ */ /* * Copyright (c) 1991-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * th...
dc539d5d0607eafdf4753dc1094ae24fc0fc0b74ab4f7ff34a070f31a5c3079b
C
8,319
235
/* * jidctflt.c * * Copyright (C) 1994-1998, Thomas G. Lane. * Modified 2010 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains a floating-point implementation of the * inverse DCT...
a2db334569b301e3c29de89dbae9ccac8e031a8559eae89cf5df183210ec195d
C
8,369
269
/* * wrppm.c * * Copyright (C) 1991-1996, Thomas G. Lane. * Modified 2009 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains routines to write output images in PPM/PGM format. * Th...
750f83ae8c1c20497c7aa843eb8f40ad8f778875f36b83028585e5ebab8e42bc
C
8,387
303
/* $Id: tiffsplit.c,v 1.22 2011-10-22 17:03:01 bfriesen Exp $ */ /* * Copyright (c) 1992-1997 Sam Leffler * Copyright (c) 1992-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * tha...
e8c365e1333c40753d0278669149fbdca2cefc0d5dbee5e7d2bcc52f0df642be
C
8,390
350
/* * xtif_dir.c * * Extended TIFF Directory Tag Support. * * You may use this file as a template to add your own * extended tags to the library. Only the parts of the code * marked with "XXX" require modification. Three example tags * are shown; you should replace them with your own. * * Author: Niles D....
bf096cbc50f59447f9c0e3b64a021a7426ae39581f6a3e5be97cabc1e0a04508
C
8,537
267
/* * jdatadst.c * * Copyright (C) 1994-1996, Thomas G. Lane. * Modified 2009-2012 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains compression data destination routines for the ca...
2ce13d43285233beb7116416086768edb7a25adb260ff053bdb0a0d3d70fd114
C
8,672
316
/* $Id: sgisv.c,v 1.6 2010-03-10 18:56:49 bfriesen Exp $ */ /* * Copyright (c) 1990-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i)...
6664f6b90db6cea38c7a10a86ab9d4f28781f24755b5f3d018c93c6df0c5e332
C
8,849
333
/* $Id: tiffdither.c,v 1.12 2010-03-10 18:56:50 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * th...
ed97d82edf20723849f2173a9516711270f82df1f4cfe54aef58d5b9dfaa8407
C
8,849
287
/* $Id: tif_color.c,v 1.19 2010-12-14 02:22:42 faxguy Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that ...
b347bd9811dc334cc76b045a0d704f3f81898e3912ab81b5b0f3403181905603
C
8,939
284
/* cpmorphology.c - C routines for morphology processing * * CellProfiler is distributed under the GNU General Public License, * but this file is licensed under the more permissive BSD license. * See the accompanying file LICENSE for details. * * Copyright (c) 2003-2009 Massachusetts Institute of Technology * Co...
a380fa6e7035a2c851aa61b17902dc1036256b244998832503fac0437624e9d8
C
8,977
287
/* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*- * Copyright (C) 2013, 2016 Henner Zeller <h.zeller@acm.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation version 2. * * T...
6cc9dee1cce116e48226dc69071c797f148cd3e3f78d607bbfbe014c11eefdcf
C
9,020
335
/* $Id: sgi2tiff.c,v 1.6 2010-03-10 18:56:49 bfriesen Exp $ */ /* * Copyright (c) 1991-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that ...
3e8c7df3447808d54e0d385e6ec72157d339e99e98c31150c8b17bf254c81239
C
9,096
316
/* $Id: ras2tiff.c,v 1.18 2010-03-10 18:56:49 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that...
32874d0080904c014b5ce74294d304610932b74ad6096151507ffed680de1752
C
9,129
344
#ifndef lint static char id[] = "$Id: tif2ras.c,v 1.3 2010-06-08 18:55:15 bfriesen Exp $"; #endif /*- * tif2ras.c - Converts from a Tagged Image File Format image to a Sun Raster. * * Copyright (c) 1990 by Sun Microsystems, Inc. * * Author: Patrick J. Naughton * naughton@wind.sun.com * * Permission to use, cop...
888c063146555d4d387f7c9646187b1cdf77a84925ff2ad25eb745ad7d2ffaca
C
9,134
333
/** ****************************************************************************** * @file stm32wbxx_hal_pcd_ex.c * @author MCD Application Team * @brief PCD Extended HAL module driver. * This file provides firmware functions to manage the following * functionalities of the USB Perip...
c8847511c86d816a7728f019c0a4da2e62d84acec1fe2fbb467dfe4f22249220
C
9,242
305
/* * wrrle.c * * Copyright (C) 1991-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains routines to write output images in RLE format. * The Utah Raster Toolkit library is required ...
b846fb6385646c0d6916d3983194de9e653b4b8bc336a09f36dcdc526518c6eb
C
9,260
342
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : usbd_cdc_if.c * @version : v3.0_Cube * @brief : Usb device for Virtual Com Port. ****************************************************************************** ...
c9b269e8bb2fe1fc1f0db5b8a0015d83d0e401b7338b3a6e09fb938d197bd44c
C
9,314
310
/* $Id: tif_swab.c,v 1.13 2010-03-10 18:56:49 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that...
5d006807f892ffed6e143084baf21f4232192eb499b6e8d5f80119d8c835de94
C
9,328
358
/* $Id: tif_aux.c,v 1.26 2010-07-01 15:33:28 dron Exp $ */ /* * Copyright (c) 1991-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) ...
bab795dfa59e0d705c19526c5e9f77865594db62017557b9545fb5325963e707
C
9,333
293
/* * jcmainct.c * * Copyright (C) 1994-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains the main buffer controller for compression. * The main buffer lies between the pre-process...
24b5c9e10af403f477f39bc5707ef8f99319cd48ced65349167e1c894322b166
C
9,350
275
/* * jdapistd.c * * Copyright (C) 1994-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains application interface code for the decompression half * of the JPEG library. These are th...
3c54eef1a8b9d7846ac4531c87c4f5f51bdd5d3ab559133661792ada8fe5f18e
C
9,361
275
/* * jdatasrc.c * * Copyright (C) 1994-1996, Thomas G. Lane. * Modified 2009-2011 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains decompression data source routines for the case ...
9df003047ec1916d760fdbf081004573f801a56b8c6d8fac9d888b3c9156aa45
C
9,384
288
/* * jcapimin.c * * Copyright (C) 1994-1998, Thomas G. Lane. * Modified 2003-2010 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains application interface code for the compression h...
595be73f82b4756ec7c6c510723bdaa1b0eabc028412fdaaf8d3e5dccc0ab407
C
9,502
366
/* $Id: ppm2tiff.c,v 1.16 2010-04-10 19:22:34 bfriesen Exp $ */ /* * Copyright (c) 1991-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that...
0fcbd4378662b3eeb9952fa7c498ed087dd5a058daa8921f5abe1390676f4241
C
9,507
289
/* * jmemmac.c * * Copyright (C) 1992-1997, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * jmemmac.c provides an Apple Macintosh implementation of the system- * dependent portion of the JPEG memory man...