• Home
  • Raw
  • Download

Lines Matching refs:avs

68     AvsFormat *avs = s->priv_data;  in avs_read_header()  local
73 avs->width = avio_rl16(s->pb); in avs_read_header()
74 avs->height = avio_rl16(s->pb); in avs_read_header()
75 avs->bits_per_sample = avio_rl16(s->pb); in avs_read_header()
76 avs->fps = avio_rl16(s->pb); in avs_read_header()
77 avs->nb_frames = avio_rl32(s->pb); in avs_read_header()
78 avs->remaining_frame_size = 0; in avs_read_header()
79 avs->remaining_audio_size = 0; in avs_read_header()
81 avs->st_video = avs->st_audio = NULL; in avs_read_header()
83 if (avs->width != 318 || avs->height != 198) in avs_read_header()
86 avs->width, avs->height); in avs_read_header()
96 AvsFormat *avs = s->priv_data; in avs_read_video_packet() local
121 pkt->stream_index = avs->st_video->index; in avs_read_video_packet()
130 AvsFormat *avs = s->priv_data; in avs_read_audio_packet() local
135 ret = ff_voc_get_packet(s, pkt, avs->st_audio, avs->remaining_audio_size); in avs_read_audio_packet()
137 avs->remaining_audio_size -= size; in avs_read_audio_packet()
144 pkt->stream_index = avs->st_audio->index; in avs_read_audio_packet()
152 AvsFormat *avs = s->priv_data; in avs_read_packet() local
159 if (avs->remaining_audio_size > 0) in avs_read_packet()
164 if (avs->remaining_frame_size <= 0) { in avs_read_packet()
167 avs->remaining_frame_size = avio_rl16(s->pb) - 4; in avs_read_packet()
170 while (avs->remaining_frame_size > 0) { in avs_read_packet()
176 avs->remaining_frame_size -= size; in avs_read_packet()
189 if (!avs->st_video) { in avs_read_packet()
190 avs->st_video = avformat_new_stream(s, NULL); in avs_read_packet()
191 if (!avs->st_video) in avs_read_packet()
193 avs->st_video->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in avs_read_packet()
194 avs->st_video->codecpar->codec_id = AV_CODEC_ID_AVS; in avs_read_packet()
195 avs->st_video->codecpar->width = avs->width; in avs_read_packet()
196 avs->st_video->codecpar->height = avs->height; in avs_read_packet()
197 avs->st_video->codecpar->bits_per_coded_sample=avs->bits_per_sample; in avs_read_packet()
198 avs->st_video->nb_frames = avs->nb_frames; in avs_read_packet()
200 avs->st_video->r_frame_rate = in avs_read_packet()
202 avs->st_video->avg_frame_rate = (AVRational){avs->fps, 1}; in avs_read_packet()
208 if (!avs->st_audio) { in avs_read_packet()
209 avs->st_audio = avformat_new_stream(s, NULL); in avs_read_packet()
210 if (!avs->st_audio) in avs_read_packet()
212 avs->st_audio->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in avs_read_packet()
214 avs->remaining_audio_size = size - 4; in avs_read_packet()