mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
gstvaapicontext: Add VAConfigAttribValEncJPEG to the attribute list using for VAConfig creation.
This commit is contained in:
parent
7a84b06097
commit
4c7c858374
1 changed files with 17 additions and 0 deletions
|
@ -246,6 +246,23 @@ context_create (GstVaapiContext * context)
|
||||||
attrib->value = config->packed_headers;
|
attrib->value = config->packed_headers;
|
||||||
attrib++;
|
attrib++;
|
||||||
}
|
}
|
||||||
|
#if VA_CHECK_VERSION(0,37,0)
|
||||||
|
if (cip->profile == GST_VAAPI_PROFILE_JPEG_BASELINE) {
|
||||||
|
VAConfigAttribValEncJPEG jpeg_attrib_val;
|
||||||
|
/* JPEG Encoding Attribute */
|
||||||
|
attrib->type = VAConfigAttribEncJPEG;
|
||||||
|
if (!context_get_attribute (context, attrib->type, &value))
|
||||||
|
goto cleanup;
|
||||||
|
jpeg_attrib_val.value = attrib->value;
|
||||||
|
/* Set JPEG profile attribs */
|
||||||
|
jpeg_attrib_val.bits.arithmatic_coding_mode = 0;
|
||||||
|
jpeg_attrib_val.bits.progressive_dct_mode = 0;
|
||||||
|
jpeg_attrib_val.bits.non_interleaved_mode = 1;
|
||||||
|
jpeg_attrib_val.bits.differential_mode = 0;
|
||||||
|
attrib->value = jpeg_attrib_val.value;
|
||||||
|
attrib++;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue