comparison mpeg12.c @ 9626:bd3e11b60ccd libavcodec

Add a chroma_sample_location field to define positioning of chroma samples
author conrad
date Mon, 11 May 2009 04:34:23 +0000
parents b8357dc014b0
children 15660ad4c641
comparison
equal deleted inserted replaced
9625:7c4ab94a82d8 9626:bd3e11b60ccd
1187 s->mpeg_enc_ctx_allocated = 0; 1187 s->mpeg_enc_ctx_allocated = 0;
1188 s->mpeg_enc_ctx.picture_number = 0; 1188 s->mpeg_enc_ctx.picture_number = 0;
1189 s->repeat_field = 0; 1189 s->repeat_field = 0;
1190 s->mpeg_enc_ctx.codec_id= avctx->codec->id; 1190 s->mpeg_enc_ctx.codec_id= avctx->codec->id;
1191 avctx->color_range= AVCOL_RANGE_MPEG; 1191 avctx->color_range= AVCOL_RANGE_MPEG;
1192 if (avctx->codec->id == CODEC_ID_MPEG1VIDEO)
1193 avctx->chroma_sample_location = AVCHROMA_LOC_CENTER;
1194 else
1195 avctx->chroma_sample_location = AVCHROMA_LOC_LEFT;
1192 return 0; 1196 return 0;
1193 } 1197 }
1194 1198
1195 static void quant_matrix_rebuild(uint16_t *matrix, const uint8_t *old_perm, 1199 static void quant_matrix_rebuild(uint16_t *matrix, const uint8_t *old_perm,
1196 const uint8_t *new_perm){ 1200 const uint8_t *new_perm){