--
Daniel Wong
daniel...@my-dejanews.com
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Pardon?
Your camera already stored the pictures in the JPEG format, next to that you
can't view pictures on the web in BMP standard (without a proper plug-in).
Greg.
DW
Daniel Wong wrote:
>
> We have a Sony Mavica FD-71 at home, and I want to be able to view the
> 411 images that it produces on my computer and to upload them to my web
> site. Do any of you know how I could go about viewing these images or
> at least converting them to some other standard format like BMP or
> JPEG? Thanks.
>
Dear Daniel.
Forget the hidden .411 images and process the proper .jpg files
instead. Many if not all image processing programs have an easy
option for changing the size of the image. Look for e.g. "resize" in
a program's menu options. For example I convert some of mine
routinely to 80x60 pixels to have clickable thumbnails to the actual
photos on my WWW pages. If you wish to see an example take a look at
the URL on the last line of my signature.
All the best, Timo
--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
mailto:t...@uwasa.fi <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
Digital photos collection at http://www.uwasa.fi/ktt/lasktoim/photo/
Timo Salmi <t...@UWasa.Fi> wrote in message news:7j9bu2$s...@loisto.uwasa.fi...
Sony uses the .411 files to contain a small thumbnail. It's
a lot faster reading the .411 file from the floppy than reading
the .jpg file and producing a thumbnail.
This is most useful for processing in the camera - it makes
displaying thumbnails in the camera quite fast.
There's no real need to use .411 files when you have the
images in the PC already, since reading the .jpg files on
a modern PC is almost instantaneous.
I've attached a small program for converting .411 files to
.bmp files, but it isn't very useful other than as a
demonstration of the file format. I was the person who
first decoded these files, but it hasn't proven to be
useful for anything.
Regards,
Ed Hamrick
/*
* 4112bmp.c - Converts a Mavica .411 file into a .bmp file
*
* A .411 file contains 64x48 pixels, where each 4 horizontal
* pixels is represented by Y1,Y2,Y3,Y3,Cb,Cr. The Cb and Cr
* values are the same for these 4 pixels.
*
* Standard CCIR 601 color conversion is used to convert from
* Y,Cb,Cr to R,G,B.
*/
#include <stdio.h>
#include <stdlib.h>
#define WIDTH 64
#define HEIGHT 48
unsigned char bmpheader[] = {0x42, 0x4D, 0x36, 0x24, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x30, 0x00,
0x00, 0x00, 0x01, 0x00, 0x18, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
void main(int argc, char **argv)
{
FILE *inp = NULL;
FILE *out = NULL;
char name[512];
if (argc != 2)
{
printf("Usage: 4112bmp mvc-nnnx\n");
return;
}
strcpy(name, argv[1]);
strcat(name, ".411");
inp = fopen(name, "rb");
if (inp)
{
strcpy(name, argv[1]);
strcat(name, ".bmp");
out = fopen(name, "wb");
if (out)
{
int i, j, k, y[4], cb, cr;
fwrite(bmpheader, 1, sizeof(bmpheader), out);
for (k=0; k<HEIGHT; k++)
{
fseek(out, sizeof(bmpheader) + (HEIGHT-k-1) * 3 * WIDTH, SEEK_SET);
for (j=0; j<WIDTH/4; j++)
{
y[0] = fgetc(inp);
y[1] = fgetc(inp);
y[2] = fgetc(inp);
y[3] = fgetc(inp);
cb = fgetc(inp) - 128;
cr = fgetc(inp) - 128;
for (i=0; i<4; i++)
{
int r, g, b;
r = y[i] + 1.40200 * cr;
g = y[i] - 0.34414 * cb - 0.71414 * cr;
b = y[i] + 1.77200 * cb ;
if (r < 0) r = 0;
if (g < 0) g = 0;
if (b < 0) b = 0;
if (r > 255) r = 255;
if (g > 255) g = 255;
if (b > 255) b = 255;
fputc(b, out);
fputc(g, out);
fputc(r, out);
}
}
}
fclose(out);
}
fclose(inp);
}
}
> What is the purpose of the 411 files?
They're raw thumbnails (in, I think 15bpp color?) used by the index
mode on the camera. I keep meaning to figure out how to generate them
so I can put pictures on the camera and have the index work, but
they're really not worth much for the computer side.
--
Alan Shutko <a...@acm.org> - Looking for a job in Long Island!
Check http://rescomp.wustl.edu/~ats/ for a resume.
WinErr: 014 Keyboard locked - Try anything you can think of.
:What is the purpose of the 411 files?
The LCD display are internally used to show an index of the images
shot on the diskette, six per the small screen. The .411 files are
the small images making up the index.
Ed Hamrick <ham...@primenet.com> wrote in message
news:928571691.4154.1...@news.demon.co.uk...
> Randy Hartley <rhar...@salisbury.net> wrote:
> > What is the purpose of the 411 files?
>
> I've attached a small program for converting .411 files to
> .bmp files, but it isn't very useful other than as a
> demonstration of the file format. I was the person who
> first decoded these files, but it hasn't proven to be
> useful for anything.
Do you happen to have the reverse conversion? That would (imho) be
more useful. (Otherwise I could play with it myself, but I don't know
much about image formats, so it would take me a while.)
--
Alan Shutko <a...@acm.org> - Looking for a job in Long Island!
Check http://rescomp.wustl.edu/~ats/ for a resume.
Money cannot buy love, nor even friendship.