libavcodec/svq1enc.c File Reference
Sorenson Vector Quantizer #1 (SVQ1) video codec.
More...
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
#include "h263.h"
#include "internal.h"
#include "svq1.h"
#include "svq1enc_cb.h"
#include <assert.h>
Go to the source code of this file.
|
Data Structures |
struct | SVQ1Context |
Defines |
#define | QUALITY_THRESHOLD 100 |
#define | THRESHOLD_MULTIPLIER 0.6 |
Functions |
static void | svq1_write_header (SVQ1Context *s, int frame_type) |
static int | encode_block (SVQ1Context *s, uint8_t *src, uint8_t *ref, uint8_t *decoded, int stride, int level, int threshold, int lambda, int intra) |
static int | svq1_encode_plane (SVQ1Context *s, int plane, unsigned char *src_plane, unsigned char *ref_plane, unsigned char *decoded_plane, int width, int height, int src_stride, int stride) |
static av_cold int | svq1_encode_init (AVCodecContext *avctx) |
static int | svq1_encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) |
static av_cold int | svq1_encode_end (AVCodecContext *avctx) |
Variables |
AVCodec | ff_svq1_encoder |
Detailed Description
Sorenson Vector Quantizer #1 (SVQ1) video codec.
For more information of the SVQ1 algorithm, visit: http://www.pcisys.net/~melanson/codecs/
Definition in file svq1enc.c.
Define Documentation
#define QUALITY_THRESHOLD 100 |
#define THRESHOLD_MULTIPLIER 0.6 |
Function Documentation
static int encode_block |
( |
SVQ1Context * |
s, |
|
|
uint8_t * |
src, |
|
|
uint8_t * |
ref, |
|
|
uint8_t * |
decoded, |
|
|
int |
stride, |
|
|
int |
level, |
|
|
int |
threshold, |
|
|
int |
lambda, |
|
|
int |
intra | |
|
) |
| | [static] |
static av_cold int svq1_encode_end |
( |
AVCodecContext * |
avctx |
) |
[static] |
static int svq1_encode_frame |
( |
AVCodecContext * |
avctx, |
|
|
unsigned char * |
buf, |
|
|
int |
buf_size, |
|
|
void * |
data | |
|
) |
| | [static] |
static av_cold int svq1_encode_init |
( |
AVCodecContext * |
avctx |
) |
[static] |
static int svq1_encode_plane |
( |
SVQ1Context * |
s, |
|
|
int |
plane, |
|
|
unsigned char * |
src_plane, |
|
|
unsigned char * |
ref_plane, |
|
|
unsigned char * |
decoded_plane, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
src_stride, |
|
|
int |
stride | |
|
) |
| | [static] |
static void svq1_write_header |
( |
SVQ1Context * |
s, |
|
|
int |
frame_type | |
|
) |
| | [static] |
Variable Documentation
Initial value:
{
"svq1",
AVMEDIA_TYPE_VIDEO,
CODEC_ID_SVQ1,
sizeof(SVQ1Context),
svq1_encode_init,
svq1_encode_frame,
svq1_encode_end,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV410P, PIX_FMT_NONE},
.long_name= NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1"),
}
Definition at line 575 of file svq1enc.c.