Forum Discussion
NiosII
hi
I have a source code of compression vidéo (h.264 ,jpeg) how is exécutable in visual studio c++,my problem is how to implement this code in NiosII ,how to convert this source code in niosII. thanks in advance.68 Replies
- Altera_Forum
Honored Contributor
How did you generate the zip file? Did you remember not to use compression? Where and how did you flash it?
- Altera_Forum
Honored Contributor
Now I want to load an image from memory flach to compress and sauvgardement in another file (. jpg) . So to access this picture I cried (/ mnt / rozipfs / file / cross.bmp), the problem is I can not find the file (. jpg)!!
In principle it was created in the project and sauvgardement.plz help me.thanks in advance. - Altera_Forum
Honored Contributor
are you trying to write a file back to the rozipfs? If yes you can't do that, it is a read only file system.
- Altera_Forum
Honored Contributor
thanks Daixiwen, i don't inderstand your message ,My code opens a file (. bmp) and compress it into a image.jpg.
the problem is I can not find the output file (. jpg). when it must be found.thanks in advance. - Altera_Forum
Honored Contributor
do you know, where are you trying to save the Jpeg image?
rozip is read only zip, you can not write back jpeg file into rozip. by the way. have you found the way to use compress logic. congratulations anyway. - Altera_Forum
Honored Contributor
hi ,thanks akira,
where shall i write back the jpeg file? what is the root of this file(.jpg)? thanks in advance. - Altera_Forum
Honored Contributor
You can't write back the file. For that you would need a filesystem with write support, which isn't available in the standard Nios distribution. What is your objective exactly? Why do you want to write a file?
- Altera_Forum
Honored Contributor
hi,thanks Daixiwen,
i have a compression code and i want to test it.that's why i need to read the output file of this code which will create a new write file . JPG_filename="image.jpg" if((fp_jpeg_stream=fopen(JPG_filename,"w"))==NULL) { perror("Impossible to open write file"); exit(-2); } printf("file opened\n"); what shall make as a root to read this write file cause i always have this message " Impossible to open write file: no such device" thanhs.. - Altera_Forum
Honored Contributor
You will either have to find or implement a different file system with write access, or use another method. For example instead of a file, you can put the JPEG data in a table or an allocated memory buffer and re-read it from there.
An alternative is to use the host file system instead of the rozipfs, and then you can directly read/write files on your PC. But this will only work when running the application with the debugger, not if you directly execute it. - Altera_Forum
Honored Contributor
hi Daixiwen, thanks a lot.
What do you mean from "allocated memory buffer and re-read it from there", is that mean "Writing the output files to the flash memory"? thanks in advance.