Flix2_encodeframe(), Videoformatyv12, Videoformatbgra – Google Flix Engine Linux Reference Manual User Manual
Page 193: Flix2_encodeframe, 4 function documentation

5.43 Frame Server API
187
5.43.3.2
enum FE2_VideoFormat
Format of input video used in calls to
Attention:
Available only in the
Enumerator:
VideoFormatYV12
VideoFormatBGRA
Definition at line 95 of file fs_options.h.
5.43.4
Function Documentation
5.43.4.1
on2sc Flix2_EncodeFrame (FLIX2HANDLE flix, FE2_FrameType type, on2bool eos,
uint8_t ∗ frame, uint32_t len, int64_t ts90k)
Queue an input frame for encoding.
Parameters:
← flix Handle to the flix engine returned from
or
← type Input type
← eos End of stream indicator. Must be set for all streams to complete an encode (a null frame may
be passed after all valid frames have been sent)
← frame Pointer to raw data buffer. (1 video frame or a chunk of audio samples based on the type
parameter).
← len Size in bytes of the raw data pointed to by frame
← ts90k Timestamp for this frame in units of 90kHz. Currently only used for
Return values:
on success
should one or more of the preconditions fail
for further detail Precondition: flix is not NULL frame is not NULL or eos is set input of type type was setup using the corresponding Flix2_SetXXXProperties call Attention: Available only in the Note: The engine handles interleaving of the output file so input need not be perfectly interleaved. Making a should be called after setting eos to ensure all frames have been encoded. Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen
reasonable attempt at interleaving the input will reduce memory usage, however.