/third_party/ffmpeg/libavformat/ |
H A D | bink.c | 91 AVStream *const vst = avformat_new_stream(s, NULL); in read_header() local 92 FFStream *const vsti = ffstream(vst); in read_header() 102 if (!vst) in read_header() 105 vst->codecpar->codec_tag = avio_rl32(pb); in read_header() 106 if (vst->codecpar->codec_tag == AV_RL32("SMUS")) { in read_header() 110 vst->codecpar->codec_tag = avio_rl32(pb); in read_header() 111 } while (!avio_feof(pb) && (vst->codecpar->codec_tag & 0xFFFFFF) != AV_RL32("BIK")); in read_header() 119 vst->duration = avio_rl32(pb); in read_header() 121 if (vst->duration > 1000000) { in read_header() 134 vst in read_header() 309 AVStream *vst = s->streams[0]; read_seek() local [all...] |
H A D | gdv.c | 74 AVStream *vst, *ast; in gdv_read_header() local 80 vst = avformat_new_stream(ctx, 0); in gdv_read_header() 81 if (!vst) in gdv_read_header() 84 vst->start_time = 0; in gdv_read_header() 85 vst->duration = in gdv_read_header() 86 vst->nb_frames = avio_rl16(pb); in gdv_read_header() 120 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in gdv_read_header() 121 vst->codecpar->codec_id = AV_CODEC_ID_GDV; in gdv_read_header() 122 vst->codecpar->codec_tag = 0; in gdv_read_header() 123 vst in gdv_read_header() [all...] |
H A D | smush.c | 50 AVStream *vst, *ast; in smush_read_header() local 142 vst = avformat_new_stream(ctx, 0); in smush_read_header() 143 if (!vst) in smush_read_header() 146 smush->video_stream_index = vst->index; in smush_read_header() 148 avpriv_set_pts_info(vst, 64, 1, 15); in smush_read_header() 150 vst->start_time = 0; in smush_read_header() 151 vst->duration = in smush_read_header() 152 vst->nb_frames = nframes; in smush_read_header() 153 vst->avg_frame_rate = av_inv_q(vst in smush_read_header() [all...] |
H A D | mvi.c | 45 AVStream *ast, *vst; in read_header() local 54 vst = avformat_new_stream(s, NULL); in read_header() 55 if (!vst) in read_header() 58 if ((ret = ff_alloc_extradata(vst->codecpar, 2)) < 0) in read_header() 62 vst->codecpar->extradata[0] = avio_r8(pb); in read_header() 63 vst->codecpar->extradata[1] = avio_r8(pb); in read_header() 66 vst->codecpar->width = avio_rl16(pb); in read_header() 67 vst->codecpar->height = avio_rl16(pb); in read_header() 91 avpriv_set_pts_info(vst, 64, msecs_per_frame, 1000000); in read_header() 92 vst in read_header() [all...] |
H A D | smjpegdec.c | 49 AVStream *ast = NULL, *vst = NULL; in smjpeg_read_header() local 107 if (vst) { in smjpeg_read_header() 114 vst = avformat_new_stream(s, 0); in smjpeg_read_header() 115 if (!vst) in smjpeg_read_header() 117 vst->nb_frames = avio_rb32(pb); in smjpeg_read_header() 118 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in smjpeg_read_header() 119 vst->codecpar->width = avio_rb16(pb); in smjpeg_read_header() 120 vst->codecpar->height = avio_rb16(pb); in smjpeg_read_header() 121 vst->codecpar->codec_tag = avio_rl32(pb); in smjpeg_read_header() 122 vst in smjpeg_read_header() [all...] |
H A D | mlvdec.c | 117 static int scan_file(AVFormatContext *avctx, AVStream *vst, AVStream *ast, int file) in scan_file() argument 119 FFStream *const vsti = ffstream(vst), *const asti = ffstream(ast); in scan_file() 132 if (vst && type == MKTAG('R','A','W','I') && size >= 164) { in scan_file() 149 vst->codecpar->width = width; in scan_file() 150 vst->codecpar->height = height; in scan_file() 151 vst->codecpar->bits_per_coded_sample = bits_per_coded_sample; in scan_file() 156 vst->codecpar->format = AV_PIX_FMT_BAYER_RGGB16LE; in scan_file() 157 vst->codecpar->codec_tag = MKTAG('B', 'I', 'T', 16); in scan_file() 190 } else if (vst && type == MKTAG('V', 'I', 'D', 'F') && size >= 4) { in scan_file() 202 } else if (vst in scan_file() 261 AVStream *vst = NULL, *ast = NULL; read_header() local [all...] |
H A D | nuv.c | 66 * @param vst video stream of which to change parameters 71 static int get_codec_data(AVFormatContext *s, AVIOContext *pb, AVStream *vst, in get_codec_data() argument 76 if (!vst && !myth) in get_codec_data() 87 if (vst && subtype == 'R') { in get_codec_data() 88 if ((ret = ff_get_extradata(NULL, vst->codecpar, pb, size)) < 0) in get_codec_data() 101 if (vst) { in get_codec_data() 102 vst->codecpar->codec_tag = avio_rl32(pb); in get_codec_data() 103 vst->codecpar->codec_id = in get_codec_data() 104 ff_codec_get_id(ff_codec_bmp_tags, vst->codecpar->codec_tag); in get_codec_data() 105 if (vst in get_codec_data() 166 AVStream *vst = NULL, *ast = NULL; nuv_header() local [all...] |
H A D | hnm.c | 63 AVStream *vst; in hnm_read_header() local 80 if (!(vst = avformat_new_stream(s, NULL))) in hnm_read_header() 83 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in hnm_read_header() 84 vst->codecpar->codec_id = AV_CODEC_ID_HNM4_VIDEO; in hnm_read_header() 85 vst->codecpar->codec_tag = 0; in hnm_read_header() 86 vst->codecpar->width = width; in hnm_read_header() 87 vst->codecpar->height = height; in hnm_read_header() 88 if ((ret = ff_alloc_extradata(vst->codecpar, 1)) < 0) in hnm_read_header() 92 vst->codecpar->extradata[0] = width == 640 ? 0x4a : 0x40; in hnm_read_header() 94 vst in hnm_read_header() [all...] |
H A D | imx.c | 54 AVStream *vst, *ast; in simbiosis_imx_read_header() local 57 vst = avformat_new_stream(s, NULL); in simbiosis_imx_read_header() 59 if (!vst || !ast) in simbiosis_imx_read_header() 64 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in simbiosis_imx_read_header() 65 vst->codecpar->codec_tag = 0; in simbiosis_imx_read_header() 66 vst->codecpar->format = AV_PIX_FMT_PAL8; in simbiosis_imx_read_header() 67 vst->codecpar->codec_id = AV_CODEC_ID_SIMBIOSIS_IMX; in simbiosis_imx_read_header() 68 vst->start_time = 0; in simbiosis_imx_read_header() 69 vst->duration = in simbiosis_imx_read_header() 70 vst in simbiosis_imx_read_header() [all...] |
H A D | cdg.c | 31 AVStream *vst; in read_header() local 34 vst = avformat_new_stream(s, NULL); in read_header() 35 if (!vst) in read_header() 38 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in read_header() 39 vst->codecpar->codec_id = AV_CODEC_ID_CDGRAPHICS; in read_header() 42 avpriv_set_pts_info(vst, 32, 1, 300); in read_header() 48 vst->duration = (ret * (int64_t)vst->time_base.den) / (CDG_PACKET_SIZE * 300); in read_header()
|
H A D | sierravmd.c | 88 AVStream *st = NULL, *vst = NULL; in vmd_read_header() local 115 vst = avformat_new_stream(s, NULL); in vmd_read_header() 116 if (!vst) in vmd_read_header() 118 avpriv_set_pts_info(vst, 33, 1, 10); in vmd_read_header() 119 vmd->video_stream_index = vst->index; in vmd_read_header() 120 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in vmd_read_header() 121 vst->codecpar->codec_id = vmd->is_indeo3 ? AV_CODEC_ID_INDEO3 : AV_CODEC_ID_VMDVIDEO; in vmd_read_header() 122 vst->codecpar->codec_tag = 0; /* no fourcc */ in vmd_read_header() 123 vst->codecpar->width = width; in vmd_read_header() 124 vst in vmd_read_header() [all...] |
H A D | rpl.c | 119 AVStream *vst = NULL, *ast = NULL; in rpl_read_header() local 150 vst = avformat_new_stream(s, NULL); in rpl_read_header() 151 if (!vst) in rpl_read_header() 153 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in rpl_read_header() 154 vst->codecpar->codec_tag = video_format; in rpl_read_header() 155 vst->codecpar->width = read_line_and_int(pb, &error); // video width in rpl_read_header() 156 vst->codecpar->height = read_line_and_int(pb, &error); // video height in rpl_read_header() 157 vst->codecpar->bits_per_coded_sample = read_line_and_int(pb, &error); // video bits per sample in rpl_read_header() 160 switch (vst->codecpar->codec_tag) { in rpl_read_header() 163 vst in rpl_read_header() [all...] |
H A D | pmpdec.c | 54 AVStream *vst = avformat_new_stream(s, NULL); in pmp_header() local 55 if (!vst) in pmp_header() 57 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in pmp_header() 61 vst->codecpar->codec_id = AV_CODEC_ID_MPEG4; in pmp_header() 64 vst->codecpar->codec_id = AV_CODEC_ID_H264; in pmp_header() 71 vst->codecpar->width = avio_rl32(pb); in pmp_header() 72 vst->codecpar->height = avio_rl32(pb); in pmp_header() 76 avpriv_set_pts_info(vst, 32, tb_num, tb_den); in pmp_header() 77 vst->nb_frames = index_cnt; in pmp_header() 78 vst in pmp_header() [all...] |
H A D | tmv.c | 71 AVStream *vst, *ast; in tmv_read_header() local 78 if (!(vst = avformat_new_stream(s, NULL))) in tmv_read_header() 130 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in tmv_read_header() 131 vst->codecpar->codec_id = AV_CODEC_ID_TMV; in tmv_read_header() 132 vst->codecpar->format = AV_PIX_FMT_PAL8; in tmv_read_header() 133 vst->codecpar->width = char_cols * 8; in tmv_read_header() 134 vst->codecpar->height = char_rows * 8; in tmv_read_header() 135 avpriv_set_pts_info(vst, 32, fps.den, fps.num); in tmv_read_header() 142 vst->codecpar->bit_rate = ((tmv->video_chunk_size + tmv->padding) * in tmv_read_header()
|
H A D | mvdec.c | 295 AVStream *ast = NULL, *vst = NULL; //initialization to suppress warning in mv_read_header() local 325 vst = avformat_new_stream(avctx, NULL); in mv_read_header() 326 if (!vst) in mv_read_header() 328 avpriv_set_pts_info(vst, 64, fps.den, fps.num); in mv_read_header() 329 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in mv_read_header() 330 vst->avg_frame_rate = fps; in mv_read_header() 331 vst->duration = vst->nb_frames = avio_rb32(pb); in mv_read_header() 335 vst->codecpar->codec_id = AV_CODEC_ID_MVC1; in mv_read_header() 338 vst in mv_read_header() [all...] |
H A D | swfdec.c | 216 AVStream *vst = NULL, *ast = NULL, *st = 0; in swf_read_packet() local 248 vst = avformat_new_stream(s, NULL); in swf_read_packet() 249 if (!vst) in swf_read_packet() 251 vst->id = ch_id; in swf_read_packet() 252 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in swf_read_packet() 253 vst->codecpar->codec_id = ff_codec_get_id(ff_swf_codec_tags, avio_r8(pb)); in swf_read_packet() 254 avpriv_set_pts_info(vst, 16, 256, swf->frame_rate); in swf_read_packet() 404 vst = avformat_new_stream(s, NULL); in swf_read_packet() 405 if (!vst) { in swf_read_packet() 409 vst in swf_read_packet() [all...] |
H A D | paf.c | 96 AVStream *ast, *vst; in read_header() local 101 vst = avformat_new_stream(s, 0); in read_header() 102 if (!vst) in read_header() 105 vst->start_time = 0; in read_header() 106 vst->nb_frames = in read_header() 107 vst->duration = in read_header() 113 vst->codecpar->width = avio_rl32(pb); in read_header() 114 vst->codecpar->height = avio_rl32(pb); in read_header() 117 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in read_header() 118 vst in read_header() [all...] |
H A D | jvdec.c | 76 AVStream *vst, *ast; in read_header() local 84 vst = avformat_new_stream(s, NULL); in read_header() 85 if (!ast || !vst) in read_header() 89 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in read_header() 90 vst->codecpar->codec_id = AV_CODEC_ID_JV; in read_header() 91 vst->codecpar->codec_tag = 0; /* no fourcc */ in read_header() 92 vst->codecpar->width = avio_rl16(pb); in read_header() 93 vst->codecpar->height = avio_rl16(pb); in read_header() 94 vst->duration = in read_header() 95 vst in read_header() [all...] |
H A D | xmv.c | 285 AVStream *vst = avformat_new_stream(s, NULL); in xmv_process_packet_header() local 286 if (!vst) in xmv_process_packet_header() 289 avpriv_set_pts_info(vst, 32, 1, 1000); in xmv_process_packet_header() 291 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in xmv_process_packet_header() 292 vst->codecpar->codec_id = AV_CODEC_ID_WMV2; in xmv_process_packet_header() 293 vst->codecpar->codec_tag = MKBETAG('W', 'M', 'V', '2'); in xmv_process_packet_header() 294 vst->codecpar->width = xmv->video_width; in xmv_process_packet_header() 295 vst->codecpar->height = xmv->video_height; in xmv_process_packet_header() 297 vst->duration = xmv->video_duration; in xmv_process_packet_header() 299 xmv->video.stream_index = vst in xmv_process_packet_header() 389 AVStream *vst = s->streams[xmv->video.stream_index]; xmv_process_packet_header() local [all...] |
H A D | vivo.c | 125 AVStream *ast, *vst; in vivo_read_header() local 132 vst = avformat_new_stream(s, NULL); in vivo_read_header() 134 if (!ast || !vst) in vivo_read_header() 188 vst->codecpar->width = value_int; in vivo_read_header() 190 vst->codecpar->height = value_int; in vivo_read_header() 227 avpriv_set_pts_info(vst, 64, fps.num, fps.den); in vivo_read_header() 231 vst->start_time = 0; in vivo_read_header() 232 vst->codecpar->codec_tag = 0; in vivo_read_header() 233 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in vivo_read_header() 236 vst in vivo_read_header() [all...] |
H A D | rmdec.c | 760 RMDemuxContext *rm, RMStream *vst, in rm_assemble_video_frame() 810 if((seq & 0x7F) == 1 || vst->curpic_num != pic_num){ in rm_assemble_video_frame() 815 vst->slices = ((hdr & 0x3F) << 1) + 1; in rm_assemble_video_frame() 816 vst->videobufsize = len2 + 8*vst->slices + 1; in rm_assemble_video_frame() 817 av_packet_unref(&vst->pkt); //FIXME this should be output. in rm_assemble_video_frame() 818 if ((ret = av_new_packet(&vst->pkt, vst->videobufsize)) < 0) in rm_assemble_video_frame() 820 vst->videobufpos = 8*vst in rm_assemble_video_frame() 759 rm_assemble_video_frame(AVFormatContext *s, AVIOContext *pb, RMDemuxContext *rm, RMStream *vst, AVPacket *pkt, int len, int *pseq, int64_t *timestamp) rm_assemble_video_frame() argument [all...] |
H A D | amvenc.c | 96 AVStream *vst, *ast; in amv_init() local 106 vst = s->streams[AMV_STREAM_VIDEO]; in amv_init() 109 if (vst->codecpar->codec_id != AV_CODEC_ID_AMV) { in amv_init() 127 amv->us_per_frame = av_rescale(AV_TIME_BASE, vst->time_base.num, vst->time_base.den); in amv_init() 264 AVStream *vst = s->streams[AMV_STREAM_VIDEO]; in amv_write_header() local 278 AV_WL32(amvh + 32, vst->codecpar->width); in amv_write_header() 279 AV_WL32(amvh + 36, vst->codecpar->height); in amv_write_header() 280 AV_WL32(amvh + 40, vst->time_base.den); in amv_write_header() 281 AV_WL32(amvh + 44, vst in amv_write_header() 366 AVStream *vst = s->streams[AMV_STREAM_VIDEO]; amv_write_trailer() local [all...] |
H A D | wavdec.c | 53 AVStream *vst; member 413 AVStream *vst; in wav_read_header() local 486 vst = avformat_new_stream(s, NULL); in wav_read_header() 487 if (!vst) in wav_read_header() 489 wav->vst = vst; in wav_read_header() 491 vst->id = 1; in wav_read_header() 492 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in wav_read_header() 493 vst->codecpar->codec_id = AV_CODEC_ID_SMVJPEG; in wav_read_header() 494 vst in wav_read_header() 717 AVStream *vst = wav->vst; wav_read_packet() local 802 AVStream *ast = s->streams[0], *vst = wav->vst; wav_read_seek() local [all...] |
/third_party/ffmpeg/libavdevice/ |
H A D | libdc1394.c | 101 AVStream* vst; in dc1394_read_common() local 141 vst = avformat_new_stream(c, NULL); in dc1394_read_common() 142 if (!vst) { in dc1394_read_common() 146 avpriv_set_pts_info(vst, 64, 1, 1000); in dc1394_read_common() 147 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in dc1394_read_common() 148 vst->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in dc1394_read_common() 149 vst->codecpar->width = fmt->width; in dc1394_read_common() 150 vst->codecpar->height = fmt->height; in dc1394_read_common() 151 vst->codecpar->format = fmt->pix_fmt; in dc1394_read_common() 152 vst in dc1394_read_common() [all...] |
/third_party/toybox/toys/pending/ |
H A D | awk.c | 81 struct zstring *vst; 534 if (v && ! (v->flags & (ZF_ANYMAP | ZF_RX))) zstring_release(&v->vst); in zvalue_release_zstring() 545 if (IS_STR(v) && v->vst) v->vst->refcnt++; // inlined zstring_incr_refcnt() in push_val() 555 zstring_incr_refcnt(to->vst); in zvalue_copy() 561 struct zstring *z = new_zstring(v->vst->str, v->vst->size); in zvalue_dup_zstring() 562 zstring_release(&v->vst); in zvalue_dup_zstring() 563 v->vst = z; in zvalue_dup_zstring() 646 if (p->val.vst) zstring_releas in zmap_delete_map_incl_slotdata() [all...] |