libv4lconvert: fix format of the error messages concerning jpeg frame size mismatch
PATCH 1/3 libv4lconvert: fix format of the error messages concerning jpeg frame size mismatch
--- lib/libv4lconvert/jpeg.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
lib/libv4lconvert/jpeg.c +2 -2
@@ -56,7 +56,7 @@ int v4lconvert_decode_jpeg_tinyjpeg(struct v4lconvert_data *data, }if (header_width != width || header_height != height) { -V4LCONVERT_ERR ("unexpected width / height in JPEG header" +V4LCONVERT_ERR ("unexpected width / height in JPEG header: " "expected: %ux%u, header: %ux%u\n" , width, height, header_width, header_height); errno =EIO ;
@@ -288,7 +288,7 @@ int v4lconvert_decode_jpeg_libjpeg(struct v4lconvert_data *data,if (data->cinfo.image_width != width || data->cinfo.image_height != height) { -V4LCONVERT_ERR ("unexpected width / height in JPEG header" +V4LCONVERT_ERR ("unexpected width / height in JPEG header: " "expected: %ux%u, header: %ux%u\n" , width, height, data->cinfo.image_width, data->cinfo.image_height);
Signature · 1 line
1.7.7
PATCH 2/3 libv4lconvert: pac7302-devices: remove unneeded flag V4LCONTROL_WANTS_WB
The gspca_pac7302 driver already provides this control.
--- lib/libv4lconvert/control/libv4lcontrol.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)
lib/libv4lconvert/control/libv4lcontrol.c +4 -8
@@ -202,14 +202,10 @@ static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { { 0x145f, 0x013a, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 }, { 0x2001, 0xf115, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 },/* Pac7302 based devices */ - { 0x093a, 0x2620, 0x0f, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x3009, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x301b, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x145f, 0x013c, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, + { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x3009, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x301b, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x145f, 0x013c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },/* Pac7311 based devices */ { 0x093a, 0x2600, 0x0f, NULL, NULL, V4LCONTROL_WANTS_WB }, /* sq905 devices */
Signature · 1 line
1.7.7
Re: [PATCH 2/3] libv4lconvert: pac7302-devices: remove unneeded flag V4LCONTROL_WANTS_WB
Hi,
Quoted 21 lines · Frank Schäfer
The
gspca_pac7302driver already provides this control.Signed-off-by Frank Schäfer <[email protected]>--- lib/libv4lconvert/control/libv4lcontrol.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)lib/libv4lconvert/control/libv4lcontrol.c +0
-5@@ -202,14 +202,10 @@ static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { { 0x145f, 0x013a, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 }, { 0x2001, 0xf115, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 }, /* Pac7302 based devices */ - { 0x093a, 0x2620, 0x0f, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x3009, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x301b, 0, NULL, NULL,
lib/libv4lconvert/control/libv4lcontrol.c static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { · line 211
Quoted 10 lines
lib/libv4lconvert/control/libv4lcontrol.c +4
-3- V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - {0x145f ,0x013c ,0 ,NULL ,NULL , - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, + { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x3009, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x301b, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x145f, 0x013c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },/* Pac7311 based devices */ { 0x093a, 0x2600, 0x0f, NULL, NULL, V4LCONTROL_WANTS_WB }, /* sq905 devices */
WANTS_WB does not add a whitebalance control, which these cameras indeed already have, it adds a (software) autowhitebalance control, which enables libv4lconvert doing software whitebalance correction. Although your kernel patch for the pac7302 driver to pick a better default whitebalance value, probably helps a lot to get the colors less screwed up, in the end we still need some sort of awb to adjust to changing lightning conditions, that is what this flag adds, as the pac7302 driver lacks awb.
Regards,
Hans
Re: [PATCH 2/3] libv4lconvert: pac7302-devices: remove unneeded flag V4LCONTROL_WANTS_WB
Am 09.09.2012 23:24, schrieb Hans de Goede:
Quoted 38 lines
Hi,
Quoted 31 lines · Frank Schäfer
The
gspca_pac7302driver already provides this control.Signed-off-by Frank Schäfer <[email protected]>--- lib/libv4lconvert/control/libv4lcontrol.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)lib/libv4lconvert/control/libv4lcontrol.c +4
-8@@ -202,14 +202,10 @@ static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { { 0x145f, 0x013a, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 }, { 0x2001, 0xf115, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 },/* Pac7302 based devices */ - { 0x093a, 0x2620, 0x0f, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x3009, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x301b, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x145f, 0x013c, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, + { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x3009, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x301b, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x145f, 0x013c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },/* Pac7311 based devices */ { 0x093a, 0x2600, 0x0f, NULL, NULL, V4LCONTROL_WANTS_WB },Quoted 2 lines
/* sq905 devices */
WANTS_WBdoes not add a whitebalance control, which these cameras indeed
Quoted 8 lines
already have, it adds a (software) autowhitebalance control, which enables
libv4lconvert doing software whitebalance correction. Although your kernel patch for the pac7302 driver to pick a better default whitebalance value, probably helps a lot to get the colors less screwed up, in the end we still need some sort of awb to adjust to changing lightning conditions,
that is what this flag adds, as the pac7302 driver lacks awb.
Ok, so WANTS_WB is actually WANTS_AUTOWB. ;)
But... IIRC... the software AWB control is always there, even without this flag !?
Or is it just about switching AWB on by default ?
And if AWB is on, the WB control should be disabled, right ?
Regards,
Frank
Quoted 4 lines
Regards,
Hans
Re: [PATCH 2/3] libv4lconvert: pac7302-devices: remove unneeded flag V4LCONTROL_WANTS_WB
Hi,
Quoted 48 lines · Frank Schäfer
Am 09.09.2012 23:24, schrieb Hans de Goede:
Quoted 38 lines
Hi,
Quoted 31 lines · Frank Schäfer
The
gspca_pac7302driver already provides this control.Signed-off-by Frank Schäfer <[email protected]>--- lib/libv4lconvert/control/libv4lcontrol.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)lib/libv4lconvert/control/libv4lcontrol.c +4
-8@@ -202,14 +202,10 @@ static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { { 0x145f, 0x013a, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 }, { 0x2001, 0xf115, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 },/* Pac7302 based devices */ - { 0x093a, 0x2620, 0x0f, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x3009, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x301b, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x145f, 0x013c, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, + { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x3009, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x301b, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x145f, 0x013c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },/* Pac7311 based devices */ { 0x093a, 0x2600, 0x0f, NULL, NULL, V4LCONTROL_WANTS_WB },Quoted 2 lines
/* sq905 devices */
WANTS_WBdoes not add a whitebalance control, which these cameras indeedQuoted 8 lines
already have, it adds a (software) autowhitebalance control, which enables
libv4lconvert doing software whitebalance correction. Although your kernel patch for the pac7302 driver to pick a better default whitebalance value, probably helps a lot to get the colors less screwed up, in the end we still need some sort of awb to adjust to changing lightning conditions,
that is what this flag adds, as the pac7302 driver lacks awb.
Quoted 4 lines
Ok, so
WANTS_WBis actuallyWANTS_AUTOWB. ;)
But... IIRC... the software AWB control is always there, even without this flag !?
Or is it just about switching AWB on by default ?
Correct, also note that the awb control will only show up for devices which have non standard formats, since those need to always go through libv4lconvert anyways, it does not get added to standard cams unless specifically enabled through a quirk list entry.
Quoted 1 line
And if AWB is on, the WB control should be disabled, right ?
No, the software AWB works by applying software rgb gains, so the hardware control is still useful, as the better the color balance of the input, the better the end-result will be.
Regards,
Hans
Re: [PATCH 2/3] libv4lconvert: pac7302-devices: remove unneeded flag V4LCONTROL_WANTS_WB
Am 10.09.2012 20:33, schrieb Hans de Goede:
Quoted 61 lines
Hi,
Quoted 53 lines · Frank Schäfer
Am 09.09.2012 23:24, schrieb Hans de Goede:
Quoted 43 lines
Hi,
Quoted 31 lines · Frank Schäfer
The
gspca_pac7302driver already provides this control.Signed-off-by Frank Schäfer <[email protected]>--- lib/libv4lconvert/control/libv4lcontrol.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)lib/libv4lconvert/control/libv4lcontrol.c +4
-8@@ -202,14 +202,10 @@ static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { {0x145f ,0x013a ,0 ,NULL ,NULL ,V4LCONTROL_WANTS_WB , 1500 }, { 0x2001, 0xf115, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 },/* Pac7302 based devices */ - { 0x093a, 0x2620, 0x0f, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x3009, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x06f8, 0x301b, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, - { 0x145f, 0x013c, 0, NULL, NULL, - V4LCONTROL_ROTATED_90_JPEG | V4LCONTROL_WANTS_WB, 1500 }, + { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x3009, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x06f8, 0x301b, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x145f, 0x013c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },Quoted 4 lines
/* Pac7311 based devices */ { 0x093a, 0x2600, 0x0f, NULL, NULL, V4LCONTROL_WANTS_WB }, /* sq905 devices */
WANTS_WBdoes not add a whitebalance control, which these cameras indeed
already have, it adds a (software) autowhitebalance control, which enablesQuoted 8 lines
libv4lconvert doing software whitebalance correction. Although your kernel patch for the pac7302 driver to pick a better default whitebalance
value, probably helps a lot to get the colors less screwed up, in the end
we still need some sort of awb to adjust to changing lightning conditions,
that is what this flag adds, as the pac7302 driver lacks awb.Quoted 4 lines
Ok, so
WANTS_WBis actuallyWANTS_AUTOWB. ;)
But... IIRC... the software AWB control is always there, even without this flag !?
Or is it just about switching AWB on by default ?
Quoted 7 lines
Correct, also note that the awb control will only show up for devices which
have non standard formats, since those need to always go through libv4lconvert
anyways, it does not get added to standard cams unless specifically enabled
through a quirk list entry.
Good to know that, thanks !
Quoted 7 lines
Quoted 2 lines
And if AWB is on, the WB control should be disabled, right ?
No, the software AWB works by applying software rgb gains, so the hardware
control is still useful, as the better the color balance of the input, the better the end-result will be.
Hmm... auto-whitebalance should compensate the setting made with the manual hardware controlled whitebalance.
But I guess they are working too differenty.
Regards,
Frank
Quoted 4 lines
Regards,
Hans
Re: [PATCH 2/3] libv4lconvert: pac7302-devices: remove unneeded flag V4LCONTROL_WANTS_WB
Hi,
On 09/10/2012 10:33 PM, Frank Schäfer wrote:
<snip>
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
And if AWB is on, the WB control should be disabled, right ?
No, the software AWB works by applying software rgb gains, so the hardware
control is still useful, as the better the color balance of the input, the better the end-result will be.Hmm... auto-whitebalance should compensate the setting made with the manual hardware controlled whitebalance.
In an ideal world, yes. But that would only work if we know the exact units in which the controls operate, and we don't. Also notice that even if we had some sort of feedback looped software awb algorithm to get over the units issue, the pac7302 is really funky in that it has both blue / red balance controls and a color temperature control, so which of those should such a software awb control ?
Quoted 1 line
But I guess they are working too differenty.
Right, the advantage of doing software whitebalance using software rgb gains, is that we know the units of the software gains, so we don't need a feedback loop, instead we just measure which correction we think we should apply, and then apply it "blindly" (so without any feedback loop).
Regards,
Hans
PATCH 3/3 libv4lconvert: update the list of pac7302 webcams
In reply to Frank SchäferAll pac7302 webcams need image rotation, so synchronize the list with the driver.
--- lib/libv4lconvert/control/libv4lcontrol.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)
lib/libv4lconvert/control/libv4lcontrol.c +12 -1
@@ -202,10 +202,21 @@ static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { { 0x145f, 0x013a, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 }, { 0x2001, 0xf115, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 },/* Pac7302 based devices */ - { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, { 0x06f8, 0x3009, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, { 0x06f8, 0x301b, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2611, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2622, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2624, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2625, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2626, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2627, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2628, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2629, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x262a, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x262c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, { 0x145f, 0x013c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x1ae7, 0x2001, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },/* Pac7311 based devices */ { 0x093a, 0x2600, 0x0f, NULL, NULL, V4LCONTROL_WANTS_WB }, /* sq905 devices */
Signature · 1 line
1.7.7
Re: [PATCH 3/3] libv4lconvert: update the list of pac7302 webcams
Hi,
Quoted 12 lines · Frank Schäfer
All pac7302 webcams need image rotation, so synchronize the list with the driver.
Signed-off-by Frank Schäfer <[email protected]>--- lib/libv4lconvert/control/libv4lcontrol.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)lib/libv4lconvert/control/libv4lcontrol.c +0
-0
lib/libv4lconvert/control/libv4lcontrol.c static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { · line 205
Quoted 4 lines
lib/libv4lconvert/control/libv4lcontrol.c +0
-1@@ -202,10 +202,21 @@ static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { { 0x145f, 0x013a, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 }, { 0x2001, 0xf115, 0, NULL, NULL, V4LCONTROL_WANTS_WB, 1500 }, /* Pac7302 based devices */ - { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },
The 0x0f here is a mask, so this one entry covers all device ids from 0x2620 - 0x262f, so...
lib/libv4lconvert/control/libv4lcontrol.c static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { · line 217
Quoted 13 lines
lib/libv4lconvert/control/libv4lcontrol.c +11
-0{ 0x06f8, 0x3009, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, { 0x06f8, 0x301b, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2611, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2622, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2624, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2625, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2626, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2627, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2628, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2629, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x262a, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x262c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },
The addition of all these is not necessary.
lib/libv4lconvert/control/libv4lcontrol.c static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { · line 219
Quoted 2 lines
lib/libv4lconvert/control/libv4lcontrol.c +1
-0{ 0x145f, 0x013c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x1ae7, 0x2001, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },
This one is necessary, I'll go and add it right away.
Regards,
Hans
Re: [PATCH 3/3] libv4lconvert: update the list of pac7302 webcams
Hi,
sorry for digging this up.
Quoted 17 lines · Hans de Goede
The
0x0fhere is a mask, so this one entry covers all device ids from0x2620-0x262f, so...lib/libv4lconvert/control/libv4lcontrol.c static const struct v4lcontrol_flags_info v4lcontrol_flags[] = { · line 217
Quoted 13 lines
{ 0x06f8, 0x3009, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, { 0x06f8, 0x301b, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },lib/libv4lconvert/control/libv4lcontrol.c +11
-0+ { 0x093a, 0x2620, 0x0f, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2611, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2622, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2624, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2625, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2626, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2627, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2628, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x2629, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x262a, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG }, + { 0x093a, 0x262c, 0, NULL, NULL, V4LCONTROL_ROTATED_90_JPEG },
Quoted 1 line
The addition of all these is not necessary.
Actually
Quoted 1 line
{
0x093a,0x2611, 0, NULL, NULL,V4LCONTROL_ROTATED_90_JPEG},
is not covered by the bitmask and it's not in the current HEAD tree, either.
Regards,
Robert
Hans de Goede
AppliedThanks, applied (and will be pushed to the official repo soon).
Quoted 28 lines · Frank Schäfer
Signed-off-by Frank Schäfer <[email protected]>--- lib/libv4lconvert/jpeg.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)lib/libv4lconvert/jpeg.c +2
-2@@ -56,7 +56,7 @@ int v4lconvert_decode_jpeg_tinyjpeg(struct v4lconvert_data *data, }if (header_width != width || header_height != height) { -V4LCONVERT_ERR ("unexpected width / height in JPEG header" +V4LCONVERT_ERR ("unexpected width / height in JPEG header: " "expected: %ux%u, header: %ux%u\n" , width, height, header_width, header_height); errno =EIO ;@@ -288,7 +288,7 @@ int v4lconvert_decode_jpeg_libjpeg(struct v4lconvert_data *data,if (data->cinfo.image_width != width || data->cinfo.image_height != height) { -V4LCONVERT_ERR ("unexpected width / height in JPEG header" +V4LCONVERT_ERR ("unexpected width / height in JPEG header: " "expected: %ux%u, header: %ux%u\n" , width, height, data->cinfo.image_width, data->cinfo.image_height);