Rémi Denis-Courmont and Janne Grunau
c80a816142
h263dec: call get_format() on resolution changes
...
Fail safe if the pixel format changes.
2014-10-13 16:05:04 +02:00
Rémi Denis-Courmont and Janne Grunau
1f29e5d7a2
h263dec: call get_format after setting resolution and profile
...
Bug-Id: 541
2014-10-13 16:04:53 +02:00
Rémi Denis-Courmont and Anton Khirnov
153fadc390
ff_get_format: fix infinite loop
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-10-06 18:39:45 +00:00
Rémi Denis-Courmont and Anton Khirnov
8de1d67967
avconv_vdpau: update to new VDPAU interface
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-10-06 06:20:40 +00:00
Rémi Denis-Courmont and Anton Khirnov
bef067f88c
vdpau: check video surface and decoder capabilities
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-10-06 06:20:40 +00:00
Rémi Denis-Courmont and Anton Khirnov
e3e158e81f
vdpau: add av_vdpau_bind_context()
...
This function provides an explicit VDPAU device and VDPAU driver to
libavcodec, so that the application is relieved from codec specifics
and VdpDevice life cycle management.
A stub flags parameter is added for future extension. For instance, it
could be used to ignore codec level capabilities (if someone feels
dangerous).
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-10-06 06:20:40 +00:00
Rémi Denis-Courmont and Anton Khirnov
502cde409c
vdpau: force reinitialization when output resolution changes
...
This is necessary to recreate the decoder with the correct parameters,
as not all codecs invoke get_format() in this case.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-10-06 06:18:56 +00:00
Rémi Denis-Courmont and Anton Khirnov
89ac99ba5f
vdpau: pass codec-specific parameters from hwaccel
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-10-05 10:41:31 +00:00
Rémi Denis-Courmont and Anton Khirnov
ce083282f0
vdpau: common support for managing the VdpDecoder in avcodec
...
Using the not so new init and uninit callbacks, avcodec can now take
care of creating and destroying the VDPAU decoder instance.
The application is still responsible for creating the VDPAU device
and allocating video surfaces - this is necessary to keep video
surfaces on the GPU all the way to the output. But the application
will no longer needs to care about any codec-specific aspects.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-10-05 10:17:02 +00:00
Rémi Denis-Courmont and Anton Khirnov
fcc1022611
vdpau: factor out common end-of-frame handling
...
Also add error handling.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-10-05 10:13:44 +00:00
Rémi Denis-Courmont and Anton Khirnov
319424d25c
vdpau: add helper for VDPAU to libav error codes conversion
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-10-05 10:08:53 +00:00
Rémi Denis-Courmont and Luca Barbato
4e03b2097c
mpeg12: Always invoke the get_format() callback
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2014-09-26 21:28:37 +02:00
Rémi Denis-Courmont and Luca Barbato
ce42316321
h264: Always invoke the get_format() callback
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2014-09-26 21:28:37 +02:00
Rémi Denis-Courmont and Luca Barbato
1c80c9d7ef
hwaccel: Call ->get_format again if hwaccel init fails
...
This allows the application to fall back on another hwaccel or,
more likely, software decoding.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2014-09-26 21:28:36 +02:00
Rémi Denis-Courmont and Martin Storsjö
6ee1cb5740
libavformat: use MSG_NOSIGNAL when applicable
...
If the remote end of a connection oriented socket hangs up, generating
an EPIPE error is preferable over an unhandled SIGPIPE signal.
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-08-25 10:49:14 +03:00
Rémi Denis-Courmont and Vittorio Giovara
654c7446a8
vc1dec: improve hwaccel #ifdefs
2014-03-31 17:52:42 +02:00
Rémi Denis-Courmont and Vittorio Giovara
3325911815
h263: improve hwaccel #ifdefs
2014-03-31 17:52:38 +02:00
Rémi Denis-Courmont and Janne Grunau
eeaf4f3b87
av_vdpau_get_profile: mask out H.264 intra profile flag
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2014-03-04 22:48:55 +01:00
Rémi Denis-Courmont and Martin Storsjö
9d5ec50ead
ff_socket: put out-of-line and fallback to fcntl() for close-on-exec
...
This supports non-Linux systems (SOCK_CLOEXEC is non-standard) and
older Linux kernels to the extent possible.
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-08-09 11:26:50 +03:00
Rémi Denis-Courmont and Anton Khirnov
51eb213d00
libavformat: use avpriv_open()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-07 21:22:03 +02:00
Rémi Denis-Courmont and Anton Khirnov
71bf6b41d9
libavdevice: use avpriv_open()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-07 21:16:05 +02:00
Rémi Denis-Courmont and Anton Khirnov
fee9db1fdf
libavcodec: use avpriv_open()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-07 21:13:12 +02:00
Rémi Denis-Courmont and Anton Khirnov
880391ed2d
libavutil: use avpriv_open()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-07 21:12:28 +02:00
Rémi Denis-Courmont and Anton Khirnov
869b04e891
libavutil: add avpriv_open() to open files with close-on-exec flag
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-07 21:12:20 +02:00
Rémi Denis-Courmont and Anton Khirnov
f824535a4a
vdpau: deprecate bitstream buffers within the hardware context
...
The bitstream buffers are now private and freed by libavcodec. For
backward compatibility, the hold bitstream buffer pointer is left NULL
(applications were supposed to av_freep() it).
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-05 11:21:36 +02:00
Rémi Denis-Courmont and Anton Khirnov
2852740e23
vdpau: store picture data in picture's rather than codec's context
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-05 11:20:41 +02:00
Rémi Denis-Courmont and Anton Khirnov
549294fbbe
vdpau: deprecate VDPAU codec capability
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-05 11:20:32 +02:00
Rémi Denis-Courmont and Anton Khirnov
a0ad5d0113
vdpau: deprecate old codec-specific pixel formats
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-05 11:16:54 +02:00
Rémi Denis-Courmont and Anton Khirnov
578ea75a9e
vdpau: remove old-style decoders
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-08-05 11:15:49 +02:00
Rémi Denis-Courmont and Diego Biurrun
93a51984a2
mpeg12: Ignore slice threading if hwaccel is active
...
Slice threading does not work with hardware acceleration, as decoding
is per-picture. This fixes Bugzilla #542 .
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2013-07-25 19:43:32 +02:00
Rémi Denis-Courmont and Luca Barbato
78bc4d69eb
hwaccel: do not offer unsupported pixel formats
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2013-01-27 07:03:22 +01:00
Rémi Denis-Courmont and Luca Barbato
ec0e92002b
vdpau: add missing pixel format for H.264
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2013-01-27 07:03:22 +01:00
Rémi Denis-Courmont and Diego Biurrun
171f1446f0
vdpau: Remove av_unused attribute from function declaration
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2013-01-14 21:56:55 +01:00
Rémi Denis-Courmont and Diego Biurrun
7752532789
vdpau: Add VC-1 decoding via hwaccel infrastructure
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2013-01-13 14:54:18 +01:00
Rémi Denis-Courmont and Diego Biurrun
51b56a0716
vdpau: Add H.264 decoding via hwaccel infrastructure
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2013-01-13 14:54:08 +01:00
Rémi Denis-Courmont and Diego Biurrun
200e8ac920
vdpau: Add MPEG-4 decoding via hwaccel infrastructure
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2013-01-13 14:54:02 +01:00
Rémi Denis-Courmont and Diego Biurrun
aaf9d0e8f3
vdpau: Add MPEG-1/2 decoding via hwaccel infrastructure
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2013-01-13 14:53:47 +01:00
Rémi Denis-Courmont and Diego Biurrun
44e065d56c
vdpau: Add context and common helpers for hwaccel support
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2013-01-13 14:41:27 +01:00
Rémi Denis-Courmont and Diego Biurrun
169fb94f0f
pixfmt: add picture format for VDPAU
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2013-01-12 12:00:49 +01:00