Lines Matching defs:yop
52 YopDecContext *yop = s->priv_data;
87 yop->frame_size = avio_r8(pb) * 2048;
97 yop->palette_size = video_dec->extradata[0] * 3 + 4;
98 yop->audio_block_length = AV_RL16(video_dec->extradata + 6);
101 if (yop->audio_block_length < 920 ||
102 yop->audio_block_length + yop->palette_size >= yop->frame_size) {
116 YopDecContext *yop = s->priv_data;
120 int actual_video_data_size = yop->frame_size -
121 yop->audio_block_length - yop->palette_size;
123 yop->video_packet.stream_index = 1;
125 if (yop->video_packet.data) {
126 *pkt = yop->video_packet;
127 yop->video_packet.data = NULL;
128 yop->video_packet.size = 0;
129 pkt->data[0] = yop->odd_frame;
131 yop->odd_frame ^= 1;
134 ret = av_new_packet(&yop->video_packet,
135 yop->frame_size - yop->audio_block_length);
139 yop->video_packet.pos = avio_tell(pb);
141 ret = avio_read(pb, yop->video_packet.data, yop->palette_size);
144 }else if (ret < yop->palette_size) {
154 pkt->pos = yop->video_packet.pos;
156 avio_skip(pb, yop->audio_block_length - ret);
158 ret = avio_read(pb, yop->video_packet.data + yop->palette_size,
163 av_shrink_packet(&yop->video_packet, yop->palette_size + ret);
166 return yop->audio_block_length;
169 av_free_packet(&yop->video_packet);
175 YopDecContext *yop = s->priv_data;
176 av_free_packet(&yop->video_packet);
183 YopDecContext *yop = s->priv_data;
187 av_free_packet(&yop->video_packet);
193 pos_max = avio_size(s->pb) - yop->frame_size;
194 frame_count = (pos_max - pos_min) / yop->frame_size;
198 frame_pos = timestamp * yop->frame_size + pos_min;
199 yop->odd_frame = timestamp & 1;
206 .name = "yop",
214 .extensions = "yop",