|
FFmpeg
|
Codec debug viewer filter. More...
#include "libavutil/imgutils.h"#include "libavutil/motion_vector.h"#include "libavutil/opt.h"#include "avfilter.h"#include "internal.h"Go to the source code of this file.
Data Structures | |
| struct | CodecViewContext |
Macros | |
| #define | MV_P_FOR (1<<0) |
| #define | MV_B_FOR (1<<1) |
| #define | MV_B_BACK (1<<2) |
| #define | OFFSET(x) offsetof(CodecViewContext, x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Functions | |
| AVFILTER_DEFINE_CLASS (codecview) | |
| static int | query_formats (AVFilterContext *ctx) |
| static int | clip_line (int *sx, int *sy, int *ex, int *ey, int maxx) |
| static void | draw_line (uint8_t *buf, int sx, int sy, int ex, int ey, int w, int h, int stride, int color) |
| Draw a line from (ex, ey) -> (sx, sy). | |
| static void | draw_arrow (uint8_t *buf, int sx, int sy, int ex, int ey, int w, int h, int stride, int color, int tail, int direction) |
| Draw an arrow from (ex, ey) -> (sx, sy). | |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
Variables | |
| static const AVOption | codecview_options [] |
| static const AVFilterPad | codecview_inputs [] |
| static const AVFilterPad | codecview_outputs [] |
| AVFilter | ff_vf_codecview |
Codec debug viewer filter.
All the MV drawing code from Michael Niedermayer is extracted from libavcodec/mpegvideo.c.
TODO: segmentation TODO: quantization
Definition in file vf_codecview.c.
| #define MV_P_FOR (1<<0) |
Definition at line 39 of file vf_codecview.c.
Referenced by filter_frame().
| #define MV_B_FOR (1<<1) |
Definition at line 40 of file vf_codecview.c.
Referenced by filter_frame().
| #define MV_B_BACK (1<<2) |
Definition at line 41 of file vf_codecview.c.
Referenced by filter_frame().
| #define OFFSET | ( | x | ) | offsetof(CodecViewContext, x) |
Definition at line 48 of file vf_codecview.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 49 of file vf_codecview.c.
| AVFILTER_DEFINE_CLASS | ( | codecview | ) |
|
static |
Definition at line 60 of file vf_codecview.c.
|
static |
Definition at line 69 of file vf_codecview.c.
Referenced by draw_line().
|
static |
Draw a line from (ex, ey) -> (sx, sy).
| w | width of the image |
| h | height of the image |
| stride | stride/linesize of the image |
| color | color of the arrow |
Definition at line 97 of file vf_codecview.c.
Referenced by draw_arrow().
|
static |
Draw an arrow from (ex, ey) -> (sx, sy).
| w | width of the image |
| h | height of the image |
| stride | stride/linesize of the image |
| color | color of the arrow |
Definition at line 155 of file vf_codecview.c.
Referenced by filter_frame().
|
static |
Definition at line 193 of file vf_codecview.c.
|
static |
Definition at line 50 of file vf_codecview.c.
|
static |
Definition at line 217 of file vf_codecview.c.
|
static |
Definition at line 227 of file vf_codecview.c.
| AVFilter ff_vf_codecview |
Definition at line 235 of file vf_codecview.c.
1.8.2