fame_registerSection: fame_register (3)Updated: July 29, 2001 |
fame_registerSection: fame_register (3)Updated: July 29, 2001 |
#include <fame.h> void fame_register(fame_context_t *context, char const *type, fame_object_t *object);
context is the context handle previously returned by fame_open
type is a type identifier to be associated with the object for further retrieval through fame_get_object.
object is the object to associate with type
fame_profile_t* profile,profile/mpeg1
MPEG-1 profile, uses "syntax/mpeg1", "encoder/mpeg" and "motion"
fame_profile_t* profile/mpeg4,profile/mpeg4/simple
MPEG-4 simple profile, uses "syntax/mpeg4", "encoder/mpeg" and "motion"
fame_profile_t* profile/mpeg4/shape
MPEG-4 shape profile, uses "syntax/mpeg4", "encoder/mpeg", "shape" and "motion"
fame_syntax_t* syntax,syntax/mpeg1
MPEG-1 bitstream syntax
fame_syntax_t* syntax/mpeg4
MPEG-4 bitstream syntax
fame_encoder_t* encoder,encoder/mpeg
MPEG encoder
fame_motion_t* motion,motion/none
null motion estimation
fame_motion_t* motion,motion/fourstep
four step motion estimation
fame_motion_t* motion,motion/pmvfast
pmvfast motion estimation
fame_rate_t* rate
simple rate control
fame_shape_t* shape
shape coder
will try to get the object associated with "profile/mpeg4/simple" and register it for the "profile" type as well. This piece of code, called just after fame_open and just before fame_init would effectively have libfame produce MPEG-4 output instead of default MPEG-1.
will overide the default profile 'encode' function with this one printing "Hello world!" :)