Hi, On 09/10/2012 10:24 PM, Frank Schäfer wrote: <snip>
libv4lconvert should be modifed to do the rotation regardless of what comes out of the kernel whenever V4LCONTROL_ROTATED flag is set. This way it becomes just a normal software control (like software h/v-flip). At the moment, it can only handle (jpeg) data where the kernel and header sizes are different.
And that cannot be done, because what if the app enumerates frame sizes, sees 640x480 there, then the rotate 90 degrees option gets toggled on, and it starts streaming and gets 480x640 frames all of a sudden, or what if the rotation changes during streaming ? Which is exavtly the reason why rotated-90 is being handled the way it is, which is I must admit a bit hacky, but that is what it is, just a hack for pac7302 cameras. Doing general rotation support is hard, if not impossible, at the v4l2 level since it changes not only the contents but also the dimensions of the image. Regards, Hans -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html