27 uint8_t **poutbuf,
int *poutbuf_size,
28 const uint8_t *
buf,
int buf_size,
int keyframe){
29 if (buf_size > 0xffff)
return 0;
30 *poutbuf_size = buf_size + 2;
35 memcpy(*poutbuf + 2, buf, buf_size);
40 .
name =
"text2movsub",
45 uint8_t **poutbuf,
int *poutbuf_size,
46 const uint8_t *
buf,
int buf_size,
int keyframe){
47 if (buf_size < 2)
return 0;
52 memcpy(*poutbuf, buf + 2, *poutbuf_size);
57 .
name =
"mov2textsub",
AVBitStreamFilter ff_text2movsub_bsf
static int text2movsub(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_RB16
AVBitStreamFilter ff_mov2textsub_bsf
Libavcodec external API header.
main external API structure.
static int mov2textsub(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
common internal and external API header
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...