mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
video-converter: unpack into the destination when needed
Make sure we write into the destination line when we can propose the dest allocator.
This commit is contained in:
parent
d148963c7a
commit
da6f66e550
1 changed files with 6 additions and 3 deletions
|
@ -534,13 +534,16 @@ setup_allocators (GstVideoConverter * convert)
|
||||||
{
|
{
|
||||||
GstLineCache *cache;
|
GstLineCache *cache;
|
||||||
GstLineCacheAllocLineFunc alloc_line;
|
GstLineCacheAllocLineFunc alloc_line;
|
||||||
gboolean alloc_writable = FALSE;
|
gboolean alloc_writable;
|
||||||
|
|
||||||
/* start with using dest lines if we can directly write into it */
|
/* start with using dest lines if we can directly write into it */
|
||||||
if (convert->identity_pack)
|
if (convert->identity_pack) {
|
||||||
alloc_line = get_dest_line;
|
alloc_line = get_dest_line;
|
||||||
else
|
alloc_writable = TRUE;
|
||||||
|
} else {
|
||||||
alloc_line = get_border_temp_line;
|
alloc_line = get_border_temp_line;
|
||||||
|
alloc_writable = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* now walk backwards, we try to write into the dest lines directly
|
/* now walk backwards, we try to write into the dest lines directly
|
||||||
* and keep track if the source needs to be writable */
|
* and keep track if the source needs to be writable */
|
||||||
|
|
Loading…
Reference in a new issue