libavcodec/paf.c File Reference

#include "libavutil/intreadwrite.h"
#include "libavcodec/dsputil.h"
#include "libavcodec/paf.h"
#include "bytestream.h"
#include "avcodec.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 *data_size, 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 void copy4h ( AVCodecContext avctx,
uint8_t dst 
) [static]

Definition at line 94 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 105 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 117 of file paf.c.

Referenced by decode_0().

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

Definition at line 129 of file paf.c.

Referenced by paf_vid_decode().

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

Definition at line 84 of file paf.c.

Referenced by decode_0().

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

Definition at line 399 of file paf.c.

static av_cold int paf_aud_init ( AVCodecContext avctx  )  [static]

Definition at line 382 of file paf.c.

static av_cold int paf_vid_close ( AVCodecContext avctx  )  [static]

Definition at line 364 of file paf.c.

static int paf_vid_decode ( AVCodecContext avctx,
void *  data,
int data_size,
AVPacket pkt 
) [static]

Definition at line 245 of file paf.c.

static av_cold int paf_vid_init ( AVCodecContext avctx  )  [static]

Definition at line 60 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 28 of file paf.c.

Referenced by decode_0().

Initial value:

 {
    .name           = "paf_audio",
    .type           = AVMEDIA_TYPE_AUDIO,
    .id             = AV_CODEC_ID_PAF_AUDIO,
    .priv_data_size = sizeof(PAFAudioDecContext),
    .init           = paf_aud_init,
    .decode         = paf_aud_decode,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Amazing Studio Packed Animation File Audio"),
}

Definition at line 446 of file paf.c.

Initial value:

 {
    .name           = "paf_video",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_PAF_VIDEO,
    .priv_data_size = sizeof(PAFVideoDecContext),
    .init           = paf_vid_init,
    .close          = paf_vid_close,
    .decode         = paf_vid_decode,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Amazing Studio Packed Animation File Video"),
}

Definition at line 434 of file paf.c.


Generated on Fri Oct 26 02:50:07 2012 for FFmpeg by  doxygen 1.5.8