#include <librmff.h>
Data Fields | |
| unsigned char * | data |
| The frame/packet contents. | |
| uint32_t | size |
| The number of bytes in this frame. | |
| int | allocated_by_rmff |
| Set by librmff if librmff has allocated the buffer and should free it in rmff_release_frame. | |
| uint16_t | id |
| The track ID this frame belongs to. This will be overwritten in rmff_write_frame. | |
| uint32_t | timecode |
| The presentation timestamp in ms. | |
| uint8_t | reserved |
| uint8_t | flags |
| Flags, e.g. bit 1 = key frame. | |
A new frame can be obtained with rmff_allocate_frame or read from a file with rmff_read_next_frame. In both cases the application can either have librmff allocate a buffer for the frame contents or provide the buffer itself. In the latter case rmff_release_frame will not free the buffer either.
1.3.6-20040222