[Libav-user] /libavcodec/h264_slice.c: selectively discard MBs to be decoded
mehdi.hoseini at gmail.com
Thu Feb 11 10:34:21 CET 2016
I want to discard some MBs of a B-FRAME from decoding. In fact, I want to
avoid some special MBs to be decoded and instead copying MBs of one of its
parents. Note that no B-Frame is encoded as a reference frame. The best
function for me to discard a list of MBs is:
(/libavcodec/h264_slice.c) static int decode_slice(struct AVCodecContext
*avctx, void *arg)
FRAME_MBAFF(h) is false and the clip entropy is cabac.
1)How can I disable ret = ff_h264_decode_mb_cabac(h, sl); and
for a macro block where (sl->mb_x==my_x_id && sl->mb_y==my_y_id) with no
effect on decoding the rest of MBs in a B-Frame?
2) If not possible, is it possible to call ret = ff_h264_decode_mb_cabac(h,
sl); but don't execute ff_h264_hl_decode_mb(h, sl) for some specific
MBs (again with not effects on other MBs)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user