/dports/multimedia/gpac-mp4box/gpac-1.0.0/src/ietf/ |
H A D | rtp_packetizer.c | 171 u32 nb_pck = 1; in gf_rtp_builder_init() local 177 nb_pck = (PathMTU-1) / avgSize; /*one-byte header*/ in gf_rtp_builder_init() 178 if (nb_pck>10) nb_pck=10; /*cf RFC2658*/ in gf_rtp_builder_init() 181 nb_pck = (PathMTU) / avgSize; in gf_rtp_builder_init() 182 if (nb_pck>32) nb_pck=32; /*cf RFC3558*/ in gf_rtp_builder_init() 185 nb_pck = (PathMTU-1) / avgSize; in gf_rtp_builder_init() 189 nb_pck = (PathMTU-1) / avgSize; in gf_rtp_builder_init() 193 if (nb_pck > max_pck) nb_pck = max_pck; in gf_rtp_builder_init() 196 if (nb_pck<=1) { in gf_rtp_builder_init() 200 builder->auh_size = nb_pck; in gf_rtp_builder_init()
|
H A D | rtp_pck_3gpp.c | 730 u32 offset, nb_pck; in gp_rtp_builder_do_ac3() local 779 nb_pck = data_size / (builder->Path_MTU-2); in gp_rtp_builder_do_ac3() 780 if (data_size % (builder->Path_MTU-2)) nb_pck++; in gp_rtp_builder_do_ac3() 781 builder->last_au_sn = nb_pck; in gp_rtp_builder_do_ac3()
|
/dports/multimedia/gpac-libgpac/gpac-1.0.0/src/ietf/ |
H A D | rtp_packetizer.c | 171 u32 nb_pck = 1; in gf_rtp_builder_init() local 177 nb_pck = (PathMTU-1) / avgSize; /*one-byte header*/ in gf_rtp_builder_init() 178 if (nb_pck>10) nb_pck=10; /*cf RFC2658*/ in gf_rtp_builder_init() 181 nb_pck = (PathMTU) / avgSize; in gf_rtp_builder_init() 182 if (nb_pck>32) nb_pck=32; /*cf RFC3558*/ in gf_rtp_builder_init() 185 nb_pck = (PathMTU-1) / avgSize; in gf_rtp_builder_init() 189 nb_pck = (PathMTU-1) / avgSize; in gf_rtp_builder_init() 193 if (nb_pck > max_pck) nb_pck = max_pck; in gf_rtp_builder_init() 196 if (nb_pck<=1) { in gf_rtp_builder_init() 200 builder->auh_size = nb_pck; in gf_rtp_builder_init()
|
H A D | rtp_pck_3gpp.c | 730 u32 offset, nb_pck; in gp_rtp_builder_do_ac3() local 779 nb_pck = data_size / (builder->Path_MTU-2); in gp_rtp_builder_do_ac3() 780 if (data_size % (builder->Path_MTU-2)) nb_pck++; in gp_rtp_builder_do_ac3() 781 builder->last_au_sn = nb_pck; in gp_rtp_builder_do_ac3()
|
/dports/multimedia/gpac-mp4box/gpac-1.0.0/src/filters/ |
H A D | tssplit.c | 42 u32 nb_pck; member 74 assert (stream->nb_pck<ctx->nb_pack); in m2tssplit_send_packet() 76 memcpy(stream->pck_buffer + size*stream->nb_pck, data, size); in m2tssplit_send_packet() 77 stream->nb_pck++; in m2tssplit_send_packet() 78 if (stream->nb_pck<ctx->nb_pack) { in m2tssplit_send_packet() 82 u32 osize = size*stream->nb_pck; in m2tssplit_send_packet() 87 stream->nb_pck = 0; in m2tssplit_send_packet() 103 if (stream->opid && stream->nb_pck) in m2tssplit_flush()
|
H A D | out_sock.c | 390 u32 nb_pck = ctx->nb_pckd_wnd * ctx->pckd.den; in sockout_process() local 396 nb_pck += pck_idx; in sockout_process() 398 if (nb_pck == 1+ctx->nb_pck_processed) { in sockout_process() 409 u32 nb_pck = ctx->nb_pckr_wnd * ctx->pckr.den; in sockout_process() local 415 nb_pck += pck_idx; in sockout_process() 417 if (nb_pck == 1+ctx->nb_pck_processed) { in sockout_process()
|
H A D | mux_ts.c | 36 u32 nb_pck; member 65 u64 nb_pck; member 104 u32 nb_pck; member 301 && (tspid->nb_pck==1) in tsmux_esi_ctrl() 510 tspid->nb_pck++; in tsmux_esi_ctrl() 987 gf_bs_write_int(ctx->idx_bs, ctx->sidx_entries[i].nb_pck * 188, 31); in tsmux_send_seg_event() 1029 tsidx->nb_pck = ctx->nb_pck_in_seg - tsidx->nb_pck; in tsmux_insert_sidx() 1043 ctx->sidx_entries[ctx->nb_sidx_entries].nb_pck = ctx->nb_sidx_entries ? ctx->nb_pck_in_seg : 0; in tsmux_insert_sidx() 1113 ctx->pck_start_idx = ctx->nb_pck; in tsmux_process() 1178 ctx->nb_pck += nb_pck_in_pack; in tsmux_process() [all …]
|
H A D | reframer.c | 817 u32 j, nb_pck, nb_sap; in check_gop_split() local 820 nb_pck = gf_list_count(st->pck_queue); in check_gop_split() 824 if (!nb_pck) { in check_gop_split() 830 for (j=0; j<nb_pck; j++) { in check_gop_split() 947 u32 j, nb_pck; in check_gop_split() local 950 nb_pck = gf_list_count(st->pck_queue); in check_gop_split() 952 for (j=0; j<nb_pck; j++) { in check_gop_split() 970 if ((j==nb_pck) && st->in_eos && !found) { in check_gop_split()
|
H A D | encrypt_cenc_isma.c | 71 u32 nb_pck; member 942 if (! (cstr->nb_pck % cstr->tci->sel_enc_range) ) cstr->has_crypted_pck = 0; in isma_process() 947 if (!(flags & GF_ISOM_ISMA_IS_ENCRYPTED) && !( (1+cstr->nb_pck) % cstr->tci->sel_enc_range)) { in isma_process() 955 if (!(cstr->nb_pck % cstr->tci->sel_enc_type)) flags |= GF_ISOM_ISMA_IS_ENCRYPTED; in isma_process() 1647 if (cstr->tci->sel_enc_range && (cstr->nb_pck+1 >= cstr->tci->sel_enc_range)) { in cenc_process() 1678 memcpy(NULL_IV, (char *) &cstr->nb_pck, 4); in cenc_process() 1757 …_LOG_AUTHOR, ("[CENC] Error encrypting packet %d in PID %s: %s\n", cstr->nb_pck, gf_filter_pid_get… in cenc_process() 1794 cstr->nb_pck++; in cenc_enc_process()
|
H A D | unit_test_filter.c | 76 void dump_properties(GF_FilterPacket *pck, u32 nb_pck) in dump_properties() argument 86 if (nb_pck==1) { in dump_properties() 124 static void ut_filter_send_update(GF_Filter *filter, u32 nb_pck) in ut_filter_send_update() argument 128 if (stack->update && (nb_pck==stack->max_pck/2) ) { in ut_filter_send_update()
|
H A D | in_atsc.c | 358 u64 nb_pck = gf_atsc3_dmx_get_nb_packets(ctx->atsc_dmx); in atscin_process() local 366 …"LLU" bytes "LLU" packets in "LLU" ms rate %.02f mbps", now/1000, nb_bytes, nb_pck, et/1000, rate); in atscin_process()
|
H A D | hevcsplit.c | 49 u32 hevc_nalu_size_length, cfg_crc, nb_pck; member 820 ctx->nb_pck++; in hevcsplit_process() 821 …CODEC, ("[HEVCTileSplit] splitting frame %d DTS "LLU" CTS "LLU"\n", ctx->nb_pck, gf_filter_pck_get… in hevcsplit_process()
|
H A D | hevcmerge.c | 53 u32 nb_pck; member 1431 tile_pid->nb_pck++; in hevcmerge_process() 1432 …, ("[HEVCMerge] pids of unequal duration, skipping packet %d on pid %d\n", tile_pid->nb_pck, i+1)); in hevcmerge_process() 1450 tile_pid->nb_pck++; in hevcmerge_process() 1469 …ng AU %u with different POC (%d vs %d), undefined results.\n", tile_pid->nb_pck, current_poc, tile… in hevcmerge_process()
|
H A D | dasher.c | 299 u64 nb_pck; member 3397 ds->seek_to_pck = ds->nb_pck; in dasher_context_update_period_end() 3733 ds->nb_pck = 0; in dasher_reload_context() 3735 ds->nb_pck = ds->seek_to_pck; in dasher_reload_context() 5072 a_ds->nb_pck = 0; in dasher_check_loop() 5384 ds->nb_pck = sn-1; in dasher_process() 5387 if (ds->nb_pck < ds->seek_to_pck) { in dasher_process() 5388 ds->nb_pck ++; in dasher_process() 5523 if (cue->sample_num == ds->nb_pck + 1) { in dasher_process() 5526 } else if (cue->sample_num < ds->nb_pck) { in dasher_process() [all …]
|
/dports/multimedia/gpac-libgpac/gpac-1.0.0/src/filters/ |
H A D | tssplit.c | 42 u32 nb_pck; member 74 assert (stream->nb_pck<ctx->nb_pack); in m2tssplit_send_packet() 76 memcpy(stream->pck_buffer + size*stream->nb_pck, data, size); in m2tssplit_send_packet() 77 stream->nb_pck++; in m2tssplit_send_packet() 78 if (stream->nb_pck<ctx->nb_pack) { in m2tssplit_send_packet() 82 u32 osize = size*stream->nb_pck; in m2tssplit_send_packet() 87 stream->nb_pck = 0; in m2tssplit_send_packet() 103 if (stream->opid && stream->nb_pck) in m2tssplit_flush()
|
H A D | out_sock.c | 390 u32 nb_pck = ctx->nb_pckd_wnd * ctx->pckd.den; in sockout_process() local 396 nb_pck += pck_idx; in sockout_process() 398 if (nb_pck == 1+ctx->nb_pck_processed) { in sockout_process() 409 u32 nb_pck = ctx->nb_pckr_wnd * ctx->pckr.den; in sockout_process() local 415 nb_pck += pck_idx; in sockout_process() 417 if (nb_pck == 1+ctx->nb_pck_processed) { in sockout_process()
|
H A D | mux_ts.c | 36 u32 nb_pck; member 65 u64 nb_pck; member 104 u32 nb_pck; member 301 && (tspid->nb_pck==1) in tsmux_esi_ctrl() 510 tspid->nb_pck++; in tsmux_esi_ctrl() 987 gf_bs_write_int(ctx->idx_bs, ctx->sidx_entries[i].nb_pck * 188, 31); in tsmux_send_seg_event() 1029 tsidx->nb_pck = ctx->nb_pck_in_seg - tsidx->nb_pck; in tsmux_insert_sidx() 1043 ctx->sidx_entries[ctx->nb_sidx_entries].nb_pck = ctx->nb_sidx_entries ? ctx->nb_pck_in_seg : 0; in tsmux_insert_sidx() 1113 ctx->pck_start_idx = ctx->nb_pck; in tsmux_process() 1178 ctx->nb_pck += nb_pck_in_pack; in tsmux_process() [all …]
|
H A D | reframer.c | 817 u32 j, nb_pck, nb_sap; in check_gop_split() local 820 nb_pck = gf_list_count(st->pck_queue); in check_gop_split() 824 if (!nb_pck) { in check_gop_split() 830 for (j=0; j<nb_pck; j++) { in check_gop_split() 947 u32 j, nb_pck; in check_gop_split() local 950 nb_pck = gf_list_count(st->pck_queue); in check_gop_split() 952 for (j=0; j<nb_pck; j++) { in check_gop_split() 970 if ((j==nb_pck) && st->in_eos && !found) { in check_gop_split()
|
H A D | encrypt_cenc_isma.c | 71 u32 nb_pck; member 942 if (! (cstr->nb_pck % cstr->tci->sel_enc_range) ) cstr->has_crypted_pck = 0; in isma_process() 947 if (!(flags & GF_ISOM_ISMA_IS_ENCRYPTED) && !( (1+cstr->nb_pck) % cstr->tci->sel_enc_range)) { in isma_process() 955 if (!(cstr->nb_pck % cstr->tci->sel_enc_type)) flags |= GF_ISOM_ISMA_IS_ENCRYPTED; in isma_process() 1647 if (cstr->tci->sel_enc_range && (cstr->nb_pck+1 >= cstr->tci->sel_enc_range)) { in cenc_process() 1678 memcpy(NULL_IV, (char *) &cstr->nb_pck, 4); in cenc_process() 1757 …_LOG_AUTHOR, ("[CENC] Error encrypting packet %d in PID %s: %s\n", cstr->nb_pck, gf_filter_pid_get… in cenc_process() 1794 cstr->nb_pck++; in cenc_enc_process()
|
H A D | unit_test_filter.c | 76 void dump_properties(GF_FilterPacket *pck, u32 nb_pck) in dump_properties() argument 86 if (nb_pck==1) { in dump_properties() 124 static void ut_filter_send_update(GF_Filter *filter, u32 nb_pck) in ut_filter_send_update() argument 128 if (stack->update && (nb_pck==stack->max_pck/2) ) { in ut_filter_send_update()
|
H A D | in_atsc.c | 358 u64 nb_pck = gf_atsc3_dmx_get_nb_packets(ctx->atsc_dmx); in atscin_process() local 366 …"LLU" bytes "LLU" packets in "LLU" ms rate %.02f mbps", now/1000, nb_bytes, nb_pck, et/1000, rate); in atscin_process()
|
H A D | hevcsplit.c | 49 u32 hevc_nalu_size_length, cfg_crc, nb_pck; member 820 ctx->nb_pck++; in hevcsplit_process() 821 …CODEC, ("[HEVCTileSplit] splitting frame %d DTS "LLU" CTS "LLU"\n", ctx->nb_pck, gf_filter_pck_get… in hevcsplit_process()
|
H A D | hevcmerge.c | 53 u32 nb_pck; member 1431 tile_pid->nb_pck++; in hevcmerge_process() 1432 …, ("[HEVCMerge] pids of unequal duration, skipping packet %d on pid %d\n", tile_pid->nb_pck, i+1)); in hevcmerge_process() 1450 tile_pid->nb_pck++; in hevcmerge_process() 1469 …ng AU %u with different POC (%d vs %d), undefined results.\n", tile_pid->nb_pck, current_poc, tile… in hevcmerge_process()
|
/dports/multimedia/gpac-mp4box/gpac-1.0.0/src/filter_core/ |
H A D | filter_pid.c | 341 u32 nb_pck = 0; in gf_filter_pid_inst_delete_task() local 346 if (npck > nb_pck) nb_pck = npck; in gf_filter_pid_inst_delete_task() 349 pid->nb_buffer_unit = nb_pck; in gf_filter_pid_inst_delete_task() 1161 if (nb_pck) *nb_pck = pid->pid->nb_buffer_unit; in gf_filter_pid_get_buffer_occupancy() 1164 if (nb_pck) *nb_pck = pid->pid->nb_buffer_unit; in gf_filter_pid_get_buffer_occupancy() 5078 u32 nb_pck=0; in gf_filter_pid_drop_packet() local 5112 if (!nb_pck) { in gf_filter_pid_drop_packet() 5127 pid->nb_buffer_unit = nb_pck; in gf_filter_pid_drop_packet() 5137 u32 min_pck = nb_pck; in gf_filter_pid_drop_packet() 5145 if (nb_pck>min_pck) in gf_filter_pid_drop_packet() [all …]
|
/dports/multimedia/gpac-libgpac/gpac-1.0.0/src/filter_core/ |
H A D | filter_pid.c | 341 u32 nb_pck = 0; in gf_filter_pid_inst_delete_task() local 346 if (npck > nb_pck) nb_pck = npck; in gf_filter_pid_inst_delete_task() 349 pid->nb_buffer_unit = nb_pck; in gf_filter_pid_inst_delete_task() 1161 if (nb_pck) *nb_pck = pid->pid->nb_buffer_unit; in gf_filter_pid_get_buffer_occupancy() 1164 if (nb_pck) *nb_pck = pid->pid->nb_buffer_unit; in gf_filter_pid_get_buffer_occupancy() 5078 u32 nb_pck=0; in gf_filter_pid_drop_packet() local 5112 if (!nb_pck) { in gf_filter_pid_drop_packet() 5127 pid->nb_buffer_unit = nb_pck; in gf_filter_pid_drop_packet() 5137 u32 min_pck = nb_pck; in gf_filter_pid_drop_packet() 5145 if (nb_pck>min_pck) in gf_filter_pid_drop_packet() [all …]
|