hevc: templatize pred_planar

Signed-off-by: Anton Khirnov <anton@khirnov.net>
hevc: templatize intra_pred
hevc/intra_pred: optimize EXTEND_()*

Process 4 pixels at once.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
hevc/intra_pred: drop unnecessary conditions in loops

Signed-off-by: Anton Khirnov <anton@khirnov.net>
hevc/intra_pred: simplify neighboring sample derivation
avconv: do not use poorly defined and undocumented AVStream.pts

Use OutputStream.last_mux_dts as an approximation of 'current' output
time instead.
mux: drop one of the hacks comprising compute_pkt_fields2()

All encoders should output proper timestamps now.
lavf: deprecate now unused AVStream.pts
avpacket: fix copying side data in av_packet_copy_props()

Side data count is incremented by by calling av_packet_new_side_data()
in the following loop, setting it explicitly results in the resulting
value being twice what it should be.

CC: libav-stable@libav.org
pthread_frame: simplify the code by using new AVPacket API

This also handles side data properly.
Add transformation matrix API.

Add AV_PKT_DATA_DISPLAYMATRIX and AV_FRAME_DATA_DISPLAYMATRIX as stream and
frame side data (respectively) to describe a display transformation matrix
for linear transformation operations on the decoded video.

Add functions to easily extract a rotation angle from a matrix and
conversely to setup a matrix for a given rotation angle.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
mov: store display matrix in a stream side data

Signed-off-by: Anton Khirnov <anton@khirnov.net>
display: Include mathematics.h for fallback definition of NAN

This fixes compilation with MSVC.

Signed-off-by: Martin Storsjö <martin@martin.st>
check: add libavcodec/vda_internal.h to SKIPHEADERS-$(CONFIG_VDA)
build: export library dependencies in ${name}_FFLIBS

Removes an ugly $(if) to avoid conflicts with $(FFLIBS-) in the
top-level MAkefile.
lavf: add av_stream_get_side_data