History

lavc: remove FF_API_RATE_EMU cruft

Anton Khirnov committed 15 years ago

Commit 694c1421 parent e7021c03 files · +0 −16Browse files

Unified · Split

3 files
  1. libavcodec/avcodec.h +0 −10
  2. libavcodec/options.c +0 −3
  3. libavcodec/version.h +0 −3
libavcodec/avcodec.h+0−10
@@ -1203,16 +1203,6 @@ typedef struct AVCodecContext { · 1202 unmodified lines
1203 */1203 */
1204 enum PixelFormat pix_fmt;1204 enum PixelFormat pix_fmt;
1205 1205
1206#if FF_API_RATE_EMU
1207 /**
1208 * Frame rate emulation. If not zero, the lower layer (i.e. format handler)
1209 * has to read frames at native frame rate.
1210 * - encoding: Set by user.
1211 * - decoding: unused
1212 */
1213 attribute_deprecated int rate_emu;
1214#endif
1215
1216 /**1206 /**
1217 * If non NULL, 'draw_horiz_band' is called by the libavcodec1207 * If non NULL, 'draw_horiz_band' is called by the libavcodec
1218 * decoder to draw a horizontal band. It improves cache usage. Not1208 * decoder to draw a horizontal band. It improves cache usage. Not
libavcodec/options.c+0−3
@@ -105,9 +105,6 @@ static const AVOption options[]={ · 104 unmodified lines
105{"extradata_size", NULL, OFFSET(extradata_size), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},105{"extradata_size", NULL, OFFSET(extradata_size), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
106{"time_base", NULL, OFFSET(time_base), FF_OPT_TYPE_RATIONAL, DEFAULT, INT_MIN, INT_MAX},106{"time_base", NULL, OFFSET(time_base), FF_OPT_TYPE_RATIONAL, DEFAULT, INT_MIN, INT_MAX},
107{"g", "set the group of picture size", OFFSET(gop_size), FF_OPT_TYPE_INT, 12, INT_MIN, INT_MAX, V|E},107{"g", "set the group of picture size", OFFSET(gop_size), FF_OPT_TYPE_INT, 12, INT_MIN, INT_MAX, V|E},
108#if FF_API_RATE_EMU
109{"rate_emu", "frame rate emulation", OFFSET(rate_emu), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
110#endif
111{"ar", "set audio sampling rate (in Hz)", OFFSET(sample_rate), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},108{"ar", "set audio sampling rate (in Hz)", OFFSET(sample_rate), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
112{"ac", "set number of audio channels", OFFSET(channels), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},109{"ac", "set number of audio channels", OFFSET(channels), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
113{"cutoff", "set cutoff bandwidth", OFFSET(cutoff), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, A|E},110{"cutoff", "set cutoff bandwidth", OFFSET(cutoff), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, A|E},
libavcodec/version.h+0−3
@@ -47,9 +47,6 @@ · 46 unmodified lines
47#ifndef FF_API_OLD_AUDIOCONVERT47#ifndef FF_API_OLD_AUDIOCONVERT
48#define FF_API_OLD_AUDIOCONVERT (LIBAVCODEC_VERSION_MAJOR < 54)48#define FF_API_OLD_AUDIOCONVERT (LIBAVCODEC_VERSION_MAJOR < 54)
49#endif49#endif
50#ifndef FF_API_RATE_EMU
51#define FF_API_RATE_EMU (LIBAVCODEC_VERSION_MAJOR < 53)
52#endif
53#ifndef FF_API_MB_Q50#ifndef FF_API_MB_Q
54#define FF_API_MB_Q (LIBAVCODEC_VERSION_MAJOR < 53)51#define FF_API_MB_Q (LIBAVCODEC_VERSION_MAJOR < 53)
55#endif52#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t