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

Go to the source code of this file.

Data Structures

struct  PAFVideoDecContext
 

Functions

static av_cold int paf_vid_close (AVCodecContext *avctx)
 
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_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_close ( AVCodecContext avctx)
static

Definition at line 62 of file paf.c.

Referenced by paf_vid_init().

static av_cold int paf_vid_init ( AVCodecContext avctx)
static

Definition at line 75 of file paf.c.

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

Definition at line 104 of file paf.c.

Referenced by decode_0().

static void copy4h ( AVCodecContext avctx,
uint8_t dst 
)
static

Definition at line 114 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 125 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 137 of file paf.c.

Referenced by decode_0().

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

Definition at line 149 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 265 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 397 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",
.long_name = NULL_IF_CONFIG_SMALL("Amazing Studio Packed Animation File Video"),
.priv_data_size = sizeof(PAFVideoDecContext),
.capabilities = CODEC_CAP_DR1,
}

Definition at line 431 of file paf.c.

AVCodec ff_paf_audio_decoder
Initial value:
= {
.name = "paf_audio",
.long_name = NULL_IF_CONFIG_SMALL("Amazing Studio Packed Animation File Audio"),
.init = paf_aud_init,
.decode = paf_aud_decode,
.capabilities = CODEC_CAP_DR1,
}

Definition at line 443 of file paf.c.