History

avfilter/avf_abitscope: rename macro to less generic one

Paul B Mahol committed 4 years ago

Commit 58f867f1 parent 2201c911 file · +5 −5Browse files

Unified · Split

libavfilter/avf_abitscope.c+5−5
@@ -174,7 +174,7 @@ static int config_output(AVFilterLink *outlink) · 173 unmodified lines
174174 } \
175175 }
176176
177−#define TRACE(type, depth, one) \
177+#define DO_TRACE(type, depth, one) \
178178 for (int ch = 0; ch < inlink->channels; ch++) { \
179179 const int w = outpicref->width / inlink->channels; \
180180 const type *in = (const type *)insamples->extended_data[ch]; \
@@ -238,18 +238,18 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) · 57 unmodified lines
238238
239239 switch (insamples->format) {
240240 case AV_SAMPLE_FMT_U8P:
241− if (s->mode == 0) { BARS(uint8_t, 8, 1) } else { TRACE(uint8_t, 8, 1) }
241+ if (s->mode == 0) { BARS(uint8_t, 8, 1) } else { DO_TRACE(uint8_t, 8, 1) }
242242 break;
243243 case AV_SAMPLE_FMT_S16P:
244− if (s->mode == 0) { BARS(uint16_t, 16, 1) } else { TRACE(uint16_t, 16, 1) }
244+ if (s->mode == 0) { BARS(uint16_t, 16, 1) } else { DO_TRACE(uint16_t, 16, 1) }
245245 break;
246246 case AV_SAMPLE_FMT_FLTP:
247247 case AV_SAMPLE_FMT_S32P:
248− if (s->mode == 0) { BARS(uint32_t, 32, 1U) } else { TRACE(uint32_t, 32, 1U) }
248+ if (s->mode == 0) { BARS(uint32_t, 32, 1U) } else { DO_TRACE(uint32_t, 32, 1U) }
249249 break;
250250 case AV_SAMPLE_FMT_DBLP:
251251 case AV_SAMPLE_FMT_S64P:
252− if (s->mode == 0) { BARS(uint64_t, 64, 1ULL) } else { TRACE(uint64_t, 64, 1ULL) }
252+ if (s->mode == 0) { BARS(uint64_t, 64, 1ULL) } else { DO_TRACE(uint64_t, 64, 1ULL) }
253253 break;
254254 }
255255

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t