blob: dde9cf7137119864688222cfc401b1bdd98c6f3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include "filter.h"
// A filter which uploads sw frames to hw. Ignores hw frames.
struct mp_hwupload {
// Indicates if the filter was successfully initialised, or not.
// If not, the state of other members is undefined.
bool successful_init;
// The filter to use for uploads. NULL if none is required.
struct mp_filter *f;
// The underlying format of uploaded frames
int selected_sw_imgfmt;
};
struct mp_hwupload mp_hwupload_create(struct mp_filter *parent, int hw_imgfmt,
int sw_imgfmt, bool src_is_same_hw);
// A filter which downloads sw frames from hw. Ignores sw frames.
struct mp_hwdownload {
struct mp_filter *f;
struct mp_image_pool *pool;
};
struct mp_hwdownload *mp_hwdownload_create(struct mp_filter *parent);
|