|
FFmpeg
|
Panasonic RW2 decoder, RawFormat 8 only (S1II, S5II, GH6). More...
#include "libavutil/internal.h"#include "libavutil/buffer.h"#include "libavutil/mem.h"#include "libavutil/raw_color_params.h"#include "libavutil/reverse.h"#include "avcodec.h"#include "bytestream.h"#include "codec_internal.h"#include "decode.h"#include "exif.h"#include "exif_internal.h"#include "get_bits.h"#include "hwaccel_internal.h"#include "thread.h"#include "tiff_common.h"#include "rw2.h"Go to the source code of this file.
Macros | |
| #define | BITSTREAM_READER_LE |
| #define | CACHED_BITSTREAM_READER 1 |
| #define | RW2_VLC_BITS 11 |
| #define | RW2_JOINT_BITS 16 /* longest code with its magnitude folded in */ |
| #define | RW2_SYM_DELTA 0x2000 /* joint symbols: delta + RW2_SYM_DELTA */ |
| #define | RW2_SYM_ESC 0x4000 /* other categories: RW2_SYM_ESC + category */ |
Functions | |
| static av_always_inline int | get_delta (const RW2DecContext *s, GetBitContext *bc, int *delta) |
| static int | gamma_curve (const RW2Coding *c, uint32_t v) |
| static int | build_tables (RW2DecContext *s) |
| static int | decode_stripe (AVCodecContext *avctx, void *tdata, int jobnr, int threadnr) |
| static int | read_array_count (GetByteContext *gb, unsigned type, unsigned count, unsigned expected, int max) |
| static int | parse_header (RW2Header *h, const uint8_t *data, int size) |
| static int | check_stripes (AVCodecContext *avctx, const RW2Header *h, int payload_size) |
| static enum AVPixelFormat | get_pixel_format (AVCodecContext *avctx, enum AVPixelFormat pix_fmt) |
| static int | export_exif (AVCodecContext *avctx, AVFrame *frame, const uint8_t *data, int size) |
| static int | export_metadata (AVCodecContext *avctx, AVFrame *frame, const uint8_t *hdr, int hdr_size) |
| static int | decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt) |
| static av_cold int | decode_init (AVCodecContext *avctx) |
| static av_cold int | decode_end (AVCodecContext *avctx) |
Variables | |
| const FFCodec | ff_rw2_decoder |
Panasonic RW2 decoder, RawFormat 8 only (S1II, S5II, GH6).
Bit-exact with LibRaw's pana8.cpp, quirks included.
Input is the whole file as one packet.
Definition in file rw2dec.c.
| #define RW2_VLC_BITS 11 |
Definition at line 51 of file rw2dec.c.
Referenced by build_tables(), and get_delta().
| #define RW2_JOINT_BITS 16 /* longest code with its magnitude folded in */ |
Definition at line 52 of file rw2dec.c.
Referenced by build_tables().
| #define RW2_SYM_DELTA 0x2000 /* joint symbols: delta + RW2_SYM_DELTA */ |
Definition at line 53 of file rw2dec.c.
Referenced by build_tables(), and get_delta().
| #define RW2_SYM_ESC 0x4000 /* other categories: RW2_SYM_ESC + category */ |
Definition at line 54 of file rw2dec.c.
Referenced by build_tables(), and get_delta().
|
static |
Definition at line 56 of file rw2dec.c.
Referenced by decode_stripe().
|
static |
Definition at line 86 of file rw2dec.c.
Referenced by build_tables().
|
static |
Definition at line 108 of file rw2dec.c.
Referenced by decode_frame().
|
static |
Definition at line 147 of file rw2dec.c.
Referenced by decode_frame().
|
static |
Definition at line 202 of file rw2dec.c.
Referenced by parse_header().
|
static |
Definition at line 213 of file rw2dec.c.
Referenced by decode_frame().
|
static |
Definition at line 349 of file rw2dec.c.
Referenced by decode_frame().
|
static |
Definition at line 377 of file rw2dec.c.
Referenced by decode_frame().
|
static |
Definition at line 391 of file rw2dec.c.
Referenced by export_metadata().
|
static |
Definition at line 420 of file rw2dec.c.
Referenced by decode_frame().
|
static |
|
static |
|
static |
| const FFCodec ff_rw2_decoder |