1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 14:52:43 +00:00
mpv/video/vt.h
wm4 b5bbcc9f93 videotoolbox: add reverse format mapping function
Introduce mp_imgfmt_to_cvpixelformat(), and change the existing
mp_imgfmt_from_cvpixelformat() to a table to avoid duplication.
2017-02-17 13:51:03 +01:00

17 lines
424 B
C

#ifndef MPV_VT_H
#define MPV_VT_H
#include <stdint.h>
int mp_imgfmt_from_cvpixelformat(uint32_t cvpixfmt);
uint32_t mp_imgfmt_to_cvpixelformat(int mpfmt);
struct mp_image;
struct mp_image_pool;
struct mp_hwdec_ctx;
struct mp_image *mp_vt_download_image(struct mp_hwdec_ctx *ctx,
struct mp_image *hw_image,
struct mp_image_pool *swpool);
#endif