Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 1 of 1) sorted by relevance

/development/ndk/platforms/android-14/samples/native-media/jni/
Dnative-media-jni.c165 size_t bytesRead; in AndroidBufferQueueCallback() local
166 bytesRead = fread(pBufferData, 1, BUFFER_SIZE, file); in AndroidBufferQueueCallback()
167 if (bytesRead > 0) { in AndroidBufferQueueCallback()
168 if ((bytesRead % MPEG2_TS_PACKET_SIZE) != 0) { in AndroidBufferQueueCallback()
171 size_t packetsRead = bytesRead / MPEG2_TS_PACKET_SIZE; in AndroidBufferQueueCallback()
281 size_t bytesRead; in enqueueInitialBuffers() local
282 bytesRead = fread(dataCache, 1, BUFFER_SIZE * NB_BUFFERS, file); in enqueueInitialBuffers()
283 if (bytesRead <= 0) { in enqueueInitialBuffers()
287 if ((bytesRead % MPEG2_TS_PACKET_SIZE) != 0) { in enqueueInitialBuffers()
290 size_t packetsRead = bytesRead / MPEG2_TS_PACKET_SIZE; in enqueueInitialBuffers()