FFmpeg
|
Flash Screen Video Version 2 encoder. More...
#include <stdio.h>
#include <stdlib.h>
#include <zlib.h>
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "internal.h"
#include "put_bits.h"
#include "bytestream.h"
Go to the source code of this file.
Data Structures | |
struct | Block |
struct | Palette |
struct | FlashSV2Context |
Macros | |
#define | HAS_IFRAME_IMAGE 0x02 |
#define | HAS_PALLET_INFO 0x01 |
#define | COLORSPACE_BGR 0x00 |
#define | COLORSPACE_15_7 0x10 |
#define | HAS_DIFF_BLOCKS 0x04 |
#define | ZLIB_PRIME_COMPRESS_CURRENT 0x02 |
#define | ZLIB_PRIME_COMPRESS_PREVIOUS 0x01 |
#define | FLASHSV2_DUMB |
Variables | |
static const unsigned int | default_screen_video_v2_palette [128] |
static const double | block_size_fraction = 1.0 / 300 |
static const double | use15_7_threshold = 8192 |
static const double | color15_7_factor = 100 |
AVCodec | ff_flashsv2_encoder |
Flash Screen Video Version 2 encoder.
Definition in file flashsv2enc.c.
#define HAS_IFRAME_IMAGE 0x02 |
Definition at line 55 of file flashsv2enc.c.
#define HAS_PALLET_INFO 0x01 |
Definition at line 56 of file flashsv2enc.c.
Referenced by write_header().
#define COLORSPACE_BGR 0x00 |
Definition at line 58 of file flashsv2enc.c.
#define COLORSPACE_15_7 0x10 |
Definition at line 59 of file flashsv2enc.c.
Referenced by encode_all_blocks(), and encode_block().
#define HAS_DIFF_BLOCKS 0x04 |
Definition at line 60 of file flashsv2enc.c.
Referenced by encode_all_blocks(), and write_block().
#define ZLIB_PRIME_COMPRESS_CURRENT 0x02 |
Definition at line 61 of file flashsv2enc.c.
Referenced by write_block().
#define ZLIB_PRIME_COMPRESS_PREVIOUS 0x01 |
Definition at line 62 of file flashsv2enc.c.
Referenced by encode_block().
#define FLASHSV2_DUMB |
Definition at line 66 of file flashsv2enc.c.
|
static |
Definition at line 127 of file flashsv2enc.c.
Referenced by flashsv2_encode_end(), flashsv2_encode_init(), and open_input().
|
static |
Definition at line 140 of file flashsv2enc.c.
Referenced by flashsv2_encode_init(), and reconfigure_at_keyframe().
|
static |
Definition at line 166 of file flashsv2enc.c.
Referenced by flashsv2_encode_init(), and reconfigure_at_keyframe().
|
static |
Definition at line 177 of file flashsv2enc.c.
|
static |
Definition at line 259 of file flashsv2enc.c.
Referenced by flashsv2_encode_frame().
|
static |
Definition at line 276 of file flashsv2enc.c.
Referenced by write_header().
|
static |
Definition at line 282 of file flashsv2enc.c.
Referenced by write_bitstream().
Definition at line 312 of file flashsv2enc.c.
Referenced by write_all_blocks().
Definition at line 352 of file flashsv2enc.c.
Referenced by encode_block().
|
static |
Definition at line 358 of file flashsv2enc.c.
Referenced by encode_block().
Definition at line 392 of file flashsv2enc.c.
Referenced by encode_block().
|
inlinestatic |
Definition at line 408 of file flashsv2enc.c.
Referenced by write_pixel_15_7().
|
inlinestatic |
Definition at line 413 of file flashsv2enc.c.
Referenced by pixel_color7_slow(), and write_pixel_15_7().
|
inlinestatic |
Definition at line 423 of file flashsv2enc.c.
Referenced by write_pixel_15_7().
|
static |
Definition at line 428 of file flashsv2enc.c.
Referenced by update_palette_index().
|
inlinestatic |
Definition at line 443 of file flashsv2enc.c.
Referenced by write_pixel_15_7().
|
static |
Definition at line 448 of file flashsv2enc.c.
Referenced by encode_15_7_sl().
|
static |
Definition at line 466 of file flashsv2enc.c.
Referenced by generate_default_palette().
|
static |
Definition at line 509 of file flashsv2enc.c.
Referenced by reconfigure_at_keyframe().
|
static |
Definition at line 517 of file flashsv2enc.c.
Referenced by reconfigure_at_keyframe().
|
inlinestatic |
Definition at line 524 of file flashsv2enc.c.
Referenced by encode_15_7().
|
static |
Definition at line 534 of file flashsv2enc.c.
Referenced by encode_block().
|
static |
Definition at line 551 of file flashsv2enc.c.
Referenced by encode_all_blocks().
|
static |
Definition at line 588 of file flashsv2enc.c.
Referenced by mark_all_blocks().
|
static |
Definition at line 606 of file flashsv2enc.c.
Referenced by write_bitstream().
|
static |
Definition at line 627 of file flashsv2enc.c.
Referenced by write_bitstream().
|
static |
Definition at line 667 of file flashsv2enc.c.
Referenced by write_bitstream().
|
static |
Definition at line 685 of file flashsv2enc.c.
Referenced by flashsv2_encode_frame().
|
static |
Definition at line 714 of file flashsv2enc.c.
Referenced by flashsv2_encode_frame().
|
static |
Definition at line 736 of file flashsv2enc.c.
Referenced by reconfigure_at_keyframe().
|
static |
Definition at line 748 of file flashsv2enc.c.
Referenced by reconfigure_at_keyframe().
|
static |
Definition at line 762 of file flashsv2enc.c.
Referenced by reconfigure_at_keyframe().
|
static |
Definition at line 779 of file flashsv2enc.c.
Referenced by flashsv2_encode_frame().
|
static |
Definition at line 794 of file flashsv2enc.c.
Referenced by flashsv2_encode_frame().
|
static |
Definition at line 850 of file flashsv2enc.c.
|
static |
Definition at line 901 of file flashsv2enc.c.
|
static |
Definition at line 484 of file flashsv2enc.c.
Referenced by generate_default_palette().
|
static |
Definition at line 735 of file flashsv2enc.c.
Referenced by optimum_block_height(), and optimum_block_width().
|
static |
Definition at line 760 of file flashsv2enc.c.
|
static |
Definition at line 777 of file flashsv2enc.c.
Referenced by optimum_dist().
AVCodec ff_flashsv2_encoder |
Definition at line 910 of file flashsv2enc.c.