Skip to content

decoding_jpeg_image#2

Open
Suyash20012000 wants to merge 7 commits into
vikramdattu:masterfrom
Suyash20012000:master
Open

decoding_jpeg_image#2
Suyash20012000 wants to merge 7 commits into
vikramdattu:masterfrom
Suyash20012000:master

Conversation

@Suyash20012000

Copy link
Copy Markdown

No description provided.

Comment thread djpeg.c
/*unsigned char *buf[3];*/
unsigned int num_scanlines;
/* Process data */
while(cinfo.output_scanline < cinfo.output_height) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. This seems problematic! Do we have output height at this point?

@@ -0,0 +1,72 @@
#include <stdio.h>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example is for jpeg_decoder and the folder is esp32_jpeg_enc?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Suyash20012000 did you test the code?

Add a proper description in README

I did not test the code. I was not sure about the 'process' part of the code. Also what are your views on the flow of the code. I mean the flow in which the API's are called and the changes I did to the orignal program. Was it on the right track?

Comment thread esp32_jpeg_enc/main/jpeg_decoder.c Outdated
);

unsigned long in_buf_sz = 96 * 96 * 4;
unsigned char in_buf[96 * 96 * 4];

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need in_buf.

Comment thread esp32_jpeg_enc/main/jpeg_decoder.c Outdated
unsigned char *out_buf
);

unsigned long in_buf_sz = 96 * 96 * 4;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number 96x96 doesn't make sense.

Use something to denote how much KB. e.g 10 * 1024 meaning 10KB

Comment thread esp32_jpeg_enc/sdkconfig
@@ -0,0 +1,1272 @@
#
# Automatically generated file. DO NOT EDIT.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sdkconfig and sdkconfig.old are generated files. Do not add them to commit.

Comment thread esp32_jpeg_enc/main/jpeg_decoder.c Outdated
vTaskDelete(NULL);
}

void app main()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error. Change this to app_main.

send_email(out_buf);
vTaskDelete(NULL);
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding files to existing esp32_jpeg_enc which is for encoder, create new example: esp32_jpeg_dec.

@vikramdattu

vikramdattu commented Sep 30, 2020

Copy link
Copy Markdown
Owner

@Suyash20012000 did you test the code?

Add proper description in README

@vikramdattu

Copy link
Copy Markdown
Owner

@Suyash20012000 please add proper description to PR.

For example: espressif/esp-idf@77afbd5

@Suyash20012000

Copy link
Copy Markdown
Author

Ok sir. I'll look in the folder name and other changes mentioned.
Pls let me know whether the flow of the program is in the right direction. I will do the changes specified,do some changes and send the PR again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants