Mercurial > mplayer.hg
view libmpcodecs/ae.h @ 16946:47c5e9846cd3
ultra simple&slow pp filter, yes yet another spp like filter :)
this one does actually compress&decompress the video at various shifts with lavc while the other spp filters are doing optimized intra only filtering
limitations:
mpeg4 is hardcoded, all options too, pretty trivial to change though, even filtering with non dct codecs like snow could be tried ...
the qscale/qp is only taken fron the first MB of each image and then used for the whole image (would needs some small changes to lavc to let the user set the qscales for the mbs themselfs but iam to lazy ...)
this needs ALOT of cpu time and memory especially at uspp=8 ...
author | michael |
---|---|
date | Tue, 08 Nov 2005 13:15:19 +0000 |
parents | af245d15f502 |
children | c23ca41ad996 |
line wrap: on
line source
#ifndef __MPAE_H__ #define __MPAE_H__ #define ACODEC_COPY 0 #define ACODEC_PCM 1 #define ACODEC_VBRMP3 2 #define ACODEC_NULL 3 #define ACODEC_LAVC 4 #define ACODEC_TOOLAME 5 #define ACODEC_FAAC 6 #define ACODEC_TWOLAME 7 #define AE_NEEDS_COMPRESSED_INPUT 1 typedef struct { int channels; int sample_rate; int bitrate; int samples_per_frame; int audio_preload; } audio_encoding_params_t; typedef struct audio_encoder_s { int codec; int flags; muxer_stream_t *stream; audio_encoding_params_t params; int audio_preload; //in ms int input_format; int min_buffer_size, max_buffer_size; //for init_audio_filters int *decode_buffer; int decode_buffer_size; int decode_buffer_len; void *priv; int (*bind)(struct audio_encoder_s*, muxer_stream_t*); int (*get_frame_size)(struct audio_encoder_s*); int (*set_decoded_len)(struct audio_encoder_s *encoder, int len); int (*encode)(struct audio_encoder_s *encoder, uint8_t *dest, void *src, int nsamples, int max_size); void (*fixup)(struct audio_encoder_s *encoder); int (*close)(struct audio_encoder_s *encoder); } audio_encoder_t; audio_encoder_t *new_audio_encoder(muxer_stream_t *stream, audio_encoding_params_t *params); #endif