Statistics
| Branch: | Revision:

chunker-player / external_chunk_transcoding.h @ a7177cd5

History | View | Annotate | Download (798 Bytes)

1
#ifndef _EXTERNAL_CHUNK_TRANSCODING_H
2
#define _EXTERNAL_CHUNK_TRANSCODING_H
3

    
4
#include <stdlib.h>
5

    
6
#include <chunk.h>
7

    
8
#include "external_chunk.h"
9

    
10
#define CHUNK_TRANSCODING_INT_SIZE 4
11
//this should be in chunk.h and used in som's chunk_encoding.c
12
#define GRAPES_ENCODED_CHUNK_HEADER_SIZE 20
13

    
14
/**
15
 * commodity function to dump a block of bytes
16
 */
17
void print_block(const uint8_t *b, int size);
18

    
19
/**
20
 * transform a grapes chunk into an external chunk
21
 * provided the grapes chunk has the appropriate attributes section
22
 */
23
ExternalChunk *grapesChunkToExternalChunk(Chunk *gchunk);
24

    
25
/**
26
 * pack the extra information held into the external chunk structure
27
 * into a proper attributes section of a grapes chunk
28
 */
29
void *packExternalChunkToAttributes(ExternalChunk *echunk, size_t attr_size);
30

    
31

    
32
#endif