Commit 6b7f4da7 authored by diego's avatar diego

colour --> color in variable names


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11159 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 32084210
...@@ -172,8 +172,8 @@ typedef struct DVBSubObjectDisplay { ...@@ -172,8 +172,8 @@ typedef struct DVBSubObjectDisplay {
int x_pos; int x_pos;
int y_pos; int y_pos;
int fgcolour; int fgcolor;
int bgcolour; int bgcolor;
struct DVBSubObjectDisplay *region_list_next; struct DVBSubObjectDisplay *region_list_next;
struct DVBSubObjectDisplay *object_list_next; struct DVBSubObjectDisplay *object_list_next;
...@@ -206,7 +206,7 @@ typedef struct DVBSubRegion { ...@@ -206,7 +206,7 @@ typedef struct DVBSubRegion {
int depth; int depth;
int clut; int clut;
int bgcolour; int bgcolor;
uint8_t *pbuf; uint8_t *pbuf;
int buf_size; int buf_size;
...@@ -844,7 +844,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx, ...@@ -844,7 +844,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx,
DVBSubObjectDisplay *display; DVBSubObjectDisplay *display;
int top_field_len, bottom_field_len; int top_field_len, bottom_field_len;
int coding_method, non_modifying_colour; int coding_method, non_modifying_color;
object_id = AV_RB16(buf); object_id = AV_RB16(buf);
buf += 2; buf += 2;
...@@ -855,7 +855,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx, ...@@ -855,7 +855,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx,
return; return;
coding_method = ((*buf) >> 2) & 3; coding_method = ((*buf) >> 2) & 3;
non_modifying_colour = ((*buf++) >> 1) & 1; non_modifying_color = ((*buf++) >> 1) & 1;
if (coding_method == 0) { if (coding_method == 0) {
top_field_len = AV_RB16(buf); top_field_len = AV_RB16(buf);
...@@ -872,7 +872,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx, ...@@ -872,7 +872,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx,
block = buf; block = buf;
dvbsub_parse_pixel_data_block(avctx, display, block, top_field_len, 0, dvbsub_parse_pixel_data_block(avctx, display, block, top_field_len, 0,
non_modifying_colour); non_modifying_color);
if (bottom_field_len > 0) if (bottom_field_len > 0)
block = buf + top_field_len; block = buf + top_field_len;
...@@ -880,7 +880,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx, ...@@ -880,7 +880,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx,
bottom_field_len = top_field_len; bottom_field_len = top_field_len;
dvbsub_parse_pixel_data_block(avctx, display, block, bottom_field_len, 1, dvbsub_parse_pixel_data_block(avctx, display, block, bottom_field_len, 1,
non_modifying_colour); non_modifying_color);
} }
/* } else if (coding_method == 1) {*/ /* } else if (coding_method == 1) {*/
...@@ -1035,14 +1035,14 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx, ...@@ -1035,14 +1035,14 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
region->clut = *buf++; region->clut = *buf++;
if (region->depth == 8) if (region->depth == 8)
region->bgcolour = *buf++; region->bgcolor = *buf++;
else { else {
buf += 1; buf += 1;
if (region->depth == 4) if (region->depth == 4)
region->bgcolour = (((*buf++) >> 4) & 15); region->bgcolor = (((*buf++) >> 4) & 15);
else else
region->bgcolour = (((*buf++) >> 2) & 3); region->bgcolor = (((*buf++) >> 2) & 3);
} }
#ifdef DEBUG #ifdef DEBUG
...@@ -1050,9 +1050,9 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx, ...@@ -1050,9 +1050,9 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
#endif #endif
if (fill) { if (fill) {
memset(region->pbuf, region->bgcolour, region->buf_size); memset(region->pbuf, region->bgcolor, region->buf_size);
#ifdef DEBUG #ifdef DEBUG
av_log(avctx, AV_LOG_INFO, "Fill region (%d)\n", region->bgcolour); av_log(avctx, AV_LOG_INFO, "Fill region (%d)\n", region->bgcolor);
#endif #endif
} }
...@@ -1085,8 +1085,8 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx, ...@@ -1085,8 +1085,8 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
buf += 2; buf += 2;
if ((object->type == 1 || object->type == 2) && buf+1 < buf_end) { if ((object->type == 1 || object->type == 2) && buf+1 < buf_end) {
display->fgcolour = *buf++; display->fgcolor = *buf++;
display->bgcolour = *buf++; display->bgcolor = *buf++;
} }
display->region_list_next = region->display_list; display->region_list_next = region->display_list;
......
...@@ -108,11 +108,11 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, ...@@ -108,11 +108,11 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
for (x = 0; x < w; ) { for (x = 0; x < w; ) {
int log2 = ff_log2_tab[show_bits(&gb, 8)]; int log2 = ff_log2_tab[show_bits(&gb, 8)];
int run = get_bits(&gb, 14 - 4 * (log2 >> 1)); int run = get_bits(&gb, 14 - 4 * (log2 >> 1));
int colour = get_bits(&gb, 2); int color = get_bits(&gb, 2);
run = FFMIN(run, w - x); run = FFMIN(run, w - x);
// run length 0 means till end of row // run length 0 means till end of row
if (!run) run = w - x; if (!run) run = w - x;
memset(bitmap, colour, run); memset(bitmap, color, run);
bitmap += run; bitmap += run;
x += run; x += run;
} }
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
#define MATROSKA_ID_VIDEOFLAGINTERLACED 0x9A #define MATROSKA_ID_VIDEOFLAGINTERLACED 0x9A
#define MATROSKA_ID_VIDEOSTEREOMODE 0x53B9 #define MATROSKA_ID_VIDEOSTEREOMODE 0x53B9
#define MATROSKA_ID_VIDEOASPECTRATIO 0x54B3 #define MATROSKA_ID_VIDEOASPECTRATIO 0x54B3
#define MATROSKA_ID_VIDEOCOLOURSPACE 0x2EB524 #define MATROSKA_ID_VIDEOCOLORSPACE 0x2EB524
/* IDs in the trackaudio master */ /* IDs in the trackaudio master */
#define MATROSKA_ID_AUDIOSAMPLINGFREQ 0xB5 #define MATROSKA_ID_AUDIOSAMPLINGFREQ 0xB5
......
...@@ -1201,7 +1201,7 @@ matroska_add_stream (MatroskaDemuxContext *matroska) ...@@ -1201,7 +1201,7 @@ matroska_add_stream (MatroskaDemuxContext *matroska)
/* colorspace (only matters for raw video) /* colorspace (only matters for raw video)
* fourcc */ * fourcc */
case MATROSKA_ID_VIDEOCOLOURSPACE: { case MATROSKA_ID_VIDEOCOLORSPACE: {
uint64_t num; uint64_t num;
if ((res = ebml_read_uint(matroska, &id, if ((res = ebml_read_uint(matroska, &id,
&num)) < 0) &num)) < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment