FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
paf.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavcodec/dsputil.h"
#include "libavcodec/paf.h"
#include "bytestream.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  PAFVideoDecContext
 
struct  PAFAudioDecContext
 

Functions

static av_cold int paf_vid_init (AVCodecContext *avctx)
 
static int get_video_page_offset (AVCodecContext *avctx, uint8_t a, uint8_t b)
 
static void copy4h (AVCodecContext *avctx, uint8_t *dst)
 
static void copy_color_mask (AVCodecContext *avctx, uint8_t mask, uint8_t *dst, uint8_t color)
 
static void copy_src_mask (AVCodecContext *avctx, uint8_t mask, uint8_t *dst, const uint8_t *src)
 
static int decode_0 (AVCodecContext *avctx, uint8_t code, uint8_t *pkt)
 
static int paf_vid_decode (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
 
static av_cold int paf_vid_close (AVCodecContext *avctx)
 
static av_cold int paf_aud_init (AVCodecContext *avctx)
 
static int paf_aud_decode (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt)
 

Variables

static const uint8_t block_sequences [16][8]
 
AVCodec ff_paf_video_decoder
 
AVCodec ff_paf_audio_decoder
 

Function Documentation

static av_cold int paf_vid_init ( AVCodecContext avctx)
static

Definition at line 62 of file paf.c.

static int get_video_page_offset ( AVCodecContext avctx,
uint8_t  a,
uint8_t  b 
)
static

Definition at line 86 of file paf.c.

Referenced by decode_0().

static void copy4h ( AVCodecContext avctx,
uint8_t dst 
)
static

Definition at line 96 of file paf.c.

Referenced by decode_0().

static void copy_color_mask ( AVCodecContext avctx,
uint8_t  mask,
uint8_t dst,
uint8_t  color 
)
static

Definition at line 107 of file paf.c.

Referenced by decode_0().

static void copy_src_mask ( AVCodecContext avctx,
uint8_t  mask,
uint8_t dst,
const uint8_t src 
)
static

Definition at line 119 of file paf.c.

Referenced by decode_0().

static int decode_0 ( AVCodecContext avctx,
uint8_t  code,
uint8_t pkt 
)
static

Definition at line 131 of file paf.c.

Referenced by paf_vid_decode().

static int paf_vid_decode ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket pkt 
)
static

Definition at line 247 of file paf.c.

static av_cold int paf_vid_close ( AVCodecContext avctx)
static

Definition at line 366 of file paf.c.

static av_cold int paf_aud_init ( AVCodecContext avctx)
static

Definition at line 384 of file paf.c.

static int paf_aud_decode ( AVCodecContext avctx,
void data,
int *  got_frame_ptr,
AVPacket pkt 
)
static

Definition at line 401 of file paf.c.

Variable Documentation

const uint8_t block_sequences[16][8]
static
Initial value:
=
{
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 2, 0, 0, 0, 0, 0, 0, 0 },
{ 5, 7, 0, 0, 0, 0, 0, 0 },
{ 5, 0, 0, 0, 0, 0, 0, 0 },
{ 6, 0, 0, 0, 0, 0, 0, 0 },
{ 5, 7, 5, 7, 0, 0, 0, 0 },
{ 5, 7, 5, 0, 0, 0, 0, 0 },
{ 5, 7, 6, 0, 0, 0, 0, 0 },
{ 5, 5, 0, 0, 0, 0, 0, 0 },
{ 3, 0, 0, 0, 0, 0, 0, 0 },
{ 6, 6, 0, 0, 0, 0, 0, 0 },
{ 2, 4, 0, 0, 0, 0, 0, 0 },
{ 2, 4, 5, 7, 0, 0, 0, 0 },
{ 2, 4, 5, 0, 0, 0, 0, 0 },
{ 2, 4, 6, 0, 0, 0, 0, 0 },
{ 2, 4, 5, 7, 5, 7, 0, 0 }
}

Definition at line 30 of file paf.c.

Referenced by decode_0().

AVCodec ff_paf_video_decoder
Initial value:
= {
.name = "paf_video",
.priv_data_size = sizeof(PAFVideoDecContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Amazing Studio Packed Animation File Video"),
}

Definition at line 436 of file paf.c.

AVCodec ff_paf_audio_decoder
Initial value:
= {
.name = "paf_audio",
.priv_data_size = sizeof(PAFAudioDecContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Amazing Studio Packed Animation File Audio"),
}

Definition at line 448 of file paf.c.