38 #define XMV_MIN_HEADER_SIZE 36
41 #define XMV_AUDIO_ADPCM51_FRONTLEFTRIGHT 1
43 #define XMV_AUDIO_ADPCM51_FRONTCENTERLOW 2
45 #define XMV_AUDIO_ADPCM51_REARLEFTRIGHT 4
48 #define XMV_AUDIO_ADPCM51 (XMV_AUDIO_ADPCM51_FRONTLEFTRIGHT | \
49 XMV_AUDIO_ADPCM51_FRONTCENTERLOW | \
50 XMV_AUDIO_ADPCM51_REARLEFTRIGHT)
112 uint32_t file_version;
118 if ((file_version == 0) || (file_version > 4))
121 if (!memcmp(p->
buf + 12,
"xobX", 4))
133 uint32_t file_version;
134 uint32_t this_packet_size;
135 uint16_t audio_track;
145 if ((file_version != 4) && (file_version != 2))
209 "(0x%04X)\n", packet->
flags);
247 int mspel_bit = !!(data & 0x01);
249 int abt_flag = !!(data & 0x04);
250 int j_type_bit = !!(data & 0x08);
251 int top_left_mv_flag = !!(data & 0x10);
252 int per_mb_rl_bit = !!(data & 0x20);
253 int slice_count = (data >> 6) & 7;
259 data |= mspel_bit << 15;
260 data |= loop_filter << 14;
261 data |= abt_flag << 13;
262 data |= j_type_bit << 12;
263 data |= top_left_mv_flag << 11;
264 data |= per_mb_rl_bit << 10;
265 data |= slice_count << 7;
276 uint16_t audio_track;
277 uint64_t data_offset;
320 if ((packet->
data_size == 0) && (audio_track != 0))
414 uint32_t block_count;
471 frame_size = (frame_header & 0x1FFFF) * 4 + 4;
472 frame_timestamp = (frame_header >> 17);
479 if (result != frame_size)
486 for (data = pkt->
data, end = pkt->
data + frame_size; data < end; data += 4)
499 video->
pts += frame_timestamp;