Subversion Repositories cinelerra

Compare Revisions

Ignore whitespace Rev 121 → Rev 122

/branches/r1_1_7-TEST-patches1/hvirtual/cinelerra/device1394output.C
152,6 → 152,8
int syt,
int use_dv1394)
{
int is_pal;
struct stat buf;
this->channels = channels;
this->bits = bits;
this->samplerate = samplerate;
159,13 → 161,18
this->syt = syt;
this->use_dv1394 = use_dv1394;
 
stat(path, &buf);
 
if(strstr(path, "PAL") != NULL || minor(buf.st_rdev) == 34)
is_pal = 1;
else
is_pal = 0;
 
static struct dv1394_init setup = {
api_version: DV1394_API_VERSION,
channel: channel,
n_frames: length,
format: DV1394_NTSC,
format: is_pal ? DV1394_PAL : DV1394_NTSC,
cip_n: 0,
cip_d: 0,
syt_offset: syt
264,7 → 271,7
{
int out_size;
output_buffer = (unsigned char*)mmap(0,
output_mmap.nb_buffers * DV1394_NTSC_FRAME_SIZE,
output_mmap.nb_buffers * (is_pal ? DV1394_PAL_FRAME_SIZE : DV1394_NTSC_FRAME_SIZE),
PROT_READ | PROT_WRITE,
MAP_SHARED,
output_fd,