199 size = strlen(
"CS=ITU601")+3;
302 int align= (-(size_t)(buf))&3;
308 for(i=0; i<size && i<align; i++){
309 if(buf[i]==0xFF) ff_count++;
311 for(; i<size-15; i+=16){
314 v= *(uint32_t*)(&buf[i]);
315 acc= (((v & (v>>4))&0x0F0F0F0F)+0x01010101)&0x10101010;
316 v= *(uint32_t*)(&buf[i+4]);
317 acc+=(((v & (v>>4))&0x0F0F0F0F)+0x01010101)&0x10101010;
318 v= *(uint32_t*)(&buf[i+8]);
319 acc+=(((v & (v>>4))&0x0F0F0F0F)+0x01010101)&0x10101010;
320 v= *(uint32_t*)(&buf[i+12]);
321 acc+=(((v & (v>>4))&0x0F0F0F0F)+0x01010101)&0x10101010;
329 if(buf[i]==0xFF) ff_count++;
332 if(ff_count==0)
return;
337 for(i=size-1; ff_count; i--){
355 if(length)
put_bits(pbc, length, (1<<length)-1);
378 uint8_t *huff_size, uint16_t *huff_code)
393 put_bits(&s->
pb, huff_size[nbits], huff_code[nbits]);
401 int mant, nbits, code, i, j;
402 int component,
dc,
run, last_index, val;
405 uint16_t *huff_code_ac;
408 component = (n <= 3 ? 0 : (n&1) + 1);
410 val = dc - s->
last_dc[component];
426 for(i=1;i<=last_index;i++) {
433 put_bits(&s->
pb, huff_size_ac[0xf0], huff_code_ac[0xf0]);
443 code = (run << 4) | nbits;
445 put_bits(&s->
pb, huff_size_ac[code], huff_code_ac[code]);
453 if (last_index < 63 || run != 0)
454 put_bits(&s->
pb, huff_size_ac[0], huff_code_ac[0]);
495 const AVFrame *pic_arg,
int *got_packet)
507 for(i=0; i < 3; i++) {
514 #if CONFIG_MJPEG_ENCODER
530 #if CONFIG_AMV_ENCODER