Lines Matching refs:bsfi
56 FFBSFContext *bsfi; in av_bsf_free() local
61 bsfi = ffbsfcontext(ctx); in av_bsf_free()
70 av_packet_free(&bsfi->buffer_pkt); in av_bsf_free()
108 FFBSFContext *bsfi; in av_bsf_alloc() local
111 bsfi = av_mallocz(sizeof(*bsfi)); in av_bsf_alloc()
112 if (!bsfi) in av_bsf_alloc()
114 ctx = &bsfi->pub; in av_bsf_alloc()
137 bsfi->buffer_pkt = av_packet_alloc(); in av_bsf_alloc()
138 if (!bsfi->buffer_pkt) { in av_bsf_alloc()
193 FFBSFContext *const bsfi = ffbsfcontext(ctx); in av_bsf_flush() local
195 bsfi->eof = 0; in av_bsf_flush()
197 av_packet_unref(bsfi->buffer_pkt); in av_bsf_flush()
205 FFBSFContext *const bsfi = ffbsfcontext(ctx); in av_bsf_send_packet() local
211 bsfi->eof = 1; in av_bsf_send_packet()
215 if (bsfi->eof) { in av_bsf_send_packet()
220 if (!IS_EMPTY(bsfi->buffer_pkt)) in av_bsf_send_packet()
226 av_packet_move_ref(bsfi->buffer_pkt, pkt); in av_bsf_send_packet()
238 FFBSFContext *const bsfi = ffbsfcontext(ctx); in ff_bsf_get_packet() local
241 if (bsfi->eof) in ff_bsf_get_packet()
244 if (IS_EMPTY(bsfi->buffer_pkt)) in ff_bsf_get_packet()
251 *pkt = bsfi->buffer_pkt; in ff_bsf_get_packet()
252 bsfi->buffer_pkt = tmp_pkt; in ff_bsf_get_packet()
259 FFBSFContext *const bsfi = ffbsfcontext(ctx); in ff_bsf_get_packet_ref() local
261 if (bsfi->eof) in ff_bsf_get_packet_ref()
264 if (IS_EMPTY(bsfi->buffer_pkt)) in ff_bsf_get_packet_ref()
267 av_packet_move_ref(pkt, bsfi->buffer_pkt); in ff_bsf_get_packet_ref()