Skip to content

Instantly share code, notes, and snippets.

@devarsht
Last active May 26, 2024 16:21
Show Gist options
  • Save devarsht/3fd6c4e8031ab114248f93d01c8dfc74 to your computer and use it in GitHub Desktop.
Save devarsht/3fd6c4e8031ab114248f93d01c8dfc74 to your computer and use it in GitHub Desktop.
v9_range_diff
1: 0870cd491e3d ! 1: ec9afc4d49bf media: dt-bindings: Add Imagination E5010 JPEG Encoder
@@ Commit message
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
+ V9:
+ - No change
V8:
- No change
V7:
2: 4604f93f4137 ! 2: 67f063dfaa4e media: imagination: Add E5010 JPEG Encoder driver
@@ Commit message
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
---
+ V9:
+ - Remove extra filler header data
+
V8:
- No change
@@ Commit message
https://lore.kernel.org/all/20240228141140.3530612-4-devarsht@ti.com/
V7:
https://lore.kernel.org/all/20240510083257.1274730-1-devarsht@ti.com/
- ---
+ V8:
+ https://lore.kernel.org/all/20240517172849.781910-1-devarsht@ti.com/
## MAINTAINERS ##
@@ MAINTAINERS: F: drivers/auxdisplay/img-ascii-lcd.c
@@ drivers/media/platform/imagination/e5010-jpeg-enc.c (new)
+ header_write(ctx, buffer, offset, 1, 3);
+ header_write(ctx, buffer, offset, 1, (HORZ_SAMPLING_FACTOR >> 1) | 1);
+ header_write(ctx, buffer, offset, 1, 1);
-+
-+ header_write(ctx, buffer, offset, 1, 0xFF);
+}
+
+static void jpg_encode_sos_header(struct e5010_context *ctx, void *addr, unsigned int *offset)
@@ drivers/media/platform/imagination/e5010-jpeg-enc.h (new)
+#define _E5010_JPEG_ENC_H
+
+#define MAX_PLANES 2
-+#define HEADER_SIZE 0x025E
++#define HEADER_SIZE 0x025D
+#define MIN_DIMENSION 64
+#define MAX_DIMENSION 8192
+#define DEFAULT_WIDTH 640
3: 55ad1783ee1a ! 3: b27f83204ac6 media: v4l2-jpeg: Export reference quantization and huffman tables
@@ Commit message
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
---
- V1->V8: No change (Patch introduced in V7)
+ V1->V9: No change (Patch introduced in V7)
## drivers/media/v4l2-core/v4l2-jpeg.c ##
@@
4: 384a961a2ba2 ! 4: ecb21f0d54fe media: imagination: Use exported tables from v4l2-jpeg core
@@ Commit message
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
---
- V1->V8 (No change, patch introduced in V7)
+ V1->V9 (No change, patch introduced in V7)
## drivers/media/platform/imagination/e5010-jpeg-enc.c ##
@@
5: f40a5bdac49b ! 5: 4fa82f18c1d4 media: verisilcon : Use exported tables from v4l2-jpeg for hantro codec
@@ Commit message
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Acked-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
---
+ V9: No change
V8: Add Reviewed-by and Acked-by tags
V1->V6 (No change, patch introduced in V7)
6: 190b994e9e5e ! 6: 9d24ed66242f math.h: Add macros for rounding to closest value
@@ Commit message
[1]:
https://elixir.bootlin.com/linux/v6.8.9/source/drivers/gpu/ipu-v3/ipu-image-convert.c#L480
+ V9:
+ - No change
+
V8:
- Add new macro to round to nearest value for non-multiple of 2
- Update commit message as suggested:
7: 68da487a7802 ! 7: bf3f3f32e9f2 lib: add basic KUnit test for lib/math
@@ Commit message
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
- [devarsht: Rebase to 6.9 and change license to GPL]
+ [devarsht: Rebase to 6.9, remove kernel.h and change license to GPL]
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
---
- Changes since v6:
+ Changes since v8:
+ * Remove unrequired header file linux/kernel.h
+
+ Changes since v7:
* Rebase to linux-next, change license to GPL as suggested by checkpatch.
+ Changes since v6:
+ * No change
+
Changes since v5:
* add in test cases for roundup/rounddown
* address misc comments from David
@@ lib/math/math_kunit.c (new)
+
+#include <kunit/test.h>
+#include <linux/gcd.h>
-+#include <linux/kernel.h>
+#include <linux/lcm.h>
+#include <linux/reciprocal_div.h>
+
8: 10f83fc6c2e2 ! 8: 86470baaa4bd lib: math_kunit: Add tests for new macros related to rounding to nearest value
@@ Commit message
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
---
- V1->V8 (No change, patch introduced in V8)
+ V1->V9 (No change, patch introduced in V8)
## lib/math/math_kunit.c ##
@@ lib/math/math_kunit.c: static void round_down_test(struct kunit *test)
9: 5063d15a005a ! 9: f4fb1c5b6c22 media: imagination: Round to closest multiple for cropping region
@@ Commit message
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
---
+ V9: No change
V8: Update commit message with specification reference
V1->V7 (No change, patch introduced in V7)
10: f270d6cab12f ! 10: 2f242bbe64ba gpu: ipu-v3: Use generic macro for rounding closest to specified value
@@ Commit message
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
---
+ V9: No change
V8: Update commit message
V1->V7 : (No change, patch introduced in V7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment