Author | SHA1 | Message | Date |
---|---|---|---|
|
70808859dd |
vf_hwmap: Properly free a locally derived device
Fixes CID 1412853. (cherry picked from commit a670eea56087d0ecd4fbeccf3a9beb9110b7031f) |
8 years ago |
|
d984b29b21 |
vf_hwmap: Add missing error code
Fixes CID 1412854. (cherry picked from commit 5635c80bf59d90e63ede473e2c014647850a8446) |
8 years ago |
|
d81be0a60a |
vf_hwmap: Add reverse mapping for hardware frames
This is something of a hack. It allocates a new hwframe context for
the target format, then maps it back to the source link and overwrites
the input link hw_frames_ctx so that the previous filter will receive
the frames we want from ff_get_video_buffer(). It may fail if
the previous filter imposes any additional constraints on the frames
it wants to use as output.
(cherry picked from commit
|
8 years ago |
|
b2ef1f42ba |
vf_hwmap: Add device derivation
Also refactor a little and improve error messages to make failure
cases easier to understand.
(cherry picked from commit
|
8 years ago |
|
124e26971e |
lavfi: Hardware map filter
Takes a frame associated with a hardware context as input and maps it to something else (another hardware frame or normal memory) for other processing. If the frame to map was originally in the target format (but mapped to something else), the original frame is output. Also supports mapping backwards, where only the output has a hardware context. The link immediately before will be supplied with mapped hardware frames which it can write directly into, and this filter then unmaps them back to the actual hardware frames. |
8 years ago |