fame_encode_sliceSection: fame_encode_slice (3)Updated: Febrary 19, 2002 |
fame_encode_sliceSection: fame_encode_slice (3)Updated: Febrary 19, 2002 |
#include <fame.h> int fame_encode_slice(fame_context_t *context);
fame_start_frame should be called before coding the first slice and fame_end_frame should be called after coding the last slice.
context is the context handle previously returned by fame_open
fame_start_frame(fc, &yuv, NULL);
while((length = fame_encode_slice(fc)) != 0)
write(output, buffer, length);
fame_end_frame(fc, NULL);