UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
packet_counter.cpp File Reference
#include "utils/packet_counter.h"
#include <map>
#include <vector>
Include dependency graph for packet_counter.cpp:

Go to the source code of this file.

Classes

struct  packet_counter
 

Functions

void packet_counter_clear (struct packet_counter *state)
 
void packet_counter_destroy (struct packet_counter *state)
 
int packet_counter_get_all_bytes (struct packet_counter *state)
 
int packet_counter_get_channels (struct packet_counter *state)
 
int packet_counter_get_total_bytes (struct packet_counter *state)
 
struct packet_counter * packet_counter_init (int num_substreams)
 
void packet_counter_register_packet (struct packet_counter *state, unsigned int substream_id, unsigned int bufnum, unsigned int offset, unsigned int len)
 

Function Documentation

◆ packet_counter_clear()

void packet_counter_clear ( struct packet_counter * state)

Definition at line 125 of file packet_counter.cpp.

126{
127 state->clear();
128}
void ** state

References state.

Referenced by decode_audio_frame().

◆ packet_counter_destroy()

void packet_counter_destroy ( struct packet_counter * state)

Definition at line 100 of file packet_counter.cpp.

100 {
101 delete state;
102}

References state.

Referenced by audio_decoder_destroy(), and decode_audio_frame().

◆ packet_counter_get_all_bytes()

int packet_counter_get_all_bytes ( struct packet_counter * state)

Definition at line 115 of file packet_counter.cpp.

116{
117 return state->get_all_bytes();
118}

References state.

Referenced by decode_audio_frame().

◆ packet_counter_get_channels()

int packet_counter_get_channels ( struct packet_counter * state)

Definition at line 120 of file packet_counter.cpp.

121{
122 return (int) state->substream_data.size();
123}

References state.

Referenced by decode_audio_frame().

◆ packet_counter_get_total_bytes()

int packet_counter_get_total_bytes ( struct packet_counter * state)

Definition at line 110 of file packet_counter.cpp.

111{
112 return state->get_total_bytes();
113}

References state.

Referenced by decode_audio_frame().

◆ packet_counter_init()

struct packet_counter * packet_counter_init ( int num_substreams)

Definition at line 96 of file packet_counter.cpp.

96 {
97 return new packet_counter(num_substreams);
98}

References packet_counter::packet_counter().

Referenced by audio_decoder_init(), and decode_audio_frame().

Here is the call graph for this function:

◆ packet_counter_register_packet()

void packet_counter_register_packet ( struct packet_counter * state,
unsigned int substream_id,
unsigned int bufnum,
unsigned int offset,
unsigned int len )

Definition at line 104 of file packet_counter.cpp.

106{
107 state->register_packet(substream_id, bufnum, offset, len);
108}
int void size_t * len
static __device__ const float offset
Definition cuda_dxt.cu:139

References len, offset, and state.

Referenced by decode_audio_frame().