comparison avcodec.h @ 745:25d7fb7c89be libavcodec

better/cleaner error resilience (done in a 2nd pass after decoding) h263/mpeg4 out of order slice decoding
author michaelni
date Sun, 13 Oct 2002 13:16:04 +0000
parents 7da52fc20726
children 3d4377531f6c
comparison
equal deleted inserted replaced
744:2f7da29ede37 745:25d7fb7c89be
3 3
4 #include "common.h" 4 #include "common.h"
5 5
6 #define LIBAVCODEC_VERSION_INT 0x000406 6 #define LIBAVCODEC_VERSION_INT 0x000406
7 #define LIBAVCODEC_VERSION "0.4.6" 7 #define LIBAVCODEC_VERSION "0.4.6"
8 #define LIBAVCODEC_BUILD 4630 8 #define LIBAVCODEC_BUILD 4631
9 #define LIBAVCODEC_BUILD_STR "4630" 9 #define LIBAVCODEC_BUILD_STR "4631"
10 10
11 enum CodecID { 11 enum CodecID {
12 CODEC_ID_NONE, 12 CODEC_ID_NONE,
13 CODEC_ID_MPEG1VIDEO, 13 CODEC_ID_MPEG1VIDEO,
14 CODEC_ID_H263, 14 CODEC_ID_H263,
412 enum CodecType codec_type; /* see CODEC_TYPE_xxx */ 412 enum CodecType codec_type; /* see CODEC_TYPE_xxx */
413 enum CodecID codec_id; /* see CODEC_ID_xxx */ 413 enum CodecID codec_id; /* see CODEC_ID_xxx */
414 unsigned int codec_tag; /* codec tag, only used if unknown codec */ 414 unsigned int codec_tag; /* codec tag, only used if unknown codec */
415 415
416 /** 416 /**
417 * workaround bugs in encoders which cannot be detected automatically 417 * workaround bugs in encoders which sometimes cannot be detected automatically
418 * encoding: unused 418 * encoding: unused
419 * decoding: set by user 419 * decoding: set by user
420 */ 420 */
421 int workaround_bugs; 421 int workaround_bugs;
422 422 #define FF_BUG_AUTODETECT 1 //autodetection
423 #define FF_BUG_OLD_MSMPEG4 2
424 #define FF_BUG_XVID_ILACE 4
425 #define FF_BUG_UMP4 8
426 #define FF_BUG_NO_PADDING 16
427 #define FF_BUG_AC_VLC 32
428 //#define FF_BUG_FAKE_SCALABILITY 16 //autodetection should work 100%
429
423 /** 430 /**
424 * encoding: set by user 431 * encoding: set by user
425 * decoding: unused 432 * decoding: unused
426 */ 433 */
427 int luma_elim_threshold; 434 int luma_elim_threshold;
712 * slice offsets in the frame in bytes 719 * slice offsets in the frame in bytes
713 * encoding: set/allocated by lavc 720 * encoding: set/allocated by lavc
714 * decoding: set/allocated by user (or NULL) 721 * decoding: set/allocated by user (or NULL)
715 */ 722 */
716 int *slice_offset; 723 int *slice_offset;
724
725 /**
726 * error concealment flags
727 * encoding: unused
728 * decoding: set by user
729 */
730 int error_concealment;
731 #define FF_EC_GUESS_MVS 1
732 #define FF_EC_DEBLOCK 2
717 733
718 //FIXME this should be reordered after kabis API is finished ... 734 //FIXME this should be reordered after kabis API is finished ...
719 //TODO kill kabi 735 //TODO kill kabi
720 /* 736 /*
721 Note: Below are located reserved fields for further usage 737 Note: Below are located reserved fields for further usage