• Home
  • Raw
  • Download

Lines Matching refs:codecpar

121         vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;  in vmd_read_header()
122 vst->codecpar->codec_id = vmd->is_indeo3 ? AV_CODEC_ID_INDEO3 : AV_CODEC_ID_VMDVIDEO; in vmd_read_header()
123 vst->codecpar->codec_tag = 0; /* no fourcc */ in vmd_read_header()
124 vst->codecpar->width = width; in vmd_read_header()
125 vst->codecpar->height = height; in vmd_read_header()
126 if(vmd->is_indeo3 && vst->codecpar->width > 320){ in vmd_read_header()
127 vst->codecpar->width >>= 1; in vmd_read_header()
128 vst->codecpar->height >>= 1; in vmd_read_header()
130 if ((ret = ff_alloc_extradata(vst->codecpar, VMD_HEADER_SIZE)) < 0) in vmd_read_header()
132 memcpy(vst->codecpar->extradata, vmd->vmd_header, VMD_HEADER_SIZE); in vmd_read_header()
142 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in vmd_read_header()
143 st->codecpar->codec_id = AV_CODEC_ID_VMDAUDIO; in vmd_read_header()
144 st->codecpar->codec_tag = 0; /* no fourcc */ in vmd_read_header()
145 st->codecpar->sample_rate = vmd->sample_rate; in vmd_read_header()
146 st->codecpar->block_align = AV_RL16(&vmd->vmd_header[806]); in vmd_read_header()
147 if (st->codecpar->block_align & 0x8000) { in vmd_read_header()
148 st->codecpar->bits_per_coded_sample = 16; in vmd_read_header()
149 st->codecpar->block_align = -(st->codecpar->block_align - 0x10000); in vmd_read_header()
151 st->codecpar->bits_per_coded_sample = 8; in vmd_read_header()
154 st->codecpar->channels = 2; in vmd_read_header()
155 st->codecpar->channel_layout = AV_CH_LAYOUT_STEREO; in vmd_read_header()
159 st->codecpar->channels = 2; in vmd_read_header()
160 st->codecpar->channel_layout = AV_CH_LAYOUT_STEREO; in vmd_read_header()
161 st->codecpar->block_align = st->codecpar->block_align << 1; in vmd_read_header()
163 st->codecpar->channels = 1; in vmd_read_header()
164 st->codecpar->channel_layout = AV_CH_LAYOUT_MONO; in vmd_read_header()
166 st->codecpar->bit_rate = st->codecpar->sample_rate * in vmd_read_header()
167 st->codecpar->bits_per_coded_sample * st->codecpar->channels; in vmd_read_header()
170 num = st->codecpar->block_align; in vmd_read_header()
171 den = st->codecpar->sample_rate * st->codecpar->channels; in vmd_read_header()