[FFmpeg-devel] [PATCH] libavfilter-soc: make scale algorithm configurable

Stefano Sabatini stefano.sabatini-lala
Sun Feb 22 19:32:19 CET 2009


On date Tuesday 2009-02-17 01:40:47 +0100, Stefano Sabatini encoded:
[...]
> New round, no hurry to review it since I want to think something more
> about it.

Patches cleaned-up, some bug fixed, choosen a better name for
AVFilterGraph::sws_opts (now is scale_sws_opts).

Summary:
* vf-scale-use-getcached-ctx.patch
  Use sws_getCacehdContext() in config_props, the context is alloced
  in the first place in init(), while the srcSlice h/w, dst h/w are
  set in config_props.

  This allows to avoid to create a context just to store the
  sws_flags.

* vf-scale-cosmetics.patch
  Reindent + minor cosmetics.

* vf-scale-set-scale-sws-opts.patch

  Implement the sws-opts parsing, in particular parse the sws_flags
  option in the sws_opts eventually provided in the args (mmh, maybe
  this should be split).

  The sws_flags is set in the context, this value is re-set in
  config_props() when sws_getCachedContext() is used to create the new
  sws context with the srcSlice h/w, dst h/w parameters.

* filtergraph-scale-sws-opts.patch
  Implement the scale_sws_opts in the graph, the scale_sws_opts will
  be appended to the args to pass to the auto-inserted scale filters.

* ffmpeg-send-scale-sws-opts.patch
  Make possible to set in ffmpeg the scale_sws_opts to use for the
  auto-inserted scale filters, and set the sws_flags CLI option in the
  filters graph.

  Fixes regressions test.

* ffplay-send-sws-flags.patch
  Set the scale_sws_opts value to use in the auto-inserted scale filters,
  setting it in the graph.

  IMO it should be possible for the user to set this value in some way
  similar to what ffmpeg does after the last patch, now it is
  currently hardcoded.

...

Regards.
-- 
FFmpeg = Free and Faboulous Murdering Problematic Egregious Glue
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf-scale-use-getcached-ctx.patch
Type: text/x-diff
Size: 1223 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090222/005195ca/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf-scale-cosmetics.patch
Type: text/x-diff
Size: 1177 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090222/005195ca/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf-scale-set-sws-opts.patch
Type: text/x-diff
Size: 1977 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090222/005195ca/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filtergraph-scale-sws-opts.patch
Type: text/x-diff
Size: 1838 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090222/005195ca/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-send-scale-sws-opts.patch
Type: text/x-diff
Size: 1306 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090222/005195ca/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffplay-send-scale-sws-opts.patch
Type: text/x-diff
Size: 504 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090222/005195ca/attachment-0005.patch>



More information about the ffmpeg-devel mailing list