FFmpeg
Data Structures | Functions
flashsv.c File Reference
#include "config_components.h"
#include <stddef.h>
#include <zlib.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "zlib_wrapper.h"

Go to the source code of this file.

Data Structures

struct  BlockInfo
 
struct  FlashSVContext
 

Functions

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

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.

Function Documentation

◆ decode_hybrid()

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

Definition at line 75 of file flashsv.c.

Referenced by flashsv_decode_block().

◆ flashsv_decode_end()

static av_cold int flashsv_decode_end ( AVCodecContext avctx)
static

Definition at line 107 of file flashsv.c.

◆ flashsv_decode_init()

static av_cold int flashsv_decode_init ( AVCodecContext avctx)
static

Definition at line 121 of file flashsv.c.

◆ flashsv2_prime()

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

Definition at line 136 of file flashsv.c.

Referenced by flashsv_decode_block().

◆ flashsv_decode_block()

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

Definition at line 200 of file flashsv.c.

Referenced by flashsv_decode_frame().

◆ flashsv_decode_frame()

static int flashsv_decode_frame ( AVCodecContext avctx,
AVFrame rframe,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 269 of file flashsv.c.