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 authored and johnrvt committed Dec 29, 2020
1 parent b42f3f9 commit 1df36d9
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
Original file line number Diff line number Diff line change
Expand Up @@ -48226,10 +48226,10 @@ index 0000000000..392f22b988
+#endif
diff --git a/libavcodec/v4l2_request.c b/libavcodec/v4l2_request.c
new file mode 100644
index 0000000000..06beeda0da
index 0000000000..c6eb10dd95
--- /dev/null
+++ b/libavcodec/v4l2_request.c
@@ -0,0 +1,1093 @@
@@ -0,0 +1,1101 @@
+/*
+ * This file is part of FFmpeg.
+ *
Expand Down Expand Up @@ -48285,6 +48285,14 @@ index 0000000000..06beeda0da
+#define DRM_FORMAT_NV20 fourcc_code('N', 'V', '2', '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 1df36d9

Please sign in to comment.