Revision 7f591208

View differences:

channel.c
1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
1 6
#include <stdlib.h>
2 7
#include <string.h>
3 8

  
channel.h
1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
1 6
#ifndef CHANNEL_H
2 7
#define CHANNEL_H
3 8

  
chunk_signaling.c
1 1
/*
2
 *  Copyright (c) 2009 Alessandro Russo.
2
 *  Copyright (c) 2009 Alessandro Russo
3
 *  Copyright (c) 2009 Csaba Kiraly
3 4
 *
4
 *  This is free software;
5
 *  see GPL.txt
5
 *  This is free software; see gpl-3.0.txt
6 6
 *
7 7
 * Chunk Signaling API - Higher Abstraction
8 8
 *
......
10 10
 * This is a part of the Data Exchange Protocol which provides high level abstraction for chunks' negotiations, like requesting and proposing chunks.
11 11
 *
12 12
 */
13

  
14 13
#include <stdint.h>
15 14
#include <stdlib.h>
16 15
#include <stdio.h>
chunk_signaling.h
1
/*
2
 *  Copyright (c) 2009 Alessandro Russo
3
 *  Copyright (c) 2009 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef CHUNK_SIGNALING_H
2 8
#define CHUNK_SIGNALING_H
3 9

  
chunkbuffer_helper.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef CHUNKBUFFER_HELPERS_H
2 8
#define CHUNKBUFFER_HELPERS_H
3 9

  
chunklock.c
1 1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3 2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *  Copyright (c) 2010 Luca Abeni
4 4
 *
5 5
 *  This is free software; see gpl-3.0.txt
6 6
 */
chunklock.h
1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *  Copyright (c) 2010 Luca Abeni
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef CHUNKLOCK_H
2 8
#define CHUNKLOCK_H
3 9

  
dbg.c
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#include <sys/time.h>
2 8
#include <stdio.h>
3 9
#include <stdarg.h>
dbg.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef DBG_H
2 8
#define DBG_H
3 9

  
input-stream.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef INPUT_STREAM_H
2 8
#define INPUT_STREAM_H
3 9

  
input.c
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#include <sys/time.h>
2 8
#include <stdlib.h>
3 9
#include <stdint.h>
input.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef INPUT_H
2 8
#define INPUT_H
3 9

  
loop.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef LOOP_H
2 8
#define LOOP_H
3 9

  
measures-monl.c
1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
1 6
#include <math.h>
2 7
#ifndef NAN	//NAN is missing in some old math.h versions
3 8
#define NAN            (0.0/0.0)
measures.c
1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
1 6
#include <stdint.h>
2 7
#include <math.h>
3 8
#ifndef NAN	//NAN is missing in some old math.h versions
measures.h
1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
1 6
#ifndef MEASURES_H
2 7
#define MEASURES_H
3 8

  
net_helpers.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef NET_HELPERS_H
2 8
#define NET_HELPERS_H
3 9

  
out-stream-dummy.c
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
1 6
#include <unistd.h>
2 7
#include <stdint.h>
3 8
#include <stdio.h>
out-stream.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
1 6
void chunk_write(int id, const uint8_t *data, int size);
2 7

  
output.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef OUTPUT_H
2 8
#define OUTPUT_H
3 9

  
payload.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
1 6
#define VIDEO_PAYLOAD_HEADER_SIZE 1 + 2 + 2 + 2 + 2 + 1 // 1 Frame type + 2 width + 2 height + 2 frame rate num + 2 frame rate den + 1 number of frames
2 7
#define FRAME_HEADER_SIZE (3 + 4 + 1)	// 3 Frame size + 4 PTS + 1 DeltaTS
3 8

  
streaming.h
1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#ifndef STREAMING_H
2 8
#define STREAMING_H
3 9

  
topology.c
1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *  Copyright (c) 2010 Luca Abeni
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#include <stdint.h>
2 8
#include <stdio.h>
3 9
#include <sys/time.h>
topology.h
1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *  Copyright (c) 2010 Luca Abeni
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
1 7
#include <stdint.h>
2 8

  
3 9
int peers_init();

Also available in: Unified diff