-
- Downloads
cbs: Refcount all the things!
This makes it easier for users of the CBS API to get alloc/free right - all subelements use the buffer API so that it's clear how to free them. It also allows eliding some redundant copies: the packet -> fragment copy disappears after this change if the input packet is refcounted, and more codec-specific cases are now possible (but not included in this patch).
Showing
- libavcodec/cbs.c 136 additions, 29 deletionslibavcodec/cbs.c
- libavcodec/cbs.h 42 additions, 9 deletionslibavcodec/cbs.h
- libavcodec/cbs_h264.h 4 additions, 0 deletionslibavcodec/cbs_h264.h
- libavcodec/cbs_h2645.c 157 additions, 183 deletionslibavcodec/cbs_h2645.c
- libavcodec/cbs_h265.h 2 additions, 0 deletionslibavcodec/cbs_h265.h
- libavcodec/cbs_internal.h 0 additions, 3 deletionslibavcodec/cbs_internal.h
- libavcodec/cbs_mpeg2.c 46 additions, 45 deletionslibavcodec/cbs_mpeg2.c
- libavcodec/cbs_mpeg2.h 5 additions, 0 deletionslibavcodec/cbs_mpeg2.h
- libavcodec/cbs_mpeg2_syntax_template.c 3 additions, 2 deletionslibavcodec/cbs_mpeg2_syntax_template.c
- libavcodec/h264_metadata_bsf.c 3 additions, 3 deletionslibavcodec/h264_metadata_bsf.c
- libavcodec/h265_metadata_bsf.c 1 addition, 1 deletionlibavcodec/h265_metadata_bsf.c
- libavcodec/mpeg2_metadata_bsf.c 2 additions, 1 deletionlibavcodec/mpeg2_metadata_bsf.c
- libavcodec/vaapi_encode_h264.c 1 addition, 1 deletionlibavcodec/vaapi_encode_h264.c
- libavcodec/vaapi_encode_h265.c 1 addition, 1 deletionlibavcodec/vaapi_encode_h265.c
- libavcodec/vaapi_encode_mpeg2.c 1 addition, 1 deletionlibavcodec/vaapi_encode_mpeg2.c
Loading
Please register or sign in to comment