Lines Matching defs:ast

123                                      AVStream *st, RMStream *ast, int read_all)
154 ast->deint_id = DEINT_ID_INT0;
169 ast->coded_framesize = coded_framesize;
178 ast->sub_packet_h = sub_packet_h = avio_rb16(pb); /* 1 */
180 ast->sub_packet_size = sub_packet_size = avio_rb16(pb); /* sub packet size */
189 ast->deint_id = avio_rl32(pb);
195 ast->deint_id = AV_RL32(buf);
210 ast->audio_framesize = st->codecpar->block_align;
230 ast->audio_framesize = st->codecpar->block_align;
244 st->codecpar->block_align = ast->sub_packet_size;
266 switch (ast->deint_id) {
268 if (ast->coded_framesize > ast->audio_framesize ||
270 ast->coded_framesize * (uint64_t)sub_packet_h > (2 + (sub_packet_h & 1)) * ast->audio_framesize)
272 if (ast->coded_framesize * (uint64_t)sub_packet_h != 2*ast->audio_framesize) {
278 if (ast->sub_packet_size <= 0 ||
279 ast->sub_packet_size > ast->audio_framesize)
281 if (ast->audio_framesize % ast->sub_packet_size)
290 av_log(s, AV_LOG_ERROR ,"Unknown interleaver %"PRIX32"\n", ast->deint_id);
293 if (ast->deint_id == DEINT_ID_INT4 ||
294 ast->deint_id == DEINT_ID_GENR ||
295 ast->deint_id == DEINT_ID_SIPR) {
297 ast->audio_framesize * (uint64_t)sub_packet_h > (unsigned)INT_MAX ||
298 ast->audio_framesize * sub_packet_h < st->codecpar->block_align)
300 if (av_new_packet(&ast->pkt, ast->audio_framesize * sub_packet_h) < 0)
888 AVStream *st, RMStream *ast, int len, AVPacket *pkt,
896 ret = rm_assemble_video_frame(s, pb, rm, ast, pkt, len, seq, &timestamp);
900 if ((ast->deint_id == DEINT_ID_GENR) ||
901 (ast->deint_id == DEINT_ID_INT4) ||
902 (ast->deint_id == DEINT_ID_SIPR)) {
904 int sps = ast->sub_packet_size;
905 int cfs = ast->coded_framesize;
906 int h = ast->sub_packet_h;
907 int y = ast->sub_packet_cnt;
908 int w = ast->audio_framesize;
911 y = ast->sub_packet_cnt = 0;
913 ast->audiotimestamp = timestamp;
915 switch (ast->deint_id) {
918 readfull(s, pb, ast->pkt.data+x*2*w+y*cfs, cfs);
922 readfull(s, pb, ast->pkt.data+sps*(h*x+((h+1)/2)*(y&1)+(y>>1)), sps);
925 readfull(s, pb, ast->pkt.data + y * w, w);
929 if (++(ast->sub_packet_cnt) < h)
931 if (ast->deint_id == DEINT_ID_SIPR)
932 ff_rm_reorder_sipr_data(ast->pkt.data, h, w);
934 ast->sub_packet_cnt = 0;
941 } else if ((ast->deint_id == DEINT_ID_VBRF) ||
942 (ast->deint_id == DEINT_ID_VBRS)) {
945 ast->sub_packet_cnt = (avio_rb16(pb) & 0xf0) >> 4;
946 if (ast->sub_packet_cnt) {
947 for (x = 0; x < ast->sub_packet_cnt; x++)
948 ast->sub_packet_lengths[x] = avio_rb16(pb);
949 rm->audio_pkt_cnt = ast->sub_packet_cnt;
950 ast->audiotimestamp = timestamp;
976 AVStream *st, RMStream *ast, AVPacket *pkt)
983 if (ast->deint_id == DEINT_ID_VBRF ||
984 ast->deint_id == DEINT_ID_VBRS) {
985 ret = av_get_packet(pb, pkt, ast->sub_packet_lengths[ast->sub_packet_cnt - rm->audio_pkt_cnt]);
992 memcpy(pkt->data, ast->pkt.data + st->codecpar->block_align * //FIXME avoid this
993 (ast->sub_packet_h * ast->audio_framesize / st->codecpar->block_align - rm->audio_pkt_cnt),
997 if ((pkt->pts = ast->audiotimestamp) != AV_NOPTS_VALUE) {
998 ast->audiotimestamp = AV_NOPTS_VALUE;
1025 RMStream *ast;
1028 ast = st->priv_data;
1030 len = !ast->audio_framesize ? RAW_PACKET_SIZE :
1031 ast->coded_framesize * (int64_t)ast->sub_packet_h / 2;