History

Remove commented-out debug #define cruft

Diego Biurrun committed 13 years ago

Commit 2832ea21 parent ff4fc5e43 files · +0 −103Browse files

Unified · Split

43 files
  1. libavcodec/4xm.c +0 −3
  2. libavcodec/ac3enc.c +0 −2
  3. libavcodec/alsdec.c +0 −4
  4. libavcodec/asvdec.c +0 −3
  5. libavcodec/dnxhddec.c +0 −3
  6. libavcodec/dnxhdenc.c +0 −1
  7. libavcodec/dsputil.h +0 −3
  8. libavcodec/dvdsubdec.c +0 −2
  9. libavcodec/gifdec.c +0 −2
  10. libavcodec/h263.c +0 −3
  11. libavcodec/h263dec.c +0 −2
  12. libavcodec/ituh263dec.c +0 −4
  13. libavcodec/ituh263enc.c +0 −4
  14. libavcodec/mpeg12.c +0 −4
  15. libavcodec/mpeg12dec.c +0 −4
  16. libavcodec/mpegaudiodecheader.c +0 −1
  17. libavcodec/mpegvideo.c +0 −6
  18. libavcodec/mpegvideo_enc.c +0 −5
  19. libavcodec/msmpeg4.c +0 −1
  20. libavcodec/pngdec.c +0 −2
  21. libavcodec/pngenc.c +0 −2
  22. libavcodec/rv10.c +0 −2
  23. libavcodec/rv34.c +0 −2
  24. libavcodec/tta.c +0 −1
  25. libavdevice/fbdev.c +0 −2
  26. libavfilter/avfilter.c +0 −2
  27. libavfilter/setpts.c +0 −2
  28. libavfilter/vf_crop.c +0 −2
  29. libavfilter/vf_fieldorder.c +0 −2
  30. libavfilter/vf_frei0r.c +0 −2
  31. libavfilter/vf_libopencv.c +0 −2
  32. libavfilter/vsrc_movie.c +0 −2
  33. libavformat/asfdec.c +0 −2
  34. libavformat/isom.c +0 −2
  35. libavformat/mov.c +0 −1
  36. libavformat/mux.c +0 −2
  37. libavformat/mxfdec.c +0 −2
  38. libavformat/mxfenc.c +0 −2
  39. libavformat/r3d.c +0 −2
  40. libavformat/rtmpproto.c +0 −2
  41. libavformat/rtpenc.c +0 −2
  42. libavformat/rtsp.c +0 −2
  43. libavformat/utils.c +0 −2
libavcodec/4xm.c+0−3
@@ -32,9 +32,6 @@ · 31 unmodified lines
3232 #include "get_bits.h"
3333 #include "internal.h"
3434
35−//#undef NDEBUG
36−//#include <assert.h>
37−
3835 #define BLOCK_TYPE_VLC_BITS 5
3936 #define ACDC_VLC_BITS 9
4037
libavcodec/ac3enc.c+0−2
@@ -26,8 +26,6 @@ · 25 unmodified lines
2626 * The simplest AC-3 encoder.
2727 */
2828
29−//#define ASSERT_LEVEL 2
30−
3129 #include <stdint.h>
3230
3331 #include "libavutil/attributes.h"
libavcodec/alsdec.c+0−4
@@ -25,10 +25,6 @@ · 24 unmodified lines
2525 * @author Thilo Borgmann <thilo.borgmann _at_ googlemail.com>
2626 */
2727
28−
29−//#define DEBUG
30−
31−
3228 #include "avcodec.h"
3329 #include "get_bits.h"
3430 #include "unary.h"
libavcodec/asvdec.c+0−3
@@ -33,9 +33,6 @@ · 32 unmodified lines
3333 #include "mathops.h"
3434 #include "mpeg12data.h"
3535
36−//#undef NDEBUG
37−//#include <assert.h>
38−
3936 #define VLC_BITS 6
4037 #define ASV2_LEVEL_VLC_BITS 10
4138
libavcodec/dnxhddec.c+0−3
@@ -22,9 +22,6 @@ · 21 unmodified lines
2222 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2323 */
2424
25−//#define TRACE
26−//#define DEBUG
27−
2825 #include "libavutil/imgutils.h"
2926 #include "avcodec.h"
3027 #include "get_bits.h"
libavcodec/dnxhdenc.c+0−1
@@ -23,7 +23,6 @@ · 22 unmodified lines
2323 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2424 */
2525
26−//#define DEBUG
2726 #define RC_VARIANCE 1 // use variance or ssd for fast rc
2827
2928 #include "libavutil/attributes.h"
libavcodec/dsputil.h+0−3
@@ -34,9 +34,6 @@ · 33 unmodified lines
3434 #include "avcodec.h"
3535 #include "rnd_avg.h"
3636
37−
38−//#define DEBUG
39−
4037 /* encoding scans */
4138 extern const uint8_t ff_alternate_horizontal_scan[64];
4239 extern const uint8_t ff_alternate_vertical_scan[64];
libavcodec/dvdsubdec.c+0−2
@@ -26,8 +26,6 @@ · 25 unmodified lines
2626 #include "libavutil/imgutils.h"
2727 #include "libavutil/avstring.h"
2828
29−//#define DEBUG
30−
3129 typedef struct DVDSubContext {
3230 uint32_t palette[16];
3331 int has_palette;
libavcodec/gifdec.c+0−2
@@ -20,8 +20,6 @@ · 19 unmodified lines
2020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121 */
2222
23−//#define DEBUG
24−
2523 #include "libavutil/imgutils.h"
2624 #include "avcodec.h"
2725 #include "bytestream.h"
libavcodec/h263.c+0−3
@@ -27,7 +27,6 @@ · 26 unmodified lines
2727 * h263/mpeg4 codec.
2828 */
2929
30−//#define DEBUG
3130 #include <limits.h>
3231
3332 #include "avcodec.h"
@@ -39,8 +38,6 @@ · 5 unmodified lines
3938 #include "flv.h"
4039 #include "mpeg4video.h"
4140
42−//#undef NDEBUG
43−//#include <assert.h>
4441
4542 uint8_t ff_h263_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3];
4643
libavcodec/h263dec.c+0−2
@@ -39,8 +39,6 @@ · 38 unmodified lines
3939 #include "flv.h"
4040 #include "mpeg4video.h"
4141
42−//#define DEBUG
43−
4442 av_cold int ff_h263_decode_init(AVCodecContext *avctx)
4543 {
4644 MpegEncContext *s = avctx->priv_data;
libavcodec/ituh263dec.c+0−4
@@ -27,7 +27,6 @@ · 26 unmodified lines
2727 * h263 decoder.
2828 */
2929
30−//#define DEBUG
3130 #include <limits.h>
3231
3332 #include "libavutil/attributes.h"
@@ -41,9 +40,6 @@ · 7 unmodified lines
4140 #include "flv.h"
4241 #include "mpeg4video.h"
4342
44−//#undef NDEBUG
45−//#include <assert.h>
46−
4743 // The defines below define the number of bits that are read at once for
4844 // reading vlc values. Changing these may improve speed and data cache needs
4945 // be aware though that decreasing them may need the number of stages that is
libavcodec/ituh263enc.c+0−4
@@ -27,7 +27,6 @@ · 26 unmodified lines
2727 * h263 bitstream encoder.
2828 */
2929
30−//#define DEBUG
3130 #include <limits.h>
3231
3332 #include "libavutil/attributes.h"
@@ -40,9 +39,6 @@ · 6 unmodified lines
4039 #include "mpeg4video.h"
4140 #include "internal.h"
4241
43−//#undef NDEBUG
44−//#include <assert.h>
45−
4642 /**
4743 * Table of number of bits a motion vector component needs.
4844 */
libavcodec/mpeg12.c+0−4
@@ -25,7 +25,6 @@ · 24 unmodified lines
2525 * MPEG-1/2 decoder
2626 */
2727
28−//#define DEBUG
2928 #include "libavutil/attributes.h"
3029 #include "internal.h"
3130 #include "avcodec.h"
@@ -40,9 +39,6 @@ · 8 unmodified lines
4039 #include "xvmc_internal.h"
4140 #include "thread.h"
4241
43−//#undef NDEBUG
44−//#include <assert.h>
45−
4642 uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3];
4743
4844 #define INIT_2D_VLC_RL(rl, static_size)\
libavcodec/mpeg12dec.c+0−4
@@ -25,7 +25,6 @@ · 24 unmodified lines
2525 * MPEG-1/2 decoder
2626 */
2727
28−//#define DEBUG
2928 #include "libavutil/attributes.h"
3029 #include "libavutil/internal.h"
3130 #include "internal.h"
@@ -41,9 +40,6 @@ · 9 unmodified lines
4140 #include "xvmc_internal.h"
4241 #include "thread.h"
4342
44−//#undef NDEBUG
45−//#include <assert.h>
46−
4743 typedef struct Mpeg1Context {
4844 MpegEncContext mpeg_enc_ctx;
4945 int mpeg_enc_ctx_allocated; /* true if decoding context allocated */
libavcodec/mpegaudiodecheader.c+0−1
@@ -24,7 +24,6 @@ · 23 unmodified lines
2424 * MPEG Audio header decoder.
2525 */
2626
27−//#define DEBUG
2827 #include "avcodec.h"
2928 #include "mpegaudio.h"
3029 #include "mpegaudiodata.h"
libavcodec/mpegvideo.c+0−6
@@ -41,9 +41,6 @@ · 40 unmodified lines
4141 #include "thread.h"
4242 #include <limits.h>
4343
44−//#undef NDEBUG
45−//#include <assert.h>
46−
4744 static void dct_unquantize_mpeg1_intra_c(MpegEncContext *s,
4845 int16_t *block, int n, int qscale);
4946 static void dct_unquantize_mpeg1_inter_c(MpegEncContext *s,
@@ -59,9 +56,6 @@ static void dct_unquantize_h263_intra_c(MpegEncContext *s, · 9 unmodified lines
5956 static void dct_unquantize_h263_inter_c(MpegEncContext *s,
6057 int16_t *block, int n, int qscale);
6158
62−//#define DEBUG
63−
64−
6559 static const uint8_t ff_default_chroma_qscale_table[32] = {
6660 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
6761 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
libavcodec/mpegvideo_enc.c+0−5
@@ -51,17 +51,12 @@ · 50 unmodified lines
5151 #include "bytestream.h"
5252 #include <limits.h>
5353
54−//#undef NDEBUG
55−//#include <assert.h>
56−
5754 static int encode_picture(MpegEncContext *s, int picture_number);
5855 static int dct_quantize_refine(MpegEncContext *s, int16_t *block, int16_t *weight, int16_t *orig, int n, int qscale);
5956 static int sse_mb(MpegEncContext *s);
6057 static void denoise_dct_c(MpegEncContext *s, int16_t *block);
6158 static int dct_quantize_trellis_c(MpegEncContext *s, int16_t *block, int n, int qscale, int *overflow);
6259
63−//#define DEBUG
64−
6560 static uint8_t default_mv_penalty[MAX_FCODE + 1][MAX_MV * 2 + 1];
6661 static uint8_t default_fcode_tab[MAX_MV * 2 + 1];
6762
libavcodec/msmpeg4.c+0−1
@@ -44,7 +44,6 @@ · 43 unmodified lines
4444 * - (encoding) select best mv table (two choices)
4545 * - (encoding) select best vlc/dc table
4646 */
47−//#define DEBUG
4847
4948 /* This table is practically identical to the one from h263
5049 * except that it is inverted. */
libavcodec/pngdec.c+0−2
@@ -31,8 +31,6 @@ · 30 unmodified lines
3131
3232 #include <zlib.h>
3333
34−//#define DEBUG
35−
3634 typedef struct PNGDecContext {
3735 PNGDSPContext dsp;
3836
libavcodec/pngenc.c+0−2
@@ -29,8 +29,6 @@ · 28 unmodified lines
2929
3030 #include <zlib.h>
3131
32−//#define DEBUG
33−
3432 #define IOBUF_SIZE 4096
3533
3634 typedef struct PNGEncContext {
libavcodec/rv10.c+0−2
@@ -32,8 +32,6 @@ · 31 unmodified lines
3232 #include "mpeg4video.h"
3333 #include "h263.h"
3434
35−//#define DEBUG
36−
3735 #define RV_GET_MAJOR_VER(x) ((x) >> 28)
3836 #define RV_GET_MINOR_VER(x) (((x) >> 20) & 0xFF)
3937 #define RV_GET_MICRO_VER(x) (((x) >> 12) & 0xFF)
libavcodec/rv34.c+0−2
@@ -39,8 +39,6 @@ · 38 unmodified lines
3939 #include "rv34data.h"
4040 #include "rv34.h"
4141
42−//#define DEBUG
43−
4442 static inline void ZERO8x2(void* dst, int stride)
4543 {
4644 fill_rectangle(dst, 1, 2, stride, 0, 4);
libavcodec/tta.c+0−1
@@ -28,7 +28,6 @@ · 27 unmodified lines
2828 */
2929
3030 #define BITSTREAM_READER_LE
31−//#define DEBUG
3231 #include <limits.h>
3332 #include "avcodec.h"
3433 #include "get_bits.h"
libavdevice/fbdev.c+0−2
@@ -27,8 +27,6 @@ · 26 unmodified lines
2727 * @see http://linux-fbdev.sourceforge.net/
2828 */
2929
30−/* #define DEBUG */
31−
3230 #include <unistd.h>
3331 #include <fcntl.h>
3432 #include <sys/ioctl.h>
libavfilter/avfilter.c+0−2
@@ -19,8 +19,6 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22−/* #define DEBUG */
23−
2422 #include "libavutil/avstring.h"
2523 #include "libavutil/channel_layout.h"
2624 #include "libavutil/common.h"
libavfilter/setpts.c+0−2
@@ -24,8 +24,6 @@ · 23 unmodified lines
2424 * video presentation timestamp (PTS) modification filter
2525 */
2626
27−/* #define DEBUG */
28−
2927 #include "libavutil/eval.h"
3028 #include "libavutil/internal.h"
3129 #include "libavutil/mathematics.h"
libavfilter/vf_crop.c+0−2
@@ -23,8 +23,6 @@ · 22 unmodified lines
2323 * video crop filter
2424 */
2525
26−/* #define DEBUG */
27−
2826 #include <stdio.h>
2927
3028 #include "avfilter.h"
libavfilter/vf_fieldorder.c+0−2
@@ -23,8 +23,6 @@ · 22 unmodified lines
2323 * video field order filter, heavily influenced by vf_pad.c
2424 */
2525
26−/* #define DEBUG */
27−
2826 #include <stdio.h>
2927 #include <string.h>
3028
libavfilter/vf_frei0r.c+0−2
@@ -22,8 +22,6 @@ · 21 unmodified lines
2222 * frei0r wrapper
2323 */
2424
25−/* #define DEBUG */
26−
2725 #include <dlfcn.h>
2826 #include <frei0r.h>
2927 #include <stdio.h>
libavfilter/vf_libopencv.c+0−2
@@ -23,8 +23,6 @@ · 22 unmodified lines
2323 * libopencv wrapper functions
2424 */
2525
26−/* #define DEBUG */
27−
2826 #include <opencv/cv.h>
2927 #include <opencv/cxcore.h>
3028 #include "libavutil/avstring.h"
libavfilter/vsrc_movie.c+0−2
@@ -28,8 +28,6 @@ · 27 unmodified lines
2828 * @todo support more than one output stream
2929 */
3030
31−/* #define DEBUG */
32−
3331 #include <float.h>
3432
3533 #include "libavutil/attributes.h"
libavformat/asfdec.c+0−2
@@ -19,8 +19,6 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22−//#define DEBUG
23−
2422 #include "libavutil/attributes.h"
2523 #include "libavutil/avassert.h"
2624 #include "libavutil/avstring.h"
libavformat/isom.c+0−2
@@ -21,8 +21,6 @@ · 20 unmodified lines
2121 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2222 */
2323
24−//#define DEBUG
25−
2624 #include "avformat.h"
2725 #include "internal.h"
2826 #include "isom.h"
libavformat/mov.c+0−1
@@ -25,7 +25,6 @@ · 24 unmodified lines
2525
2626 #include <limits.h>
2727
28−//#define DEBUG
2928 //#define MOV_EXPORT_ALL_METADATA
3029
3130 #include "libavutil/attributes.h"
libavformat/mux.c+0−2
@@ -19,8 +19,6 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22−/* #define DEBUG */
23−
2422 #include "avformat.h"
2523 #include "avio_internal.h"
2624 #include "internal.h"
libavformat/mxfdec.c+0−2
@@ -43,8 +43,6 @@ · 42 unmodified lines
4343 * Only tracks with associated descriptors will be decoded. "Highly Desirable" SMPTE 377M D.1
4444 */
4545
46−//#define DEBUG
47−
4846 #include "libavutil/aes.h"
4947 #include "libavutil/mathematics.h"
5048 #include "libavcodec/bytestream.h"
libavformat/mxfenc.c+0−2
@@ -30,8 +30,6 @@ · 29 unmodified lines
3030 * SMPTE RP224: Registry of SMPTE Universal Labels
3131 */
3232
33−//#define DEBUG
34−
3533 #include <inttypes.h>
3634 #include <math.h>
3735 #include <time.h>
libavformat/r3d.c+0−2
@@ -19,8 +19,6 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22−//#define DEBUG
23−
2422 #include "libavutil/intreadwrite.h"
2523 #include "libavutil/dict.h"
2624 #include "libavutil/mathematics.h"
libavformat/rtmpproto.c+0−2
@@ -48,8 +48,6 @@ · 47 unmodified lines
4848 #include <zlib.h>
4949 #endif
5050
51−//#define DEBUG
52−
5351 #define APP_MAX_LENGTH 128
5452 #define PLAYPATH_MAX_LENGTH 256
5553 #define TCURL_MAX_LENGTH 512
libavformat/rtpenc.c+0−2
@@ -28,8 +28,6 @@ · 27 unmodified lines
2828
2929 #include "rtpenc.h"
3030
31−//#define DEBUG
32−
3331 static const AVOption options[] = {
3432 FF_RTP_FLAG_OPTS(RTPMuxContext, flags),
3533 { "payload_type", "Specify RTP payload type", offsetof(RTPMuxContext, payload_type), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 127, AV_OPT_FLAG_ENCODING_PARAM },
libavformat/rtsp.c+0−2
@@ -48,8 +48,6 @@ · 47 unmodified lines
4848 #include "rtpenc.h"
4949 #include "mpegts.h"
5050
51−//#define DEBUG
52−
5351 /* Timeout values for socket poll, in ms,
5452 * and read_packet(), in seconds */
5553 #define POLL_TIMEOUT_MS 100
libavformat/utils.c+0−2
@@ -19,8 +19,6 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22−/* #define DEBUG */
23−
2422 #include "avformat.h"
2523 #include "avio_internal.h"
2624 #include "internal.h"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t