Víctor Manuel Jáquez Leal
68b9ab7818
encoder: h264,h265,mpeg2,vp8: use gst_util_uint64_scale() for bitrate
...
Use gst_util_uint64_scale() to calculate bitrate instead of normal arithmetic
to avoid overflows, underflows and loss of precision.
https://bugzilla.gnome.org/show_bug.cgi?id=768458
2016-08-10 12:20:48 +02:00
Víctor Manuel Jáquez Leal
4259d1aec7
vaapiencode: h264,h265: validate fps numerator
...
Validate that fps numerator is non-zero so it can be used to calculate
the duration of the B frame.
Also it gst_util_uint64_scale() is used instead of normal arithmetic in
order to aviod overflows, underflows and loss of precision.
https://bugzilla.gnome.org/show_bug.cgi?id=768458
2016-08-10 12:20:48 +02:00
Víctor Manuel Jáquez Leal
3efc2f70b7
encoder: h265: fix code-style
2016-07-22 17:15:38 +02:00
Sreerenj Balachandran
018ea8b2fc
encoder: h265: Enable cu_qp_delta_enabled_flag for CBR
...
It seems driver requires enablement of cu_qp_delta_enabled_flag
for modifying QP values to controll the CBR mode bitrate.
https://bugzilla.gnome.org/show_bug.cgi?id=749852
2016-04-27 17:10:26 +03:00
Sreerenj Balachandran
7ddc7ea0bc
encoder: h265: Add CBR Encoding support
...
https://bugzilla.gnome.org/show_bug.cgi?id=749852
2016-04-27 17:06:09 +03:00
Víctor Manuel Jáquez Leal
d76d78cc8e
libs: fix compiler warnings
...
After setting the release flags, the compiler warns about a couple
initialized variables.
Also marked a couple of set variables as unused, because they are only
used for assertion.
Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
2016-02-03 20:22:46 +01:00
Víctor Manuel Jáquez Leal
28d01c0857
libs: small code style fixes
...
This a set of small code style fixes detected as-is by gst-indent.
Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
2016-02-03 12:45:30 +01:00
Sreerenj Balachandran
6b88777627
encoder:h265: Fix the check for packed-header support
...
Use VA_ENC_PACKED_HEADER_* definition for checking.
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
2015-07-02 21:57:38 +03:00
Sreerenj Balachandran
619058b5b7
encoder: hevc: Fix the size over-flow for encoded buffer.
...
The approximation of 6 times compression ratio migh not
work in all cases. Especially when enabling I frames.
Provide large enough size for coded-buffer creation.
2015-05-28 10:52:48 +03:00
Sreerenj Balachandran
55775c6203
encoder: hevc: fix bug in multi slice encoding.
...
This is a work-around for satisfying the VA-Intel driver.
The driver only support slices begin from CTU row start address.
Multi-Slice encoding also requires a fix in va-intel-driver:
http://lists.freedesktop.org/archives/libva/2015-May/003351.html
https://bugzilla.gnome.org/show_bug.cgi?id=749854
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
2015-05-28 05:43:49 +03:00
Sreerenj Balachandran
e623651d69
HEVC_Encode: Add HEVC(h265) encoder to core libgstvaapi
...
https://bugzilla.gnome.org/show_bug.cgi?id=748874
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
2015-05-25 11:42:33 +03:00