* [PATCH] jpeg: To enable non-JPEG file formats for djpeg/cjpeg command. @ 2015-12-18 9:08 Lei Maohui 2015-12-30 1:07 ` Lei, Maohui 0 siblings, 1 reply; 4+ messages in thread From: Lei Maohui @ 2015-12-18 9:08 UTC (permalink / raw) To: openembedded-core To fix the error as following when use djpeg/cjpeg command: Unsupported output file format Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> --- meta/recipes-core/jpeg/jpeg_9a.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/meta/recipes-core/jpeg/jpeg_9a.bb b/meta/recipes-core/jpeg/jpeg_9a.bb index ea2e65d..092057d 100644 --- a/meta/recipes-core/jpeg/jpeg_9a.bb +++ b/meta/recipes-core/jpeg/jpeg_9a.bb @@ -21,6 +21,19 @@ FILES_jpeg-tools = "${bindir}/*" BBCLASSEXTEND = "native" +#To enable non-JPEG(bmp,gif,ppm and targa) file formats for djpeg/cjpeg command +do_compile_prepend() { + echo '#ifdef JPEG_CJPEG_DJPEG ' >> jconfig.h + echo '#define BMP_SUPPORTED /* BMP image file format */' >> jconfig.h + echo '#define GIF_SUPPORTED /* GIF image file format */' >> jconfig.h + echo '#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */' >> jconfig.h + echo '#undef RLE_SUPPORTED /* Utah RLE image file format */' >> jconfig.h + echo '#define TARGA_SUPPORTED /* Targa image file format */' >> jconfig.h + echo '#endif /* JPEG_CJPEG_DJPEG */' >> jconfig.h +} + + + pkg_postinst_${PN}_linuxstdbase () { if [ ! -e $D${libdir}/libjpeg.so.62 ]; then JPEG=`find $D${libdir} -type f -name libjpeg.so.\*.\*.\*` -- 1.8.4.2 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] jpeg: To enable non-JPEG file formats for djpeg/cjpeg command. 2015-12-18 9:08 [PATCH] jpeg: To enable non-JPEG file formats for djpeg/cjpeg command Lei Maohui @ 2015-12-30 1:07 ` Lei, Maohui 2016-01-04 17:01 ` Burton, Ross 0 siblings, 1 reply; 4+ messages in thread From: Lei, Maohui @ 2015-12-30 1:07 UTC (permalink / raw) To: openembedded-core ping > -----Original Message----- > From: Lei, Maohui > Sent: Friday, December 18, 2015 5:08 PM > To: openembedded-core@lists.openembedded.org > Cc: Lei, Maohui > Subject: [OE-core][PATCH] jpeg: To enable non-JPEG file formats for djpeg/cjpeg > command. > > To fix the error as following when use djpeg/cjpeg command: > Unsupported output file format > > Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> > --- > meta/recipes-core/jpeg/jpeg_9a.bb | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/meta/recipes-core/jpeg/jpeg_9a.bb b/meta/recipes- > core/jpeg/jpeg_9a.bb > index ea2e65d..092057d 100644 > --- a/meta/recipes-core/jpeg/jpeg_9a.bb > +++ b/meta/recipes-core/jpeg/jpeg_9a.bb > @@ -21,6 +21,19 @@ FILES_jpeg-tools = "${bindir}/*" > > BBCLASSEXTEND = "native" > > +#To enable non-JPEG(bmp,gif,ppm and targa) file formats for djpeg/cjpeg > command > +do_compile_prepend() { > + echo '#ifdef JPEG_CJPEG_DJPEG ' >> jconfig.h > + echo '#define BMP_SUPPORTED /* BMP image file format */' >> > jconfig.h > + echo '#define GIF_SUPPORTED /* GIF image file format */' >> jconfig.h > + echo '#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format > */' >> jconfig.h > + echo '#undef RLE_SUPPORTED /* Utah RLE image file format */' >> > jconfig.h > + echo '#define TARGA_SUPPORTED /* Targa image file format */' >> > jconfig.h > + echo '#endif /* JPEG_CJPEG_DJPEG */' >> jconfig.h > +} > + > + > + > pkg_postinst_${PN}_linuxstdbase () { > if [ ! -e $D${libdir}/libjpeg.so.62 ]; then > JPEG=`find $D${libdir} -type f -name libjpeg.so.\*.\*.\*` > -- > 1.8.4.2 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] jpeg: To enable non-JPEG file formats for djpeg/cjpeg command. 2015-12-30 1:07 ` Lei, Maohui @ 2016-01-04 17:01 ` Burton, Ross 2016-01-08 3:09 ` Lei, Maohui 0 siblings, 1 reply; 4+ messages in thread From: Burton, Ross @ 2016-01-04 17:01 UTC (permalink / raw) To: Lei, Maohui; +Cc: openembedded-core [-- Attachment #1: Type: text/plain, Size: 2314 bytes --] Hi, oe-core is about to move to libjpeg-turbo (see ross/mut and the recent patches), so this will need to be retested and rebased if required. Ross On 30 December 2015 at 01:07, Lei, Maohui <leimaohui@cn.fujitsu.com> wrote: > ping > > > -----Original Message----- > > From: Lei, Maohui > > Sent: Friday, December 18, 2015 5:08 PM > > To: openembedded-core@lists.openembedded.org > > Cc: Lei, Maohui > > Subject: [OE-core][PATCH] jpeg: To enable non-JPEG file formats for > djpeg/cjpeg > > command. > > > > To fix the error as following when use djpeg/cjpeg command: > > Unsupported output file format > > > > Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> > > --- > > meta/recipes-core/jpeg/jpeg_9a.bb | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > > > diff --git a/meta/recipes-core/jpeg/jpeg_9a.bb b/meta/recipes- > > core/jpeg/jpeg_9a.bb > > index ea2e65d..092057d 100644 > > --- a/meta/recipes-core/jpeg/jpeg_9a.bb > > +++ b/meta/recipes-core/jpeg/jpeg_9a.bb > > @@ -21,6 +21,19 @@ FILES_jpeg-tools = "${bindir}/*" > > > > BBCLASSEXTEND = "native" > > > > +#To enable non-JPEG(bmp,gif,ppm and targa) file formats for djpeg/cjpeg > > command > > +do_compile_prepend() { > > + echo '#ifdef JPEG_CJPEG_DJPEG ' > >> jconfig.h > > + echo '#define BMP_SUPPORTED /* BMP image file format */' > >> > > jconfig.h > > + echo '#define GIF_SUPPORTED /* GIF image file format */' > >> jconfig.h > > + echo '#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file > format > > */' >> jconfig.h > > + echo '#undef RLE_SUPPORTED /* Utah RLE image file format > */' >> > > jconfig.h > > + echo '#define TARGA_SUPPORTED /* Targa image file format */' > >> > > jconfig.h > > + echo '#endif /* JPEG_CJPEG_DJPEG */' > >> jconfig.h > > +} > > + > > + > > + > > pkg_postinst_${PN}_linuxstdbase () { > > if [ ! -e $D${libdir}/libjpeg.so.62 ]; then > > JPEG=`find $D${libdir} -type f -name libjpeg.so.\*.\*.\*` > > -- > > 1.8.4.2 > > > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > [-- Attachment #2: Type: text/html, Size: 3833 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] jpeg: To enable non-JPEG file formats for djpeg/cjpeg command. 2016-01-04 17:01 ` Burton, Ross @ 2016-01-08 3:09 ` Lei, Maohui 0 siblings, 0 replies; 4+ messages in thread From: Lei, Maohui @ 2016-01-08 3:09 UTC (permalink / raw) To: Burton, Ross, Robert Yang; +Cc: openembedded-core [-- Attachment #1: Type: text/plain, Size: 3036 bytes --] Hi Ross & Robert > oe-core is about to move to libjpeg-turbo (see ross/mut and the recent patches), so this will need to be retested and rebased if required. OK. I got it. Thanks . Hi Robert Can this patch be merged into YP 2.0 branch? Best regards lei From: Burton, Ross [mailto:ross.burton@intel.com] Sent: Tuesday, January 05, 2016 1:02 AM To: Lei, Maohui Cc: openembedded-core@lists.openembedded.org Subject: Re: [OE-core] [PATCH] jpeg: To enable non-JPEG file formats for djpeg/cjpeg command. Hi, oe-core is about to move to libjpeg-turbo (see ross/mut and the recent patches), so this will need to be retested and rebased if required. Ross On 30 December 2015 at 01:07, Lei, Maohui <leimaohui@cn.fujitsu.com<mailto:leimaohui@cn.fujitsu.com>> wrote: ping > -----Original Message----- > From: Lei, Maohui > Sent: Friday, December 18, 2015 5:08 PM > To: openembedded-core@lists.openembedded.org<mailto:openembedded-core@lists.openembedded.org> > Cc: Lei, Maohui > Subject: [OE-core][PATCH] jpeg: To enable non-JPEG file formats for djpeg/cjpeg > command. > > To fix the error as following when use djpeg/cjpeg command: > Unsupported output file format > > Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com<mailto:leimaohui@cn.fujitsu.com>> > --- > meta/recipes-core/jpeg/jpeg_9a.bb<http://jpeg_9a.bb> | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/meta/recipes-core/jpeg/jpeg_9a.bb<http://jpeg_9a.bb> b/meta/recipes- > core/jpeg/jpeg_9a.bb<http://jpeg_9a.bb> > index ea2e65d..092057d 100644 > --- a/meta/recipes-core/jpeg/jpeg_9a.bb<http://jpeg_9a.bb> > +++ b/meta/recipes-core/jpeg/jpeg_9a.bb<http://jpeg_9a.bb> > @@ -21,6 +21,19 @@ FILES_jpeg-tools = "${bindir}/*" > > BBCLASSEXTEND = "native" > > +#To enable non-JPEG(bmp,gif,ppm and targa) file formats for djpeg/cjpeg > command > +do_compile_prepend() { > + echo '#ifdef JPEG_CJPEG_DJPEG ' >> jconfig.h > + echo '#define BMP_SUPPORTED /* BMP image file format */' >> > jconfig.h > + echo '#define GIF_SUPPORTED /* GIF image file format */' >> jconfig.h > + echo '#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format > */' >> jconfig.h > + echo '#undef RLE_SUPPORTED /* Utah RLE image file format */' >> > jconfig.h > + echo '#define TARGA_SUPPORTED /* Targa image file format */' >> > jconfig.h > + echo '#endif /* JPEG_CJPEG_DJPEG */' >> jconfig.h > +} > + > + > + > pkg_postinst_${PN}_linuxstdbase () { > if [ ! -e $D${libdir}/libjpeg.so.62 ]; then > JPEG=`find $D${libdir} -type f -name libjpeg.so.\*.\*.\*` > -- > 1.8.4.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org<mailto:Openembedded-core@lists.openembedded.org> http://lists.openembedded.org/mailman/listinfo/openembedded-core [-- Attachment #2: Type: text/html, Size: 9620 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-08 3:09 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-12-18 9:08 [PATCH] jpeg: To enable non-JPEG file formats for djpeg/cjpeg command Lei Maohui 2015-12-30 1:07 ` Lei, Maohui 2016-01-04 17:01 ` Burton, Ross 2016-01-08 3:09 ` Lei, Maohui
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.