468,456 Members | 1,635 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,456 developers. It's quick & easy.

Video Playback Resources?

I'm desperately in need of some direction here...
I'm trying to write some software that would play back a series of
images as
a movie. I can't seem to find any resources on this.
What I'm looking for is a brief tutorial (or VERY well document code)
that
will open a series of images, buffer them properly in memory, and then
play
them back in sequence and a certain rate.

PLEASE, PLEASE, PLEASE point me in the right direction. Oh, just as a
reminder, I'm not looking for an application that will do this... I'm
trying
to WRITE and application that will do this.

Thanks,
Dan

Jul 7 '06 #1
4 1558
On 7 Jul 2006 09:26:07 -0700, ds*******@gmail.com wrote in
comp.lang.c:
I'm desperately in need of some direction here...
I'd like to give you some direction, but you haven't provided enough
information.
I'm trying to write some software that would play back a series of
images as
a movie. I can't seem to find any resources on this.
The C language itself, and its standard library, does not have any
features that can display an image, or anything else, let alone play a
series of images as movie.
What I'm looking for is a brief tutorial (or VERY well document code)
that
will open a series of images, buffer them properly in memory, and then
play
them back in sequence and a certain rate.
The first part is easy. You use fopen() to open the image files,
probably in binary mode. You use malloc() or calloc() to allocate the
memory to read the into.

But "play them back" is something you cannot do in standard C.
PLEASE, PLEASE, PLEASE point me in the right direction. Oh, just as a
reminder, I'm not looking for an application that will do this... I'm
trying
to WRITE and application that will do this.
The right direction is a group that specializes in programming for
your particular hardware platform and operating system, which you
neglected to mention. All interaction with hardware, and that
includes displaying images, is done by non-standard, platform specific
extensions.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 7 '06 #2
On Fri, 07 Jul 2006 13:17:45 -0500, Jack Klein <ja*******@spamcop.net>
wrote:
>On 7 Jul 2006 09:26:07 -0700, ds*******@gmail.com wrote in
comp.lang.c:
>I'm desperately in need of some direction here...

I'd like to give you some direction, but you haven't provided enough
information.
>I'm trying to write some software that would play back a series of
images as
a movie. I can't seem to find any resources on this.

The C language itself, and its standard library, does not have any
features that can display an image, or anything else, let alone play a
series of images as movie.
>What I'm looking for is a brief tutorial (or VERY well document code)
that
will open a series of images, buffer them properly in memory, and then
play
them back in sequence and a certain rate.

The first part is easy. You use fopen() to open the image files,
probably in binary mode. You use malloc() or calloc() to allocate the
memory to read the into.
I think you forgot an important step. How do you find out the value to
pass into malloc()?

--
jay
Jul 8 '06 #3
jaysome wrote:
Jack Klein <ja*******@spamcop.netwrote:
...
The first part is easy. You use fopen() to open the image files,
probably in binary mode. You use malloc() or calloc() to allocate the
memory to read the into.

I think you forgot an important step. How do you find out the value to
pass into malloc()?
Umm... by reading the header in the image file?!

--
Peter

Jul 8 '06 #4
On Fri, 07 Jul 2006 23:21:47 -0700, jaysome <ja*****@spamcop.net>
wrote:
>On Fri, 07 Jul 2006 13:17:45 -0500, Jack Klein <ja*******@spamcop.net>
wrote:
>>On 7 Jul 2006 09:26:07 -0700, ds*******@gmail.com wrote in
comp.lang.c:
>>I'm desperately in need of some direction here...

I'd like to give you some direction, but you haven't provided enough
information.
>>I'm trying to write some software that would play back a series of
images as
a movie. I can't seem to find any resources on this.

The C language itself, and its standard library, does not have any
features that can display an image, or anything else, let alone play a
series of images as movie.
>>What I'm looking for is a brief tutorial (or VERY well document code)
that
will open a series of images, buffer them properly in memory, and then
play
them back in sequence and a certain rate.

The first part is easy. You use fopen() to open the image files,
probably in binary mode. You use malloc() or calloc() to allocate the
memory to read the into.

I think you forgot an important step. How do you find out the value to
pass into malloc()?
The value is always 34.
Jul 8 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Average_Joe | last post: by
6 posts views Thread by Ravi | last post: by
2 posts views Thread by Jacob | last post: by
5 posts views Thread by Lucas Tam | last post: by
3 posts views Thread by lukemack | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.