FFmpeg
Data Structures | Functions | Variables
flashsvenc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <zlib.h>
#include "avcodec.h"
#include "encode.h"
#include "internal.h"
#include "put_bits.h"
#include "bytestream.h"

Go to the source code of this file.

Data Structures

struct  FlashSVContext
 

Functions

static int copy_region_enc (uint8_t *sptr, uint8_t *dptr, int dx, int dy, int h, int w, int stride, uint8_t *pfptr)
 
static av_cold int flashsv_encode_end (AVCodecContext *avctx)
 
static av_cold int flashsv_encode_init (AVCodecContext *avctx)
 
static int encode_bitstream (FlashSVContext *s, const AVFrame *p, uint8_t *buf, int buf_size, int block_width, int block_height, uint8_t *previous_frame, int *I_frame)
 
static int flashsv_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
 

Variables

const AVCodec ff_flashsv_encoder
 

Detailed Description

Flash Screen Video encoder

Author
Alex Beregszaszi
Benjamin Larsson

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 flashsvenc.c.

Function Documentation

◆ copy_region_enc()

static int copy_region_enc ( uint8_t *  sptr,
uint8_t *  dptr,
int  dx,
int  dy,
int  h,
int  w,
int  stride,
uint8_t *  pfptr 
)
static

Definition at line 69 of file flashsvenc.c.

Referenced by encode_bitstream().

◆ flashsv_encode_end()

static av_cold int flashsv_encode_end ( AVCodecContext avctx)
static

Definition at line 91 of file flashsvenc.c.

◆ flashsv_encode_init()

static av_cold int flashsv_encode_init ( AVCodecContext avctx)
static

Definition at line 101 of file flashsvenc.c.

◆ encode_bitstream()

static int encode_bitstream ( FlashSVContext s,
const AVFrame p,
uint8_t *  buf,
int  buf_size,
int  block_width,
int  block_height,
uint8_t *  previous_frame,
int I_frame 
)
static

Definition at line 129 of file flashsvenc.c.

Referenced by flashsv_encode_frame().

◆ flashsv_encode_frame()

static int flashsv_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pict,
int got_packet 
)
static

Definition at line 202 of file flashsvenc.c.

Variable Documentation

◆ ff_flashsv_encoder

const AVCodec ff_flashsv_encoder
Initial value:
= {
.name = "flashsv",
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"),
.priv_data_size = sizeof(FlashSVContext),
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 260 of file flashsvenc.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
AV_PIX_FMT_BGR24
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:69
init
static int init
Definition: av_tx.c:47
flashsv_encode_frame
static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
Definition: flashsvenc.c:202
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:296
FlashSVContext
Definition: flashsv.c:51
AV_CODEC_ID_FLASHSV
@ AV_CODEC_ID_FLASHSV
Definition: codec_id.h:136
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
flashsv_encode_init
static av_cold int flashsv_encode_init(AVCodecContext *avctx)
Definition: flashsvenc.c:101
flashsv_encode_end
static av_cold int flashsv_encode_end(AVCodecContext *avctx)
Definition: flashsvenc.c:91
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201