summaryrefslogtreecommitdiffstats
path: root/ext/jpeg
Commit message (Collapse)AuthorAgeFilesLines
* jpegdec: fix branch hintsTim-Philipp Müller2009-10-161-7/+7
| | | | Remove inappropriate branching hints and add some new ones.
* jpegdec: fix regression in indirect decode pathTim-Philipp Müller2009-10-161-1/+1
| | | | | Revert variable name back to what it was before the G_LIKELY was added (in commit 69c24fb9). The code works better that way.
* jpegdec: fix regression with certain formatsTim-Philipp Müller2009-10-161-24/+41
| | | | Fix regression introduced by previous commit (#598517).
* jpegdec: don't use decompress structure members we shouldn't be usingTim-Philipp Müller2009-10-161-14/+15
|
* jpegdec: remove some unused members from jpegdec instance structureTim-Philipp Müller2009-10-161-3/+0
|
* jpegdec: fix bogus warning about discont flag on first bufferTim-Philipp Müller2009-10-131-1/+1
| | | | | | The very first buffer should always have the DISCONT flag set, no need to warn about that. Only warn if we get a DISCONT buffer in non-packetised mode and we already have some data.
* jpegdec: fix crash for unusual vertical chroma subsampling factorsTim-Philipp Müller2009-10-131-25/+66
| | | | Fixes #597351.
* jpegdec: fixes warning building in snow leopardJosep Torra2009-10-101-5/+8
|
* build: fprintf, sprintf, sscanf need stdio.hStefan Kost2009-10-072-0/+2
|
* jpegdec: comment/logging cleanups and more branch guidesStefan Kost2009-10-061-7/+11
|
* jpegdec: don't leak output buffers on decoding errorsStefan Kost2009-09-301-1/+9
| | | | The setjmp handles libjpeg error. Free the outputbffer if we don't need it.
* jpegdec: fix 'unused variable' compiler warning when compiling with ↵Tim-Philipp Müller2009-09-291-5/+8
| | | | GST_DISABLE_GST_DEBUG
* jpeg: handle more libjpeg return values, add some more branch hintsStefan Kost2009-09-281-34/+50
| | | | Also remove unused size variable in _chain().
* Fix compile warnings with gcc 4.0.1.Alessandro Decina2009-09-221-1/+1
|
* jpegdec: add a G_UNLIKELY and put perf-cat log to code path that copiesStefan Kost2009-09-211-1/+6
|
* jpegdec: Avoid unnecessary processing until we have a full picture.Edward Hervey2009-09-031-0/+12
| | | | This is for non-packetized mode, when we know the upstream size in bytes.
* smokeenc: don't crash when compiled against libjpeg7Tim-Philipp Müller2009-08-171-0/+5
| | | | | Set parameters so that we don't crash with libjpeg7. Based on Stefan Kost's fix for jpegenc. Fixes #591951.
* jpeg: use longer macro names to not clash with some stupid windows definesStefan Kost2009-07-302-12/+12
| | | | | libjpeg headers pull some windows system inlcudes (on windows) that contain a define for DEFAULT_QUALITY.
* jpegdec: when scanning for 0xff marker ends, ensure desired resultMark Nauwelaerts2009-07-281-0/+4
| | | | | | Otherwise, any non 0xff byte at end of data would be mistaken for a tag byte, and in case of a frame_len 0 tag subsequently lead to an infinite loop.
* jpeg: make encoder work with libjpeg v7Stefan Kost2009-07-241-0/+4
| | | | We have to specify do_fancy_downsampling = FALSE in the encoder with did not exist before.
* jpeg: code cleanups for encoderStefan Kost2009-07-214-46/+78
| | | | | | Remove some disabled code in encoder. Try #if 0'ed code and add comments about why it is disabled. Move idct-method enum to jpeg.c and use in both encoder and decoder. Add idct-method property to encoder.
* jpegdec: bump max size to 65535x65535Philippe Normand2009-05-211-2/+2
| | | | | Remove artificial jpeg image limits. Fixes #583048.
* Add RANKS for various encoders and muxersChristian Schaller2009-05-071-1/+1
|
* jpegdec: refactored gst_jpeg_dec_parse_image_dataArnout Vandecappelle2009-05-061-42/+27
| | | | Fixes #579808
* jpegdec: support additional 0xff before end marker.Arnout Vandecappelle2009-05-061-12/+14
| | | | | | JPEG markers may be preceded by additional 0xff. jpegdec should skip over these, even before the end marker. See #579808
* jpegenc: set colorspace before _set_defaults()Wim Taymans2009-05-051-13/+10
| | | | | | The libjpeg api says that we need to set the colorspace before we call _set_defaults(). Indeed, if we don't do that we end up with some very freaky non-standard quant table and huffman table indexes.
* jpegdec: fix warning for still images by not trying to divide by 0Tim-Philipp Müller2009-04-201-1/+1
| | | | | | Don't pass a 0 divisor to gst_util_uint64_scale(), or it will complain in the single image case where fps=0/1 (are we supposed to differentiate between no fps=still image and fps=0/1=variable rate here btw?)
* jpegdec: use slightly more adaptive formula for QoSTim-Philipp Müller2009-04-092-6/+24
| | | | | Should work at least a tad better if the decoder can't keep up, and should also spread dropped frames a bit more evenly over time.
* jpegdec: demote some log message from DEBUG to LOGTim-Philipp Müller2009-04-022-9/+12
| | | | And log decoder object.
* jpegdec: implement basic QoSTim-Philipp Müller2009-04-012-3/+129
| | | | Don't decode frames that are going to be too late anyway.
* jpegdec: put GstSegment inside the element struct instead of allocating it ↵Tim-Philipp Müller2009-03-252-10/+5
| | | | separately
* jpegenc: error out instead of crashing if no caps have been setTim-Philipp Müller2009-02-251-0/+13
| | | | Don't crash if we receive a buffer without caps. Fixes #572413.
* Some cleanupsWim Taymans2009-02-232-5/+1
| | | | | | Remove some unused variables. Avoid a useless _resync call. Correctly use a gboolean.
* Add examples for the jpeg elements.Stefan Kost2009-01-292-0/+16
|
* Update and add documentation for plugins with deps (ext).Stefan Kost2009-01-283-2/+15
| | | | Link to properties. Correct titles for examples. Document a few trivial cases. Keep lists in section file and docs/plugins/Makefile.am alphabetically ordered. Fix warnings that gtk-doc points out.
* ext/jpeg/gstsmokeenc.*: Implement getcaps function.Wim Taymans2008-12-232-11/+70
| | | | | | | | | | | Original commit message from CVS: * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_init), (gst_smokeenc_getcaps), (gst_smokeenc_setcaps), (gst_smokeenc_chain), (gst_smokeenc_change_state): * ext/jpeg/gstsmokeenc.h: Implement getcaps function. Set caps on the pad and on all outgoing buffers. Fixes #565441.
* Don't install static libs for plugins. Fixes #550851 for -good.Stefan Kost2008-11-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * ext/aalib/Makefile.am: * ext/annodex/Makefile.am: * ext/cairo/Makefile.am: * ext/dv/Makefile.am: * ext/esd/Makefile.am: * ext/flac/Makefile.am: * ext/gconf/Makefile.am: * ext/gdk_pixbuf/Makefile.am: * ext/hal/Makefile.am: * ext/jpeg/Makefile.am: * ext/ladspa/Makefile.am: * ext/libcaca/Makefile.am: * ext/libmng/Makefile.am: * ext/libpng/Makefile.am: * ext/mikmod/Makefile.am: * ext/pulse/Makefile.am: * ext/raw1394/Makefile.am: * ext/shout2/Makefile.am: * ext/soup/Makefile.am: * ext/speex/Makefile.am: * ext/taglib/Makefile.am: * ext/wavpack/Makefile.am: * gst/alpha/Makefile.am: * gst/apetag/Makefile.am: * gst/audiofx/Makefile.am: * gst/auparse/Makefile.am: * gst/autodetect/Makefile.am: * gst/avi/Makefile.am: * gst/cutter/Makefile.am: * gst/debug/Makefile.am: * gst/effectv/Makefile.am: * gst/equalizer/Makefile.am: * gst/flx/Makefile.am: * gst/goom/Makefile.am: * gst/goom2k1/Makefile.am: * gst/icydemux/Makefile.am: * gst/id3demux/Makefile.am: * gst/interleave/Makefile.am: * gst/law/Makefile.am: * gst/level/Makefile.am: * gst/matroska/Makefile.am: * gst/median/Makefile.am: * gst/monoscope/Makefile.am: * gst/multifile/Makefile.am: * gst/multipart/Makefile.am: * gst/oldcore/Makefile.am: * gst/qtdemux/Makefile.am: * gst/replaygain/Makefile.am: * gst/rtp/Makefile.am: * gst/rtsp/Makefile.am: * gst/smpte/Makefile.am: * gst/spectrum/Makefile.am: * gst/udp/Makefile.am: * gst/videobox/Makefile.am: * gst/videocrop/Makefile.am: * gst/videofilter/Makefile.am: * gst/videomixer/Makefile.am: * gst/wavenc/Makefile.am: * gst/wavparse/Makefile.am: * sys/directdraw/Makefile.am: * sys/directsound/Makefile.am: * sys/oss/Makefile.am: * sys/osxaudio/Makefile.am: * sys/osxvideo/Makefile.am: * sys/sunaudio/Makefile.am: * sys/v4l2/Makefile.am: * sys/waveform/Makefile.am: * sys/ximage/Makefile.am: Don't install static libs for plugins. Fixes #550851 for -good.
* ext/jpeg/gstjpegdec.c: Align documentation with reality.Mark Nauwelaerts2008-07-141-2/+1
| | | | | | Original commit message from CVS: * ext/jpeg/gstjpegdec.c: Align documentation with reality.
* ext/jpeg/gstjpeg.c: Remove (commented out) smoke typefinder. This is in base ↵Sebastian Dröge2008-02-251-25/+0
| | | | | | | | now. Original commit message from CVS: * ext/jpeg/gstjpeg.c: (plugin_init): Remove (commented out) smoke typefinder. This is in base now.
* Add a few libjpeg suppressions and initialize a variable to make smokeenc ↵Sebastian Dröge2008-02-121-1/+1
| | | | | | | | | | | valgrind clean. Fixes bug #515701. Original commit message from CVS: * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_chain): * tests/check/Makefile.am: * tests/check/gst-plugins-good.supp: Add a few libjpeg suppressions and initialize a variable to make smokeenc valgrind clean. Fixes bug #515701.
* ext/jpeg/gstjpegdec.c: Actually drop the buffers which are outside the ↵Edward Hervey2007-12-161-3/+9
| | | | | | | | | currently configured segment instead of just e... Original commit message from CVS: * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain): Actually drop the buffers which are outside the currently configured segment instead of just emitting a WARNING.
* More docs. More logs in pngdec.Stefan Kost2007-07-181-0/+6
| | | | | | | | | | | | | Original commit message from CVS: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-good-plugins-docs.sgml: * docs/plugins/gst-plugins-good-plugins-sections.txt: * docs/plugins/inspect/plugin-jpeg.xml: * docs/plugins/inspect/plugin-png.xml: * ext/jpeg/gstjpegdec.c: * ext/libpng/gstpngdec.c: (gst_pngdec_task), (gst_pngdec_sink_setcaps): More docs. More logs in pngdec.
* Fix build against core CVS.Tim-Philipp Müller2007-07-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * ext/cairo/gsttimeoverlay.c: (gst_cairo_time_overlay_transform): * ext/jpeg/gstjpegenc.c: (gst_jpegenc_chain): * ext/libpng/gstpngenc.c: (gst_pngenc_chain): * ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_chain): * gst/debug/gstnavigationtest.c: (gst_navigationtest_transform): * gst/effectv/gstaging.c: (gst_agingtv_transform): * gst/effectv/gstdice.c: (gst_dicetv_transform): * gst/effectv/gstedge.c: (gst_edgetv_transform): * gst/effectv/gstquark.c: (gst_quarktv_transform): * gst/effectv/gstrev.c: (gst_revtv_transform): * gst/effectv/gstshagadelic.c: (gst_shagadelictv_transform): * gst/effectv/gstvertigo.c: (gst_vertigotv_transform): * gst/effectv/gstwarp.c: (gst_warptv_transform): * gst/matroska/matroska-demux.c: (gst_matroska_demux_add_wvpk_header), (gst_matroska_demux_check_subtitle_buffer), (gst_matroska_decode_buffer): * gst/videofilter/gstvideoflip.c: (gst_video_flip_transform): Fix build against core CVS.
* ext/jpeg/gstsmokeenc.*: Remove stupidity in get/set caps functions.Michael Smith2007-07-062-61/+11
| | | | | | | | | | Original commit message from CVS: * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_init), (gst_smokeenc_setcaps), (gst_smokeenc_chain), (gst_smokeenc_change_state): * ext/jpeg/gstsmokeenc.h: Remove stupidity in get/set caps functions. Fix some refcounting problems.
* Fix build with LDFLAGS='-Wl,-z,defs' (#410997)Loïc Minier2007-02-241-1/+1
| | | | | | | | | | | | | | | | | | Original commit message from CVS: Patch by: Loïc Minier <lool+gnome at via ecp fr> * configure.ac: * ext/annodex/Makefile.am: * ext/jpeg/Makefile.am: * ext/speex/Makefile.am: * gst/alpha/Makefile.am: * gst/cutter/Makefile.am: * gst/debug/Makefile.am: * gst/effectv/Makefile.am: * gst/goom/Makefile.am: * gst/level/Makefile.am: * gst/smpte/Makefile.am: * gst/videofilter/Makefile.am: Fix build with LDFLAGS='-Wl,-z,defs' (#410997)
* ext/jpeg/: These libjpeg callbacks should return a 'boolean' (unsigned char ↵Vincent Torri2007-01-083-6/+6
| | | | | | | | | | | | | | | | | apparently) and not a 'gboolean' (which m... Original commit message from CVS: Patch by: Vincent Torri <vtorri at univ-evry fr> * ext/jpeg/gstjpegdec.c: * ext/jpeg/gstjpegenc.c: * ext/jpeg/smokecodec.c: These libjpeg callbacks should return a 'boolean' (unsigned char apparently) and not a 'gboolean' (which maps to gint). Fixes warnings when compiling with MingW (#393427). * gst/rtsp/rtspconnection.c: (rtsp_connection_read): Use ioctlsocket on win32. * gst/udp/gstudpsrc.c: (gst_udpsrc_create): Some printf format fixes for win32.
* gst/id3demux/id3v2frames.c: We require a -base more recent than 0.10.9, so ↵Tim-Philipp Müller2006-11-011-6/+5
| | | | | | | | | | | | | | | it's safe to use Original commit message from CVS: * gst/id3demux/id3v2frames.c: (parse_picture_frame): We require a -base more recent than 0.10.9, so it's safe to use GST_TYPE_TAG_IMAGE_TYPE unconditionally now. * ext/dv/gstdvdec.c: (gst_dvdec_sink_event): * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_sink_event): Use _newsegment_full() now that we depend on a recent enough core. * gst/wavparse/gstwavparse.c: Remove cruft that we don't need any longer now that we depend on a recent enough -base.
* ext/jpeg/: Various cleanups, capsnego and leak fixes.Wim Taymans2006-10-303-73/+204
| | | | | | | | | | | | | | | Original commit message from CVS: * ext/jpeg/gstjpegenc.c: (gst_jpegenc_getcaps): * ext/jpeg/gstsmokedec.c: (gst_smokedec_class_init), (gst_smokedec_init), (gst_smokedec_finalize), (gst_smokedec_chain), (gst_smokedec_change_state): * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_class_init), (gst_smokeenc_init), (gst_smokeenc_finalize), (gst_smokeenc_getcaps), (gst_smokeenc_setcaps), (gst_smokeenc_resync), (gst_smokeenc_chain), (gst_smokeenc_set_property), (gst_smokeenc_get_property), (gst_smokeenc_change_state): Various cleanups, capsnego and leak fixes.
* Fix a bunch of problems discovered by the Forte compiler, mostly type mixups ↵Josep Torra Valles2006-10-161-29/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | and pointer arithmetics with void pointe... Original commit message from CVS: Patch by: Josep Torra Valles <josep at fluendo com> * ext/cairo/gsttimeoverlay.c: (gst_cairo_time_overlay_transform): * ext/esd/esdsink.c: (gst_esdsink_write): * ext/flac/gstflacdec.c: (gst_flac_dec_length), (gst_flac_dec_read_seekable), (gst_flac_dec_chain), (gst_flac_dec_send_newsegment): * ext/flac/gstflacenc.c: (gst_flac_enc_seek_callback), (gst_flac_enc_tell_callback): * ext/jpeg/smokecodec.c: (find_best_size), (smokecodec_encode), (smokecodec_parse_header), (smokecodec_decode): * gst/avi/gstavimux.c: (gst_avi_mux_write_avix_index): * gst/debug/efence.c: (gst_fenced_buffer_alloc): * gst/goom/Makefile.am: * gst/goom/gstgoom.c: * gst/icydemux/gsticydemux.c: (gst_icydemux_typefind_or_forward): * gst/rtsp/gstrtspsrc.c: * gst/rtsp/rtspconnection.c: (rtsp_connection_read): * gst/udp/gstudpsink.c: * gst/udp/gstudpsrc.c: * gst/wavparse/gstwavparse.c: (gst_wavparse_change_state): * sys/sunaudio/gstsunaudiomixertrack.h: Fix a bunch of problems discovered by the Forte compiler, mostly type mixups and pointer arithmetics with void pointers. Fixes #362603.
* Printf format fixes.Tim-Philipp Müller2006-10-054-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * ext/cairo/gsttimeoverlay.c: (gst_cairo_time_overlay_update_font_height): * ext/gdk_pixbuf/pixbufscale.c: (gst_pixbufscale_transform_caps): * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_parse_image_data): * ext/jpeg/gstjpegenc.c: (gst_jpegenc_chain): * ext/jpeg/gstsmokedec.c: (gst_smokedec_chain): * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_chain): * ext/libpng/gstpngdec.c: (user_endrow_callback): * gst/auparse/gstauparse.c: (gst_au_parse_parse_header): * gst/avi/gstavidemux.c: (gst_avi_demux_parse_superindex), (gst_avi_demux_parse_subindex), (gst_avi_demux_parse_stream), (gst_avi_demux_stream_data): * gst/cutter/gstcutter.c: (gst_cutter_chain): * gst/debug/efence.c: (gst_efence_buffer_alloc), (gst_fenced_buffer_copy): * gst/id3demux/id3v2frames.c: (id3demux_id3v2_parse_frame): * gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream): * gst/matroska/matroska-mux.c: (gst_matroska_mux_start): * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_send), (gst_rtspsrc_handle_message): * gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers): * sys/ximage/ximageutil.c: (ximageutil_xcontext_get): Printf format fixes.