On 23/11/13 23:56, [email protected] wrote: > > Hi, > the bistream filtering API in lavc is one of the few remaining ancient horrors > and some of my other evil plans involve fixing it. > > The problems with it are rather obvious: > - it uses raw data buffers instead of AVPackets > - is completely undocumented > - the filtering function takes a very questionable set of parameters: > * a codec context (not clear from where it's > supposed to come from), unspecified stuff is done on it > * an opaque 'args' string > * 'keyframe' (wtf?) > > I've drafted a new API, attached below. The basic usage is something like: > av_bsf_alloc(); > set options through AVOptions > send packets in with av_bsf_add_packet() > get (in general a different number of) packets out with av_bsf_get_packet() > av_bsf_free(); >
I can surely use this for my QSV stuff (and VT and VDA). Open question: - what happens to the extradata formatting part of it? lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
