Statistics
| Branch: | Revision:

chunker-player / external_chunk_transcoding.h @ 1e69ae95

History | View | Annotate | Download (836 Bytes)

1
#ifndef _EXTERNAL_CHUNK_TRANSCODING_H
2
#define _EXTERNAL_CHUNK_TRANSCODING_H
3

    
4
#include <stdlib.h>
5

    
6
#include <chunk.h>
7
#include <chunk_external_interface.h>
8

    
9
#include "external_chunk.h"
10

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

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

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

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

    
32

    
33
#endif