Skip to content

Commit

Permalink
test: define V4L2_PIX_FMT_NV12_10_COL128/V4L2_PIX_FMT_NV12_COL128 if …
Browse files Browse the repository at this point in the history
…missing
  • Loading branch information
popcornmix committed Sep 28, 2020
1 parent 9df90d4 commit 6b9c53e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tools/depends/target/ffmpeg/0001-rpi-Add-hevc-acceleration.patch
Expand Up @@ -47592,10 +47592,10 @@ index 0000000000..392f22b988
+#endif
diff --git a/libavcodec/v4l2_request.c b/libavcodec/v4l2_request.c
new file mode 100644
index 0000000000..7cc204275b
index 0000000000..8bdfdd1f1d
--- /dev/null
+++ b/libavcodec/v4l2_request.c
@@ -0,0 +1,1085 @@
@@ -0,0 +1,1093 @@
+/*
+ * This file is part of FFmpeg.
+ *
Expand Down Expand Up @@ -47643,6 +47643,14 @@ index 0000000000..7cc204275b
+#define DRM_FORMAT_P030 fourcc_code('P', '0', '3', '0')
+#endif
+
+#ifndef V4L2_PIX_FMT_NV12_10_COL128
+#define V4L2_PIX_FMT_NV12_10_COL128 v4l2_fourcc('N', 'C', '3', '0')
+#endif
+
+#ifndef V4L2_PIX_FMT_NV12_COL128
+#define V4L2_PIX_FMT_NV12_COL128 v4l2_fourcc('N', 'C', '1', '2') /* 12 Y/CbCr 4:2:0 128 pixel wide column */
+#endif
+
+uint64_t ff_v4l2_request_get_capture_timestamp(AVFrame *frame)
+{
+ V4L2RequestDescriptor *req = (V4L2RequestDescriptor*)frame->data[0];
Expand Down

0 comments on commit 6b9c53e

Please sign in to comment.