Skip to content

Commit a0bb12f

Browse files
committed
New native API to get deinterlace mode settings
1 parent 5bea4dd commit a0bb12f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

  • src/main/java/uk/co/caprica/vlcj/binding/lib

src/main/java/uk/co/caprica/vlcj/binding/lib/LibVlc.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,6 +2126,22 @@ public static native int libvlc_video_set_output_callbacks(
21262126
*/
21272127
public static native int libvlc_video_take_snapshot(libvlc_media_player_t p_mi, int num, String psz_filepath, int i_width, int i_height);
21282128

2129+
/**
2130+
* Gets the deinterlacing parameters.
2131+
* <p>
2132+
* If modep is not NULL, it will be set to a heap-allocated nul-terminated character string indicating the current
2133+
* deinterlacing algorithm name.
2134+
* <p>
2135+
* If no algorithm is selected or if allocation fails, it will be set to NULL.
2136+
* <p>
2137+
* The value should be freed with {@link #libvlc_free(Pointer)} to avoid leaking.
2138+
*
2139+
* @param mp media player instance
2140+
* @param modep storage space to hold the mode name (or NULL) [OUT]
2141+
* @return -1 deinterlacing is selected automatically, 0 deinterlacing is forcefully disabled, 1 deinterlacing is forcefully enabled
2142+
*/
2143+
public static native int libvlc_video_get_deinterlace(libvlc_media_player_t mp, Pointer modep);
2144+
21292145
/**
21302146
* Enable or disable deinterlace filter
21312147
*

0 commit comments

Comments
 (0)