44 #define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
61 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
62 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
63 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
64 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
65 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
66 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
67 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
68 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
69 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
70 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
71 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
72 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
78 if (sample_rate == 32000)
return 1280;
79 else if (sample_rate == 44100)
return 1764;
102 timecode |= 1<<23 | 1<<15 | 1<<7 | 1<<6;
107 channel = va_arg(ap,
int);
155 ((tc.tm_mday / 10) << 4) |
158 ((tc.tm_mon / 10) << 4) |
160 buf[4] = (((tc.tm_year % 100) / 10) << 4) |
171 ((tc.tm_sec / 10) << 4) |
174 ((tc.tm_min / 10) << 4) |
177 ((tc.tm_hour / 10) << 4) |
181 buf[1] = buf[2] = buf[3] = buf[4] = 0xff;
188 int i, j, d, of,
size;
193 for (j = 0; j < 9; j++) {
195 for (d = 8; d < 80; d+=2) {
203 frame_ptr += 16 * 80;
213 for (buf = frame; buf < frame + c->
sys->
frame_size; buf += 150 * 80) {
215 for (j = 80; j < 80 * 3; j += 80) {
216 for (k = 6; k < 6 * 8; k += 8)
228 for (j = 80*3 + 3; j < 80*6; j += 80) {
258 for (i = 0; i < c->
n_ast && st != c->
ast[i]; i++);
279 for (i=0; i < c->
n_ast; i++) {
314 if (vst)
return NULL;
329 for (i=0; i<c->
n_ast; i++) {
364 for (i=0; i < c->
n_ast; i++) {
383 for (i=0; i < c->
n_ast; i++)
395 "Make sure that you supply exactly two streams:\n"
396 " video: 25fps or 29.97fps, audio: 2ch/48|44|32kHz/PCM\n"
397 " (50Mbps allows an optional second audio stream)\n");