1
mirror of https://github.com/mpv-player/mpv synced 2024-09-12 23:45:53 +02:00
Commit Graph

10 Commits

Author SHA1 Message Date
Rudolf Polzer
64ac38c4d3 libmpcodecs: move vf_scale.c swscale helper functions to sws_utils.c
Extracted/rebased by wm4 from commits 93978f17b76d..13211ef5fc20.
Actual mp_image_swscale is added in a later commit.
2012-10-24 21:55:43 +02:00
wm4
f3bf5ded4a image_writer: make JPG default and increase quality (for screenshots)
The assumption is that JPG screenshots are more useful in general.
Lossless screenshots made from lossy videos are just a waste of space.

Increase JPEG quality a bit. There's a tradeoff between quality and
size, and since JPEG is the default now, attempt to balance the
JPEG settings to provide sane defaults for general use cases.
2012-08-16 00:01:19 +02:00
wm4
97855746f1 image_writer: rename "filetype" option to "format"
Although slightly less precise, this sounds less clunky.

This change also causes the --screenshot-filetype option to be renamed
to --screenshot-format.
2012-08-06 19:05:32 +02:00
wm4
927c58854f image_writer: support all JPEG specific options vo_jpeg supports
Most of these are useless or probably even dangerous. Support them
anyway, because it's easy, and we want to replace vo_jpeg without any
disadvantages.
2012-08-06 17:51:04 +02:00
wm4
0a0925be82 image_writer: add TGA image format
For getting rid of vo_tga.

This makes use of the libavcodec TGA encoder.
2012-08-06 17:50:31 +02:00
wm4
c74afab393 image_writer: add some PNM family image formats
While the PNM formats are not that useful, supporting them helps
getting rid of vo_pnm.

This makes use of the libavcodec PNM encoder.

Compared to vo_pnm, at least PNM ASCII mode is not supported. It doesn't
look like libavcodec supports this mode for encoding.
2012-08-06 17:49:37 +02:00
wm4
5f57d27656 image_writer: add option parsing
image_writer now provides its own option parsing, and screenshot.c and
the mplayer frontend use it.
2012-08-06 17:48:30 +02:00
wm4
4de99d9c0c image_writer: allow specifying pixel formats for image writers 2012-08-06 17:47:28 +02:00
wm4
e7da13ed86 image_writer: never pass anamorphic images to image writer 2012-08-06 17:47:10 +02:00
wm4
39593c138d screenshot: move image writer code into new file image_writer.c 2012-08-06 17:46:42 +02:00