flat assembler
Message board for the users of flat assembler.

Index > Main > How does sound,video, and png work?

Author
Thread Post new topic Reply to topic
zutokaza



Joined: 03 May 2015
Posts: 14
zutokaza
Wondering how sound, videos, and
png work in fasm. ogg sound, ogv video, png, and bmp.
Post 15 May 2015, 06:45
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17665
Location: In your JS exploiting you and your system
revolution
Work in what way? Do you mean the file format? fasm doesn't specifically deal with any media formats but you can write code (for fasm to assemble) to decode and play/display media content in your chosen OS.
Post 15 May 2015, 06:53
View user's profile Send private message Visit poster's website Reply with quote
zutokaza



Joined: 03 May 2015
Posts: 14
zutokaza
revolution wrote:
Work in what way? Do you mean the file format? fasm doesn't specifically deal with any media formats but you can write code (for fasm to assemble) to decode and play/display media content in your chosen OS.


How would decoding it work? Do I study the formats source code?
Post 15 May 2015, 07:02
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17665
Location: In your JS exploiting you and your system
revolution
If it was me I would start with reading the file format specs. Probably only when all else fails would you want to read some source code to extract the algorithms and file layouts.
Post 15 May 2015, 11:00
View user's profile Send private message Visit poster's website Reply with quote
zutokaza



Joined: 03 May 2015
Posts: 14
zutokaza
revolution wrote:
If it was me I would start with reading the file format specs. Probably only when all else fails would you want to read some source code to extract the algorithms and file layouts.


Thank you Dr.Revolution.
Post 15 May 2015, 11:03
View user's profile Send private message Reply with quote
TheRaven



Joined: 22 Apr 2008
Posts: 89
Location: U.S.A.
TheRaven
You'll have to research the file format (media format in this case) then interpret/translate the algorithm into assembler essentially creating more commonly a decoder. Ogg and mp4 files (as examples) are read using decoders then output in the native format (Ogg or mp4 in this case) or transcoded and output. Transcoding is generally unnecessary except in situations where media is streamed to a device that does not or cannot support the original format/algorithm.

Regardless, you will have to do background research on the format optionally getting pre-existing examples (generally in C and/or C++) then develop your assembler media development libraries from there. You could also investigate using third party libraries in the desired operating system by including the DLL/SO executables instead of writing your own.
Post 23 May 2015, 07:28
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.