summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-19 18:20:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-19 18:20:17 +0200
commit74a8dbe1c405e041a16c44050d9dfc92aca90d33 (patch)
tree49fa40ab5ebb4dc10ac88c1f11bc84337aaa2c11
parent010732b73a0869d222cb281431a9a4aae89355e6 (diff)
parent58400ac133bcfb6bf8196b4e5208bc178307739b (diff)
downloadffmpeg-streaming-74a8dbe1c405e041a16c44050d9dfc92aca90d33.zip
ffmpeg-streaming-74a8dbe1c405e041a16c44050d9dfc92aca90d33.tar.gz
Merge commit '58400ac133bcfb6bf8196b4e5208bc178307739b'
* commit '58400ac133bcfb6bf8196b4e5208bc178307739b': lavfi: name anonymous structs Conflicts: libavfilter/buffersink.c libavfilter/f_select.c libavfilter/src_movie.c libavfilter/vf_drawbox.c libavfilter/vf_drawtext.c libavfilter/vf_overlay.c libavfilter/vf_showinfo.c libavfilter/vf_unsharp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/buffersink.c2
-rw-r--r--libavfilter/buffersrc.c2
-rw-r--r--libavfilter/f_select.c2
-rw-r--r--libavfilter/fifo.c2
-rw-r--r--libavfilter/setpts.c2
-rw-r--r--libavfilter/settb.c2
-rw-r--r--libavfilter/src_movie.c4
-rw-r--r--libavfilter/unsharp.h2
-rw-r--r--libavfilter/vf_aspect.c2
-rw-r--r--libavfilter/vf_blackframe.c2
-rw-r--r--libavfilter/vf_boxblur.c4
-rw-r--r--libavfilter/vf_crop.c2
-rw-r--r--libavfilter/vf_cropdetect.c2
-rw-r--r--libavfilter/vf_delogo.c2
-rw-r--r--libavfilter/vf_drawbox.c2
-rw-r--r--libavfilter/vf_drawtext.c4
-rw-r--r--libavfilter/vf_elbg.c2
-rw-r--r--libavfilter/vf_fade.c2
-rw-r--r--libavfilter/vf_fieldorder.c2
-rw-r--r--libavfilter/vf_format.c2
-rw-r--r--libavfilter/vf_framestep.c2
-rw-r--r--libavfilter/vf_hflip.c2
-rw-r--r--libavfilter/vf_hqdn3d.h2
-rw-r--r--libavfilter/vf_interlace.c2
-rw-r--r--libavfilter/vf_libopencv.c8
-rw-r--r--libavfilter/vf_lut.c2
-rw-r--r--libavfilter/vf_overlay.c2
-rw-r--r--libavfilter/vf_pad.c2
-rw-r--r--libavfilter/vf_pixdesctest.c2
-rw-r--r--libavfilter/vf_scale.c2
-rw-r--r--libavfilter/vf_transpose.c2
-rw-r--r--libavfilter/vf_vflip.c2
-rw-r--r--libavfilter/vsrc_testsrc.c4
33 files changed, 40 insertions, 40 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index a6b24ad..5144fda 100644
--- a/libavfilter/buffersink.c
+++ b/libavfilter/buffersink.c
@@ -36,7 +36,7 @@
#include "buffersink.h"
#include "internal.h"
-typedef struct {
+typedef struct BufferSinkContext {
const AVClass *class;
AVFifoBuffer *fifo; ///< FIFO buffer of video frame references
unsigned warning_limit;
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index ae7cea2..30d3a37 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -41,7 +41,7 @@
#include "video.h"
#include "avcodec.h"
-typedef struct {
+typedef struct BufferSourceContext {
const AVClass *class;
AVFifoBuffer *fifo;
AVRational time_base; ///< time_base to set in the output link
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index 1ffc006..4d18cbc 100644
--- a/libavfilter/f_select.c
+++ b/libavfilter/f_select.c
@@ -138,7 +138,7 @@ enum var_name {
VAR_VARS_NB
};
-typedef struct {
+typedef struct SelectContext {
const AVClass *class;
char *expr_str;
AVExpr *expr;
diff --git a/libavfilter/fifo.c b/libavfilter/fifo.c
index 5310af2..e477cff 100644
--- a/libavfilter/fifo.c
+++ b/libavfilter/fifo.c
@@ -39,7 +39,7 @@ typedef struct Buf {
struct Buf *next;
} Buf;
-typedef struct {
+typedef struct FifoContext {
Buf root;
Buf *last; ///< last buffered frame
diff --git a/libavfilter/setpts.c b/libavfilter/setpts.c
index cb6b2b9..0db0218 100644
--- a/libavfilter/setpts.c
+++ b/libavfilter/setpts.c
@@ -82,7 +82,7 @@ enum var_name {
VAR_VARS_NB
};
-typedef struct {
+typedef struct SetPTSContext {
const AVClass *class;
char *expr_str;
AVExpr *expr;
diff --git a/libavfilter/settb.c b/libavfilter/settb.c
index ac8b898..83616c1 100644
--- a/libavfilter/settb.c
+++ b/libavfilter/settb.c
@@ -51,7 +51,7 @@ enum var_name {
VAR_VARS_NB
};
-typedef struct {
+typedef struct SetTBContext {
const AVClass *class;
char *tb_expr;
double var_values[VAR_VARS_NB];
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index 82bcc56..bcc8e05 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -44,12 +44,12 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct MovieStream {
AVStream *st;
int done;
} MovieStream;
-typedef struct {
+typedef struct MovieContext {
/* common A/V fields */
const AVClass *class;
int64_t seek_point; ///< seekpoint in microseconds
diff --git a/libavfilter/unsharp.h b/libavfilter/unsharp.h
index 8678920..c2aed64 100644
--- a/libavfilter/unsharp.h
+++ b/libavfilter/unsharp.h
@@ -64,7 +64,7 @@ typedef struct UnsharpFilterParam {
uint32_t *sc[MAX_MATRIX_SIZE - 1]; ///< finite state machine storage
} UnsharpFilterParam;
-typedef struct {
+typedef struct UnsharpContext {
const AVClass *class;
int lmsize_x, lmsize_y, cmsize_x, cmsize_y;
float lamount, camount;
diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c
index 97fb216..84dbee9 100644
--- a/libavfilter/vf_aspect.c
+++ b/libavfilter/vf_aspect.c
@@ -56,7 +56,7 @@ enum var_name {
VARS_NB
};
-typedef struct {
+typedef struct AspectContext {
const AVClass *class;
AVRational dar;
AVRational sar;
diff --git a/libavfilter/vf_blackframe.c b/libavfilter/vf_blackframe.c
index 9b0c973..0eeda61 100644
--- a/libavfilter/vf_blackframe.c
+++ b/libavfilter/vf_blackframe.c
@@ -37,7 +37,7 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct BlackFrameContext {
const AVClass *class;
int bamount; ///< black amount
int bthresh; ///< black threshold
diff --git a/libavfilter/vf_boxblur.c b/libavfilter/vf_boxblur.c
index 3183f43..1fa5135 100644
--- a/libavfilter/vf_boxblur.c
+++ b/libavfilter/vf_boxblur.c
@@ -55,13 +55,13 @@ enum var_name {
VARS_NB
};
-typedef struct {
+typedef struct FilterParam {
int radius;
int power;
char *radius_expr;
} FilterParam;
-typedef struct {
+typedef struct BoxBlurContext {
const AVClass *class;
FilterParam luma_param;
FilterParam chroma_param;
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 261db33..30ee077 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -73,7 +73,7 @@ enum var_name {
VAR_VARS_NB
};
-typedef struct {
+typedef struct CropContext {
const AVClass *class;
int x; ///< x offset of the non-cropped area with respect to the input area
int y; ///< y offset of the non-cropped area with respect to the input area
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c
index 4a6b658..ed8e7a8 100644
--- a/libavfilter/vf_cropdetect.c
+++ b/libavfilter/vf_cropdetect.c
@@ -32,7 +32,7 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct CropDetectContext {
const AVClass *class;
int x1, y1, x2, y2;
int limit;
diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c
index fbc8983..6ccdfb2 100644
--- a/libavfilter/vf_delogo.c
+++ b/libavfilter/vf_delogo.c
@@ -148,7 +148,7 @@ static void apply_delogo(uint8_t *dst, int dst_linesize,
}
}
-typedef struct {
+typedef struct DelogoContext {
const AVClass *class;
int x, y, w, h, band, show;
} DelogoContext;
diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c
index dd884a7..115df88 100644
--- a/libavfilter/vf_drawbox.c
+++ b/libavfilter/vf_drawbox.c
@@ -66,7 +66,7 @@ enum var_name {
VARS_NB
};
-typedef struct {
+typedef struct DrawBoxContext {
const AVClass *class;
int x, y, w, h;
int thickness;
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index ef82eed..280abb8 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -126,7 +126,7 @@ enum expansion_mode {
EXP_STRFTIME,
};
-typedef struct {
+typedef struct DrawTextContext {
const AVClass *class;
enum expansion_mode exp_mode; ///< expansion mode to use for the text
int reinit; ///< tells if the filter is being reinited
@@ -260,7 +260,7 @@ struct ft_error
#define FT_ERRMSG(e) ft_errors[e].err_msg
-typedef struct {
+typedef struct Glyph {
FT_Glyph *glyph;
uint32_t code;
FT_Bitmap bitmap; ///< array holding bitmaps of font
diff --git a/libavfilter/vf_elbg.c b/libavfilter/vf_elbg.c
index f92d936..be0885d 100644
--- a/libavfilter/vf_elbg.c
+++ b/libavfilter/vf_elbg.c
@@ -33,7 +33,7 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct ColorContext {
const AVClass *class;
AVLFG lfg;
unsigned int lfg_seed;
diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
index cc10b12..80ce75d 100644
--- a/libavfilter/vf_fade.c
+++ b/libavfilter/vf_fade.c
@@ -49,7 +49,7 @@
#define FADE_IN 0
#define FADE_OUT 1
-typedef struct {
+typedef struct FadeContext {
const AVClass *class;
int type;
int factor, fade_per_frame;
diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c
index 84088a0..36189af 100644
--- a/libavfilter/vf_fieldorder.c
+++ b/libavfilter/vf_fieldorder.c
@@ -32,7 +32,7 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct FieldOrderContext {
const AVClass *class;
int dst_tff; ///< output bff/tff
int line_size[4]; ///< bytes of pixel data per line for each plane
diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c
index 98061e9..8a41153 100644
--- a/libavfilter/vf_format.c
+++ b/libavfilter/vf_format.c
@@ -35,7 +35,7 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct FormatContext {
const AVClass *class;
char *pix_fmts;
/**
diff --git a/libavfilter/vf_framestep.c b/libavfilter/vf_framestep.c
index 9087f46..09945e1 100644
--- a/libavfilter/vf_framestep.c
+++ b/libavfilter/vf_framestep.c
@@ -28,7 +28,7 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct NullContext {
const AVClass *class;
int frame_step;
} FrameStepContext;
diff --git a/libavfilter/vf_hflip.c b/libavfilter/vf_hflip.c
index 19b6606..faf3285 100644
--- a/libavfilter/vf_hflip.c
+++ b/libavfilter/vf_hflip.c
@@ -35,7 +35,7 @@
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
-typedef struct {
+typedef struct FlipContext {
int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes
int planewidth[4]; ///< width of each plane
int planeheight[4]; ///< height of each plane
diff --git a/libavfilter/vf_hqdn3d.h b/libavfilter/vf_hqdn3d.h
index 268ac9a..be55400 100644
--- a/libavfilter/vf_hqdn3d.h
+++ b/libavfilter/vf_hqdn3d.h
@@ -28,7 +28,7 @@
#include "libavutil/opt.h"
-typedef struct {
+typedef struct HQDN3DContext {
const AVClass *class;
int16_t *coefs[4];
uint16_t *line;
diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c
index aff979b..0929a71 100644
--- a/libavfilter/vf_interlace.c
+++ b/libavfilter/vf_interlace.c
@@ -47,7 +47,7 @@ enum FieldType {
FIELD_LOWER = 1,
};
-typedef struct {
+typedef struct InterlaceContext {
const AVClass *class;
enum ScanMode scan; // top or bottom field first scanning
#if FF_API_INTERLACE_LOWPASS_SET
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index 2306b09..6b4a7fc 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -68,7 +68,7 @@ static int query_formats(AVFilterContext *ctx)
return 0;
}
-typedef struct {
+typedef struct OCVContext {
const AVClass *class;
char *name;
char *params;
@@ -78,7 +78,7 @@ typedef struct {
void *priv;
} OCVContext;
-typedef struct {
+typedef struct SmoothContext {
int type;
int param1, param2;
double param3, param4;
@@ -245,7 +245,7 @@ static int parse_iplconvkernel(IplConvKernel **kernel, char *buf, void *log_ctx)
return 0;
}
-typedef struct {
+typedef struct DilateContext {
int nb_iterations;
IplConvKernel *kernel;
} DilateContext;
@@ -302,7 +302,7 @@ static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplIma
cvErode(inimg, outimg, dilate->kernel, dilate->nb_iterations);
}
-typedef struct {
+typedef struct OCVFilterEntry {
const char *name;
size_t priv_size;
int (*init)(AVFilterContext *ctx, const char *args);
diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c
index 9f30ae0..fff5a2b 100644
--- a/libavfilter/vf_lut.c
+++ b/libavfilter/vf_lut.c
@@ -57,7 +57,7 @@ enum var_name {
VAR_VARS_NB
};
-typedef struct {
+typedef struct LutContext {
const AVClass *class;
uint8_t lut[4][256]; ///< lookup table for each component
char *comp_expr_str[4];
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 56b2484..beb4e8f 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -91,7 +91,7 @@ static const char *eof_action_str[] = {
#define U 1
#define V 2
-typedef struct {
+typedef struct OverlayContext {
const AVClass *class;
int x, y; ///< position of overlayed picture
diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index 2962e20..2d9b9d0 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -77,7 +77,7 @@ static int query_formats(AVFilterContext *ctx)
return 0;
}
-typedef struct {
+typedef struct PadContext {
const AVClass *class;
int w, h; ///< output dimensions, a value of 0 will result in the input size
int x, y; ///< offsets of the input area with respect to the padded area
diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c
index bf1ca5d..790dd0d 100644
--- a/libavfilter/vf_pixdesctest.c
+++ b/libavfilter/vf_pixdesctest.c
@@ -29,7 +29,7 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct PixdescTestContext {
const AVPixFmtDescriptor *pix_desc;
uint16_t *line;
} PixdescTestContext;
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 6b7d474..b1d97af 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -71,7 +71,7 @@ enum var_name {
VARS_NB
};
-typedef struct {
+typedef struct ScaleContext {
const AVClass *class;
struct SwsContext *sws; ///< software scaler context
struct SwsContext *isws[2]; ///< software scaler context for interlaced material
diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c
index b5ba30e..58ddd2c 100644
--- a/libavfilter/vf_transpose.c
+++ b/libavfilter/vf_transpose.c
@@ -51,7 +51,7 @@ enum TransposeDir {
TRANSPOSE_CLOCK_FLIP,
};
-typedef struct {
+typedef struct TransContext {
const AVClass *class;
int hsub, vsub;
int pixsteps[4];
diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c
index f6908e4..4a4ae0e 100644
--- a/libavfilter/vf_vflip.c
+++ b/libavfilter/vf_vflip.c
@@ -29,7 +29,7 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct FlipContext {
int vsub; ///< vertical chroma subsampling
} FlipContext;
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 0ad1474..8814440 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -47,7 +47,7 @@
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct TestSourceContext {
const AVClass *class;
int w, h;
unsigned int nb_frame;
@@ -488,7 +488,7 @@ static void draw_digit(int digit, uint8_t *dst, int dst_linesize,
#define LEFT_BOT_VBAR 16
#define RIGHT_TOP_VBAR 32
#define RIGHT_BOT_VBAR 64
- struct {
+ struct segments {
int x, y, w, h;
} segments[] = {
{ 1, 0, 5, 1 }, /* TOP_HBAR */
OpenPOWER on IntegriCloud