Microsoft Video-1 Decoder by Mike Melanson (melan.nosp@m.son@.nosp@m.pcisy.nosp@m.s.ne.nosp@m.t) For more information about the MS Video-1 format, visit: http://www.pcisys.net/~melanson/codecs/.
More...
#include <string.h>
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
Go to the source code of this file.
Microsoft Video-1 Decoder by Mike Melanson (melan.nosp@m.son@.nosp@m.pcisy.nosp@m.s.ne.nosp@m.t) For more information about the MS Video-1 format, visit: http://www.pcisys.net/~melanson/codecs/.
Definition in file msvideo1.c.
◆ PALETTE_COUNT
| #define PALETTE_COUNT 256 |
◆ CHECK_STREAM_PTR
| #define CHECK_STREAM_PTR |
( |
| n | ) |
|
Value: if ((stream_ptr + n) >
s->size ) { \
av_log(
s->avctx,
AV_LOG_ERROR,
" MS Video-1 warning: stream_ptr out of bounds (%d >= %d)\n", \
stream_ptr + n,
s->size); \
return; \
}
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition at line 38 of file msvideo1.c.
Referenced by msvideo1_decode_16bit(), and msvideo1_decode_8bit().
◆ msvideo1_decode_init()
◆ msvideo1_decode_8bit()
◆ msvideo1_decode_16bit()
◆ msvideo1_decode_frame()
◆ msvideo1_decode_end()
◆ ff_msvideo1_decoder
Initial value:= {
.p.name = "msvideo1",
}
static av_cold void close(AVCodecParserContext *s)
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
static av_cold int msvideo1_decode_init(AVCodecContext *avctx)
static av_cold int msvideo1_decode_end(AVCodecContext *avctx)
static int msvideo1_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition at line 341 of file msvideo1.c.