[FFmpeg-devel] [PATCH] avcodec/tiff: Multi-page support

Moritz Barsnick barsnick at gmx.net
Fri Mar 22 18:34:51 EET 2019


Hi Nich,

On Fri, Mar 22, 2019 at 17:55:56 +0200, velocityra at gmail.com wrote:
>  libavcodec/tiff.c | 25 ++++++++++++++++++++++++-
>  1 file changed, 24 insertions(+), 1 deletion(-)
[...]
>  static const AVOption tiff_options[] = {
>      { "subimage", "decode subimage instead if available", OFFSET(get_subimage), AV_OPT_TYPE_BOOL, {.i64=0},  0, 1, AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM },
> +    { "page", "page number of multi-page image to decode (starting from 1)", OFFSET(get_page), AV_OPT_TYPE_INT, {.i64=0}, 0, UINT16_MAX, AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM },
>      { NULL },
>  };

I was about to write "could you please also update the documentation",
but just realized that the tiff encoder isn't documented. :-P

Cheers,
Moritz


More information about the ffmpeg-devel mailing list