Mercurial > libavcodec.hg
comparison dvdata.h @ 8042:e70975d5ff80 libavcodec
uses FF_ARRAY_ELEMS() where appropriate
| author | aurel |
|---|---|
| date | Tue, 21 Oct 2008 21:40:24 +0000 |
| parents | 07d8986fbea7 |
| children | 4eac1822bc65 |
comparison
equal
deleted
inserted
replaced
| 8041:24761747ac3d | 8042:e70975d5ff80 |
|---|---|
| 6384 /* 576i50 25Mbps 4:1:1 is a special case */ | 6384 /* 576i50 25Mbps 4:1:1 is a special case */ |
| 6385 if (dsf == 1 && stype == 0 && frame[5] & 0x07) { | 6385 if (dsf == 1 && stype == 0 && frame[5] & 0x07) { |
| 6386 return &dv_profiles[2]; | 6386 return &dv_profiles[2]; |
| 6387 } | 6387 } |
| 6388 | 6388 |
| 6389 for (i=0; i<sizeof(dv_profiles)/sizeof(DVprofile); i++) | 6389 for (i=0; i<FF_ARRAY_ELEMS(dv_profiles); i++) |
| 6390 if (dsf == dv_profiles[i].dsf && stype == dv_profiles[i].video_stype) | 6390 if (dsf == dv_profiles[i].dsf && stype == dv_profiles[i].video_stype) |
| 6391 return &dv_profiles[i]; | 6391 return &dv_profiles[i]; |
| 6392 | 6392 |
| 6393 return NULL; | 6393 return NULL; |
| 6394 } | 6394 } |
| 6395 | 6395 |
| 6396 static const DVprofile* dv_codec_profile(AVCodecContext* codec) | 6396 static const DVprofile* dv_codec_profile(AVCodecContext* codec) |
| 6397 { | 6397 { |
| 6398 int i; | 6398 int i; |
| 6399 | 6399 |
| 6400 for (i=0; i<sizeof(dv_profiles)/sizeof(DVprofile); i++) | 6400 for (i=0; i<FF_ARRAY_ELEMS(dv_profiles); i++) |
| 6401 if (codec->height == dv_profiles[i].height && codec->pix_fmt == dv_profiles[i].pix_fmt && | 6401 if (codec->height == dv_profiles[i].height && codec->pix_fmt == dv_profiles[i].pix_fmt && |
| 6402 codec->width == dv_profiles[i].width) | 6402 codec->width == dv_profiles[i].width) |
| 6403 return &dv_profiles[i]; | 6403 return &dv_profiles[i]; |
| 6404 | 6404 |
| 6405 return NULL; | 6405 return NULL; |
