Commit Graph

17 Commits

Author SHA1 Message Date
Cheng Chen
db900e5268 Consistency test for partition info
Test the information stored in the encoder is the same
between two encode runs.

Change-Id: I4f97fac4f212602f766aee0a6cbef566ca43b41e
2020-01-27 13:34:08 -08:00
James Zern
b809ac3c9e simple_encode*.cc: add missing copyright
Change-Id: I58ddf13698e3892aa591af4196ca03d7c09426c6
2020-01-10 16:47:48 -08:00
angiebird
a53b7e53e8 Add GetFramePixelCount to SimpleEncode
Gets the total number of pixels of YUV planes per frame.

Change-Id: Ifdf35190cdde1378de6d7e93ab4428868a5795fa
2019-12-12 12:03:28 -08:00
angiebird
757a5e6aa9 Add GetNextEncodeFrameInfo ObserveGroupOfPicture
GetNextEncodeFrameInfo()
Gets encode_frame_info for the next coding frame.

ObserveGroupOfPicture()
Provides the group of pictures that the next coding frame is in.

Change-Id: Idbc437d32c392f25b06efb2d4e1ec01347d678f2
2019-12-10 11:41:01 -08:00
angiebird
42916ce604 Fix the encode inconsistency of SimpleEncode
Make sure restore_coding_context() is always called in the end
of encode_with_recode_loop().

Add EncodeConsistencyTest.

Change-Id: I3c8e4c8fcff4e3f7afef9bec469beef2a5fb6eeb
2019-12-03 18:33:10 -08:00
angiebird
2157d613c5 Cosmetic change of GetBitrateInKbps
Change-Id: Id4b852cdfba0f6fa1e12a05e2617df0de395be9d
2019-11-25 10:37:07 -08:00
angiebird
585eb34f86 Cosmetic changes of SimpleEncode code
Change-Id: Ied06630d605a4978711070778b92bfb731c32161
2019-11-21 10:54:23 -08:00
angiebird
89077d4505 Fix a bug in EncodeFrame test
Move key frame checks after EncodeFrame()

Change-Id: I4e3eded5dc54e757f85e846c4920cddc1ea7444b
2019-11-20 10:41:16 -08:00
angiebird
38b636094b Add namespace vp9
Change-Id: I29d05557becbfc5d55d1cd1bb709e519d27c928b
2019-11-20 10:41:16 -08:00
angiebird
6a950fee92 Add coding_data_bit_size to EncodeFrameResult
Change-Id: I32ab6829083c896ab2c6234e191939a000dea6e5
2019-11-18 11:37:24 -08:00
angiebird
21e93eb814 Pass in infile_path to SimpleEncode()
Change-Id: If47867d4d59a59e252bfe7eb24c940f9e089d335
2019-11-18 11:37:24 -08:00
angiebird
c4f1fe4b22 Add SimpleEncode::EncodeFrameWithQuantizeIndex()
Change-Id: I4442de01dfdbf13b0b9f7830f0fb393d3b935522
2019-11-18 11:37:24 -08:00
angiebird
56735c3fdb Add psnr and sse to EncodeFrameResult
Change-Id: I33c410a14b86f95278eff8d1d0e6992f1b82a17d
2019-11-18 11:37:24 -08:00
angiebird
6956e393c7 Add frame_type and show_idx to EncodeFrameResult
Let vp9_get_compressed_data update ENCODE_FRAME_RESULT, a C
version of EncodeFrameResult.
Let unit test to test frame_type and show_idx properly.

Change-Id: Id810c26c826254fd82249f19ab855ea3b440d99c
2019-11-18 11:37:24 -08:00
angiebird
f975d02d6d Add EncodeFrameResults
It contains coding_data_size and coding_data.

The EncodeFrame will allocate a buffer, write the coding data into the
buffer and give the ownership of the buffer to
encode_frame_result->coding_data

Change-Id: I6bd86aede191ade1db4a1f1bba5be601eef97d60
2019-11-18 11:37:24 -08:00
angiebird
422445a81d Add SimpleEncode::GetCodingFrameNum()
Also add unit tests for GetCodingFrameNum() and EncodeFrame()

Change-Id: I3e7b65f47226be4660409481435f8f784db72a68
2019-11-18 11:37:24 -08:00
angiebird
7ee697a5da Add ComputeFirstPassStats()
Change-Id: Iaed87a4fa35f456aec5d88d07fade636280eb211
2019-11-18 11:37:24 -08:00