Commit b4ca1b15 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'bc4620e5'

* commit 'bc4620e5':
  Remove libmpeg2 #define remnants
  De-doxygenize some top-level files

Conflicts:
	ffmpeg.c
	ffmpeg.h
	ffmpeg_filter.c
	ffplay.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d6c342fd bc4620e5
...@@ -975,7 +975,7 @@ static void do_video_stats(AVFormatContext *os, OutputStream *ost, ...@@ -975,7 +975,7 @@ static void do_video_stats(AVFormatContext *os, OutputStream *ost,
} }
} }
/** /*
* Get and encode new output from any of the filtergraphs, without causing * Get and encode new output from any of the filtergraphs, without causing
* activity. * activity.
* *
...@@ -2403,10 +2403,7 @@ static int transcode_init(void) ...@@ -2403,10 +2403,7 @@ static int transcode_init(void)
return 0; return 0;
} }
/** /* Return 1 if there remain streams where more output is wanted, 0 otherwise. */
* @return 1 if there are still streams where more output is wanted,
* 0 otherwise
*/
static int need_output(void) static int need_output(void)
{ {
int i; int i;
...@@ -2685,8 +2682,8 @@ static void reset_eagain(void) ...@@ -2685,8 +2682,8 @@ static void reset_eagain(void)
output_streams[i]->unavailable = 0; output_streams[i]->unavailable = 0;
} }
/** /*
* @return * Return
* - 0 -- one packet was read and processed * - 0 -- one packet was read and processed
* - AVERROR(EAGAIN) -- no packets were available for selected file, * - AVERROR(EAGAIN) -- no packets were available for selected file,
* this function should be called again * this function should be called again
......
...@@ -57,12 +57,12 @@ ...@@ -57,12 +57,12 @@
/* select an input stream for an output stream */ /* select an input stream for an output stream */
typedef struct StreamMap { typedef struct StreamMap {
int disabled; /** 1 is this mapping is disabled by a negative map */ int disabled; /* 1 is this mapping is disabled by a negative map */
int file_index; int file_index;
int stream_index; int stream_index;
int sync_file_index; int sync_file_index;
int sync_stream_index; int sync_stream_index;
char *linklabel; /** name of an output link, for mapping lavfi outputs */ char *linklabel; /* name of an output link, for mapping lavfi outputs */
} StreamMap; } StreamMap;
typedef struct { typedef struct {
......
...@@ -129,10 +129,8 @@ static char *choose_pix_fmts(OutputStream *ost) ...@@ -129,10 +129,8 @@ static char *choose_pix_fmts(OutputStream *ost)
return NULL; return NULL;
} }
/** /* Define a function for building a string containing a list of
* Define a function for building a string containing a list of * allowed formats. */
* allowed formats,
*/
#define DEF_CHOOSE_FORMAT(type, var, supported_list, none, get_name, separator)\ #define DEF_CHOOSE_FORMAT(type, var, supported_list, none, get_name, separator)\
static char *choose_ ## var ## s(OutputStream *ost) \ static char *choose_ ## var ## s(OutputStream *ost) \
{ \ { \
......
...@@ -367,7 +367,7 @@ static int opt_map_channel(void *optctx, const char *opt, const char *arg) ...@@ -367,7 +367,7 @@ static int opt_map_channel(void *optctx, const char *opt, const char *arg)
} }
/** /**
* Parse a metadata specifier in arg. * Parse a metadata specifier passed as 'arg' parameter.
* @param type metadata type is written here -- g(lobal)/s(tream)/c(hapter)/p(rogram) * @param type metadata type is written here -- g(lobal)/s(tream)/c(hapter)/p(rogram)
* @param index for type c/p, chapter/program index is written here * @param index for type c/p, chapter/program index is written here
* @param stream_spec for type s, the stream specifier is written here * @param stream_spec for type s, the stream specifier is written here
...@@ -541,10 +541,8 @@ static AVCodec *choose_decoder(OptionsContext *o, AVFormatContext *s, AVStream * ...@@ -541,10 +541,8 @@ static AVCodec *choose_decoder(OptionsContext *o, AVFormatContext *s, AVStream *
return avcodec_find_decoder(st->codec->codec_id); return avcodec_find_decoder(st->codec->codec_id);
} }
/** /* Add all the streams from the given input file to the global
* Add all the streams from the given input file to the global * list of input streams. */
* list of input streams.
*/
static void add_input_streams(OptionsContext *o, AVFormatContext *ic) static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
{ {
int i; int i;
......
...@@ -100,8 +100,8 @@ typedef struct PacketQueue { ...@@ -100,8 +100,8 @@ typedef struct PacketQueue {
#define SUBPICTURE_QUEUE_SIZE 4 #define SUBPICTURE_QUEUE_SIZE 4
typedef struct VideoPicture { typedef struct VideoPicture {
double pts; ///< presentation time stamp for this picture double pts; // presentation timestamp for this picture
int64_t pos; ///< byte position in file int64_t pos; // byte position in file
int skip; int skip;
SDL_Overlay *bmp; SDL_Overlay *bmp;
int width, height; /* source height & width */ int width, height; /* source height & width */
...@@ -210,13 +210,13 @@ typedef struct VideoState { ...@@ -210,13 +210,13 @@ typedef struct VideoState {
double frame_last_returned_time; double frame_last_returned_time;
double frame_last_filter_delay; double frame_last_filter_delay;
int64_t frame_last_dropped_pos; int64_t frame_last_dropped_pos;
double video_clock; ///< pts of last decoded frame / predicted pts of next decoded frame double video_clock; // pts of last decoded frame / predicted pts of next decoded frame
int video_stream; int video_stream;
AVStream *video_st; AVStream *video_st;
PacketQueue videoq; PacketQueue videoq;
double video_current_pts; ///< current displayed pts (different from video_clock if frame fifos are used) double video_current_pts; // current displayed pts (different from video_clock if frame fifos are used)
double video_current_pts_drift; ///< video_current_pts - time (av_gettime) at which we updated video_current_pts - used to have running video pts double video_current_pts_drift; // video_current_pts - time (av_gettime) at which we updated video_current_pts - used to have running video pts
int64_t video_current_pos; ///< current displayed file pos int64_t video_current_pos; // current displayed file pos
VideoPicture pictq[VIDEO_PICTURE_QUEUE_SIZE]; VideoPicture pictq[VIDEO_PICTURE_QUEUE_SIZE];
int pictq_size, pictq_rindex, pictq_windex; int pictq_size, pictq_rindex, pictq_windex;
SDL_mutex *pictq_mutex; SDL_mutex *pictq_mutex;
...@@ -230,8 +230,8 @@ typedef struct VideoState { ...@@ -230,8 +230,8 @@ typedef struct VideoState {
int step; int step;
#if CONFIG_AVFILTER #if CONFIG_AVFILTER
AVFilterContext *in_video_filter; ///< the first filter in the video chain AVFilterContext *in_video_filter; // the first filter in the video chain
AVFilterContext *out_video_filter; ///< the last filter in the video chain AVFilterContext *out_video_filter; // the last filter in the video chain
int use_dr1; int use_dr1;
FrameBuffer *buffer_pool; FrameBuffer *buffer_pool;
#endif #endif
......
...@@ -97,5 +97,8 @@ ...@@ -97,5 +97,8 @@
#ifndef FF_API_AVCODEC_RESAMPLE #ifndef FF_API_AVCODEC_RESAMPLE
#define FF_API_AVCODEC_RESAMPLE (LIBAVCODEC_VERSION_MAJOR < 55) #define FF_API_AVCODEC_RESAMPLE (LIBAVCODEC_VERSION_MAJOR < 55)
#endif #endif
#ifndef FF_API_LIBMPEG2
#define FF_API_LIBMPEG2 (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#endif /* AVCODEC_VERSION_H */ #endif /* AVCODEC_VERSION_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment