-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature - Images & animations #140
Conversation
d95757b
to
be9053d
Compare
4ac4bb8
to
179af94
Compare
500d1b2
to
f628ba8
Compare
f628ba8
to
3259ce0
Compare
8bd9d67
to
73bf058
Compare
3d69e3d
to
ef5d245
Compare
64f0cc2
to
9926d88
Compare
7230cfc
to
2451506
Compare
uint32_t DataCount, uint32_t *ConvertedDataCount) | ||
{ | ||
uint32_t numberMCU; | ||
uint32_t i, j, currentMCU, xRef, yRef; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scope of the variable yRef
can be reduced.
uint32_t numberMCU; | ||
uint32_t i, j, currentMCU, xRef, yRef; | ||
|
||
uint32_t refline; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scope of the variable refline
can be reduced.
|
||
int32_t c_red, c_blue, c_green; | ||
|
||
uint8_t *pOutAddr, *pChrom; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scope of the variable pChrom
can be reduced.
*/ | ||
void JPEG_InitPostProcColorTables(void) | ||
{ | ||
int32_t index, i; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scope of the variable index
can be reduced.
|
||
for (i = 0; i <= 255; i++) { | ||
index = (i * 2) - 256; | ||
CR_RED_LUT[i] = ((((int32_t)((1.40200 / 2) * (1L << 16))) * index) + ((int32_t)1 << (16 - 1))) >> 16; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shifting a negative value is technically undefined behaviour
index = (i * 2) - 256; | ||
CR_RED_LUT[i] = ((((int32_t)((1.40200 / 2) * (1L << 16))) * index) + ((int32_t)1 << (16 - 1))) >> 16; | ||
|
||
CB_BLUE_LUT[i] = ((((int32_t)((1.77200 / 2) * (1L << 16))) * index) + ((int32_t)1 << (16 - 1))) >> 16; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shifting a negative value is technically undefined behaviour
Codecov Report
@@ Coverage Diff @@
## develop #140 +/- ##
===========================================
- Coverage 100.00% 99.76% -0.24%
===========================================
Files 18 61 +43
Lines 232 1677 +1445
===========================================
+ Hits 232 1673 +1441
- Misses 0 4 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5087 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 7865 lines exceeds the maximum allowed for the inline comments feature.
Co-authored-by: Ladislas de Toldi <ladislas@detoldi.me>
+ Homogenize the same type in arguments Co-authored-by: Ladislas de Toldi <ladislas@detoldi.me>
Co-authored-by: Ladislas de Toldi <ladislas@detoldi.me>
Add intermediate method
6253de2
to
29ef108
Compare
🩹 (otm8009a): Use std::byte for bitwise operation 🩹 (jpeg): Remove redundant cast 🩹 (dma2d): Fix implicit conversion loses 🩹 (jpeg): Add tests recommanded by sonarcloud 🩹 (hal): Remove unused acces specifier 🩹 (hal): Use =default as default implementation 🩹 const non-mutable member function 🩹 (ll): Remove unused namespace 🩹 (dsi): Avoid implicit conversion 🩹 (lcd) Add missing final keyword 🩹 (font): Add const in fontGetPixelBytes argument 🩹 (otm8009a): Replace "/*" by "//" 🩹 (otm8009a): Nested namespace 🩹 (sonarcloud): Fix implicit conversion loses integer precision https://sonarcloud.io/project/issues?id=leka_LekaOS&issues=AXiE6yzYQJJ2tBYqGH4h&open=AXiE6yzYQJJ2tBYqGH4h&pullRequest=140 🩹 (sonarcloud): Fix Use "=default" instead of the default implementation of this special member functions https://sonarcloud.io/project/issues?id=leka_LekaOS&issues=AXiE6y3oQJJ2tBYqGH5j&open=AXiE6y3oQJJ2tBYqGH5j&pullRequest=140 🩹 (sonarcloud): Fix Add the "explicit" keyword to this constructor 🩹 (sonarcloud): Explicitly use reinterpret_cast instead of C-style cast 🩹 (sonarcloud): Fix Merge this "if" statement with the enclosing one https://sonarcloud.io/project/issues?id=leka_LekaOS&issues=AXiE6ywSQJJ2tBYqGH2k&open=AXiE6ywSQJJ2tBYqGH2k&pullRequest=140 🩹 (sonarcloud): Fix field '_dsi' will be initialized after field '_backlight' 🩹 (sonarcloud): Define command array as const 🩹 (sonarcloud): Fix duplicated blocks of code must be removed 🩹 (sonarcloud): Fix Concatenate this namespace with the nested one 🩹 (sonarcloud): Fix Remove the misleading "/*" characters 🩹 (sonarcloud): Fix Rename this namespace to match the regular expression
23464b6
to
3acb567
Compare
Kudos, SonarCloud Quality Gate passed! |
Main PR to bring LKCoreVideo, LKCoreAudio and LKAVKit to LekaOS