Hi Laurent,

>> >
>> >> +struct mt9m114_reg {
>> >> +     u16 reg;
>> >> +     u32 val;
>> >> +     int width;
>> >> +};
>> >> +
>> >> +enum {
>> >> +     MT9M114_QVGA,
>> >> +     MT9M114_VGA,
>> >> +     MT9M114_WVGA,
>> >> +     MT9M114_720P,
>> >> +};
>> >
>> > This is the part I don't like. Instead of hardcoding 4 different
>> > resolutions and using large register address/value tables, you should
>> > compute the register values from the image size requested by the user.
>>
>> In fact we get this table with the Aptina development tool. So we only
>> support fixed resolutions. If we compute each register value, it only makes
>> the code more complex.
>
> But it also makes the code more useful, as the user won't be limited to the 4
> resolutions above.
>
The problem is Aptina datasheet doesn't tell us how to calculate these values.
We only have some register presets.
_______________________________________________
Uclinux-dist-devel mailing list
Uclinux-dist-devel@blackfin.uclinux.org
https://blackfin.uclinux.org/mailman/listinfo/uclinux-dist-devel

Reply via email to