Gwenole Beauchesne
3bc68b5b32
mpeg2: fix decoding at end-of-sequence.
2012-02-23 16:15:23 +01:00
Gwenole Beauchesne
60e515e0b7
mpeg2: fix slice_horizontal_position calculation.
2012-02-23 16:15:22 +01:00
Gwenole Beauchesne
b36d2c810e
mpeg2: drop useless mb_y and mb_height members.
2012-02-23 16:14:02 +01:00
Gwenole Beauchesne
d47031b8ce
mpeg2: fix decoding of multiple slices with same slice_vertical_position.
...
6.3.15 says that "some slices may have the same slice_vertical_position,
since slices may start and finish anywhere". So, we can't submit the current
picture to the HW right away since subsequent slices would be missing.
2012-02-23 11:19:48 +01:00
Gwenole Beauchesne
5cc357f88a
cosmetics: fix warnings (drop unused variables).
2012-02-07 10:06:15 +01:00
Gwenole Beauchesne
d75d70d395
mpeg2: fix crash when there is no free surface to decode into.
2012-02-06 15:54:42 +01:00
Gwenole Beauchesne
11d09495ea
mpeg2: use GstAdapter to track input sequence.
...
This fixes possible memory leaks and improves performance by removing
some extra copies.
2012-01-31 11:02:04 +01:00
Gwenole Beauchesne
0fb1147d9c
Add header for system-dependent definitions.
2012-01-30 19:52:10 +01:00
Gwenole Beauchesne
2897618b85
decoder: properly reference count pictures.
...
This fixes cases where a GstVaapiPicture would be destroyed whereas
there is still a valid instance of it in either prev, current or
next picture.
2012-01-27 13:28:12 +01:00
Gwenole Beauchesne
e5d12e8853
decoder: rework the internal VA objects API.
...
The new API simplifies a lot reference counting and makes it more
flexible for future additions/changes. The GstVaapiCodecInfo is
also gone. Rather, new helper macros are provided to allocate
picture, slice and quantization matrix parameter buffers.
2012-01-27 13:28:11 +01:00
Zhao Halley
27fa5903ef
mpeg2: fix first field detection.
...
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-01-16 11:40:51 +01:00
Gwenole Beauchesne
a591dc3b72
mpeg2: fix quantisation matrix construction.
2012-01-16 11:40:50 +01:00
Sreerenj Balachandran
697a2804e1
mpeg2: replace GstVaapiTSB API with GstAdapter (gst-plugins-base >= 0.10.24).
...
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-01-16 11:40:50 +01:00
Gwenole Beauchesne
ab8f602957
mpeg2: fix packets spanning over two buffers.
2012-01-16 11:40:50 +01:00
Gwenole Beauchesne
ce413eb83d
mpeg2: ignore system start codes (PES headers).
2012-01-16 11:40:50 +01:00
Gwenole Beauchesne
c5902b7a84
mpeg2: handle closed_gop.
2012-01-16 11:40:50 +01:00
Gwenole Beauchesne
49b4702fb6
Add initial MPEG-2 decoder.
2012-01-16 11:40:50 +01:00