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

Go to the source code of this file.
Data Structures | |
| struct | AascContext |
Defines | |
| #define | FETCH_NEXT_STREAM_BYTE() |
Functions | |
| static int | aasc_decode_init (AVCodecContext *avctx) |
| static int | aasc_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | aasc_decode_end (AVCodecContext *avctx) |
Variables | |
| AVCodec | aasc_decoder |
Definition in file aasc.c.
| #define FETCH_NEXT_STREAM_BYTE | ( | ) |
Value:
if (stream_ptr >= buf_size) \ { \ av_log(s->avctx, AV_LOG_ERROR, " AASC: stream ptr just went out of bounds (fetch)\n"); \ break; \ } \ stream_byte = buf[stream_ptr++];
Definition at line 38 of file aasc.c.
Referenced by aasc_decode_frame(), msrle_decode_pal4(), and msrle_decode_pal8().
| static int aasc_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 153 of file aasc.c.
References AascContext::frame, AVCodecContext::priv_data, AVCodecContext::release_buffer, and s.
| static int aasc_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 59 of file aasc.c.
References av_log(), AV_LOG_ERROR, AascContext::avctx, FETCH_NEXT_STREAM_BYTE, FF_BUFFER_HINTS_PRESERVE, FF_BUFFER_HINTS_REUSABLE, FF_BUFFER_HINTS_VALID, AascContext::frame, AVCodecContext::height, AVCodecContext::priv_data, AVCodecContext::reget_buffer, s, and AVCodecContext::width.

| static int aasc_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 46 of file aasc.c.
References AascContext::avctx, AascContext::frame, AVCodecContext::has_b_frames, NULL, AVCodecContext::pix_fmt, PIX_FMT_BGR24, AVCodecContext::priv_data, and s.
Initial value:
{
"aasc",
CODEC_TYPE_VIDEO,
CODEC_ID_AASC,
sizeof(AascContext),
aasc_decode_init,
NULL,
aasc_decode_end,
aasc_decode_frame,
CODEC_CAP_DR1,
}
Definition at line 164 of file aasc.c.
Referenced by avcodec_register_all().
1.5.5