Statistics
| Branch: | Revision:

chunker-player / frame.h @ 1e69ae95

History | View | Annotate | Download (645 Bytes)

1
#ifndef _FRAME_H
2
#define _FRAME_H
3

    
4
/**
5
 * @file frame.h
6
 * (giuseppe tropea)
7
 *
8
 * Contains description of the Frame header
9
 * and Frame related functions
10
 * @todo elaborate the description
11
 */
12

    
13
typedef struct Frame
14
{
15
  /**
16
   * Sequential number of this frame.
17
   * The sequential number assigned to this frame by the encoder (starts at zero)
18
   */
19
  int number;
20

    
21
  /**
22
   * The time at which the live source emitted this frame.
23
   */
24
  struct timeval timestamp;
25

    
26
  int64_t pts;
27

    
28
  /**
29
   * the size in bytes of this frame.
30
   */
31
  int size;
32

    
33
  /**
34
   * Frame type.
35
   * Types are (A,I,P,B) (audio, I, P, B)
36
   */
37
  int type;
38
} Frame;
39

    
40
#endif
41