19 #ifndef AVCODEC_CBS_BSF_H
20 #define AVCODEC_CBS_BSF_H
106 #define BSF_ELEMENT_OPTIONS_PIR(name, help, field, opt_flags) \
107 { name, help, OFFSET(field), AV_OPT_TYPE_INT, \
108 { .i64 = BSF_ELEMENT_PASS }, \
109 BSF_ELEMENT_PASS, BSF_ELEMENT_REMOVE, opt_flags, name }, \
110 { "pass", NULL, 0, AV_OPT_TYPE_CONST, \
111 { .i64 = BSF_ELEMENT_PASS }, .flags = opt_flags, .unit = name }, \
112 { "insert", NULL, 0, AV_OPT_TYPE_CONST, \
113 { .i64 = BSF_ELEMENT_INSERT }, .flags = opt_flags, .unit = name }, \
114 { "remove", NULL, 0, AV_OPT_TYPE_CONST, \
115 { .i64 = BSF_ELEMENT_REMOVE }, .flags = opt_flags, .unit = name }
117 #define BSF_ELEMENT_OPTIONS_PIRE(name, help, field, opt_flags) \
118 { name, help, OFFSET(field), AV_OPT_TYPE_INT, \
119 { .i64 = BSF_ELEMENT_PASS }, \
120 BSF_ELEMENT_PASS, BSF_ELEMENT_EXTRACT, opt_flags, name }, \
121 { "pass", NULL, 0, AV_OPT_TYPE_CONST, \
122 { .i64 = BSF_ELEMENT_PASS }, .flags = opt_flags, .unit = name }, \
123 { "insert", NULL, 0, AV_OPT_TYPE_CONST, \
124 { .i64 = BSF_ELEMENT_INSERT }, .flags = opt_flags, .unit = name }, \
125 { "remove", NULL, 0, AV_OPT_TYPE_CONST, \
126 { .i64 = BSF_ELEMENT_REMOVE }, .flags = opt_flags, .unit = name }, \
127 { "extract", NULL, 0, AV_OPT_TYPE_CONST, \
128 { .i64 = BSF_ELEMENT_EXTRACT }, .flags = opt_flags, .unit = name } \
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
int ff_cbs_bsf_generic_init(AVBSFContext *bsf, const CBSBSFType *type)
Initialise generic CBS BSF setup.
void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
AVCodecID
Identify the syntax and semantics of the bitstream.
The bitstream filter state.
Describe the class of an AVClass context structure.
This structure stores compressed data.
CodedBitstreamContext * input
CodedBitstreamFragment fragment
CodedBitstreamContext * output
const char * fragment_name
int(* update_fragment)(AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *frag)
Context structure for coded bitstream operations.
Coded bitstream fragment structure, combining one or more units.