Beispiel #1
0
void decode_init()
{
    int i;

    // decoding
    uint32_t accel = 0;
    vo_driver_t *drivers;

    drivers = vo_drivers();
    for (i = 0; drivers[i].name; i++)
        if (!strcmp(drivers[i].name, "xv"))
            output_open = drivers[i].open;

    if (!output_open)
    {
        fprintf(stderr, "%s", _("can't find 'xv' output\n"));
        exit(1);
    }

    accel = (mm_accel() | MM_ACCEL_MLIB);
    vo_accel(accel);
    output = vo_open(output_open);

    if (!output)
    {
        fprintf(stderr, "%s", _("can't open 'xv' output\n"));
        exit(1);
    }

    mpeg2_init(&mpeg2dec, accel, output);
}
Beispiel #2
0
static int s5p_tv_vo1_open(struct file *file)
{
	vo_open(1, file);
	return 0;
}
/* modified for 2.6.29 v4l2-dev.c */
static int s5p_tv_vo0_open(struct file *file)
{
	return vo_open(0, file);
}
Beispiel #4
0
static int s5p_tv_vo1_open(struct file *file)
{
	ref_count_g1++;
	vo_open(1, file);
	return 0;	
}
Beispiel #5
0
/* modified for 2.6.29 v4l2-dev.c */
static int s5p_tv_vo0_open(struct file *file)
{
	ref_count_g0++;
	vo_open(0, file);
	return 0;
}