Lines Matching defs:sector
73 const uint8_t *sector= p->buf;
74 const uint8_t *end= sector + p->buf_size;
84 sector += RIFF_HEADER_SIZE;
87 while (end - sector >= RAW_CD_SECTOR_SIZE) {
89 if (memcmp(sector,sync_header,sizeof(sync_header)))
92 if (sector[0x11] >= 32)
95 switch (sector[0x12] & CDXA_TYPE_MASK) {
98 int current_sector = AV_RL16(§or[0x1C]);
99 int sector_count = AV_RL16(§or[0x1E]);
100 int frame_size = AV_RL32(§or[0x24]);
112 if(sector[0x13]&0x2A)
117 if(sector[0x12] & CDXA_TYPE_MASK)
120 sector += RAW_CD_SECTOR_SIZE;
133 unsigned char sector[RAW_CD_SECTOR_SIZE];
138 if (avio_read(pb, sector, RIFF_HEADER_SIZE) != RIFF_HEADER_SIZE)
140 if (AV_RL32(§or[0]) == RIFF_TAG)
162 unsigned char sector[RAW_CD_SECTOR_SIZE];
169 if (avio_read(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE)
172 channel = sector[0x11];
176 switch (sector[0x12] & CDXA_TYPE_MASK) {
182 int current_sector = AV_RL16(§or[0x1C]);
183 int sector_count = AV_RL16(§or[0x1E]);
184 int frame_size = AV_RL32(§or[0x24]);
205 st->codecpar->width = AV_RL16(§or[0x28]);
206 st->codecpar->height = AV_RL16(§or[0x2A]);
209 /* if this is the first sector of the frame, allocate a pkt */
227 sector + VIDEO_DATA_HEADER_SIZE,
244 int fmt = sector[0x13];
267 memcpy(pkt->data,sector+24,2304);
274 av_log(s, AV_LOG_WARNING, "Unknown sector type %02X\n", sector[0x12]);
275 /* drop the sector and move on */