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;
299 uint16_t audio_track;
300 uint64_t data_offset;
343 if ((packet->
data_size == 0) && (audio_track != 0))
435 uint32_t block_count;
492 frame_size = (frame_header & 0x1FFFF) * 4 + 4;
493 frame_timestamp = (frame_header >> 17);
500 if (result != frame_size)
507 for (data = pkt->
data, end = pkt->
data + frame_size; data < end; data += 4)
520 video->
pts += frame_timestamp;