summaryrefslogtreecommitdiff
path: root/tools_common.h
AgeCommit message (Collapse)Author
2014-07-05Adds support for reading and writing 10/12-bit y4mDeb Mukherjee
The y4m extension used is the same as the one used in ffmpeg/x264. The patch is adapted from the highbitdepth branch. Also adds unit tests for y4m header parsing and md5 check of the raw frame data, as well as y4m writing. [build fix for Mac/VS by not using tuples with strings] Change-Id: I40897ee37d289e4b6cea6fedc67047d692b8cb46
2014-07-02Reverting "Adds support for reading and writing 10/12-bit y4m" for now ↵Dmitry Kovalev
because of Mac Build Failure. This reverts commit 82dc1332af4b16d3e4ad3c4358498820637b7add Change-Id: I824bf42bf47c7df6985c79e451d6af913030d374
2014-07-02Adds support for reading and writing 10/12-bit y4mDeb Mukherjee
The y4m extension used is the same as the one used in ffmpeg/x264. The patch is adapted from the highbitdepth branch. Also adds unit tests for y4m header parsing and md5 check of the raw frame data, as well as y4m writing. Change-Id: Ie2794daf6dbafd2f128464f9b9da520fc54c0dd6
2014-05-16Rewrite encoder input format handling.Alex Converse
The previous approach can't scale to all of or new formats. This also fixes YV12 input. Change-Id: Ic4ad333770bbbd0e921f519199b57862afcbe1ab
2014-04-17examples: remove off_t overridesJames Zern
this is error prone, int64 will suffice for all cases Change-Id: I94883f93518cfc356ed57b14dc39d79aebccf47d
2014-04-02tools_common.h: (msvs) avoid redefining off_tJames Zern
in some configurations MSVS will define _off_t / off_t in wchar.h; the former is used locally while the latter is for compatibility. this change overrides off_t as in the past and sets _OFF_T_DEFINED to prevent a clash in types. Change-Id: I9b0e6db586a0a2729b545d93edfc56570d2fcf97
2014-02-27Merge "Adding sse_to_psnr function to tools_common.{h, c}."Dmitry Kovalev
2014-02-27Adding sse_to_psnr function to tools_common.{h, c}.Dmitry Kovalev
Change-Id: Id5f974172416499ff55b0929e315b12d16ff1b1b
2014-02-26Reusing mem_get_le{16, 32} defined in vpx_ports/mem_opts.h.Dmitry Kovalev
Change-Id: If4b5209ac14aaba6f1c1014bc0497baa8eabfaff
2014-02-12Adding and reusing vpx_img_plane_{width, height}() functions.Dmitry Kovalev
Change-Id: I668afb50614644d2eac2e968e1fafd6d73170bec
2014-02-11Adding API to get vpx encoder/decoder interface.Dmitry Kovalev
Change-Id: I137e5e6585356792913e1e84da6c0a439c5153a5
2014-02-07Cleaning up {simple, twopass}_encoder examples.Dmitry Kovalev
Change-Id: Ide9c408f4cee7408741ef8c0ffac01645a5a67ca
2014-01-27Adapting simple_decoder to use new file reading API.Dmitry Kovalev
Change-Id: I374a0c4bb4a66c0d3dc874c6e57fdee9d1ab72df
2014-01-15Removing VP8_FOURCC_MASK & VP9_FOURCC_MASK.Dmitry Kovalev
There is no reason to have fourcc masks, everything just works without them. Change-Id: I1d48100e7b7d5ef55ec49a708ba6adcb9ab4ecd8
2013-11-19vpxdec: Relocate WebM input support.Tom Finegan
- Move it to webmdec.c and webmdec.h. - Also, tidy up obvious style nits in the vicinity of code I was already touching. Change-Id: Ie2898d06e73c1e9030d9c8d465b73ee7edc3c02a
2013-11-15vpx[dec|enc]: Extract IVF support from the apps.Tom Finegan
- Move IVF reading support into ivfdec.c and ivfdec.h - Move IVF writing support into ivfenc.c and ivfenc.h - Removed IVF writing code from the SVC example in favor of ivfenc. Change-Id: I70adf6240d0320fdd232d8546ed573f0f68dd793
2013-11-11vpx[dec|enc]: Clean up target OS based IO focused preproc abuse.Tom Finegan
Relocate it to tools_common.h so we can stop duping this code everywhere. BUG=https://code.google.com/p/webm/issues/detail?id=660 Change-Id: If8aa49b74d297273cd9fd7006b2767837055a359
2013-11-06Move WebM writing support out of vpxenc.c.Tom Finegan
This is mainly a clean up patchset. It moves the WebM writing support out of vpxenc and into its own source file. Changes to tools_common and vpxdec result from relocation of shared bits of code. Change-Id: Iee55d3285f56e0a548f791094fb14c5ac5346a26
2012-07-17Restyle codeJohn Koleszar
Approximate the Google style guide[1] so that that there's a written document to follow and tools to check compliance[2]. [1]: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml [2]: http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py Change-Id: Idf40e3d8dddcc72150f6af127b13e5dab838685f
2010-11-02fix pipe support on windowsJohn Koleszar
STDIO streams are opened in text mode by default on Windows. This patch changes the stdin/stdout streams to be in binary mode if they are being used for I/O from the vpxenc or vpxdec tools. Fixes issue #216. Thanks to mw AT hesotech.de for the fix. Change-Id: I34525b3ce2a4a031d5a48d36df4667589372225b