Encoders: Fix base class and h264
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Wed, 16 Nov 2011 01:41:55 +0000 (20:41 -0500)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>
Wed, 16 Nov 2011 02:09:27 +0000 (21:09 -0500)
commit80e8fe1359ba6aae5e594213c1cb146d8aaa61b9
treeec97f3df6e58178c4f3587f54fbbab35b54029f5
parent9e6434da30b5e9004e1ce9fc33e307fba9427e36
Encoders: Fix base class and h264
Base class needs NV12 format for gst_image_update_from_buffer
to work. Also added a method for the subclass to generate
its own buffer, and removes the image_pool since we now use
derive_image directly.
Added a bitstream writer, needed by the H264 encoder.
H264 encoder now outputs a proper bitstream by adding the NAL Units and SPS
and PPS to the stream. Also sets the sync_point properly.
gst/vaapi/Makefile.am
gst/vaapi/bitstream.c [new file with mode: 0644]
gst/vaapi/bitstream.h [new file with mode: 0644]
gst/vaapi/gstvaapibaseencoder.c
gst/vaapi/gstvaapibaseencoder.h
gst/vaapi/gstvaapih264encode.c
gst/vaapi/gstvaapih264encode.h