text stringlengths 3.12k 18.7k |
|---|
#include "packet.h"
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <net/ethernet.h>
#include "log.h"
#include "client.h"
#include "session.h"
#include "zero.h"
#include "packet.h"
#include "blacklist.h"
#include "config.h"
#include "scope.h"
static void l4d_fill(struct ip *iph, zl4_... |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2008, 2007, 2006, 2005 <NAME>
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Ge... |
#include <arch/config.h>
#include <xbook/debug.h>
#include <arch/io.h>
#include <arch/debug.h>
#include <arch/interrupt.h>
#include <xbook/kernel.h>
/*
颜色生成方法
MAKE_COLOR(BLUE, RED)
MAKE_COLOR(BLACK, RED) | BRIGHT
MAKE_COLOR(BLACK, RED) | BRIGHT | FLASH
*/
#define TEXT_BLACK 0x0 /* 0000 */
#define TEXT_WHITE 0... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
#include <target/util.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
char* vformat(const char* fmt, va_list ap) {
char buf[256];
va_list va_cpy;
va_copy(va_cpy, ap);
int n = vsnprintf(buf, 256, fmt, ap) + 1;
if (n > 256) {
char* ... |
/* SPDX-License-Identifier: MIT */
#include "ebcvm.h"
#include "efi.h"
#define ConOut_OutputString_MAGIC 0xdbec42e5063aa942
#define ConIn_ReadKeyStroke_MAGIC 0xa1b4e93c32d682d0
#define BS_AllocatePool_MAGIC 0xd61390cb796062bb
static size_t calc_offset(size_t size) {
return size + size % ARCH_BYTES;
}
static void ... |
#include <stdbool.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <png.h>
#include "fab/formats/png.h"
static void on_png_error(png_structp p, png_const_charp msg)
{
(void)p; // unused
fprintf(stderr, "libpng error with message '%s'\n", msg);
}
static void on_png_war... |
/**
* @file ptree.c
*
* @brief parse tree implementation
*
* This file defines parse
* tree mapping for plain-
* text SD source code
*/
#include <stdlib.h>
#include <sd/lang/expr/drivers/drivers.h>
#include <sd/lang/tokens/gen/txtmaps.h>
#include <sd/lang/hooks/txt/txthooks.h>
#include <sd/lang/vm/vm.h>
#inc... |
#pragma once
#include "base64.h"
#include "db_index.h"
#include "db_malloc.h"
#include "db_error.h"
#include "db_map.h"
#include "db_api.h"
#include "../rwlock/readerwriter.h"
// BTree configuration and options
// #define *+ (2 + 7 + 1)
#define Btree1_maxbits 29 // maximum page size in bits
#define Btree1_minbi... |
/*
This file is part of PlibC.
(C) 2005 <NAME> (and other contributing authors)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or ... |
/*
* SN Platform system controller communication support
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2004-2006 <NAME>, Inc. All rights reserved.
*/
/*
* System cont... |
/* $Id: lib_sel.c 792 2011-06-26 18:20:30Z wrp $ */
/* copyright (c) 1996, 1997, 1998, 1999, 2014 by <NAME> and
The Rector & Visitors of the University of Virginia */
/* Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may ob... |
#include "picnic.h"
#include <memory.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef KATDIR
#define KATDIR "kats"
#endif
typedef struct {
size_t mlen;
uint8_t *msg;
uint8_t pk[PICNIC_MAX_PUBLICKEY_SIZE];
uint8_t sk[PICNIC_MAX_PRIVATEKEY_SIZE];
size_t smlen;
uint8_t *sm;
} test_vect... |
/* This paricular file is licensed under the following terms: */
/*
* This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable
* for any damages arising from the use of this software.
*
* Permission is granted to anyone to use this software for any... |
/*
* Copyright (C) 2020-2021 Alibaba Group Holding Limited
*/
#include <string.h>
#include <aos/i2c_core.h>
#define XFER_TIMEOUT 1000
#define EVENT_XFER_COMPLETE ((uint32_t)1 << 0)
#define EVENT_XFER_ERROR ((uint32_t)1 << 1)
aos_status_t aos_i2c_get(aos_i2c_ref_t *ref, uint32_t id)
{
ret... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define false 0
#define true 1
typedef struct node_t node_t;
typedef struct list_t list_t;
typedef struct point_t point_t;
typedef struct set_t set_t;
typedef long long int lld;
struct list_t{
node_t* pointer;
list_t* next;
int index;
};
struct node_t... |
// Reveni (c) 2020 Baltasar MIT License <<EMAIL>>
/* objs */
#include "objs.h"
#include "ctrl.h"
#include <string.h>
#include <stddef.h>
#include <stdlib.h>
#include <spectrum.h>
const int PLAYER_NUM_LOC = -128;
const int LIMBO = -129;
Obj objs[NumObjs];
static Obj * objs_found[NumObjs + 1];
void init_objs()
{
... |
/*
* Copyright 2019 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <assert.h>
#include <errno.h>
#include <stdlib.h>... |
/*
* Graph search
*
* 15-122 Principles of Imperative Computation
*/
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "lib/graph.h"
// function prototypes
bool naive_dfs(graph_t G, vertex start, vertex target);
bool dfs(graph_t G, vertex start, vertex ta... |
/*
* tel-plugin-vmodem
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact: <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... |
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "FLAME.h"
#include "test_libflame.h... |
/* $OpenBSD: yukonreg.h,v 1.2 2003/08/12 05:23:06 nate Exp $ */
/*-
* Copyright (c) 2003 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all co... |
#include <math.h>
#include <stdlib.h>
#if !defined(M_PI)
# define M_PI 3.14159265358979323846
#endif
#include <string.h>
#include <stdio.h>
#include "lpclib.h"
#include "rs92.h"
#include "rs92private.h"
#include "observer.h"
#include "rinex.h"
#define RS92_INVALID_PSEUDORANGE (0x7FFFFFFF... |
/*
* Disk driver
*
* Copyright (C) 2003 <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME>.
*
* 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 copyright
* ... |
/* This example shows how to setup a very simple QUARK program. The
* dependencies involved in matrix multiplication are minimal, however
* you can see how QUARK can easily enable parallelism for a tile
* based code.
*
* In this example the calls to the tile based matmul routine are
* replaced with calls to a ... |
/* MIT License
*
* Copyright (c) 2016-2020 INRIA, CMU and Microsoft Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... |
/*
* MACDRV image functions
*
* Copyright 2013 <NAME> for CodeWeavers Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your optio... |
#include "rc_internal.h"
#include <stdlib.h>
char rc_parse_operator(const char** memaddr) {
const char* oper = *memaddr;
switch (*oper) {
case '=':
++(*memaddr);
(*memaddr) += (**memaddr == '=');
return RC_OPERATOR_EQ;
case '!':
if (oper[1] == '=') {
(*memaddr) += 2;
... |
#pragma once
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <slankdev/util.h>
#include <slankdev/hexdump.h>
inline const char *
IFLA_2STR(unsigned short rta_type)
{
switch (rta_type) {
case IFLA_UNSPEC : return "UNSPEC" ;
case IFLA_ADDRESS : return "ADDRESS" ;
c... |
#include "postgres.h"
#include "fmgr.h"
#include "funcapi.h"
#include "miscadmin.h"
#include "access/appendonlytid.h"
#include "access/genam.h"
#include "access/nbtree.h"
#include "utils/builtins.h"
#include "utils/rel.h"
PG_MODULE_MAGIC;
PG_FUNCTION_INFO_V1(readindex);
Datum readindex(PG_FUNCTION_ARGS);
typedef s... |
#include "os.h"
#include <libsec.h>
/*
* This MD4 is implemented from the description in Stinson's Cryptography,
* theory and practice. -- presotto
*/
/*
* Rotate ammounts used in the algorithm
*/
enum
{
S11= 3,
S12= 7,
S13= 11,
S14= 19,
S21= 3,
S22= 5,
S23= 9,
S24= 13,
S31= 3,
S32= 9,
S33= 11,
S... |
/* Copyright (c) 2015-2017, <NAME>,
Copyright (c) 2016-2017 Wei-Chen
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... |
/*
* Copyright (C) INGCHIPS. All rights reserved.
* This code is INGCHIPS proprietary and confidential.
* Any use of the code for whatever purpose is subject to
* specific written permission of INGCHIPS.
*/
#include <ingsoc.h>
#include <stdio.h>
#include <string.h>
#include "bluetooth.h"
#include "att_db_util.h"
#inc... |
/**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*
* CUBIC based on https://tools.ietf.org/html/rfc8312
*/
#include "src/congestion_control/xqc_cubic.h"
#include "src/common/xqc_config.h"
#include <math.h>
#define XQC_CUBIC_FAST_CONVERGENCE 1
#define XQC_CUBIC_MSS 1460
#define XQ... |
/*
* SrvKalman.c
*
* Created: 06/07/2012 16:34:50
* Author: berryer
*/
/////////////////////////////////////////////INCLUDES/////////////////////////////////////////////
#include "Conf/conf_hard.h"
#include "SrvKalman.h"
////////////////////////////////////////PRIVATE VARIABLES///////////////... |
/*
* time_domain_convolve
*
* time_domain_convolve performs real-time zero latency time-based convolution.
*
* Typically time_domain_convolve is suitable for use in conjunction with partition_convolve for zero-latency convolution with longer impulses (time_domain_convolve use apple's vDSP and the IR lengt... |
/******************************************************************************
* @section DESCRIPTION
*
* Collection of snow utilities.
******************************************************************************/
#include <vic_run.h>
/******************************************************************************
... |
/*********************************************************************************
* Copyright: (C) 2018 Yujie
* All rights reserved.
*
* Filename: usart.c
* Description: 串口配置
*
* Version: 1.0.0(08/27/2018)
* Author: yanhuan <<EMAIL>>
* C... |
/*
* OpenAL Tone Generator Test
*
* Copyright (c) 2015 by <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the right... |
#include "intelhex.h"
#include <stdio.h>
#define INVALID_HEX_CHAR (0xff) /* Indicates a character not in the sets 0-9 or A-F */
#define NON_DATA_RECORD_SIZE (5) /* Total size of RECLEN (1), LOAD OFFSET (2), RECTYP (1) and CHKSUM (1) fields. */
#define MAX_DATA_SIZE (255) /* Maximum size of DATA (or INFO... |
/*
No copyright is claimed in the United States under Title 17, U.S. Code.
All Other Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitat... |
#include "say.h"
static void say_vector_normalize(float *x, float *y, float *z) {
float size = sqrtf((*x) * (*x) + (*y) * (*y) + (*z) * (*z));
*x = *x / size;
*y = *y / size;
*z = *z / size;
}
static say_vector3 say_vector_product(say_vector3 a, say_vector3 b) {
say_vector3 res;
res.x = a.y * b.z - a.z ... |
/*
*
* Copyright © 2000 SuSE, Inc.
* Copyright © 2007 Red Hat, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice... |
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<time.h>
#include<stdlib.h>
typedef struct _RODADAS{
char tentativa[4];
int resposta[3];
}RODADAS_ANTERIORES;
/*--- Funções ---*/
int validar_tentativa(char c[6]);
void gerar_senha(int * senha);
void limpar(void);
void comparar(char * tentativa, in... |
/*
* BSD LICENSE
*
* tinyplay command line player for compress audio offload in alsa
* Copyright (c) 2011-2012, Intel Corporation
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/* Functions to handle various operations on 3 x 3 matrices */
/* HISTORY:*/
/* 2002/07/24 (MCB) Found and fixed bug in mat33_inverse involving */
/* incorrect formula for element B[7]=-c5 */
/* 2002/05/22 (MCB) Improved mat33_mat33_mult to allow inplace op. */
/* 2002/05/21 (MCB) Found and f... |
/*
* cpacfstats - display and maintain CPACF perf counters
*
* low level perf functions
*
* Copyright IBM Corp. 2015, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <errno.h>
#include <getopt.h>
#define ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "procs.h"
#include "svc.h"
#include "SDHC_FAT32_Files.h"
#include "breakpoint.h"
#include "mymalloc.h"
#include "myerror.h"
#include "devices.h"
#include "intSerialIO.h"
#include "dateTime.h"
#include "simpleshell.h"
#include "delay... |
#ifdef _WIN32
# define _CRT_SECURE_NO_WARNINGS 1
#endif
#include "mdns.h"
#include <stdio.h>
#include <errno.h>
#ifdef _WIN32
# define sleep(x) Sleep(x * 1000)
#else
# include <netdb.h>
#endif
static char addrbuffer[64];
static char namebuffer[256];
static mdns_record_txt_t txtbuffer[128];
static mdns_string_t... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Demonstrate USCI SPI data transfer with PDMA.
* USCI_SPI0 (USPI0) will be configured as Master mode and transfer data loopback to self by connect MOSI pin to MISO pin.
* ... |
/**
* Main.
*/
#define MAIN
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "Include.h"
/* macros */
#define MAXARRAY 100
/* protos */
static void Usage(int);
static int GetInteger(char *, char *);
static void GetMeta(char *, char **, char **);
static char *GetSolution(char... |
/**
* collectd - src/fscache.c
* Copyright (C) 2009 Edward "Koko" Konetzko
*
* 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; only version 2 of the License is applicable.
*
* This program... |
//--------------------------------------
// Program Name: ApsirinCE
// Author: Unicorn
// License:
// Description: A Port of Aspirin to the TI 84+ CE Calculator
//--------------------------------------
/* Headers! */
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <tice.h>
/* More Headers! */
#... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct list{
int id,no,rating;
char name[20],genre[10],album[10];
struct list *next;
} list;
typedef struct bstree{
int id,rating;
char name[20],genre[10],album[10];
struct bstree *left;
struct bstree *right;
} lib;
typedef struct queue{
char na... |
/** @file */
#include "array.h"
#include "iofuzzer.h"
#include "random.h"
#include <errno.h>
#include <getopt.h>
#include <limits.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/io.h>
#include <unistd.h>
#define MAXPORT 0xffff
#define usage() \
f... |
/*
HuC6280 sound chip emulator
by <NAME>
E-mail: <EMAIL>
WWW: http://cgfm2.emuviews.com
Thanks to:
- <NAME> for his PSG documentation.
- <NAME> for the TGEmu-specific sound updating code.
- http://www.uspto.gov for the PSG patents.
- All contributors to the tghack-list.
Change... |
#include "eb.h"
struct EBRegion;
/*
* Returns a raw bitmap array for the given EBImage.
*/
struct PPMImage EBImage_to_ppm(struct EBImage *eb) {
struct PPMImage ppm;
ppm.width = eb->width;
ppm.height = eb->height;
ppm.data = malloc(sizeof(uint32_t) * eb->width * eb->height);
// Map out which pix... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/dlloader.c,v 1.19 2006/04/03 18:08:03 dawes Exp $ */
/*
* Copyright (c) 1997 The XFree86 Project, Inc.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (t... |
/*
* test_httpcertstore.c
*
* Test Httpcertstore Type
*
* Copyright 2004-2005 Sun Microsystems, Inc. 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. Redistribution of source code... |
// Porres 2017
#include "m_pd.h"
#include <math.h>
#define PI 3.14159265358979323846
typedef struct _resonant{
t_object x_obj;
t_int x_n;
t_inlet *x_inlet_freq;
t_inlet *x_inlet_q;
t_outlet *x_out;
t_float x_nyq;
int x_bypass;
int x_t60;
double... |
/*******************************************************************************
* Copyright 2011-2016 Intel Corporation All Rights Reserved.
*
* The source code, information and material ("Material") contained herein is
* owned by Intel Corporation or its suppliers or licensors, and title to such
* Material rem... |
/**************************************************************************
* Port lines used: Data1 to Data4 - P0.23 to P0.26
* En - P0.28. RS - P0.27, RW - Ground
* Connection : CND to CNAD. Short jumper JP16
***************************************************************************/
#include <lpc17xx... |
#define _DEFAULT_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <sys/time.h>
#include <time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <X11/Xlib.h>
// VARIABLES
static Display *dpy;
// Timezones
char *tzutc = "UTC"... |
// SPDX-License-Identifier: BSD-2-Clause
/* Copyright (c) 2019 Netronome Systems, Inc. */
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include <linux/if_link.h>
#include <bpf/bpf.h>
#include <kefir/libke... |
/* line editing function */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include "el.h"
#define NHB 41 /* number of history buffers */
#define MLL 75 /* max line length -- no wrap */
static int cc; /* cursor column -- 0 based */
... |
// 0x070162E0 - 0x07016340
static const Vtx lll_seg7_vertex_070162E0[] = {
{{{ 0, 307, -895}, 0, { 0, -3012}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -767, 307, 384}, 0, { -2586, 1244}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 0, 307, 896}, 0, { 0, 2946}, {0x00, 0x7f, 0x00, 0xff}}},
... |
/* O_*, F_*, FD_* bit values for GNU.
Copyright (C) 1993-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Fou... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <getopt.h>
#include <medusa/error.h>
#include <medusa/httprequest.h>
#include <medusa/monitor.h>
#define OPTIONS_DEFAULT_URL "http://127.0.0.1"
#define OPTIONS_DEFAULT_METHOD "post"
#define OPTIONS_DEFAULT_DA... |
#include <stdio.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include <JavaScriptCore/JavaScript.h>
#include <webkit2.h>
#define URI_LOGIN "https://172.16.255.254/auth.html"
#define URI_LOGIN_OK "http://172.16.255.254/dynUserLogin.html"
#define URI_LOGIN_FAIL URI_LOGI... |
/*
* File: keyboard.c
*
* Copyright (c) 2017-2018 <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
#include <string.h>
#include <limits.h>
#include "system.h"
#include "bioCharmm.h"
#include "bioCharmmParms.h"
#include "bioCharmmCovalent.h"
#include "energyInfo.h"
#include "expandbuffer.h"
#include "ddc.h"
#include "ddcMalloc.h"
#include "bioGid.h"
#include "gid.h"
#include "units.h"
#include "mpiUtils.h"
int compa... |
// RFC7798 RTP Payload Format for High Efficiency Video Coding (HEVC)
#include "rtp-packet.h"
#include "rtp-payload-internal.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
/*
0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|F| Type | LayerId... |
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <CoreFoundation/CoreFoundation.h>
#include <mach-o/dyld.h>
#include <mach-o/ldsyms.h>
#include <sys/stat.h>
#include <sys/resource.h>
#include "pdj.h"
/**
* === USING AWT WITH OS X
*
* Unlike Linux or Windows, you cannot just simply fire-up a AW... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
/*
Copyright 2016 Vanderbilt University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... |
/*
* Copyright (c) 2011-2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
//---------------------------------------------------------------------------
// sgiso.c
//
// These functions implement a subgraph isomorphism algorithm embodied
// in the FindInstances function. This is primarily used to find
// predefined substructures.
//
// Subdue 5
//---------------------------------------------... |
/*
* $Id: dec_clientmsg_handler.c 2835 2014-04-03 15:30:57Z antonin $
*
* Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2014, <NAME>
* Copyright (c) 2010-2011, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* ... |
/*
* Copyright (C) 2016 Southern Storm Software, Pty Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, ... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
double Ne_to_fpe(double Ne)
{
return 8978.18235285877*sqrt(abs(Ne));
}
double fpe_to_Ne(double fpe)
{
return 1.24057537429491*pow(fpe,2)*1e-8;
}
double heaviside(double x, double a)
{
if(x<=0) return a;
return 1.;
}
double N0_fun(double z)
{
... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2014 Google Inc.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licen... |
/// @file ads1292r.c
/// This file contains the API for ADS1292r device.
/// Detailed file description.
#include "ads1292r.h"
//private data structure containing the pin configuration of ADS1292r
static gpio_out_config_t ads1292r_pull_config;
//private data structure containing the spi configuration to communicate w... |
// SPDX-License-Identifier: GPL-2.0
/*
* This file implements the error recovery as a core part of PCIe error
* reporting. When a PCIe error is delivered, an error message will be
* collected and printed to console, then, an error recovery procedure
* will be executed by following the PCI error recovery rules.
*
... |
#define _GNU_SOURCE
#include <sched.h>
#include <stdlib.h>
#include <signal.h>
#include <ncurses.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <rsa.h>
#include <comm.h>
#include <ui.h>
#include <client.h>
#include <settings.h>
char *rec_buff;
int rec_buff_len;
int rec_... |
/*
// Projeto SO - exercicio 1, version 03
// Sistemas Operativos, DEI/IST/ULisboa 2017-18
// GRUPO 47 - <NAME> (87671) e <NAME> (87693)
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>
#include "matrix2d.h"
/*--------------------------------------------------------------------
| Ty... |
/***************************************************************************
video.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
UINT8 *exedexes_bg_scroll;
UINT8 *exedexes_nbg_yscroll;
UINT8 *exedexes_... |
/* Copyright (C) StrawberryHacker */
#include "scheduler.h"
#include "nvic.h"
#include "systick.h"
#include "cpu.h"
#include "panic.h"
#include "gpio.h"
#include "print.h"
#include "syscall.h"
#include "dlist.h"
#include <stddef.h>
/*
* These are shared global variables with the `context.s` file which
* uses these... |
/*
* $Id: nm02c.c,v 1.4 2010-03-15 22:49:24 haley Exp $
*/
/************************************************************************
* *
* Copyright (C) 1997 *
* University Corporation ... |
/*
Run-Length Encoding Parser (WIP)
Copyright (c) 2022, <NAME>. Licensed under The MIT License.
See https://github.com/eloj/rle-zoo
TODO:
The parser is incomplete and not fully functional.
'goldbox' encoding is broken -- always uses REP.
Just give up and use getopt.h
Take debug flag to output ops.
Log ... |
#include "accountarray.h"
#include "sope.h"
struct account_mut * accounts;
static bool usedIds[MAX_BANK_ACCOUNTS+1] = {0};
void setAccountsArray(struct account_mut * acc) {
accounts = acc;
}
void creatAdmin(char * pass) {
bank_account_t admin;
admin.account_id = 0;
char *salt = calloc(SALT_LEN+1,1);... |
/* BSD 3-Clause License
Copyright (c) 2021, Smart6502
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 copyright notice, this
list of condition... |
/*
* Copyright (c) 2012, Texas Instruments Incorporated - http://www.ti.com/
* 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... |
char shatle[] = {0x4,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x40,0x0,0x0,0x0,0x0,0x0,0x76,0x66,0x66,0x65,0x0,0x0,0x0,0x1,0x11,0x40,0x0,0x0,0x0,0x0,0x1,0x11,0x14,0x44,0x40,0x0,0x0,0x1,0x11,0x11,0x11,0x14,0x44,0x0,0xbb,0xbb,0xbb,0x11,0x11,0xee,0x40,0xcc,0xcc,0xcc,0x11,0x11,0xee,0xf0,0x1,0x11,0x11,0x11,0x1f,0xff,0x0,0x1,0x11,0x1f,0x... |
/*
*
* Copyright (c) International Business Machines Corp., 2001
*
* 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; either version 2 of the License, or
* (at your option) any l... |
/*
*
* Copyright 2017 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
/* Copyright (c) 2018, Linaro Limited
* Copyright (c) 2020, Nokia
* Copyright (c) 2021, Marvell
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libconfig.h>
#include <odp/api/version.h>
#include <odp_global_data.h>
#inc... |
/*
* $Id$
*
* Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2014, Professor <NAME>
* Copyright (c) 2010-2011, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
/**
@file
@ingroup cudd
@brief Cofactoring functions.
@author <NAME>
@copyright@parblock
Copyright (c) 1995-2015, Regents of the University of Colorado
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following ... |
/*-
* Copyright 2013-2015 <NAME> <<EMAIL>>
* 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 copyright
* notice, this list of c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.