mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 12:36:41 +08:00 
			
		
		
		
	Merge commit 'b183abfb5b6366b177cf44f244c66156257a6fd6'
* commit 'b183abfb5b6366b177cf44f244c66156257a6fd6':
  vpx: Support color range
Decoder chunk not merged as the framework automatically copies avctx
color range to the frame color range. And we already set the avctx field
since cbcc88c039.
Merged-by: Clément Bœsch <cboesch@gopro.com>
			
			
This commit is contained in:
		| @@ -1020,6 +1020,16 @@ static int vpx_encode(AVCodecContext *avctx, AVPacket *pkt, | ||||
|             rawimg_alpha->stride[VPX_PLANE_V] = frame->linesize[2]; | ||||
|         } | ||||
|         timestamp                   = frame->pts; | ||||
| #if VPX_IMAGE_ABI_VERSION >= 4 | ||||
|         switch (frame->color_range) { | ||||
|         case AVCOL_RANGE_MPEG: | ||||
|             rawimg->range = VPX_CR_STUDIO_RANGE; | ||||
|             break; | ||||
|         case AVCOL_RANGE_JPEG: | ||||
|             rawimg->range = VPX_CR_FULL_RANGE; | ||||
|             break; | ||||
|         } | ||||
| #endif | ||||
|         if (frame->pict_type == AV_PICTURE_TYPE_I) | ||||
|             flags |= VPX_EFLAG_FORCE_KF; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Clément Bœsch
					Clément Bœsch