profile/ivi/gstreamer-vaapi.git
11 years agoFix seek issue 2.0 accepted/2.0/20130422.163146 submit/2.0/20130420.083526
Zhao Halley [Sat, 20 Apr 2013 05:12:41 +0000 (13:12 +0800)]
Fix seek issue

https://bugs.tizen.org/jira/browse/TIVI-708

[Reason]
When decoder runs faster than downlink elements (postprocessing and
sink), many video surface are cached in pools (queue element for example).
Then decoding will fail because of no video surface available.

During seek, data flows much fater to position to dedicted frame.
It is easier to run into to above failure.

[Resolution]
1. A condition wait is added to decode func, it waits up until a surface is available.
   It usually happens when a surface is recycled after use (renders to Window/Pixmap).
2. The start of seek event (GST_EVENT_FLUSH_START) will also wake up the above wait,
   even if there is still no surface available.
   The end of seek event (GST_EVENT_FLUSH_STOP) will disable such special case.

to assist the above mechanism
3. The resumed decode func trigger retry on the previous video data.

by the way,
1. The previous solution bases on a timeout wait, it isn't
   reliable during quick seek.
2. Gst event and status change is added in GST_INFO to ease debug.
   If you still meet seek issue, please send us the log wiht
   "export GST_DEBUG=vaapidecode:3"

11 years agoFix memory leak when doing YUV data upload accepted/2.0/20130419.171527 submit/2.0/20130419.104529
Zhao Halley [Fri, 19 Apr 2013 08:10:22 +0000 (16:10 +0800)]
Fix memory leak when doing YUV data upload

Indirect set surface to video buffer will leak memory,
    - when video buffer is destroy, the surface is not returned back to surface pool.
    - gst_vaapi_video_buffer_set_surface_from_pool() is correct,
    - while the following is incorrect:
        surface = gst_vaapi_video_pool_get_object(priv->surfaces);
        gst_vaapi_video_buffer_set_surface(vbuffer, surface);

11 years agodo more check in _set_caps of vaapisink when _buffer_alloc is not called accepted/2.0/20130418.160353 submit/2.0/20130418.115800 submit/2.0/20130418.115824
Zhao Halley [Thu, 18 Apr 2013 11:49:42 +0000 (19:49 +0800)]
do more check in _set_caps of vaapisink when _buffer_alloc is not called

    in webkit video ogg stream, _buffer_alloc isn't called,
    do more check in _set_caps to initialized image/surface pool
    for uploading raw yuv frame to vaSurface

11 years agovaapiupload: reset direct-rendering to zero when changing caps. accepted/2.0/20130417.170005 submit/2.0/20130417.091434
Gwenole Beauchesne [Tue, 20 Nov 2012 17:21:41 +0000 (18:21 +0100)]
vaapiupload: reset direct-rendering to zero when changing caps.

Make sure to reset direct-rendering flag to zero when caps are changed,
and only derive it to one when the next checks succeed.

11 years agovaapiupload: fix sink caps to report the supported set of YUV caps.
Gwenole Beauchesne [Tue, 20 Nov 2012 13:42:24 +0000 (14:42 +0100)]
vaapiupload: fix sink caps to report the supported set of YUV caps.

Try to allocate the GstVaapiUploader helper object prior to listing the
supported image formats. Otherwise, only a single generic caps is output
with no particular pixel format referenced in there.

11 years agovaapiupload: use new GstVaapiUploader helper.
Zhao Halley [Tue, 20 Nov 2012 13:32:40 +0000 (14:32 +0100)]
vaapiupload: use new GstVaapiUploader helper.

Use GstVaapiUploader helper that automatically handles direct rendering
mode, thus making the "direct-rendering" property obsolete and hence it
is now removed.

The "direct-rendering" level 2, i.e. exposing VA surface buffers, was never
really well supported and it could actually trigger degraded performance.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agovaapisink: compute and expose the supported set of YUV caps.
Gwenole Beauchesne [Tue, 20 Nov 2012 14:50:56 +0000 (15:50 +0100)]
vaapisink: compute and expose the supported set of YUV caps.

Make vaapisink expose only the set of supported caps for raw YUV buffers.

Add gst_vaapi_uploader_get_caps() helper function to determine the set
of supported YUV caps as source (for images). This function actually
tries to zero and upload each image to a 64x64 test surface. Of course,
this relies on VA drivers to not claim success if vaPutImage() is not
correctly supported.

11 years agovaapisink: add support for raw YUV buffers.
Gwenole Beauchesne [Tue, 20 Nov 2012 13:28:55 +0000 (14:28 +0100)]
vaapisink: add support for raw YUV buffers.

Add new GstVaapiUploader helper to upload raw YUV buffers to VA surfaces.
It is up to the caller to negotiate source caps (for images) and output
caps (for surfaces). gst_vaapi_uploader_has_direct_rendering() is available
to help decide between the creation of a GstVaapiVideoBuffer or a regular
GstBuffer on sink pads.

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agodisable jpeg/mpeg4 decoder in spec file 27/3327/1 accepted/2.0/20130415.172154 submit/2.0/20130415.084900
Zhao Halley [Mon, 15 Apr 2013 01:43:16 +0000 (09:43 +0800)]
disable jpeg/mpeg4 decoder in spec file

11 years agoAdd configure options for jpeg/mpeg4 26/3326/1
Zhao Halley [Mon, 15 Apr 2013 01:16:39 +0000 (09:16 +0800)]
Add configure options for jpeg/mpeg4

some platforms may or may not support jpeg/mpeg4 decoder,
add configure options for these feature

11 years agoupdate spec/changes file to 0.4.0.02.f9604f48 accepted/2.0/20130321.180609 submit/2.0/20130321.072145
Zhao Halley [Thu, 21 Mar 2013 07:07:58 +0000 (15:07 +0800)]
update spec/changes file to 0.4.0.02.f9604f48

11 years agoimplemented Tizen customized message 'prepare-xid' for webkit-efl
Zhao Halley [Mon, 18 Mar 2013 09:14:48 +0000 (17:14 +0800)]
implemented Tizen customized message 'prepare-xid' for webkit-efl

 - it is similar to 'prepare-xwindow-id' message
 - with additional information required from app side (for pixmap creation):
   video-width, video-height, display-width, display-height

11 years agosupport renders to Pixmap for vaapisink
Zhao Halley [Mon, 18 Mar 2013 09:10:31 +0000 (17:10 +0800)]
support renders to Pixmap for vaapisink

 - supports render to Pixmap for vaapisink
 - supports multiple Pixmap with an array in vaapisink
 - add 'is-pixmap' attribute to vaapisink
 - reset sink->window when _stop

11 years agoadd packaging/manifest files
Zhao Halley [Fri, 17 Aug 2012 02:00:08 +0000 (10:00 +0800)]
add packaging/manifest files

11 years agoadd packing.log to track rebase
Zhao Halley [Mon, 18 Mar 2013 08:15:54 +0000 (16:15 +0800)]
add packing.log to track rebase

11 years agoremove codecparsers submodule check in autogen.sh
Zhao Halley [Mon, 18 Mar 2013 09:00:23 +0000 (17:00 +0800)]
remove codecparsers submodule check in autogen.sh

11 years agoinclude ext/codecparsers instead of git submodule
Zhao Halley [Thu, 21 Mar 2013 06:22:12 +0000 (14:22 +0800)]
include ext/codecparsers instead of git submodule

    this part can't be handled by git patch:
    1. git rm .gitmodules # or update it to remove corresponding module
    2. # Delete the relevant section from .git/config
    3. git rm -r --cached ext/codecparsers # (no trailing slash)
    4. rm -rf ext/codecparsers/.git
    4. git add ext/codecparsers
    5. git commit -a -m "include ext/codecparsers instead of git submodule"

11 years agovaapidownload: fix frame rate to avoid assert issue in set_caps
Wind Yuan [Thu, 14 Mar 2013 05:45:20 +0000 (13:45 +0800)]
vaapidownload: fix frame rate to avoid assert issue in set_caps

11 years agovaapidownload: fix src caps format error
Wind Yuan [Wed, 13 Mar 2013 09:44:52 +0000 (17:44 +0800)]
vaapidownload: fix src caps format error

11 years agompeg2: fix set quant_table to driver error
zhongcong [Thu, 14 Mar 2013 09:31:00 +0000 (17:31 +0800)]
mpeg2: fix set quant_table to driver error

11 years agosupport H264 monochroma stream decoding
Li Xiaowei [Wed, 30 Jan 2013 06:21:36 +0000 (14:21 +0800)]
support H264 monochroma stream decoding

one workaround to help YUV400 pass the chroma
type check, actually the render surface is still set to
YUV420 mandatorily and the UV components are ignored.

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
11 years agoh264: support process for gaps in frame_num
Wind Yuan [Thu, 28 Feb 2013 07:26:36 +0000 (15:26 +0800)]
h264: support process for gaps in frame_num

Follow 8.2.5.2 when frame_num is not equeal to
PreRefFrameNum and is not equal to
(PreRefFrameNum+1)%MaxFrameNum, there would be
"non-existing" picture "used for short-term reference".

11 years agoh264: remove reference if picture frame_num is same
Wind Yuan [Thu, 28 Feb 2013 08:06:13 +0000 (16:06 +0800)]
h264: remove reference if picture frame_num is same

11 years agoh264: fix reference list count less than num_ref
Wind Yuan [Wed, 30 Jan 2013 05:23:03 +0000 (13:23 +0800)]
h264: fix reference list count less than num_ref

Sometimes RefPicListX_count may be less than num_ref_idx_lX.
There's not enough reference pictures in dpb.

11 years agoh264: clear buffers on GST_EVENT_FLUSH_STOP
Wind Yuan [Fri, 30 Nov 2012 05:09:40 +0000 (13:09 +0800)]
h264: clear buffers on GST_EVENT_FLUSH_STOP

Change-Id: I4a9978a50bc6f6011f3ca037b9b9e8b295369b86

11 years agompeg2: clear buffers and PTSGenerator on GST_EVENT_FLUSH_STOP
Wind Yuan [Wed, 5 Dec 2012 07:04:25 +0000 (15:04 +0800)]
mpeg2: clear buffers and PTSGenerator on GST_EVENT_FLUSH_STOP

Change-Id: I7f7561805f9efd1513d5f1a04308c2b39ce986c8

11 years agovaapidecode: support seek actions
Wind Yuan [Fri, 30 Nov 2012 05:06:10 +0000 (13:06 +0800)]
vaapidecode: support seek actions

vaapidecode need clear all decoder's buffers when
GST_EVENT_FLUSH_STOP/GST_EVENT_NEWSEGMENT happened

Change-Id: I83606f6b619c4501b43bf868bc92787b670fab88

11 years agocodecparsers: update to gst-vaapi-branch commit b8efe57.
Gwenole Beauchesne [Tue, 5 Feb 2013 13:03:39 +0000 (14:03 +0100)]
codecparsers: update to gst-vaapi-branch commit b8efe57.

b8efe57 mpeg2: add helpers to convert quantization matrices
f8c2672 mpeg2: store quantization matrices in zigzag-order

11 years agorate_control: compatible with old libva versions
Wind Yuan [Wed, 23 Jan 2013 02:31:30 +0000 (10:31 +0800)]
rate_control: compatible with old libva versions

11 years agovaapipostproc: warn when framerate failed to be parsed.
Zhong Cong [Wed, 16 Jan 2013 06:17:50 +0000 (14:17 +0800)]
vaapipostproc: warn when framerate failed to be parsed.

11 years agomodify the DEBUG function name "vaapi_encoder_dump_bytes" to "gst_vaapi_encoder_dump_...
Zhong Cong [Mon, 24 Dec 2012 06:28:45 +0000 (14:28 +0800)]
modify the DEBUG function name "vaapi_encoder_dump_bytes" to "gst_vaapi_encoder_dump_bytes",because only symbols with the gst-vaapi_* prefix will be exported

11 years agoencoders: h263, mpeg4 change bitrate attributes to unit kbps
Wind Yuan [Mon, 5 Nov 2012 07:34:24 +0000 (15:34 +0800)]
encoders: h263, mpeg4 change bitrate attributes to unit kbps

11 years agoh264encoder: implement bitrate control for CBR and VBR
Wind Yuan [Mon, 5 Nov 2012 07:22:28 +0000 (15:22 +0800)]
h264encoder: implement bitrate control for CBR and VBR

11 years agodecoder context: rate_control unset to GST_VAAPI_RATECONTROL_NONE
Wind Yuan [Mon, 12 Nov 2012 09:04:07 +0000 (17:04 +0800)]
decoder context: rate_control unset to GST_VAAPI_RATECONTROL_NONE

11 years agoh264encoder: add rate-control attribute
Wind Yuan [Wed, 14 Nov 2012 08:35:48 +0000 (16:35 +0800)]
h264encoder: add rate-control attribute

encoder create context with special rate-control config

11 years agovaapicontext: support rate-control attribute
Wind Yuan [Fri, 2 Nov 2012 08:55:13 +0000 (16:55 +0800)]
vaapicontext: support rate-control attribute

encoder need rate-control on context creation

11 years agoencoder: h264 support multiple slices
Wind Yuan [Thu, 1 Nov 2012 07:27:32 +0000 (15:27 +0800)]
encoder: h264 support multiple slices

11 years agoencoder: PVR only need seq paramerter set once
Wind Yuan [Thu, 18 Oct 2012 09:58:04 +0000 (17:58 +0800)]
encoder: PVR only need seq paramerter set once

11 years agoconfigure.ac: check old/new h264 encoder API
Wind Yuan [Tue, 25 Sep 2012 07:37:43 +0000 (15:37 +0800)]
configure.ac: check old/new h264 encoder API

11 years agoencoder: h264 compatible with old libva by macro HAVE_OLD_H264_ENCODER
Wind Yuan [Tue, 25 Sep 2012 05:31:51 +0000 (13:31 +0800)]
encoder: h264 compatible with old libva by macro HAVE_OLD_H264_ENCODER

11 years agoencoder: align formats to gstreamer code style
Wind Yuan [Fri, 21 Sep 2012 09:03:35 +0000 (17:03 +0800)]
encoder: align formats to gstreamer code style

11 years agoencoder: reduce function parameters and change variable names
Wind Yuan [Thu, 20 Sep 2012 06:41:53 +0000 (14:41 +0800)]
encoder: reduce function parameters and change variable names

11 years agoencoders: remove encoders image upload and simplify parts code
Wind Yuan [Thu, 2 Aug 2012 07:29:05 +0000 (03:29 -0400)]
encoders: remove encoders image upload and simplify parts code

11 years agoh264 encoder: worked in staging branch
Wind Yuan [Mon, 30 Jul 2012 07:34:55 +0000 (03:34 -0400)]
h264 encoder: worked in staging branch

11 years agoh264 encoder: compiling passed with libva staging branch
Wind Yuan [Mon, 30 Jul 2012 02:03:08 +0000 (22:03 -0400)]
h264 encoder: compiling passed with libva staging branch

11 years agoencoder(h264,h263,mpeg4): changed styles, names
Wind Yuan [Fri, 20 Jul 2012 07:27:57 +0000 (03:27 -0400)]
encoder(h264,h263,mpeg4): changed styles, names

current h264 encoder works in branch of 'vaapiext' of libva/intel-driver in GEN platform.
other encoders(h263,mpeg4) only tested in pvr long ago.
encoder need be configured with '--enable-encoders' explicitly.

11 years agoh264encoder: auto-detect stream-format: avc/byte-stream by next linked-pad's caps
Wind Yuan [Thu, 21 Jun 2012 06:46:43 +0000 (14:46 +0800)]
h264encoder: auto-detect stream-format: avc/byte-stream by next linked-pad's caps

11 years agofix compile issue after rebase
Wind Yuan [Wed, 18 Jan 2012 11:02:43 +0000 (19:02 +0800)]
fix compile issue after rebase

11 years agoadd Intel Copyright
Wind Yuan [Thu, 22 Dec 2011 13:02:10 +0000 (21:02 +0800)]
add Intel Copyright

11 years agocompiling passed in for new vaapiencode
Wind Yuan [Thu, 22 Dec 2011 06:42:40 +0000 (14:42 +0800)]
compiling passed in for new vaapiencode

11 years agochange encoder log output format, support GST log
Wind Yuan [Tue, 29 Nov 2011 02:31:44 +0000 (10:31 +0800)]
change encoder log output format, support GST log

11 years agosupport B frames
Wind Yuan [Mon, 28 Nov 2011 06:17:52 +0000 (01:17 -0500)]
support B frames

11 years agoSupport h264encoder on SandyBridge platform(lots libva h264 encoding parameters changed)
Wind Yuan [Wed, 23 Nov 2011 07:04:42 +0000 (02:04 -0500)]
Support h264encoder on SandyBridge platform(lots libva h264 encoding parameters changed)

11 years agosupports mpeg4 encoder
Wind Yuan [Thu, 20 Oct 2011 07:24:30 +0000 (15:24 +0800)]
supports mpeg4 encoder

11 years agochange h264encoder.x to gstvaapih264encoder.x
Wind Yuan [Thu, 13 Oct 2011 07:32:22 +0000 (15:32 +0800)]
change h264encoder.x to gstvaapih264encoder.x

11 years agosupport h263 encoder(vah263encode) in mrst "gst-launch videotestsrc num-buffers=100...
Wind Yuan [Thu, 13 Oct 2011 07:17:54 +0000 (15:17 +0800)]
support h263 encoder(vah263encode) in mrst "gst-launch videotestsrc num-buffers=100 pattern=18 ! video/x-raw-yuv,format='(fourcc)'NV12,width=640,height=480,framerate=30/1 ! vaapiconvert ! vah263encode ! qtmux faststart=true ! filesink location=263.mp4"

11 years agoextract vaapiencoder structure to make other encoders possible
Wind Yuan [Mon, 10 Oct 2011 02:24:02 +0000 (10:24 +0800)]
extract vaapiencoder structure to make other encoders possible

11 years agosupport multiple h264 slices, auto calculate bitrate(=w*h*fps/4) add properties ...
Wind Yuan [Fri, 30 Sep 2011 06:33:44 +0000 (14:33 +0800)]
support multiple h264 slices, auto calculate bitrate(=w*h*fps/4) add properties : min-qp, slice-num

11 years agoadd properties in gsth264encode; profile, level,bitrate, intra-period, init-qp
Wind Yuan [Thu, 29 Sep 2011 14:08:26 +0000 (22:08 +0800)]
add properties in gsth264encode; profile, level,bitrate, intra-period, init-qp

11 years agovah264encode co-work with vaapiconvert passed "gst-launch videotestsrc ! video/x...
Wind Yuan [Tue, 27 Sep 2011 05:24:05 +0000 (13:24 +0800)]
vah264encode co-work with vaapiconvert passed "gst-launch videotestsrc ! video/x-raw-yuv,format='(fourcc)'NV12,width=1280,height=720,framerate=30/1 ! vaapiconvert ! vah264encode ! fakesink"

11 years agochange h264encoder
Wind Yuan [Mon, 19 Sep 2011 01:47:36 +0000 (09:47 +0800)]
change h264encoder

11 years agovaapiconvert: change direct-rendering=0 to vaPutImage and support YUY2 colorspace...
Wind Yuan [Thu, 5 Jan 2012 03:17:33 +0000 (11:17 +0800)]
vaapiconvert: change direct-rendering=0 to vaPutImage and support YUY2 colorspace to vaImage

11 years agoadd Intel Copyright
Wind Yuan [Thu, 22 Dec 2011 13:02:10 +0000 (21:02 +0800)]
add Intel Copyright

11 years agocompiling passed in 3.0 for vaapiencode
Wind Yuan [Thu, 22 Dec 2011 06:42:40 +0000 (14:42 +0800)]
compiling passed in 3.0 for vaapiencode

11 years agovaapiconvert support multiple YUV colorspace
Wind Yuan [Thu, 22 Dec 2011 06:41:42 +0000 (14:41 +0800)]
vaapiconvert support multiple YUV colorspace

11 years agoAdd FPS log print in vaapiencode
Wind Yuan [Fri, 9 Dec 2011 07:55:01 +0000 (15:55 +0800)]
Add FPS log print in vaapiencode

11 years agoUse config.h to vaapiencode
Wind Yuan [Wed, 7 Dec 2011 04:58:10 +0000 (12:58 +0800)]
Use config.h to vaapiencode

11 years agoadd fps caculation macro
Wind Yuan [Tue, 6 Dec 2011 01:19:56 +0000 (20:19 -0500)]
add fps caculation macro

11 years agosupport YUY2 convert to surface
Wind Yuan [Mon, 5 Dec 2011 06:23:10 +0000 (01:23 -0500)]
support YUY2 convert to surface

11 years agovaapiconvert: try directly copy buffer to derived surface first
Wind Yuan [Thu, 1 Dec 2011 18:07:31 +0000 (13:07 -0500)]
vaapiconvert: try directly copy buffer to derived surface first

11 years agochange encoder log output format, support GST log
Wind Yuan [Tue, 29 Nov 2011 02:31:44 +0000 (10:31 +0800)]
change encoder log output format, support GST log

11 years agosupport multiple threads for vaapivideopool
Wind Yuan [Tue, 29 Nov 2011 02:31:02 +0000 (10:31 +0800)]
support multiple threads for vaapivideopool

11 years agosupport raw-buffer directly converted to surface in vaapiconvert
Wind Yuan [Thu, 24 Nov 2011 08:35:09 +0000 (03:35 -0500)]
support raw-buffer directly converted to surface in vaapiconvert

11 years agoAdd context API <gst_vaapi_context_get_surface_pool>
Wind Yuan [Wed, 23 Nov 2011 07:01:30 +0000 (02:01 -0500)]
Add context API <gst_vaapi_context_get_surface_pool>

11 years agoadd h264encoder
Wind Yuan [Mon, 19 Sep 2011 01:47:36 +0000 (09:47 +0800)]
add h264encoder

11 years agocaps: vaapi doesn't need framerate
Wind Yuan [Wed, 12 Sep 2012 08:58:06 +0000 (04:58 -0400)]
caps: vaapi doesn't need framerate

11 years agofix typo do not create color-balance filter when not needed
Zhao,Halley [Mon, 22 Oct 2012 16:56:45 +0000 (00:56 +0800)]
fix typo do not create color-balance filter when not needed

11 years agoremove _get_caps for postproc srcpad caps will retrieve from pad template, suppress...
Zhao Halley [Mon, 17 Sep 2012 08:25:52 +0000 (16:25 +0800)]
remove _get_caps for postproc srcpad caps will retrieve from pad template, suppress a gst warning

11 years agoadd color balance support in vpp
Zhao Halley [Fri, 14 Sep 2012 09:49:43 +0000 (17:49 +0800)]
add color balance support in vpp

  hue/brightness/contrast/saturation
  auto-brightness/auto-contrast/auto-saturation

11 years agoshare property operation code between GstVaapiPostproc and GstVaapiPostprocess
Zhao Halley [Fri, 14 Sep 2012 09:44:20 +0000 (17:44 +0800)]
share property operation code between GstVaapiPostproc and GstVaapiPostprocess

11 years agoadd vpp process in gstvaapipostproc
Zhao Halley [Fri, 31 Aug 2012 09:13:25 +0000 (17:13 +0800)]
add vpp process in gstvaapipostproc

11 years agoadd vpp process in gstvaapipostprocess
Zhao Halley [Wed, 12 Sep 2012 09:08:31 +0000 (17:08 +0800)]
add vpp process in gstvaapipostprocess

  denoise, deinterlace, surface fromat conversion, scaling

11 years agocheck vpp support in configure.ac
Zhao Halley [Fri, 31 Aug 2012 07:57:44 +0000 (15:57 +0800)]
check vpp support in configure.ac

11 years agoAdd new object GstVaapiPostProcess for post-processing
Zhao Halley [Wed, 12 Sep 2012 09:05:29 +0000 (17:05 +0800)]
Add new object GstVaapiPostProcess for post-processing

separate some enum from gstvaapipostproc to gstvaapipostprocess

11 years agoadd fourcc for GstVaapiSurface
Zhao Halley [Fri, 31 Aug 2012 06:59:48 +0000 (14:59 +0800)]
add fourcc for GstVaapiSurface

surface creation with dedicate fourcc is supported after VA API 0.34
legacy interface still works on lower version VA API

11 years agoh264: reset got_{sps,pps} when corrupted SPS/PPS headers are parsed.
Zhao Halley [Tue, 8 Jan 2013 21:40:46 +0000 (05:40 +0800)]
h264: reset got_{sps,pps} when corrupted SPS/PPS headers are parsed.

Reset got_{sps,pps} when corrupted SPS/PPS headers are parsed. This means
that no frame will be decoded until valid SPS/PPS headers are parsed again.
This also prevents from parsing slice headers with invalid data, and avoids
potential crashes.

https://bugs.freedesktop.org/show_bug.cgi?id=57902

11 years agovc1: handle CLOSED_ENTRY.
Gwenole Beauchesne [Wed, 23 Jan 2013 10:11:25 +0000 (11:11 +0100)]
vc1: handle CLOSED_ENTRY.

When CLOSED_ENTRY == 0, and if the B pictures that follow an entry-point
lack a reference anchor picture, these B pictures shall be discarded.

https://bugs.freedesktop.org/show_bug.cgi?id=59505

11 years agovc1: fix decoding of WMV3 videos in AVI format.
Wind Yuan [Fri, 11 Jan 2013 09:08:00 +0000 (17:08 +0800)]
vc1: fix decoding of WMV3 videos in AVI format.

The AVI demuxer (avidemux) does not set a proper "format" attribute
to the generated caps. So, try to recover the video codec format from
the "wmvversion" property instead.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agovc1: review and report errors accordingly.
Gwenole Beauchesne [Tue, 22 Jan 2013 12:28:13 +0000 (13:28 +0100)]
vc1: review and report errors accordingly.

Use GST_ERROR() to report real errors instead of hiding them into
GST_DEBUG().

11 years agovc1: cope with latest codecparser changes.
Gwenole Beauchesne [Wed, 23 Jan 2013 09:25:52 +0000 (10:25 +0100)]
vc1: cope with latest codecparser changes.

Fix build with newer VC-1 codecparser where dqsbedge was renamed to
dqbedge, and now represents either DQSBEDGE or DQDBEDGE depending on
the actual value of DQPROFILE.

11 years agocodecparsers: update to gst-vaapi-branch commit 35053b8.
Gwenole Beauchesne [Fri, 25 Jan 2013 09:40:18 +0000 (10:40 +0100)]
codecparsers: update to gst-vaapi-branch commit 35053b8.

aeb898b vc1: fix bitplanes decoding (DIFF6 or NORM6 residual bytes)
63e3344 vc1: fix bitplanes decoding (DIFF6 or NORM6)
b0a9372 vc1: add API to parse slice headers
773f3d1 vc1: fix bitplanes decoding
870e083 vc1: simplify GstVC1VopDquant structure
bc0d65e vc1: fix VOPDQUANT parser for DQUANT == 2
dcd3abd vc1: fix calculation of ALTPQUANT
73ca0b7 vc1: fix parser for DQPROFILE in VOPDQUANT
8840c2d h264: zero-initialize SPS VUI parameters

11 years agocodecparsers: update to gst-vaapi-rebased commit b47983a.
Gwenole Beauchesne [Mon, 14 Jan 2013 15:06:54 +0000 (16:06 +0100)]
codecparsers: update to gst-vaapi-rebased commit b47983a.

b47983a h264: add inferred value for slice_beta_offset_div2

11 years agoBump version for development.
Gwenole Beauchesne [Tue, 18 Dec 2012 09:32:20 +0000 (10:32 +0100)]
Bump version for development.

11 years ago0.4.2.
Gwenole Beauchesne [Tue, 18 Dec 2012 09:31:52 +0000 (10:31 +0100)]
0.4.2.

11 years agoNEWS: updates.
Gwenole Beauchesne [Mon, 17 Dec 2012 13:57:44 +0000 (14:57 +0100)]
NEWS: updates.

11 years agoimage: fix GstVaapiImage map and unmap.
Gwenole Beauchesne [Tue, 20 Nov 2012 13:36:29 +0000 (14:36 +0100)]
image: fix GstVaapiImage map and unmap.

Fix gst_vaapi_image_map() to return TRUE and the GstVaapiImageRaw
structure correctly filled in if the image was already mapped.
Likewise, make gst_vaapi_image_unmap() return TRUE if the image
was already unmapped.

11 years agompeg4: fix decoding at end-of-stream.
Wind Yuan [Fri, 12 Oct 2012 08:50:09 +0000 (16:50 +0800)]
mpeg4: fix decoding at end-of-stream.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agompeg4: fix size argument to gst_adapter_flush().
Wind Yuan [Fri, 12 Oct 2012 08:44:05 +0000 (16:44 +0800)]
mpeg4: fix size argument to gst_adapter_flush().

Flush only consumed_size bytes from the GstAdapter.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: add test for MPEG-4:2 decoding.
Gwenole Beauchesne [Mon, 17 Dec 2012 10:51:17 +0000 (02:51 -0800)]
tests: add test for MPEG-4:2 decoding.

11 years agoh264: initialize VA context before allocating the first slice.
Gwenole Beauchesne [Mon, 17 Dec 2012 12:42:29 +0000 (04:42 -0800)]
h264: initialize VA context before allocating the first slice.

Fix decode_slice() to ensure a VA context exists prior to creating a
new GstVaapiSliceH264, which invokes vaCreateBuffer() with some VA
context ID. i.e. the latter was not initialized, thus causing failures
on Cedar Trail for example.