Commit Graph

2855 Commits

Author SHA1 Message Date
Saxon 61a5065556 codec/h264/h264dec: added functions to get TrailingOnes and TotalCoeff as well as testing
The functions firstly derive the value of nC and then read the value of coeff_token from the BitReader. The table read prior and loaded into
a 'map' is then used to get the corresponding values of TrailingOnes and TotalCoef.
2019-09-09 16:41:26 +09:30
Saxon ee9281925e codec/h264/h264dec: added functions for loading table 9-5 CSV into [nColumns]map[int]map[int][2]int with testing 2019-09-09 16:41:26 +09:30
Saxon e614633cbd codec/h264/h264dec: added CSV representation of table 9-5 from H.264 specifications 2019-09-09 16:40:42 +09:30
Saxon 245edafa68 codec/h264/h264dec: added binToInt function and test
This function will convert binary provided as a string and return as int.
2019-09-09 16:40:42 +09:30
Saxon Milton 614f42ec2c Merged in level-information (pull request #245)
codec/h264/h264dec: add function for parsing level information using process in section 9.2.2 of specifications

Approved-by: Alan Noble <anoble@gmail.com>
2019-09-09 06:56:59 +00:00
Saxon Milton 5261f82ef7 Merged in embed-slice-fields (pull request #248)
codec/h264/h264dec: embedded SliceHeader and SliceData into Slice type, and embedded SPS and PPS into VideoStream type
2019-09-09 01:41:12 +00:00
Saxon fbb98095a0 codec/h264/h264dec: embedded SliceHeader and SliceData into Slice type, and embedded SPS and PPS into VideoStream type 2019-09-09 11:08:48 +09:30
Saxon 46e7f9d303 codec/h264/h264dec/cavlc.go: simplified some logic regarding appending of values onto levelVal based on trailing_ones_sign_flag 2019-09-09 09:11:50 +09:30
Saxon Milton e4305fabe0 Merged in decode-file (pull request #247)
codec/h264/h2646dec: added decode.go file to hold slice decoding functionality
2019-09-08 04:40:47 +00:00
Saxon 1eb1d10ac4 codec/h264/h2646dec: added decode.go file to hold slice decoding functionality 2019-09-08 14:09:08 +09:30
Saxon 960d41cb4f codec/h264/h264dec/cavlc.go: removed redundant if checks in parseLevelInformation 2019-09-08 13:31:10 +09:30
Saxon ce803ba488 codec/h264/h264dec: add function for parsing level information using process in section 9.2.2 of specifications 2019-09-06 17:45:23 +09:30
scruzin fc9ced1ae8 Use ausocean/utils v1.2.8. 2019-09-05 17:14:40 +09:30
scruzin cce86bb064 Merge branch 'master' of https://bitbucket.org/ausocean/av 2019-09-05 17:13:57 +09:30
scruzin 1fd439be11 Use ausocean/utils v1.2.8. 2019-09-05 17:13:27 +09:30
Trek Hopton f537da41f2 Merged in adpcm-chunks (pull request #237)
Added adpcm chunk length and ability to decode consecutive chunks

Approved-by: kortschak <dan@kortschak.io>
2019-08-28 03:30:02 +00:00
Saxon Milton 9707d31c40 Merged in level-prefix (pull request #242)
codec/h264/h264dec: added level_prefix parsing process and test

Approved-by: Trek Hopton <trek.hopton@gmail.com>
2019-08-28 01:57:37 +00:00
Saxon 838d5dd5d6 codec/h264/h264dec: added level_prefix parsing process and test 2019-08-28 10:09:27 +09:30
Saxon Milton 7f3f1a43f9 Merged in refresh-period (pull request #240)
revid: now have MinPeriod and ClipDuration params

Approved-by: Alan Noble <anoble@gmail.com>
2019-08-28 00:06:03 +00:00
Saxon Milton 5ab8deb8a3 Merged in coded-block-binarization (pull request #236)
codec/h264/h264dec/cabacenc.go: added coded block pattern binary string process
2019-08-26 07:11:17 +00:00
Saxon 132059d26e codec/h264/h264dec/cabac.go: added binarization process for coded block pattern 2019-08-26 16:35:06 +09:30
Saxon Milton 517ba1926e Merged in move-cabac (pull request #241)
codec/h264/h264dec: moved CABAC encoding related stuff to cabacenc.go and cabacenc_test.go and corrected function names
2019-08-26 06:38:56 +00:00
Saxon d4fe1498f5 codec/h264/h264dec: moved CABAC encoding related stuff to cabacenc.go and cabacenc_test.go and corrected function names 2019-08-26 16:01:48 +09:30
Saxon a8081b52b2 revid/config.go: MinPeriod => MinFrames 2019-08-26 13:43:45 +09:30
Saxon e57e14678a container/mts: using RealTime type from utils package instead of global vars with mutator functions 2019-08-26 13:29:07 +09:30
Saxon 24e9ed69ca revid/config.go: got rid of remaining references of 'RefreshPeriod' which is now MinPeriod 2019-08-26 09:26:35 +09:30
Saxon b9cd6b3f13 container/mts/encoder.go: using NALTypeSPS from h264dec package 2019-08-26 09:24:18 +09:30
Saxon 817cc86a34 revid: now have MinPeriod and ClipDuration params
This change included a rename of IntraRefreshPeriod to MinPeriod, and the addition of the ClipDuration param. PSI are now written before IDR. Clips are no longer outputed
based on PSI but rather a time ClipDuration, where ClipDuration >= MinPeriod, however, PSI must still be at the beginning of each clip. Also created functionality to update
meta time even if we don't have a response to update.
2019-08-25 20:42:01 +09:30
Saxon Milton 379b528bb2 Merged in http-mode-vbr (pull request #239)
revid: variable bitrate default for HTTP and RTP mode

Approved-by: Alan Noble <anoble@gmail.com>
2019-08-24 06:59:43 +00:00
Saxon d390918209 revid: corrected logic for RTMPURL fallback and fixed bug in test 2019-08-24 14:53:49 +09:30
Saxon 9eb155dfed revid-cli: removed use of config quantize param in revid-cli 2019-08-24 14:05:34 +09:30
Saxon ce8295bb36 revid: variable bitrate default for HTTP mode, also wrote some testing for config validation 2019-08-24 14:02:24 +09:30
Saxon Milton cd162c086f Merged in performance-fix (pull request #238)
revid: increase sender ring buffer read timeouts to slow down output loops

Approved-by: Alan Noble <anoble@gmail.com>
2019-08-23 07:33:44 +00:00
Saxon Milton 37b8e7a8bc revid: increase sender ring buffer read timeouts to slow down output loops 2019-08-23 15:51:01 +09:30
Trek H 4e48a7aa09 adpcm: updated test file names 2019-08-21 16:20:11 +09:30
Trek H 4b8864ff20 adpcm: better decoding of chunks
added chunk length to chunk header
added to decoder the ability to decode consecutive chunks of variable length.
2019-08-21 15:39:58 +09:30
Saxon Milton 7ab8fd9e87 Merged in nalunit-test (pull request #224)
codec/h264/h264dec: added NAL unit parsing tests

Approved-by: Alan Noble <anoble@gmail.com>
2019-08-20 03:23:17 +00:00
Saxon Milton 13490e0145 Merged in slice-testing (pull request #225)
codec/h264/h264dec: added some testing for parsing found in slice.go

Approved-by: Alan Noble <anoble@gmail.com>
2019-08-20 02:53:00 +00:00
Saxon 0f35786d06 codec/h264/h264dec/slice_test.go: added license information to file header 2019-08-20 12:06:11 +09:30
Saxon bdcd340802 codec/h264/h264dec/slice_test.go: removed redundant comment 2019-08-20 12:02:39 +09:30
Saxon 27d8d0992c codec/h264/h264dec/slice.go: made corrections to file header 2019-08-20 11:56:42 +09:30
Saxon dab94f6ae2 codec/h264/h264dec: addressing PR feedback.
Updated comment. Put a space between file header and package declaration. Not dereferencing things
2019-08-20 11:39:12 +09:30
Saxon Milton e7f36162b1 codec/h264/h264dec/cabac_test.go: fixed indentation of Shawn's name in file header 2019-08-19 23:43:28 +00:00
Saxon Milton 2735f99f9c codec/h264/h264dec/cabac.go: fixed indentation of Shawn's name in file header 2019-08-19 23:41:56 +00:00
Saxon Milton 0e3bdf6932 Merged in fixed-len-binarization (pull request #233)
codec/h264/h264dec: added fixedLenBinarization and testing

Approved-by: Alan Noble <anoble@gmail.com>
2019-08-19 23:39:01 +00:00
Saxon 657d62a10b codec/h2646/h264dec: added file headers for cabac.go and cabac_test.go 2019-08-20 09:07:55 +09:30
Saxon 9691b1346c codec/h264/h264dec: removed comment for unexported error message and bettered text 2019-08-20 08:59:18 +09:30
Saxon 04fef9ce1d codec/h264/h264dec: added fixedLenBinarization and testing 2019-08-20 08:58:16 +09:30
Saxon Milton d36fe190b0 Merged in unary-binarization (pull request #232)
codec/h264/h264dec: added unary binarization processes

Approved-by: Alan Noble <anoble@gmail.com>
2019-08-19 22:36:37 +00:00
Saxon 1a5f07305d codec/h264/h2646dec/cabac.go: runcated=>truncated in truncUnaryBinarization comment 2019-08-20 08:04:17 +09:30