summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/MPEG2TSWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* warnings be gone.Andreas Huber2014-02-111-2/+3
| | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* MPEG2TSWriter: Read more immediately if an empty buffer is receivedMartin Storsjo2012-08-291-0/+2
| | | | | | | | | If writing encoded data from an OMXCodec, the last buffer can be an empty buffer (with the EOS flag set, which isn't propagated to MediaBuffer). If we don't retry reading, we won't ever get the EOS error and thus won't properly signal that the source is done. Change-Id: Ibe01dbcd0637fbf0c2529a277e9f208c48e0e8ab
* MPEG2TSWriter: Fix an off-by-one in the condition for paddingMartin Storsjo2012-08-201-1/+1
| | | | | | | | This makes a remuxed file play without any decoding warnings, while there still were some occasional warnings with the previous version. Change-Id: I31d73446ded1eeb3da10783c5ef841270563ca12
* MPEG2TSWriter: Correctly add padding using the adaptation fieldPaul Fariello2012-08-151-6/+27
| | | | Change-Id: I268cce36ada910ba168c4c9dcedab0b20f6e6ebb
* MPEG2TSWriter: Write a proper CRC in PAT and PMTPaul Fariello2012-07-101-6/+37
| | | | Change-Id: I6ec8039b176878da6f02691194d96b0a1e894055
* MPEG2TSWriter: Write proper continuity counters for PAT and PMTPaul Fariello2012-07-101-7/+17
| | | | Change-Id: If94e31e51c563867db6d2376ad771f9751416084
* Add new APIs AMessage::(set|find)Buffer to make it safer to passAndreas Huber2012-02-221-7/+5
| | | | | | ABuffer objects through messages. Change-Id: I9f8b4e4c4767d0d70a0105e0c0813b754379b49d
* Don't call virtual functions in destructors for the writer classesJames Dong2012-02-021-2/+2
| | | | | | | Have not found any concrete bugs related to these calls yet, but we should avoid calling virtual functions in destructors, regardless. Change-Id: I2d47b79d3fb2d29f418619bee83aa147d232a5d4
* Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-261-3/+3
| | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
* Support for writing output data to a provided callback function instead of a ↵Andreas Huber2011-06-281-7/+34
| | | | | | | | file in MPEG2TSWriter Change-Id: Ie54a5677c7b789a973aa50b7f197c6db238425bc
* Properly order the data written out to the transport stream by timestamp.Andreas Huber2010-12-151-11/+140
| | | | | | This ensures data locality across tracks. Change-Id: I823b9407e3603473422177ec02dff4860ffc5b4f
* Removed uncessary FILE structure pointer for I/OJames Dong2010-11-191-1/+1
| | | | | | o also move the fd owner from caller to callee in the Writers Change-Id: I510ccfdd0fcc58f1777fea4ed1349fd251852c65
* If the PES packet size exceeds 16-bit range, use a packet size of 0 instead. ↵Andreas Huber2010-10-181-0/+8
| | | | | | This is valid for video content according to the specs. Change-Id: I686320d9d4cd826f43c0813c6ba1dc4949d1115f
* Support for writing to MPEG2 transport stream files.Andreas Huber2010-10-121-20/+68
| | | | Change-Id: If3b7a807bc224a4b1cb2236537c3ebdc5aee0d97
* Squashed commit of the following:Andreas Huber2010-09-271-0/+758
commit 29a4d3effb05a2e074cb0693316ab1977baeb0b6 Author: Andreas Huber <andih@google.com> Date: Mon Sep 27 12:01:32 2010 -0700 Fully working implementation of MPEG2TSWriter (for AAC and AVC sources). Change-Id: I8a32a47565b647bf6c078c520e39565e08ea0d84 commit f4dec4c3899f3be393508e180d6c07e249d3335e Author: Andreas Huber <andih@google.com> Date: Mon Sep 27 10:36:31 2010 -0700 More reliable identification of MPEG2 transport streams. Don't keep scanning forever in case the stream does not have both audio and video tracks. Change-Id: Icc5b4e8be145b2805e8776559546a6818342aea7 commit 4fe3cc942f9b3d3cf54138b828c41214aa916dd2 Author: Andreas Huber <andih@google.com> Date: Mon Sep 27 08:23:39 2010 -0700 test code Change-Id: I16560a17661407d06497f99ff88230724bb898af commit 64d988b24f49f179a90fa677be11c823959e734b Author: Andreas Huber <andih@google.com> Date: Thu Sep 23 14:42:52 2010 -0700 First shot at supporting writing to an MPEG2 transport stream. Change-Id: Ie537939a99fa3ddc0c7661c47c18277584817c74 Change-Id: If78fd034af8f6e8ceac8dbeff96d5ecb3f6b96dc