Skip to content

Commit 1b0cf3c

Browse files
committed
vo: add VO_CAP_DEINTERLACE
This is used to signal when the VO can do deinterlacing itself, instead of using a filter
1 parent b2c0326 commit 1b0cf3c

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

filters/f_output_chain.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ void mp_output_chain_set_vo(struct mp_output_chain *c, struct vo *vo)
394394
p->stream_info.osd = vo ? vo->osd : NULL;
395395
p->stream_info.vflip = vo ? vo->driver->caps & VO_CAP_VFLIP : false;
396396
p->stream_info.rotate90 = vo ? vo->driver->caps & VO_CAP_ROTATE90 : false;
397+
p->stream_info.deinterlace = vo ? vo->driver->caps & VO_CAP_DEINTERLACE : false;
397398
p->stream_info.dr_vo = vo;
398399
p->vo = vo;
399400
update_output_caps(p);

filters/filter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ struct mp_stream_info {
408408
bool vflip;
409409
bool rotate90;
410410
bool force_swdec;
411+
bool deinterlace;
411412
struct vo *dr_vo; // for calling vo_get_image()
412413
};
413414

video/out/vo.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ enum {
205205
VO_CAP_FRAMEOWNER = 1 << 5,
206206
// VO does handle mp_image_params.vflip
207207
VO_CAP_VFLIP = 1 << 6,
208+
// VO supports deinterlacing
209+
VO_CAP_DEINTERLACE = 1 << 7,
208210
};
209211

210212
enum {

0 commit comments

Comments
 (0)