- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjsip-apps/src/samples/encdec.c
r3664 r5513 100 100 pjmedia_port *wavin, *wavout; 101 101 unsigned lost_pct; 102 unsigned bitstream_size = 0; 102 103 pj_status_t status; 103 104 … … 143 144 for (;;) { 144 145 pjmedia_frame frm_pcm, frm_bit, out_frm, frames[4]; 145 pj_int16_t pcmbuf[ 320];146 pj_int16_t pcmbuf[2048]; 146 147 pj_timestamp ts; 147 pj_uint8_t bitstream[ 160];148 pj_uint8_t bitstream[2048]; 148 149 149 150 frm_pcm.buf = (char*)pcmbuf; … … 176 177 } 177 178 179 bitstream_size += frm_bit.size; 180 178 181 /* Parse the bitstream (not really necessary for this case 179 182 * since we always decode 1 frame, but it's still good … … 218 221 pj_pool_release(pool); 219 222 223 printf("Total encoded size: %u bytes\n", bitstream_size); 224 printf("Bitrate: %.3fKbps\n", bitstream_size*8.0/file_msec_duration); 220 225 return PJ_SUCCESS; 221 226 }
Note: See TracChangeset
for help on using the changeset viewer.