Lines Matching defs:hdr
77 CinFileHeader *hdr = &cin->file_header;
82 hdr->video_frame_size = avio_rl32(pb);
83 hdr->video_frame_width = avio_rl16(pb);
84 hdr->video_frame_height = avio_rl16(pb);
85 hdr->audio_frequency = avio_rl32(pb);
86 hdr->audio_bits = avio_r8(pb);
87 hdr->audio_stereo = avio_r8(pb);
88 hdr->audio_frame_size = avio_rl16(pb);
90 if (hdr->audio_frequency != 22050 || hdr->audio_bits != 16 || hdr->audio_stereo != 0)
100 CinFileHeader *hdr = &cin->file_header;
122 st->codecpar->width = hdr->video_frame_width;
123 st->codecpar->height = hdr->video_frame_height;
146 CinFrameHeader *hdr = &cin->frame_header;
148 hdr->video_frame_type = avio_r8(pb);
149 hdr->audio_frame_type = avio_r8(pb);
150 hdr->pal_colors_count = avio_rl16(pb);
151 hdr->video_frame_size = avio_rl32(pb);
152 hdr->audio_frame_size = avio_rl32(pb);
159 if (hdr->video_frame_size < 0 || hdr->audio_frame_size < 0)
169 CinFrameHeader *hdr = &cin->frame_header;
179 if ((int16_t)hdr->pal_colors_count < 0) {
180 hdr->pal_colors_count = -(int16_t)hdr->pal_colors_count;
187 pkt_size = (palette_type + 3LL) * hdr->pal_colors_count + hdr->video_frame_size;
201 pkt->data[1] = hdr->pal_colors_count & 0xFF;
202 pkt->data[2] = hdr->pal_colors_count >> 8;
203 pkt->data[3] = hdr->video_frame_type;
213 cin->audio_buffer_size = hdr->audio_frame_size;