mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 09:32:40 +00:00
b5bbcc9f93
Introduce mp_imgfmt_to_cvpixelformat(), and change the existing mp_imgfmt_from_cvpixelformat() to a table to avoid duplication.
17 lines
424 B
C
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
|