[Pkg-gstreamer-commits] [gstreamer-vaapi] 123/176: encoder: re-order submission of VA objects.
Vincent Cheng
vcheng at moszumanska.debian.org
Tue Jun 3 08:09:33 UTC 2014
This is an automated email from the git hooks/post-receive script.
vcheng pushed a commit to branch upstream
in repository gstreamer-vaapi.
commit c03682ecc1ad88321422008746a94ae4286816ff
Author: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
Date: Tue Jan 14 13:47:52 2014 +0100
encoder: re-order submission of VA objects.
Change the submission order of VA objects so that to make that process
more logical. i.e. submit sequence parameter first, if any; next the
packed headers associated to sequece, picture or slices; and finally
the actual picture and associated slices.
---
gst-libs/gst/vaapi/gstvaapiencoder_objects.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_objects.c b/gst-libs/gst/vaapi/gstvaapiencoder_objects.c
index 3702318..5583561 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_objects.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_objects.c
@@ -423,10 +423,6 @@ gst_vaapi_enc_picture_encode (GstVaapiEncPicture * picture)
&sequence->param_id, &sequence->param))
return FALSE;
- /* Submit Picture parameter */
- if (!do_encode (va_display, va_context, &picture->param_id, &picture->param))
- return FALSE;
-
/* Submit Packed Headers */
for (i = 0; i < picture->packed_headers->len; i++) {
GstVaapiEncPackedHeader *const header =
@@ -445,6 +441,10 @@ gst_vaapi_enc_picture_encode (GstVaapiEncPicture * picture)
return FALSE;
}
+ /* Submit Picture parameter */
+ if (!do_encode (va_display, va_context, &picture->param_id, &picture->param))
+ return FALSE;
+
/* Submit Slice parameters */
for (i = 0; i < picture->slices->len; i++) {
GstVaapiEncSlice *const slice = g_ptr_array_index (picture->slices, i);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gstreamer/gstreamer-vaapi.git
More information about the Pkg-gstreamer-commits
mailing list