Statistics
| Branch: | Revision:

chunker-player / frame.h @ master

History | View | Annotate | Download (629 Bytes)

1 1e69ae95 GiuseppeTropea
#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
  /**
27
   * the size in bytes of this frame.
28
   */
29
  int size;
30
31
  /**
32
   * Frame type.
33
   * Types are (A,I,P,B) (audio, I, P, B)
34
   */
35
  int type;
36
} Frame;
37
38
#endif