Statistics
| Branch: | Revision:

chunker-player / chunker_streamer / chunker_metadata.h @ e11386c0

History | View | Annotate | Download (652 Bytes)

1
#ifndef _CHUNKER_METADATA_H
2
#define _CHUNKER_METADATA_H
3

    
4

    
5
#include <stdlib.h>
6
#include <string.h>
7
#include <stdio.h>
8
#include <sys/time.h>
9
#include <stdint.h>
10
#include <limits.h>
11
#include <confuse.h>
12

    
13
#include "external_chunk.h"
14

    
15
typedef struct chunker_metadata {
16
        int strategy;
17
        //value of current strategy (number of chunks if first strategy, num of bytes if second strategy)
18
        int val_strategy;
19
        //chunk IDs are sequence or start times?        
20
        int cid;
21
        int base_chunkid_sequence_offset;
22
        char outside_world_url[1000];
23
        int framesPerChunk[2]; // 0 = AUDIO; 1 = VIDEO
24
        int targetChunkSize;
25
} ChunkerMetadata;
26

    
27

    
28
ChunkerMetadata *chunkerInit(void);
29

    
30

    
31
#endif