diff options
author | He Junyan <junyan.he@hotmail.com> | 2019-02-05 16:59:40 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2019-02-21 13:41:46 +0100 |
commit | ee21fd9053c8bad9830f2b9185ad4ce462aaa581 (patch) | |
tree | 771a94c1415ddb6f5c04bab1bebaf817ea3e0072 /docs | |
parent | fd6291cc3c1584ccb9447217e9abfb73ca123e5e (diff) |
vaapivideomemory: Prefer same format for surface and image
We prefer to use the same format between image and surface for gst
vaapi allocator. The old way may choose different formats between
image and surface. For example, the RGBA image may have a NV12 surface.
So we need to do format conversion when we put/get image to surface.
Some drivers such as iHD can not support such conversion and always
cause a data flow error. There may also have some performance cost
for format conversion when put/get images.
So we prefer to use the same format for image and surface in the
allocator. If the surface can not support that format, we then
fallback to find a best one as the surface format.
Co-authored-by: Víctor Jáquez <vjaquez@igalia.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions