aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.h b/common.h
index cd2c0d8..7516a3b 100644
--- a/common.h
+++ b/common.h
@@ -63,6 +63,9 @@
#define dbg(...) {}
#endif /* DEBUG */
+#define V4L2_PIX_FMT_HEVC v4l2_fourcc('H', 'E', 'V', 'C') /* HEVC */
+#define V4L2_PIX_FMT_VP9 v4l2_fourcc('V', 'P', '9', '0') /* VP9 */
+
#define memzero(x) memset(&(x), 0, sizeof (x));
#define ALIGN(val, align) ((val + (align - 1)) & ~(align - 1))
@@ -113,6 +116,9 @@ struct video {
int fd;
/* Output queue related */
+ unsigned int out_w;
+ unsigned int out_h;
+ unsigned int out_bytesperline;
unsigned int out_buf_cnt;
unsigned int out_buf_size;
uint32_t out_buf_off[MAX_OUT_BUF];
@@ -158,6 +164,8 @@ struct instance {
unsigned int bitrate;
unsigned int framerate;
+ unsigned int num_bframes;
+ unsigned int num_pframes;
/* Codec to be used for encoding */
unsigned long codec;