Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/img/img_encode_begin.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/img/img_encode_begin.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/img/img_encode_begin.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/img/img_encode_begin.html on line 8
Prepare to encode a frame to a stream
#include <img.h>
int img_encode_begin( img_codec_t codec,
io_stream_t *output,
uintptr_t *encode_data );
- codec
- The codec to use. To figure out a codec to use, see img_codec_list(), img_codec_list_byext(), and img_codec_list_bymime().
- output
- The output destination.
- encode_data
- An address of a uintptr_t which the encoder uses to store data it needs across the encode process. Pass a valid address of a uintptr_t initialized to 0, not NULL.
img
This function prepares to encode a frame (or series of frames) to a stream.
- IMG_ERR_OK
- Success.
- IMG_ERR_NOTIMPL
- The codec doesn't support encoding.
- Other
- Any other code that a encoder's encode_egin() function may pass back to flag an error (see img_errno.h for a list of defined errors).
Image library
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
img_encode_finish(),
img_encode_frame()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/img/img_encode_begin.html on line 121
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/img/img_encode_begin.html on line 121