diff options
author | Mans Rullgard <mans@mansr.com> | 2011-12-18 20:41:42 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-12-18 22:14:33 +0000 |
commit | 8400b126acb153329c418433c377d96afd1d1e02 (patch) | |
tree | f793e22dc029484f1105e2c80448195364f22542 /libavcodec/avcodec.h | |
parent | bc78ceec2be6613c265387017221c7ceda15aa7d (diff) | |
download | ffmpeg-8400b126acb153329c418433c377d96afd1d1e02.tar.gz |
avcodec: deprecate AVFrame.age
This was intended as an optimisation for skipped blocks in MPEG2
P-frames and never used elsewhere. Removing this "optimisation"
speeds up MPEG2 decoding by 1-2% (ARM Cortex-A9).
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 1715bbb32b..7f4651b80f 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1004,13 +1004,12 @@ typedef struct AVFrame { */ int quality; +#if FF_API_AVFRAME_AGE /** - * buffer age (1->was last buffer and dint change, 2->..., ...). - * Set to INT_MAX if the buffer has not been used yet. - * - encoding: unused - * - decoding: MUST be set by get_buffer() for video. + * @deprecated unused */ - int age; + attribute_deprecated int age; +#endif /** * is this picture used as reference |