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)
52 #define XMV_BLOCK_ALIGN_SIZE 36
114 uint32_t file_version;
120 if ((file_version == 0) || (file_version > 4))
123 if (!memcmp(p->
buf + 12,
"xobX", 4))
144 uint32_t file_version;
145 uint32_t this_packet_size;
146 uint16_t audio_track;
157 if ((file_version != 4) && (file_version != 2))
218 "(0x%04X)\n", packet->
flags);
270 int mspel_bit = !!(data & 0x01);
272 int abt_flag = !!(data & 0x04);
273 int j_type_bit = !!(data & 0x08);
274 int top_left_mv_flag = !!(data & 0x10);
275 int per_mb_rl_bit = !!(data & 0x20);
276 int slice_count = (data >> 6) & 7;
282 data |= mspel_bit << 15;
283 data |= loop_filter << 14;
284 data |= abt_flag << 13;
285 data |= j_type_bit << 12;
286 data |= top_left_mv_flag << 11;
287 data |= per_mb_rl_bit << 10;
288 data |= slice_count << 7;
300 uint16_t audio_track;
301 uint64_t data_offset;
344 if ((packet->
data_size == 0) && (audio_track != 0))
437 uint32_t block_count;
494 frame_size = (frame_header & 0x1FFFF) * 4 + 4;
495 frame_timestamp = (frame_header >> 17);
502 if (result != frame_size)
509 for (data = pkt->
data, end = pkt->
data + frame_size; data < end; data += 4)
522 video->
pts += frame_timestamp;