By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 829 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

Video Playback Resources?

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.