|
|
@@ -33,7 +33,7 @@ static const char *sws_context_to_name(void *ptr) |
|
|
|
#define DEFAULT 0 |
|
|
|
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
|
|
|
|
|
|
|
static const AVOption options[] = { |
|
|
|
static const AVOption swscale_options[] = { |
|
|
|
{ "sws_flags", "scaler flags", OFFSET(flags), AV_OPT_TYPE_FLAGS, { .i64 = DEFAULT }, 0, UINT_MAX, VE, "sws_flags" }, |
|
|
|
{ "fast_bilinear", "fast bilinear", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_FAST_BILINEAR }, INT_MIN, INT_MAX, VE, "sws_flags" }, |
|
|
|
{ "bilinear", "bilinear", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_BILINEAR }, INT_MIN, INT_MAX, VE, "sws_flags" }, |
|
|
@@ -75,7 +75,7 @@ static const AVOption options[] = { |
|
|
|
const AVClass sws_context_class = { |
|
|
|
.class_name = "SWScaler", |
|
|
|
.item_name = sws_context_to_name, |
|
|
|
.option = options, |
|
|
|
.option = swscale_options, |
|
|
|
.category = AV_CLASS_CATEGORY_SWSCALER, |
|
|
|
.version = LIBAVUTIL_VERSION_INT, |
|
|
|
}; |
|
|
|