summaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki2@gmail.com>2014-04-10 00:47:32 +0200
committerLukasz Marek <lukasz.m.luki2@gmail.com>2014-04-11 15:37:56 +0200
commitc02e3dca2d494f972cd96e0cf9c8117296c60952 (patch)
treeb80333890a1a1cc0fd114cc993b55dd0a8b2d679 /libavdevice
parent6db42a2b6b22e6f1928fafcf3faa67ed78201004 (diff)
downloadffmpeg-streaming-c02e3dca2d494f972cd96e0cf9c8117296c60952.zip
ffmpeg-streaming-c02e3dca2d494f972cd96e0cf9c8117296c60952.tar.gz
lavd: add control message enums
Adds messages that allows to control (audio) buffer and play/pause state. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/avdevice.h41
-rw-r--r--libavdevice/version.h2
2 files changed, 40 insertions, 3 deletions
diff --git a/libavdevice/avdevice.h b/libavdevice/avdevice.h
index e194663..1d9de91 100644
--- a/libavdevice/avdevice.h
+++ b/libavdevice/avdevice.h
@@ -140,7 +140,20 @@ enum AVAppToDevMessageType {
* data: AVDeviceRect: area required to be repainted.
* NULL: whole area is required to be repainted.
*/
- AV_APP_TO_DEV_WINDOW_REPAINT = MKBETAG('R','E','P','A')
+ AV_APP_TO_DEV_WINDOW_REPAINT = MKBETAG('R','E','P','A'),
+
+ /**
+ * Request pause/play.
+ *
+ * Application requests pause/unpause playback.
+ * Mostly usable with devices that have internal buffer.
+ * By default devices are not paused.
+ *
+ * data: NULL
+ */
+ AV_APP_TO_DEV_PAUSE = MKBETAG('P', 'A', 'U', ' '),
+ AV_APP_TO_DEV_PLAY = MKBETAG('P', 'L', 'A', 'Y'),
+ AV_APP_TO_DEV_TOGGLE_PAUSE = MKBETAG('P', 'A', 'U', 'T'),
};
/**
@@ -199,7 +212,31 @@ enum AVDevToAppMessageType {
*
* data: NULL.
*/
- AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER = MKBETAG('B','D','E','S')
+ AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER = MKBETAG('B','D','E','S'),
+
+ /**
+ * Buffer fullness status messages.
+ *
+ * Device signals buffer overflow/underflow.
+ *
+ * data: NULL.
+ */
+ AV_DEV_TO_APP_BUFFER_OVERFLOW = MKBETAG('B','O','F','L'),
+ AV_DEV_TO_APP_BUFFER_UNDERFLOW = MKBETAG('B','U','F','L'),
+
+ /**
+ * Buffer readable/writable.
+ *
+ * Device informs that buffer is readable/writable.
+ * When possible, device informs how many bytes can be read/write.
+ *
+ * @warning Device may not inform when number of bytes than can be read/write changes.
+ *
+ * data: int64_t: amount of bytes available to read/write.
+ * NULL: amount of bytes available to read/write is not known.
+ */
+ AV_DEV_TO_APP_BUFFER_READABLE = MKBETAG('B','R','D',' '),
+ AV_DEV_TO_APP_BUFFER_WRITABLE = MKBETAG('B','W','R',' '),
};
/**
diff --git a/libavdevice/version.h b/libavdevice/version.h
index 8829a60..4267872 100644
--- a/libavdevice/version.h
+++ b/libavdevice/version.h
@@ -28,7 +28,7 @@
#include "libavutil/version.h"
#define LIBAVDEVICE_VERSION_MAJOR 55
-#define LIBAVDEVICE_VERSION_MINOR 12
+#define LIBAVDEVICE_VERSION_MINOR 13
#define LIBAVDEVICE_VERSION_MICRO 100
#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
OpenPOWER on IntegriCloud