56#define OFFSET(x) offsetof(DatascopeContext, x)
57#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
58#define FLAGSR AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
89 int x0,
int y0,
const uint8_t *text,
int vertical)
94 for (; *text; text++) {
102 &
cga_font[*text * 8], 1, 8, 8, 0, 0, x, y0);
116 color->rgba[3] = 255;
117 for (p = 0; p <
draw->nb_planes; p++) {
118 if (
draw->nb_planes == 1) {
119 for (
i = 0;
i < 4;
i++) {
134 color->rgba[3] = 255;
135 for (p = 0; p <
draw->nb_planes; p++) {
136 if (
draw->nb_planes == 1) {
137 for (
i = 0;
i < 4;
i++) {
153 for (p = 0; p <
draw->nb_planes; p++) {
154 reverse->comp[p].u8[0] =
color->comp[p].u8[0] > 127 ? 0 : 255;
155 reverse->comp[p].u8[1] =
color->comp[p].u8[1] > 127 ? 0 : 255;
156 reverse->comp[p].u8[2] =
color->comp[p].u8[2] > 127 ? 0 : 255;
165 for (p = 0; p <
draw->nb_planes; p++) {
166 const unsigned max = (1 <<
draw->desc->comp[p].depth) - 1;
167 const unsigned mid = (
max + 1) / 2;
188 const int PP = td->
PP;
189 const int xoff = td->
xoff;
190 const int yoff = td->
yoff;
191 const int P =
FFMAX(
s->nb_planes,
s->nb_comps);
192 const int C =
s->chars;
193 const int D = ((
s->chars -
s->dformat) >> 2) +
s->dformat * 2;
194 const int W = (outlink->
w - xoff) / (
C * 10);
195 const int H = (outlink->
h - yoff) / (PP * 12);
196 const char *
format[4] = {
"%02X\n",
"%04X\n",
"%03d\n",
"%05d\n"};
201 for (y = 0; y <
H && (y +
s->y < inlink->
h); y++) {
205 int value[4] = { 0 }, pp = 0;
210 xoff + x *
C * 10, yoff + y * PP * 12,
C * 10, PP * 12);
212 for (p = 0; p <
P; p++) {
215 if (!(
s->components & (1 << p)))
218 draw_text(&
s->draw,
out, &
reverse, xoff + x *
C * 10 + 2, yoff + y * PP * 12 + pp * 10 + 2, text, 0);
235 const int PP = td->
PP;
236 const int xoff = td->
xoff;
237 const int yoff = td->
yoff;
238 const int P =
FFMAX(
s->nb_planes,
s->nb_comps);
239 const int C =
s->chars;
240 const int D = ((
s->chars -
s->dformat) >> 2) +
s->dformat * 2;
241 const int W = (outlink->
w - xoff) / (
C * 10);
242 const int H = (outlink->
h - yoff) / (PP * 12);
243 const char *
format[4] = {
"%02X\n",
"%04X\n",
"%03d\n",
"%05d\n"};
248 for (y = 0; y <
H && (y +
s->y < inlink->
h); y++) {
251 int value[4] = { 0 }, pp = 0;
255 for (p = 0; p <
P; p++) {
258 if (!(
s->components & (1 << p)))
261 draw_text(&
s->draw,
out, &
color, xoff + x *
C * 10 + 2, yoff + y * PP * 12 + pp * 10 + 2, text, 0);
278 const int PP = td->
PP;
279 const int xoff = td->
xoff;
280 const int yoff = td->
yoff;
281 const int P =
FFMAX(
s->nb_planes,
s->nb_comps);
282 const int C =
s->chars;
283 const int D = ((
s->chars -
s->dformat) >> 2) +
s->dformat * 2;
284 const int W = (outlink->
w - xoff) / (
C * 10);
285 const int H = (outlink->
h - yoff) / (PP * 12);
286 const char *
format[4] = {
"%02X\n",
"%04X\n",
"%03d\n",
"%05d\n"};
291 for (y = 0; y <
H && (y +
s->y < inlink->
h); y++) {
294 int value[4] = { 0 }, pp = 0;
297 for (p = 0; p <
P; p++) {
300 if (!(
s->components & (1 << p)))
303 draw_text(&
s->draw,
out, &
s->white, xoff + x *
C * 10 + 2, yoff + y * PP * 12 + pp * 10 + 2, text, 0);
317 const int P =
FFMAX(
s->nb_planes,
s->nb_comps);
332 0, 0, outlink->
w, outlink->
h);
334 for (
int p = 0; p <
P; p++) {
335 if (
s->components & (1 << p))
341 const int C =
s->chars;
342 int Y = outlink->
h / (PP * 12);
343 int X = outlink->
w / (
C * 10);
344 char text[256] = { 0 };
348 ymaxlen = strlen(text);
351 xmaxlen = strlen(text);
354 Y = (outlink->
h - xmaxlen) / (PP * 12);
355 X = (outlink->
w - ymaxlen) / (
C * 10);
357 for (y = 0; y <
Y; y++) {
358 snprintf(text,
sizeof(text),
"%d",
s->y + y);
361 0, xmaxlen + y * PP * 12 + (PP + 1) * PP - 2, ymaxlen, 10);
363 draw_text(&
s->draw,
out, &
s->yellow, 2, xmaxlen + y * PP * 12 + (PP + 1) * PP, text, 0);
366 for (x = 0; x <
X; x++) {
367 snprintf(text,
sizeof(text),
"%d",
s->x + x);
370 ymaxlen + x *
C * 10 + 2 *
C - 2, 0, 10, xmaxlen);
372 draw_text(&
s->draw,
out, &
s->yellow, ymaxlen + x *
C * 10 + 2 *
C, 2, text, 1);
389 uint8_t
alpha =
s->opacity * 255;
402 s->chars = (
s->draw.desc->comp[0].depth + 7) / 8 * 2 +
s->dformat;
403 s->nb_comps =
s->draw.desc->nb_components;
411 if (
s->draw.desc->comp[0].depth <= 8) {
434 char *res,
int res_len,
int flags)
463 .p.name =
"datascope",
465 .p.priv_class = &datascope_class,
503#define POFFSET(x) offsetof(PixscopeContext, x)
536 s->nb_comps =
s->draw.desc->nb_components;
540 s->colors[0] = &
s->red;
541 s->colors[1] = &
s->green;
542 s->colors[2] = &
s->blue;
543 s->colors[3] = &
s->white;
546 s->colors[0] = &
s->white;
547 s->colors[1] = &
s->blue;
548 s->colors[2] = &
s->red;
549 s->colors[3] = &
s->white;
556 if (
s->draw.desc->comp[0].depth <= 8) {
562 if (inlink->
w < 640 || inlink->
h < 480) {
569 s->x =
s->xpos * (inlink->
w - 1);
570 s->y =
s->ypos * (inlink->
h - 1);
571 if (
s->x +
s->w >= inlink->
w ||
s->y +
s->h >= inlink->
h) {
580#define SQR(x) ((x)*(x))
588 int max[4] = { 0 },
min[4] = { INT_MAX, INT_MAX, INT_MAX, INT_MAX };
589 float average[4] = { 0 };
590 double std[4] = { 0 }, rms[4] = { 0 };
591 const char rgba[4] = {
'R',
'G',
'B',
'A' };
592 const char yuva[4] = {
'Y',
'U',
'V',
'A' };
593 int x, y,
X,
Y,
i,
w,
h;
618 if (
s->x +
s->w >=
X && (
s->x +
s->w <=
X +
s->ww) &&
619 s->y +
s->h >=
Y && (
s->y +
s->h <=
Y +
s->wh)) {
620 X = (in->
width -
s->ww) * (1 +
s->wx);
625 if (
s->x +
s->w >=
X && (
s->x +
s->w <=
X +
s->ww) &&
626 s->y +
s->h >=
Y && (
s->y +
s->h <=
Y +
s->wh)) {
638 for (y = 0; y <
s->h; y++) {
639 for (x = 0; x <
s->w; x++) {
641 int value[4] = { 0 };
645 x *
w + (
s->ww - 4 - (
s->w *
w)) / 2 +
X, y *
h + 2 +
Y,
w,
h);
646 for (
i = 0;
i < 4;
i++) {
658 s->x - 2,
s->y - 2,
s->w + 4, 1);
662 s->x - 1,
s->y - 1,
s->w + 2, 1);
666 s->x - 1,
s->y - 1, 1,
s->h + 2);
670 s->x - 2,
s->y - 2, 1,
s->h + 4);
674 s->x - 1,
s->y + 1 +
s->h,
s->w + 3, 1);
678 s->x - 2,
s->y + 2 +
s->h,
s->w + 4, 1);
682 s->x + 1 +
s->w,
s->y - 1, 1,
s->h + 2);
686 s->x + 2 +
s->w,
s->y - 2, 1,
s->h + 5);
688 for (
i = 0;
i < 4;
i++) {
689 rms[
i] /=
s->w *
s->h;
690 rms[
i] = sqrt(rms[
i]);
691 average[
i] /=
s->w *
s->h;
694 for (y = 0; y <
s->h; y++) {
695 for (x = 0; x <
s->w; x++) {
696 for (
i = 0;
i < 4;
i++)
697 std[
i] +=
SQR(
s->values[
i][x][y] - average[
i]);
701 for (
i = 0;
i < 4;
i++) {
702 std[
i] /=
s->w *
s->h;
703 std[
i] = sqrt(std[
i]);
706 snprintf(text,
sizeof(text),
"CH AVG MIN MAX RMS\n");
708 for (
i = 0;
i <
s->nb_comps;
i++) {
709 int c =
s->rgba_map[
i];
711 snprintf(text,
sizeof(text),
"%c %07.1f %05d %05d %07.1f\n",
s->is_rgb ? rgba[
i] : yuva[
i], average[
c],
min[
c],
max[
c], rms[
c]);
714 snprintf(text,
sizeof(text),
"CH STD\n");
716 for (
i = 0;
i <
s->nb_comps;
i++) {
717 int c =
s->rgba_map[
i];
719 snprintf(text,
sizeof(text),
"%c %07.2f\n",
s->is_rgb ? rgba[
i] : yuva[
i], std[
c]);
728 char *res,
int res_len,
int flags)
749 .p.name =
"pixscope",
751 .p.priv_class = &pixscope_class,
806#define OOFFSET(x) offsetof(OscilloscopeContext, x)
837 int dx =
FFABS(
x1 - x0), sx = x0 <
x1 ? 1 : -1;
838 int dy =
FFABS(
y1 - y0), sy = y0 <
y1 ? 1 : -1;
839 int err = (dx > dy ? dx : -dy) / 2, e2;
843 if (x0 >= 0 && y0 >= 0 && x0 < out->
width && y0 < out->
height) {
844 for (p = 0; p <
draw->nb_planes; p++) {
845 if (
draw->desc->comp[p].depth == 8) {
846 if (
draw->nb_planes == 1) {
847 for (
i = 0;
i <
draw->desc->nb_components;
i++) {
848 out->data[0][y0 *
out->linesize[0] + x0 *
draw->pixelstep[0] +
i] =
color->comp[0].u8[
i];
851 out->data[p][
out->linesize[p] * (y0 >>
draw->vsub[p]) + (x0 >>
draw->hsub[p])] =
color->comp[p].u8[0];
854 if (
draw->nb_planes == 1) {
855 for (
i = 0;
i <
draw->desc->nb_components;
i++) {
865 if (x0 ==
x1 && y0 ==
y1)
886 for (
i = 1;
i <
s->nb_values;
i++) {
887 for (
c = 0;
c <
s->nb_comps;
c++) {
888 if ((1 <<
c) &
s->components) {
889 int x =
i *
s->width /
s->nb_values;
890 int px = (
i - 1) *
s->width /
s->nb_values;
891 int py =
s->height -
s->values[
i-1].p[
s->rgba_map[
c]] *
s->height / 256;
892 int y =
s->height -
s->values[
i].p[
s->rgba_map[
c]] *
s->height / 256;
905 for (
i = 1;
i <
s->nb_values;
i++) {
906 for (
c = 0;
c <
s->nb_comps;
c++) {
907 if ((1 <<
c) &
s->components) {
908 int x =
i *
s->width /
s->nb_values;
909 int px = (
i - 1) *
s->width /
s->nb_values;
910 int py =
s->height -
s->values[
i-1].p[
s->rgba_map[
c]] *
s->height /
s->max;
911 int y =
s->height -
s->values[
i].p[
s->rgba_map[
c]] *
s->height /
s->max;
927 s->height =
s->theight * inlink->
h;
928 s->width =
s->twidth * inlink->
w;
932 cx =
s->xpos * (inlink->
w - 1);
933 cy =
s->ypos * (inlink->
h - 1);
938 s->ox = (inlink->
w -
s->width) *
s->tx;
939 s->oy = (inlink->
h -
s->height) *
s->ty;
963 s->nb_comps =
s->draw.desc->nb_components;
967 s->colors[0] = &
s->red;
968 s->colors[1] = &
s->green;
969 s->colors[2] = &
s->blue;
970 s->colors[3] = &
s->white;
973 s->colors[0] = &
s->white;
974 s->colors[1] = &
s->cyan;
975 s->colors[2] = &
s->magenta;
976 s->colors[3] = &
s->white;
983 if (
s->draw.desc->comp[0].depth <= 8) {
991 s->max = (1 <<
s->draw.desc->comp[0].depth);
1006 int dx =
FFABS(
x1 - x0), sx = x0 <
x1 ? 1 : -1;
1007 int dy =
FFABS(
y1 - y0), sy = y0 <
y1 ? 1 : -1;
1008 int err = (dx > dy ? dx : -dy) / 2, e2;
1011 if (x0 >= 0 && y0 >= 0 && x0 < out->
width && y0 < out->
height) {
1013 int value[4] = { 0 };
1016 s->values[
s->nb_values].p[0] =
value[0];
1017 s->values[
s->nb_values].p[1] =
value[1];
1018 s->values[
s->nb_values].p[2] =
value[2];
1019 s->values[
s->nb_values].p[3] =
value[3];
1023 if (
s->draw.desc->comp[0].depth == 8) {
1024 if (
s->draw.nb_planes == 1) {
1027 for (
i = 0;
i <
s->nb_comps;
i++)
1028 out->data[0][
out->linesize[0] * y0 + x0 *
s->draw.pixelstep[0] +
i] = 255 * ((
s->nb_values +
state) & 1);
1030 out->data[0][
out->linesize[0] * y0 + x0] = 255 * ((
s->nb_values +
state) & 1);
1033 if (
s->draw.nb_planes == 1) {
1036 for (
i = 0;
i <
s->nb_comps;
i++)
1037 AV_WN16(
out->data[0] +
out->linesize[0] * y0 + x0 *
s->draw.pixelstep[0] +
i, (
s->max - 1) * ((
s->nb_values +
state) & 1));
1039 AV_WN16(
out->data[0] +
out->linesize[0] * y0 + 2 * x0, (
s->max - 1) * ((
s->nb_values +
state) & 1));
1045 if (x0 ==
x1 && y0 ==
y1)
1068 float average[4] = { 0 };
1070 int min[4] = { INT_MAX, INT_MAX, INT_MAX, INT_MAX };
1077 s->ox,
s->oy,
s->width,
s->height + 20 *
s->statistics);
1079 if (
s->grid && outlink->
h >= 10) {
1081 s->ox,
s->oy,
s->width - 1, 1);
1083 for (
i = 1;
i < 5;
i++) {
1085 s->ox,
s->oy +
i * (
s->height - 1) / 4,
s->width, 1);
1088 for (
i = 0;
i < 10;
i++) {
1090 s->ox +
i * (
s->width - 1) / 10,
s->oy, 1,
s->height);
1094 s->ox +
s->width - 1,
s->oy, 1,
s->height);
1099 for (
i = 0;
i <
s->nb_values;
i++) {
1100 for (
c = 0;
c <
s->nb_comps;
c++) {
1101 if ((1 <<
c) &
s->components) {
1104 average[
c] +=
s->values[
i].p[
s->rgba_map[
c]];
1108 for (
c = 0;
c <
s->nb_comps;
c++) {
1109 average[
c] /=
s->nb_values;
1112 if (
s->statistics &&
s->height > 10 &&
s->width > 280 *
av_popcount(
s->components)) {
1113 for (
c = 0,
i = 0;
c <
s->nb_comps;
c++) {
1114 if ((1 <<
c) &
s->components) {
1115 const char rgba[4] = {
'R',
'G',
'B',
'A' };
1116 const char yuva[4] = {
'Y',
'U',
'V',
'A' };
1119 snprintf(text,
sizeof(text),
"%c avg:%.1f min:%d max:%d\n",
s->is_rgb ? rgba[
c] : yuva[
c], average[
c],
min[
c],
max[
c]);
1129 char *res,
int res_len,
int flags)
1153 .p.name =
"oscilloscope",
1155 .p.priv_class = &oscilloscope_class,
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
static int config_input(AVFilterLink *inlink)
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
static const char *const format[]
const FFFilter ff_vf_oscilloscope
const FFFilter ff_vf_pixscope
const FFFilter ff_vf_datascope
static int draw(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options.
int ff_filter_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs)
int ff_filter_get_nb_threads(AVFilterContext *ctx)
Get number of threads for current filter instance.
Main libavfilter public API header.
#define flags(name, subs,...)
#define i(width, name, range_min, range_max)
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
static uint64_t reverse(uint64_t p, unsigned int deg)
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
void ff_blend_rectangle(FFDrawContext *draw, FFDrawColor *color, uint8_t *dst[], int dst_linesize[], int dst_w, int dst_h, int x0, int y0, int w, int h)
Blend a rectangle with an uniform color.
int ff_draw_init(FFDrawContext *draw, enum AVPixelFormat format, unsigned flags)
void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4])
Prepare a color.
int ff_fill_rgba_map(uint8_t *rgba_map, enum AVPixelFormat pix_fmt)
AVFilterFormats * ff_draw_supported_pixel_formats(unsigned flags)
Return the list of pixel formats supported by the draw functions.
void ff_fill_rectangle(FFDrawContext *draw, FFDrawColor *color, uint8_t *dst[], int dst_linesize[], int dst_x, int dst_y, int w, int h)
Fill a rectangle with an uniform color.
int ff_draw_init_from_link(FFDrawContext *draw, const AVFilterLink *link, unsigned flags)
Init a draw context, taking the format, colorspace and range from the given filter link.
void ff_blend_mask(FFDrawContext *draw, FFDrawColor *color, uint8_t *dst[], int dst_linesize[], int dst_w, int dst_h, const uint8_t *mask, int mask_linesize, int mask_w, int mask_h, int l2depth, unsigned endianness, int x0, int y0)
Blend an alpha mask with an uniform color.
static struct @346255127015250356166251341105367306144006377143 state
@ AV_OPT_TYPE_IMAGE_SIZE
Underlying C type is two consecutive integers.
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
Copy only "metadata" fields from src to dst.
int av_frame_copy(AVFrame *dst, const AVFrame *src)
Copy the frame data from src to dst.
#define AV_LOG_WARNING
Something somehow does not look correct.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static const int16_t alpha[]
static av_cold void uninit(AVBitStreamFilterContext *ctx)
static int config_output(AVBitStreamFilterLink *outlink)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
static int ff_slice_pos(int total, int jobnr, int nb_jobs)
Compute the boundary index for a slice when work of size total is split into nb_jobs slices.
#define AVFILTERPAD_FLAG_NEEDS_WRITABLE
The filter expects writable frames from its input link, duplicating data buffers if needed.
static FilterLink * ff_filter_link(AVFilterLink *link)
#define AVFILTER_DEFINE_CLASS(fname)
#define FILTER_QUERY_FUNC2(func)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static av_const double hypot(double x, double y)
void * av_calloc(size_t nmemb, size_t size)
Memory handling functions.
static int slice_end(AVCodecContext *avctx, AVFrame *pict, int *got_output)
Handle slice ends.
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
#define AV_PIX_FMT_FLAG_RGB
The pixel format contains RGB-like data (as opposed to YUV/grayscale).
Describe the class of an AVClass context structure.
void * priv
private data for use by the filter
A link between two filters.
int w
agreed upon image width
int h
agreed upon image height
AVFilterContext * src
source filter
AVRational sample_aspect_ratio
agreed upon sample aspect ratio
AVFilterContext * dst
dest filter
int format
agreed upon media format
A filter pad used for either input or output.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
Rational number (pair of numerator and denominator).
void(* pick_color)(FFDrawContext *draw, FFDrawColor *color, AVFrame *in, int x, int y, int *value)
void(* reverse_color)(FFDrawContext *draw, FFDrawColor *color, FFDrawColor *reverse)
int(* filter)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
Link properties exposed to filter code, but not external callers.
int64_t frame_count_in
Number of past frames sent through the link.
void(* pick_color)(FFDrawContext *draw, FFDrawColor *color, AVFrame *in, int x, int y, int *value)
void(* draw_trace)(struct OscilloscopeContext *s, AVFrame *frame)
uint16_t values[4][80][80]
void(* pick_color)(FFDrawContext *draw, FFDrawColor *color, AVFrame *in, int x, int y, int *value)
Used for passing data between threads.
static AVFormatContext * ctx
static int filter_mono(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
static const AVOption datascope_options[]
static int filter_color(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
static void draw_trace8(OscilloscopeContext *s, AVFrame *frame)
static void draw_trace16(OscilloscopeContext *s, AVFrame *frame)
static void draw_text(FFDrawContext *draw, AVFrame *frame, FFDrawColor *color, int x0, int y0, const uint8_t *text, int vertical)
static const AVOption oscilloscope_options[]
static int pixscope_filter_frame(AVFilterLink *inlink, AVFrame *in)
static void oscilloscope_uninit(AVFilterContext *ctx)
static int config_input(AVFilterLink *inlink)
static const AVOption pixscope_options[]
static void draw_scope(OscilloscopeContext *s, int x0, int y0, int x1, int y1, AVFrame *out, PixelValues *p, int state)
static int oscilloscope_process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
static void pick_color16(FFDrawContext *draw, FFDrawColor *color, AVFrame *in, int x, int y, int *value)
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
static int pixscope_process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
static int oscilloscope_filter_frame(AVFilterLink *inlink, AVFrame *frame)
static void reverse_color8(FFDrawContext *draw, FFDrawColor *color, FFDrawColor *reverse)
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
static int filter_color2(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
static const AVFilterPad oscilloscope_inputs[]
static void reverse_color16(FFDrawContext *draw, FFDrawColor *color, FFDrawColor *reverse)
static int pixscope_config_input(AVFilterLink *inlink)
static int config_output(AVFilterLink *outlink)
static void draw_line(FFDrawContext *draw, int x0, int y0, int x1, int y1, AVFrame *out, FFDrawColor *color)
static void update_oscilloscope(AVFilterContext *ctx)
static const AVFilterPad pixscope_inputs[]
static int oscilloscope_config_input(AVFilterLink *inlink)
static void pick_color8(FFDrawContext *draw, FFDrawColor *color, AVFrame *in, int x, int y, int *value)
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
AVFrame * ff_get_video_buffer(AVFilterLink *link, int w, int h)
Request a picture buffer with a specific set of permissions.
static int slice_start(SliceContext *sc, VVCContext *s, VVCFrameContext *fc, const CodedBitstreamUnit *unit, const int is_first_slice)
const uint8_t * avpriv_cga_font_get(void)
static const uint8_t cga_font[2048]
CGA/EGA/VGA ROM font data.