#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "common.h"#include "avcodec.h"#include "dsputil.h"

Go to the source code of this file.
Data Structures | |
| struct | MsrleContext |
Defines | |
| #define | FETCH_NEXT_STREAM_BYTE() |
Functions | |
| static void | msrle_decode_pal4 (MsrleContext *s) |
| static void | msrle_decode_pal8 (MsrleContext *s) |
| static int | msrle_decode_init (AVCodecContext *avctx) |
| static int | msrle_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | msrle_decode_end (AVCodecContext *avctx) |
Variables | |
| AVCodec | msrle_decoder |
The MS RLE decoder outputs PAL8 colorspace data.
Note that this decoder expects the palette colors from the end of the BITMAPINFO header passed through palctrl.
Definition in file msrle.c.
| #define FETCH_NEXT_STREAM_BYTE | ( | ) |
| static int msrle_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 286 of file msrle.c.
References MsrleContext::frame, AVCodecContext::priv_data, AVCodecContext::release_buffer, and s.
| static int msrle_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 251 of file msrle.c.
References av_log(), AV_LOG_ERROR, AVCodecContext::bits_per_sample, MsrleContext::buf, FF_BUFFER_HINTS_PRESERVE, FF_BUFFER_HINTS_REUSABLE, FF_BUFFER_HINTS_VALID, MsrleContext::frame, msrle_decode_pal4(), msrle_decode_pal8(), AVCodecContext::priv_data, AVCodecContext::reget_buffer, s, and MsrleContext::size.

| static int msrle_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 238 of file msrle.c.
References MsrleContext::avctx, MsrleContext::frame, AVCodecContext::has_b_frames, NULL, AVCodecContext::pix_fmt, PIX_FMT_PAL8, AVCodecContext::priv_data, and s.
| static void msrle_decode_pal4 | ( | MsrleContext * | s | ) | [static] |
Definition at line 58 of file msrle.c.
References av_log(), AV_LOG_ERROR, MsrleContext::avctx, AVPALETTE_SIZE, FETCH_NEXT_STREAM_BYTE, MsrleContext::frame, AVCodecContext::height, memcpy, AVCodecContext::palctrl, AVPaletteControl::palette, AVPaletteControl::palette_changed, MsrleContext::size, and AVCodecContext::width.
Referenced by msrle_decode_frame().

| static void msrle_decode_pal8 | ( | MsrleContext * | s | ) | [static] |
Definition at line 153 of file msrle.c.
References av_log(), AV_LOG_ERROR, MsrleContext::avctx, AVPALETTE_SIZE, FETCH_NEXT_STREAM_BYTE, MsrleContext::frame, AVCodecContext::height, memcpy, AVCodecContext::palctrl, AVPaletteControl::palette, AVPaletteControl::palette_changed, and MsrleContext::size.
Referenced by msrle_decode_frame().

Initial value:
{
"msrle",
CODEC_TYPE_VIDEO,
CODEC_ID_MSRLE,
sizeof(MsrleContext),
msrle_decode_init,
NULL,
msrle_decode_end,
msrle_decode_frame,
CODEC_CAP_DR1,
}
Definition at line 297 of file msrle.c.
Referenced by avcodec_register_all().
1.5.5