Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
fame_encode_slice(3)	       fame_encode_slice	  fame_encode_slice(3)

NAME
       fame_encode_slice - encode a single slice

SYNOPSIS
       #include	<fame.h>

       int fame_encode_slice(fame_context_t *context);

DESCRIPTION
       fame_encode_slice() encodes a single slice (part	of frame).  Slices are
       processed from top to bottom of frame. The number of slices to  process
       depends on the slices_per_frame parameter specified during fame_init

       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

RETURN VALUE
       fame_encode_slice returns the number of bytes written to	the  bitstream
       buffer. If all slices have been coded, zero is returned.

EXAMPLE
	     fame_start_frame(fc, &yuv,	NULL);

	     while((length = fame_encode_slice(fc)) != 0)
	      write(output, buffer, length);

	     fame_end_frame(fc,	NULL);

BUGS
       MMX  arithmetic performs	bad at quality > 95%.  Encoding	of B frames is
       not yet supported.

SEE ALSO
       fame_open(3),   fame_init(3),	fame_close(3),	  fame_start_frame(3),
       fame_end_frame(3)

libfame			       Febrary 19, 2002		  fame_encode_slice(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | EXAMPLE | BUGS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=fame_encode_slice&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help