diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-05-21 10:51:03 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-05-21 10:51:28 +0200 |
commit | 012bd2577975b902aa5ce0cdd0eb43ef57c948fb (patch) | |
tree | 1dc3de75ad4c173d2de3f60cb0c9d78bf4517542 /common/lz.c | |
parent | d351bb35ce981d39e839528f4a23bc5b501adab8 (diff) | |
download | spice-012bd2577975b902aa5ce0cdd0eb43ef57c948fb.tar.gz spice-012bd2577975b902aa5ce0cdd0eb43ef57c948fb.tar.xz spice-012bd2577975b902aa5ce0cdd0eb43ef57c948fb.zip |
Fix spelling errors in comments and strings
Diffstat (limited to 'common/lz.c')
-rw-r--r-- | common/lz.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/lz.c b/common/lz.c index f98982a7..73a797c7 100644 --- a/common/lz.c +++ b/common/lz.c @@ -95,7 +95,7 @@ typedef struct Encoder { LzImageSegment *tail_image_segs; LzImageSegment *free_image_segs; - // the dicitionary hash table is composed (1) a pointer to the segment the word was found in + // the dictionary hash table is composed (1) a pointer to the segment the word was found in // (2) a pointer to the first byte in the segment that matches the word HashEntry htab[HASH_SIZE]; @@ -116,7 +116,7 @@ static int lz_read_image_segments(Encoder *encoder, uint8_t *first_lines, unsigned int num_first_lines); -// return a free image segement if one exists. Make allocation if needed. adds it to the +// return a free image segment if one exists. Make allocation if needed. adds it to the // tail of the image segments lists static INLINE LzImageSegment *lz_alloc_image_seg(Encoder *encoder) { @@ -367,7 +367,7 @@ void lz_destroy(LzContext *lz) } if (encoder->head_image_segs) { - encoder->usr->error(encoder->usr, "%s: used_image_segements not empty\n", __FUNCTION__); + encoder->usr->error(encoder->usr, "%s: used_image_segments not empty\n", __FUNCTION__); lz_reset_image_seg(encoder); } lz_dealloc_free_segments(encoder); @@ -517,12 +517,12 @@ int lz_encode(LzContext *lz, LzImageType type, int width, int height, int top_do if (encoder->stride > (width / PLT_PIXELS_PER_BYTE[encoder->type])) { if (((width % PLT_PIXELS_PER_BYTE[encoder->type]) == 0) || ( (encoder->stride - (width / PLT_PIXELS_PER_BYTE[encoder->type])) > 1)) { - encoder->usr->error(encoder->usr, "sride overflows (plt)\n"); + encoder->usr->error(encoder->usr, "stride overflows (plt)\n"); } } } else { if (encoder->stride != width * RGB_BYTES_PER_PIXEL[encoder->type]) { - encoder->usr->error(encoder->usr, "sride != width*bytes_per_pixel (rgb)\n"); + encoder->usr->error(encoder->usr, "stride != width*bytes_per_pixel (rgb)\n"); } } @@ -616,7 +616,7 @@ void lz_decode_begin(LzContext *lz, uint8_t *io_ptr, unsigned int num_io_bytes, *out_type = encoder->type; // TODO: maybe instead of stride we can encode out_n_pixels - // (if stride is not necssary in decoding). + // (if stride is not necessary in decoding). if (IS_IMAGE_TYPE_PLT[encoder->type]) { encoder->palette = palette; *out_n_pixels = encoder->stride * PLT_PIXELS_PER_BYTE[encoder->type] * encoder->height; |