Author | SHA1 | Message | Date |
---|---|---|---|
|
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 |