This is not the same as the syntax element value in the frame header because the specification parsing tables override the value on intra frames.
Unified · Split
| @@ -725,6 +725,8 @@ static void av1_frame_replace(AV1Frame *dst, const AV1Frame *src) · 724 unmodified lines | |||
| 725 | sizeof(dst->ref_frame_sign_bias)); | 725 | sizeof(dst->ref_frame_sign_bias)); |
| 726 | memcpy(dst->order_hints, src->order_hints, | 726 | memcpy(dst->order_hints, src->order_hints, |
| 727 | sizeof(dst->order_hints)); | 727 | sizeof(dst->order_hints)); |
| 728 | |||
| 729 | dst->force_integer_mv = src->force_integer_mv; | ||
| 728 | } | 730 | } |
| 729 | 731 | ||
| 730 | static av_cold int av1_decode_free(AVCodecContext *avctx) | 732 | static av_cold int av1_decode_free(AVCodecContext *avctx) |
| @@ -1255,6 +1257,11 @@ static int get_current_frame(AVCodecContext *avctx) · 524 unmodified lines | |||
| 1255 | order_hint_info(s); | 1257 | order_hint_info(s); |
| 1256 | load_grain_params(s); | 1258 | load_grain_params(s); |
| 1257 | 1259 | ||
| 1260 | s->cur_frame.force_integer_mv = | ||
| 1261 | s->raw_frame_header->force_integer_mv || | ||
| 1262 | s->raw_frame_header->frame_type == AV1_FRAME_KEY || | ||
| 1263 | s->raw_frame_header->frame_type == AV1_FRAME_INTRA_ONLY; | ||
| 1264 | |||
| 1258 | return ret; | 1265 | return ret; |
| 1259 | } | 1266 | } |
| 1260 | 1267 | ||
| @@ -67,6 +67,12 @@ typedef struct AV1Frame { · 66 unmodified lines | |||
| 67 | // OrderHints[] when this is the current frame, otherwise | 67 | // OrderHints[] when this is the current frame, otherwise |
| 68 | // SavedOrderHints[s][] when is the reference frame in slot s. | 68 | // SavedOrderHints[s][] when is the reference frame in slot s. |
| 69 | uint8_t order_hints[AV1_TOTAL_REFS_PER_FRAME]; | 69 | uint8_t order_hints[AV1_TOTAL_REFS_PER_FRAME]; |
| 70 | |||
| 71 | // force_integer_mv value at the end of the frame header parsing. | ||
| 72 | // This is not the same as the syntax element value in | ||
| 73 | // raw_frame_header because the specification parsing tables | ||
| 74 | // override the value on intra frames. | ||
| 75 | uint8_t force_integer_mv; | ||
| 70 | } AV1Frame; | 76 | } AV1Frame; |
| 71 | 77 | ||
| 72 | typedef struct TileGroupInfo { | 78 | typedef struct TileGroupInfo { |