Searched refs:MPEG2_TS_PACKET_SIZE (Results 1 - 1 of 1) sorted by relevance

/development/ndk/platforms/android-14/samples/native-media/jni/
H A Dnative-media-jni.c68 #define MPEG2_TS_PACKET_SIZE 188 macro
74 #define BUFFER_SIZE (PACKETS_PER_BUFFER*MPEG2_TS_PACKET_SIZE)
153 assert((dataSize > 0) && ((dataSize % MPEG2_TS_PACKET_SIZE) == 0));
168 if ((bytesRead % MPEG2_TS_PACKET_SIZE) != 0) {
171 size_t packetsRead = bytesRead / MPEG2_TS_PACKET_SIZE;
172 size_t bufferSize = packetsRead * MPEG2_TS_PACKET_SIZE;
277 * We want to read whole packets (integral multiples of MPEG2_TS_PACKET_SIZE).
287 if ((bytesRead % MPEG2_TS_PACKET_SIZE) != 0) {
290 size_t packetsRead = bytesRead / MPEG2_TS_PACKET_SIZE;
302 size_t bufferSize = packetsThisBuffer * MPEG2_TS_PACKET_SIZE;
[all...]

Completed in 37 milliseconds