Skip to content

Fix spelling errors throughout codebase #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# How to contribute to UltraGrid
First, thanks to contribute to UltraGrid by using UltraGrid, reporting bugs,
adding code or ideas. Further section contains basic informations how to
adding code or ideas. Further section contains basic information how to
contribute. Feel free to inform us if you need to contribute in a different
way or extend this document.

Expand All @@ -24,7 +24,7 @@ way or extend this document.

## Reporting bugs

Prefered way to report a bug is to open an issue on GitHub. If not possible,
Preferred way to report a bug is to open an issue on GitHub. If not possible,
you can also contact the development team directly with an e-mail.

Please look also at detailed instructions here [here](doc/REPORTING-BUGS.md).
Expand All @@ -46,7 +46,7 @@ The pull request should represent a coherent unit, like a single feature added.
More features should be separated to multiple pull request (of course if possible
and eg. not firmly bound together).

The contained commits shouls present clearly what was changed. Ideally,
The contained commits should present clearly what was changed. Ideally,
if refactoring is done, it should not be mixed with functional changes
in a single commit, similarly for the code movement.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Using the UltraGrid System

The **\<capture_device\>** is one of the list viewed with `-t help`. Name
of capture device usually follows with configuration of video mode,
video input etc. All options can be interactively dispayed using built-in
video input etc. All options can be interactively displayed using built-in
help, eg. `-t decklink:help`.

The **\<compression\>** specifies the selected video compression to be
Expand Down
2 changes: 1 addition & 1 deletion cuda_dxt/rgb2dxt1.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int main(int argc, char** argv) {
return -1;
}

/* prepare envents for time emasurement and begin */
/* prepare events for time emasurement and begin */
cudaEventCreate(&event_end);
cudaEventCreate(&event_begin);
cudaEventRecord(event_begin, 0);
Expand Down
2 changes: 1 addition & 1 deletion cuda_dxt/rgb2dxt6.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ int main(int argc, char** argv) {
return -1;
}

/* prepare envents for time emasurement and begin */
/* prepare events for time emasurement and begin */
cudaEventCreate(&event_end);
cudaEventCreate(&event_begin);
cudaEventRecord(event_begin, 0);
Expand Down
4 changes: 2 additions & 2 deletions doc/PERFORMANCE-TUNING.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Display devices

If you intend to use some of DXT compressions, recommended driver
is OpenGL, which can display it natively. When using other display
drivers, decompression is still done throught OpenGL and then displayed
drivers, decompression is still done through OpenGL and then displayed
with requested video driver.


Expand All @@ -87,7 +87,7 @@ Other Factors

The UltraGrid system will attempt to enable POSIX real-time scheduling
to improve performance. This behaviour is disabled by default now, because
it can occupy the whole system when enabled, but it can be stil enabled by
it can occupy the whole system when enabled, but it can be still enabled by
'--enable-rt' configure option. If you see the message:

WARNING: Unable to set real-time scheduling
Expand Down
4 changes: 2 additions & 2 deletions doc/REPORTING-BUGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ There are couple of ways to report a problem:
- you can use [GitHub issues](https://github.com/CESNET/UltraGrid/issues)
for reporting bugs. You need to register, but it is only matter
of filling username and password.
- alternativey you can use our an e-mail conference ultragrid-dev _\_at\__
- alternatively you can use our an e-mail conference ultragrid-dev _\_at\__
cesnet.cz which leads to developers of UltraGrid
- if not sure if the problem is a bug, you can also use
[GitHub discussions](https://github.com/CESNET/UltraGrid/discussions)
Expand Down Expand Up @@ -63,7 +63,7 @@ to collect data about a computer and attach its result (Linux/macOS).
a _core dump_ (if generated) and the _binary_ (if you compiled by yourself,
otherwise the _executable version_). If core dump is not generated, a
_backtrace_ (see below) might have been generated to standard error output so
please attach this. Also the terminal output containg the _error context_ would
please attach this. Also the terminal output containing the _error context_ would
be helpful.

## Decoding stacktrace (Linux)
Expand Down
6 changes: 3 additions & 3 deletions dxt_compress/dxt_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ dxt_init();
/**
* Load RGB image from file
*
* @param filaname Image filename
* @param filename Image filename
* @param width Image width in pixels
* @param height Image height in pixels
* @return image data buffer or zero if fails
Expand All @@ -113,7 +113,7 @@ dxt_image_load_from_file(const char* filename, int width, int height, DXT_IMAGE_
/**
* Load RGB image from file
*
* @param filaname Image filename
* @param filename Image filename
* @param width Image width in pixels
* @param height Image height in pixels
* @return image data buffer or zero if fails
Expand All @@ -124,7 +124,7 @@ dxt_image_save_to_file(const char* filename, DXT_IMAGE_TYPE* image, int width, i
/**
* Load compressed image from file
*
* @param filaname Image filename
* @param filename Image filename
* @param width Image width in pixels
* @param height Image height in pixels
* @return 0 if succeeds, otherwise nonzero
Expand Down
2 changes: 1 addition & 1 deletion gui/QT/util/control_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ControlPort::ControlPort(){
}

void ControlPort::connect(int local_port){
/* Prevents failure in case the socket is alredy connecting. This also
/* Prevents failure in case the socket is already connecting. This also
* discards pending data in the send buffer, but we don't care about
* that.*/
socket.abort();
Expand Down
6 changes: 3 additions & 3 deletions ldgm/matrix-gen/ldpc-matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void left_matrix_init ( char **matrix, int k, int n, int N1, int seed )
int j; /* Column index */
int h; /* Temporary variable */
int t; /* Left limit within the list of possible choices u[] */
int u[3*LDGM_MAX_K]; /* A table used to have a homogenous 1 distribution. */
int u[3*LDGM_MAX_K]; /* A table used to have a homogeneous 1 distribution. */

Rand_pmms rand_gen;
rand_gen.seedi(seed);
Expand All @@ -53,13 +53,13 @@ void left_matrix_init ( char **matrix, int k, int n, int N1, int seed )
u[h] = h % (n-k);
}

/* Initialize the matrix with N1 "1s" per column, homogenously */
/* Initialize the matrix with N1 "1s" per column, homogeneously */
t = 0;
for ( j = 0; j < k; j++ ) /* for each source symbol column */
{
for ( h = 0; h < N1; h++ ) /* put N1 "1s" */
{
/* Check wether valid available choices remain */
/* Check whether valid available choices remain */
for ( i = t; i < N1*k && matrix [u[i]] [j] ; i++);
if ( i < N1*k )
{
Expand Down
4 changes: 2 additions & 2 deletions ldgm/src/ldgm-session-cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ LDGM_session_cpu::decode_frame ( char* received, int buf_size, int* frame_size,

/* for(map<int, Node>::iterator it = graph.nodes.begin(); it != graph.nodes.end(); ++it) {
* Node n = it->second;
* printf ( "neigbours of %d (count %lu): ", it->first, (it->second).neighbours.size() );
* printf ( "neighbours of %d (count %lu): ", it->first, (it->second).neighbours.size() );
* for(vector<int>::iterator itr = n.neighbours.begin(); itr != n.neighbours.end(); ++itr)
* printf ( "%d ", *itr );
* printf ( "\n" );
Expand Down Expand Up @@ -395,7 +395,7 @@ LDGM_session_cpu::decode_frame ( char* received, int buf_size, int* frame_size,
int iter = 0;

while ( needs_decoding(&graph) && iter < 4) {
// printf ( "iteratin\n" );
// printf ( "iterating\n" );
iterate(&graph);
iter++;
}
Expand Down
2 changes: 1 addition & 1 deletion ldgm/src/ldgm-session-gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Filename: ldgm-session-gpu.h
*
* Description: GPU implementation fo LDGM coding
* Description: GPU implementation of LDGM coding
*
* Version: 1.0
* Created: 04/12/2012 12:54:51 PM
Expand Down
4 changes: 2 additions & 2 deletions ldgm/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ main ( int argc, char *argv[] )
else if ( isprint ( optopt))
fprintf ( stderr, "Unknown option '-%c'.\n", optopt);
else
fprintf ( stderr, "Uknown option character '\\x%x'.\n", optopt);
fprintf ( stderr, "Unknown option character '\\x%x'.\n", optopt);

return 1;
default:
Expand Down Expand Up @@ -194,7 +194,7 @@ demo(int k, int m, int frame_size, char* matrix_fname, char* data_fname, int cpu
for ( int i = 0; i < frame_size; ++i)
memset((char*)data+i, rand() % 256, 1);

//alocate space for parity packets
//allocate space for parity packets

// void *parity;
//allocate memory with address aligned to 16 bytes
Expand Down
4 changes: 2 additions & 2 deletions ldgm/src/tanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int Node::setDataPtr(char *d) {


/*-----------------------------------------------------------------------------
* Implementation fo class Edge
* Implementation of class Edge
*-----------------------------------------------------------------------------*/

Edge::Edge(Node *a, Node *b) {
Expand All @@ -65,7 +65,7 @@ Edge::Edge(Node *a, Node *b) {


/*-----------------------------------------------------------------------------
* Implementation fo class Tanner_graph
* Implementation of class Tanner_graph
*-----------------------------------------------------------------------------*/
void Tanner_graph::set_data_size(int size) {
data_size = size;
Expand Down
2 changes: 1 addition & 1 deletion nat-helper/room.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void Room::onClientCandidate(Client& client, CompletionStatus status){
return;
}

std::cout << "Client candidate recieved" << std::endl;
std::cout << "Client candidate received" << std::endl;

for(auto& [c, cu] : clients){
if(&client == c)
Expand Down
8 changes: 4 additions & 4 deletions src/audio/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ sdp_send_change_address_message(struct module *root,

/**
* take care that addrs can also be comma-separated list of addresses !
* @retval 0 state succesfully initialized
* @retval <0 error occured
* @retval 0 state successfully initialized
* @retval <0 error occurred
* @retval >0 success but no state was created (eg. help printed)
*/
int audio_init(struct state_audio **ret,
Expand Down Expand Up @@ -446,7 +446,7 @@ int audio_init(struct state_audio **ret,
s->receiver = NET_JACK;
#endif
} else if (s->audio_tx_mode != 0) {
log_msg(LOG_LEVEL_ERROR, "Unknow audio protocol: %s\n", opt->proto);
log_msg(LOG_LEVEL_ERROR, "Unknown audio protocol: %s\n", opt->proto);
goto error;
}

Expand Down Expand Up @@ -891,7 +891,7 @@ static struct response *audio_sender_process_message(struct state_audio *s, stru
exit_uv(0);
} else {
LOG(LOG_LEVEL_ERROR)
<< "[control] Unable to initalize FEC!\n";
<< "[control] Unable to initialize FEC!\n";
}
return new_response(RESPONSE_INT_SERV_ERR, nullptr);
}
Expand Down
2 changes: 1 addition & 1 deletion src/audio/capture/jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static void * audio_cap_jack_init(struct module *parent, const char *cfg)
s->data = ring_buffer_init(s->frame.max_size);

if (s->libjack->set_sample_rate_callback(s->client, jack_samplerate_changed_callback, (void *) s)) {
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Registring callback problem.\n");
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Registering callback problem.\n");
goto release_client;
}

Expand Down
4 changes: 2 additions & 2 deletions src/audio/capture/sdl_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @file
* @todo errata (SDL3 vs SDL2)
* 1. 1 channel capture (-a ch=1) seem no longer work but there is a workaround
* 2. unsufficient performance (generates overflow even in default config)
* 2. insufficient performance (generates overflow even in default config)
*/

#include "config.h" // for HAVE_SDL3
Expand Down Expand Up @@ -263,7 +263,7 @@ static void * audio_cap_sdl_mixer_init(struct module *parent, const char *cfg)
if( Mix_OpenAudio(SDL_MIXER_SAMPLE_RATE, audio_format,
s->audio.ch_count, 4096 ) == -1 ) {
#endif
log_msg(LOG_LEVEL_ERROR, MOD_NAME "error initalizing sound: %s\n", Mix_GetError());
log_msg(LOG_LEVEL_ERROR, MOD_NAME "error initializing sound: %s\n", Mix_GetError());
goto error;
}
adjust_ch_count(s);
Expand Down
4 changes: 2 additions & 2 deletions src/audio/codec/libavcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ ADD_TO_PARAM("audio-lavc-decoder", "* audio-lavc-decoder=<decoder_name>\n"
ADD_TO_PARAM("audio-lavc-encoder", "* audio-lavc-encoder=<encoder_name>\n"
" Use selected audio lavc encoder\n");
/**
* Initializates selected audio codec
* Initializes selected audio codec
* @param audio_codec requested audio codec
* @param direction which direction will be used (encoding or decoding)
* @param silent if true no error messages will be printed.
Expand Down Expand Up @@ -330,7 +330,7 @@ get_bitrate(struct libavcodec_codec_state *s)
const int default_rate =
mapping[s->output_channel.codec].default_bitrate;
if (default_rate > 0) {
MSG(INFO, "Setting defaulat bit rate: %d bps\n", default_rate);
MSG(INFO, "Setting default bit rate: %d bps\n", default_rate);
return default_rate;
}
return 0;
Expand Down
4 changes: 2 additions & 2 deletions src/audio/echo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ struct echo_cancellation * echo_cancellation_init(void)
s->frame.data = NULL;
s->frame.sample_rate = s->frame.bps = 0;

const int ringbuf_sample_count = 2 << 15; //should be divisable by SAMPLES_PER_FRAME
const int ringbuf_sample_count = 2 << 15; //should be divisible by SAMPLES_PER_FRAME
constexpr int bps = 2; //TODO: assuming bps to be 2

s->far_end_ringbuf.reset(ring_buffer_init(ringbuf_sample_count * bps));
Expand Down Expand Up @@ -264,7 +264,7 @@ struct audio_frame * echo_cancel(struct echo_cancellation *s, struct audio_frame
if(s->next_expected_near < steady_clock::now()){
/* It is possible that the capture thread starts late or
* freezes, which could create an unwanted delay between far
* and near ends. To partialy protect against this, drop the
* and near ends. To partially protect against this, drop the
* contents of far end buffer, when the last frame arrived more
* than 1s ago.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/audio/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static bool configure(struct audio_export *s, struct audio_desc fmt) {
s->saved_format = fmt;

if ((s->wav = wav_writer_create(s->filename, fmt)) == NULL) {
fprintf(stderr, "[Audio export] Error writting header!\n");
fprintf(stderr, "[Audio export] Error writing header!\n");
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/audio/filter/delay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static af_result_code filter(void *state, struct audio_frame **frame){
//Write the last delay_size bytes to buffer
ring_buffer_write(s->ring.get(), f->data + excess_size, s->delay_size);

//Move the beggining of frame to the end and prepend delay_size bytes from buffer
//Move the beginning of frame to the end and prepend delay_size bytes from buffer
memmove(f->data + s->delay_size, f->data, excess_size);
ring_buffer_read(s->ring.get(), f->data, s->delay_size);
}
Expand Down
8 changes: 4 additions & 4 deletions src/audio/jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void reconfigure_send_ch_count(struct state_jack *s, int ch_count)
while (ports[i]) ++i;

if(i < s->out_channel_count) {
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Not enought output ports found matching pattern '%s': "
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Not enough output ports found matching pattern '%s': "
"%d requested, %d found\n", s->out_port_pattern, s->record.ch_count, i);
log_msg(LOG_LEVEL_WARNING, MOD_NAME "Reducing port count to %d\n", i);
s->out_channel_count = i;
Expand Down Expand Up @@ -246,7 +246,7 @@ static int attach_input_ports(struct state_jack *s)

while (ports[i]) ++i;
if(i < s->record.ch_count) {
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Not enought input ports found matching pattern '%s': "
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Not enough input ports found matching pattern '%s': "
"%d requested, %d found\n", s->in_port_pattern, s->record.ch_count, i);
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Reducing port count to %d\n", i);
s->record.ch_count = i;
Expand Down Expand Up @@ -382,8 +382,8 @@ void jack_send(void *state, struct audio_frame *frame)
*
* @param[in] state state returned by jack_init()
* @param[out] data @ref pbuf_audio_data
* @retval true if some data are receied
* @retval false if no data were receied
* @retval true if some data are received
* @retval false if no data were received
*/
bool jack_receive(void *state, void *data)
{
Expand Down
2 changes: 1 addition & 1 deletion src/audio/playback/alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* Changes should use Safe ALSA API (http://0pointer.de/blog/projects/guide-to-sound-apis).
*
* Please, report all differencies from it here:
* Please, report all differences from it here:
* - used format SND_PCM_FORMAT_S24_LE
* - used "default" device for arbitrary number of channels
*/
Expand Down
2 changes: 1 addition & 1 deletion src/audio/playback/coreaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void audio_ca_probe(struct device_info **available_devices, int *count, int dir)
* @briew tries to get device id from device name
* @param name name of the device to be looked up
* @param dir direction - @sa audio_ca_probe for values;
* dir is needed only for deafult device names
* dir is needed only for default device names
*/
AudioDeviceID
audio_ca_get_device_by_name(const char *name, int dir)
Expand Down
4 changes: 2 additions & 2 deletions src/audio/playback/mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class generic_mix_algo {
};

/**
* In this mixer, no normalization takes place. After mixing and substracting each
* In this mixer, no normalization takes place. After mixing and subtracting each
* participant signal, values are clamped (there is no point doing it prior that -
* non-normalized mixed value can be out-of-bounds while resulting value with
* substracted with substracted source may be ok.
Expand Down Expand Up @@ -420,7 +420,7 @@ void state_audio_mixer::worker()
participant_index++;
}

// substract each source signal from the mix coming to that participant
// subtract each source signal from the mix coming to that participant
for (auto & pb : participant_frames) {
auto mix = mixed.begin();
sample_type_source *part = (sample_type_source *)(void *) pb.get_data(0);
Expand Down
Loading