avcodec: add MobiClip video decoder

This commit is contained in:
Paul B Mahol 2020-08-25 12:34:32 +02:00
parent 1304078d3c
commit 7f95339319
8 changed files with 1437 additions and 1 deletions

View File

@ -17,6 +17,7 @@ version <next>:
- RPZA video encoder - RPZA video encoder
- ADPCM IMA MOFLEX decoder - ADPCM IMA MOFLEX decoder
- MobiClip FastAudio decoder - MobiClip FastAudio decoder
- MobiClip video decoder
version 4.3: version 4.3:

1
configure vendored
View File

@ -2770,6 +2770,7 @@ mjpeg_encoder_select="jpegtables mpegvideoenc"
mjpegb_decoder_select="mjpeg_decoder" mjpegb_decoder_select="mjpeg_decoder"
mlp_decoder_select="mlp_parser" mlp_decoder_select="mlp_parser"
mlp_encoder_select="lpc audio_frame_queue" mlp_encoder_select="lpc audio_frame_queue"
mobiclip_decoder_select="bswapdsp golomb"
motionpixels_decoder_select="bswapdsp" motionpixels_decoder_select="bswapdsp"
mp1_decoder_select="mpegaudio" mp1_decoder_select="mpegaudio"
mp1float_decoder_select="mpegaudio" mp1float_decoder_select="mpegaudio"

View File

@ -453,6 +453,7 @@ OBJS-$(CONFIG_MJPEG_VAAPI_ENCODER) += vaapi_encode_mjpeg.o
OBJS-$(CONFIG_MLP_DECODER) += mlpdec.o mlpdsp.o OBJS-$(CONFIG_MLP_DECODER) += mlpdec.o mlpdsp.o
OBJS-$(CONFIG_MLP_ENCODER) += mlpenc.o mlp.o OBJS-$(CONFIG_MLP_ENCODER) += mlpenc.o mlp.o
OBJS-$(CONFIG_MMVIDEO_DECODER) += mmvideo.o OBJS-$(CONFIG_MMVIDEO_DECODER) += mmvideo.o
OBJS-$(CONFIG_MOBICLIP_DECODER) += mobiclip.o
OBJS-$(CONFIG_MOTIONPIXELS_DECODER) += motionpixels.o OBJS-$(CONFIG_MOTIONPIXELS_DECODER) += motionpixels.o
OBJS-$(CONFIG_MOVTEXT_DECODER) += movtextdec.o ass.o OBJS-$(CONFIG_MOVTEXT_DECODER) += movtextdec.o ass.o
OBJS-$(CONFIG_MOVTEXT_ENCODER) += movtextenc.o ass_split.o OBJS-$(CONFIG_MOVTEXT_ENCODER) += movtextenc.o ass_split.o

View File

@ -186,6 +186,7 @@ extern AVCodec ff_mjpeg_encoder;
extern AVCodec ff_mjpeg_decoder; extern AVCodec ff_mjpeg_decoder;
extern AVCodec ff_mjpegb_decoder; extern AVCodec ff_mjpegb_decoder;
extern AVCodec ff_mmvideo_decoder; extern AVCodec ff_mmvideo_decoder;
extern AVCodec ff_mobiclip_decoder;
extern AVCodec ff_motionpixels_decoder; extern AVCodec ff_motionpixels_decoder;
extern AVCodec ff_mpeg1video_encoder; extern AVCodec ff_mpeg1video_encoder;
extern AVCodec ff_mpeg1video_decoder; extern AVCodec ff_mpeg1video_decoder;

View File

@ -1784,6 +1784,13 @@ static const AVCodecDescriptor codec_descriptors[] = {
.long_name = NULL_IF_CONFIG_SMALL("PFM (Portable FloatMap) image"), .long_name = NULL_IF_CONFIG_SMALL("PFM (Portable FloatMap) image"),
.props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS, .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS,
}, },
{
.id = AV_CODEC_ID_MOBICLIP,
.type = AVMEDIA_TYPE_VIDEO,
.name = "mobiclip",
.long_name = NULL_IF_CONFIG_SMALL("MobiClip Video"),
.props = AV_CODEC_PROP_LOSSY,
},
/* various PCM "codecs" */ /* various PCM "codecs" */
{ {

View File

@ -296,6 +296,7 @@ enum AVCodecID {
AV_CODEC_ID_MV30, AV_CODEC_ID_MV30,
AV_CODEC_ID_NOTCHLC, AV_CODEC_ID_NOTCHLC,
AV_CODEC_ID_PFM, AV_CODEC_ID_PFM,
AV_CODEC_ID_MOBICLIP,
/* various PCM "codecs" */ /* various PCM "codecs" */
AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs

1424
libavcodec/mobiclip.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,7 @@
#include "libavutil/version.h" #include "libavutil/version.h"
#define LIBAVCODEC_VERSION_MAJOR 58 #define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR 103 #define LIBAVCODEC_VERSION_MINOR 104
#define LIBAVCODEC_VERSION_MICRO 100 #define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \