Lines Matching refs:unit
114 CodedBitstreamUnit *unit;
139 // Find an existing SEI NAL unit of the right type.
140 unit = NULL;
143 unit = &au->units[i];
148 if (unit) {
149 *sei_unit = unit;
153 // Need to add a new SEI NAL unit ...
155 // ... before the first VCL NAL unit.
162 // ... after the last VCL NAL unit.
179 unit = &au->units[position];
180 unit->type = sei_type;
182 err = ff_cbs_alloc_unit_content2(ctx, unit);
195 memcpy(unit->content, &sei, sizeof(sei));
207 memcpy(unit->content, &sei, sizeof(sei));
214 *sei_unit = unit;
219 CodedBitstreamUnit *unit,
225 H264RawSEI *sei = unit->content;
226 if (unit->type != H264_NAL_SEI)
233 H265RawSEI *sei = unit->content;
234 if (unit->type != HEVC_NAL_SEI_PREFIX &&
235 unit->type != HEVC_NAL_SEI_SUFFIX)
255 CodedBitstreamUnit *unit;
265 // Find an existing SEI unit or make a new one to add to.
266 err = cbs_sei_get_unit(ctx, au, prefix, &unit);
270 // Find the message list inside the codec-dependent unit.
271 err = cbs_sei_get_message_list(ctx, unit, &list);
306 CodedBitstreamUnit *unit = &au->units[i];
309 err = cbs_sei_get_message_list(ctx, unit, &list);
357 CodedBitstreamUnit *unit = &au->units[i];
360 err = cbs_sei_get_message_list(ctx, unit, &list);