62 for (
auto &&buffer : chan) {
63 for (
auto &&packet : buffer.second) {
76 for (
auto &buf : chan) {
77 if (!buf.second.empty()) {
78 ret += (--buf.second.end())->first +
79 (--buf.second.end())->second;
112 return state->get_total_bytes();
117 return state->get_all_bytes();
122 return (
int)
state->substream_data.size();
static __device__ const float offset
int packet_counter_get_all_bytes(struct packet_counter *state)
int packet_counter_get_channels(struct packet_counter *state)
void packet_counter_clear(struct packet_counter *state)
int packet_counter_get_total_bytes(struct packet_counter *state)
void packet_counter_register_packet(struct packet_counter *state, unsigned int substream_id, unsigned int bufnum, unsigned int offset, unsigned int len)
struct packet_counter * packet_counter_init(int num_substreams)
void packet_counter_destroy(struct packet_counter *state)
void register_packet(int substream_id, int bufnum, int offset, int len)
vector< map< int, map< int, int > > > substream_data