summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-10 19:30:48 +0100
committerwm4 <wm4@nowhere>2013-04-21 04:39:58 +0200
commit778e9c06336e77909a2e2bc87aec85dc8cb08811 (patch)
treec02a5b196e1bf49ba79e21669dcd1f153e7ea472 /video/mp_image.h
parent04f1e2dc43b9d490c392751f0e812247e6609a30 (diff)
downloadmpv-778e9c06336e77909a2e2bc87aec85dc8cb08811.tar.bz2
mpv-778e9c06336e77909a2e2bc87aec85dc8cb08811.tar.xz
mp_image: provide function to convert mp_image to AVFrame
Note that this does not pass through QP information (qscale field). The only filter for which this matters is vf_pp, and we have this natively.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index 85adac65f0..ca536a1e91 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -130,7 +130,10 @@ void mp_image_set_colorspace_details(struct mp_image *image,
struct AVFrame;
void mp_image_copy_fields_from_av_frame(struct mp_image *dst,
struct AVFrame *src);
+void mp_image_copy_fields_to_av_frame(struct AVFrame *dst,
+ struct mp_image *src);
struct mp_image *mp_image_from_av_frame(struct AVFrame *av_frame);
+struct AVFrame *mp_image_to_av_frame_and_unref(struct mp_image *img);
// align must be a power of two (align >= 1), v >= 0
#define MP_ALIGN_UP(v, align) FFALIGN(v, align)