Unified · Split
| @@ -32,9 +32,6 @@ · 31 unmodified lines | |||
| 32 | #include "get_bits.h" | 32 | #include "get_bits.h" |
| 33 | #include "internal.h" | 33 | #include "internal.h" |
| 34 | 34 | ||
| 35 | //#undef NDEBUG | ||
| 36 | //#include <assert.h> | ||
| 37 | |||
| 38 | #define BLOCK_TYPE_VLC_BITS 5 | 35 | #define BLOCK_TYPE_VLC_BITS 5 |
| 39 | #define ACDC_VLC_BITS 9 | 36 | #define ACDC_VLC_BITS 9 |
| 40 | 37 | ||
| @@ -26,8 +26,6 @@ · 25 unmodified lines | |||
| 26 | * The simplest AC-3 encoder. | 26 | * The simplest AC-3 encoder. |
| 27 | */ | 27 | */ |
| 28 | 28 | ||
| 29 | //#define ASSERT_LEVEL 2 | ||
| 30 | |||
| 31 | #include <stdint.h> | 29 | #include <stdint.h> |
| 32 | 30 | ||
| 33 | #include "libavutil/attributes.h" | 31 | #include "libavutil/attributes.h" |
| @@ -25,10 +25,6 @@ · 24 unmodified lines | |||
| 25 | * @author Thilo Borgmann <thilo.borgmann _at_ googlemail.com> | 25 | * @author Thilo Borgmann <thilo.borgmann _at_ googlemail.com> |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | |||
| 29 | //#define DEBUG | ||
| 30 | |||
| 31 | |||
| 32 | #include "avcodec.h" | 28 | #include "avcodec.h" |
| 33 | #include "get_bits.h" | 29 | #include "get_bits.h" |
| 34 | #include "unary.h" | 30 | #include "unary.h" |
| @@ -33,9 +33,6 @@ · 32 unmodified lines | |||
| 33 | #include "mathops.h" | 33 | #include "mathops.h" |
| 34 | #include "mpeg12data.h" | 34 | #include "mpeg12data.h" |
| 35 | 35 | ||
| 36 | //#undef NDEBUG | ||
| 37 | //#include <assert.h> | ||
| 38 | |||
| 39 | #define VLC_BITS 6 | 36 | #define VLC_BITS 6 |
| 40 | #define ASV2_LEVEL_VLC_BITS 10 | 37 | #define ASV2_LEVEL_VLC_BITS 10 |
| 41 | 38 | ||
| @@ -22,9 +22,6 @@ · 21 unmodified lines | |||
| 22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | //#define TRACE | ||
| 26 | //#define DEBUG | ||
| 27 | |||
| 28 | #include "libavutil/imgutils.h" | 25 | #include "libavutil/imgutils.h" |
| 29 | #include "avcodec.h" | 26 | #include "avcodec.h" |
| 30 | #include "get_bits.h" | 27 | #include "get_bits.h" |
| @@ -23,7 +23,6 @@ · 22 unmodified lines | |||
| 23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 24 | */ | 24 | */ |
| 25 | 25 | ||
| 26 | //#define DEBUG | ||
| 27 | #define RC_VARIANCE 1 // use variance or ssd for fast rc | 26 | #define RC_VARIANCE 1 // use variance or ssd for fast rc |
| 28 | 27 | ||
| 29 | #include "libavutil/attributes.h" | 28 | #include "libavutil/attributes.h" |
| @@ -34,9 +34,6 @@ · 33 unmodified lines | |||
| 34 | #include "avcodec.h" | 34 | #include "avcodec.h" |
| 35 | #include "rnd_avg.h" | 35 | #include "rnd_avg.h" |
| 36 | 36 | ||
| 37 | |||
| 38 | //#define DEBUG | ||
| 39 | |||
| 40 | /* encoding scans */ | 37 | /* encoding scans */ |
| 41 | extern const uint8_t ff_alternate_horizontal_scan[64]; | 38 | extern const uint8_t ff_alternate_horizontal_scan[64]; |
| 42 | extern const uint8_t ff_alternate_vertical_scan[64]; | 39 | extern const uint8_t ff_alternate_vertical_scan[64]; |
| @@ -26,8 +26,6 @@ · 25 unmodified lines | |||
| 26 | #include "libavutil/imgutils.h" | 26 | #include "libavutil/imgutils.h" |
| 27 | #include "libavutil/avstring.h" | 27 | #include "libavutil/avstring.h" |
| 28 | 28 | ||
| 29 | //#define DEBUG | ||
| 30 | |||
| 31 | typedef struct DVDSubContext { | 29 | typedef struct DVDSubContext { |
| 32 | uint32_t palette[16]; | 30 | uint32_t palette[16]; |
| 33 | int has_palette; | 31 | int has_palette; |
| @@ -20,8 +20,6 @@ · 19 unmodified lines | |||
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | //#define DEBUG | ||
| 24 | |||
| 25 | #include "libavutil/imgutils.h" | 23 | #include "libavutil/imgutils.h" |
| 26 | #include "avcodec.h" | 24 | #include "avcodec.h" |
| 27 | #include "bytestream.h" | 25 | #include "bytestream.h" |
| @@ -27,7 +27,6 @@ · 26 unmodified lines | |||
| 27 | * h263/mpeg4 codec. | 27 | * h263/mpeg4 codec. |
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | //#define DEBUG | ||
| 31 | #include <limits.h> | 30 | #include <limits.h> |
| 32 | 31 | ||
| 33 | #include "avcodec.h" | 32 | #include "avcodec.h" |
| @@ -39,8 +38,6 @@ · 5 unmodified lines | |||
| 39 | #include "flv.h" | 38 | #include "flv.h" |
| 40 | #include "mpeg4video.h" | 39 | #include "mpeg4video.h" |
| 41 | 40 | ||
| 42 | //#undef NDEBUG | ||
| 43 | //#include <assert.h> | ||
| 44 | 41 | ||
| 45 | uint8_t ff_h263_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3]; | 42 | uint8_t ff_h263_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3]; |
| 46 | 43 | ||
| @@ -39,8 +39,6 @@ · 38 unmodified lines | |||
| 39 | #include "flv.h" | 39 | #include "flv.h" |
| 40 | #include "mpeg4video.h" | 40 | #include "mpeg4video.h" |
| 41 | 41 | ||
| 42 | //#define DEBUG | ||
| 43 | |||
| 44 | av_cold int ff_h263_decode_init(AVCodecContext *avctx) | 42 | av_cold int ff_h263_decode_init(AVCodecContext *avctx) |
| 45 | { | 43 | { |
| 46 | MpegEncContext *s = avctx->priv_data; | 44 | MpegEncContext *s = avctx->priv_data; |
| @@ -27,7 +27,6 @@ · 26 unmodified lines | |||
| 27 | * h263 decoder. | 27 | * h263 decoder. |
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | //#define DEBUG | ||
| 31 | #include <limits.h> | 30 | #include <limits.h> |
| 32 | 31 | ||
| 33 | #include "libavutil/attributes.h" | 32 | #include "libavutil/attributes.h" |
| @@ -41,9 +40,6 @@ · 7 unmodified lines | |||
| 41 | #include "flv.h" | 40 | #include "flv.h" |
| 42 | #include "mpeg4video.h" | 41 | #include "mpeg4video.h" |
| 43 | 42 | ||
| 44 | //#undef NDEBUG | ||
| 45 | //#include <assert.h> | ||
| 46 | |||
| 47 | // The defines below define the number of bits that are read at once for | 43 | // The defines below define the number of bits that are read at once for |
| 48 | // reading vlc values. Changing these may improve speed and data cache needs | 44 | // reading vlc values. Changing these may improve speed and data cache needs |
| 49 | // be aware though that decreasing them may need the number of stages that is | 45 | // be aware though that decreasing them may need the number of stages that is |
| @@ -27,7 +27,6 @@ · 26 unmodified lines | |||
| 27 | * h263 bitstream encoder. | 27 | * h263 bitstream encoder. |
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | //#define DEBUG | ||
| 31 | #include <limits.h> | 30 | #include <limits.h> |
| 32 | 31 | ||
| 33 | #include "libavutil/attributes.h" | 32 | #include "libavutil/attributes.h" |
| @@ -40,9 +39,6 @@ · 6 unmodified lines | |||
| 40 | #include "mpeg4video.h" | 39 | #include "mpeg4video.h" |
| 41 | #include "internal.h" | 40 | #include "internal.h" |
| 42 | 41 | ||
| 43 | //#undef NDEBUG | ||
| 44 | //#include <assert.h> | ||
| 45 | |||
| 46 | /** | 42 | /** |
| 47 | * Table of number of bits a motion vector component needs. | 43 | * Table of number of bits a motion vector component needs. |
| 48 | */ | 44 | */ |
| @@ -25,7 +25,6 @@ · 24 unmodified lines | |||
| 25 | * MPEG-1/2 decoder | 25 | * MPEG-1/2 decoder |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | //#define DEBUG | ||
| 29 | #include "libavutil/attributes.h" | 28 | #include "libavutil/attributes.h" |
| 30 | #include "internal.h" | 29 | #include "internal.h" |
| 31 | #include "avcodec.h" | 30 | #include "avcodec.h" |
| @@ -40,9 +39,6 @@ · 8 unmodified lines | |||
| 40 | #include "xvmc_internal.h" | 39 | #include "xvmc_internal.h" |
| 41 | #include "thread.h" | 40 | #include "thread.h" |
| 42 | 41 | ||
| 43 | //#undef NDEBUG | ||
| 44 | //#include <assert.h> | ||
| 45 | |||
| 46 | uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3]; | 42 | uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3]; |
| 47 | 43 | ||
| 48 | #define INIT_2D_VLC_RL(rl, static_size)\ | 44 | #define INIT_2D_VLC_RL(rl, static_size)\ |
| @@ -25,7 +25,6 @@ · 24 unmodified lines | |||
| 25 | * MPEG-1/2 decoder | 25 | * MPEG-1/2 decoder |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | //#define DEBUG | ||
| 29 | #include "libavutil/attributes.h" | 28 | #include "libavutil/attributes.h" |
| 30 | #include "libavutil/internal.h" | 29 | #include "libavutil/internal.h" |
| 31 | #include "internal.h" | 30 | #include "internal.h" |
| @@ -41,9 +40,6 @@ · 9 unmodified lines | |||
| 41 | #include "xvmc_internal.h" | 40 | #include "xvmc_internal.h" |
| 42 | #include "thread.h" | 41 | #include "thread.h" |
| 43 | 42 | ||
| 44 | //#undef NDEBUG | ||
| 45 | //#include <assert.h> | ||
| 46 | |||
| 47 | typedef struct Mpeg1Context { | 43 | typedef struct Mpeg1Context { |
| 48 | MpegEncContext mpeg_enc_ctx; | 44 | MpegEncContext mpeg_enc_ctx; |
| 49 | int mpeg_enc_ctx_allocated; /* true if decoding context allocated */ | 45 | int mpeg_enc_ctx_allocated; /* true if decoding context allocated */ |
| @@ -24,7 +24,6 @@ · 23 unmodified lines | |||
| 24 | * MPEG Audio header decoder. | 24 | * MPEG Audio header decoder. |
| 25 | */ | 25 | */ |
| 26 | 26 | ||
| 27 | //#define DEBUG | ||
| 28 | #include "avcodec.h" | 27 | #include "avcodec.h" |
| 29 | #include "mpegaudio.h" | 28 | #include "mpegaudio.h" |
| 30 | #include "mpegaudiodata.h" | 29 | #include "mpegaudiodata.h" |
| @@ -41,9 +41,6 @@ · 40 unmodified lines | |||
| 41 | #include "thread.h" | 41 | #include "thread.h" |
| 42 | #include <limits.h> | 42 | #include <limits.h> |
| 43 | 43 | ||
| 44 | //#undef NDEBUG | ||
| 45 | //#include <assert.h> | ||
| 46 | |||
| 47 | static void dct_unquantize_mpeg1_intra_c(MpegEncContext *s, | 44 | static void dct_unquantize_mpeg1_intra_c(MpegEncContext *s, |
| 48 | int16_t *block, int n, int qscale); | 45 | int16_t *block, int n, int qscale); |
| 49 | static void dct_unquantize_mpeg1_inter_c(MpegEncContext *s, | 46 | 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 | |||
| 59 | static void dct_unquantize_h263_inter_c(MpegEncContext *s, | 56 | static void dct_unquantize_h263_inter_c(MpegEncContext *s, |
| 60 | int16_t *block, int n, int qscale); | 57 | int16_t *block, int n, int qscale); |
| 61 | 58 | ||
| 62 | //#define DEBUG | ||
| 63 | |||
| 64 | |||
| 65 | static const uint8_t ff_default_chroma_qscale_table[32] = { | 59 | static const uint8_t ff_default_chroma_qscale_table[32] = { |
| 66 | // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 60 | // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
| 67 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, | 61 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, |
| @@ -51,17 +51,12 @@ · 50 unmodified lines | |||
| 51 | #include "bytestream.h" | 51 | #include "bytestream.h" |
| 52 | #include <limits.h> | 52 | #include <limits.h> |
| 53 | 53 | ||
| 54 | //#undef NDEBUG | ||
| 55 | //#include <assert.h> | ||
| 56 | |||
| 57 | static int encode_picture(MpegEncContext *s, int picture_number); | 54 | static int encode_picture(MpegEncContext *s, int picture_number); |
| 58 | static int dct_quantize_refine(MpegEncContext *s, int16_t *block, int16_t *weight, int16_t *orig, int n, int qscale); | 55 | static int dct_quantize_refine(MpegEncContext *s, int16_t *block, int16_t *weight, int16_t *orig, int n, int qscale); |
| 59 | static int sse_mb(MpegEncContext *s); | 56 | static int sse_mb(MpegEncContext *s); |
| 60 | static void denoise_dct_c(MpegEncContext *s, int16_t *block); | 57 | static void denoise_dct_c(MpegEncContext *s, int16_t *block); |
| 61 | static int dct_quantize_trellis_c(MpegEncContext *s, int16_t *block, int n, int qscale, int *overflow); | 58 | static int dct_quantize_trellis_c(MpegEncContext *s, int16_t *block, int n, int qscale, int *overflow); |
| 62 | 59 | ||
| 63 | //#define DEBUG | ||
| 64 | |||
| 65 | static uint8_t default_mv_penalty[MAX_FCODE + 1][MAX_MV * 2 + 1]; | 60 | static uint8_t default_mv_penalty[MAX_FCODE + 1][MAX_MV * 2 + 1]; |
| 66 | static uint8_t default_fcode_tab[MAX_MV * 2 + 1]; | 61 | static uint8_t default_fcode_tab[MAX_MV * 2 + 1]; |
| 67 | 62 | ||
| @@ -44,7 +44,6 @@ · 43 unmodified lines | |||
| 44 | * - (encoding) select best mv table (two choices) | 44 | * - (encoding) select best mv table (two choices) |
| 45 | * - (encoding) select best vlc/dc table | 45 | * - (encoding) select best vlc/dc table |
| 46 | */ | 46 | */ |
| 47 | //#define DEBUG | ||
| 48 | 47 | ||
| 49 | /* This table is practically identical to the one from h263 | 48 | /* This table is practically identical to the one from h263 |
| 50 | * except that it is inverted. */ | 49 | * except that it is inverted. */ |
| @@ -31,8 +31,6 @@ · 30 unmodified lines | |||
| 31 | 31 | ||
| 32 | #include <zlib.h> | 32 | #include <zlib.h> |
| 33 | 33 | ||
| 34 | //#define DEBUG | ||
| 35 | |||
| 36 | typedef struct PNGDecContext { | 34 | typedef struct PNGDecContext { |
| 37 | PNGDSPContext dsp; | 35 | PNGDSPContext dsp; |
| 38 | 36 | ||
| @@ -29,8 +29,6 @@ · 28 unmodified lines | |||
| 29 | 29 | ||
| 30 | #include <zlib.h> | 30 | #include <zlib.h> |
| 31 | 31 | ||
| 32 | //#define DEBUG | ||
| 33 | |||
| 34 | #define IOBUF_SIZE 4096 | 32 | #define IOBUF_SIZE 4096 |
| 35 | 33 | ||
| 36 | typedef struct PNGEncContext { | 34 | typedef struct PNGEncContext { |
| @@ -32,8 +32,6 @@ · 31 unmodified lines | |||
| 32 | #include "mpeg4video.h" | 32 | #include "mpeg4video.h" |
| 33 | #include "h263.h" | 33 | #include "h263.h" |
| 34 | 34 | ||
| 35 | //#define DEBUG | ||
| 36 | |||
| 37 | #define RV_GET_MAJOR_VER(x) ((x) >> 28) | 35 | #define RV_GET_MAJOR_VER(x) ((x) >> 28) |
| 38 | #define RV_GET_MINOR_VER(x) (((x) >> 20) & 0xFF) | 36 | #define RV_GET_MINOR_VER(x) (((x) >> 20) & 0xFF) |
| 39 | #define RV_GET_MICRO_VER(x) (((x) >> 12) & 0xFF) | 37 | #define RV_GET_MICRO_VER(x) (((x) >> 12) & 0xFF) |
| @@ -39,8 +39,6 @@ · 38 unmodified lines | |||
| 39 | #include "rv34data.h" | 39 | #include "rv34data.h" |
| 40 | #include "rv34.h" | 40 | #include "rv34.h" |
| 41 | 41 | ||
| 42 | //#define DEBUG | ||
| 43 | |||
| 44 | static inline void ZERO8x2(void* dst, int stride) | 42 | static inline void ZERO8x2(void* dst, int stride) |
| 45 | { | 43 | { |
| 46 | fill_rectangle(dst, 1, 2, stride, 0, 4); | 44 | fill_rectangle(dst, 1, 2, stride, 0, 4); |
| @@ -28,7 +28,6 @@ · 27 unmodified lines | |||
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | #define BITSTREAM_READER_LE | 30 | #define BITSTREAM_READER_LE |
| 31 | //#define DEBUG | ||
| 32 | #include <limits.h> | 31 | #include <limits.h> |
| 33 | #include "avcodec.h" | 32 | #include "avcodec.h" |
| 34 | #include "get_bits.h" | 33 | #include "get_bits.h" |
| @@ -27,8 +27,6 @@ · 26 unmodified lines | |||
| 27 | * @see http://linux-fbdev.sourceforge.net/ | 27 | * @see http://linux-fbdev.sourceforge.net/ |
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | /* #define DEBUG */ | ||
| 31 | |||
| 32 | #include <unistd.h> | 30 | #include <unistd.h> |
| 33 | #include <fcntl.h> | 31 | #include <fcntl.h> |
| 34 | #include <sys/ioctl.h> | 32 | #include <sys/ioctl.h> |
| @@ -19,8 +19,6 @@ · 18 unmodified lines | |||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | /* #define DEBUG */ | ||
| 23 | |||
| 24 | #include "libavutil/avstring.h" | 22 | #include "libavutil/avstring.h" |
| 25 | #include "libavutil/channel_layout.h" | 23 | #include "libavutil/channel_layout.h" |
| 26 | #include "libavutil/common.h" | 24 | #include "libavutil/common.h" |
| @@ -24,8 +24,6 @@ · 23 unmodified lines | |||
| 24 | * video presentation timestamp (PTS) modification filter | 24 | * video presentation timestamp (PTS) modification filter |
| 25 | */ | 25 | */ |
| 26 | 26 | ||
| 27 | /* #define DEBUG */ | ||
| 28 | |||
| 29 | #include "libavutil/eval.h" | 27 | #include "libavutil/eval.h" |
| 30 | #include "libavutil/internal.h" | 28 | #include "libavutil/internal.h" |
| 31 | #include "libavutil/mathematics.h" | 29 | #include "libavutil/mathematics.h" |
| @@ -23,8 +23,6 @@ · 22 unmodified lines | |||
| 23 | * video crop filter | 23 | * video crop filter |
| 24 | */ | 24 | */ |
| 25 | 25 | ||
| 26 | /* #define DEBUG */ | ||
| 27 | |||
| 28 | #include <stdio.h> | 26 | #include <stdio.h> |
| 29 | 27 | ||
| 30 | #include "avfilter.h" | 28 | #include "avfilter.h" |
| @@ -23,8 +23,6 @@ · 22 unmodified lines | |||
| 23 | * video field order filter, heavily influenced by vf_pad.c | 23 | * video field order filter, heavily influenced by vf_pad.c |
| 24 | */ | 24 | */ |
| 25 | 25 | ||
| 26 | /* #define DEBUG */ | ||
| 27 | |||
| 28 | #include <stdio.h> | 26 | #include <stdio.h> |
| 29 | #include <string.h> | 27 | #include <string.h> |
| 30 | 28 | ||
| @@ -22,8 +22,6 @@ · 21 unmodified lines | |||
| 22 | * frei0r wrapper | 22 | * frei0r wrapper |
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | /* #define DEBUG */ | ||
| 26 | |||
| 27 | #include <dlfcn.h> | 25 | #include <dlfcn.h> |
| 28 | #include <frei0r.h> | 26 | #include <frei0r.h> |
| 29 | #include <stdio.h> | 27 | #include <stdio.h> |
| @@ -23,8 +23,6 @@ · 22 unmodified lines | |||
| 23 | * libopencv wrapper functions | 23 | * libopencv wrapper functions |
| 24 | */ | 24 | */ |
| 25 | 25 | ||
| 26 | /* #define DEBUG */ | ||
| 27 | |||
| 28 | #include <opencv/cv.h> | 26 | #include <opencv/cv.h> |
| 29 | #include <opencv/cxcore.h> | 27 | #include <opencv/cxcore.h> |
| 30 | #include "libavutil/avstring.h" | 28 | #include "libavutil/avstring.h" |
| @@ -28,8 +28,6 @@ · 27 unmodified lines | |||
| 28 | * @todo support more than one output stream | 28 | * @todo support more than one output stream |
| 29 | */ | 29 | */ |
| 30 | 30 | ||
| 31 | /* #define DEBUG */ | ||
| 32 | |||
| 33 | #include <float.h> | 31 | #include <float.h> |
| 34 | 32 | ||
| 35 | #include "libavutil/attributes.h" | 33 | #include "libavutil/attributes.h" |
| @@ -19,8 +19,6 @@ · 18 unmodified lines | |||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | //#define DEBUG | ||
| 23 | |||
| 24 | #include "libavutil/attributes.h" | 22 | #include "libavutil/attributes.h" |
| 25 | #include "libavutil/avassert.h" | 23 | #include "libavutil/avassert.h" |
| 26 | #include "libavutil/avstring.h" | 24 | #include "libavutil/avstring.h" |
| @@ -21,8 +21,6 @@ · 20 unmodified lines | |||
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 | */ | 22 | */ |
| 23 | 23 | ||
| 24 | //#define DEBUG | ||
| 25 | |||
| 26 | #include "avformat.h" | 24 | #include "avformat.h" |
| 27 | #include "internal.h" | 25 | #include "internal.h" |
| 28 | #include "isom.h" | 26 | #include "isom.h" |
| @@ -25,7 +25,6 @@ · 24 unmodified lines | |||
| 25 | 25 | ||
| 26 | #include <limits.h> | 26 | #include <limits.h> |
| 27 | 27 | ||
| 28 | //#define DEBUG | ||
| 29 | //#define MOV_EXPORT_ALL_METADATA | 28 | //#define MOV_EXPORT_ALL_METADATA |
| 30 | 29 | ||
| 31 | #include "libavutil/attributes.h" | 30 | #include "libavutil/attributes.h" |
| @@ -19,8 +19,6 @@ · 18 unmodified lines | |||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | /* #define DEBUG */ | ||
| 23 | |||
| 24 | #include "avformat.h" | 22 | #include "avformat.h" |
| 25 | #include "avio_internal.h" | 23 | #include "avio_internal.h" |
| 26 | #include "internal.h" | 24 | #include "internal.h" |
| @@ -43,8 +43,6 @@ · 42 unmodified lines | |||
| 43 | * Only tracks with associated descriptors will be decoded. "Highly Desirable" SMPTE 377M D.1 | 43 | * Only tracks with associated descriptors will be decoded. "Highly Desirable" SMPTE 377M D.1 |
| 44 | */ | 44 | */ |
| 45 | 45 | ||
| 46 | //#define DEBUG | ||
| 47 | |||
| 48 | #include "libavutil/aes.h" | 46 | #include "libavutil/aes.h" |
| 49 | #include "libavutil/mathematics.h" | 47 | #include "libavutil/mathematics.h" |
| 50 | #include "libavcodec/bytestream.h" | 48 | #include "libavcodec/bytestream.h" |
| @@ -30,8 +30,6 @@ · 29 unmodified lines | |||
| 30 | * SMPTE RP224: Registry of SMPTE Universal Labels | 30 | * SMPTE RP224: Registry of SMPTE Universal Labels |
| 31 | */ | 31 | */ |
| 32 | 32 | ||
| 33 | //#define DEBUG | ||
| 34 | |||
| 35 | #include <inttypes.h> | 33 | #include <inttypes.h> |
| 36 | #include <math.h> | 34 | #include <math.h> |
| 37 | #include <time.h> | 35 | #include <time.h> |
| @@ -19,8 +19,6 @@ · 18 unmodified lines | |||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | //#define DEBUG | ||
| 23 | |||
| 24 | #include "libavutil/intreadwrite.h" | 22 | #include "libavutil/intreadwrite.h" |
| 25 | #include "libavutil/dict.h" | 23 | #include "libavutil/dict.h" |
| 26 | #include "libavutil/mathematics.h" | 24 | #include "libavutil/mathematics.h" |
| @@ -48,8 +48,6 @@ · 47 unmodified lines | |||
| 48 | #include <zlib.h> | 48 | #include <zlib.h> |
| 49 | #endif | 49 | #endif |
| 50 | 50 | ||
| 51 | //#define DEBUG | ||
| 52 | |||
| 53 | #define APP_MAX_LENGTH 128 | 51 | #define APP_MAX_LENGTH 128 |
| 54 | #define PLAYPATH_MAX_LENGTH 256 | 52 | #define PLAYPATH_MAX_LENGTH 256 |
| 55 | #define TCURL_MAX_LENGTH 512 | 53 | #define TCURL_MAX_LENGTH 512 |
| @@ -28,8 +28,6 @@ · 27 unmodified lines | |||
| 28 | 28 | ||
| 29 | #include "rtpenc.h" | 29 | #include "rtpenc.h" |
| 30 | 30 | ||
| 31 | //#define DEBUG | ||
| 32 | |||
| 33 | static const AVOption options[] = { | 31 | static const AVOption options[] = { |
| 34 | FF_RTP_FLAG_OPTS(RTPMuxContext, flags), | 32 | FF_RTP_FLAG_OPTS(RTPMuxContext, flags), |
| 35 | { "payload_type", "Specify RTP payload type", offsetof(RTPMuxContext, payload_type), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 127, AV_OPT_FLAG_ENCODING_PARAM }, | 33 | { "payload_type", "Specify RTP payload type", offsetof(RTPMuxContext, payload_type), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 127, AV_OPT_FLAG_ENCODING_PARAM }, |
| @@ -48,8 +48,6 @@ · 47 unmodified lines | |||
| 48 | #include "rtpenc.h" | 48 | #include "rtpenc.h" |
| 49 | #include "mpegts.h" | 49 | #include "mpegts.h" |
| 50 | 50 | ||
| 51 | //#define DEBUG | ||
| 52 | |||
| 53 | /* Timeout values for socket poll, in ms, | 51 | /* Timeout values for socket poll, in ms, |
| 54 | * and read_packet(), in seconds */ | 52 | * and read_packet(), in seconds */ |
| 55 | #define POLL_TIMEOUT_MS 100 | 53 | #define POLL_TIMEOUT_MS 100 |
| @@ -19,8 +19,6 @@ · 18 unmodified lines | |||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | /* #define DEBUG */ | ||
| 23 | |||
| 24 | #include "avformat.h" | 22 | #include "avformat.h" |
| 25 | #include "avio_internal.h" | 23 | #include "avio_internal.h" |
| 26 | #include "internal.h" | 24 | #include "internal.h" |