FFmpeg
3.3.8
|
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "internal.h"
#include "mathops.h"
#include "rectangle.h"
#include "thread.h"
#include "vp8.h"
#include "vp8data.h"
Go to the source code of this file.
Macros | |
#define | VPX(vp7, f) vp8_ ## f |
#define | VP7_MVC_SIZE 17 |
#define | VP8_MVC_SIZE 19 |
#define | MV_EDGE_CHECK(n) |
#define | XCHG(a, b, xchg) |
#define | H_LOOP_FILTER_16Y_INNER(cond) |
#define | MARGIN (16 << 2) |
#define | check_thread_pos(td, otd, mb_x_check, mb_y_check) while(0) |
#define | update_pos(td, mb_y, mb_x) while(0) |
Variables | |
static const uint8_t | subpel_idx [3][8] |
#define VP7_MVC_SIZE 17 |
Definition at line 393 of file vp8.c.
Referenced by vp7_decode_frame_header().
#define VP8_MVC_SIZE 19 |
Definition at line 394 of file vp8.c.
Referenced by vp8_decode_frame_header().
#define MV_EDGE_CHECK | ( | n | ) |
Referenced by vp8_decode_mvs().
Referenced by xchg_mb_border().
#define H_LOOP_FILTER_16Y_INNER | ( | cond | ) |
Referenced by filter_mb().
#define MARGIN (16 << 2) |
Definition at line 2203 of file vp8.c.
Referenced by decode_mb_row_no_filter(), vp78_decode_frame(), vp78_decode_mb_row_sliced(), and vp78_decode_mv_mb_modes().
#define check_thread_pos | ( | td, | |
otd, | |||
mb_x_check, | |||
mb_y_check | |||
) | while(0) |
Definition at line 2283 of file vp8.c.
Referenced by decode_mb_row_no_filter(), and filter_mb_row().
#define update_pos | ( | td, | |
mb_y, | |||
mb_x | |||
) | while(0) |
Definition at line 2284 of file vp8.c.
Referenced by decode_mb_row_no_filter(), filter_mb_row(), and vp78_decode_mb_row_sliced().
|
static |
Definition at line 49 of file vp8.c.
Referenced by ff_vp8_decode_init(), update_dimensions(), and vp8_decode_flush_impl().
|
static |
Definition at line 69 of file vp8.c.
Referenced by vp78_decode_frame(), and vp7_fade_frame().
|
static |
Definition at line 82 of file vp8.c.
Referenced by vp78_decode_frame(), vp8_decode_flush_impl(), and vp8_find_free_buffer().
|
static |
Definition at line 107 of file vp8.c.
Referenced by ff_vp8_decode_free(), update_dimensions(), and vp8_decode_flush().
|
static |
Definition at line 120 of file vp8.c.
Referenced by ff_vp8_decode_init().
|
static |
Definition at line 125 of file vp8.c.
Referenced by vp78_decode_frame(), and vp7_fade_frame().
|
static |
Definition at line 150 of file vp8.c.
Referenced by vp7_update_dimensions(), and vp8_update_dimensions().
|
static |
Definition at line 204 of file vp8.c.
Referenced by vp7_decode_frame_header().
|
static |
Definition at line 209 of file vp8.c.
Referenced by vp8_decode_frame_header().
|
static |
Definition at line 215 of file vp8.c.
Referenced by vp8_decode_frame_header().
|
static |
Definition at line 236 of file vp8.c.
Referenced by vp8_decode_frame_header().
|
static |
Definition at line 260 of file vp8.c.
Referenced by vp8_decode_frame_header().
|
static |
Definition at line 287 of file vp8.c.
Referenced by vp7_decode_frame_header().
|
static |
Definition at line 306 of file vp8.c.
Referenced by vp8_decode_frame_header().
|
static |
Determine which buffers golden and altref should be updated with after this frame.
The spec isn't clear here, so I'm going by my understanding of what libvpx does
Intra frames update all 3 references Inter frames update VP56_FRAME_PREVIOUS if the update_last flag is set If the update (golden|altref) flag is set, it's updated with the current frame if update_last is set, and VP56_FRAME_PREVIOUS otherwise. If the flag is not set, the number read means: 0: no update 1: VP56_FRAME_PREVIOUS 2: update golden with altref, or update altref with golden
Definition at line 352 of file vp8.c.
Referenced by update_refs().
|
static |
Definition at line 368 of file vp8.c.
Referenced by vp7_decode_frame_header(), and vp8_decode_frame_header().
|
static |
Definition at line 377 of file vp8.c.
Referenced by vp7_decode_frame_header(), and vp8_decode_frame_header().
|
static |
Definition at line 396 of file vp8.c.
Referenced by vp7_decode_frame_header(), and vp8_decode_frame_header().
|
static |
Definition at line 416 of file vp8.c.
Referenced by vp8_decode_frame_header().
Definition at line 427 of file vp8.c.
Referenced by vp7_fade_frame().
|
static |
Definition at line 438 of file vp8.c.
Referenced by parse_time_sequence(), register_all(), and vp7_fade_frame().
|
static |
Definition at line 452 of file vp8.c.
Referenced by vp7_decode_frame_header().
|
static |
Definition at line 491 of file vp8.c.
Referenced by vp78_decode_frame().
|
static |
Definition at line 647 of file vp8.c.
Referenced by vp78_decode_frame().
|
static |
Definition at line 777 of file vp8.c.
Referenced by vp8_decode_mvs().
|
static |
Motion vector coding, 17.1.
Definition at line 788 of file vp8.c.
Referenced by decode_splitmvs(), vp7_read_mv_component(), and vp8_read_mv_component().
|
static |
Definition at line 816 of file vp8.c.
Referenced by vp7_decode_mvs().
|
static |
Definition at line 821 of file vp8.c.
Referenced by vp8_decode_mvs().
|
static |
Definition at line 827 of file vp8.c.
Referenced by decode_splitmvs().
|
static |
Split motion vector prediction, 16.4.
Definition at line 844 of file vp8.c.
Referenced by vp7_decode_mvs(), and vp8_decode_mvs().
|
static |
The vp7 reference decoder uses a padding macroblock column (added to right edge of the frame) to guard against illegal macroblock offsets.
The algorithm has bugs that permit offsets to straddle the padding column. This function replicates those bugs.
[out] | edge_x | macroblock x address |
[out] | edge_y | macroblock y address |
Definition at line 926 of file vp8.c.
Referenced by vp7_decode_mvs().
|
static |
Definition at line 939 of file vp8.c.
Referenced by vp7_decode_mvs().
|
static |
Definition at line 945 of file vp8.c.
Referenced by decode_mb_mode().
|
static |
Definition at line 1036 of file vp8.c.
Referenced by decode_mb_mode().
|
static |
Definition at line 1136 of file vp8.c.
Referenced by decode_mb_mode().
|
static |
Definition at line 1171 of file vp8.c.
Referenced by decode_mb_row_no_filter(), and vp78_decode_mv_mb_modes().
|
static |
r | arithmetic bitstream reader context |
block | destination for block coefficients |
probs | probabilities to use when reading trees from the bitstream |
i | initial coeff index, 0 unless a separate DC block is coded |
qmul | array holding the dc/ac dequant factor at position 0/1 |
Definition at line 1263 of file vp8.c.
Referenced by vp7_decode_block_coeffs_internal(), and vp8_decode_block_coeffs_internal().
|
static |
Definition at line 1323 of file vp8.c.
Referenced by decode_mb_coeffs().
|
static |
Definition at line 1345 of file vp8.c.
Referenced by decode_block_coeffs().
|
static |
Definition at line 1357 of file vp8.c.
Referenced by decode_block_coeffs().
|
static |
c | arithmetic bitstream reader context |
block | destination for block coefficients |
probs | probabilities to use when reading trees from the bitstream |
i | initial coeff index, 0 unless a separate DC block is coded |
zero_nhood | the initial prediction context for number of surrounding all-zero blocks (only left/top, so 0-2) |
qmul | array holding the dc/ac dequant factor at position 0/1 |
scan | scan pattern (VP7 only) |
Definition at line 1382 of file vp8.c.
Referenced by decode_mb_coeffs().
|
static |
Definition at line 1397 of file vp8.c.
Referenced by decode_mb_row_no_filter().
|
static |
Definition at line 1472 of file vp8.c.
Referenced by decode_mb_row_no_filter(), and filter_mb_row().
|
static |
Definition at line 1484 of file vp8.c.
Referenced by intra_predict().
|
static |
Definition at line 1518 of file vp8.c.
Referenced by check_intra_pred8x8_mode_emuedge().
Definition at line 1527 of file vp8.c.
Referenced by check_intra_pred8x8_mode_emuedge().
|
static |
Definition at line 1536 of file vp8.c.
Referenced by intra_predict().
Definition at line 1552 of file vp8.c.
Referenced by check_intra_pred4x4_mode_emuedge().
|
static |
Definition at line 1562 of file vp8.c.
Referenced by intra_predict().
|
static |
Definition at line 1598 of file vp8.c.
Referenced by decode_mb_row_no_filter().
|
static |
luma MC function
s | VP8 decoding context |
dst | target buffer for block data at block position |
ref | reference picture buffer at origin (0, 0) |
mv | motion vector (relative to block position) to get pixel data from |
x_off | horizontal position of block from origin (0, 0) |
y_off | vertical position of block from origin (0, 0) |
block_w | width of block (16, 8 or 4) |
block_h | height of block (always same as block_w) |
width | width of src/dst plane data |
height | height of src/dst plane data |
linesize | size of a single line of plane data, including padding |
mc_func | motion compensation function pointers (bilinear or sixtap MC) |
Definition at line 1736 of file vp8.c.
Referenced by inter_predict(), and vp8_mc_part().
|
static |
chroma MC function
s | VP8 decoding context |
dst1 | target buffer for block data at block position (U plane) |
dst2 | target buffer for block data at block position (V plane) |
ref | reference picture buffer at origin (0, 0) |
mv | motion vector (relative to block position) to get pixel data from |
x_off | horizontal position of block from origin (0, 0) |
y_off | vertical position of block from origin (0, 0) |
block_w | width of block (16, 8 or 4) |
block_h | height of block (always same as block_w) |
width | width of src/dst plane data |
height | height of src/dst plane data |
linesize | size of a single line of plane data, including padding |
mc_func | motion compensation function pointers (bilinear or sixtap MC) |
Definition at line 1794 of file vp8.c.
Referenced by inter_predict(), and vp8_mc_part().
|
static |
Definition at line 1844 of file vp8.c.
Referenced by inter_predict().
|
static |
Definition at line 1882 of file vp8.c.
Referenced by decode_mb_row_no_filter().
|
static |
Apply motion vectors to prediction buffer, chapter 18.
Definition at line 1905 of file vp8.c.
Referenced by decode_mb_row_no_filter().
|
static |
Definition at line 1989 of file vp8.c.
Referenced by decode_mb_row_no_filter().
|
static |
Definition at line 2051 of file vp8.c.
Referenced by decode_mb_row_no_filter().
|
static |
Definition at line 2084 of file vp8.c.
Referenced by filter_mb_row().
|
static |
Definition at line 2171 of file vp8.c.
Referenced by filter_mb_row().
|
static |
Definition at line 2205 of file vp8.c.
Referenced by vp7_decode_mv_mb_modes(), and vp8_decode_mv_mb_modes().
|
static |
Definition at line 2237 of file vp8.c.
Referenced by vp78_decode_frame().
|
static |
Definition at line 2243 of file vp8.c.
Referenced by vp78_decode_frame().
|
static |
Definition at line 2287 of file vp8.c.
Referenced by vp7_decode_mb_row_no_filter(), and vp8_decode_mb_row_no_filter().
|
static |
Definition at line 2415 of file vp8.c.
Referenced by vp78_decode_init().
|
static |
Definition at line 2421 of file vp8.c.
Referenced by vp78_decode_init().
|
static |
Definition at line 2427 of file vp8.c.
Referenced by vp7_filter_mb_row(), and vp8_filter_mb_row().
|
static |
Definition at line 2486 of file vp8.c.
Referenced by vp78_decode_init().
|
static |
Definition at line 2492 of file vp8.c.
Referenced by vp78_decode_init().
|
static |
Definition at line 2499 of file vp8.c.
Referenced by vp7_decode_mb_row_sliced(), and vp8_decode_mb_row_sliced().
|
static |
Definition at line 2533 of file vp8.c.
Referenced by vp78_decode_frame().
|
static |
Definition at line 2539 of file vp8.c.
Referenced by vp78_decode_frame().
|
static |
Definition at line 2547 of file vp8.c.
Referenced by ff_vp8_decode_frame().
int ff_vp8_decode_frame | ( | AVCodecContext * | avctx, |
void * | data, | ||
int * | got_frame, | ||
AVPacket * | avpkt | ||
) |
Definition at line 2707 of file vp8.c.
Referenced by ff_vp8_decode_init(), and vp8_lossy_decode_frame().
av_cold int ff_vp8_decode_free | ( | AVCodecContext * | avctx | ) |
Definition at line 2721 of file vp8.c.
Referenced by ff_vp8_decode_init(), vp78_decode_init(), and webp_decode_close().
|
static |
Definition at line 2736 of file vp8.c.
Referenced by ff_vp8_decode_init(), and vp78_decode_init().
|
static |
Definition at line 2748 of file vp8.c.
Referenced by ff_vp8_decode_init().
av_cold int ff_vp8_decode_init | ( | AVCodecContext * | avctx | ) |
Definition at line 2791 of file vp8.c.
Referenced by ff_vp8_decode_init(), and vp8_lossy_decode_frame().
|
static |
Definition at line 1712 of file vp8.c.
Referenced by vp8_mc_chroma(), and vp8_mc_luma().