flashsv.c File Reference

Flash Screen Video decoder. More...

#include <stdio.h>
#include <stdlib.h>
#include <zlib.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "internal.h"
Include dependency graph for flashsv.c:

Go to the source code of this file.

Data Structures

struct  BlockInfo
 
struct  FlashSVContext
 

Typedefs

typedef struct BlockInfo BlockInfo
 
typedef struct FlashSVContext FlashSVContext
 

Functions

static int decode_hybrid (const uint8_t *sptr, uint8_t *dptr, int dx, int dy, int h, int w, int stride, const uint32_t *pal)
 
static av_cold int flashsv_decode_init (AVCodecContext *avctx)
 
static int flashsv2_prime (FlashSVContext *s, uint8_t *src, int size)
 
static int flashsv_decode_block (AVCodecContext *avctx, AVPacket *avpkt, GetBitContext *gb, int block_size, int width, int height, int x_pos, int y_pos, int blk_idx)
 
static int calc_deflate_block_size (int tmpblock_size)
 
static int flashsv_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int flashsv_decode_end (AVCodecContext *avctx)
 

Detailed Description

Flash Screen Video decoder.

Author
Alex Beregszaszi
Benjamin Larsson
Daniel Verkamp
Konstantin Shishkov

A description of the bitstream format for Flash Screen Video version 1/2 is part of the SWF File Format Specification (version 10), which can be downloaded from http://www.adobe.com/devnet/swf.html.

Definition in file flashsv.c.

Typedef Documentation

typedef struct BlockInfo BlockInfo

Function Documentation

static int calc_deflate_block_size ( int  tmpblock_size)
static

Definition at line 225 of file flashsv.c.

Referenced by flashsv_decode_frame().

static int decode_hybrid ( const uint8_t sptr,
uint8_t dptr,
int  dx,
int  dy,
int  h,
int  w,
int  stride,
const uint32_t *  pal 
)
static

Definition at line 73 of file flashsv.c.

Referenced by flashsv_decode_block().

static int flashsv2_prime ( FlashSVContext s,
uint8_t src,
int  size 
)
static

Definition at line 124 of file flashsv.c.

Referenced by flashsv_decode_block().

static int flashsv_decode_block ( AVCodecContext avctx,
AVPacket avpkt,
GetBitContext gb,
int  block_size,
int  width,
int  height,
int  x_pos,
int  y_pos,
int  blk_idx 
)
static

Definition at line 165 of file flashsv.c.

Referenced by flashsv_decode_frame().

static av_cold int flashsv_decode_end ( AVCodecContext avctx)
static

Definition at line 461 of file flashsv.c.

static int flashsv_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 241 of file flashsv.c.

Referenced by flashsv_decode_end().

static av_cold int flashsv_decode_init ( AVCodecContext avctx)
static

Definition at line 103 of file flashsv.c.

Referenced by flashsv_decode_end().