mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/avfilter: Reorder structure fields
Move related fields closer together and try to plug holes. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
a76592440e
commit
71c7e9c5f4
|
@ -441,6 +441,13 @@ struct AVFilterContext {
|
||||||
*/
|
*/
|
||||||
int thread_type;
|
int thread_type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Max number of threads allowed in this filter instance.
|
||||||
|
* If <= 0, its value is ignored.
|
||||||
|
* Overrides global number of threads set per filter graph.
|
||||||
|
*/
|
||||||
|
int nb_threads;
|
||||||
|
|
||||||
struct AVFilterCommand *command_queue;
|
struct AVFilterCommand *command_queue;
|
||||||
|
|
||||||
char *enable_str; ///< enable expression string
|
char *enable_str; ///< enable expression string
|
||||||
|
@ -461,13 +468,6 @@ struct AVFilterContext {
|
||||||
*/
|
*/
|
||||||
AVBufferRef *hw_device_ctx;
|
AVBufferRef *hw_device_ctx;
|
||||||
|
|
||||||
/**
|
|
||||||
* Max number of threads allowed in this filter instance.
|
|
||||||
* If <= 0, its value is ignored.
|
|
||||||
* Overrides global number of threads set per filter graph.
|
|
||||||
*/
|
|
||||||
int nb_threads;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ready status of the filter.
|
* Ready status of the filter.
|
||||||
* A non-0 value means that the filter needs activating;
|
* A non-0 value means that the filter needs activating;
|
||||||
|
@ -548,26 +548,12 @@ struct AVFilterLink {
|
||||||
|
|
||||||
enum AVMediaType type; ///< filter media type
|
enum AVMediaType type; ///< filter media type
|
||||||
|
|
||||||
|
int format; ///< agreed upon media format
|
||||||
|
|
||||||
/* These parameters apply only to video */
|
/* These parameters apply only to video */
|
||||||
int w; ///< agreed upon image width
|
int w; ///< agreed upon image width
|
||||||
int h; ///< agreed upon image height
|
int h; ///< agreed upon image height
|
||||||
AVRational sample_aspect_ratio; ///< agreed upon sample aspect ratio
|
AVRational sample_aspect_ratio; ///< agreed upon sample aspect ratio
|
||||||
/* These parameters apply only to audio */
|
|
||||||
int sample_rate; ///< samples per second
|
|
||||||
|
|
||||||
int format; ///< agreed upon media format
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Define the time base used by the PTS of the frames/samples
|
|
||||||
* which will pass through this link.
|
|
||||||
* During the configuration stage, each filter is supposed to
|
|
||||||
* change only the output timebase, while the timebase of the
|
|
||||||
* input link is assumed to be an unchangeable property.
|
|
||||||
*/
|
|
||||||
AVRational time_base;
|
|
||||||
|
|
||||||
AVChannelLayout ch_layout; ///< channel layout of current buffer (see libavutil/channel_layout.h)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For non-YUV links, these are respectively set to fallback values (as
|
* For non-YUV links, these are respectively set to fallback values (as
|
||||||
* appropriate for that colorspace).
|
* appropriate for that colorspace).
|
||||||
|
@ -578,6 +564,19 @@ struct AVFilterLink {
|
||||||
enum AVColorSpace colorspace; ///< agreed upon YUV color space
|
enum AVColorSpace colorspace; ///< agreed upon YUV color space
|
||||||
enum AVColorRange color_range; ///< agreed upon YUV color range
|
enum AVColorRange color_range; ///< agreed upon YUV color range
|
||||||
|
|
||||||
|
/* These parameters apply only to audio */
|
||||||
|
int sample_rate; ///< samples per second
|
||||||
|
AVChannelLayout ch_layout; ///< channel layout of current buffer (see libavutil/channel_layout.h)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define the time base used by the PTS of the frames/samples
|
||||||
|
* which will pass through this link.
|
||||||
|
* During the configuration stage, each filter is supposed to
|
||||||
|
* change only the output timebase, while the timebase of the
|
||||||
|
* input link is assumed to be an unchangeable property.
|
||||||
|
*/
|
||||||
|
AVRational time_base;
|
||||||
|
|
||||||
/*****************************************************************
|
/*****************************************************************
|
||||||
* All fields below this line are not part of the public API. They
|
* All fields below this line are not part of the public API. They
|
||||||
* may not be used outside of libavfilter and can be changed and
|
* may not be used outside of libavfilter and can be changed and
|
||||||
|
|
Loading…
Reference in New Issue