Home
last modified time | relevance | path

Searched refs:cc_count (Results 1 – 11 of 11) sorted by relevance

/third_party/ffmpeg/libavcodec/
Datsc_a53.c73 int ret, cc_count; in ff_parse_a53_cc() local
90 cc_count = get_bits(&gb, 5); in ff_parse_a53_cc()
91 if (!cc_count) in ff_parse_a53_cc()
97 if (cc_count * 3 >= (get_bits_left(&gb) >> 3)) in ff_parse_a53_cc()
100 new_size = (old_size + cc_count * 3); in ff_parse_a53_cc()
112 for (int i = 0; i < cc_count; i++) { in ff_parse_a53_cc()
118 return cc_count; in ff_parse_a53_cc()
Dmpeg12dec.c2236 int cc_count = p[5] & 0x1f; in mpeg_decode_a53_cc() local
2237 if (cc_count > 0 && buf_size >= 7 + cc_count * 3) { in mpeg_decode_a53_cc()
2239 const uint64_t new_size = (old_size + cc_count in mpeg_decode_a53_cc()
2248 memcpy(s1->a53_buf_ref->data + old_size, p + 7, cc_count * UINT64_C(3)); in mpeg_decode_a53_cc()
2257 int cc_count = 0; in mpeg_decode_a53_cc() local
2261 cc_count = get_bits(&gb, 5); in mpeg_decode_a53_cc()
2262 if (cc_count > 0) { in mpeg_decode_a53_cc()
2264 const uint64_t new_size = (old_size + cc_count in mpeg_decode_a53_cc()
2274 memset(s1->a53_buf_ref->data + old_size, 0, cc_count * 3); in mpeg_decode_a53_cc()
2275 for (i = 0; i < cc_count && get_bits_left(&gb) >= 26; i++) { in mpeg_decode_a53_cc()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgstvideoparseutils.c62 guint8 cc_count; in gst_video_parse_user_data() local
154 if (!gst_byte_reader_get_uint8 (br, &cc_count)) { in gst_video_parse_user_data()
161 (cc_count & CEA_708_PROCESS_CC_DATA_FLAG) != 0; in gst_video_parse_user_data()
167 process_708_em_data = (cc_count & CEA_708_PROCESS_EM_DATA_FLAG) != 0; in gst_video_parse_user_data()
183 cc_count = cc_count & 0x1f; in gst_video_parse_user_data()
184 cc_size = cc_count * 3; in gst_video_parse_user_data()
/third_party/ffmpeg/libavdevice/
Ddecklink_enc.cpp315 uint8_t cc_count; in construct_cc() local
323 cc_count = size / 3; in construct_cc()
337 if (cc_count > KLVANC_MAX_CC_COUNT) { in construct_cc()
338 av_log(avctx, AV_LOG_ERROR, "Illegal cc_count received: %d\n", cc_count); in construct_cc()
339 cc_count = KLVANC_MAX_CC_COUNT; in construct_cc()
345 cdp->ccdata.cc_count = cc_count; in construct_cc()
346 for (i = 0; i < cc_count; i++) { in construct_cc()
Ddecklink_dec.cpp332 unsigned &cc_count) in vanc_to_cc() argument
382 cc_count = cdp[8]; in vanc_to_cc()
383 if (!(cc_count & 0xe0)) { in vanc_to_cc()
384 av_log(avctx, AV_LOG_WARNING, "Invalid cc_count 0x%.2x\n", cc_count); in vanc_to_cc()
388 cc_count &= 0x1f; in vanc_to_cc()
389 if ((len - 13) < cc_count * 3) { in vanc_to_cc()
390 av_log(avctx, AV_LOG_WARNING, "Invalid cc_count %d (> %zu)\n", cc_count * 3, len - 13); in vanc_to_cc()
405 cc = (uint8_t *)av_malloc(cc_count * 3); in vanc_to_cc()
407 av_log(avctx, AV_LOG_WARNING, "CC - av_malloc failed for cc_count = %d\n", cc_count); in vanc_to_cc()
411 for (size_t i = 0; i < cc_count; i++) { in vanc_to_cc()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dgstline21enc.c279 guint8 cc_count; in convert_cea708_cdp_cea708_cc_data_internal() local
292 cc_count = gst_byte_reader_get_uint8_unchecked (&br); in convert_cea708_cdp_cea708_cc_data_internal()
293 if ((cc_count & 0xe0) != 0xe0) { in convert_cea708_cdp_cea708_cc_data_internal()
297 cc_count &= 0x1f; in convert_cea708_cdp_cea708_cc_data_internal()
299 len = 3 * cc_count; in convert_cea708_cdp_cea708_cc_data_internal()
Dgstceaccoverlay.c1510 guint8 cc_count; in gst_cea_cc_overlay_user_data_decode() local
1516 cc_count = ccsize / 3; in gst_cea_cc_overlay_user_data_decode()
1518 for (i = 0; i < cc_count; i++) { in gst_cea_cc_overlay_user_data_decode()
1630 guint8 ccid, cc_count; in extract_ccdata_from_cdp() local
1632 !gst_byte_reader_get_uint8 (&br, &cc_count)) in extract_ccdata_from_cdp()
1638 cc_count &= 0x1f; in extract_ccdata_from_cdp()
1639 if (!gst_byte_reader_get_data (&br, cc_count * 3, ccdata)) { in extract_ccdata_from_cdp()
1645 *ccsize = cc_count * 3; in extract_ccdata_from_cdp()
Dgstcccombiner.c159 guint8 cc_count; in extract_cdp() local
169 cc_count = gst_byte_reader_get_uint8_unchecked (&br); in extract_cdp()
170 if ((cc_count & 0xe0) != 0xe0) { in extract_cdp()
173 cc_count &= 0x1f; in extract_cdp()
175 if (cc_count == 0) in extract_cdp()
178 len = 3 * cc_count; in extract_cdp()
Dgstccconverter.c1267 guint8 cc_count; in convert_cea708_cdp_cea708_cc_data_internal() local
1280 cc_count = gst_byte_reader_get_uint8_unchecked (&br); in convert_cea708_cdp_cea708_cc_data_internal()
1281 if ((cc_count & 0xe0) != 0xe0) { in convert_cea708_cdp_cea708_cc_data_internal()
1285 cc_count &= 0x1f; in convert_cea708_cdp_cea708_cc_data_internal()
1287 len = 3 * cc_count; in convert_cea708_cdp_cea708_cc_data_internal()
/third_party/ffmpeg/libavformat/
Dmxfdec.c481 int cdp_identifier, cdp_length, cdp_footer_id, ccdata_id, cc_count; in mxf_get_eia608_packet() local
531 cc_count = avio_r8(s->pb) & 0x1f; in mxf_get_eia608_packet()
532 ret = av_get_packet(s->pb, pkt, cc_count * 3); in mxf_get_eia608_packet()
535 if (cdp_length - 9 - 4 < cc_count * 3) { in mxf_get_eia608_packet()
536 av_log(s, AV_LOG_ERROR, "wrong cdp size %d cc count %d\n", cdp_length, cc_count); in mxf_get_eia608_packet()
539 avio_skip(s->pb, data_length - 9 - 4 - cc_count * 3); in mxf_get_eia608_packet()
/third_party/gstreamer/gstplugins_bad/
DChangeLog25388 ccconverter: cc_count limits are per framerate