nihav.git
9 months agoaac: fix intensity stereo direction
Kostya Shishkov [Wed, 19 Jul 2023 16:00:35 +0000 (18:00 +0200)]
aac: fix intensity stereo direction

9 months agoTrueMotion 1 encoder
Kostya Shishkov [Tue, 18 Jul 2023 16:54:02 +0000 (18:54 +0200)]
TrueMotion 1 encoder

Only 15-bit mode is supported.

9 months agotruemotion1data: signal delta table sizes
Kostya Shishkov [Tue, 18 Jul 2023 16:17:41 +0000 (18:17 +0200)]
truemotion1data: signal delta table sizes

9 months agotruemotion1: split off data tables for the upcoming encoder
Kostya Shishkov [Tue, 11 Jul 2023 16:49:59 +0000 (18:49 +0200)]
truemotion1: split off data tables for the upcoming encoder

10 months agoh264: clear frame refs on flush
Kostya Shishkov [Thu, 6 Jul 2023 16:30:20 +0000 (18:30 +0200)]
h264: clear frame refs on flush

10 months agocore/reorder: clear frame IDs in MTFrameReorderer on flush
Kostya Shishkov [Thu, 6 Jul 2023 16:30:04 +0000 (18:30 +0200)]
core/reorder: clear frame IDs in MTFrameReorderer on flush

10 months agomov: do not overwrite timebase with sample rate
Kostya Shishkov [Fri, 30 Jun 2023 16:11:11 +0000 (18:11 +0200)]
mov: do not overwrite timebase with sample rate

E.g. in AAC SBR case we may get timebase 2048/44100 with the nominal
sample rate being 22050 Hz.

10 months agomov: try to sync audio and video tracks when seeking
Kostya Shishkov [Wed, 28 Jun 2023 17:08:36 +0000 (19:08 +0200)]
mov: try to sync audio and video tracks when seeking

10 months agoaac: fix intensity and mid/side stereo reconstruction
Kostya Shishkov [Sat, 24 Jun 2023 09:44:59 +0000 (11:44 +0200)]
aac: fix intensity and mid/side stereo reconstruction

10 months agomov: set DTS to PTS when actual value is not available
Kostya Shishkov [Sat, 17 Jun 2023 14:04:54 +0000 (16:04 +0200)]
mov: set DTS to PTS when actual value is not available

10 months agoavimux: set palette change flag in stream header if applicable
Kostya Shishkov [Sat, 17 Jun 2023 09:03:04 +0000 (11:03 +0200)]
avimux: set palette change flag in stream header if applicable

10 months agocore/scale: fix typos in scaling loop
Kostya Shishkov [Fri, 16 Jun 2023 16:08:04 +0000 (18:08 +0200)]
core/scale: fix typos in scaling loop

10 months agorawvideoenc: suggest YUV during format negotiation
Kostya Shishkov [Fri, 16 Jun 2023 16:07:39 +0000 (18:07 +0200)]
rawvideoenc: suggest YUV during format negotiation

10 months agoallstuff: register multi-threaded decoders as well
Kostya Shishkov [Wed, 14 Jun 2023 16:53:10 +0000 (18:53 +0200)]
allstuff: register multi-threaded decoders as well

10 months agoh264: add multi-threaded decoder
Kostya Shishkov [Wed, 14 Jun 2023 16:51:44 +0000 (18:51 +0200)]
h264: add multi-threaded decoder

10 months agoh264: make some structures shareable
Kostya Shishkov [Wed, 14 Jun 2023 16:47:18 +0000 (18:47 +0200)]
h264: make some structures shareable

This is a preparation work for an upcoming multi-threaded decoding.

10 months agoh264: split current slice references into a separate structure
Kostya Shishkov [Wed, 14 Jun 2023 16:41:31 +0000 (18:41 +0200)]
h264: split current slice references into a separate structure

This will become useful when decoding a whole frame at once.

10 months agoh264: move decoder-specific bits into separate module
Kostya Shishkov [Wed, 14 Jun 2023 16:32:04 +0000 (18:32 +0200)]
h264: move decoder-specific bits into separate module

This is done as a preparation work for introducing multi-threaded decoding.

10 months agocodec_support/test: add a function for testing multi-threaded decoders
Kostya Shishkov [Sat, 10 Jun 2023 10:31:39 +0000 (12:31 +0200)]
codec_support/test: add a function for testing multi-threaded decoders

10 months agocore/frame: add means for NAVideoBufferPool to grow and report its usage
Kostya Shishkov [Sat, 10 Jun 2023 10:30:54 +0000 (12:30 +0200)]
core/frame: add means for NAVideoBufferPool to grow and report its usage

10 months agogeneric frame reorderer for multi-threaded decoders
Kostya Shishkov [Sat, 10 Jun 2023 10:29:48 +0000 (12:29 +0200)]
generic frame reorderer for multi-threaded decoders

10 months agointroduce the interface for multi-threaded decoders
Kostya Shishkov [Sat, 10 Jun 2023 10:28:31 +0000 (12:28 +0200)]
introduce the interface for multi-threaded decoders

11 months agocinepakenc: add an option to further refine the selected vectors
Kostya Shishkov [Mon, 5 Jun 2023 16:27:43 +0000 (18:27 +0200)]
cinepakenc: add an option to further refine the selected vectors

11 months agoraw video "encoder"
Kostya Shishkov [Sun, 4 Jun 2023 13:22:49 +0000 (15:22 +0200)]
raw video "encoder"

11 months agoadd YUV4MPEG muxer
Kostya Shishkov [Sat, 3 Jun 2023 14:56:56 +0000 (16:56 +0200)]
add YUV4MPEG muxer

11 months agoy4m: if no colourspace is specified it should be YUV 4:2:0
Kostya Shishkov [Sat, 3 Jun 2023 08:42:19 +0000 (10:42 +0200)]
y4m: if no colourspace is specified it should be YUV 4:2:0

11 months agocinepakenc: introduce fast VQ mode and make it default
Kostya Shishkov [Sat, 3 Jun 2023 08:06:24 +0000 (10:06 +0200)]
cinepakenc: introduce fast VQ mode and make it default

11 months agocinepakenc: factor out ELBG quantisation
Kostya Shishkov [Sat, 3 Jun 2023 07:45:13 +0000 (09:45 +0200)]
cinepakenc: factor out ELBG quantisation

This will be useful in the upcoming fast VQ mode.

11 months agocinepakenc: make ELBG mode to behave like hybrid mode (and drop that one)
Kostya Shishkov [Sat, 3 Jun 2023 07:40:19 +0000 (09:40 +0200)]
cinepakenc: make ELBG mode to behave like hybrid mode (and drop that one)

In reality it is the proper way to perform (E)LBG VQ so the old ineffective
ELBG should be replaced with "hybrid" quantisation way.

11 months agozmbvenc: handle I-frames that turned out to be skip frames
Kostya Shishkov [Thu, 25 May 2023 15:46:59 +0000 (17:46 +0200)]
zmbvenc: handle I-frames that turned out to be skip frames

11 months agozmbvenc: update checksums after deflate changes
Kostya Shishkov [Wed, 24 May 2023 17:33:17 +0000 (19:33 +0200)]
zmbvenc: update checksums after deflate changes

11 months agocore/soundcvt: add resampling support
Kostya Shishkov [Tue, 23 May 2023 17:52:37 +0000 (19:52 +0200)]
core/soundcvt: add resampling support

11 months agocore/scale: add proper rescaling
Kostya Shishkov [Tue, 23 May 2023 17:36:04 +0000 (19:36 +0200)]
core/scale: add proper rescaling

11 months agocore/compr: make code length limiting in deflate actually work
Kostya Shishkov [Wed, 24 May 2023 17:48:11 +0000 (19:48 +0200)]
core/compr: make code length limiting in deflate actually work

11 months agocore/compr: fix clippy warnings
Kostya Shishkov [Wed, 24 May 2023 17:20:11 +0000 (19:20 +0200)]
core/compr: fix clippy warnings

11 months agocore/compr: improve deflate match search
Kostya Shishkov [Wed, 24 May 2023 17:14:19 +0000 (19:14 +0200)]
core/compr: improve deflate match search

11 months agocinepakenc: try to calculate the number of strips automatically if requested
Kostya Shishkov [Sat, 20 May 2023 15:07:13 +0000 (17:07 +0200)]
cinepakenc: try to calculate the number of strips automatically if requested

11 months agocore/scale: fix off-by-one typo
Kostya Shishkov [Sat, 20 May 2023 14:53:47 +0000 (16:53 +0200)]
core/scale: fix off-by-one typo

11 months agoRealVideo 4 encoder
Kostya Shishkov [Thu, 18 May 2023 16:27:26 +0000 (18:27 +0200)]
RealVideo 4 encoder

11 months agorv34: make coefficient data public for the upcoming encoder
Kostya Shishkov [Thu, 18 May 2023 16:23:00 +0000 (18:23 +0200)]
rv34: make coefficient data public for the upcoming encoder

11 months agorv40: split off data into separate module for the upcoming encoder
Kostya Shishkov [Thu, 18 May 2023 16:21:48 +0000 (18:21 +0200)]
rv40: split off data into separate module for the upcoming encoder

11 months agoflacdemux: improve frame bounds search
Kostya Shishkov [Wed, 17 May 2023 16:27:39 +0000 (18:27 +0200)]
flacdemux: improve frame bounds search

11 months agormmux: rework video packetisation and add some debug prints
Kostya Shishkov [Thu, 11 May 2023 17:26:44 +0000 (19:26 +0200)]
rmmux: rework video packetisation and add some debug prints

11 months agormmux: generate monotone timestamps for video stream
Kostya Shishkov [Thu, 4 May 2023 17:14:14 +0000 (19:14 +0200)]
rmmux: generate monotone timestamps for video stream

11 months agocore/codecs: EncodeParameters.bitrate is in bits per second
Kostya Shishkov [Sun, 7 May 2023 15:06:22 +0000 (17:06 +0200)]
core/codecs: EncodeParameters.bitrate is in bits per second

13 months agoavimux: fix palette writing in the video stream header
Kostya Shishkov [Tue, 14 Mar 2023 10:32:11 +0000 (11:32 +0100)]
avimux: fix palette writing in the video stream header

13 months agointroduce a way for encoder to manifest its capabilities
Kostya Shishkov [Tue, 14 Mar 2023 10:11:31 +0000 (11:11 +0100)]
introduce a way for encoder to manifest its capabilities

13 months agoaacsbr: fix high<->low resolution envelope mapping
Kostya Shishkov [Mon, 13 Mar 2023 12:46:59 +0000 (13:46 +0100)]
aacsbr: fix high<->low resolution envelope mapping

13 months agoaacsbr: fix off-by-one situation with envelope borders
Kostya Shishkov [Mon, 13 Mar 2023 11:00:09 +0000 (12:00 +0100)]
aacsbr: fix off-by-one situation with envelope borders

14 months agoCook encoder
Kostya Shishkov [Thu, 9 Mar 2023 18:44:20 +0000 (19:44 +0100)]
Cook encoder

14 months agocook: split data into a separate module
Kostya Shishkov [Thu, 2 Mar 2023 18:50:37 +0000 (19:50 +0100)]
cook: split data into a separate module

14 months agormmux: better audio codec flavour detection
Kostya Shishkov [Tue, 7 Mar 2023 17:32:44 +0000 (18:32 +0100)]
rmmux: better audio codec flavour detection

14 months agormmux: improve the audio packet timestamp handling
Kostya Shishkov [Tue, 7 Mar 2023 16:50:42 +0000 (17:50 +0100)]
rmmux: improve the audio packet timestamp handling

14 months agoadd RealMedia and RealAudio muxers
Kostya Shishkov [Wed, 1 Mar 2023 18:36:38 +0000 (19:36 +0100)]
add RealMedia and RealAudio muxers

14 months agorealmedia: hopefully fix reported block size
Kostya Shishkov [Wed, 1 Mar 2023 17:28:24 +0000 (18:28 +0100)]
realmedia: hopefully fix reported block size

14 months agorealmedia: clear non-existing timestamps in .ra
Kostya Shishkov [Wed, 1 Mar 2023 17:22:54 +0000 (18:22 +0100)]
realmedia: clear non-existing timestamps in .ra

14 months agorealmedia: parse the original RealAudio files with even shorter v3 header
Kostya Shishkov [Fri, 24 Feb 2023 17:25:02 +0000 (18:25 +0100)]
realmedia: parse the original RealAudio files with even shorter v3 header

14 months agocinepakenc: add option for forcing V1-only mode
Kostya Shishkov [Thu, 23 Feb 2023 18:22:25 +0000 (19:22 +0100)]
cinepakenc: add option for forcing V1-only mode

14 months agocinepakenc: in hybrid VQ mode do not run ELBG refinement for < 256 entries
Kostya Shishkov [Thu, 23 Feb 2023 17:25:35 +0000 (18:25 +0100)]
cinepakenc: in hybrid VQ mode do not run ELBG refinement for < 256 entries

14 months agocinepakenc: output only the active codebook part
Kostya Shishkov [Thu, 23 Feb 2023 17:15:06 +0000 (18:15 +0100)]
cinepakenc: output only the active codebook part

14 months agocinepakenc: fix detection of codebook changed part
Kostya Shishkov [Thu, 23 Feb 2023 16:53:43 +0000 (17:53 +0100)]
cinepakenc: fix detection of codebook changed part

14 months agocinepakenc: fix mask output optimisation
Kostya Shishkov [Thu, 23 Feb 2023 16:48:24 +0000 (17:48 +0100)]
cinepakenc: fix mask output optimisation

14 months agorename "str" variable to avoid confusion with the primitive type
Kostya Shishkov [Fri, 17 Feb 2023 17:23:38 +0000 (18:23 +0100)]
rename "str" variable to avoid confusion with the primitive type

14 months agoavi: fix handling of palette change chunk with 256 colours
Kostya Shishkov [Tue, 14 Feb 2023 17:50:51 +0000 (18:50 +0100)]
avi: fix handling of palette change chunk with 256 colours

14 months agomsvideo1enc: fix inversed flags in quantisation
Kostya Shishkov [Tue, 14 Feb 2023 17:50:21 +0000 (18:50 +0100)]
msvideo1enc: fix inversed flags in quantisation

14 months agoindeo3enc: advance frameno on skip frames as well
Kostya Shishkov [Wed, 15 Feb 2023 19:46:20 +0000 (20:46 +0100)]
indeo3enc: advance frameno on skip frames as well

14 months agoindeo3enc: requant input only in modes 0/3/10
Kostya Shishkov [Wed, 15 Feb 2023 19:45:23 +0000 (20:45 +0100)]
indeo3enc: requant input only in modes 0/3/10

14 months agoindeo3enc: rework cell intra flag logic
Kostya Shishkov [Wed, 15 Feb 2023 19:01:38 +0000 (20:01 +0100)]
indeo3enc: rework cell intra flag logic

Previously it was used to signal frame type instead of cell type, which led
to VQ NULL cell type appearing in intra-only cells.

14 months agoindeo3enc: fix always enabled frame recompression
Kostya Shishkov [Wed, 15 Feb 2023 18:49:20 +0000 (19:49 +0100)]
indeo3enc: fix always enabled frame recompression

14 months agoindeo3enc: fix mode10 interpolation
Kostya Shishkov [Wed, 15 Feb 2023 18:46:12 +0000 (19:46 +0100)]
indeo3enc: fix mode10 interpolation

14 months agoindeo3enc: rework the logic with motion cells
Kostya Shishkov [Tue, 14 Feb 2023 15:32:35 +0000 (16:32 +0100)]
indeo3enc: rework the logic with motion cells

Previously motion vectors were ranged by the number of cells using them and
if the vector outside the allowed number of MVs was close enough to
a popular one the latter was used instead.

Now the MVs are ranked by the total area of cells using them and the vectors
not in the list are pruned entirely. Cells with those vectors are replaced
with the intra-coded ones.

14 months agoindeo3enc: fix checksum calculation
Kostya Shishkov [Tue, 14 Feb 2023 14:48:51 +0000 (15:48 +0100)]
indeo3enc: fix checksum calculation

14 months agorework Indeo 3 decoder
Kostya Shishkov [Tue, 14 Feb 2023 14:10:53 +0000 (15:10 +0100)]
rework Indeo 3 decoder

14 months agomsvideo1enc: handle skip frames
Kostya Shishkov [Wed, 8 Feb 2023 16:36:49 +0000 (17:36 +0100)]
msvideo1enc: handle skip frames

14 months agomsvideo1enc: add paletted input support
Kostya Shishkov [Wed, 8 Feb 2023 16:36:49 +0000 (17:36 +0100)]
msvideo1enc: add paletted input support

14 months agomsvideo1enc: fix skip mode
Kostya Shishkov [Wed, 8 Feb 2023 16:36:49 +0000 (17:36 +0100)]
msvideo1enc: fix skip mode

14 months agomsvideo1enc: fix 8-colour mode
Kostya Shishkov [Wed, 8 Feb 2023 16:36:49 +0000 (17:36 +0100)]
msvideo1enc: fix 8-colour mode

14 months agoavimux: fix written information for paletted format
Kostya Shishkov [Wed, 8 Feb 2023 16:36:49 +0000 (17:36 +0100)]
avimux: fix written information for paletted format

14 months agomsvideo1enc: prepare workflow for the future paletted mode support
Kostya Shishkov [Wed, 8 Feb 2023 16:36:49 +0000 (17:36 +0100)]
msvideo1enc: prepare workflow for the future paletted mode support

14 months agomsvideo1enc: support quality setting
Kostya Shishkov [Wed, 8 Feb 2023 16:36:49 +0000 (17:36 +0100)]
msvideo1enc: support quality setting

14 months agomsvideo1enc: switch to faster 2-colour quantiser
Kostya Shishkov [Wed, 8 Feb 2023 16:36:49 +0000 (17:36 +0100)]
msvideo1enc: switch to faster 2-colour quantiser

15 months agoIndeo 3 encoder
Kostya Shishkov [Thu, 22 Dec 2022 13:03:26 +0000 (14:03 +0100)]
Indeo 3 encoder

15 months agosplit Indeo 3 codebooks into separate module
Kostya Shishkov [Wed, 21 Dec 2022 11:09:34 +0000 (12:09 +0100)]
split Indeo 3 codebooks into separate module

16 months agocore/compr: make a faster version of Inflate::uncompress()
Kostya Shishkov [Fri, 23 Dec 2022 07:39:09 +0000 (08:39 +0100)]
core/compr: make a faster version of Inflate::uncompress()

16 months agodisable or remove unneeded debug messages
Kostya Shishkov [Fri, 23 Dec 2022 07:39:09 +0000 (08:39 +0100)]
disable or remove unneeded debug messages

16 months agomake validate!() print message only in debug builds
Kostya Shishkov [Fri, 23 Dec 2022 07:39:09 +0000 (08:39 +0100)]
make validate!() print message only in debug builds

16 months agomov: sanitise position on seek error
Kostya Shishkov [Fri, 23 Dec 2022 07:39:09 +0000 (08:39 +0100)]
mov: sanitise position on seek error

16 months agocore/demuxer: add functions for creating demuxers with options
Kostya Shishkov [Sat, 17 Dec 2022 10:45:15 +0000 (11:45 +0100)]
core/demuxer: add functions for creating demuxers with options

16 months agomov: improve seeking in audio-only files
Kostya Shishkov [Sat, 17 Dec 2022 10:44:48 +0000 (11:44 +0100)]
mov: improve seeking in audio-only files

17 months agomov: add support for MacBinary format
Kostya Shishkov [Fri, 25 Nov 2022 16:44:38 +0000 (17:44 +0100)]
mov: add support for MacBinary format

17 months agocinepak: fix handling of intra slices in inter frames
Kostya Shishkov [Fri, 25 Nov 2022 16:43:19 +0000 (17:43 +0100)]
cinepak: fix handling of intra slices in inter frames

17 months agoadd Truemotion RT encoder
Kostya Shishkov [Thu, 24 Nov 2022 17:09:15 +0000 (18:09 +0100)]
add Truemotion RT encoder

17 months agoavi: rename str to stream for clarity
Kostya Shishkov [Thu, 24 Nov 2022 17:08:15 +0000 (18:08 +0100)]
avi: rename str to stream for clarity

17 months agoavi: fix wrong variable in seek code
Kostya Shishkov [Tue, 22 Nov 2022 16:50:46 +0000 (17:50 +0100)]
avi: fix wrong variable in seek code

17 months agoclearvideo: align dimensions to 32 for RealVideo variant
Kostya Shishkov [Tue, 22 Nov 2022 16:49:56 +0000 (17:49 +0100)]
clearvideo: align dimensions to 32 for RealVideo variant

17 months agoarxel-vid: support 2-pixel tiles
Kostya Shishkov [Sat, 12 Nov 2022 16:24:15 +0000 (17:24 +0100)]
arxel-vid: support 2-pixel tiles

17 months agoarxel-vid: fix motion vector value
Kostya Shishkov [Sat, 12 Nov 2022 16:18:40 +0000 (17:18 +0100)]
arxel-vid: fix motion vector value

17 months agoadd Arxel Tribe video support
Kostya Shishkov [Sat, 12 Nov 2022 11:44:39 +0000 (12:44 +0100)]
add Arxel Tribe video support

17 months agorv6: handle DQP properly
Kostya Shishkov [Tue, 8 Nov 2022 17:08:44 +0000 (18:08 +0100)]
rv6: handle DQP properly

As found out by Peter Ross, they precede each CU instead of once per row.

17 months agorv6: change loop filter to a version used in newer binary specifications
Kostya Shishkov [Tue, 8 Nov 2022 17:07:34 +0000 (18:07 +0100)]
rv6: change loop filter to a version used in newer binary specifications

Suggested by Peter Ross