[FFmpeg-soc] [soc]: r4019 - in libavfilter: vf_crop.c vf_drawbox.c vf_fifo.c vf_format.c vf_fps.c vf_overlay.c vf_rotate.c vf_scale.c vf_setpts.c vf_slicify.c vsrc_buffer.c vsrc_movie.c

stefano subversion at mplayerhq.hu
Sat Feb 7 11:16:27 CET 2009


Author: stefano
Date: Sat Feb  7 11:16:27 2009
New Revision: 4019

Log:
Use the av_cold attribute when declaring the init and uninit functions
of the filters/sources.

Modified:
   libavfilter/vf_crop.c
   libavfilter/vf_drawbox.c
   libavfilter/vf_fifo.c
   libavfilter/vf_format.c
   libavfilter/vf_fps.c
   libavfilter/vf_overlay.c
   libavfilter/vf_rotate.c
   libavfilter/vf_scale.c
   libavfilter/vf_setpts.c
   libavfilter/vf_slicify.c
   libavfilter/vsrc_buffer.c
   libavfilter/vsrc_movie.c

Modified: libavfilter/vf_crop.c
==============================================================================
--- libavfilter/vf_crop.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_crop.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -32,7 +32,7 @@ typedef struct
     int hsub, vsub;         //< chroma subsampling
 } CropContext;
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     CropContext *crop = ctx->priv;
 

Modified: libavfilter/vf_drawbox.c
==============================================================================
--- libavfilter/vf_drawbox.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_drawbox.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -79,7 +79,7 @@ static box_color get_color(char *color)
     return tmp;
 }
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     BoxContext *context= ctx->priv;
     char tmp[1024];

Modified: libavfilter/vf_fifo.c
==============================================================================
--- libavfilter/vf_fifo.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_fifo.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -33,7 +33,7 @@ typedef struct
     BufPic *last;   ///< last buffered picture
 } BufferContext;
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     BufferContext *buf = ctx->priv;
     buf->last = &buf->root;
@@ -41,7 +41,7 @@ static int init(AVFilterContext *ctx, co
     return 0;
 }
 
-static void uninit(AVFilterContext *ctx)
+static av_cold void uninit(AVFilterContext *ctx)
 {
     BufferContext *buf = ctx->priv;
     BufPic *pic, *tmp;

Modified: libavfilter/vf_format.c
==============================================================================
--- libavfilter/vf_format.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_format.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -30,7 +30,7 @@ typedef struct
     uint8_t formats[PIX_FMT_NB];
 } FormatContext;
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     FormatContext *format = ctx->priv;
     const char *cur, *sep;

Modified: libavfilter/vf_fps.c
==============================================================================
--- libavfilter/vf_fps.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_fps.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -31,7 +31,7 @@ typedef struct {
     int has_frame;
 } FPSContext;
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     AVRational default_rate = (AVRational) {25, 1};
     FPSContext *fps = ctx->priv;
@@ -48,7 +48,7 @@ static int init(AVFilterContext *ctx, co
     return 0;
 }
 
-static void uninit(AVFilterContext *ctx)
+static av_cold void uninit(AVFilterContext *ctx)
 {
     FPSContext *fps = ctx->priv;
     if(fps->pic) avfilter_unref_pic(fps->pic);

Modified: libavfilter/vf_overlay.c
==============================================================================
--- libavfilter/vf_overlay.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_overlay.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -34,7 +34,7 @@ typedef struct {
     int hsub, vsub;             //< chroma subsampling
 } OverlayContext;
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     OverlayContext *over = ctx->priv;
 
@@ -46,7 +46,7 @@ static int init(AVFilterContext *ctx, co
     return 0;
 }
 
-static void uninit(AVFilterContext *ctx)
+static av_cold void uninit(AVFilterContext *ctx)
 {
     OverlayContext *over = ctx->priv;
     int i, j;

Modified: libavfilter/vf_rotate.c
==============================================================================
--- libavfilter/vf_rotate.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_rotate.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -41,7 +41,7 @@ typedef struct
     int backcolor[3];
 } RotContext;
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     RotContext *rot = ctx->priv;
 

Modified: libavfilter/vf_scale.c
==============================================================================
--- libavfilter/vf_scale.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_scale.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -38,7 +38,7 @@ typedef struct
     int sliceY;                 ///< top of current output slice
 } ScaleContext;
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     ScaleContext *scale = ctx->priv;
 
@@ -59,7 +59,7 @@ static int init(AVFilterContext *ctx, co
     return 0;
 }
 
-static void uninit(AVFilterContext *ctx)
+static av_cold void uninit(AVFilterContext *ctx)
 {
     ScaleContext *scale = ctx->priv;
     if(scale->sws)

Modified: libavfilter/vf_setpts.c
==============================================================================
--- libavfilter/vf_setpts.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_setpts.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -67,7 +67,7 @@ typedef struct {
     double const_values[POV_NULL+1];
 } SetPTSContext;
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     SetPTSContext *setpts = ctx->priv;
     const char *error;
@@ -109,7 +109,7 @@ static void start_frame(AVFilterLink *li
     avfilter_start_frame(link->dst->outputs[0], ref2);
 }
 
-static void uninit(AVFilterContext *ctx)
+static av_cold void uninit(AVFilterContext *ctx)
 {
     SetPTSContext *setpts = ctx->priv;
     ff_eval_free(setpts->expr);

Modified: libavfilter/vf_slicify.c
==============================================================================
--- libavfilter/vf_slicify.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vf_slicify.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -28,7 +28,7 @@ typedef struct {
     int vshift;     ///< chroma subsampling shift
 } SliceContext;
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     SliceContext *slice = ctx->priv;
 

Modified: libavfilter/vsrc_buffer.c
==============================================================================
--- libavfilter/vsrc_buffer.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vsrc_buffer.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -52,7 +52,7 @@ int av_vsrc_buffer_add_frame(AVFilterCon
     return 0;
 }
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     BufferSourceContext *c = ctx->priv;
 

Modified: libavfilter/vsrc_movie.c
==============================================================================
--- libavfilter/vsrc_movie.c	Wed Feb  4 00:38:00 2009	(r4018)
+++ libavfilter/vsrc_movie.c	Sat Feb  7 11:16:27 2009	(r4019)
@@ -141,7 +141,7 @@ int movie_init(AVFilterContext *ctx)
     return 0;
 }
 
-static int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     MovieContext *mv = ctx->priv;
 
@@ -253,7 +253,7 @@ static int request_frame(AVFilterLink *l
     return 0;
 }
 
-static void uninit(AVFilterContext *ctx)
+static av_cold void uninit(AVFilterContext *ctx)
 {
     MovieContext *mv = ctx->priv;
 



More information about the FFmpeg-soc mailing list